/* 
=========================================
  User Interface Styles (NewAPI Style)
  (Used by Redeem Page)
=========================================
*/

.redeem-shell {
    width: min(540px, 100%);
    margin: 0 auto;
    padding: 100px 1rem 2rem; /* padding-top space for navbar / top */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Base Cards */
.redeem-hero,
.redeem-flow-card,
.redeem-side-card {
    width: 100%;
    margin-bottom: 24px;
    padding: 32px;
    background: rgba(17, 24, 39, 0.45); /* More translucent for better blur */
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(255, 255, 255, 0.15); /* Subtly highlight the top edge */
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.redeem-hero:hover,
.redeem-flow-card:hover,
.redeem-side-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.redeem-hero {
    text-align: center;
    border: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 24px 0 40px 0;
}

.redeem-hero:hover {
    transform: none;
}

.redeem-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.redeem-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
    background: rgba(255,255,255,0.05);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.05);
}

.redeem-topbar-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.redeem-topbar-link i {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
}

.redeem-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.redeem-brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.redeem-hero-copy h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 16px;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 10%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.redeem-hero-copy p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.redeem-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.redeem-hero-chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e5e7eb;
    background: rgba(255,255,255,0.03);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.redeem-hero-chips span i {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
}

/* Card Headers */
.redeem-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.redeem-card-head h2,
.redeem-side-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 4px;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.spots-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

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

/* Forms */
.form-group {
    margin-bottom: 24px;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.form-group:nth-child(1) { animation-delay: 0.15s; }
.form-group:nth-child(2) { animation-delay: 0.25s; }
.form-group:nth-child(3) { animation-delay: 0.35s; }
.form-group:nth-child(4) { animation-delay: 0.45s; }

form button[type="submit"] {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.4s;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.form-help {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.5;
    transition: color 0.3s;
}

.form-group:focus-within .form-help {
    color: rgba(255,255,255,0.7);
}

/* Steps */
.step { display: none; }
.step.active { display: block; animation: fadeIn 0.3s ease; }

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

/* Lists and Notes */
.redeem-note-list {
    margin: 16px 0 0 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.redeem-note-list li {
    margin-bottom: 8px;
}

.redeem-side-card-section {
    margin-bottom: 24px;
}

.redeem-side-card-section + .redeem-side-card-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-base);
}

/* Team Selection */
.teams-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.team-card {
    padding: 16px;
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-card:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
}

.team-card.selected {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.team-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.team-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.team-badge {
    padding: 2px 8px;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pro { color: var(--accent-primary); background: rgba(236, 72, 153, 0.1); }
.badge-plus { color: var(--success); background: var(--success-bg); }

/* Results */
.result-success, .result-error {
    text-align: center;
    padding: 24px 0;
}

.result-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.result-success .result-icon {
    background: var(--success-bg);
    color: var(--success);
}

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

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.result-message {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.result-details {
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: left;
    margin-bottom: 32px;
}

.result-detail-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-base);
}

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

.result-detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

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

.actions {
    display: flex;
    gap: 12px;
}

@media (max-width: 500px) {
    .redeem-shell { padding: 40px 1rem 2rem; }
    .redeem-hero, .redeem-flow-card, .redeem-side-card { padding: 24px; border-radius: var(--radius-lg); }
    .actions { flex-direction: column; }
    .actions .btn { width: 100%; }
}
