:root {
    --bg-base: #0f1115;
    --bg-surface: #1a1d24;
    --bg-surface-glass: rgba(26, 29, 36, 0.6);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-primary: #ff6b35;
    --accent-secondary: #f7c59f;
    --accent-gradient: linear-gradient(135deg, #ff6b35 0%, #f9a03f 100%);
    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-serif: 'Playfair Display', serif;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px -10px rgba(255, 107, 53, 0.3);
    --border-glass: 1px solid rgba(255, 255, 255, 0.05);
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.glass-panel {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

.cta-button {
    display: inline-block;
    background: var(--accent-gradient);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.menu-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: var(--border-glass);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--accent-primary); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 10;
    animation: fadeUp 1s ease forwards;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
}

.hero-title span {
    font-family: var(--font-serif);
    font-style: italic;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    max-width: 400px;
}

.hero-tagline { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--accent-primary); font-weight: 600; letter-spacing: 1px; margin-bottom: 1.5rem; }
.flag-icon { width: 22px; height: auto; display: inline-block; }

/* SVG icons */
.badge-row .svg-icon { color: var(--accent-primary); flex-shrink: 0; }

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #f9a03f;
    bottom: -50px;
    left: -100px;
    animation-delay: -5s;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-base), transparent);
    z-index: 2;
}

/* OFFERS SECTION */
.offers-section {
    padding: 60px 0 0;
    position: relative;
    z-index: 10;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.offer-card {
    background: var(--bg-surface);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.offer-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
}

.offer-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.offer-body { flex: 1; min-width: 0; }
.offer-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.offer-desc { font-size: 0.85rem; color: var(--text-muted); }
.offer-price {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.offer-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    color: #fff;
}

/* MENU */
.menu-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.menu-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.menu-search {
    text-align: center;
    margin-bottom: 1.5rem;
}

#menu-search-input {
    background: var(--bg-surface);
    color: var(--text-main);
    border: var(--border-glass);
    border-radius: var(--radius-full);
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 400px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

#menu-search-input:focus {
    border-color: var(--accent);
}

.filter-btn {
    background: var(--bg-surface);
    color: var(--text-main);
    border: var(--border-glass);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

.filter-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.filter-count {
  display: inline-block; margin-left: 4px;
  background: rgba(255,255,255,.1); border-radius: 99px;
  padding: 0 6px; font-size: .75rem; line-height: 1.5;
}
.filter-btn.active .filter-count { background: rgba(255,255,255,.2); }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    transition: opacity .3s ease;
}

.menu-card {
    background: var(--bg-surface);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent-primary); color: #fff;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  padding: .25rem .7rem; border-radius: var(--radius-full);
  letter-spacing: .5px; z-index: 2;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 53, 0.3);
}

.card-img {
    height: 200px;
    background: #2a2d36;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .card-img img { transform: scale(1.05); }

.card-img img[src=""],
.card-img img[src="null"] { display: none; }

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(45deg, #1a1d24, #2a2d36);
    color: rgba(255, 255, 255, 0.1);
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-title { font-size: 1.2rem; font-weight: 600; }

.card-price {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-primary);
    white-space: nowrap;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.card-ingredients {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 1rem;
    opacity: 0.75;
}

.add-btn {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: all 0.3s;
    width: 100%;
    margin-top: auto;
}

.add-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.add-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* CONTACT SECTION */
.contact-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.contact-card {
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
}

.contact-card h2 { margin-bottom: 2rem; }

/* STATUS BAR */
.status-bar {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-bottom: .5rem; font-size: .9rem;
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #666; flex-shrink: 0;
}
.status-dot.open { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.5); }
.status-dot.closed { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.5); }
#statusText { color: var(--text-muted); }

/* BADGE ROW */
.badge-row {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin-top: .5rem;
}
.info-badge {
  display: inline-block; padding: .3rem .8rem;
  border-radius: var(--radius-full); font-size: .75rem; font-weight: 600;
  background: var(--bg-base); border: var(--border-glass); color: var(--text-muted);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.info-item svg { color: var(--accent-primary); flex-shrink: 0; }

.delivery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.delivery-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.delivery-btn.glovo { background: #ffc107; color: #000; }
.delivery-btn.uber { background: #000; color: #fff; border: 1px solid #333; }
.delivery-btn.ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); color: #fff; }
.delivery-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.delivery-btn:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }

/* FOOD DELIVERY ICONS */
.delivery-btn.glovo::before { content: '🛵 '; }
.delivery-btn.uber::before { content: '🛵 '; }
.delivery-btn.ig::before { content: '📷 '; }

/* LOGIN BUTTON */
.login-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}
.login-btn:hover { color: var(--accent-primary); }

/* CART SIDEBAR */
.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--text-main);
    position: relative;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 4px;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    display: none;
}

.cart-overlay.open { display: block; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100vw;
    background: var(--bg-surface);
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: var(--border-glass);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
    padding: 1rem 1.5rem;
    border-bottom: var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h2 { margin: 0; font-size: 1rem; }
.cart-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); padding: 0.25rem; line-height: 1; }
.cart-close:hover { color: var(--text-main); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: var(--border-glass);
}

.cart-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-no-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg-base);
    flex-shrink: 0;
}

.cart-item .info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.85rem; }
.cart-item-price { font-size: 0.75rem; color: var(--text-muted); }

.cart-item .qty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.cart-item .qty button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: var(--border-glass);
    background: var(--bg-base);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cart-item .qty button:hover { background: var(--bg-surface); }

.cart-item .qty span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.line-price {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent-primary);
    min-width: 50px;
    text-align: right;
    flex-shrink: 0;
}

.cart-empty { text-align: center; padding: 2rem 0; color: var(--text-muted); }

.cart-footer {
    padding: 1rem 1.5rem;
    border-top: var(--border-glass);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cart-checkout {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.3s;
}

.cart-checkout:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* CHECKOUT MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 300; display: none;
}
.modal-overlay.open { display: block; }

.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.9);
  background: var(--bg-surface); border: var(--border-glass);
  border-radius: var(--radius-lg); padding: 2rem; z-index: 301;
  max-width: 420px; width: 90vw; display: none;
  flex-direction: column; gap: 1rem;
  transition: transform .3s, opacity .3s;
}
.modal.open { display: flex; transform: translate(-50%,-50%) scale(1); }

.modal-header h2 { font-size: 1.3rem; text-align: center; margin: 0; }

.modal-options { display: flex; flex-direction: column; gap: .75rem; }

.modal-btn {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-base); border: var(--border-glass);
  border-radius: var(--radius-md); padding: 1rem;
  cursor: pointer; transition: all .3s; text-align: left;
  font-family: var(--font-sans); color: var(--text-main);
}
.modal-btn:hover { border-color: var(--accent-primary); background: var(--bg-surface); }
.modal-icon { font-size: 1.8rem; }
.modal-label { display: block; font-weight: 600; font-size: 1rem; }
.modal-desc { display: block; font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

.modal-body { display: flex; flex-direction: column; gap: .5rem; }
.modal-body .modal-label { font-size: .85rem; color: var(--text-muted); }
.modal-input {
  width: 100%; padding: .75rem 1rem; border-radius: var(--radius-md);
  background: var(--bg-base); border: var(--border-glass); color: var(--text-main);
  font-family: var(--font-sans); font-size: 1rem; outline: none;
  transition: border-color .3s;
}
.modal-input:focus { border-color: var(--accent-primary); }
.modal-input::placeholder { color: var(--text-muted); }

.modal-cancel {
  background: none; border: none; color: var(--text-muted);
  font-size: .9rem; cursor: pointer; padding: .5rem; font-family: var(--font-sans);
  text-align: center; align-self: center;
}
.modal-cancel:hover { color: var(--text-main); }

/* HOURS GRID */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.hour-day {
    background: var(--bg-surface);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: border-color 0.3s;
}

.hour-day.hoy {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.3);
}

.hour-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.hour-time { font-size: 0.85rem; color: var(--text-muted); }

/* MAP */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: var(--shadow-glass);
    height: 400px;
    border: var(--border-glass);
}

.map-container iframe { width: 100%; height: 100%; border: 0; }

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    border-top: var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 17, 21, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: var(--border-glass);
    }

    .nav-links.active { display: flex; }
    .nav-container { position: relative; }
    .hamburger { display: flex; }

    .hero-title { font-size: 2.5rem; }
    .contact-card { padding: 2rem; }
    .cart-sidebar { width: 100vw; }
    .menu-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; }

    .cart-item .info { min-width: 0; }
    .line-price { min-width: auto; font-size: 0.8rem; }
}

/* ===================== AUTH MODAL ===================== */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1100;
}
.auth-overlay.open { display: block; }

.auth-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1d24;
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  width: calc(100% - 2rem);
  max-width: 400px;
  z-index: 1101;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.auth-modal.open { display: block; }

.auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  transition: color 0.2s;
}
.auth-close:hover { color: #fff; }

.auth-logo {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ff6b35;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.auth-tabs {
  display: flex;
  background: #0f1115;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  padding: 8px;
  background: none;
  border: none;
  color: #9ca3af;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab.active {
  background: #1a1d24;
  color: #f3f4f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  background: #0f1115;
  border: 1px solid #2d3039;
  border-radius: 8px;
  color: #f3f4f6;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.auth-input:focus {
  outline: none;
  border-color: #ff6b35;
}
.auth-input::placeholder { color: #6b7280; }

.auth-submit {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  background: linear-gradient(135deg, #ff6b35 0%, #f9a03f 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.auth-submit:hover { opacity: 0.88; }
.auth-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 9px 12px;
  color: #f87171;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

/* Password field wrapper for eye toggle */
.auth-field-wrap {
  position: relative;
  margin-bottom: 12px;
}
.auth-field-wrap .auth-input {
  margin-bottom: 0;
  padding-right: 42px;
}
.auth-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  line-height: 1;
  transition: color 0.2s;
}
.auth-eye-btn:hover { color: #f3f4f6; }

/* User chip in navbar when logged in */
.login-btn .user-chip {
  background: linear-gradient(135deg, #ff6b35 0%, #f9a03f 100%);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

/* User dropdown */
.user-dropdown {
  position: fixed;
  background: #1a1d24;
  border: 1px solid #2d3039;
  border-radius: 10px;
  padding: 12px;
  min-width: 210px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  z-index: 1200;
}
.user-dropdown-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: #f3f4f6;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.user-dropdown-email {
  font-family: 'Outfit', sans-serif;
  color: #9ca3af;
  font-size: 0.8rem;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-dropdown-divider {
  border: none;
  border-top: 1px solid #2d3039;
  margin: 8px 0;
}
.user-dropdown-logout {
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  color: #f87171;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.user-dropdown-logout:hover {
  background: rgba(239, 68, 68, 0.1);
}
