:root {
    --bg: #f0f4f8;
    --sidebar: #0f172a;
    --sidebar-accent: #1e293b;
    --card: #ffffff;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
}

* { margin:0; padding:0; box-sizing:border-box; font-family:'Inter',sans-serif; }
body { display:flex; background:var(--bg); color:var(--text-main); height:100vh; overflow:hidden; }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar {
    width:240px; background:var(--sidebar); color:white;
    padding:1.5rem 1rem; display:flex; flex-direction:column; flex-shrink:0;
    box-shadow:4px 0 20px rgba(0,0,0,0.2);
}
.logo {
    font-size:1.4rem; font-weight:800; margin-bottom:2rem;
    padding:0.5rem 1rem; display:flex; gap:8px; align-items:center;
    color:#60a5fa; letter-spacing:-0.5px;
}
.logo i { color:#f59e0b; }
.nav { list-style:none; flex-grow:1; }
.nav li {
    padding:0.85rem 1rem; margin-bottom:0.3rem; border-radius:10px;
    cursor:pointer; display:flex; gap:10px; align-items:center;
    color:#94a3b8; transition:all 0.2s; font-size:0.9rem; font-weight:500;
}
.nav li:hover { background:rgba(255,255,255,0.08); color:white; }
.nav li.active { background:linear-gradient(135deg,#3b82f6,#2563eb); color:white; box-shadow:0 4px 12px rgba(59,130,246,0.4); }
.nav li.active i { color:white; }

.template-box {
    background:rgba(255,255,255,0.05); padding:1.2rem;
    border-radius:12px; margin-top:auto; border:1px solid rgba(255,255,255,0.08);
}
.template-box h4 { margin-bottom:0.4rem; color:#f8fafc; font-size:0.85rem; }
.template-box p { font-size:0.75rem; color:#94a3b8; margin-bottom:0.8rem; line-height:1.5; }
.btn-outline {
    display:block; text-align:center; background:transparent;
    border:1px solid rgba(255,255,255,0.15); color:#cbd5e1;
    padding:0.45rem; border-radius:7px; text-decoration:none;
    font-size:0.8rem; margin-bottom:0.4rem; transition:0.2s;
    width: 100%; cursor: pointer; font-family: inherit;
}
.btn-outline:hover { background:rgba(255,255,255,0.1); color:white; border-color: rgba(255,255,255,0.4); }


/* Sidebar Template Buttons with Matching Colors */
.template-box .btn-outline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 0.48rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.45rem;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.template-box .btn-outline i {
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.template-box .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}
.template-box .btn-pr-template:hover {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.18);
}
.template-box .btn-2b-template:hover {
    border-color: rgba(52, 211, 153, 0.55);
    box-shadow: 0 2px 10px rgba(52, 211, 153, 0.18);
}
.template-box .btn-pr-sample:hover {
    border-color: rgba(129, 140, 248, 0.55);
    box-shadow: 0 2px 10px rgba(129, 140, 248, 0.18);
}
.template-box .btn-2b-sample:hover {
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.18);
}

/* ── MAIN CONTENT ─────────────────────────────────────────────── */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto !important;
    background: var(--bg);
    height: 100vh;
    min-height: 0;
}
.main-content::-webkit-scrollbar {
    width: 8px;
}
.main-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.main-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.main-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.page-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0.25rem 1.2rem 2.5rem 1.2rem;
    min-height: min-content;
}
.page-wrap.scrollable { overflow-y: visible; }
.page-wrap.hidden { display: none !important; }
header { margin-bottom: 0.2rem; flex-shrink: 0; }
header h1 { font-size: 1.3rem; color: #0f172a; margin-bottom: 0.05rem; font-weight: 800; }
header p { color: var(--text-muted); font-size: 0.8rem; }
.text-primary { color: var(--primary); }
.text-warning { color: var(--warning); }
.hidden { display: none !important; }

#compliance-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,10,30,0.6);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
#success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,10,30,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
#compliance-modal.hidden,
#success-modal.hidden {
    display: none !important;
}


/* ── UPLOAD ───────────────────────────────────────────────────── */
.upload-container { display:flex; gap:1.5rem; margin-bottom:1.5rem; flex-shrink:0; }
.upload-card {
    flex:1; background:var(--card); padding:1.5rem; border-radius:var(--radius);
    box-shadow:0 2px 8px rgba(0,0,0,0.06); border:1px solid var(--border);
}
.upload-card h3 { margin-bottom:1rem; display:flex; gap:8px; align-items:center; font-size:1rem; font-weight:600; }
.drop-zone {
    border:2px dashed #cbd5e1; border-radius:12px; padding:1.5rem;
    text-align:center; cursor:pointer; transition:all 0.2s; background:#f8fafc;
    display:block; user-select:none;
}
.drop-zone:hover, .drop-zone.dragover { border-color:var(--primary); background:#eff6ff; border-style:solid; }
.drop-zone i { font-size:2rem; color:#94a3b8; display:block; margin-bottom:0.5rem; pointer-events:none; }
.drop-zone p { color:var(--text-muted); font-size:0.85rem; pointer-events:none; margin:0; }
.drop-zone small { color:#94a3b8; font-size:0.75rem; display:block; margin-top:4px; pointer-events:none; }
.drop-zone strong { color:var(--primary); }
.file-status { margin-top:0.8rem; font-size:0.82rem; color:#64748b; font-weight:500; text-align:center; min-height:1.2rem; }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.action-row { text-align:center; margin-bottom:1.5rem; flex-shrink:0; }
.btn-primary {
    background:linear-gradient(135deg,#3b82f6,#2563eb); color:white;
    border:none; padding:0.75rem 2rem; font-size:1rem; font-weight:600;
    border-radius:12px; cursor:pointer; transition:all 0.2s;
    box-shadow:0 8px 20px rgba(59,130,246,0.35);
    display:inline-flex; align-items:center; gap:8px;
}
.btn-primary:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 12px 25px rgba(59,130,246,0.4); }
.btn-primary:disabled { background:#cbd5e1; cursor:not-allowed; box-shadow:none; }
.btn-excel {
    background:linear-gradient(135deg,#10b981,#059669); color:white;
    border:none; padding:0.65rem 1.4rem; font-size:0.9rem; font-weight:600;
    border-radius:10px; cursor:pointer; transition:all 0.2s;
    box-shadow:0 6px 15px rgba(16,185,129,0.35);
    display:inline-flex; align-items:center; gap:8px;
}
.btn-excel:hover { transform:translateY(-1px); box-shadow:0 10px 20px rgba(16,185,129,0.4); }

/* ── COMPACT WATER WAVE CIRCULAR LOADER ────────────────────────── */
.loader { 
    text-align: center; 
    padding: 1.2rem 1rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.water-orb-wrapper {
    position: relative;
    width: 74px;
    height: 74px;
    margin: 0 auto 0.8rem auto;
}

.water-orb {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #f8fafc;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px -3px rgba(37, 99, 235, 0.3), 0 0 0 3px rgba(59, 130, 246, 0.15), inset 0 2px 6px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Liquid Waves inside Orb */
.water-wave, .water-wave-back {
    position: absolute;
    width: 160px;
    height: 160px;
    top: 105%; /* Controlled dynamically by JS */
    left: -43px;
    border-radius: 40%;
    transform-origin: 50% 50%;
    transition: top 0.35s ease-out;
    pointer-events: none;
}

.water-wave {
    background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
    animation: waveRotate 3.5s linear infinite;
    z-index: 1;
    opacity: 0.92;
}

.water-wave-back {
    background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
    animation: waveRotateBack 5s linear infinite;
    z-index: 1;
    opacity: 0.65;
}

@keyframes waveRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes waveRotateBack {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* Center Content inside Orb (Only Percentage - Never Clips!) */
.water-content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    width: 100%;
    height: 100%;
}

.water-percent {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Status text box below the orb with Time Badge */
.water-status-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 1rem;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.countdown-badge {
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(37,99,235,0.06);
}

.water-status-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

/* ── VALIDATION BOX ───────────────────────────────────────────── */
.validation-box {
    background:var(--card); padding:1.5rem; border-radius:var(--radius);
    box-shadow:0 2px 8px rgba(0,0,0,0.06); border:1px solid var(--border);
    margin-top:1rem; flex-shrink:0;
}
.validation-box h3 { margin-bottom:1rem; font-size:1rem; }
.val-row { display:flex; gap:1.5rem; }
.val-item { flex:1; padding:1rem; border:1px solid var(--border); border-radius:10px; }
.val-item h4 { margin-bottom:0.4rem; font-size:0.9rem; }

/* ── DASHBOARD ────────────────────────────────────────────────── */
.dashboard { flex-grow:1; display:flex; flex-direction:column; overflow:visible !important; gap:0.25rem; padding-bottom:1.5rem; min-height:min-content; }
.dashboard-header { display:flex; justify-content:space-between; align-items:center; flex-shrink:0; }
.dashboard-header h2 { font-size:1.05rem; font-weight:700; color:#0f172a; display:flex; gap:8px; align-items:center; }

/* Stat Cards Grid */
.stats-grid {
    display:grid; grid-template-columns:repeat(6,1fr); gap:0.35rem; flex-shrink:0;
}
.stat-card {
    background:var(--card); padding:0.35rem 0.5rem; border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,0.06); border:1px solid var(--border);
    border-top:3px solid; cursor:pointer; transition:all 0.2s;
    display:flex; align-items:center; gap:0.4rem;
}
.stat-card:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,0.1); }
.stat-icon { width:26px; height:26px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:0.8rem; flex-shrink:0; }
.stat-card h5 { font-size:0.68rem; color:var(--text-muted); font-weight:600; margin-bottom:1px; white-space:nowrap; }
.stat-card h2 { font-size:1.15rem; font-weight:800; color:#0f172a; line-height:1; margin-bottom:1px; }
.stat-card p { font-size:0.62rem; color:var(--text-muted); }

/* Financial Summary Bar */
.fin-summary {
    background:var(--card); padding:0.35rem 1rem; border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,0.06); border:1px solid var(--border);
    display:flex; align-items:center; gap:0; flex-shrink:0;
}
.fin-card { flex:1; text-align:center; padding:0.3rem 0.5rem; }
.fin-card span { display:block; font-size:0.72rem; color:var(--text-muted); font-weight:500; margin-bottom:2px; text-transform:uppercase; letter-spacing:0.5px; }
.fin-card strong { font-size:1.2rem; font-weight:800; color:#0f172a; }
.fin-card.danger strong { color:var(--danger); }
.fin-divider { width:1px; background:var(--border); height:34px; }

/* Results area */
.results-container { display:flex; flex-direction:column; gap:1.2rem; flex-grow:1; overflow:visible; }
.chart-container {
    flex-shrink:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.tables-wrapper { flex:1; display:flex; flex-direction:column; height:100%; overflow:hidden; }
.table-container {
    background:var(--card); padding:1.2rem; border-radius:var(--radius);
    box-shadow:0 2px 8px rgba(0,0,0,0.06); border:1px solid var(--border);
    overflow-y:auto; height:100%;
}
.table-container h3 { font-size:0.95rem; margin-bottom:0.2rem; display:flex; gap:8px; align-items:center; }
.subtitle { font-size:0.8rem; color:var(--text-muted); margin-bottom:0.8rem; }
.data-table { width:100%; border-collapse:collapse; font-size:0.82rem; }
.data-table th,.data-table td { padding:0.75rem 0.8rem; text-align:left; border-bottom:1px solid var(--border); }
.data-table th { background:#f8fafc; color:var(--text-muted); font-weight:600; font-size:0.75rem; text-transform:uppercase; letter-spacing:0.5px; position:sticky; top:0; }
.data-table tbody tr:hover { background:#f1f5f9; }
.badge-ai { background:rgba(245,158,11,0.12); color:#d97706; padding:0.25rem 0.6rem; border-radius:20px; font-size:0.72rem; font-weight:700; }

/* ── PAGES: How To Use + Settings ─────────────────────────────── */
.page-panel { flex-grow:1; display:flex; flex-direction:column; overflow-y:auto; }

/* Language bar */
.lang-bar {
    display:flex; align-items:center; gap:0.8rem; background:var(--card);
    padding:0.8rem 1.2rem; border-radius:10px; border:1px solid var(--border);
    margin-bottom:1.5rem; flex-shrink:0; width:fit-content;
}
.lang-bar label { font-size:0.85rem; font-weight:600; color:var(--text-muted); }
.lang-bar select { border:1px solid var(--border); border-radius:8px; padding:0.3rem 0.6rem; font-size:0.85rem; background:var(--bg); cursor:pointer; }

/* Guide content */
.guide-content { display:flex; flex-direction:column; gap:1.2rem; padding-bottom:2rem; }
.guide-step {
    background:var(--card); border-radius:var(--radius); border:1px solid var(--border);
    box-shadow:0 2px 8px rgba(0,0,0,0.05); overflow:hidden;
}
.guide-step-header {
    display:flex; align-items:center; gap:1rem;
    padding:1rem 1.5rem; border-bottom:1px solid var(--border);
    background:linear-gradient(135deg,#f8fafc,#f1f5f9);
}
.step-num {
    width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg,#3b82f6,#2563eb);
    color:white; font-weight:800; font-size:0.95rem;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.guide-step-header h4 { font-size:0.95rem; font-weight:700; }
.guide-step-body { padding:1.2rem 1.5rem; font-size:0.87rem; line-height:1.8; color:#334155; }
.guide-step-body ul { padding-left:1.5rem; margin-top:0.5rem; }
.guide-step-body li { margin-bottom:0.4rem; }

/* Sheet description row (red bar) — used in Excel */
.sheet-desc { background:#fff1f2; border-left:4px solid #ef4444; padding:0.8rem 1.2rem; border-radius:0 8px 8px 0; margin-bottom:1rem; font-size:0.82rem; color:#991b1b; font-weight:500; }

/* Settings */
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; padding-bottom:2rem; }
.settings-card {
    background:var(--card); padding:1.5rem; border-radius:var(--radius);
    box-shadow:0 2px 8px rgba(0,0,0,0.06); border:1px solid var(--border);
}
.settings-card.full-width { grid-column:1/-1; }
.settings-card h4 { font-size:0.95rem; font-weight:700; margin-bottom:0.5rem; display:flex; gap:8px; align-items:center; color:#0f172a; }
.settings-card p { font-size:0.83rem; color:var(--text-muted); margin-bottom:1rem; line-height:1.5; }
.setting-control { display:flex; align-items:center; gap:1rem; margin-bottom:0.5rem; }
.setting-control input[type=range] { flex:1; accent-color:var(--primary); }
.setting-badge { background:#eff6ff; color:var(--primary); padding:0.2rem 0.7rem; border-radius:20px; font-weight:700; font-size:0.9rem; min-width:40px; text-align:center; }
.setting-note { font-size:0.75rem; color:#f59e0b; font-weight:500; }

@keyframes popIn { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }

/* ── COLLAPSIBLE SEO FOOTER ACCORDION ─────────────── */
.seo-footer-accordion summary::-webkit-details-marker { display:none; }
.seo-footer-accordion summary::marker { display:none; }
.seo-footer-accordion summary .fa-chevron-down { transition: transform 0.25s ease; }
.seo-footer-accordion[open] summary .fa-chevron-down { transform: rotate(180deg); }
.seo-footer-accordion[open] summary { border-bottom: 1px solid #1e293b; }

/* ── FLOATING BOUNCING SCROLL ARROW ──────────────── */
@keyframes bounceJump {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.bouncing-btn, #btn-scroll-indicator {
    animation: bounceJump 2.2s infinite ease-in-out !important;
    transition: all 0.25s ease;
}
.bouncing-btn:hover, #btn-scroll-indicator:hover {
    transform: scale(1.1);
    background: rgba(59,130,246,0.75) !important;
    box-shadow: 0 6px 18px rgba(59,130,246,0.5) !important;
}

/* ── BOTTOM DRAWER SLIDE-UP ANIMATION ────────────── */
@keyframes slideUpDrawer {
    from {
        transform: translateY(100%);
        opacity: 0.5;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ── ULTRA-PREMIUM AURORA & GLASS STYLES ─────────── */
@keyframes auroraOrb1 {
    0%, 100% { transform: translate(-40px, -30px) scale(1); opacity: 0.35; }
    50% { transform: translate(50px, 40px) scale(1.25); opacity: 0.65; }
}

@keyframes auroraOrb2 {
    0%, 100% { transform: translate(40px, 30px) scale(1.15); opacity: 0.3; }
    50% { transform: translate(-40px, -50px) scale(0.9); opacity: 0.6; }
}

@keyframes radarPing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.radar-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    animation: radarPing 2s infinite;
    margin-right: 7px;
    vertical-align: middle;
}

.premium-card-wrapper {
    position: relative;
    max-width: 530px;
    width: 100%;
    border-radius: 28px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(59,130,246,0.7) 0%, rgba(139,92,246,0.35) 45%, rgba(255,255,255,0.12) 100%);
    box-shadow: 0 35px 90px -15px rgba(0, 0, 0, 0.9), 0 0 45px -10px rgba(59, 130, 246, 0.35);
    z-index: 10;
}

.premium-card-inner {
    background: rgba(10, 18, 38, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 27px;
    padding: 2.5rem 2.2rem 2rem 2.2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.erp-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.erp-pill:hover {
    background: rgba(59,130,246,0.15);
    border-color: rgba(59,130,246,0.4);
    color: #60a5fa;
    transform: translateY(-1px);
}



/* ── MOBILE RESPONSIVE STYLES ── */
/* Template Download Strip (Mobile Only - 100% Hidden on Laptop/Desktop) */
.template-download-strip {
    display: none !important;
}

/* Template Pill Buttons */
.btn-template-pill {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 13px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.btn-template-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* Pricing Grid - Desktop Default */
#pricing-container,
.pricing-container-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    width: 100%;
}
.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2.2rem 1.8rem;
    width: 31%;
    min-width: 270px;
    max-width: 360px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    text-align: center;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34, 1.25, 0.64, 1), 
                box-shadow 0.35s ease, 
                border-color 0.25s ease, 
                opacity 0.3s ease;
}

/* Default state: subtle highlight for active/selected plan */
.pricing-card.selected-plan {
    border-color: #3b82f6 !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15) !important;
}

/* GROUP HOVER EFFECT: When cursor enters pricing container, unhovered cards gently settle down */
.pricing-container-grid:hover .pricing-card {
    transform: translateY(6px) scale(0.96) !important;
    opacity: 0.82 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
}

/* HOVERED CARD: Whichever card the cursor is on lifts UP prominently with rich elevation */
.pricing-container-grid .pricing-card:hover {
    transform: translateY(-12px) scale(1.03) !important;
    opacity: 1 !important;
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.16) !important;
    border-color: #2563eb !important;
    z-index: 10 !important;
}

/* Extra punch if hovered card is the popular/selected plan */
.pricing-container-grid .pricing-card.selected-plan:hover {
    box-shadow: 0 22px 42px rgba(37, 99, 235, 0.25) !important;
}

/* Drop Zone Touch Layer Overlay */
.drop-zone {
    position: relative !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
}
.drop-zone * {
    pointer-events: none !important;
}
.drop-zone input[type="file"],
#inp-purchase,
#inp-gstr2b {
    pointer-events: auto !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 30 !important;
    display: block !important;
}


/* Dashboard Header Desktop Layout */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.dashboard-actions-sub {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ── MOBILE SCREEN BREAKPOINT (< 860px) ── */
@media screen and (max-width: 860px) {
    /* Prevent Any Horizontal Scroll Across the Page */
    html, body {
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #f0f4f8 !important;
        box-sizing: border-box !important;
    }
    *, *:before, *:after {
        box-sizing: border-box !important;
    }

    /* Sidebar Header on Mobile */
    .sidebar {
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        padding: 0.75rem 1rem !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
        box-sizing: border-box !important;
    }
    .sidebar .logo {
        margin-bottom: 0.5rem !important;
        font-size: 1.25rem !important;
        padding: 0 !important;
    }
    .sidebar .nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .sidebar .nav li {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.82rem !important;
        margin-bottom: 0 !important;
        border-radius: 8px !important;
        flex: 1 1 auto !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    /* ── USER REQUEST: HIDE DARK SIDEBAR TEMPLATE BOX & CONTACTS ON MOBILE ── */
    .sidebar .template-box {
        display: none !important;
    }
    .sidebar div[style*="border-top: 1px solid #333"] {
        display: none !important;
    }

    /* Main Content & Page Wrappers */
    .main-content {
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-wrap {
        padding: 1rem 0.85rem 5rem 0.85rem !important;
        height: auto !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        box-sizing: border-box !important;
    }

    /* Template download strip on mobile */
    .template-download-strip {
        display: flex !important;
        background: white !important;
        padding: 0.8rem 1rem !important;
        border-radius: 12px !important;
        margin-bottom: 1.2rem !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .template-download-strip > div {
        justify-content: center !important;
    }
    .btn-template-pill {
        flex: 1 1 45% !important;
        justify-content: center !important;
        padding: 8px 10px !important;
    }

    /* Upload Cards: Stack vertically */
    .upload-container {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
    }
    .upload-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 1.2rem !important;
        box-sizing: border-box !important;
    }
    .drop-zone {
        padding: 1.8rem 1rem !important;
        min-height: 150px !important;
    }

    /* ── DASHBOARD HEADER & ACTION BUTTONS MOBILE FIX (NO RIGHT SCROLL!) ── */
    .dashboard {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .dashboard-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        width: 100% !important;
        margin-bottom: 0.75rem !important;
    }
    .dashboard-header h2 {
        font-size: 1.15rem !important;
        text-align: center !important;
        justify-content: center !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .dashboard-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.55rem !important;
    }
    .dashboard-actions-sub {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }
    .dashboard-actions-sub .btn-dash-action {
        flex: 1 1 50% !important;
        width: 50% !important;
        padding: 0.75rem 0.4rem !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    #btn-download-excel,
    .btn-dash-export {
        width: 100% !important;
        padding: 0.85rem 0.75rem !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
        box-shadow: 0 4px 14px rgba(16,185,129,0.3) !important;
    }

    /* 16 Summary Stats: 2 Clean Columns with zero overflow */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .stat-card {
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .fin-summary {
        padding: 0.5rem 0.75rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .fin-summary h2 {
        font-size: 1.3rem !important;
    }
    .fin-summary h5 {
        font-size: 0.72rem !important;
    }

    /* ── PRICING PAGE MOBILE FIX: SHOW ALL 3 PLANS VERTICALLY ── */
    #page-pricing {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh !important;
        display: block !important;
        padding-bottom: 6rem !important;
    }
    #page-pricing.hidden {
        display: none !important;
    }
    #pricing-container,
    .pricing-container-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 1.5rem !important;
        margin-top: 1.2rem !important;
    }
    .pricing-card {
        width: 100% !important;
        max-width: 420px !important;
        min-width: 0 !important;
        flex: none !important;
        margin-bottom: 1rem !important;
        padding: 1.8rem 1.4rem !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Action Buttons (Validation) */
    .action-row {
        margin-bottom: 1rem !important;
        width: 100% !important;
    }
    #btn-validate,
    .btn-primary,
    .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
    }

    /* Tables & Responsive Wrappers */
    .table-responsive,
    table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
    }

    /* Modals */
    .modal-content,
    #compliance-modal > div,
    #success-modal > div {
        width: 95% !important;
        max-width: 95vw !important;
        padding: 1.2rem !important;
        margin: 10px auto !important;
    }
}

/* FAQ Accordion Interactive Styling */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item:hover { border-color: #93c5fd !important; background: #ffffff !important; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08); }
.faq-item[open] { border-color: #3b82f6 !important; background: #ffffff !important; box-shadow: 0 6px 16px rgba(59, 130, 246, 0.12); }
.faq-item[open] summary { color: #1d4ed8 !important; }
.faq-item[open] summary .fa-chevron-down { transform: rotate(180deg); color: #2563eb !important; }

/* ══════════════════════════════════════════════════════════════════════════
   OFFICIAL BANNER-STYLE HIGH-IMPACT LOGIN SCREEN (100% OPAQUE, ZERO LEAK)
   ══════════════════════════════════════════════════════════════════════════ */
.login-overlay-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #080e1e !important;
    background-image: 
        radial-gradient(circle at 50% 18%, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) !important;
    background-size: 100% 100%, 42px 42px, 42px 42px !important;
    z-index: 999999 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 30px 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.login-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    opacity: 0.65;
}

.banner-content-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto 0;
}

.banner-falcon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.banner-falcon-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.5));
    transition: transform 0.3s ease;
}

.banner-falcon-img:hover {
    transform: scale(1.08);
}

.banner-top-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.85);
    border: 1.5px solid #60a5fa;
    border-radius: 999px;
    padding: 6px 20px;
    color: #93c5fd;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
    margin-bottom: 14px;
}

.banner-hero-h1 {
    font-size: 3.3rem;
    font-weight: 900;
    line-height: 1.18;
    margin: 0 0 14px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.banner-hero-h1 span {
    display: block;
}

.banner-grad-text {
    background: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-hero-sub {
    color: #cbd5e1;
    font-size: 1.15rem;
    font-weight: 400;
    max-width: 880px;
    margin: 0 0 24px;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.banner-auth-capsule {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 4px 0 32px;
    z-index: 20;
}

.grok-google-btn-wrap {
    position: relative;
    width: 320px;
    height: 46px;
    margin: 4px 0 14px;
    cursor: pointer;
    user-select: none;
}

.grok-google-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #000000;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.grok-google-btn-wrap:hover .grok-google-btn {
    border-color: #ffffff;
    background: #0d1424;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.grok-google-btn-wrap:active .grok-google-btn {
    transform: scale(0.98);
}

.google-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.google-native-hitbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.0001; /* Invisible so only custom Grok button is visible */
    overflow: hidden;
    z-index: 5;
    border-radius: 9999px;
    cursor: pointer;
}

.google-native-hitbox iframe {
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
    transform: scale(1.15);
}

.banner-auth-privacy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #10b981;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
    padding: 4px 14px;
    border-radius: 20px;
}

.banner-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

.banner-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 22px 18px;
    text-align: left;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.banner-card:hover {
    border-color: rgba(96, 165, 250, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.15);
}

.banner-card-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 3px 10px;
    border-radius: 6px;
    color: #ffffff;
    margin-bottom: 12px;
}

.tag-blue {
    background: #2563eb;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.tag-purple {
    background: #9333ea;
    box-shadow: 0 0 12px rgba(147, 51, 234, 0.4);
}

.tag-red {
    background: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.tag-emerald {
    background: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.banner-card-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.banner-card-desc {
    color: #94a3b8;
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0;
}

.banner-footer-strip {
    color: #64748b;
    font-size: 0.84rem;
    letter-spacing: 0.2px;
    text-align: center;
    margin-top: 6px;
    opacity: 0.85;
}

@media (max-width: 1024px) {
    .banner-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-hero-h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 640px) {
    .login-overlay-wrap {
        padding: 24px 14px;
        justify-content: flex-start;
    }
    .banner-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .banner-hero-h1 {
        font-size: 2rem;
    }
    .banner-hero-sub {
        font-size: 0.95rem;
    }
    .banner-top-pill {
        font-size: 0.75rem;
        padding: 4px 14px;
    }
}


/* ==========================================================================
   GST-HAWK CONNECTED 4-STEP PIPELINE & 19-SHEET CA AUDIT MODAL
   ========================================================================== */

.banner-pipeline-wrap {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.banner-pipeline-step {
    flex: 1 1 0;
    min-width: 0;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: left;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
}

.banner-pipeline-step:hover {
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 16px 35px -5px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.18);
}

.banner-pipeline-step.step-featured {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.92) 100%);
}

.banner-pipeline-step.step-featured:hover {
    border-color: rgba(52, 211, 153, 0.7);
    box-shadow: 0 16px 35px -5px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.25);
}

.banner-pipeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 1.25rem;
    padding: 0 4px;
    flex-shrink: 0;
    animation: arrowGlow 2.5s infinite ease-in-out;
}

@keyframes arrowGlow {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.6;
        text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
    }
    50% {
        transform: translateX(4px);
        opacity: 1;
        text-shadow: 0 0 16px rgba(56, 189, 248, 0.95), 0 0 25px rgba(56, 189, 248, 0.6);
    }
}

.step-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.step-mini-icon {
    font-size: 1.15rem;
    color: #94a3b8;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.banner-pipeline-step:hover .step-mini-icon {
    color: #ffffff;
    opacity: 1;
    transform: scale(1.1);
}

.tag-amber {
    background: #d97706;
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.4);
}

.step-template-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
}

.btn-step-action {
    flex: 1;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-step-action:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.step-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
}

.step-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.72rem;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.step-chip.speed-highlight {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
    font-weight: 700;
}

.step-sheets-preview {
    margin-top: auto;
    padding-top: 12px;
}

.btn-open-sheets-modal {
    width: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.28));
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #34d399;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
}

.btn-open-sheets-modal:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.38), rgba(5, 150, 105, 0.5));
    border-color: #34d399;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.sheets-pill-ticker {
    margin-top: 8px;
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.35;
}

.sheets-pill-ticker span {
    color: #a7f3d0;
    font-weight: 600;
}

/* 19-Sheet Modal Styles */
.sheets-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 9, 23, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.sheets-modal-backdrop.active {
    display: flex;
}

.sheets-modal-card {
    background: #0b1329;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    max-width: 980px;
    width: 100%;
    max-height: 88vh;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(16, 185, 129, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.sheets-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.7);
}

.sheets-modal-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sheets-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #10b981;
}

.sheets-modal-h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.sheets-modal-sub {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}

.sheets-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sheets-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.sheets-modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sheets-group {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
}

.sheets-group-title {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sheets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.sheet-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
}

.sheet-item:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(30, 41, 59, 0.9);
}

.sheet-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sheet-num {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.sheet-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f1f5f9;
}

.sheet-item-desc {
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.35;
    margin: 0;
}

.sheets-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #94a3b8;
}

.sheets-modal-footer strong {
    color: #34d399;
}

/* Responsive adjustments for Pipeline & Mobile Login Screen */
@media (min-width: 681px) and (max-width: 1080px) {
    .banner-pipeline-wrap {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
        width: 100% !important;
    }
    .banner-pipeline-step {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        box-sizing: border-box !important;
    }
    .banner-pipeline-arrow {
        display: none !important;
    }
}

@media (max-width: 680px) {
    .login-overlay-wrap {
        display: block !important;
        padding: 20px 14px 40px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .banner-content-container {
        margin: 0 auto !important;
        height: auto !important;
        min-height: auto !important;
        width: 100% !important;
    }
    .banner-hero-h1 {
        font-size: 1.85rem !important;
        line-height: 1.25 !important;
        margin-bottom: 10px !important;
    }
    .banner-hero-sub {
        font-size: 0.86rem !important;
        margin-bottom: 16px !important;
    }
    .banner-auth-capsule {
        margin-bottom: 18px !important;
    }
    .banner-pipeline-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    .banner-pipeline-step {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 16px 14px !important;
        box-sizing: border-box !important;
    }
    .banner-pipeline-arrow {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #38bdf8 !important;
        padding: 2px 0 !important;
        font-size: 1rem !important;
        transform: rotate(90deg) !important;
        animation: none !important;
    }
    .banner-card-title {
        font-size: 1.05rem !important;
        margin-bottom: 6px !important;
    }
    .banner-card-desc {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
    }
    .step-template-actions {
        margin-top: 10px !important;
        padding-top: 0 !important;
    }
    .step-feature-chips {
        margin-top: 10px !important;
        padding-top: 0 !important;
    }
    .step-sheets-preview {
        margin-top: 10px !important;
        padding-top: 0 !important;
    }
    .banner-footer-strip {
        font-size: 0.76rem !important;
        padding-bottom: 24px !important;
    }
}

