/* User Redeem Page Design System */
:root {
    --primary: #4f7cff;
    --primary-hover: #396cf6;
    --primary-soft: #eef4ff;

    --bg-main: #eff3f8;
    --bg-surface: #ffffff;

    --text-main: #171c34;
    --text-muted: #6f7892;
    --text-dim: #a0aac0;

    --border-base: #e5ebf5;

    --success: #3bb979;
    --success-soft: #edf9f2;
    --danger: #ef5350;
    --danger-soft: #fff0f0;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, inherit;
    background:
        radial-gradient(circle at top, rgba(79, 124, 255, 0.16), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    line-height: 1.5;
}

.container {
    max-width: 860px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.84));
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 24px 60px rgba(64, 82, 122, 0.12);
    border-radius: 32px;
    padding: 2.9rem 2.4rem 2.25rem;
    backdrop-filter: blur(14px);
}

.header h1 {
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #1e2238;
    margin-bottom: 0.75rem;
    line-height: 1.08;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-badge,
.hero-proof {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 124, 255, 0.08);
    color: var(--primary);
    border: 1px solid rgba(79, 124, 255, 0.12);
    border-radius: var(--radius-full);
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-badge {
    margin-bottom: 1.5rem;
}

.hero-badge-dot,
.hero-proof-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #3f475d;
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-highlight i {
    width: 16px;
    height: 16px;
    color: #3b82f6;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-tag {
    background: rgba(22, 28, 52, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #596177;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: 28px;
    padding: 2.25rem 2rem;
    box-shadow: 0 24px 60px rgba(64, 82, 122, 0.14);
    animation: slideUp 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.form-card {
    max-width: 700px;
    margin: 0 auto;
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #5f6fff 0%, #4f7cff 45%, #71a5ff 100%);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    text-align: center;
    letter-spacing: -0.03em;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border-base);
    border-radius: 14px;
    font-size: 1rem;
    transition: var(--transition-base);
    outline: none;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.12);
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.btn {
    width: 100%;
    padding: 0.95rem 1rem;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6170ff 0%, #4f7cff 55%, #5b8eff 100%);
    color: white;
    box-shadow: 0 14px 28px rgba(79, 124, 255, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5566fa 0%, #396cf6 55%, #4f7cff 100%);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
    color: var(--text-main);
    border: 1px solid var(--border-base);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5fb 100%);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Toast */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-base);
    display: none;
    z-index: 100;
}

.toast.show {
    display: block;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

/* Steps */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* Result */
.result-success {
    text-align: center;
}

.result-error {
    text-align: center;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.result-message {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.result-details {
    background-color: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: left;
    margin-bottom: 2rem;
}

.result-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-base);
}

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

.result-detail-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.result-detail-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.warranty-section {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-base);
}

.warranty-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.85rem;
}

.warranty-title i {
    color: var(--primary);
}

.warranty-help {
    margin-bottom: 1rem;
}

.warranty-input-group {
    margin-bottom: 1rem;
}

.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .header {
        margin-bottom: 1.5rem;
        padding: 1.75rem 1rem 1.5rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-highlights {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }

    .hero-tags {
        justify-content: flex-start;
    }

    .hero-badge,
    .hero-proof {
        width: 100%;
        justify-content: center;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }

    .result-title {
        font-size: 1.25rem;
    }
}
