:root {
    --earn-bg: #0e0b33;
    --earn-bg-deep: #08061f;
    --earn-surface: rgba(255, 255, 255, 0.06);
    --earn-surface-strong: rgba(255, 255, 255, 0.1);
    --earn-border: rgba(255, 255, 255, 0.12);
    --earn-border-strong: rgba(201, 182, 255, 0.28);
    --earn-text: #ece9f7;
    --earn-text-soft: rgba(236, 233, 247, 0.78);
    --earn-text-dim: rgba(236, 233, 247, 0.58);
    --earn-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

html,
body {
    background: var(--earn-bg);
}

body.earn-body {
    min-height: 100vh;
    color: var(--earn-text);
    background:
        radial-gradient(50% 38% at 18% 12%, rgba(109, 63, 224, 0.28), transparent 70%),
        radial-gradient(36% 28% at 82% 18%, rgba(74, 29, 150, 0.22), transparent 72%),
        linear-gradient(180deg, #0e0b33 0%, #171245 52%, #08061f 100%);
}

.earn-page {
    position: relative;
    overflow: clip;
    min-height: 100vh;
}

.earn-page-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 34%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 34%, transparent 78%);
    pointer-events: none;
}

.earn-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 18px 0;
    background: rgba(14, 11, 51, 0.58);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.earn-nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.earn-nav .nav-logo-img,
.earn-footer-logo {
    filter: brightness(0) invert(1);
}

.earn-nav .nav-logo-text {
    color: #fff;
}

.earn-nav-back {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(236, 233, 247, 0.72);
    transition: color 0.2s var(--ease-out);
}

.earn-nav-back:hover {
    color: #fff;
}

.app-shell {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(108px, 14vw, 136px) clamp(20px, 4vw, 56px) 72px;
}

.progress-wrap {
    position: sticky;
    top: 96px;
    z-index: 20;
    max-width: 720px;
    margin: 0 auto 28px;
    padding: 18px 22px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 9, 37, 0.74);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.progress-wrap.hidden {
    opacity: 0;
    transform: translateY(-26px);
    pointer-events: none;
}

.progress-bar {
    position: relative;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-bar::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--progress, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, #c9b6ff 0%, var(--violet) 55%, var(--accent) 100%);
    box-shadow: 0 0 22px rgba(201, 182, 255, 0.45);
    transition: width 0.45s var(--ease-out);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.progress-step {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
}

.step-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.progress-step.active .step-dot {
    transform: scale(1.3);
    background: #fff;
    box-shadow: 0 0 0 6px rgba(201, 182, 255, 0.18);
}

.progress-step.completed .step-dot {
    background: #c9b6ff;
    box-shadow: 0 0 14px rgba(201, 182, 255, 0.35);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.hero-layout {
    min-height: calc(100vh - 220px);
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}

.hero-copy {
    max-width: 620px;
}

.earn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 26px;
    color: #c9b6ff;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.earn-eyebrow::before,
.earn-eyebrow::after {
    content: "";
    width: 24px;
    height: 1px;
    background: rgba(201, 182, 255, 0.65);
}

.earn-title {
    margin: 0 0 28px;
    font-family: var(--font-display);
    font-size: clamp(42px, 6.4vw, 88px);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
    text-wrap: balance;
}

.earn-pitch {
    margin: 0 0 32px;
    max-width: 560px;
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.6;
    color: var(--earn-text-soft);
}

.earn-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 38px;
}

.earn-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(236, 233, 247, 0.92);
    font-size: 13.5px;
}

.earn-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9f7bff;
    box-shadow: 0 0 8px rgba(159, 123, 255, 0.75);
}

.earn-cta-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.earn-cta-note {
    color: var(--earn-text-dim);
    font-size: 13.5px;
}

.earn-body .btn {
    border-radius: 18px;
}

.earn-body .btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(236, 233, 247, 0.92);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.earn-body .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(201, 182, 255, 0.4);
}

.earn-phone-wrap {
    display: flex;
    justify-content: center;
}

.earn-phone-link {
    display: block;
    transition: transform 0.35s var(--ease-out), filter 0.35s var(--ease-out);
}

.earn-phone-link:hover {
    transform: translateY(-4px);
    filter: brightness(1.06);
}

.earn-phone {
    position: relative;
    width: min(100%, 300px);
    aspect-ratio: 9 / 19.5;
    border-radius: 40px;
    padding: 10px;
    background: linear-gradient(135deg, #2a2547 0%, #0e0b33 100%);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.56),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: rotate(-2deg);
}

.earn-phone-glow {
    position: absolute;
    inset: -42px;
    background: radial-gradient(closest-side, rgba(109, 63, 224, 0.34), transparent 72%);
    filter: blur(24px);
    z-index: -1;
}

.earn-phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 94px;
    height: 24px;
    border-radius: 14px;
    background: #000;
    z-index: 2;
}

.earn-phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 34px;
    background: #000;
    isolation: isolate;
    clip-path: inset(0 round 34px);
    -webkit-clip-path: inset(0 round 34px);
    transform: translateZ(0);
}

.earn-phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
    transform: translateZ(0) scale(1.001);
}

.earn-phone-video[data-loaded="true"] {
    opacity: 1;
}

.earn-phone-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.earn-phone-ig-tag,
.earn-phone-handle,
.earn-phone-caption {
    position: absolute;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.earn-phone-ig-tag {
    top: 18px;
    left: 18px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.earn-phone-ig-tag svg,
.earn-phone-action svg {
    display: block;
}

.earn-phone-handle {
    left: 20px;
    bottom: 28px;
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
    font-size: 13.5px;
}

.earn-phone-caption {
    left: 20px;
    right: 58px;
    bottom: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
}

.earn-phone-actions {
    position: absolute;
    right: 14px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}

.earn-phone-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-band {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hero-band-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--earn-border);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-band-num,
.step-counter {
    margin: 0 0 12px;
    color: #9f7bff;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-band-title,
.step-title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.hero-band-title {
    font-size: clamp(19px, 1.5vw, 22px);
}

.hero-band-copy,
.step-subtitle,
.step-note,
.stat-label,
.share-label {
    color: var(--earn-text-soft);
}

.hero-band-copy {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
}

.step-shell {
    min-height: calc(100vh - 240px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-panel {
    width: min(100%, 760px);
    padding: clamp(28px, 4vw, 44px);
    border-radius: 32px;
    border: 1px solid var(--earn-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: var(--earn-shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.step-title {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
}

.step-subtitle {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.65;
}

.input-group {
    margin-bottom: 10px;
}

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

.input-wrap {
    position: relative;
}

.input {
    width: 100%;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 6, 25, 0.34);
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.input::placeholder {
    color: rgba(236, 233, 247, 0.42);
}

.input:focus {
    border-color: rgba(201, 182, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(201, 182, 255, 0.13);
    background: rgba(7, 6, 25, 0.5);
}

.input.valid {
    border-color: rgba(201, 182, 255, 0.52);
    box-shadow: 0 0 0 4px rgba(201, 182, 255, 0.08);
}

.input-highlight {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    border-radius: 999px;
    background: linear-gradient(90deg, #c9b6ff 0%, var(--violet) 100%);
    transition: transform 0.25s var(--ease-out);
}

.input:focus ~ .input-highlight {
    transform: scaleX(1);
}

.step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
}

.step-note {
    margin: 18px 0 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--earn-text-dim);
}

.success-shell {
    min-height: calc(100vh - 240px);
}

.success-panel {
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    margin-bottom: 24px;
    border-radius: 50%;
    color: #fff;
    background: radial-gradient(circle at 50% 40%, rgba(201, 182, 255, 0.42), rgba(74, 29, 150, 0.4));
    border: 1px solid rgba(201, 182, 255, 0.32);
    box-shadow: 0 18px 40px rgba(74, 29, 150, 0.32);
}

.success-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 32px 0;
    padding: 24px 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
}

.success-stat {
    min-width: 0;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
}

.stat-label {
    margin-top: 6px;
    font-size: 13px;
    color: var(--earn-text-dim);
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.12);
}

.share-section {
    margin-top: 10px;
}

.share-label {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--earn-text-soft);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-share {
    min-width: 130px;
}

.success-link {
    display: inline-block;
    margin-top: 26px;
    color: #c9b6ff;
    font-size: 14px;
    font-weight: 600;
}

.success-link:hover {
    color: #fff;
}

.earn-footer {
    position: relative;
    z-index: 1;
    padding: 40px clamp(20px, 4vw, 56px) 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 6, 31, 0.78);
}

.earn-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.earn-footer-brand,
.earn-footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.earn-footer-brand {
    color: rgba(236, 233, 247, 0.78);
    font-weight: 600;
}

.earn-footer-logo {
    width: 20px;
    height: auto;
}

.earn-footer-links a,
.earn-footer-copy {
    color: rgba(236, 233, 247, 0.58);
    font-size: 13px;
}

.earn-footer-links a:hover {
    color: #fff;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%) translateY(110px);
    z-index: 1000;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 6, 31, 0.9);
    color: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.confetti {
    position: fixed;
    top: -10px;
    z-index: 999;
    pointer-events: none;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@media (max-width: 960px) {
    .hero-layout {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-copy {
        max-width: none;
    }

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

    .earn-phone {
        transform: none;
    }
}

@media (max-width: 720px) {
    .app-shell {
        padding-top: 96px;
        padding-bottom: 56px;
    }

    .progress-wrap {
        top: 82px;
        padding: 16px 16px 14px;
        border-radius: 18px;
    }

    .step-panel {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .step-actions {
        flex-direction: column;
    }

    .step-actions .btn {
        width: 100%;
    }

    .success-stats {
        flex-direction: column;
        gap: 18px;
    }

    .stat-divider {
        width: 72px;
        height: 1px;
    }

    .earn-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .earn-footer-links {
        flex-wrap: wrap;
    }
}
