* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: #eafcff;
    background:
        radial-gradient(
            circle at top left,
            rgba(34, 211, 238, .08),
            transparent 28%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(99, 102, 241, .08),
            transparent 30%
        ),
        #071116;
}

a {
    color: inherit;
}

/* ================= TOPBAR ================= */

.referral-topbar {
    width: min(1180px, calc(100% - 30px));
    height: 66px;
    margin: 14px auto 0;
    padding: 0 18px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    position: sticky;
    top: 12px;
    z-index: 50;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;

    background: rgba(8, 23, 29, .78);
    backdrop-filter: blur(18px);

    box-shadow:
        0 15px 40px rgba(0,0,0,.22);
}

.back-btn {
    justify-self: start;
    text-decoration: none;

    color: #81989d;
    font-size: 11px;
    font-weight: 700;

    transition: color .2s ease;
}

.back-btn:hover {
    color: #67e8f9;
}

.referral-brand {
    font-size: 16px;
    font-weight: 800;
}

/* ================= PAGE ================= */

.referral-page {
    width: min(1100px, calc(100% - 30px));
    margin: auto;
    padding: 80px 0 90px;
}

/* ================= HERO ================= */

.referral-hero {
    max-width: 760px;
    margin: auto;
    text-align: center;
}

.referral-kicker {
    color: #67e8f9;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.referral-hero h1 {
    margin-top: 14px;

    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;

    letter-spacing: -2.5px;
}

.referral-hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #67e8f9,
            #818cf8
        );

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
}

.referral-hero p {
    max-width: 620px;
    margin: 20px auto 0;

    color: #7e9499;

    font-size: 13px;
    line-height: 1.8;
}

/* ================= ID CARD ================= */

.referral-id-card {
    margin-top: 55px;
    padding: 26px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    border-radius: 22px;

    border:
        1px solid rgba(103,232,249,.12);

    background:
        linear-gradient(
            135deg,
            rgba(34,211,238,.07),
            rgba(99,102,241,.035)
        );

    box-shadow:
        0 25px 60px rgba(0,0,0,.22);
}

.referral-id-left > span {
    color: #688187;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.referral-id-left h2 {
    margin-top: 7px;

    font-size: 30px;
    letter-spacing: 2px;

    color: #67e8f9;
}

.referral-id-left p {
    max-width: 520px;
    margin-top: 8px;

    color: #71878c;

    font-size: 10px;
    line-height: 1.7;
}

.copy-referral-btn {
    flex-shrink: 0;

    padding: 12px 16px;

    border: none;
    border-radius: 11px;

    color: #03171b;
    background: #67e8f9;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.copy-referral-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(34,211,238,.18);
}

/* ================= STATS ================= */

.referral-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 14px;

    margin-top: 18px;
}

.referral-stat-card {
    padding: 21px;

    display: flex;
    align-items: center;

    gap: 14px;

    border-radius: 18px;

    border:
        1px solid rgba(255,255,255,.065);

    background:
        rgba(255,255,255,.025);
}

.referral-stat-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        rgba(103,232,249,.07);

    font-size: 19px;
}

.referral-stat-card small {
    color: #60777c;

    font-size: 7px;
    letter-spacing: 1px;
}

.referral-stat-card strong {
    display: block;

    margin-top: 4px;

    font-size: 22px;
}

.referral-stat-card p {
    margin-top: 3px;

    color: #5b7277;

    font-size: 8px;
}

/* ================= HOW IT WORKS ================= */

.referral-how {
    margin-top: 70px;
}

.referral-section-heading {
    text-align: center;
}

.referral-section-heading span {
    color: #67e8f9;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.3px;
}

.referral-section-heading h2 {
    margin-top: 8px;

    font-size: 28px;
}

.referral-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 12px;

    margin-top: 30px;
}

.referral-step {
    padding: 20px;

    border-radius: 17px;

    border:
        1px solid rgba(255,255,255,.06);

    background:
        rgba(255,255,255,.022);

    transition:
        transform .25s ease,
        border-color .25s ease;
}

.referral-step:hover {
    transform: translateY(-4px);

    border-color:
        rgba(103,232,249,.14);
}

.step-number {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    color: #67e8f9;

    background:
        rgba(34,211,238,.07);

    font-size: 8px;
    font-weight: 800;
}

.referral-step h3 {
    margin-top: 15px;

    font-size: 13px;
}

.referral-step p {
    margin-top: 7px;

    color: #687f84;

    font-size: 9px;
    line-height: 1.7;
}

/* ================= FUTURE APP ================= */

.future-app-card {
    margin-top: 70px;
    padding: 28px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 35px;

    align-items: center;

    border-radius: 22px;

    border:
        1px solid rgba(129,140,248,.12);

    background:
        linear-gradient(
            135deg,
            rgba(99,102,241,.06),
            rgba(34,211,238,.025)
        );
}

.future-app-info > span {
    color: #a5b4fc;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.3px;
}

.future-app-info h2 {
    margin-top: 7px;

    font-size: 24px;
}

.future-app-info p {
    margin-top: 10px;

    color: #70868b;

    font-size: 10px;
    line-height: 1.75;
}

.future-app-link-box {
    padding: 18px;

    border-radius: 16px;

    border:
        1px solid rgba(255,255,255,.055);

    background:
        rgba(5,16,22,.42);
}

.future-app-link-box small {
    color: #5d7479;

    font-size: 7px;
    letter-spacing: 1px;
}

.future-link-preview {
    margin-top: 8px;
    padding: 11px;

    overflow: hidden;

    border-radius: 10px;

    background:
        rgba(255,255,255,.035);

    color: #81979c;

    font-size: 9px;
}

.download-app-btn {
    width: 100%;

    margin-top: 11px;
    padding: 11px;

    border-radius: 10px;

    border:
        1px solid rgba(255,255,255,.07);

    color: #697f84;

    background:
        rgba(255,255,255,.025);

    font-size: 9px;
    font-weight: 700;

    cursor: not-allowed;
}

/* ================= NOTE ================= */

.referral-note {
    margin-top: 20px;
    padding: 15px 17px;

    display: flex;
    gap: 11px;

    align-items: flex-start;

    border-radius: 14px;

    border:
        1px solid rgba(255,255,255,.05);

    background:
        rgba(255,255,255,.018);
}

.referral-note p {
    color: #60767b;

    font-size: 9px;
    line-height: 1.65;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 850px) {

    .referral-steps {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .future-app-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .referral-page {
        padding-top: 60px;
    }

    .referral-id-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .copy-referral-btn {
        width: 100%;
    }

    .referral-stats {
        grid-template-columns: 1fr;
    }

    .referral-steps {
        grid-template-columns: 1fr;
    }

    .referral-hero h1 {
        font-size: 42px;
    }
}