.invite-landing {
    min-height: 520px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: radial-gradient(circle at 78% 12%, rgba(246, 189, 75, .22), transparent 24%),
        radial-gradient(circle at 14% 10%, rgba(39, 211, 255, .16), transparent 25%),
        linear-gradient(135deg, rgba(16, 24, 38, .98), rgba(18, 45, 74, .92));
    box-shadow: var(--shadow);
    padding: 46px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    gap: 28px;
    align-items: center;
}

.invite-landing > .promoter-levels {
    grid-column: 1 / -1;
}

.invite-copy h1 {
    font-size: clamp(34px, 4.8vw, 56px);
    line-height: 1.08;
}

.invite-copy p {
    max-width: 720px;
    color: var(--soft);
    font-size: 18px;
    line-height: 1.8;
}

.invite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.invite-hero-register {
    margin-top: 22px;
}

.invite-link-box {
    max-width: 680px;
    display: grid;
    gap: 8px;
}

.invite-link-box label {
    color: var(--gold);
    font-weight: 800;
}

.invite-link-box input {
    height: 46px;
}

.copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
}

.copy-row .btn {
    height: 46px;
}

.invite-badge {
    width: 220px;
    min-height: 220px;
    justify-self: center;
    border-radius: 50%;
    border: 1px solid rgba(246, 189, 75, .34);
    background: radial-gradient(circle, rgba(246, 189, 75, .26), rgba(246, 189, 75, .08) 58%, rgba(255,255,255,.04));
    display: grid;
    place-items: center;
    text-align: center;
    align-content: center;
    gap: 8px;
}

.invite-badge span {
    color: #ffe1a1;
    font-weight: 800;
}

.invite-badge strong {
    color: var(--gold);
    font-size: 58px;
    line-height: 1;
}

.invite-badge b {
    font-size: 24px;
}

.invite-selling,
.invite-feature-grid,
.promoter-levels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.promoter-levels.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.invite-selling article,
.invite-feature-grid div,
.promoter-levels article {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(16, 24, 38, .96);
    padding: 18px;
}

.invite-selling b,
.invite-feature-grid b,
.promoter-levels b {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.invite-selling span,
.invite-feature-grid span,
.promoter-levels p {
    color: var(--muted);
    line-height: 1.7;
}

.invite-selling strong {
    color: var(--gold);
}

.invite-metrics article {
    min-height: 150px;
    display: grid;
    align-content: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(246, 189, 75, .13), rgba(39, 211, 255, .08)), rgba(16, 24, 38, .96);
}

.invite-metrics article > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.invite-metrics article > b {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.12;
}

.invite-metrics article > strong {
    color: var(--gold);
    font-size: 18px;
    line-height: 1.25;
}

.invite-metrics.invite-steps article {
    min-height: 190px;
}

.invite-metrics.invite-steps article > b {
    font-size: clamp(22px, 2.2vw, 30px);
}

.invite-metrics.invite-steps article > strong {
    color: var(--soft);
    font-weight: 500;
}

.promoter-levels article {
    min-height: 170px;
}

.promoter-levels.compact article {
    min-height: auto;
    padding: 13px 15px;
}

.promoter-levels span {
    color: var(--gold);
    font-weight: 900;
}

.promoter-levels b {
    color: var(--cyan);
    font-size: 34px;
    margin-top: 12px;
}

.promoter-levels.compact b {
    font-size: 24px;
    margin-top: 6px;
}

.promoter-levels.compact p {
    margin: 0;
    font-size: 13px;
}

.invite-register-cta {
    margin-top: 26px;
}

.invite-reward-guide .section-head,
.invite-value-section .section-head {
    justify-content: center;
    text-align: center;
}

.invite-reward-guide .section-head h2,
.invite-value-section .section-head h2 {
    font-size: clamp(32px, 3.6vw, 46px);
}

.invite-examples-section {
    margin-top: 22px;
}

.invite-examples-section .section-head {
    justify-content: center;
    text-align: center;
}

.invite-examples-section .section-head h2 {
    font-size: clamp(30px, 3.4vw, 42px);
}

.invite-value-section .invite-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.invite-value-section .invite-feature-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 18px;
}

.invite-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.invite-steps .flow-card {
    min-height: 210px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.invite-steps i {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: #1d1300;
    font-style: normal;
    font-size: 26px;
    font-weight: 900;
    box-shadow: 0 0 28px rgba(246, 189, 75, .22);
}

.step-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-title b {
    margin: 0;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.12;
}

.rules-hero {
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: radial-gradient(circle at 82% 18%, rgba(246,189,75,.2), transparent 24%),
        linear-gradient(135deg, rgba(16,24,38,.98), rgba(18,45,74,.9));
    box-shadow: var(--shadow);
    padding: 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: center;
}

.rules-hero h1 {
    font-size: clamp(42px, 5vw, 64px);
}

.rules-hero p {
    color: var(--soft);
    line-height: 1.8;
}

.rules-formula {
    border: 1px solid rgba(246,189,75,.3);
    border-radius: 10px;
    background: rgba(246,189,75,.08);
    padding: 22px;
}

.rules-body p {
    color: var(--soft);
    line-height: 1.8;
}

.rules-hero-marketing {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
}

.rules-hero-marketing h1 {
    margin: 14px 0;
    font-size: clamp(30px, 3.4vw, 42px);
}

.rules-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.rules-guest-register {
    width: min(520px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 10px;
    min-width: 0;
    margin-top: 24px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(8,17,28,.72);
    padding: 10px;
}

.rules-guest-register input,
.rules-guest-register .btn {
    height: 44px;
}

.rules-formula strong {
    display: block;
    margin: 14px 0 10px;
    color: var(--gold);
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.1;
}

.rules-formula .settlement-copy {
    margin-top: 12px;
    color: #9dffd0;
    font-weight: 900;
}

.rules-selling-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rules-selling-grid article {
    min-height: 178px;
    border: 1px solid rgba(246,189,75,.22);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(246,189,75,.12), rgba(39,211,255,.06)),
        rgba(16,24,38,.96);
    padding: 20px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.rules-selling-grid span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 950;
}

.rules-selling-grid b {
    color: var(--text);
    font-size: 24px;
}

.rules-selling-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.rules-examples-section .section-head,
.rules-settlement-flow .section-head {
    justify-content: center;
    text-align: center;
}

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

.rules-example-card {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background:
        radial-gradient(circle at 86% 12%, rgba(246,189,75,.17), transparent 24%),
        linear-gradient(135deg, rgba(15,24,38,.98), rgba(12,32,49,.94));
    box-shadow: var(--shadow);
    padding: 24px;
}

.rules-example-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.rules-example-head span {
    border: 1px solid rgba(39,211,255,.28);
    border-radius: 999px;
    background: rgba(39,211,255,.08);
    color: var(--cyan);
    font-size: 13px;
    font-weight: 950;
    padding: 7px 10px;
    white-space: nowrap;
}

.rules-example-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 24px;
}

.rules-example-card > p {
    color: var(--soft);
    line-height: 1.8;
}

.rules-example-lines {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.rules-example-lines div {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    padding: 14px;
}

.rules-example-lines b,
.rules-example-lines span {
    display: block;
}

.rules-example-lines b {
    color: var(--gold);
    margin-bottom: 6px;
}

.rules-example-lines span {
    color: var(--soft);
}

.rules-example-lines strong {
    color: #9dffd0;
    font-size: 18px;
}

.rules-total-reward {
    border: 1px solid rgba(246,189,75,.32);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(246,189,75,.18), rgba(255,107,107,.08));
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.rules-total-reward span {
    color: var(--soft);
    font-weight: 900;
}

.rules-total-reward strong {
    color: var(--gold);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1;
    white-space: nowrap;
}

.rules-settlement-flow .flow-card {
    border-color: rgba(67,214,144,.18);
}

.rules-settlement-flow .flow-card i {
    background: rgba(67,214,144,.12);
    color: #9dffd0;
    box-shadow: none;
}

.rules-cta {
    border: 1px solid rgba(39,211,255,.22);
    border-radius: 10px;
    background:
        radial-gradient(circle at 88% 12%, rgba(39,211,255,.16), transparent 24%),
        rgba(16,24,38,.96);
    padding: clamp(24px, 4vw, 38px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.rules-cta h2 {
    margin: 12px 0 8px;
    font-size: 30px;
}

.rules-cta p {
    max-width: 780px;
    color: var(--soft);
    font-size: 14px;
    line-height: 1.8;
}

.rules-cta > div:first-child {
    min-width: 0;
}

.rules-cta-actions .btn {
    min-width: 180px;
    color: #07111d;
    font-weight: 950;
    white-space: nowrap;
}

.rules-cta .rules-guest-register {
    flex: 0 1 520px;
    max-width: 100%;
}

.rules-cta .rules-guest-register .btn {
    min-width: 0;
    width: 100%;
    padding: 0 12px;
    color: #07111d;
    font-weight: 950;
    white-space: nowrap;
}

.rules-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.rules-auth-actions {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
}

.rules-copy-row {
    width: min(520px, 100%);
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.rules-auth-actions > .btn {
    width: min(520px, 100%);
}

.rules-copy-actions {
    width: min(520px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rules-copy-row input,
.rules-copy-actions .btn {
    height: 44px;
}

.rules-copy-actions .btn {
    min-width: 0;
    width: 100%;
    padding: 0 12px;
}

.rules-cta .btn.primary {
    background: var(--cyan);
    border-color: var(--cyan);
}

.rules-cta .btn:hover {
    color: #07111d;
}

.invite-gift-banner {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(246,189,75,.32);
    border-radius: 8px;
    background: rgba(246,189,75,.12);
    color: var(--gold);
    font-weight: 950;
    padding: 10px 14px;
    margin: 8px 0 14px;
}

.referral-register-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
    gap: 24px;
    align-items: stretch;
    min-height: 620px;
    border: 1px solid rgba(255,107,107,.26);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(8,17,28,.98), rgba(12,22,34,.96)),
        radial-gradient(circle at 76% 20%, rgba(246,189,75,.22), transparent 28%);
    padding: clamp(28px, 4vw, 54px);
    overflow: hidden;
}

.referral-register-hero:before {
    content: "";
    position: absolute;
    inset: auto 34px 34px auto;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(246,189,75,.16);
    transform: rotate(12deg);
    border-radius: 18px;
    pointer-events: none;
}

.referral-register-hero .invite-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.referral-register-hero h1 {
    max-width: 680px;
    margin: 16px 0 14px;
    font-size: clamp(34px, 3.8vw, 54px);
    line-height: 1.12;
}

.referral-register-hero .invite-copy > p {
    max-width: 720px;
    color: var(--soft);
    font-size: 18px;
    line-height: 1.85;
}

.referral-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 10px;
}

.referral-tag-row span {
    border: 1px solid rgba(67,214,144,.28);
    border-radius: 999px;
    background: rgba(67,214,144,.09);
    color: #c8ffe1;
    font-weight: 900;
    padding: 9px 13px;
}

.referral-hero-pain-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    max-width: 720px;
    margin-top: 20px;
}

.referral-hero-pain-row article {
    display: none;
    align-items: center;
    gap: 12px;
    min-height: 104px;
    border: 1px solid rgba(246,189,75,.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,107,107,.14), rgba(246,189,75,.055)),
        rgba(10, 18, 30, .88);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
    padding: 14px;
}

.referral-hero-pain-row article.active {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
}

.pain-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,107,107,.88), rgba(246,189,75,.76));
    color: #fff7dc;
    font-style: normal;
    font-weight: 950;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.referral-hero-pain-row b {
    display: block;
    color: var(--soft);
    font-size: 17px;
    margin-bottom: 6px;
}

.referral-hero-pain-row span {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.referral-register-panel {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 16px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(13, 21, 34, .92);
    padding: 22px;
}

.gift-stamp {
    display: grid;
    place-items: center;
    min-height: 180px;
    border: 1px solid rgba(246,189,75,.28);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(246,189,75,.16), rgba(246,189,75,.06)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 22px);
}

.gift-stamp span {
    color: var(--muted);
    font-weight: 900;
}

.gift-stamp strong {
    color: var(--gold);
    font-size: 78px;
    line-height: .95;
}

.gift-stamp b {
    color: var(--soft);
    letter-spacing: 0;
}

.referral-register-form {
    display: grid;
    gap: 12px;
}

.referral-pain-grid,
.referral-solution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.referral-pain-grid article,
.referral-solution-grid article {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    background: rgba(14,22,35,.94);
    padding: 18px;
}

.referral-pain-grid article {
    border-left: 3px solid rgba(255,107,107,.72);
}

.referral-pain-grid b,
.referral-solution-grid b {
    display: block;
    color: var(--soft);
    font-size: 18px;
    margin-bottom: 9px;
}

.referral-pain-grid span,
.referral-solution-grid p {
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
}

.referral-solution-grid article {
    border-color: rgba(67,214,144,.18);
}

.referral-solution-grid article span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(67,214,144,.11);
    color: #9dffd0;
    font-weight: 950;
    margin-bottom: 14px;
}

.referral-friend-section {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    border: 1px solid rgba(246,189,75,.2);
    border-radius: 10px;
    background: rgba(246,189,75,.08);
    padding: clamp(22px, 3vw, 34px);
}

.referral-friend-section h2 {
    margin: 12px 0 8px;
}

.referral-friend-section p {
    max-width: 780px;
    color: var(--soft);
    line-height: 1.8;
}

@media (max-width: 980px) {
    .invite-landing,
    .invite-selling,
    .invite-feature-grid,
    .promoter-levels,
    .rules-selling-grid,
    .rules-example-grid {
        grid-template-columns: 1fr;
    }

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

    .rules-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .rules-cta-actions {
        justify-content: flex-start;
    }

    .rules-auth-actions {
        align-items: stretch;
    }

    .rules-copy-row {
        width: 100%;
    }

    .rules-copy-actions {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .rules-guest-register {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .invite-badge {
        width: min(300px, 100%);
        justify-self: center;
    }
}

@media (max-width: 900px) {
    .referral-register-hero,
    .referral-pain-grid,
    .referral-solution-grid {
        grid-template-columns: 1fr;
    }

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

    .referral-friend-section {
        align-items: stretch;
        flex-direction: column;
    }
}
