@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+Bengali:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Premium Green Theme */
    --color-primary-bg: #008532;
    --color-primary-light: #2DAB5B;
    --color-primary-dark: #00501e;
    --color-secondary-bg: #DC2626;
    --color-secondary-light: #FEF2F2;
    --color-secondary-dark: #B91C1C;
    --color-accent: #f59e0b;
    
    /* Neutral Colors */
    --color-text-main: #0f172a;
    --color-text-muted: #475569;
    --color-bg-body: #f8fafc;
    --color-bg-card: #ffffff;
    --color-bg-surface: #e2e8f0;
    
    /* Shadows - Soft and modern */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 133, 50, 0.3);
    
    /* Radii */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-pill: 9999px;
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Secure portal and appointment modules */
.portal-shell { min-height: 65vh; background: #f6f8f7; }
.portal-card { background: #fff; border: 1px solid #e3e9e6; border-radius: 16px; padding: 1.5rem; box-shadow: 0 8px 28px rgba(7, 64, 39, .06); }

.action-toast { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 1100; width: min(420px, calc(100vw - 2rem)); display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; color: #17372a; background: #fff; border: 1px solid #dce8e2; border-left: 5px solid #198754; border-radius: 14px; box-shadow: 0 18px 50px rgba(18, 54, 40, .2); animation: toast-in .2s ease-out; }
.action-toast--error { border-left-color: #c0392b; }
.action-toast__icon { display: grid; place-items: center; flex: 0 0 1.75rem; width: 1.75rem; height: 1.75rem; color: #fff; background: #198754; border-radius: 50%; font-weight: 800; }
.action-toast--error .action-toast__icon { background: #c0392b; }
.action-toast__content { display: grid; gap: .1rem; flex: 1; line-height: 1.35; }
.action-toast__content span { color: #52655d; font-size: .92rem; }
.action-toast__close { padding: 0; color: #66776f; background: transparent; border: 0; font-size: 1.4rem; line-height: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .action-toast { top: .75rem; right: .75rem; width: calc(100vw - 1.5rem); } }

.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; padding: .85rem; background: #f6f9f7; border: 1px solid #e3eae6; border-radius: 12px; }
.table-toolbar .table-search { flex: 1 1 260px; max-width: 440px; }
.modern-table { --bs-table-bg: transparent; margin-bottom: 0; }
.modern-table thead th { padding: .8rem 1rem; color: #52645c; background: #f7f9f8; border-bottom: 1px solid #dce5e0; font-size: .75rem; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.modern-table tbody td { padding: 1rem; border-bottom-color: #e8eeeb; vertical-align: middle; }
.modern-table tbody tr { transition: background-color .15s ease; }
.modern-table tbody tr:hover { background: #f8fbf9; }
.modern-table tbody tr:last-child td { border-bottom: 0; }
.table-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; color: #65766e; font-size: .875rem; border-top: 1px solid #e6ece9; }
.type-name-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: .65rem 0 .85rem; }
.type-name-chip { padding: .24rem .55rem; color: #24573f; background: #edf7f1; border-radius: 999px; font-size: .78rem; font-weight: 650; }
.nav-logout-form { margin: 0; border-top: 1px solid rgba(0,0,0,.08); }
.nav-logout-button { width: 100%; padding: .65rem 1rem; color: #a52828; background: transparent; border: 0; text-align: left; font: inherit; }
.nav-logout-button:hover { color: #7f1d1d; background: #fff5f5; }
.auth-card { max-width: 480px; margin: 2rem auto; }
.section-eyebrow { display: block; color: #08783f; font-size: .75rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .35rem; }
.mfa-key { display: inline-block; padding: .75rem 1rem; border: 1px dashed #9eb8aa; border-radius: 8px; background: #f5faf7; font-family: monospace; font-size: 1.05rem; letter-spacing: .12em; word-break: break-all; }
.mfa-qr { max-width: 100%; height: auto; padding: .6rem; background: #fff; border: 1px solid #dce6e0; border-radius: 12px; image-rendering: pixelated; }
.recovery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .35rem; margin-top: .75rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.slot-card { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem; text-align: left; border: 1px solid #d9e5df; background: #fff; border-radius: 12px; transition: .18s ease; }
.slot-card:hover, .slot-card--selected { border-color: #078442; box-shadow: 0 5px 20px rgba(0, 102, 51, .12); transform: translateY(-1px); }
.slot-card--selected { outline: 2px solid rgba(7, 132, 66, .17); }
.slot-card strong { color: #076a38; font-size: 1.2rem; }
.slot-card--full, .slot-card--full:disabled { color: #7b8580; background: #eef1ef; border-color: #d9dedb; cursor: not-allowed; opacity: .72; box-shadow: none; transform: none; }
.slot-card--full:hover { border-color: #d9dedb; box-shadow: none; transform: none; }
.slot-card--full strong { color: #6f7874; }
.slot-card--full .slot-full-label { color: #646d69; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }
.slot-date { font-weight: 700; }
.slot-card small { color: #68766f; }
.selected-slot { padding: .85rem 1rem; background: #eef8f2; border-left: 4px solid #078442; border-radius: 6px; }
.status-pill { display: inline-block; padding: .25rem .55rem; border-radius: 999px; background: #eef1ef; font-size: .78rem; font-weight: 700; }
.status-requested { background: #fff3cd; color: #745700; }
.status-approved, .status-completed { background: #d9f3e3; color: #075e31; }
.status-rejected, .status-cancelled, .status-noshow { background: #f9dfe1; color: #8d1d28; }
.booking-details dt { color: #6b7770; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.booking-details dd { margin-bottom: .8rem; word-break: break-word; }
.setting-toggle { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid #edf0ee; cursor: pointer; }
.setting-toggle input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; }
.setting-toggle span { display: flex; flex-direction: column; }
.setting-toggle small { color: #738078; }

html, body {
    font-family: 'Outfit', 'Noto Sans Bengali', system-ui, sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-bg), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    color: var(--color-primary-bg);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Micro-animations & interactive elements */
.hover-lift {
    transition: var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.hover-scale {
    transition: var(--transition-base);
}

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

/* Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
}

.glass-panel-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    color: white;
}

/* Custom Buttons */
.btn-modern {
    background: linear-gradient(135deg, var(--color-primary-bg), var(--color-primary-light));
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-base);
    cursor: pointer;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.btn-modern:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
    color: white;
}

.btn-modern-outline {
    background: transparent;
    color: var(--color-primary-bg);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    border: 2px solid var(--color-primary-bg);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-base);
    cursor: pointer;
    display: inline-block;
}

.btn-modern-outline:hover {
    background: var(--color-primary-bg);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Layout */
.container-modern {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.card-modern {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 2rem;
    transition: var(--transition-base);
    height: 100%;
}

.card-modern:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 133, 50, 0.2);
}

.home-card-icon { display:inline-flex; align-items:center; justify-content:center; width:80px; height:80px; margin-bottom:1.5rem; border-radius:50%; box-shadow:var(--shadow-sm); }
.home-card-icon svg { width:38px; height:38px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.home-card-icon--green { color:#148448; background:linear-gradient(135deg,rgba(0,133,50,.12),rgba(0,133,50,.05)); }
.home-card-icon--red { color:#e83b4c; background:linear-gradient(135deg,rgba(220,38,38,.11),rgba(220,38,38,.04)); }
.notice-marquee { white-space:nowrap; }
.notice-marquee a { color:#fff; text-decoration:none; }
.notice-marquee a:hover { color:#d9f7e6; }
.notice-marquee__separator { margin:0 2rem; color:rgba(255,255,255,.45); }
.notice-section-heading { display:flex; align-items:center; gap:.8rem; margin-bottom:1rem; }
.notice-section-heading h2 { margin:0; font-size:1.5rem; }
.notice-section-heading p { margin:0; color:#718078; font-size:.9rem; }
.notice-status-dot { width:.7rem; height:.7rem; flex:none; background:#7a8781; border-radius:50%; box-shadow:0 0 0 5px rgba(122,135,129,.12); }
.notice-status-dot--current { background:#198754; box-shadow:0 0 0 5px rgba(25,135,84,.13); }
.notice-status-dot--future { background:#2878c8; box-shadow:0 0 0 5px rgba(40,120,200,.13); }
.notice-list { display:grid; gap:1rem; }
.notice-card { display:grid; grid-template-columns:90px minmax(0,1fr); gap:1.25rem; padding:1.35rem; background:#fff; border:1px solid #e0e8e4; border-radius:15px; box-shadow:0 6px 24px rgba(7,64,39,.05); }
.notice-card time { display:flex; flex-direction:column; justify-content:center; align-items:center; min-height:78px; color:#17643d; background:#edf7f1; border-radius:11px; text-align:center; }
.notice-card time strong { font-size:1.8rem; line-height:1; }
.notice-card time span { margin-top:.3rem; font-size:.75rem; font-weight:700; text-transform:uppercase; }
.notice-card__body h3 { margin:0 0 .55rem; font-size:1.2rem; }
.notice-card__body p { margin:0; color:#56665e; white-space:pre-line; }
.notice-table-description { display:inline-block; max-width:520px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:575.98px){.notice-card{grid-template-columns:1fr}.notice-card time{width:90px}}
.notice-files { display:grid; gap:.55rem; margin-top:1.1rem; padding-top:1rem; border-top:1px solid #e5ece8; }
.notice-file { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem; padding:.65rem; background:#f7faf8; border:1px solid #e3eae6; border-radius:10px; }
.notice-file__icon { display:grid; place-items:center; width:42px; height:34px; color:#fff; background:#198754; border-radius:7px; font-size:.68rem; font-weight:800; }
.notice-file>div { display:grid; flex:1; min-width:180px; }
.notice-file>div strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notice-file>div small { color:#6c7c74; }
.notice-upload { display:flex; flex-direction:column; gap:.45rem; padding:1rem; background:#f7faf8; border:1px dashed #9ebbad; border-radius:11px; }
.notice-upload span { color:#68786f; font-size:.82rem; }
.notice-upload-list { display:grid; gap:.35rem; }
.notice-upload-list>div { display:flex; align-items:center; gap:.65rem; padding:.45rem .7rem; background:#f7f9f8; border-radius:8px; }
.notice-upload-list>div span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notice-upload-list>div small { color:#6c7c74; white-space:nowrap; }
.notice-preview-modal { z-index:1090; }
.notice-preview-modal+.modal-backdrop { z-index:1085; }
.notice-pdf-preview { display:block; width:100%; height:min(76vh,900px); min-height:520px; border:0; background:#303030; }
.notice-image-preview { display:grid; place-items:center; min-height:420px; max-height:76vh; padding:1rem; overflow:auto; background:#252525; }
.notice-image-preview img { max-width:100%; height:auto; object-fit:contain; box-shadow:0 5px 30px rgba(0,0,0,.35); }
@media(max-width:575.98px){.notice-pdf-preview{height:70vh;min-height:420px}}

.page-hero { padding:4.5rem 0 3.5rem; color:#fff; background:linear-gradient(125deg,#004b21,#008532 62%,#159447); }
.page-hero h1 { color:#fff; font-size:clamp(2.2rem,5vw,3.8rem); margin:.8rem 0 1rem; }
.page-hero p { max-width:760px; margin:0; color:rgba(255,255,255,.8); font-size:1.12rem; }
.page-breadcrumb { display:flex; gap:.6rem; font-size:.83rem; color:rgba(255,255,255,.7); }
.page-breadcrumb a { color:#fff; }
.page-layout { display:grid; grid-template-columns:250px minmax(0,1fr); gap:2.5rem; padding-top:3.5rem; padding-bottom:3rem; align-items:start; }
.page-sidebar { position:sticky; top:1.5rem; display:flex; flex-direction:column; padding:1rem; background:#fff; border:1px solid #e2e8f0; border-radius:14px; box-shadow:var(--shadow-sm); }
.page-sidebar strong { padding:.55rem .7rem .85rem; color:var(--color-primary-dark); }
.page-sidebar a { padding:.62rem .7rem; border-radius:7px; color:var(--color-text-muted); font-size:.88rem; }
.page-sidebar a:hover,.page-sidebar a.active { background:rgba(0,133,50,.09); color:var(--color-primary-bg); }
.content-panel { background:#fff; border:1px solid #e2e8f0; border-radius:18px; padding:clamp(1.5rem,4vw,3rem); box-shadow:var(--shadow-sm); }
.content-section { padding-bottom:1.5rem; margin-bottom:1.5rem; border-bottom:1px solid #e8edf2; }
.content-section:last-of-type { border-bottom:0; }
.content-section h2 { color:var(--color-primary-dark); font-size:1.45rem; margin-bottom:1rem; }
.content-section li { margin-bottom:.55rem; padding-left:.25rem; }
.content-section li::marker { color:var(--color-primary-bg); }
.service-note { margin-top:2rem; padding:1rem 1.2rem; background:#f0f9f3; border-left:4px solid var(--color-primary-bg); border-radius:7px; }
@media(max-width:768px){.page-layout{grid-template-columns:1fr;gap:1.25rem}.page-sidebar{position:static}.page-hero{padding:3rem 0}.content-panel{padding:1.4rem}}

/* Abstract blobs for backgrounds */
.blob-shape {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, -30px) rotate(10deg); }
}

/* Blazor overrides */
.blazor-error-boundary {
    background: #DC2626;
    padding: 1rem 1.5rem;
    color: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

/* =====================
   TOP BAR
   ===================== */
.topbar {
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.02em;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.topbar-left { display: flex; align-items: center; gap: 1.5rem; }

.topbar-item { display: flex; align-items: center; gap: 0.45rem; }

.lang-toggle { display: flex; align-items: center; gap: 0.5rem; }

.lang-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    transition: color 0.2s;
    font-family: inherit;
}

.lang-btn--active { color: var(--color-primary-light) !important; }
.lang-btn:hover { color: white; }
.lang-sep { color: rgba(255,255,255,0.2); font-size: 0.7rem; }

/* =====================
   LOGO BAR
   ===================== */
.logo-bar {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 1rem 0;
}

.logo-bar-inner { display: flex; align-items: center; }

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.logo-emblem { flex-shrink: 0; }

.logo-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.35;
    display: block;
    max-width: 420px;
}

/* =====================
   MAIN NAV
   ===================== */
.main-nav {
    background: var(--color-primary-bg);
    position: relative;
    z-index: 100;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    position: relative;
}

.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.1rem;
    right: 1.1rem;
    height: 2px;
    background: rgba(255,255,255,0.8);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 2px 2px 0 0;
}

.nav-link-item:hover,
.nav-link-item:hover::after,
.nav-dropdown--open > .nav-link-item::after {
    color: white;
    transform: scaleX(1);
}

.nav-link-item:hover { color: white; }

.chevron-icon {
    transition: transform 0.3s;
    opacity: 0.7;
}

.nav-dropdown--open > .nav-link-item .chevron-icon {
    transform: rotate(180deg);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    margin: 0.6rem 0;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* =====================
   MEGA PANEL
   ===================== */
.nav-dropdown { position: relative; }

.mega-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 720px;
    background: white;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 24px 60px rgba(0,0,0,0.14), 0 2px 12px rgba(0,0,0,0.06);
    border-top: 3px solid var(--color-primary-bg);
    z-index: 999;
    animation: megaFadeIn 0.2s ease;
}

.nav-dropdown--open .mega-panel { display: block; }

.simple-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 245px;
    padding: .55rem;
    background: #fff;
    border-top: 3px solid var(--color-primary-bg);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
    z-index: 999;
}

.nav-dropdown--open .simple-menu { display: block; }
.simple-menu a { display:block; padding:.65rem .8rem; color:var(--color-text-muted); border-radius:7px; font-size:.85rem; font-weight:500; }
.simple-menu a:hover { color:var(--color-primary-bg); background:rgba(0,133,50,.07); padding-left:1rem; }

@@keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mega-panel-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 0;
}

.mega-category {
    padding: 1.5rem 1.25rem;
    border-right: 1px solid rgba(0,0,0,0.06);
}

.mega-category:last-child { border-right: none; }

.mega-category-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.mega-category-header span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mega-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.mega-icon--green  { background: rgba(0, 133, 50, 0.12); color: var(--color-primary-bg); }
.mega-icon--blue   { background: rgba(37, 99, 235, 0.1);  color: #2563eb; }
.mega-icon--amber  { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.mega-icon--red    { background: rgba(220, 38, 38, 0.1);  color: #dc2626; }
.mega-icon--slate  { background: rgba(100, 116, 139, 0.1); color: #64748b; }

.mega-link {
    display: block;
    padding: 0.4rem 0.5rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.18s ease;
    font-weight: 500;
    margin-bottom: 0.1rem;
}

.mega-link:hover {
    color: var(--color-primary-bg);
    background: rgba(0, 133, 50, 0.06);
    padding-left: 0.85rem;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.6);
    padding: 3.5rem 0 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-heading {
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    text-align: center;
    padding: 1.25rem 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}

.footer-bottom p { margin: 0; }
.footer-bottom .demo-disclaimer {
    margin-top: .35rem;
    color: rgba(255,255,255,0.55);
    font-size: .8rem;
}

/* Authenticated staff guide */
.staff-guide-page { scroll-behavior: smooth; }
.staff-guide-hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; padding: 2rem; border: 1px solid #dfe9e4; border-radius: 20px; background: linear-gradient(135deg, #fff 35%, #edf8f2); }
.staff-guide-hero h1 { margin: 0 0 .5rem; }
.staff-guide-hero p { max-width: 720px; margin: 0; color: #66766e; }
.guide-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.guide-quick-card { position: relative; display: flex; flex-direction: column; min-height: 135px; padding: 1.2rem; overflow: hidden; color: #182b22; text-decoration: none; border: 1px solid #dfe8e3; border-radius: 15px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.guide-quick-card:hover { color: #0a6337; border-color: #80ba9b; box-shadow: 0 10px 28px rgba(15, 90, 52, .1); transform: translateY(-2px); }
.guide-quick-card > span { position: absolute; top: .4rem; right: .8rem; color: #e2f1e9; font-size: 2.5rem; font-weight: 800; line-height: 1; }
.guide-quick-card strong { position: relative; margin-top: 2.2rem; font-size: 1rem; }
.guide-quick-card small { position: relative; color: #748079; }
.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2rem; align-items: start; }
.guide-nav { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem; border: 1px solid #dfe8e3; border-radius: 14px; background: #fff; }
.guide-nav strong { padding: .35rem .55rem .7rem; color: #193c2b; }
.guide-nav a { padding: .48rem .55rem; color: #627169; text-decoration: none; border-radius: 8px; font-size: .88rem; }
.guide-nav a:hover { color: #08783f; background: #edf7f1; }
.guide-content { min-width: 0; }
.guide-section { scroll-margin-top: 1rem; margin-bottom: 1.5rem; padding: 2rem; border: 1px solid #dfe8e3; border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(22, 61, 42, .04); }
.guide-section h3 { margin: 1.6rem 0 .75rem; color: #204b35; font-size: 1.05rem; }
.guide-section > p { color: #56675e; }
.guide-section a { color: #08783f; font-weight: 650; }
.guide-section-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.guide-section-heading > span { display: grid; flex: 0 0 46px; height: 46px; place-items: center; color: #08783f; background: #eaf6ef; border-radius: 50%; font-weight: 800; }
.guide-section-heading p { margin: 0 0 .1rem; color: #11824a; font-size: .7rem; font-weight: 800; letter-spacing: .11em; }
.guide-section-heading h2 { margin: 0; font-size: 1.55rem; }
.guide-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.guide-feature-list > div { display: flex; flex-direction: column; padding: 1rem; background: #f7faf8; border-radius: 10px; }
.guide-feature-list span { color: #68776f; font-size: .88rem; }
.guide-steps { display: grid; gap: .8rem; padding: 0; margin: 1rem 0; list-style: none; }
.guide-steps li { display: flex; gap: .9rem; padding: 1rem; border: 1px solid #e5ece8; border-radius: 11px; }
.guide-steps li > span { display: grid; flex: 0 0 30px; height: 30px; place-items: center; color: #fff; background: #11834b; border-radius: 50%; font-size: .8rem; font-weight: 800; }
.guide-steps p { margin: .15rem 0 0; color: #68776f; font-size: .9rem; }
.guide-steps--compact li { padding: .75rem 1rem; }
.guide-bullets { display: grid; gap: .55rem; padding-left: 1.25rem; color: #56675e; }
.guide-bullets li::marker { color: #11834b; }
.guide-callout { margin: 1.2rem 0; padding: 1rem 1.15rem; border-left: 4px solid #168b57; border-radius: 8px; background: #edf8f2; }
.guide-callout strong { color: #135c37; }
.guide-callout p { margin: .2rem 0 0; color: #52675b; }
.guide-callout--tip { border-left-color: #2286b5; background: #edf7fc; }
.guide-callout--warning { border-left-color: #dc8b16; background: #fff8e8; }
.guide-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.guide-status-grid > div { padding: .8rem; border: 1px solid #e5ece8; border-radius: 10px; }
.guide-status-grid p { margin: .45rem 0 0; color: #6b7871; font-size: .85rem; }
.guide-example { display: flex; gap: .6rem; margin-top: 1rem; padding: .9rem 1rem; color: #53675b; background: #f2f7f4; border-radius: 10px; }
.guide-example strong { color: #08783f; }
.guide-faq { display: grid; gap: .65rem; }
.guide-faq details { border: 1px solid #e1e9e5; border-radius: 10px; background: #fbfdfc; }
.guide-faq summary { padding: .9rem 1rem; color: #234534; cursor: pointer; font-weight: 700; }
.guide-faq details div { padding: 0 1rem 1rem; color: #617169; }
.guide-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.guide-check-grid > div { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem; background: #f5faf7; border-radius: 10px; }
.guide-check-grid span { display: grid; flex: 0 0 25px; height: 25px; place-items: center; color: #fff; background: #11834b; border-radius: 50%; font-weight: 800; }
.guide-check-grid p { margin: 0; color: #53665b; font-size: .9rem; }

@media (max-width: 900px) {
    .guide-layout { grid-template-columns: 1fr; }
    .guide-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-nav strong { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .staff-guide-hero { align-items: flex-start; flex-direction: column; padding: 1.35rem; }
    .guide-section { padding: 1.25rem; }
    .guide-feature-list, .guide-status-grid, .guide-check-grid { grid-template-columns: 1fr; }
    .guide-nav { grid-template-columns: 1fr; }
    .guide-section-heading { align-items: flex-start; }
}

/* =====================
   MOBILE
   ===================== */
@media (max-width: 992px) {
    .nav-hamburger { display: flex; }

    .nav-inner { flex-wrap: wrap; }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        background: var(--color-primary-dark);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

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

    .nav-link-item {
        padding: 0.9rem 1.25rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        width: 100%;
        justify-content: space-between;
    }

    .nav-link-item::after { display: none; }

    .mega-panel {
        position: static;
        min-width: unset;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        border-top: 1px solid rgba(255,255,255,0.06);
        animation: none;
    }

    .simple-menu { position:static; min-width:0; border:0; border-radius:0; box-shadow:none; padding:.35rem 1rem .75rem; }

    .mega-panel-inner {
        grid-template-columns: 1fr 1fr;
    }

    .mega-category {
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
}

@media (max-width: 576px) {
    .mega-panel-inner { grid-template-columns: 1fr; }

    .container-modern { padding: 0 1rem; }

    .display-3 { font-size: 2.2rem; }

    .display-5 { font-size: 1.8rem; }

    .btn-modern, .btn-modern-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .blob-shape {
        filter: blur(40px);
        width: 80vw !important;
        height: 80vw !important;
        opacity: 0.25;
    }
}


/* Mega Menu */
.mega-menu-box {
    margin-top: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    border-top: 4px solid var(--color-primary-bg) !important;
    min-width: 900px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    font-weight: 500;
}

.menu-link:hover {
    background-color: rgba(0, 133, 50, 0.05);
    color: var(--color-primary-bg);
    transform: translateX(4px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container-modern {
        padding: 0 1.25rem;
    }
    
    .blob-shape {
        filter: blur(40px);
        width: 80vw !important;
        height: 80vw !important;
        opacity: 0.3;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .btn-modern, .btn-modern-outline {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .glass-panel-dark .blob-shape {
        display: none;
    }
    
    .mega-menu-box {
        min-width: 100%;
        left: 0;
        transform: none;
        margin-top: 0;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
}
