:root {
    --navy: #0D1B2A;
    --green: #2BB673;
    --blue: #1E88E5;
    --orange: #F5A623;
    --light: #F5F7FA;
    --white: #FFFFFF;
    --text: #0D1B2A;
    --muted: #667085;
    --line: #E5E7EB;
    --danger: #EF4444;
    --success-bg: #E8FFF4;
    --danger-bg: #FEF2F2;
    --shadow: 0 24px 70px rgba(13, 27, 42, .10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--light);
    color: var(--text);
}

a {
    color: var(--green);
    text-decoration: none;
}

h1, h2, h3 {
    margin: 0;
    font-family: Poppins, Inter, system-ui, sans-serif;
    letter-spacing: -0.04em;
}

p {
    line-height: 1.7;
}

.top-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 22px auto;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.brand img {
    height: 48px;
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
}

.btn-primary {
    color: white;
    background: var(--green);
}

.btn-outline {
    color: white;
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.1);
}

.btn-outline-dark {
    color: var(--navy);
    border-color: var(--line);
    background: white;
}

.btn-small {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 12px;
}

.btn-full {
    width: 100%;
}

.hero {
    width: min(1180px, calc(100% - 32px));
    margin: 40px auto 80px;
    padding: 70px;
    min-height: 650px;
    border-radius: 42px;
    background: radial-gradient(circle at 80% 20%, rgba(30,136,229,.35), transparent 35%),
                linear-gradient(135deg, #071421, var(--navy));
    color: white;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 50px;
    align-items: center;
    box-shadow: var(--shadow);
}

.eyebrow {
    color: var(--green);
    font-weight: 900;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(44px, 7vw, 86px);
    line-height: .95;
    max-width: 760px;
}

.hero p {
    color: #D1D5DB;
    font-size: 19px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-card,
.public-card,
.panel,
.stat-card,
.feature-card,
.auth-form {
    background: white;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero-card {
    color: var(--navy);
    padding: 32px;
}

.profile-preview,
.public-card {
    text-align: center;
}

.avatar,
.public-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--green), var(--blue));
    font-size: 38px;
    font-weight: 900;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    margin: 20px auto 10px;
    display: grid;
    place-items: center;
    border: 12px solid var(--navy);
    color: var(--navy);
    font-weight: 900;
}

.feature-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 28px;
}

.feature-card strong {
    color: var(--navy);
    font-size: 20px;
}

.feature-card p {
    color: var(--muted);
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
}

.auth-side {
    background: radial-gradient(circle at 80% 20%, rgba(30,136,229,.35), transparent 35%),
                linear-gradient(135deg, #071421, var(--navy));
    color: white;
    padding: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    width: 230px;
    margin-bottom: 70px;
}

.auth-side h1 {
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1;
}

.auth-side p {
    color: #D1D5DB;
    max-width: 540px;
    font-size: 19px;
}

.auth-form-wrap {
    display: grid;
    place-items: center;
    padding: 36px;
}

.auth-form {
    width: min(620px, 100%);
    padding: 40px;
}

.auth-form h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

label {
    display: block;
    margin: 16px 0 8px;
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    color: var(--text);
    min-height: 50px;
    padding: 13px 15px;
    font: inherit;
}

textarea {
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin: 14px 0;
    font-weight: 700;
}

.alert-error {
    color: #991B1B;
    background: var(--danger-bg);
    border: 1px solid #FECACA;
}

.alert-success {
    color: #065F46;
    background: var(--success-bg);
    border: 1px solid #A7F3D0;
}

.center {
    text-align: center;
}

.muted {
    color: var(--muted);
}

.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--navy);
    padding: 30px 22px;
    color: white;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar img {
    width: 210px;
    margin-bottom: 30px;
}

.sidebar a {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    color: #D1D5DB;
    font-weight: 800;
    margin-bottom: 8px;
}

.sidebar a.active,
.sidebar a:hover {
    background: var(--green);
    color: white;
}

.dashboard {
    padding: 45px;
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 28px;
}

.dashboard h1 {
    font-size: clamp(36px, 5vw, 60px);
}

.dashboard p {
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 30px 0;
}

.stat-card {
    padding: 26px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 900;
    display: block;
    margin-bottom: 12px;
}

.stat-card strong {
    font-size: 42px;
    font-family: Poppins, Inter, sans-serif;
}

.stat-card small {
    display: block;
    color: var(--green);
    margin-top: 8px;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.panel {
    padding: 28px;
    overflow-x: auto;
}

.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-actions a {
    padding: 12px 14px;
    background: var(--success-bg);
    border-radius: 12px;
    font-weight: 900;
}

.public-link {
    word-break: break-all;
    background: var(--light);
    padding: 16px;
    border-radius: 14px;
}

.form-panel {
    max-width: 900px;
}

.card-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px;
    background: radial-gradient(circle at 80% 20%, rgba(43,182,115,.18), transparent 30%),
                var(--light);
}

.public-card {
    width: min(620px, 100%);
    padding: 42px;
}

.card-logo {
    width: 220px;
    margin-bottom: 30px;
}

.public-card h1 {
    font-size: 44px;
}

.public-card h2 {
    color: var(--green);
    margin-top: 8px;
}

.bio-box {
    margin: 24px 0;
    padding: 20px;
    background: var(--light);
    border-radius: 18px;
    text-align: left;
}

.card-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .hero,
    .auth-layout,
    .app-shell,
    .feature-grid,
    .stats-grid,
    .panel-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 38px;
    }

    .auth-side {
        min-height: 420px;
        padding: 42px;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .dashboard {
        padding: 24px;
    }

    .top-nav {
        align-items: flex-start;
        gap: 18px;
        flex-direction: column;
    }

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