* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #0f172a;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.public-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.public-header .container {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 800;
    font-size: 20px;
}

.public-nav {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.hero {
    padding: 80px 0;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .16), transparent 34%),
        linear-gradient(135deg, #ffffff, #f1f5f9);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 13px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    margin: 20px 0;
}

.hero p {
    font-size: 18px;
    color: #475569;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    display: inline-flex;
}

.btn-primary {
    background: #0f172a;
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.hero-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .22);
}

.card-title {
    color: #94a3b8;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.big-rate {
    font-size: 76px;
    font-weight: 900;
    margin: 20px 0 0;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.mini-stats div {
    background: rgba(255, 255, 255, .08);
    padding: 16px;
    border-radius: 16px;
}

.mini-stats strong {
    display: block;
    font-size: 22px;
}

.mini-stats span {
    display: block;
    color: #cbd5e1;
    margin-top: 4px;
    font-size: 13px;
}

.section {
    padding: 70px 0;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 28px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 24px;
}

.step-card span {
    color: #2563eb;
    font-weight: 800;
}

.step-card h3 {
    margin: 14px 0 8px;
}

.step-card p {
    color: #64748b;
    line-height: 1.6;
}

.public-footer {
    padding: 24px 0;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    background: #ffffff;
}

/* User Panel */

.user-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px 1fr;
}

.user-sidebar {
    background: #0f172a;
    color: #ffffff;
    padding: 24px;
}

.user-logo {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 32px;
}

.user-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-menu a {
    padding: 13px 14px;
    border-radius: 12px;
    color: #cbd5e1;
}

.user-menu a:hover {
    background: rgba(255,255,255,.08);
    color: #ffffff;
}

.user-main {
    min-width: 0;
}

.user-topbar {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.user-content {
    padding: 28px;
}

.page-head {
    margin-bottom: 24px;
}

.page-head h1 {
    margin: 0 0 8px;
    font-size: 32px;
}

.page-head p {
    margin: 0;
    color: #64748b;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
}

.stat-card span {
    display: block;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-card strong {
    font-size: 26px;
}

.panel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    margin-top: 18px;
}

.copy-box {
    background: #f1f5f9;
    border: 1px dashed #94a3b8;
    padding: 16px;
    border-radius: 12px;
    font-family: monospace;
    margin-top: 12px;
    overflow-x: auto;
}

@media (max-width: 900px) {
    .hero-grid,
    .steps,
    .stats-grid,
    .user-shell {
        grid-template-columns: 1fr;
    }

    .user-sidebar {
        position: relative;
    }

    .public-nav {
        display: none;
    }
}