:root {
    --bg: #f6f8fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e5e7eb;
    --brand: #f59e0b;
    /* primary yellow */
    --brand2: #d97706;
    /* secondary darker yellow */
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    margin: 0;
    color: var(--text);
    background: radial-gradient(1200px 500px at 30% 10%, rgba(245, 158, 11, .22), transparent 55%), radial-gradient(900px 420px at 80% 20%, rgba(217, 119, 6, .18), transparent 55%), var(--bg);
    min-height: 100vh;
}

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

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 12px 0;
}

@media (min-width: 768px) {
    .wrap {
        padding: 18px 14px 0;
    }
}


/* Top Bar */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 10px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(229, 231, 235, .8);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
    .topbar {
        gap: 10px;
        padding: 14px 14px;
        border-radius: 16px;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: auto;
    flex: 1;
}

@media (min-width: 640px) {
    .brand {
        gap: 12px;
        min-width: 220px;
    }
}

.logo {
    width: 100px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    /* background: linear-gradient(145deg, rgba(202, 1, 25, .18), rgba(160, 1, 20, .14));
            border: 1px solid rgba(202, 1, 25, .25); */
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .logo {
        width: 120px;
        height: 44px;
        border-radius: 12px;
    }
}

.brand h1 {
    margin: 0;
    font-size: 14px;
    letter-spacing: .1px;
}

@media (min-width: 640px) {
    .brand h1 {
        font-size: 18px;
        letter-spacing: .2px;
    }
}

.brand p {
    margin: 2px 0 0;
    font-size: 10px;
    color: var(--muted);
}

@media (min-width: 640px) {
    .brand p {
        font-size: 12px;
    }
}

.menu {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
}

@media (min-width: 640px) {
    .menu {
        gap: 10px;
        font-size: 13px;
    }
}

.btn-ghost {
    border: 1px solid var(--line);
    background: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s ease;
    font-size: 11px;
}

@media (min-width: 640px) {
    .btn-ghost {
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 13px;
    }
}

.btn-ghost:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}


/* Hero */

.hero {
    margin-top: 12px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, rgba(202, 1, 25, .15) 0%, rgba(160, 1, 20, .08) 100%), url('/static/image.png') no-repeat center center / cover;
    background-attachment: scroll, scroll;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    padding: 18px 14px;
}

@media (min-width: 640px) {
    .hero {
        margin-top: 16px;
        padding: 26px 20px;
        border-radius: 18px;
    }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(231, 165, 78, .12) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(201, 135, 47, .10) 0%, transparent 50%), rgba(0, 0, 0, 0.20);
    pointer-events: none;
    z-index: 1;
    border-radius: 12px;
}

@media (min-width: 640px) {
    .hero::before {
        border-radius: 18px;
    }
}

.hero::after {
    content: "";
    position: absolute;
    inset: -40px -80px auto auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(231, 165, 78, .12), transparent 60%);
    filter: blur(2px);
    border-radius: 50%;
    transform: rotate(12deg);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -.2px;
}

@media (min-width: 640px) {
    .hero h2 {
        font-size: 34px;
        letter-spacing: -.3px;
    }
}

.hero .sub {
    margin: 8px 0 0;
    color: #e0e0e0;
    font-size: 13px;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .hero .sub {
        margin: 10px 0 0;
        font-size: 15px;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(231, 165, 78, .35);
    background: rgba(231, 165, 78, .08);
    color: #c9872f;
    font-size: 12px;
    margin-bottom: 10px;
}

.cta-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 650;
    transition: .2s ease;
    user-select: none;
    font-size: 13px;
}

@media (min-width: 640px) {
    .btn {
        gap: 10px;
        padding: 12px 16px;
        border-radius: 14px;
        font-size: 14px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: white;
    box-shadow: 0 10px 20px rgba(231, 165, 78, .25);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}

.btn-secondary:hover {
    transform: translateY(-1px);
}

.hero-card {
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(229, 231, 235, .9);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.hero-card h3 {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    font-weight: 650;
}

.hero-card .stat {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.hero-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}


/* Stepper + Form Card */

.panel {
    margin-top: 14px;
    background: rgba(255, 255, 255, .90);
    border: 1px solid rgba(229, 231, 235, .9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(248, 250, 252, .9);
    overflow-x: hidden;
}

@media (min-width: 701px) {
    .stepper {
        display: flex;
        justify-content: space-evenly;
    }
}

.step {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-direction: column;
    position: relative;
}

@media (min-width: 701px) {
    .step {
        justify-content: flex-start;
        min-width: 210px;
        flex: 0 1 auto;
        flex-direction: row;
        gap: 10px;
    }
}

.dot {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    border: 1px solid var(--line);
    color: var(--muted);
    background: white;
    flex: 0 0 auto;
}

.step.active .dot {
    background: rgba(231, 165, 78, .12);
    border-color: rgba(231, 165, 78, .40);
    color: #c9872f;
}

.label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: center;
}

@media (max-width: 700px) {
    .label strong {
        display: none;
    }
    .label span {
        font-size: 10px;
    }
}

@media (min-width: 701px) {
    .label {
        text-align: left;
    }
}

.label strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.label span {
    font-size: 12px;
    color: var(--muted);
}

.content {
    padding: 18px 16px 16px;
}

.content h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.2px;
}

.content p {
    margin: 8px 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

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

@media (max-width: 700px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.field label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #111827;
    font-weight: 650;
}

.input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: white;
    transition: .2s ease;
}

@media (min-width: 640px) {
    .input {
        gap: 10px;
        padding: 12px 12px;
        border-radius: 14px;
    }
}

.input:focus-within {
    border-color: rgba(231, 165, 78, .55);
    box-shadow: 0 0 0 4px rgba(231, 165, 78, .12);
}

.input input,
.input select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    background: transparent;
    color: var(--text);
}

.flag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 10px;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

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

.btn-wide {
    width: 100%;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 15px;
}

.note {
    margin-top: 14px;
    display: grid;
    gap: 8px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(100, 116, 139, .35);
    background: rgba(248, 250, 252, .85);
    color: var(--muted);
    font-size: 13px;
}

.note .row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    opacity: .9;
    margin-top: 2px;
}


/* Footer */

footer {
    margin-top: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .98));
    border-top: 1px solid rgba(229, 231, 235, .9);
    padding: 20px 12px 16px;
    color: var(--muted);
    font-size: 12px;
}

@media (min-width: 640px) {
    footer {
        margin-top: 40px;
        padding: 32px 16px 24px;
        font-size: 13px;
    }
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.footer-section h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.3px;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section a {
    color: var(--muted);
    transition: color .2s ease;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--brand);
}

.footer-divider {
    height: 1px;
    background: rgba(229, 231, 235, .6);
    margin: 20px 0;
}

.footer-bottom {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 12px;
    color: var(--muted);
}

.footer-socials {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(231, 165, 78, .1);
    color: var(--brand);
    transition: all .2s ease;
    font-size: 16px;
}

.footer-socials a:hover {
    background: rgba(231, 165, 78, .2);
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
        width: 100%;
    }
}


/* Claim Section */

.claim-section {
    position: relative;
    z-index: 1;
}

.claim-section h4 {
    margin: 0 0 14px;
    font-size: 18px;
    letter-spacing: -.2px;
}

.claim-marquee {
    overflow: hidden;
    position: relative;
    max-height: 300px;
    mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
}

@media (min-width: 768px) {
    .claim-marquee {
        max-height: 400px;
    }
}

.claim-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: scrollDown 25s linear infinite;
}

.claim-track:hover {
    animation-play-state: paused;
}

@keyframes scrollDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.claim-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(229, 231, 235, .9);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
    font-size: 12px;
    transition: all .2s ease;
    align-items: center;
}

@media (min-width: 640px) {
    .claim-card {
        gap: 12px;
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 13px;
    }
}

.claim-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
}

.claim-card .check-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--brand2);
}

.claim-card .claim-info {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex: 1;
    align-items: center;
}

.claim-card .claim-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-direction: column;
}

.claim-card .claim-name {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.claim-card .claim-amount {
    font-weight: 700;
    color: var(--brand2);
    font-size: 16px;
    letter-spacing: -.2px;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}

.claim-card .claim-time {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}


/* Loading Overlay */

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, .4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, .2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-msg {
    display: none;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .3);
    border-radius: 10px;
    color: #dc2626;
    font-size: 13px;
}

.error-msg.show {
    display: block;
}

.success-msg {
    display: none;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(201, 135, 47, .1);
    border: 1px solid rgba(201, 135, 47, .3);
    border-radius: 10px;
    color: #c9872f;
    font-size: 13px;
}

.success-msg.show {
    display: block;
}


/* Multi-Step Form */

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn .3s ease;
}

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

.step.completed .dot {
    background: rgba(201, 135, 47, .12);
    border-color: rgba(201, 135, 47, .40);
    color: var(--brand2);
}

.step.completed .dot::after {
    content: "\2713";
    position: absolute;
    font-size: 18px;
    font-weight: bold;
}


/* OTP Input Styling */

.otp-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    border: 2px solid rgba(229, 231, 235, .9);
    border-radius: 12px;
    color: var(--text);
    transition: all .2s ease;
}

.otp-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(231, 165, 78, .12);
    outline: none;
}

.otp-input.filled {
    background: rgba(231, 165, 78, .05);
    border-color: var(--brand);
}


/* Password Strength */

.password-strength {
    margin-top: 12px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(229, 231, 235, .6);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #ef4444;
    border-radius: 2px;
    transition: all .3s ease;
}

.strength-fill.weak {
    width: 33%;
    background: #ef4444;
}

.strength-fill.medium {
    width: 66%;
    background: #f59e0b;
}

.strength-fill.strong {
    width: 100%;
    background: var(--brand2);
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    min-width: 50px;
}

.strength-text.weak {
    color: #ef4444;
}

.strength-text.medium {
    color: #f59e0b;
}

.strength-text.strong {
    color: var(--brand2);
}


/* Password Requirements */

.password-requirements {
    margin-top: 16px;
    padding: 12px;
    background: rgba(248, 250, 252, .85);
    border: 1px solid rgba(229, 231, 235, .6);
    border-radius: 12px;
    font-size: 12px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    color: var(--muted);
}

.requirement.met {
    color: var(--brand2);
}

.requirement.met i {
    color: var(--brand2);
}

.requirement i {
    width: 16px;
    text-align: center;
    color: var(--muted);
}


/* Confirmation Section */

.confirmation-box {
    background: linear-gradient(135deg, rgba(201, 135, 47, .08), rgba(231, 165, 78, .08));
    border: 1px solid rgba(201, 135, 47, .2);
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.confirmation-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: popIn .5s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.confirmation-box h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--text);
}

.confirmation-box p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(229, 231, 235, .5);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--muted);
    font-size: 13px;
}

.summary-value {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}


/* Action Buttons */

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-back {
    flex: 1;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
}

.btn-back:hover {
    background: rgba(248, 250, 252, .85);
}

.btn-next,
.btn-submit,
.btn-finish {
    flex: 1;
}

.resend-code {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
}

.resend-code a {
    color: var(--brand);
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease;
}

.resend-code a:hover {
    color: #c9872f;
}

.timer {
    color: var(--muted);
    font-weight: 600;
}

.hidden {
    display: none;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
}