/* ============================================
   Online Help Cyber Café - Global Design System
   Color Theme: Black | Red | White
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@500;600;700&display=swap');

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
    --red: #e8202d;
    --red-dark: #b91c27;
    --red-light: #ff3341;
    --red-glow: rgba(232, 32, 45, 0.3);
    --black: #0a0a0a;
    --black-mid: #141414;
    --black-card: #1a1a1a;
    --black-border: #2a2a2a;
    --white: #ffffff;
    --white-90: rgba(255,255,255,0.9);
    --white-70: rgba(255,255,255,0.7);
    --white-40: rgba(255,255,255,0.4);
    --white-10: rgba(255,255,255,0.05);
    --gray: #888888;
    --gray-light: #cccccc;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #3b82f6;

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-red: 0 4px 32px rgba(232,32,45,0.25);
    --shadow-card: 0 8px 40px rgba(0,0,0,0.6);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-mid); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 48px 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.section-title span {
    color: var(--red);
}

.section-subtitle {
    color: var(--white-70);
    font-size: 1rem;
    margin-bottom: 48px;
}

.text-red { color: var(--red); }
.text-gray { color: var(--gray); }
.text-center { text-align: center; }

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--black-border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.99);
    border-bottom-color: var(--red);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-logo-text .brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-logo-text .tagline {
    font-size: 0.65rem;
    color: var(--red);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white-70);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: var(--white-10);
}

.nav-links a.nav-cta {
    background: var(--red);
    color: var(--white);
    padding: 8px 18px;
    font-weight: 600;
}

.nav-links a.nav-cta:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-red);
}

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

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    border-bottom: 1px solid var(--black-border);
    padding: 16px 20px;
    flex-direction: column;
    gap: 4px;
    z-index: 999;
    backdrop-filter: blur(20px);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--white-70);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.mobile-menu a:hover { color: var(--white); background: var(--white-10); }
.mobile-menu a.nav-cta {
    background: var(--red);
    color: var(--white);
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    border-color: var(--red);
}

/* Page Spacer */
.page-spacer {
    height: var(--header-height);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--black-mid);
    border-top: 1px solid var(--black-border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand p {
    color: var(--white-70);
    font-size: 0.9rem;
    margin: 16px 0 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    background: var(--white-10);
    border: 1px solid var(--black-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.social-btn:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-2px);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--white-70);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover { color: var(--red); padding-left: 4px; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--white-70);
    font-size: 0.875rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

.footer-contact-icon {
    font-size: 16px;
    flex-shrink: 0;
    color: var(--red);
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--black-border);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p { color: var(--gray); font-size: 0.8rem; }
.footer-bottom span { color: var(--red); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
    background: linear-gradient(135deg, var(--red-light), var(--red));
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--black-border);
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-glow);
}

.btn-white {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--gray-light);
    transform: translateY(-2px);
}

.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(232, 32, 45, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.card-red-top {
    border-top: 3px solid var(--red);
}

.card-glow {
    box-shadow: 0 0 0 1px var(--red), var(--shadow-red);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white-70);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    background: var(--black-mid);
    border: 1.5px solid var(--black-border);
    border-radius: var(--radius-sm);
    color: var(--white);
    padding: 13px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control::placeholder { color: var(--white-40); }

.form-control:focus {
    border-color: var(--red);
    background: var(--black-card);
    box-shadow: 0 0 0 3px var(--red-glow);
}

.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 6px;
}

/* ============================================
   BADGES / TAGS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-waiting { background: rgba(245,158,11,0.2); color: var(--warning); }
.badge-serving { background: rgba(34,197,94,0.2); color: var(--success); }
.badge-completed { background: rgba(59,130,246,0.2); color: var(--info); }
.badge-cancelled { background: rgba(255,255,255,0.08); color: var(--gray); }
.badge-pending { background: rgba(245,158,11,0.2); color: var(--warning); }
.badge-approved { background: rgba(34,197,94,0.2); color: var(--success); }
.badge-rejected { background: rgba(232,32,45,0.2); color: var(--red); }
.badge-submitted { background: rgba(59,130,246,0.2); color: var(--info); }

/* ============================================
   TABLES
   ============================================ */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--black-border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    white-space: nowrap;
}

.table th {
    background: var(--black-mid);
    color: var(--white-70);
    padding: 14px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--black-border);
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--white-90);
    vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }

.table tbody tr:hover {
    background: var(--white-10);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}
.alert-success { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: var(--success); }
.alert-error { background: rgba(232,32,45,0.1); border-color: rgba(232,32,45,0.3); color: var(--red-light); }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: var(--warning); }
.alert-info { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: var(--info); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--black-mid) 0%, var(--black) 100%);
    border-bottom: 1px solid var(--black-border);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--red-glow);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--white-40);
    margin-bottom: 16px;
}

.breadcrumb a { color: var(--red); }
.breadcrumb span { color: var(--white-40); }

/* ============================================
   LOADING / SPINNER
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--black-border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   DIVIDER
   ============================================ */
.divider {
    width: 60px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    margin: 16px auto 0;
}

.divider-left { margin-left: 0; }

/* ============================================
   TOKEN DISPLAY
   ============================================ */
.token-display {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 0.1em;
    text-shadow: 0 0 40px var(--red-glow);
    animation: tokenPulse 2s ease-in-out infinite;
}

@keyframes tokenPulse {
    0%, 100% { text-shadow: 0 0 20px var(--red-glow); }
    50% { text-shadow: 0 0 60px rgba(232, 32, 45, 0.6); }
}

/* ============================================
   QUICK ACTION BUTTONS (Homepage)
   ============================================ */
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 24px;
    background: var(--black-card);
    border: 1.5px solid var(--black-border);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--white);
    min-height: 160px;
}

.quick-action:hover {
    border-color: var(--red);
    background: rgba(10,10,10,0.9);
    transform: translateY(-6px);
    box-shadow: var(--shadow-red);
    color: var(--white);
}

.quick-action-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: var(--transition);
    box-shadow: 0 8px 24px var(--red-glow);
}

.quick-action:hover .quick-action-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 32px var(--red-glow);
}

.quick-action h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.quick-action p {
    font-size: 0.8rem;
    color: var(--white-70);
    line-height: 1.4;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover { border-color: rgba(232,32,45,0.3); }

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--white-70);
    margin-top: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--white-10);
    border: 1px solid var(--black-border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white-70);
    transition: var(--transition);
}
.modal-close:hover { background: var(--red); color: var(--white); }

/* ============================================
   PULSE ANIMATION (Live badge)
   ============================================ */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    color: var(--success);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================
   GRID UTILITIES
   ============================================ */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   ADMIN LAYOUT
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--black-mid);
    border-right: 1px solid var(--black-border);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid var(--black-border);
}

.admin-nav {
    padding: 16px 12px;
}

.admin-nav-section {
    margin-bottom: 24px;
}

.admin-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-40);
    padding: 0 8px;
    margin-bottom: 8px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    color: var(--white-70);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--white-10);
    color: var(--white);
}

.admin-nav-link.active {
    background: rgba(232,32,45,0.15);
    color: var(--red-light);
    border: 1px solid rgba(232,32,45,0.2);
}

.admin-nav-icon { font-size: 18px; }

.admin-main {
    flex: 1;
    min-width: 0;
    background: var(--black);
}

.admin-topbar {
    background: var(--black-mid);
    border-bottom: 1px solid var(--black-border);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    height: 70px;
}

.admin-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
}

.admin-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.admin-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.admin-content {
    padding: 28px;
}

/* ============================================
   TOASTS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    padding: 14px 20px;
    font-size: 0.9rem;
    color: var(--white);
    box-shadow: var(--shadow-card);
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    max-width: 320px;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--red); }
.toast.info { border-left: 4px solid var(--info); }

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .admin-sidebar { 
        position: fixed;
        left: -260px;
        transition: left 0.3s ease;
    }
    .admin-sidebar.open { left: 0; }
    .admin-menu-toggle { display: block; }
    .admin-layout { flex-direction: column; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }

    .nav-links { display: none; }
    .hamburger { display: flex; }

    .section { padding: 56px 0; }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }

    .btn-lg { padding: 15px 28px; font-size: 1rem; }

    .admin-content { padding: 16px; }
    .admin-topbar { padding: 12px 16px; height: auto; }

    /* New Responsive Fixes */
    .hero-grid, .why-grid { gap: 32px !important; }
    .hero-container { text-align: center; }
    .hero { min-height: auto !important; padding: 80px 0 !important; }
    .hero-grid div:first-child { order: 2; }
    .hero-grid div:last-child { order: 1; }
    .cta-box { padding: 32px 20px !important; }

    /* Admin specific fixes */
    .admin-content .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .quick-action { min-height: 130px; padding: 24px 16px; gap: 12px; }
    .quick-action-icon { width: 52px; height: 52px; font-size: 22px; }
    .token-display { font-size: 3.5rem; }
    
    .hero { padding: 60px 0 40px !important; min-height: auto !important; }
    .page-title { font-size: 2.2rem; }
}

/* ============================================
   UTILITIES
   ============================================ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.opacity-60 { opacity: 0.6; }
