:root{
    --bg:#07111f;
    --bg-soft:#0c1730;
    --card:rgba(13,22,42,.72);
    --card-strong:#101b33;
    --line:rgba(255,255,255,.08);
    --text:#eef4ff;
    --muted:#97a7c7;
    --primary:#5b8cff;
    --secondary:#16c7b7;
    --accent:#9f7aea;
    --success:#2fd27f;
    --shadow:0 24px 70px rgba(0,0,0,.35);
    --radius:24px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
    min-height:100vh;
    color:var(--text);
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:
        radial-gradient(circle at 10% 20%, rgba(91,140,255,.18), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(22,199,183,.12), transparent 25%),
        radial-gradient(circle at 60% 80%, rgba(159,122,234,.14), transparent 24%),
        linear-gradient(180deg, #06101d 0%, #0a1427 48%, #0e1a33 100%);
    overflow-x:hidden;
}

a{text-decoration:none;color:inherit}
.bg-grid{
    position:fixed; inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size:32px 32px;
    mask-image:linear-gradient(180deg, rgba(0,0,0,.7), transparent);
    pointer-events:none;
}
.bg-orb{
    position:fixed; border-radius:999px; filter:blur(70px); pointer-events:none; opacity:.55;
}
.orb-1{width:280px;height:280px;background:rgba(91,140,255,.35);top:80px;left:-40px;animation:floaty 8s ease-in-out infinite}
.orb-2{width:340px;height:340px;background:rgba(22,199,183,.22);right:-70px;top:160px;animation:floaty 10s ease-in-out infinite reverse}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-20px)}}

.site-shell{
    width:min(1240px, calc(100% - 36px));
    margin:22px auto;
    position:relative;
    z-index:1;
}

.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:16px 18px;
    border:1px solid var(--line);
    background:rgba(11,18,35,.72);
    backdrop-filter:blur(20px);
    border-radius:22px;
    box-shadow:var(--shadow);
    position:sticky;
    top:14px;
    z-index:30;
}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{
    width:44px;height:44px;border-radius:14px;
    display:grid;place-items:center;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    font-weight:800;color:#fff;
    box-shadow:0 14px 30px rgba(91,140,255,.25);
}
.brand-text{display:flex;flex-direction:column;gap:2px}
.brand-text strong{font-size:15px}
.brand-text small{font-size:12px;color:var(--muted)}

.nav{
    display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}
.nav a{
    padding:10px 14px;
    border-radius:14px;
    color:var(--muted);
    transition:.22s ease;
}
.nav a:hover{background:rgba(255,255,255,.05);color:var(--text)}
.nav .nav-cta{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    font-weight:700;
}

.hero-card,
.auth-layout,
.dashboard-head,
.page-head,
.section-grid,
.table-card{
    margin-top:26px;
}

.hero-card{
    display:grid;
    grid-template-columns:1.35fr .8fr;
    gap:22px;
    align-items:stretch;
}
.hero-copy,
.glass-panel,
.info-card,
.auth-card,
.table-card,
.stat-card,
.site-footer,
.page-head,
.dashboard-head{
    border:1px solid var(--line);
    background:var(--card);
    backdrop-filter:blur(18px);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}
.hero-copy{
    padding:34px;
}
.glass-panel{
    padding:28px;
    position:relative;
    overflow:hidden;
}
.glass-panel::after{
    content:"";
    position:absolute;
    inset:auto -30px -40px auto;
    width:160px;height:160px;border-radius:50%;
    background:radial-gradient(circle, rgba(91,140,255,.25), transparent 70%);
}

.eyebrow,
.panel-badge,
.card-tag,
.table-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    color:#d9e7ff;
    border:1px solid rgba(91,140,255,.25);
    background:rgba(91,140,255,.12);
}
.hero-copy h1,
.auth-copy h1,
.page-head h1,
.dashboard-head h1{
    margin:16px 0 12px;
    font-size:clamp(34px,5vw,60px);
    line-height:1.02;
    letter-spacing:-.03em;
}
.hero-copy p,
.auth-copy p,
.page-head p,
.dashboard-head p,
.info-card p,
.glass-panel p,
.site-footer p{
    color:var(--muted);
    line-height:1.8;
    font-size:15px;
}

.hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin:22px 0 26px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:48px;
    padding:0 18px;
    border-radius:16px;
    font-weight:700;
    transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    border:1px solid transparent;
    cursor:pointer;
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    box-shadow:0 18px 35px rgba(91,140,255,.25);
}
.btn-ghost{
    background:rgba(255,255,255,.04);
    border-color:var(--line);
    color:var(--text);
}
.btn-block{width:100%}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}
.stat-card{
    padding:20px;
    min-height:122px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}
.stat-card strong{
    font-size:28px;
    line-height:1;
}
.stat-card span{
    color:var(--muted);
    font-size:14px;
}

.feature-list,
.mini-feature-list{
    margin:18px 0 0;
    padding:0;
    list-style:none;
}
.feature-list li{
    position:relative;
    padding:10px 0 10px 18px;
    color:var(--muted);
    border-bottom:1px dashed rgba(255,255,255,.06);
}
.feature-list li::before{
    content:"";
    position:absolute;left:0;top:18px;
    width:8px;height:8px;border-radius:50%;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
}
.mini-feature-list{
    display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;
}
.mini-feature{
    padding:10px 12px;border-radius:14px;
    background:rgba(255,255,255,.05);
    border:1px solid var(--line);
    color:#dbe8ff;font-size:13px;font-weight:600;
}

.section-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}
.info-card{
    padding:24px;
}
.info-card h3,
.glass-panel h3,
.auth-card h3,
.table-card h3{
    margin:14px 0 10px;
    font-size:22px;
    letter-spacing:-.02em;
}
.page-head,
.dashboard-head{
    padding:28px;
}
.dashboard-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.auth-layout{
    display:grid;
    grid-template-columns:1fr .86fr;
    gap:22px;
}
.auth-copy{
    padding:34px;
    border:1px solid var(--line);
    background:var(--card);
    backdrop-filter:blur(18px);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}
.auth-card{
    padding:28px;
}
.auth-form{display:grid;gap:16px;margin-top:18px}
.field{display:grid;gap:8px}
.field label{font-size:13px;font-weight:700;color:#dbe7ff}
.field input{
    width:100%;
    height:50px;
    border-radius:16px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.04);
    color:var(--text);
    padding:0 14px;
    outline:none;
}
.field input:focus{
    border-color:rgba(91,140,255,.35);
    box-shadow:0 0 0 4px rgba(91,140,255,.12);
}

.table-card{padding:24px}
.table-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
}
.table-wrap{overflow:auto}
.modern-table{
    width:100%;
    border-collapse:collapse;
    min-width:720px;
}
.modern-table th,
.modern-table td{
    padding:16px;
    text-align:left;
    border-bottom:1px solid rgba(255,255,255,.06);
}
.modern-table th{
    color:#d7e4ff;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.06em;
}
.modern-table td{color:var(--muted)}
.status{
    display:inline-flex;
    padding:8px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}
.status.ok{
    color:#d8ffef;
    background:rgba(47,210,127,.14);
    border:1px solid rgba(47,210,127,.22);
}

.site-footer{
    margin-top:26px;
    padding:22px 24px;
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:center;
}
.footer-links{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}
.footer-links a{
    color:var(--muted);
}
.footer-links a:hover{color:var(--text)}

.reveal{
    opacity:0;
    transform:translateY(22px);
    transition:opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{
    opacity:1;
    transform:none;
}

@media (max-width: 1080px){
    .hero-card,
    .auth-layout,
    .section-grid{
        grid-template-columns:1fr;
    }
    .stats-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media (max-width: 760px){
    .site-shell{width:min(100% - 20px, 1240px)}
    .topbar,
    .site-footer,
    .dashboard-head{
        flex-direction:column;
        align-items:flex-start;
    }
    .nav{width:100%}
    .nav a{padding:10px 12px}
    .hero-copy,
    .auth-copy,
    .glass-panel,
    .page-head,
    .dashboard-head,
    .table-card{padding:22px}
    .stats-grid{
        grid-template-columns:1fr;
    }
}
