/* ===============================================
   GASTRONOMIC — Design System 2026
   tu paladar, tu veredicto.
   =============================================== */

/* ── Tokens ── */
:root {
    --black: #000000;
    --s1: #0c0c10;
    --s2: #131318;
    --s3: #1a1a20;
    --s4: #222228;
    --border: rgba(255, 255, 255, .05);
    --border-h: rgba(255, 255, 255, .09);
    --t1: #EDEDED;
    --t2: rgba(237, 237, 240, .55);
    --t3: rgba(237, 237, 240, .25);
    --t4: rgba(237, 237, 240, .12);
    --gold: #D4A853;
    --gold-dim: rgba(212, 168, 83, .10);
    --gold-glow: rgba(212, 168, 83, .18);
    --green: #4ADE80;
    --red: #FB7185;
    --lime: #BEF264;
    --orange: #FB923C;
    --yellow: #FACC15;
    --blue: #93C5FD;
    --violet: #C4B5FD;
    /* Cyberpunk palette */
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-cyan: #06b6d4;
    --neon-blue: #6366f1;
    --neon-magenta: #d946ef;
    --glass-bg: rgba(255, 255, 255, .04);
    --glass-border: rgba(255, 255, 255, .08);
    --glass-glow: rgba(168, 85, 247, .12);
    --r: 16px;
    --r-s: 10px;
    --r-xs: 6px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --spring: cubic-bezier(.175, .885, .32, 1.1);
    --smooth: cubic-bezier(.16, 1, .3, 1);
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    font-size: 16px;
    scroll-behavior: smooth
}

body {
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    background: var(--black);
    color: var(--t1);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5
}

input,
button,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit
}

a {
    color: var(--neon-pink);
    text-decoration: none;
    font-weight: 600;
    transition: all .2s
}

a:hover {
    color: var(--neon-purple);
    text-decoration: none
}

::-webkit-scrollbar {
    width: 5px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .06);
    border-radius: 3px
}

/* ── Screens ── */
.screen {
    display: none;
    min-height: 100vh
}

.screen.active {
    display: flex
}


/* ===============================================
   AUTH — CYBERPUNK / FUTURISTA LUJOSA
   100vh Immersive Login & Register
   =============================================== */

/* ── Universe Container (Full Viewport) ── */
.login-universe {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Animated Gradient Orbs (3D Depth Effect) ── */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform;
}

.orb-1 {
    width: 500px;
    height: 500px;
    top: -12%;
    right: -8%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.55) 0%, rgba(99, 102, 241, 0.2) 50%, transparent 70%);
    animation: orbFloat1 14s ease-in-out infinite alternate;
}

.orb-2 {
    width: 450px;
    height: 450px;
    bottom: -12%;
    left: -10%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.50) 0%, rgba(217, 70, 239, 0.2) 50%, transparent 70%);
    animation: orbFloat2 16s ease-in-out infinite alternate;
}

.orb-3 {
    width: 350px;
    height: 350px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 70%);
    animation: orbFloat3 18s ease-in-out infinite alternate;
}

.orb-4 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: 10%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.30) 0%, transparent 60%);
    animation: orbFloat4 12s ease-in-out infinite alternate;
}

.orb-5 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 5%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 60%);
    animation: orbFloat5 20s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    0% {
        transform: translate(0, 0) scale(1)
    }

    50% {
        transform: translate(-40px, 30px) scale(1.08)
    }

    100% {
        transform: translate(-60px, 50px) scale(1.12)
    }
}

@keyframes orbFloat2 {
    0% {
        transform: translate(0, 0) scale(1)
    }

    50% {
        transform: translate(30px, -40px) scale(1.06)
    }

    100% {
        transform: translate(50px, -60px) scale(1.1)
    }
}

@keyframes orbFloat3 {
    0% {
        transform: translateX(-50%) translateY(0) scale(1)
    }

    50% {
        transform: translateX(-45%) translateY(20px) scale(1.05)
    }

    100% {
        transform: translateX(-55%) translateY(-20px) scale(0.95)
    }
}

@keyframes orbFloat4 {
    0% {
        transform: translate(0, 0) scale(1)
    }

    100% {
        transform: translate(-20px, -30px) scale(1.15)
    }
}

@keyframes orbFloat5 {
    0% {
        transform: translate(0, 0) scale(1)
    }

    100% {
        transform: translate(20px, 15px) scale(1.1)
    }
}

/* ── Noise Texture ── */
.noise-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Login Container (Vertical Distribution) ── */
.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

/* ── Brand Section ── */
.login-brand {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: brandReveal .8s var(--smooth) both;
}

@keyframes brandReveal {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(.95)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.brand-icon {
    display: none;
    /* removed */
}

/* ── Typography Logo ── */
.brand-logomark {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.3em;
    /* offsets trailing letter-space for perfect center */
}

.logo-gastro {
    font-weight: 300;
    color: #ffffff;
}

.logo-nomic {
    font-weight: 600;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-brand-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.25em;
    display: flex;
    align-items: center;
    padding-left: 0.25em;
}

.brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-welcome {
    font-size: .8rem;
    font-weight: 300;
    color: var(--t3);
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Glass Form ── */
.glass-form {
    width: 100%;
    padding: 28px 22px;
    background: rgba(71, 71, 71, 0.253);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow:
        0 0 0 1px rgba(169, 85, 247, 0.408),
        0 20px 60px rgba(0, 0, 0, .40),
        inset 0 1px 0 rgba(255, 255, 255, 0.197);
    animation: formSlideUp .7s var(--smooth) .15s both;
}

.glass-form-compact {
    padding: 22px 18px;
}

.glass-form-compact .glass-field {
    margin-bottom: 12px;
}

@keyframes formSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.glass-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Glass Fields ── */
.glass-field {
    margin-bottom: 16px;
}

.glass-field label {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .40);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 6px;
}

.glass-field input[type="text"],
.glass-field input[type="password"],
.glass-field input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    color: #fff;
    font-size: .88rem;
    font-weight: 400;
    outline: none;
    transition: all .3s var(--ease);
}

.glass-field input:focus {
    border-color: rgba(168, 85, 247, .40);
    background: rgba(255, 255, 255, .06);
    box-shadow:
        0 0 0 3px rgba(168, 85, 247, .08),
        0 0 20px rgba(168, 85, 247, .06);
}

.glass-field input::placeholder {
    color: rgba(255, 255, 255, .15);
    font-weight: 300;
}

/* RUT row */
.rut-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rut-row input:first-child {
    flex: 1;
}

.rut-sep {
    color: rgba(255, 255, 255, .15);
    font-weight: 300;
    font-size: 1.2rem;
}

.dv-input {
    width: 48px !important;
    text-align: center;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: .05em;
}

.field-hint {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    margin-top: 6px;
    min-height: 16px;
    transition: color .2s;
}

.field-hint.ok {
    color: var(--green)
}

.field-hint.no {
    color: var(--red)
}

.field-hint.wait {
    color: var(--t3)
}

/* Password wrap */
.pw-wrap {
    position: relative;
}

.pw-wrap input {
    padding-right: 44px !important;
}

.pw-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, .20);
    cursor: pointer;
    padding: 4px;
    transition: color .25s;
}

.pw-eye:hover {
    color: rgba(255, 255, 255, .50);
}

/* ── Neon Button ── */
.btn-neon {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-purple) 60%, var(--neon-blue) 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .08em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .3s var(--ease);
    box-shadow:
        0 4px 20px rgba(236, 72, 153, .20),
        0 8px 40px rgba(168, 85, 247, .15);
    margin-top: 4px;
}

.btn-neon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, .15) 50%, transparent 70%);
    opacity: 0;
    transition: opacity .3s;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 28px rgba(236, 72, 153, .30),
        0 12px 50px rgba(168, 85, 247, .20),
        0 0 60px rgba(168, 85, 247, .10);
}

.btn-neon:hover::before {
    opacity: 1;
}

.btn-neon:active {
    transform: translateY(0);
}

.msg-error {
    color: var(--red);
    font-size: .76rem;
    text-align: center;
    margin-top: 10px;
    min-height: 18px;
    font-weight: 500;
}

/* ── Login Bottom (Switch + Footer) ── */
.login-bottom {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: bottomFade .8s var(--smooth) .3s both;
}

@keyframes bottomFade {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.login-switch {
    font-size: .82rem;
    color: var(--t3);
    margin-bottom: 12px;
}

.login-switch a {
    color: var(--neon-purple);
    font-weight: 600;
    transition: all .2s;
}

.login-switch a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 12px rgba(236, 72, 153, .3);
}

.login-footer {
    font-size: .72rem;
    color: rgba(255, 255, 255, .18);
    font-weight: 300;
    letter-spacing: .05em;
}

.login-footer em {
    font-style: italic;
    background: linear-gradient(90deg, rgba(236, 72, 153, .35), rgba(168, 85, 247, .35));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ===============================================
   FORM ELEMENTS (Dashboard context)
   =============================================== */
.field {
    margin-bottom: 16px
}

.field label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 6px
}

.field input[type="text"],
.field input[type="password"],
.field input[type="email"],
.field select {
    width: 100%;
    padding: 12px 14px;
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: var(--r-s);
    font-size: .88rem;
    font-weight: 500;
    outline: none;
    transition: border .2s, box-shadow .2s;
}

.field input:focus,
.field select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim)
}

.field input::placeholder {
    color: var(--t4)
}

.field select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M2 3l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px
}

.field select option {
    background: var(--s2);
    color: var(--t1)
}

.field-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}


/* ===============================================
   BUTTONS
   =============================================== */
.btn-gold {
    width: 100%;
    padding: 13px 24px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: var(--r-s);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .25s var(--ease);
    letter-spacing: -.01em;
}

.btn-gold:hover:not(:disabled) {
    box-shadow: 0 8px 28px var(--gold-glow);
    transform: translateY(-1px)
}

.btn-gold:active:not(:disabled) {
    transform: translateY(0)
}

.btn-gold:disabled {
    opacity: .3;
    cursor: not-allowed
}

.btn-s {
    width: auto;
    padding: 10px 22px;
    font-size: .82rem
}

.btn-outline {
    padding: 9px 18px;
    background: transparent;
    color: var(--t1);
    border: 1px solid var(--border);
    border-radius: var(--r-s);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .2s var(--ease);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold)
}

.btn-s.btn-outline {
    padding: 8px 14px;
    font-size: .75rem
}

.btn-subtle {
    padding: 9px 18px;
    background: none;
    color: var(--t3);
    border: none;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: color .2s;
}

.btn-subtle:hover {
    color: var(--t1)
}

.btn-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    color: var(--t2);
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}

.btn-back:hover {
    color: var(--t1);
    border-color: var(--border-h)
}

.nav-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    color: var(--t2);
    cursor: pointer;
    transition: all .2s;
    position: relative;
}

.nav-icon-btn:hover {
    color: var(--t1);
    border-color: var(--border-h);
    background: var(--s2)
}

/* Rate buttons */
.btn-rate {
    padding: 8px 16px;
    background: var(--gold-dim);
    color: var(--gold);
    border: 1px solid rgba(212, 168, 83, .12);
    border-radius: 20px;
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all .25s var(--ease);
}

.btn-rate:hover {
    background: var(--gold-glow);
    transform: translateY(-1px)
}

.btn-rate.done {
    background: rgba(74, 222, 128, .06);
    color: var(--green);
    border-color: rgba(74, 222, 128, .1)
}

/* ===============================================
   NAVIGATION
   =============================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-bottom: 1px solid var(--border);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px
}

.nav-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px
}

.nav-brand {
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: -.02em
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: 20px
}

.nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(168, 85, 247, .12);
    color: var(--neon-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700
}

.nav-name {
    font-size: .75rem;
    font-weight: 500;
    color: var(--t2)
}

.notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid var(--black)
}

/* ===============================================
   DASHBOARD LAYOUT
   =============================================== */
#dashScreen {
    flex-direction: column;
    padding-top: 56px
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 60px
}

/* Page Head */
.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap
}

.page-head-back {
    display: flex;
    align-items: center;
    gap: 12px
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2
}

.page-desc {
    font-size: .78rem;
    color: var(--t3);
    margin-top: 3px
}

/* Section bar */
.section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px
}

.section-t {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.02em
}

/* ===============================================
   PANELS (forms)
   =============================================== */
.panel {
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 22px;
    margin-bottom: 16px;
    animation: panelIn .3s var(--smooth);
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.99)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.panel-head {
    margin-bottom: 16px
}

.panel-head h3 {
    font-size: .9rem;
    font-weight: 700
}

.panel-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px
}

/* ===============================================
   BENTO GRID (groups)
   =============================================== */
.bento {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px
}

.group-card {
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 22px;
    cursor: pointer;
    transition: all .3s var(--ease);
    animation: cardIn .45s var(--smooth) both;
    position: relative;
    overflow: hidden;
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), var(--neon-pink), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.group-card:hover {
    border-color: var(--border-h);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3)
}

.group-card:hover::before {
    opacity: 1
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.gc-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -.01em
}

.gc-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .72rem;
    color: var(--t3)
}

.gc-meta span {
    display: flex;
    align-items: center;
    gap: 4px
}

.gc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(168, 85, 247, .10);
    color: var(--neon-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 12px
}

/* ===============================================
   MEMBERS CHIPS
   =============================================== */
.chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px
}

.chip {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    background: var(--s2);
    border: 1px solid var(--border);
    color: var(--t2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green)
}

/* ===============================================
   TOOLBAR (search + filters)
   =============================================== */
.toolbar {
    margin-bottom: 16px
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: border .2s;
}

.search-wrap:focus-within {
    border-color: var(--neon-purple)
}

.search-ico {
    position: absolute;
    left: 14px;
    color: var(--t4);
    pointer-events: none
}

.search-wrap input {
    flex: 1;
    padding: 12px 14px 12px 44px;
    background: none;
    border: none;
    outline: none;
    font-size: .86rem;
    font-weight: 400;
}

.search-wrap input::placeholder {
    color: var(--t4)
}

.clear-x {
    background: none;
    border: none;
    color: var(--t4);
    cursor: pointer;
    padding: 4px 14px;
    font-size: .88rem;
    transition: color .2s
}

.clear-x:hover {
    color: var(--t1)
}

.filters {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap
}

.sel {
    padding: 7px 28px 7px 10px;
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: var(--r-s);
    font-size: .72rem;
    font-weight: 500;
    color: var(--t2);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%23444' stroke-width='2'%3E%3Cpath d='M2 3l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border .2s;
}

.sel:focus {
    border-color: var(--neon-purple)
}

.sel option {
    background: var(--s2);
    color: var(--t1)
}

/* ===============================================
   RESTAURANT CARDS
   =============================================== */
.rest-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px
}

.rcard {
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 22px;
    transition: border .25s, box-shadow .25s;
    animation: cardIn .45s var(--smooth) both;
}

.rcard:hover {
    border-color: var(--border-h);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15)
}

.rcard-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px
}

.rcard-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.01em
}

.rcard-pills {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 5px;
    margin-bottom: 14px
}

.tag {
    padding: 3px 10px;
    border-radius: 14px;
    font-size: .64rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--s2);
    color: var(--t3)
}

.tag-city {
    color: var(--blue);
    border-color: rgba(147, 197, 253, .08);
    background: rgba(147, 197, 253, .04)
}

.tag-type {
    color: var(--violet);
    border-color: rgba(196, 181, 253, .08);
    background: rgba(196, 181, 253, .04)
}

/* Price tag */
.ptag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: .73rem;
    font-weight: 700
}

.ptag-1 {
    color: var(--green);
    background: rgba(74, 222, 128, .06);
    border: 1px solid rgba(74, 222, 128, .08)
}

.ptag-2 {
    color: var(--lime);
    background: rgba(190, 242, 100, .06);
    border: 1px solid rgba(190, 242, 100, .08)
}

.ptag-3 {
    color: var(--yellow);
    background: rgba(250, 204, 21, .06);
    border: 1px solid rgba(250, 204, 21, .08)
}

.ptag-4 {
    color: var(--red);
    background: rgba(251, 113, 133, .06);
    border: 1px solid rgba(251, 113, 133, .08)
}

/* Average block */
.avg {
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: var(--r-s);
    padding: 16px;
    margin-bottom: 12px
}

.avg-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px
}

.avg-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    font-variant-numeric: tabular-nums;
}

.avg-circle::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    opacity: .12
}

.avg-info {
    flex: 1
}

.avg-lbl {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--t3)
}

.avg-detail {
    font-size: .72rem;
    color: var(--t4);
    margin-top: 2px
}

.avg-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px
}

.avg-col {
    text-align: center
}

.avg-col-lbl {
    display: block;
    font-size: .58rem;
    color: var(--t4);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px
}

.avg-col-val {
    display: block;
    font-size: .88rem;
    font-weight: 800;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums
}

.avg-bar {
    width: 100%;
    height: 2px;
    background: var(--s3);
    border-radius: 1px;
    overflow: hidden
}

.avg-bar-fill {
    height: 100%;
    border-radius: 1px;
    transition: width .7s var(--smooth)
}

.utags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 10px
}

.utag {
    padding: 2px 9px;
    border-radius: 12px;
    font-size: .64rem;
    font-weight: 600;
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border)
}

.rcard-foot {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px
}

/* ===============================================
   EMPTY STATE
   =============================================== */
.empty-box {
    text-align: center;
    padding: 60px 20px
}

.empty-emoji {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 10px;
    opacity: .45
}

.empty-box p {
    font-size: .92rem;
    font-weight: 600;
    color: var(--t2);
    margin-bottom: 2px
}

.empty-sub {
    font-size: .78rem;
    color: var(--t4)
}

/* ===============================================
   MODALS
   =============================================== */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayIn .2s ease;
}

@keyframes overlayIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.modal {
    width: 100%;
    max-width: 460px;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    animation: modalUp .35s var(--smooth);
    position: relative;
}

.modal-lg {
    max-width: 500px
}

@keyframes modalUp {
    from {
        opacity: 0;
        transform: scale(.96) translateY(14px)
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0)
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--t4);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: all .2s;
}

.modal-close:hover {
    color: var(--t1);
    background: var(--s3)
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 28px
}

/* Rating categories */
.rcat {
    margin-bottom: 20px
}

.rcat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px
}

.rcat-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--t2)
}

.rcat-val {
    font-size: 1.15rem;
    font-weight: 800;
    min-width: 28px;
    text-align: right;
    font-variant-numeric: tabular-nums
}

input[type="range"].slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--s3);
    outline: none;
    cursor: pointer
}

input[type="range"].slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--s1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
    transition: transform .15s
}

input[type="range"].slider::-webkit-slider-thumb:hover {
    transform: scale(1.15)
}

input[type="range"].slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--s1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .5)
}

/* Price selector */
.price-sel {
    display: flex;
    gap: 6px;
    margin-top: 6px
}

.price-opt {
    flex: 1;
    padding: 10px 4px;
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: var(--r-s);
    text-align: center;
    cursor: pointer;
    transition: all .25s var(--ease);
}

.price-opt:hover {
    border-color: var(--border-h)
}

.price-opt.sel {
    border-color: var(--gold);
    background: var(--gold-dim)
}

.price-sym {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px
}

.price-lbl {
    display: block;
    font-size: .6rem;
    color: var(--t4);
    font-weight: 400
}

.price-opt.sel .price-sym {
    color: var(--gold)
}

.price-opt.sel .price-lbl {
    color: var(--gold)
}

/* Other ratings */
.orat {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border)
}

.orat h4 {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--t4);
    margin-bottom: 8px
}

.orat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: var(--s2);
    border-radius: var(--r-xs);
    margin-bottom: 4px
}

.orat-cat {
    font-size: .78rem;
    font-weight: 500;
    color: var(--t2)
}

.orat-val {
    font-size: .76rem;
    font-weight: 700
}

.modal-act {
    margin-top: 4px
}

/* Invitation card */
.inv-card {
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: var(--r-s);
    padding: 16px;
    margin-bottom: 8px;
    animation: cardIn .3s var(--smooth) both
}

.inv-group {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 2px
}

.inv-from {
    font-size: .72rem;
    color: var(--t3);
    margin-bottom: 10px
}

.inv-btns {
    display: flex;
    gap: 8px
}

.btn-yes {
    padding: 7px 16px;
    background: rgba(74, 222, 128, .08);
    color: var(--green);
    border: 1px solid rgba(74, 222, 128, .1);
    border-radius: var(--r-xs);
    font-size: .76rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s
}

.btn-yes:hover {
    background: rgba(74, 222, 128, .15)
}

.btn-no {
    padding: 7px 16px;
    background: rgba(251, 113, 133, .06);
    color: var(--red);
    border: 1px solid rgba(251, 113, 133, .08);
    border-radius: var(--r-xs);
    font-size: .76rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s
}

.btn-no:hover {
    background: rgba(251, 113, 133, .12)
}

/* ===============================================
   TOAST
   =============================================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 12px 24px;
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: var(--r-s);
    font-size: .82rem;
    font-weight: 500;
    color: var(--t1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    z-index: 300;
    transition: transform .4s var(--smooth);
    pointer-events: none;
    backdrop-filter: blur(16px);
}

.toast.show {
    transform: translateX(-50%) translateY(0)
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media(max-width:768px) {
    .container {
        padding: 16px 16px 60px
    }

    .page-title {
        font-size: 1.3rem
    }

    .avg-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px
    }

    .avg-top {
        flex-direction: column;
        text-align: center
    }

    .rcard {
        padding: 16px
    }

    .modal {
        padding: 22px
    }

    .field-duo {
        grid-template-columns: 1fr
    }

    .bento {
        grid-template-columns: 1fr
    }

    .page-head {
        flex-direction: column;
        gap: 10px
    }

    .price-sel {
        flex-wrap: wrap
    }

    .price-opt {
        min-width: calc(50% - 3px)
    }

    .glass-row {
        grid-template-columns: 1fr
    }
}

@media(max-width:480px) {
    .nav {
        padding: 0 14px
    }

    .filters {
        gap: 4px
    }

    .login-container {
        padding: 24px 18px 16px
    }

    .glass-form {
        padding: 22px 16px
    }

    .brand-title {
        font-size: 1.6rem
    }

    .brand-icon {
        width: 64px;
        height: 64px
    }
}

/* Small height screens */
@media(max-height:680px) {
    .login-container {
        padding: 16px 18px 12px
    }

    .glass-form {
        padding: 18px 14px
    }

    .glass-field {
        margin-bottom: 12px
    }

    .glass-form-compact .glass-field {
        margin-bottom: 8px
    }

    .brand-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 8px
    }

    .brand-title {
        font-size: 1.4rem
    }

    .brand-welcome {
        font-size: .78rem;
        margin-top: 2px
    }

    .btn-neon {
        padding: 11px 24px
    }

    .login-switch {
        margin-bottom: 8px
    }
}

/* ===============================================
   MOBILE MENU OVERLAY
   =============================================== */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex;
    }
}

.menu-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    align-items: flex-end;
    padding: 0;
}

.menu-overlay .mobile-menu-content {
    background: var(--s1);
    border-top: 1px solid var(--border);
    width: 100%;
    border-radius: var(--r) var(--r) 0 0;
    padding: 24px;
    animation: slideUpMenu 0.3s var(--smooth);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideUpMenu {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(168, 85, 247, .15);
    color: var(--neon-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.menu-user-info {
    display: flex;
    flex-direction: column;
}

.menu-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--t1);
}

.menu-sub {
    font-size: 0.75rem;
    color: var(--t3);
}

.menu-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--t3);
    font-size: 1.2rem;
    padding: 8px;
    cursor: pointer;
}

.menu-close:hover {
    color: var(--t1);
}

.menu-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px;
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: var(--r-s);
    color: var(--t1);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.menu-item svg {
    color: var(--t3);
    transition: color 0.2s;
}

.menu-item:hover {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.05);
}

.menu-item:hover svg {
    color: var(--neon-purple);
}

.menu-logout {
    border-color: rgba(251, 113, 133, 0.1) !important;
    color: var(--red) !important;
    background: rgba(251, 113, 133, 0.05) !important;
}

.menu-logout svg {
    color: var(--red) !important;
}

.menu-logout:hover {
    background: rgba(251, 113, 133, 0.1) !important;
}