:root{
    --bg:#f5f5f7;
    --card:#ffffff;
    --text:#1d1d1f;
    --muted:#6e6e73;
    --line:#e5e5ea;
    --dark:#1d1d1f;
    --radius:18px;
    --shadow:0 12px 30px rgba(0,0,0,.06);
}

*{box-sizing:border-box}

body{
    margin:0;
    background:var(--bg)!important;
    color:var(--text)!important;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Variable","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;
    font-size:16px;
    line-height:1.55;
    letter-spacing:-.01em;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

a{text-decoration:none;color:inherit}

h1,h2,h3,h4{
    color:var(--text)!important;
    font-weight:600!important;
    letter-spacing:-.035em!important;
    line-height:1.12!important;
}

p{color:var(--muted)}

.container{
    width:min(1180px,calc(100% - 40px));
    margin:0 auto;
}

.site-header,.admin-header{
    background:rgba(255,255,255,.88)!important;
    backdrop-filter:blur(18px);
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    z-index:50;
}

.header-inner{
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.brand-logo img{
    height:48px;
    width:auto;
    max-width:250px;
    display:block;
}

.nav,.nav-links,.actions{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}

.nav-links a{
    color:#424245!important;
    font-weight:500;
    font-size:.96rem;
}

.nav-links a:hover{color:#000!important}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 18px;
    border-radius:999px;
    border:1px solid var(--line);
    font-weight:600;
    font-size:.95rem;
    cursor:pointer;
}

.btn-primary{
    background:#1d1d1f!important;
    color:#fff!important;
    border-color:#1d1d1f!important;
}

.btn-secondary,.btn-light{
    background:#fff!important;
    color:#1d1d1f!important;
}

.hero{
    padding:78px 0 56px;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:42px;
    align-items:center;
}

.badge{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:9px 14px;
    border-radius:999px;
    background:#fff;
    border:1px solid var(--line);
    color:#424245;
    font-size:.92rem;
    font-weight:500;
    margin-bottom:22px;
}

.headline{
    font-size:clamp(2.1rem,4vw,3.7rem)!important;
    font-weight:600!important;
    letter-spacing:-.045em!important;
    line-height:1.08!important;
    max-width:820px;
    margin-bottom:22px;
}

.subtitle{
    font-size:1.06rem;
    line-height:1.75;
    color:var(--muted);
    max-width:720px;
    margin-bottom:30px;
}

.hero-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:26px;
}

.hero-card,.feature-card,.stat,.card{
    background:#fff!important;
    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.hero-card{padding:30px}

.stat-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
    margin-top:20px;
}

.stat{padding:20px}

.section{
    padding:38px 0 34px;
}

.section-title{
    font-size:clamp(1.75rem,2.5vw,2.5rem)!important;
}

.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.feature-card{padding:26px}

.feature-icon{
    width:50px;
    height:50px;
    border-radius:16px;
    background:#f5f5f7;
    border:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:16px;
}

.callout{
    margin-top:24px;
    background:#1d1d1f!important;
    color:#fff!important;
    border-radius:24px;
    padding:34px;
}

.callout h2{color:#fff!important}
.callout p{color:rgba(255,255,255,.74)!important}

.admin-shell{
    display:grid;
    grid-template-columns:240px 1fr;
    min-height:calc(100vh - 76px);
}

.admin-sidebar{
    background:#fff;
    border-right:1px solid var(--line);
    padding:24px;
}

.admin-sidebar a{
    display:block;
    padding:11px 13px;
    border-radius:12px;
    color:#424245;
    font-weight:500;
    margin-bottom:6px;
}

.admin-sidebar a:hover{
    background:#f5f5f7;
    color:#000;
}

.admin-main{padding:36px}

table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
}

th,td{
    padding:14px 16px;
    border-bottom:1px solid var(--line);
    text-align:left;
}

th{
    background:#f9fafb;
    color:#424245;
    font-weight:600;
}

.footer{
    border-top:1px solid var(--line);
    padding:28px 0 36px;
    color:var(--muted);
}

@media(max-width:900px){
    .hero-grid,.grid-3,.admin-shell{
        grid-template-columns:1fr;
    }
    .header-inner{
        flex-direction:column;
        align-items:flex-start;
        padding:16px 0;
    }
}
