/* User redeem page: refreshed visual style with original information density */
:root {
    --primary: #0f766e;
    --primary-hover: #115e59;
    --primary-soft: #dff6f0;
    --primary-strong: #0b4f4a;

    --accent: #f59e0b;
    --accent-soft: #fff2d8;
    --accent-rose: #f97316;

    --bg-main: #f4f7f2;
    --bg-surface: rgba(255, 252, 247, 0.84);
    --bg-surface-strong: #fffdf9;
    --bg-tint: rgba(255, 255, 255, 0.66);

    --text-main: #142521;
    --text-primary: #142521;
    --text-secondary: #35524c;
    --text-muted: #6f867f;
    --text-dim: #99aaa4;

    --border-base: rgba(29, 67, 62, 0.12);
    --border-strong: rgba(15, 118, 110, 0.22);

    --success: #15803d;
    --success-soft: #e7f8eb;
    --danger: #dc2626;
    --danger-soft: #fdecec;
    --warning: #d97706;
    --warning-soft: #fff4df;
    --info: #0284c7;
    --info-soft: #e0f2fe;

    --shadow-sm: 0 10px 24px rgba(10, 38, 33, 0.05);
    --shadow-md: 0 24px 60px rgba(10, 38, 33, 0.12);
    --shadow-lg: 0 36px 120px rgba(10, 38, 33, 0.18);

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 999px;

    --transition-base: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(15, 118, 110, 0.14), transparent 28%),
        radial-gradient(circle at 90% 18%, rgba(245, 158, 11, 0.16), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(249, 115, 22, 0.08), transparent 30%),
        linear-gradient(160deg, #f7faf6 0%, #f3f8f1 52%, #f9f5ed 100%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.55;
    padding: 28px 18px 48px;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 37, 33, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 37, 33, 0.025) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
    pointer-events: none;
    opacity: 0.55;
}

.page-shell {
    position: relative;
    width: min(860px, 100%);
    margin: 0 auto;
}

.ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    pointer-events: none;
    opacity: 0.9;
}

.ambient-a {
    width: 180px;
    height: 180px;
    background: rgba(15, 118, 110, 0.14);
    top: -28px;
    left: -30px;
}

.ambient-b {
    width: 220px;
    height: 220px;
    background: rgba(245, 158, 11, 0.12);
    right: -34px;
    top: 240px;
}

.hero-panel,
.card {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-panel {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    padding: 28px 30px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.74), rgba(255, 250, 242, 0.62)),
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(249, 115, 22, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: floatUp 0.6s var(--transition-base);
}

.hero-panel::before,
.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-panel::before {
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.16), transparent 28%),
        radial-gradient(circle at 0% 100%, rgba(15, 118, 110, 0.14), transparent 34%);
}

.hero-panel::after {
    background:
        linear-gradient(130deg, transparent 0%, rgba(15, 118, 110, 0.06) 36%, transparent 70%);
}

.hero-topline,
.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.spots-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
}

.spots-badge i,
.warranty-heading i {
    width: 16px;
    height: 16px;
}

.spots-badge {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #8a5500;
    font-weight: 700;
}

.hero-copy h1 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.055em;
    margin-bottom: 10px;
}

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

.workbench {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: floatUp 0.72s var(--transition-base);
}

.card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 252, 247, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 26%),
        linear-gradient(145deg, rgba(15, 118, 110, 0.04), transparent 45%);
    pointer-events: none;
}

.card>* {
    position: relative;
    z-index: 1;
}

.card h2 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.87rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid var(--border-base);
    background: rgba(255, 255, 255, 0.84);
    color: var(--text-primary);
    font-size: 0.98rem;
    outline: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base), background var(--transition-base);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-input:focus {
    border-color: rgba(15, 118, 110, 0.38);
    box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.11);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
}

.form-help {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.inline-emphasis {
    display: inline-flex;
    align-items: center;
    padding: 1px 10px;
    margin: 0 2px;
    border-radius: var(--radius-full);
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary-strong);
    border: 1px solid rgba(15, 118, 110, 0.14);
    font-weight: 800;
}

.btn {
    width: 100%;
    border: none;
    border-radius: 18px;
    padding: 15px 18px;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base), opacity var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    font-family: inherit;
}

.btn i {
    width: 18px;
    height: 18px;
}

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

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

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

.btn-primary {
    color: #f7fbfa;
    background: linear-gradient(135deg, var(--primary) 0%, #14867d 100%);
    box-shadow: 0 18px 28px rgba(15, 118, 110, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #107068 100%);
}

.btn-secondary {
    color: var(--text-primary);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.92));
    border: 1px solid rgba(20, 37, 33, 0.09);
    box-shadow: 0 10px 22px rgba(20, 37, 33, 0.08);
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #fffdf8, #fff4e7);
}

.btn-xs {
    min-height: 0;
    width: auto;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.76rem;
}

.warranty-section {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px dashed rgba(20, 37, 33, 0.13);
}

.warranty-heading {
    margin-bottom: 12px;
}

.warranty-heading h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 1.18rem;
    letter-spacing: -0.03em;
}

.warranty-help {
    margin-bottom: 10px;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.actions,
.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.actions .btn,
.result-actions .btn {
    flex: 1;
    width: auto;
}

.warranty-view .btn,
.result-success .btn,
.result-error .btn,
.result-info .btn {
    width: auto;
}

.teams-list {
    display: grid;
    gap: 12px;
}

.team-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border-base);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition-base);
}

.team-card:hover,
.team-card.selected {
    border-color: rgba(15, 118, 110, 0.32);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.team-name {
    font-weight: 800;
    margin-bottom: 10px;
}

.team-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.team-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.team-badge,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 800;
}

.badge-plus,
.badge-pro,
.badge-warranty {
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary-strong);
}

.badge-normal {
    background: rgba(20, 37, 33, 0.06);
    color: var(--text-secondary);
}

.badge-success {
    background: var(--success-soft);
    color: var(--success);
}

.badge-error {
    background: var(--danger-soft);
    color: var(--danger);
}

.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, -16px);
    min-width: 260px;
    max-width: min(92vw, 560px);
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(20, 37, 33, 0.92);
    color: #f8f6ef;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
    z-index: 100;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast.success {
    background: rgba(21, 128, 61, 0.94);
}

.toast.error {
    background: rgba(185, 28, 28, 0.94);
}

.toast.info,
.toast.warning {
    background: rgba(20, 37, 33, 0.92);
}

.result-success,
.result-error,
.result-info {
    text-align: center;
}

.result-card {
    min-height: 240px;
}

.result-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(245, 158, 11, 0.12));
}

.result-title {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 1.75rem;
    letter-spacing: -0.05em;
    margin-bottom: 8px;
}

.result-message {
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.result-details {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(249, 248, 244, 0.8));
    border-radius: 20px;
    padding: 14px 18px;
    text-align: left;
    margin-bottom: 22px;
    border: 1px solid rgba(20, 37, 33, 0.08);
}

.result-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(20, 37, 33, 0.08);
}

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

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

.result-detail-value {
    font-size: 0.9rem;
    font-weight: 800;
    text-align: right;
}

.record-card {
    box-shadow: var(--shadow-sm);
}

.warranty-view h4 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
}

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

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

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

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

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

@media (max-width: 768px) {
    body {
        padding: 18px;
    }
}

@media (max-width: 680px) {
    body {
        padding: 14px;
    }

    .hero-panel,
    .card {
        padding: 22px;
        border-radius: 24px;
    }

    .hero-copy h1 {
        font-size: 2.25rem;
    }

    .actions,
    .result-actions {
        flex-direction: column;
    }

    .toast {
        width: calc(100vw - 24px);
    }
}

@media (max-width: 480px) {
    .hero-topline {
        align-items: stretch;
    }

    .spots-badge {
        width: 100%;
        justify-content: center;
    }

    .form-input,
    .btn {
        border-radius: 16px;
    }

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