
/* ===== CSS VARIABLES ===== */
:root {
    --bg: #05070f;
    --bg-elevated: #0a0e1a;
    --surface: rgba(255, 255, 255, 0.04);
    --surface2: rgba(255, 255, 255, 0.08);
    --surface3: rgba(255, 255, 255, 0.12);
    --text: #e8ecf4;
    --text2: #8b92a8;
    --text3: #5a6078;
    --accent: #6366f1;
    --accent2: #ec4899;
    --accent-gradient: linear-gradient(135deg, #6366f1, #ec4899);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --green: #22c55e;
    --gold: #f59e0b;
    --red: #ef4444;
    --orange: #f97316;
    --blue: #3b82f6;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg: #f1f5f9;
    --bg-elevated: #ffffff;
    --surface: rgba(255, 255, 255, 0.7);
    --surface2: rgba(241, 245, 249, 0.9);
    --surface3: rgba(226, 232, 240, 0.9);
    --text: #0f172a;
    --text2: #64748b;
    --text3: #94a3b8;
    --accent: #4f46e5;
    --accent2: #db2777;
    --accent-gradient: linear-gradient(135deg, #4f46e5, #db2777);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --green: #16a34a;
    --gold: #d97706;
    --red: #dc2626;
    --orange: #ea580c;
    --blue: #2563eb;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

[data-theme="dark"] body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(236, 72, 153, 0.10), transparent),
        radial-gradient(ellipse 50% 50% at 50% 100%, rgba(59, 130, 246, 0.06), transparent);
    z-index: -2;
    pointer-events: none;
    animation: bgShift 15s ease-in-out infinite alternate;
}

[data-theme="light"] body::before { display: none; }

@keyframes bgShift {
    0% { transform: translateX(-2%) translateY(-1%) scale(1); }
    100% { transform: translateX(2%) translateY(1%) scale(1.05); }
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

[data-theme="light"] body::after {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.15); }
    50% { box-shadow: 0 0 40px rgba(236, 72, 153, 0.2); }
}
@keyframes rotate {
    100% { transform: rotate(360deg); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(236, 72, 153, 0); }
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes float-particle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
    25% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
    50% { transform: translateY(-10px) translateX(-10px); opacity: 0.6; }
    75% { transform: translateY(-30px) translateX(5px); opacity: 0.9; }
}

/* ===== GLASS PANEL ===== */
.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.glass:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

/* ===== HUD CORNERS ===== */
.hud-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent);
    opacity: 0.4;
    z-index: 2;
    transition: var(--transition);
}
.hud-corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; border-radius: 2px 0 0 0; }
.hud-corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; border-radius: 0 2px 0 0; }
.hud-corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; border-radius: 0 0 0 2px; }
.hud-corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; border-radius: 0 0 2px 0; }
.glass:hover .hud-corner { opacity: 0.8; width: 20px; height: 20px; }

/* ===== HEADINGS ===== */
.hud-title {
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hud-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.btn:hover::before { transform: translateX(100%); }
.btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}
.btn:active { transform: translateY(0) scale(0.97); }
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}
.btn--primary {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
}
.btn--primary:hover { box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35); }
.btn--success {
    background: var(--green);
    border-color: transparent;
    color: #fff;
}
.btn--danger {
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--red);
}
.btn--danger:hover {
    border-color: var(--red);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
    background: rgba(239, 68, 68, 0.08);
}
.btn--ghost { background: transparent; }
.btn--sm { padding: 8px 14px; font-size: 12px; border-radius: var(--radius-xs); }
.btn--icon {
    width: 40px; height: 40px; padding: 0;
    border-radius: var(--radius-xs); font-size: 18px;
}
.btn--full { width: 100%; }

/* ===== INPUTS ===== */
.input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    outline: none;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}
.input:hover { border-color: var(--border-hover); }
.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 0 20px rgba(99, 102, 241, 0.08);
}
.input::placeholder { color: var(--text3); }

/* ===== RESTAURANT CARDS ===== */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.restaurant-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}
.restaurant-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}
.restaurant-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}
.restaurant-card:hover::before { opacity: 1; }
.card__cover {
    height: 160px;
    background: linear-gradient(135deg, var(--surface2), var(--surface3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}
.card__cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.3));
}
.card__badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: var(--green);
    color: #fff;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card__badge--closed { background: var(--red); }
.card__body { padding: 18px; }
.card__name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}
.card__info {
    font-size: 13px;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.card__rating { color: var(--gold); font-weight: 700; font-size: 14px; }
.card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.card__tag {
    font-size: 12px;
    color: var(--text2);
    background: var(--surface2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}
.card__time { font-size: 12px; color: var(--text3); font-weight: 500; }

/* ===== SEARCH ===== */
.search-box {
    display: flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface2);
    transition: var(--transition);
}
.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.search-box input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    outline: none;
    font-family: inherit;
}
.search-box input::placeholder { color: var(--text3); }
.search-box button {
    padding: 14px 20px;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: filter 0.2s;
}
.search-box button:hover { filter: brightness(1.1); }

/* ===== CATEGORY CHIPS ===== */
.cat-chip {
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text2);
    transition: var(--transition);
    font-family: inherit;
}
.cat-chip:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-1px);
    background: var(--surface2);
}
.cat-chip.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* ===== BANNER ===== */
.banner {
    background: linear-gradient(135deg, var(--surface), var(--surface2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.03), transparent 30%);
    animation: rotate 8s linear infinite;
}
.banner__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.banner__text {
    color: var(--text2);
    margin-bottom: 24px;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* ===== MODALS ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 300;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
}
.modal-overlay.open {
    display: flex;
    animation: fadeIn 0.2s;
}
.modal-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    width: 100%;
    max-width: 440px;
    animation: scaleIn 0.3s;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}
.modal-box__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.modal-box__subtitle {
    color: var(--text2);
    font-size: 14px;
    margin-bottom: 20px;
}
.modal__input, .modal__textarea {
    width: 100%;
    padding: 12px 16px;
    margin: 6px 0;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    resize: vertical;
    transition: var(--transition);
    font-family: inherit;
}
.modal__input:focus, .modal__textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.modal__btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
    font-family: inherit;
}
.modal__btn--primary {
    background: var(--accent-gradient);
    color: #fff;
}
.modal__btn--primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.modal__btn--secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text2);
}
.modal__btn--secondary:hover {
    border-color: var(--text2);
    color: var(--text);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-global {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 24px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 90%;
    width: max-content;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.toast-global--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.toast-global--success { border-color: var(--green); border-left: 4px solid var(--green); }
.toast-global--error { border-color: var(--red); border-left: 4px solid var(--red); }
.toast-global--warning { border-color: var(--orange); border-left: 4px solid var(--orange); }
.toast-global__icon { font-size: 20px; flex-shrink: 0; }
.toast-global__text { font-size: 14px; font-weight: 500; }
.toast-global__close {
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    margin-left: 8px;
    transition: color 0.2s;
}
.toast-global__close:hover { color: var(--text); }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--surface3);
    border-radius: 13px;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 2px;
    flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle__thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gradient);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
[data-theme="light"] .theme-toggle__thumb { transform: translateX(22px); }

/* ===== HEADER ===== */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.header__left { display: flex; align-items: center; gap: 14px; }
.burger {
    background: none;
    border: none;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-xs);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.burger:hover { background: var(--surface2); }
.logo {
    font-size: 22px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    user-select: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo:hover { filter: brightness(1.2); transform: scale(1.02); }
.logo__icon { font-size: 24px; -webkit-text-fill-color: initial; }
.header__actions { display: flex; gap: 10px; align-items: center; }

/* ===== SIDEBAR ===== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}
.sidebar.open { left: 0; }
.sidebar__header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar__title { font-size: 18px; font-weight: 700; }
.sidebar__close {
    background: none;
    border: none;
    color: var(--text2);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}
.sidebar__close:hover { background: var(--surface2); color: var(--text); }
.sidebar__nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: var(--text2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
}
.sidebar__link:hover {
    color: var(--text);
    background: var(--surface);
    border-left-color: var(--accent);
}
.sidebar__icon { font-size: 20px; width: 28px; text-align: center; }
.sidebar__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text3);
    text-align: center;
}

/* ===== HERO ===== */
.hero {
    padding: 60px 24px 48px;
    text-align: center;
    position: relative;
}
.hero__title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.2;
}
.hero__subtitle {
    color: var(--text2);
    font-size: 15px;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CATEGORIES ===== */
.categories {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    overflow-x: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }

/* ===== CONTENT ===== */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-head__title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-head__link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}
.section-head__link:hover { opacity: 0.7; }

/* ===== NOTIFICATIONS ===== */
.notify-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}
.notify-btn:hover { background: var(--surface2); }
.notify-badge {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    display: none;
}
.notify-dropdown {
    display: none;
    position: absolute;
    top: 64px;
    right: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    padding: 12px;
}
.notify-dropdown.show {
    display: block;
    animation: scaleIn 0.2s;
}
.notify-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}
.notify-item:hover { background: var(--surface); }
.notify-item:last-child { border-bottom: none; }
.notify-item__time { font-size: 11px; color: var(--text3); margin-top: 4px; }
.notify-item--unread {
    background: rgba(99, 102, 241, 0.06);
    border-left: 3px solid var(--accent);
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 6px;
    border: 1px solid var(--border);
}
.tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}
.tab:hover { color: var(--text); background: var(--surface2); }
.tab.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 6px;
    animation: scaleIn 0.3s;
}

/* ===== PANELS ===== */
.panel { display: none; animation: fadeUp 0.3s; }
.panel.active { display: block; }

/* ===== GENERIC CARDS ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 14px;
    animation: scaleIn 0.3s;
    transition: var(--transition);
}
.card:hover { border-color: var(--border-hover); }
.card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.card__title { font-weight: 700; font-size: 16px; }
.card__subtitle { font-size: 13px; color: var(--text2); margin-top: 2px; }
.card__body {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 12px;
}
.card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== STATUS BADGES ===== */
.status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status--new { background: rgba(249, 115, 22, 0.12); color: var(--orange); }
.status--cooking { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.status--ready { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.status--done { background: rgba(99, 102, 241, 0.12); color: var(--accent); }
.status--cancelled, .status--rejected { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.status--approved, .status--active { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.status--inactive { background: rgba(239, 68, 68, 0.12); color: var(--red); }

/* ===== FORMS ===== */
.form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.form__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form__row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.form__input, .form__select, .form__textarea {
    padding: 12px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    flex: 1;
    min-width: 120px;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form__select { cursor: pointer; }
.form__textarea { resize: vertical; min-height: 80px; width: 100%; }

/* ===== FILTERS BAR ===== */
.filters-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: var(--surface);
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.filters-bar input, .filters-bar select {
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-xs);
    font-size: 13px;
    outline: none;
    font-family: inherit;
    flex: 1;
    min-width: 140px;
    transition: var(--transition);
}
.filters-bar input:focus, .filters-bar select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ===== EMPTY STATE ===== */
.empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text2);
}
.empty__icon { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.empty__title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }

/* ===== QR CARDS ===== */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.qr-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}
.qr-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.qr-card img {
    width: 120px; height: 120px;
    margin: 12px auto;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.qr-card__label { font-size: 15px; font-weight: 700; }
.qr-card__link { font-size: 10px; color: var(--text3); word-break: break-all; margin-top: 10px; line-height: 1.4; }

/* ===== STATS ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}
.stat:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat__value { font-size: 40px; font-weight: 800; line-height: 1; }
.stat__label { font-size: 12px; color: var(--text2); margin-top: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.stat--green .stat__value { color: var(--green); }
.stat--gold .stat__value { color: var(--gold); }
.stat--red .stat__value { color: var(--red); }

/* ===== CHART BOX ===== */
.chart-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.chart-box h4 {
    font-size: 13px;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    font-weight: 700;
}

/* ===== PROFILE ROWS ===== */
.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    gap: 16px;
}
.profile-row:last-child { border-bottom: none; }
.profile-row__label { color: var(--text2); min-width: 140px; font-weight: 500; flex-shrink: 0; }
.profile-row__value { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; }
.profile-row__input {
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-xs);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    width: 100%;
    max-width: 300px;
    transition: var(--transition);
    display: none;
}
.profile-row__input.show { display: block; }
.profile-row__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
.profile-row__text { color: var(--text); font-weight: 500; }

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--surface3);
    transition: .3s;
    border-radius: 26px;
    border: 1px solid var(--border);
}
.slider::before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 2px; bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .slider { background-color: var(--green); border-color: var(--green); }
input:checked + .slider::before { transform: translateX(22px); }

/* ===== ORDER CARDS ===== */
.order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 14px;
    animation: scaleIn 0.3s;
    transition: var(--transition);
}
.order-card:hover { border-color: var(--border-hover); }
.order-card--new { border-left: 4px solid var(--orange); }
.order-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.order-card__id { font-weight: 700; font-size: 16px; }
.order-card__table { font-size: 13px; color: var(--text2); margin-top: 2px; }
.order-card__items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.order-card__item {
    background: var(--surface2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
}
.order-card__total {
    font-weight: 700;
    font-size: 20px;
    text-align: right;
    margin-bottom: 14px;
    color: var(--accent);
}
.order-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.order-card__reject-reason {
    font-size: 13px;
    color: var(--red);
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.06);
    border-radius: var(--radius-xs);
    border-left: 3px solid var(--red);
}

/* ===== MENU ITEMS (dashboard) ===== */
.menu-item {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: var(--transition);
    gap: 16px;
}
.menu-item:hover { border-color: var(--border-hover); box-shadow: var(--shadow); transform: translateY(-1px); }
.menu-item--off { opacity: 0.5; }
.menu-item__photo {
    width: 72px; height: 72px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    overflow: hidden;
    background: var(--surface2);
    position: relative;
    border: 1px solid var(--border);
}
.menu-item__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-item__photo .placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}
.menu-item__info { flex: 1; }
.menu-item__name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.menu-item__meta { font-size: 13px; color: var(--text2); display: flex; gap: 12px; flex-wrap: wrap; }
.menu-item__actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ===== MENU CARDS (client) ===== */
.menu-grid--client {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.menu-card--client {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.menu-card--client:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.menu-card--client--off { opacity: 0.5; pointer-events: none; }
.menu-card--client__image {
    width: 100%; height: 130px;
    background: var(--surface2);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
    overflow: hidden;
    position: relative;
}
.menu-card--client__image img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    position: absolute; top: 0; left: 0;
}
.menu-card--client__body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.menu-card--client__name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.menu-card--client__price { font-size: 15px; font-weight: 700; color: var(--accent2); }
.menu-card--client__rating { color: var(--gold); font-size: 12px; }
.menu-card--client__badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Quantity selector */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface2);
    border-radius: 24px;
    padding: 3px;
    border: 1px solid var(--border);
}
.qty-selector button {
    width: 32px; height: 32px;
    border: none;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: inherit;
}
.qty-selector button:hover { filter: brightness(1.1); }
.qty-selector button:active { transform: scale(0.9); }
.qty-selector button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-selector span { font-size: 14px; font-weight: 700; min-width: 24px; text-align: center; }

/* ===== CART ===== */
.cart-bottom-bar {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(20px);
}
.cart-bottom-bar:hover { background: var(--surface); }
.cart-bottom-bar__info { display: flex; align-items: center; gap: 12px; }
.cart-bottom-bar__count {
    background: var(--accent2);
    color: #fff;
    min-width: 26px; height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    padding: 0 6px;
}
.cart-bottom-bar__total { font-weight: 700; font-size: 20px; }

.cart-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 150;
    display: none;
    align-items: flex-end;
    backdrop-filter: blur(8px);
}
.cart-modal-overlay.show { display: flex; }
.cart-modal {
    background: var(--bg-elevated);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.3);
}
.cart-modal__head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-modal__body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-modal__foot { padding: 20px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.cart-item:last-child { border-bottom: none; }
.cart-item__name { font-weight: 500; flex: 1; }
.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ===== TIMELINE ===== */
.timeline {
    display: flex;
    justify-content: space-between;
    margin: 24px 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 20px; left: 30px; right: 30px;
    height: 3px;
    background: var(--border);
    z-index: 0;
    border-radius: 2px;
}
.timeline-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.timeline-dot {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--surface2);
    border: 2px solid var(--border);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}
.timeline-step.done .timeline-dot { background: var(--green); border-color: var(--green); color: #fff; }
.timeline-step.active .timeline-dot {
    background: var(--accent2); border-color: var(--accent2); color: #fff;
    animation: pulse-glow 2s infinite;
}
.timeline-label { font-size: 11px; color: var(--text2); font-weight: 500; }

/* ===== REVIEWS ===== */
.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    transition: var(--transition);
}
.review-card:hover { border-color: var(--border-hover); }
.stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.stars-input { display: flex; gap: 6px; justify-content: center; margin: 14px 0; }
.star-btn {
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--border);
    transition: var(--transition);
    padding: 0 4px;
}
.star-btn:hover, .star-btn.on { color: var(--gold); transform: scale(1.15); }

/* ===== HISTORY ===== */
.history-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    transition: var(--transition);
}
.history-card:hover { border-color: var(--border-hover); }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.history-card__reject-reason {
    font-size: 13px;
    color: var(--red);
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.06);
    border-radius: var(--radius-xs);
    border-left: 3px solid var(--red);
}

/* ===== CLIENT TOAST ===== */
.client-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent2);
    padding: 16px 24px;
    border-radius: var(--radius);
    z-index: 500;
    box-shadow: var(--shadow-lg);
    max-width: 90%;
    width: max-content;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.client-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.client-toast__status { font-weight: 700; color: var(--accent2); font-size: 15px; }
.client-toast__message { font-size: 14px; color: var(--text2); margin-top: 4px; }

/* ===== NEW ORDER TOAST ===== */
.new-order-toast {
    position: fixed;
    top: 24px; right: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--accent);
    border-left: 4px solid var(--accent2);
    padding: 18px 24px;
    border-radius: var(--radius);
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    max-width: 340px;
}
.new-order-toast.show { transform: translateX(0); }
.new-order-toast__icon { font-size: 32px; }

/* ===== TIMER ===== */
.timer {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid var(--orange);
    color: var(--orange);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin: 14px 0;
    font-weight: 700;
    text-align: center;
    font-size: 15px;
}

/* ===== PARTICLES ===== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}
.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: float-particle 6s infinite ease-in-out;
    opacity: 0.6;
}
.particle:nth-child(odd) { background: var(--accent2); animation-duration: 8s; animation-delay: 1s; }
.particle:nth-child(3n) { width: 3px; height: 3px; animation-duration: 10s; }

/* ===== MISC ===== */
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .restaurant-grid { grid-template-columns: 1fr; }
    .hero__title { font-size: 28px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .menu-grid--client { gap: 10px; }
    .menu-card--client__image { height: 100px; }
    .header { padding: 0 16px; height: 56px; }
    .content { padding: 20px 16px; }
    .hero { padding: 40px 16px 32px; }
    .sidebar { width: 280px; left: -300px; }
    .notify-dropdown { width: calc(100vw - 32px); right: 16px; }
    .qr-grid { grid-template-columns: repeat(2, 1fr); }
    .form__row { flex-direction: column; }
    .tabs { flex-wrap: wrap; }
    .tab { flex: auto; padding: 10px 12px; font-size: 12px; }
    .filters-bar { flex-direction: column; }
    .filters-bar input, .filters-bar select { min-width: auto; width: 100%; }
    .card__body { grid-template-columns: 1fr; }
    .profile-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .profile-row__value { justify-content: flex-start; width: 100%; }
    .profile-row__input { max-width: none; }
}

@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr; }
    .menu-grid--client { grid-template-columns: 1fr; }
    .hero__title { font-size: 24px; }
    .qr-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; right: 20px; }
    .timeline-dot { width: 36px; height: 36px; font-size: 14px; }
}
