* {
    box-sizing: border-box;
}

:root {
    --brand: rgb(42, 181, 196);
    --brand-dark: rgb(44, 65, 82);
    --brand-2: rgb(166, 133, 95);
    --ink: rgb(33, 45, 57);
    --ink-soft: rgb(63, 79, 92);
    --muted: rgb(113, 125, 133);
    --paper: rgb(236, 233, 229);
    --paper-deep: rgb(224, 218, 212);
    --card: #ffffff;
    --card-strong: #ffffff;
    --edge: rgba(44, 65, 82, 0.1);
    --edge-strong: rgba(44, 65, 82, 0.18);
    --shadow: 0 14px 34px rgba(44, 65, 82, 0.08);
    --shadow-soft: 0 8px 18px rgba(44, 65, 82, 0.05);
    --accent-red: #d64545;
    --accent-gold: rgb(166, 133, 95);
    --radius-xl: 16px;
    --radius-lg: 12px;
    --radius-md: 8px;
}

body {
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f5f1ec 0%, var(--paper) 100%);
    min-height: 100vh;
}

.site-shell {
    position: relative;
}

.site-shell::before,
.site-shell::after {
    display: none;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background:
        linear-gradient(135deg, rgba(26, 40, 52, 0.94), rgba(44, 65, 82, 0.92));
    color: #f3f1ed;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 24px rgba(25, 36, 44, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand a {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2rem;
    letter-spacing: 1.2px;
    color: #f8f5f1;
}

.brand span {
    color: rgba(240, 232, 224, 0.7);
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f3f1ed;
}

.account-chip__avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
}

.account-chip__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-chip__label {
    font-size: 0.88rem;
    font-weight: 600;
}

.page {
    padding: 30px 20px 64px;
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(44, 65, 82, 0.08);
}

.hero {
    animation: fadeUp 0.7s ease both;
}

.product-image,
.stat-card {
    animation: fadeUp 0.7s ease both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hero-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
}

.hero-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-visual {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(44, 65, 82, 0.08);
    background: #d8d5d2;
}

.hero-visual img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.hero-copy .lead {
    font-size: 1.04rem;
    color: var(--ink-soft);
    max-width: 56ch;
}

.hero-card {
    background: #fff;
    border: 1px solid rgba(44, 65, 82, 0.08);
}

.hero-card .btn {
    width: 100%;
    margin-top: 10px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: grid;
    gap: 8px;
}

.checklist li {
    position: relative;
    padding-left: 22px;
    color: var(--ink);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent-gold) 100%);
    box-shadow: 0 0 0 4px rgba(42, 181, 196, 0.12);
}

.section {
    margin-top: 28px;
}

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-title h2 {
    margin: 0;
    position: relative;
}

.section-title h2::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--accent-gold));
}

.action-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.action-row p {
    margin: 0 0 4px;
}

.hero::after {
    display: none;
}

h1, h2, h3, h4 {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.6px;
    margin: 0 0 8px;
    line-height: 0.95;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
}

h2 {
    font-size: clamp(2rem, 3vw, 2.7rem);
}

h3 {
    font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.stat-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 16px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(44, 65, 82, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--brand), var(--accent-gold));
}

.stat-card span {
    color: var(--muted);
    font-size: 0.85rem;
}

.stat-card strong {
    font-size: 1.2rem;
}

.product-hero {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
    margin-bottom: 24px;
}

.product-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #dbe3ea;
}

.product-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    background: rgba(42, 181, 196, 0.12);
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid rgba(42, 181, 196, 0.18);
    box-shadow: none;
}

.steps {
    margin: 32px 0;
}

.steps h2 {
    margin-bottom: 12px;
}

.steps-grid {
    gap: 16px;
}

.step-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-card {
    border: 1px solid rgba(42, 181, 196, 0.16);
    min-height: 100%;
    justify-content: space-between;
}

.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(44, 65, 82, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeUp 0.6s ease both;
    position: relative;
    overflow: hidden;
}

.card::before {
    display: none;
}

.card--warning {
    border-color: rgba(214, 69, 69, 0.18);
    background: linear-gradient(180deg, rgba(255, 247, 245, 0.98), rgba(255, 255, 255, 0.86));
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    background: #dbe3ea;
}

.plan-summary-image {
    width: 100%;
    height: 320px;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    background: linear-gradient(180deg, #e8e4de, #d8d5d2);
    padding: 12px;
}

.soft-card {
    background: rgba(42, 181, 196, 0.08);
    border: 1px solid rgba(42, 181, 196, 0.18);
    box-shadow: none;
}

.empty-state {
    text-align: center;
    padding: 24px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(44, 65, 82, 0.08);
    color: var(--ink);
}

.status-pill--success {
    background: rgba(16, 185, 129, 0.18);
    color: #065f46;
}

.status-pill--warning {
    background: rgba(245, 158, 11, 0.18);
    color: #9a3412;
}

.status-pill--danger {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.status-pill--neutral {
    background: rgba(148, 163, 184, 0.2);
    color: #475569;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--brand-dark);
    color: #fff;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

.btn:hover {
    transform: none;
    border-color: rgba(44, 65, 82, 0.24);
}

.btn.ghost {
    background: rgba(255,255,255,0.04);
    color: #f1ede8;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.page .btn.ghost {
    color: var(--brand-dark);
    border-color: rgba(44, 65, 82, 0.16);
    background: rgba(255,255,255,0.45);
}

.cta-sticky .btn.ghost {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.45);
}

.dashboard-sticky .btn.ghost {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.45);
}

.inline {
    display: inline-block;
}

.breadcrumb {
    margin-bottom: 16px;
    color: var(--muted);
}

.price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.form-row {
    margin-bottom: 12px;
}

.form-row-inline label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(44, 65, 82, 0.12);
    background: rgba(255,255,255,0.92);
    box-shadow: none;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(42, 181, 196, 0.65);
    box-shadow: 0 0 0 4px rgba(42, 181, 196, 0.14);
}

.form-card {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
    gap: 20px;
    align-items: start;
}

.auth-card {
    margin: 0 auto;
    width: 100%;
    max-width: 520px;
}

.auth-aside {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(42, 181, 196, 0.2);
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.timeline li {
    position: relative;
    padding-left: 18px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-2);
}

.progress-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hero--compact {
    padding: 24px 26px;
}

.hero-grid--priority {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.card--spotlight {
    min-height: 100%;
    justify-content: center;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.spotlight-grid small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.spotlight-grid strong {
    display: block;
    color: var(--brand-dark);
    font-size: 1rem;
}

.referral-stat-grid {
    margin-bottom: 18px;
}

.referral-overview-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    align-items: stretch;
}

.referral-share-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    align-items: center;
}

.referral-share-copy {
    display: grid;
    gap: 14px;
}

.referral-link-box {
    display: grid;
    gap: 8px;
}

.referral-link-box label {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.referral-qr-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 1px dashed rgba(44, 65, 82, 0.18);
    border-radius: 10px;
    background: linear-gradient(180deg, #f5f2ee, #ece7e1);
}

.referral-qr-card canvas {
    max-width: 100%;
}

.referral-side-card {
    justify-content: space-between;
}

.referral-ticket-pill {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(44, 65, 82, 0.05);
    border: 1px solid rgba(44, 65, 82, 0.08);
}

.referral-ticket-pill span {
    color: var(--muted);
    font-size: 0.88rem;
}

.referral-ticket-pill strong {
    color: var(--brand-dark);
    font-size: 1.4rem;
}

.referral-alert {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(214, 69, 69, 0.18);
    background: rgba(255, 244, 242, 0.96);
}

.referral-list-card {
    gap: 16px;
}

.referral-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.referral-person-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(44, 65, 82, 0.08);
    border-radius: 10px;
    background: #fbfaf8;
}

.referral-person-head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 12px;
}

.referral-person-avatar {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(44, 65, 82, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    font-weight: 700;
}

.referral-person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.referral-person-head h4 {
    margin-bottom: 4px;
}

.referral-person-head p {
    margin: 0;
}

.referral-person-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.referral-person-stats span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.referral-person-stats strong {
    color: var(--brand-dark);
    font-size: 0.98rem;
}

.referral-note {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(44, 65, 82, 0.08);
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.hero-copy ul {
    margin: 0;
    padding-left: 18px;
}

.hero-copy ul li {
    margin-bottom: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(44, 65, 82, 0.08);
}

th, td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(44, 65, 82, 0.08);
    font-size: 0.95rem;
}

th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(44, 65, 82, 0.7);
    background: linear-gradient(180deg, rgba(42, 181, 196, 0.13), rgba(42, 181, 196, 0.06));
}

tbody tr:hover {
    background: rgba(42, 181, 196, 0.05);
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid--priority {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .referral-overview-grid,
    .referral-share-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 16px;
    }

    .page {
        padding: 18px 16px 36px;
    }

    .hero {
        padding: 20px;
    }

    .spotlight-grid {
        grid-template-columns: 1fr 1fr;
    }

    .referral-person-stats {
        grid-template-columns: 1fr;
    }

    .hero::after {
        display: none;
    }

    .hero-visual img {
        height: 200px;
    }

    .hero-actions {
        width: 100%;
    }

    .auth-card {
        order: 1;
    }

    .auth-aside {
        order: 2;
    }

    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tbody tr {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 14px;
        margin-bottom: 12px;
        padding: 6px 8px;
        background: #fff;
    }

    td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 6px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--muted);
    }

    td:last-child {
        border-bottom: 0;
    }

    .product-image img {
        height: 240px;
    }
}

@media (max-width: 520px) {
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .account-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .card img {
        height: 160px;
    }

    .plan-summary-image {
        height: 220px;
        padding: 10px;
    }
}

.cta-sticky {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 420px);
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 10px;
    background: rgba(35, 49, 60, 0.88);
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
    z-index: 100;
    backdrop-filter: blur(14px);
}

.cta-sticky-spacer {
    height: calc(96px + env(safe-area-inset-bottom, 0px));
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .card {
        animation: none;
    }
}

.dashboard-sticky {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 420px);
    padding: 10px;
    border-radius: 999px;
    background: rgba(35, 49, 60, 0.88);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 100;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(14px);
}

.dashboard-sticky-spacer {
    height: calc(96px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 901px) {
    .dashboard-sticky {
        display: none;
    }
    .dashboard-sticky-spacer {
        display: none;
    }
}

.cta-sticky .btn {
    padding: 10px 14px;
}

@media (min-width: 901px) {
    .cta-sticky {
        display: none;
    }
    .cta-sticky-spacer {
        display: none;
    }
}
