/* User Redeem Page Design System */
:root {
    --primary: #1f2937;
    --primary-hover: #111827;
    --primary-soft: rgba(59, 130, 246, 0.16);

    --bg-main: #dfe7f2;
    --bg-surface: rgba(255, 255, 255, 0.62);
    --bg-surface-strong: rgba(255, 255, 255, 0.78);
    --bg-input: rgba(255, 255, 255, 0.52);

    --text-main: #182033;
    --text-muted: #60708d;
    --text-dim: #90a0b8;

    --border-base: rgba(255, 255, 255, 0.42);
    --border-strong: rgba(255, 255, 255, 0.7);

    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.12);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.12);

    --shadow-sm: 0 10px 30px rgba(95, 117, 150, 0.08);
    --shadow-md: 0 20px 50px rgba(94, 111, 138, 0.16);
    --shadow-lg: 0 30px 80px rgba(85, 104, 136, 0.22);

    --radius-md: 14px;
    --radius-lg: 28px;
    --radius-full: 9999px;

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

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

body {
    font-family: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        linear-gradient(135deg, #edf3fb 0%, #dce5f1 44%, #d5dfec 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 999px;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.7;
}

body::before {
    width: 340px;
    height: 340px;
    left: 12%;
    bottom: 10%;
    background: radial-gradient(circle, rgba(187, 190, 255, 0.55) 0%, rgba(187, 190, 255, 0.12) 62%, rgba(187, 190, 255, 0) 100%);
}

body::after {
    width: 300px;
    height: 300px;
    right: 14%;
    top: 14%;
    background: radial-gradient(circle, rgba(194, 227, 255, 0.48) 0%, rgba(194, 227, 255, 0.12) 60%, rgba(194, 227, 255, 0) 100%);
}

.container {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 1.75rem;
    padding: 0 1rem;
}

.header h1 {
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-main);
    margin-bottom: 0.65rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

.spots-badge {
    margin: 1rem auto 0;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 28px rgba(112, 129, 157, 0.12);
    color: #53627d;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.52) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    animation: slideUp 0.4s ease-out;
}

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

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

.card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

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

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

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(198, 210, 228, 0.72);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-base);
    outline: none;
    color: var(--text-main);
    background: var(--bg-input);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.form-input::placeholder {
    color: #8b9bb2;
}

.form-input:focus {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 4px var(--primary-soft);
    background: rgba(255, 255, 255, 0.75);
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

.btn {
    width: 100%;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    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, #2f3138 0%, #1f2025 100%);
    color: white;
    box-shadow: 0 18px 28px rgba(31, 32, 37, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #23252b 0%, #121317 100%);
    transform: translateY(-1px);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.45);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.62);
}

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

/* Toast */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-strong);
    display: none;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.toast.show {
    display: block;
}

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

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

/* 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: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: left;
    margin-bottom: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.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 !important;
    padding-top: 1.75rem !important;
    border-top: 1px solid rgba(188, 201, 220, 0.55) !important;
}

.actions {
    margin-top: 1.25rem;
}

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

    .header {
        margin-bottom: 1.5rem;
    }

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

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

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

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

    body::before {
        left: -10%;
        bottom: 8%;
    }

    body::after {
        right: -12%;
        top: 10%;
    }
}
