/* style-test.css - Rediseño Premium de Stitch para Club El Rey */

/* 1. Design System & CSS Variables (Rediseñado de Stitch) */
:root {
    --bg-main: #131313; /* Obsidian black de Stitch */
    --bg-card: #201f1f; /* Charcoal dark de Stitch */
    --bg-card-hover: #2a2a2a;
    --accent: #d4af37; /* Royal gold de Stitch */
    --accent-glow: rgba(212, 175, 55, 0.15);
    --accent-gradient: linear-gradient(135deg, #FFE088 0%, #D4AF37 100%);
    --card-gradient: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(18, 18, 18, 0.8) 100%);
    --danger: #ffb4ab;
    --success: #34C759;
    --success-glow: rgba(52, 199, 89, 0.15);
    --warning: #ff9500;
    --text-primary: #e5e2e1;
    --text-secondary: #d0c5af;
    --text-dim: #99907c;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.15);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', sans-serif;
}

/* 2. Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden; /* Lock viewport scroll */
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
}

/* App Wrapper for Mobile Optimization */
#app-container {
    width: 100%;
    max-width: 480px; /* Standard premium mobile view width */
    height: 100%;
    background-color: var(--bg-main);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 3. Screen States & Animations */
.screen {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    padding: 20px;
}

.screen.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    height: 100%;
    overflow-y: auto; /* Enable natural scrolling inside active screen */
    -webkit-overflow-scrolling: touch; /* Smooth iOS scroll inertia */
}

/* Loading Screen */
#loading-screen {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-main);
    height: 100%;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.loader-content {
    animation: pulse 2s infinite ease-in-out;
}

.crown-glow {
    font-size: 80px;
    filter: drop-shadow(0 0 20px var(--accent));
    margin-bottom: 15px;
    display: inline-block;
    animation: float 3s infinite ease-in-out;
}

.loader-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(229, 169, 60, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* 4. Auth Screen Styling */
#auth-screen {
    justify-content: space-between;
    padding-top: 50px;
    padding-bottom: 30px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-badge {
    font-size: 40px;
    background-color: var(--bg-card);
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid rgba(229, 169, 60, 0.2);
    box-shadow: var(--shadow-sm);
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.accent-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 320px;
    margin: 0 auto;
}

.auth-body {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Card Styling */
.card {
    background-color: var(--bg-card);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.form-card {
    transition: transform 0.3s ease;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-description {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
}

/* Form Controls */
.input-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-group label ion-icon {
    font-size: 16px;
    color: var(--accent);
}

.input-group input, .input-group select {
    background-color: #0B0B0F;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(229, 169, 60, 0.1);
}

.input-tip {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
}

/* Dynamic Hidden Fields */
.hidden-fields {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.hidden-fields.show {
    max-height: 400px;
    transition: max-height 0.5s ease-in;
}

.birthday-row {
    display: flex;
    gap: 12px;
}

.birthday-row select {
    flex: 1;
}

/* Checkbox Legal styling */
.legal-consent {
    margin-bottom: 24px;
    margin-top: 10px;
}

.checkbox-container {
    display: flex;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    user-select: none;
    line-height: 1.4;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #0B0B0F;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-container a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

/* Button Styling */
.btn {
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.primary-btn {
    background: var(--accent-gradient);
    color: #000000;
    box-shadow: 0 4px 15px rgba(229, 169, 60, 0.2);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 169, 60, 0.35);
}

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

.icon-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.icon-btn:hover {
    color: var(--accent);
}

/* 5. Profile Screen (LoggedIn) Layout */
#profile-screen {
    padding-top: 24px;
    padding-bottom: 40px;
}

/* App Header updated for dual row (Brand + User) */
.app-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.header-user-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    font-size: 32px;
    background-color: var(--bg-card);
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

/* The Premium Crown Card */
/* The Premium Crown Card (Glassmorphic Redesign) */
.loyalty-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(18, 18, 18, 0.8) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), var(--shadow-glow);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-glass-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229,169,60,0.1) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.card-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-type {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
}

.card-balance-container {
    z-index: 1;
}

.balance-label {
    font-size: 9px;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.balance-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.balance-crown {
    font-size: 28px;
    filter: drop-shadow(0 0 6px var(--accent));
}

.balance-number {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.footer-item .item-label {
    font-size: 8px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.footer-item .item-value {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}



/* --- Official Logo Styles --- */
.logo-glow-container {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3.5px solid var(--accent);
    box-shadow: 0 0 35px rgba(229, 169, 60, 0.7);
    animation: float 3s infinite ease-in-out;
}

.official-logo-loader {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.official-logo-badge {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.official-logo-brand {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 12px rgba(229, 169, 60, 0.45);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand-row:hover .official-logo-brand {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px rgba(229, 169, 60, 0.75);
}

.official-logo-card-emblem {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #FFE082;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.loyalty-card:hover .official-logo-card-emblem {
    transform: scale(1.15) rotate(10deg);
}

/* --- SVG Logo & Icon Containers --- */
.crown-svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.animated-glow {
    animation: float 3s infinite ease-in-out;
}

.crown-glow-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 15px rgba(229, 169, 60, 0.6));
    animation: float 3s infinite ease-in-out;
}

.logo-badge-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-card);
    border: 2px solid rgba(229, 169, 60, 0.4);
    padding: 0;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md), 0 0 20px rgba(229, 169, 60, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.logo-badge-container:hover {
    transform: scale(1.05) rotate(5deg);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.user-avatar-container {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e1e28 0%, #111116 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.user-avatar-container:hover {
    transform: scale(1.08);
    border-color: var(--accent);
}

.balance-crown-container {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 6px rgba(229, 169, 60, 0.5));
    animation: pulse 2s infinite ease-in-out;
}

.card-logo-crown {
    color: inherit;
    transition: transform 0.3s ease;
}
.loyalty-card:hover .card-logo-crown {
    transform: scale(1.15) rotate(-5deg);
}

/* --- Ranks Progress Section --- */
.rank-progress-section {
    margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.rank-badge {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background-color: rgba(229, 169, 60, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(229, 169, 60, 0.15);
}

.rank-next-badge {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #0b0b0f;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

@keyframes shimmerProgress {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--accent) 0%, #FFE088 50%, var(--accent) 100%);
    background-size: 200% 100%;
    animation: shimmerProgress 3s infinite linear;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Card Metal Skins (Niveles del Reino) --- */

/* 1. Escudero: Carbón Oscuro + Bronce */
.card-escudero {
    background: linear-gradient(135deg, #1A1A1E 0%, #0F0F12 100%) !important;
    border-color: rgba(205, 127, 50, 0.25) !important; /* Bronze border */
    box-shadow: var(--shadow-lg), 0 0 15px rgba(205, 127, 50, 0.1) !important;
}
.card-escudero .card-logo,
.card-escudero .card-type,
.card-escudero .balance-number {
    color: #CD7F32 !important; /* Bronze Accent */
}
.card-escudero .card-logo-crown path,
.card-escudero .card-crown path {
    fill: #CD7F32 !important;
}

/* 2. Caballero: Acero / Plata Cromada Cepillada */
.card-caballero {
    background: linear-gradient(135deg, #4A4E5D 0%, #20222B 100%) !important;
    border-color: rgba(192, 192, 192, 0.3) !important; /* Silver border */
    box-shadow: var(--shadow-lg), 0 0 20px rgba(192, 192, 192, 0.15) !important;
}
.card-caballero .card-logo,
.card-caballero .card-type,
.card-caballero .balance-number {
    color: #E2E8F0 !important; /* Chromed Silver Accent */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.card-caballero .card-logo {
    background: linear-gradient(135deg, #FFFFFF 0%, #A0AEC0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.card-caballero .card-logo-crown path,
.card-caballero .card-crown path {
    fill: #E2E8F0 !important;
}

/* 3. Duque: Oro Rosa Pulido y Oro Cálido */
.card-duque {
    background: linear-gradient(135deg, #5B3F1D 0%, #1A1208 100%) !important;
    border-color: rgba(253, 186, 116, 0.35) !important; /* Rose Gold / Warm Gold border */
    box-shadow: var(--shadow-lg), 0 0 25px rgba(253, 186, 116, 0.25) !important;
}
.card-duque .card-logo,
.card-duque .card-type,
.card-duque .balance-number {
    color: #FDBA74 !important; /* Warm Rose Gold */
    text-shadow: 0 0 8px rgba(253, 186, 116, 0.3);
}
.card-duque .card-logo {
    background: linear-gradient(135deg, #FFE082 0%, #FDBA74 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.card-duque .card-logo-crown path,
.card-duque .card-crown path {
    fill: #FDBA74 !important;
}

/* 4. Monarca: Obsidian OLED Black + Borde Dorado Radiante + Efecto Cónico Holográfico VIP */
.card-monarca {
    background: #000000 !important;
    border: 2px solid transparent !important;
    position: relative;
    box-shadow: 0 0 35px rgba(255, 179, 0, 0.35), var(--shadow-lg) !important;
}

.card-monarca::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, #FFE082, #FFB300, #FF6F00, #FFE082) !important;
    border-radius: 24px;
    z-index: 0;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* Efecto Brillo Holográfico VIP animado */
.card-monarca .card-glass-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(125deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0) 30%, 
        rgba(255, 215, 0, 0.15) 45%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 215, 0, 0.15) 55%, 
        rgba(255,255,255,0) 70%, 
        rgba(255,255,255,0) 100%) !important;
    background-size: 200% 200% !important;
    animation: holoGlow 6s infinite linear !important;
    z-index: 1;
    pointer-events: none;
}

@keyframes holoGlow {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.card-monarca .card-logo,
.card-monarca .card-type,
.card-monarca .balance-number {
    color: #FFD700 !important; /* Premium Gold */
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.card-monarca .card-logo {
    background: linear-gradient(135deg, #FFF 0%, #FFD700 50%, #FF6F00 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.card-monarca .card-logo-crown path,
.card-monarca .card-crown path {
    fill: #FFD700 !important;
}

/* 6. QR Section (Caja) */
.qr-section {
    text-align: center;
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.section-title ion-icon {
    color: var(--accent);
}

.section-description {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
}

.qr-container {
    background-color: #FFFFFF;
    width: 170px;
    height: 170px;
    border-radius: 20px;
    margin: 0 auto 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.qr-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.phone-display {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* 7. Active Flash Mission Alert */
.flash-mission-card {
    background: linear-gradient(135deg, #7A1C1C 0%, #16161E 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 59, 48, 0.2);
    position: relative;
    overflow: hidden;
    animation: borderGlow 2s infinite alternate;
}

.flash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.flash-badge {
    background-color: var(--danger);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.flash-timer {
    font-size: 12px;
    font-weight: 600;
    color: #FFD2D2;
}

.flash-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.flash-desc {
    color: var(--text-secondary);
    font-size: 13px;
}

.flash-discount {
    color: #FFD60A;
    font-weight: bold;
    font-size: 14px;
    margin-top: 8px;
}

/* Daily Mission (Regular) */
.daily-mission-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 24px;
    border: 1px solid rgba(229, 169, 60, 0.1);
}

.daily-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.daily-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.daily-desc {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 10px;
}

.daily-rewards {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.reward-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.reward-tag.crowns { color: #FFCC00; }
.reward-tag.discount { color: #34C759; }

/* 8. Rewards Catalog Grid */
.rewards-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
}

.reward-item {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 94px;
    cursor: pointer;
}

.reward-item:hover {
    transform: translateY(-3px);
    background-color: var(--bg-card-hover);
    box-shadow: var(--shadow-md), 0 0 15px rgba(229, 169, 60, 0.08);
    border-color: rgba(229, 169, 60, 0.15);
}

.reward-photo-col {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    background-color: #0b0b0f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reward-item:hover .reward-thumbnail {
    transform: scale(1.1);
}

.reward-photo-col.fallback {
    background: linear-gradient(135deg, #1e1e28 0%, #111116 100%);
    border-color: rgba(229, 169, 60, 0.15);
}

.fallback-emblem {
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.reward-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Prevents overflow of long text */
}

.reward-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.reward-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Limit description to 1 line for clean list layout */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.reward-cost {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.reward-equiv {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--text-dim);
    font-weight: 400;
}

.reward-action-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canjear Button states */
.claim-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.claim-btn.locked {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    cursor: not-allowed;
}

.claim-btn.unlocked {
    background-color: var(--text-primary);
    color: #000000;
    box-shadow: var(--shadow-sm);
}

.claim-btn.unlocked:hover {
    background-color: var(--accent);
    box-shadow: 0 4px 10px rgba(229, 169, 60, 0.15);
}

/* 9. Modals (Legal) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 101;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
}

.close-btn:hover {
    color: var(--accent);
}

.modal-body-text {
    padding: 20px;
    overflow-y: auto;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-body-text p {
    margin-bottom: 12px;
}

.modal-body-text h4 {
    color: var(--text-primary);
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Keyframes Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes borderGlow {
    from { border-color: rgba(255, 59, 48, 0.2); }
    to { border-color: rgba(255, 59, 48, 0.5); }
}

/* 11. Welcome Banner & Referrals System Styles */
.welcome-gift-banner {
    background: linear-gradient(135deg, #2A1F0D 0%, #1A1308 100%);
    border: 1px solid rgba(229, 169, 60, 0.3);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    animation: scaleIn 0.4s ease;
}

.welcome-gift-icon {
    font-size: 28px;
    background: rgba(229, 169, 60, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.welcome-gift-text h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.welcome-gift-text p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.referral-section {
    margin-bottom: 20px;
}

.invite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent-gradient);
    color: #000000;
    border: none;
    border-radius: 16px;
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 169, 60, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.invite-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(229, 169, 60, 0.2);
}

.invite-btn ion-icon {
    font-size: 18px;
}

.invite-disclaimer {
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    margin-top: 8px;
    display: block;
    line-height: 1.4;
}

.referred-section {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.referred-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.referred-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.referred-item {
    background-color: #0b0b0f;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.referred-name {
    font-size: 13px;
    font-weight: 600;
}

.referred-status {
    font-size: 11px;
    font-weight: 600;
}

.status-pending {
    color: #FF9500;
}

.status-completed {
    color: #34C759;
    background: rgba(52, 199, 89, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.referred-empty {
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
    padding: 10px 0;
}

/* 12. Premium Redemption Ticket Modal */
.redemption-ticket-container {
    padding: 14px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ticket-graphic {
    background: #1E1E28;
    border-radius: 20px;
    width: 100%;
    max-width: 320px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Dotted ticket separator line with side notches */
.ticket-separator {
    height: 1px;
    border-top: 2px dashed rgba(255, 255, 255, 0.15);
    position: relative;
    margin: 12px 14px;
}

.ticket-separator::before,
.ticket-separator::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #16161E; /* matches modal overlay bg */
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    z-index: 2;
}

.ticket-separator::before {
    left: -25px;
    box-shadow: inset -5px 0 5px rgba(0, 0, 0, 0.2);
}

.ticket-separator::after {
    right: -25px;
    box-shadow: inset 5px 0 5px rgba(0, 0, 0, 0.2);
}

.ticket-top {
    padding: 22px 20px 14px;
    text-align: center;
    background: linear-gradient(180deg, rgba(229, 169, 60, 0.06) 0%, rgba(30, 30, 40, 0) 100%);
}

.ticket-emblem {
    font-size: 32px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.ticket-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
    line-height: 1.2;
}

.ticket-cost-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(229, 169, 60, 0.12);
    border: 1px solid rgba(229, 169, 60, 0.25);
    color: var(--accent);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
    text-transform: uppercase;
}

.ticket-bottom {
    padding: 8px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ticket-qr-wrapper {
    background: #FFFFFF;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    margin-bottom: 14px;
    border: 3px solid var(--accent);
}

.ticket-qr-image {
    width: 140px;
    height: 140px;
    display: block;
}

.ticket-instruction-title {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 6px;
}

.ticket-instruction-desc {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 2px;
    line-height: 1.4;
    max-width: 230px;
}

.ticket-security-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255, 149, 0, 0.08);
    border: 1px solid rgba(255, 149, 0, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 8px;
    max-width: 280px;
}

.ticket-security-warning ion-icon {
    color: #FF9500;
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.ticket-security-warning p {
    font-size: 10.5px;
    color: #FF9500;
    line-height: 1.35;
    margin: 0;
}

/* PWA Installation Floating Banner */
.pwa-install-banner {
    position: fixed;
    top: 15px; /* ¡Ahora arriba! */
    left: 5%;
    right: 5%;
    width: 90%;
    max-width: 420px;
    margin: 0 auto;
    background: rgba(28, 28, 30, 0.98); /* Un poco más opaco para mayor contraste */
    border: 2px solid #E5A93C;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 169, 60, 0.3); /* Sombra más invasiva y brillante */
    border-radius: 16px;
    padding: 14px 16px; /* Más padding para que destaque */
    z-index: 100000;
    display: none; /* Oculto por defecto, se activa por JS */
    animation: slideDownPwa 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; /* Caída del cielo */
    backdrop-filter: blur(15px);
}

@keyframes slideDownPwa {
    from {
        transform: translateY(-150px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-banner-emoji {
    font-size: 28px;
    animation: bounceEmoji 1s infinite alternate;
}

@keyframes bounceEmoji {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); }
}

.pwa-banner-text {
    flex: 1;
}

.pwa-banner-text h4 {
    margin: 0;
    font-size: 13.5px;
    color: #FFFFFF;
    font-weight: 700;
}

.pwa-banner-text p {
    margin: 3px 0 0;
    font-size: 11px;
    color: #AEAEB2;
    line-height: 1.3;
}

.pwa-install-btn {
    background: #E5A93C;
    color: #000000;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pwa-install-btn:hover {
    transform: scale(1.05);
    background: #FFD482;
}

.pwa-close-banner-btn {
    background: transparent;
    border: none;
    color: #8E8E93;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.pwa-close-banner-btn:hover {
    color: #FFFFFF;
}

/* iOS Banner specific styling */
.pwa-ios-banner {
    border-color: #34C759;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(52, 199, 89, 0.2);
}

/* PWA Product Detailed Modal Styling - Rediseñado Premium (Mucha más vida y flow) */
.product-detail-content {
    background: linear-gradient(135deg, rgba(42, 18, 79, 0.96) 0%, rgba(12, 6, 22, 0.99) 100%) !important;
    border: 2px solid rgba(212, 175, 55, 0.45) !important;
    max-width: 420px !important;
    border-radius: 32px !important;
    overflow: hidden;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
}

/* Pulsing neon border glow for high-end feel */
@keyframes modalGlowPulse {
    0% {
        border-color: rgba(212, 175, 55, 0.4);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 25px rgba(138, 43, 226, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    100% {
        border-color: rgba(212, 175, 55, 0.75);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.product-detail-content {
    animation: 
        modalEntrance 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        modalGlowPulse 3s infinite alternate ease-in-out;
}

/* Entrance Animation with small bounce and scaling */
@keyframes modalEntrance {
    0% {
        transform: scale(0.85) translateY(40px) rotate(-1.5deg);
        opacity: 0;
        filter: blur(8px);
    }
    100% {
        transform: scale(1) translateY(0) rotate(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Shine sweep across the modal upon opening */
.product-detail-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-25deg);
    z-index: 10;
    pointer-events: none;
    animation: modalShineSweep 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s forwards;
}

@keyframes modalShineSweep {
    0% { left: -150%; }
    100% { left: 150%; }
}

.product-detail-content .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 20px 24px !important;
    background: rgba(255, 255, 255, 0.01);
}

.product-detail-content .modal-header h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Translucent circle wrapper for the close button */
.product-detail-content .close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-secondary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
}

.product-detail-content .close-btn:hover {
    color: #000000 !important;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.modal-body-product {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(80vh - 77px); /* header height compensation */
}

.product-detail-img-container {
    width: 100%;
    height: 230px;
    position: relative;
    overflow: hidden;
    background-color: #050308;
}

/* Gradient vignette overlay on top of the image to fade into dark card */
.product-detail-img-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(to top, rgba(12, 6, 22, 1) 0%, rgba(12, 6, 22, 0.6) 40%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

#product-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

#product-detail-img:hover {
    transform: scale(1.08);
}

.image-tap-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(212, 175, 55, 0.2);
    color: #FFE082;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    z-index: 2;
    animation: tap-pulse 2s infinite;
}

@keyframes tap-pulse {
    0% { transform: translateX(-50%) scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); }
    50% { transform: translateX(-50%) scale(1.05); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
    100% { transform: translateX(-50%) scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); }
}

.product-info-block {
    padding: 24px 28px !important;
    text-align: left;
    background: transparent;
    z-index: 2;
}

#product-detail-name {
    font-family: 'Outfit', sans-serif !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.product-detail-cost {
    font-family: 'Outfit', sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #FFE082 !important;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: costGlow 2.5s infinite alternate ease-in-out;
}

@keyframes costGlow {
    0% { text-shadow: 0 0 8px rgba(212, 175, 55, 0.15); }
    100% { text-shadow: 0 0 18px rgba(212, 175, 55, 0.7), 0 0 25px rgba(212, 175, 55, 0.4); }
}

.product-detail-desc {
    font-family: var(--font-body);
    font-size: 14px !important;
    color: var(--text-secondary) !important;
    line-height: 1.65;
    margin-bottom: 20px;
}

/* Rediseño del botón Canjear dentro del Modal */
.product-detail-content .claim-btn {
    border: none !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    cursor: pointer !important;
    box-sizing: border-box;
}

.product-detail-content .claim-btn.unlocked-btn {
    background: linear-gradient(135deg, #FFE088 0%, #D4AF37 100%) !important;
    color: #000000 !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3) !important;
    animation: buttonPulseGlow 3s infinite alternate ease-in-out;
}

@keyframes buttonPulseGlow {
    0% { box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25); }
    100% { box-shadow: 0 12px 32px rgba(212, 175, 55, 0.55), 0 0 15px rgba(212, 175, 55, 0.35); }
}

.product-detail-content .claim-btn.unlocked-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.55), 0 0 20px rgba(212, 175, 55, 0.4) !important;
    animation: none; /* stop pulsing on hover */
}

.product-detail-content .claim-btn.unlocked-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.product-detail-content .claim-btn.locked-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    cursor: not-allowed !important;
}

/* Fullscreen Zoom Modal Styling */
.zoom-modal {
    display: none;
    justify-content: center;
    align-items: center;
}
.zoom-modal.active {
    display: flex !important;
}
.zoom-overlay {
    background-color: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(8px);
}
.close-zoom-btn {
    position: absolute;
    top: 30px;
    right: 25px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 38px;
    cursor: pointer;
    z-index: 1300;
    transition: transform 0.2s ease, color 0.2s;
}
.close-zoom-btn:hover {
    transform: scale(1.1);
    color: var(--accent);
}
.zoom-content {
    width: 90%;
    max-width: 440px;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1250;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#zoomed-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 169, 60, 0.2);
}
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* World Cup Rolling Ball Loader Animation styling */
.world-cup-ball-container {
    width: 160px;
    height: 4px;
    background: linear-gradient(90deg, rgba(229,169,60,0) 0%, rgba(229,169,60,0.3) 50%, rgba(229,169,60,0) 100%);
    margin: 24px auto 12px;
    position: relative;
    border-radius: 2px;
}
.world-cup-ball {
    font-size: 26px;
    position: absolute;
    top: -24px;
    left: 0;
    animation: rollLeftRight 3.5s ease-in-out infinite;
    display: inline-block;
}
@keyframes rollLeftRight {
    0% {
        left: 0%;
        transform: rotate(0deg);
    }
    50% {
        left: 80%;
        transform: rotate(360deg);
    }
    100% {
        left: 0%;
        transform: rotate(0deg);
    }
}

/* Tap Hint Styling inside Catalog list */
.tap-hint {
    font-size: 10px;
    color: var(--accent);
    font-weight: 700;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.85;
}
.reward-item {
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}
.reward-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(229, 169, 60, 0.1);
}

/* 13. Vencimiento Alert Banner Styling */
.vencimiento-alert-banner {
    background: linear-gradient(135deg, #3A220F 0%, #201308 100%);
    border: 1.5px solid #FF9500;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm), 0 0 15px rgba(255, 149, 0, 0.1);
    animation: pulseBorder 2s infinite alternate;
}

@keyframes pulseBorder {
    from { border-color: rgba(255, 149, 0, 0.4); box-shadow: 0 0 8px rgba(255, 149, 0, 0.1); }
    to { border-color: rgba(255, 149, 0, 1.0); box-shadow: 0 0 16px rgba(255, 149, 0, 0.25); }
}

.vencimiento-alert-icon {
    font-size: 28px;
    background: rgba(255, 149, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF9500;
    flex-shrink: 0;
}

.vencimiento-alert-text {
    flex: 1;
    text-align: left;
}

.vencimiento-alert-text h4 {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.vencimiento-alert-text p {
    font-size: 12px;
    color: #E2E8F0;
    line-height: 1.4;
}

/* 14. Bottom Navigation & Tab System */
.tab-content {
    display: none;
    opacity: 0;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.screen.active {
    padding-bottom: 40px !important; /* Retorno a padding normal */
}

/* 15. Menu de Accesos Directos Gigantes (Rediseñado a Grid Widgets) */
.menu-accesos-directos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0 10px;
    width: 100%;
}

.acceso-btn {
    position: relative;
    border-radius: 24px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    width: 100%;
    height: 180px;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    outline: none;
    box-sizing: border-box;
}

/* Specific buttons styles */
.btn-premios {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(15, 8, 25, 0.8) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-amigos {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(15, 8, 25, 0.8) 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Shine Reflection Sweep Effect */
.acceso-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    z-index: 1;
}

.acceso-btn:hover::before {
    left: 150%;
    transition: 0.75s;
}

.btn-premios:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.55);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.14) 0%, rgba(25, 12, 45, 0.85) 100%);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.15), 0 0 25px rgba(212, 175, 55, 0.1);
}

.btn-amigos:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.55);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.14) 0%, rgba(25, 12, 45, 0.85) 100%);
    box-shadow: 0 12px 28px rgba(168, 85, 247, 0.15), 0 0 25px rgba(168, 85, 247, 0.1);
}

.acceso-btn:active {
    transform: translateY(-1px) scale(0.97);
    transition: all 0.1s ease;
}

/* Widget Icon Container */
.acceso-icon-container {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.btn-premios .acceso-icon-container {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.03) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.btn-amigos .acceso-icon-container {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.03) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #a855f7;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.1);
}

.acceso-btn:hover .acceso-icon-container {
    transform: scale(1.1) rotate(5deg);
}

.btn-premios:hover .acceso-icon-container {
    border-color: rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.1) 100%);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-amigos:hover .acceso-icon-container {
    border-color: rgba(168, 85, 247, 0.6);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0.1) 100%);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* Widget Texts */
.acceso-text-container {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.acceso-text-container strong {
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    color: #FFFFFF;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 0.2px;
    transition: color 0.3s;
}

.btn-premios:hover .acceso-text-container strong {
    color: #FFE082;
}

.btn-amigos:hover .acceso-text-container strong {
    color: #d8b4fe;
}

.acceso-text-container p {
    font-size: 10.5px;
    color: var(--text-secondary);
    line-height: 1.35;
    margin: 0;
    padding: 0 4px;
}

/* Widget Badge (+30 Coronas) */
.widget-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #FFFFFF;
    font-size: 8px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 3;
    animation: pulse-badge 2s infinite alternate;
}

@keyframes pulse-badge {
    0% { transform: scale(1); box-shadow: 0 4px 8px rgba(0,0,0,0.3); }
    100% { transform: scale(1.05); box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4); }
}

/* 16. Boton de Retorno Volver al Inicio */
.back-to-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.back-to-home-btn ion-icon {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.back-to-home-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-home-btn:hover ion-icon {
    transform: translateX(-3px);
}

.back-to-home-btn:active {
    transform: scale(0.98);
}

/* --- Stitch 'Púrpura Imperial y Oro' Overrides --- */

/* Radial background gradient for deep royal purple look */
#app-container, body {
    background: radial-gradient(circle at center, #1C0F2F 0%, #07030A 100%) !important;
}

/* Gold Gradient text helper */
.gold-gradient-text {
    background: linear-gradient(135deg, #FFE088 0%, #D4AF37 50%, #B8860B 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800;
}

/* Elegant classic-premium card layout (Purple Glass and Gold Border) */
.classic-premium-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.12) 0%, rgba(10, 5, 18, 0.88) 100%) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(138, 43, 226, 0.25) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.classic-premium-card:hover {
    transform: translateY(-4px) scale(1.01);
}

/* Glowing effects */
.gold-glow {
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.45));
}

/* Modernized Progress Bar styling */
.progress-bar-container {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(138, 43, 226, 0.15);
    height: 8px !important;
    border-radius: 4px !important;
}

.progress-bar {
    background: linear-gradient(90deg, #D4AF37 0%, #FFE088 50%, #D4AF37 100%) !important;
    background-size: 200% 100% !important;
    animation: shimmerProgress 3s infinite linear !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5) !important;
    border-radius: 4px !important;
}

/* Modernized QR Container style */
.qr-section {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.08) 0%, rgba(15, 8, 25, 0.6) 100%) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.22) !important;
    box-shadow: var(--shadow-md), 0 0 15px rgba(138, 43, 226, 0.15) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}



/* Catalog Reward items progress bar custom styling */
.reward-progress-container {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.reward-progress-bar {
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* General card styling override for theme consistency */
.card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.07) 0%, rgba(15, 8, 25, 0.75) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
}

/* Clean spacing for profile screen */
#profile-screen {
    padding-bottom: 50px !important;
}

/* === Starbucks-Style Rewards Catalog Redesign === */
.starbucks-points-container {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(10, 5, 18, 0.9) 100%) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 24px !important;
    padding: 20px !important;
    margin-bottom: 25px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-md) !important;
}

.starbucks-points-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.current-balance-title {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--text-secondary) !important;
    margin-bottom: 6px !important;
}

.points-value-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.crown-icon-glow {
    font-size: 32px !important;
    color: var(--accent) !important;
    filter: drop-shadow(0 0 8px var(--accent)) !important;
}

.points-large-number {
    font-family: var(--font-heading) !important;
    font-size: 44px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1) !important;
}

.starbucks-slider-bar {
    width: 100% !important;
    height: 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 3px !important;
    position: relative !important;
    margin: 20px 0 10px !important;
}

.starbucks-slider-fill {
    height: 100% !important;
    border-radius: 3px !important;
    background: linear-gradient(90deg, #D4AF37 0%, #FFE088 100%) !important;
    box-shadow: 0 0 8px var(--accent) !important;
    width: 0%; /* Updated dynamically */
    transition: width 0.5s ease !important;
}

.points-tiers-scroller {
    display: flex !important;
    overflow-x: auto !important;
    gap: 15px !important;
    padding: 10px 0 !important;
    margin-bottom: 20px !important;
    scrollbar-width: none !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.05) !important;
}

.points-tiers-scroller::-webkit-scrollbar {
    display: none !important;
}

.tier-tab {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    color: var(--text-dim) !important;
    font-family: var(--font-accent), var(--font-body) !important;
    padding: 4px 8px !important;
    min-width: 60px !important;
    transition: all 0.25s ease !important;
    position: relative !important;
}

.tier-tab .crown-val {
    font-size: 15px !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
}

.tier-tab .crown-lbl {
    font-size: 9px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

.tier-tab.active {
    color: var(--accent) !important;
}

.tier-tab::after {
    content: '' !important;
    position: absolute !important;
    bottom: -11.5px !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: var(--accent) !important;
    transform: scaleX(0) !important;
    transition: transform 0.25s ease !important;
}

.tier-tab.active::after {
    transform: scaleX(1) !important;
}

.tier-explanation-banner {
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin-bottom: 25px !important;
    border-left: 3px solid var(--accent) !important;
    animation: fadeIn 0.3s ease !important;
}

.tier-explanation-banner h4 {
    font-family: var(--font-heading) !important;
    font-size: 14px !important;
    color: #FFFFFF !important;
    margin-bottom: 3px !important;
}

.tier-explanation-banner p {
    font-size: 11.5px !important;
    color: var(--text-secondary) !important;
    line-height: 1.4 !important;
}

.starbucks-rewards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    margin-bottom: 40px !important;
}

.starbucks-reward-card {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    height: 255px !important;
}

.starbucks-reward-card:hover {
    transform: translateY(-5px) !important;
    background: var(--bg-card-hover) !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
    box-shadow: var(--shadow-md), 0 0 15px rgba(138, 43, 226, 0.15) !important;
}

.card-img-container {
    width: 100% !important;
    height: 130px !important;
    position: relative !important;
    overflow: hidden !important;
    background: #0B0B0F !important;
}

.card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.starbucks-reward-card:hover .card-img {
    transform: scale(1.08) !important;
}

.card-point-badge {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: var(--accent-gradient) !important;
    color: #000000 !important;
    padding: 4px 8px !important;
    border-radius: 20px !important;
    font-family: var(--font-accent), var(--font-body) !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
    z-index: 10 !important;
}

.card-lock-overlay {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

.starbucks-reward-card.locked .card-lock-overlay {
    opacity: 1 !important;
}

.lock-icon-circle {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(18, 18, 22, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-secondary) !important;
    font-size: 18px !important;
    margin-bottom: 6px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.3s ease !important;
}

.starbucks-reward-card.locked:hover .lock-icon-circle {
    transform: scale(1.1) !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.lock-text {
    font-family: var(--font-accent), var(--font-body) !important;
    font-size: 10.5px !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.card-info {
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    justify-content: space-between !important;
}

.card-title {
    font-family: var(--font-heading) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-bottom: 3px !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 34px !important;
}

.card-description {
    font-size: 10.5px !important;
    color: var(--text-secondary) !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    height: 28px !important;
}

.card-progress-bar {
    width: 100% !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 1.5px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
}

.card-progress-fill {
    height: 100% !important;
    background: var(--accent-gradient) !important;
    width: 0%;
    transition: width 0.5s ease !important;
}

.card-btn {
    border: none !important;
    width: 100% !important;
    padding: 7px 10px !important;
    border-radius: 30px !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.card-btn.unlocked-btn {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
}

.card-btn.unlocked-btn:hover {
    background-color: var(--accent) !important;
    transform: scale(1.03) !important;
    box-shadow: 0 4px 10px var(--accent-glow) !important;
}

.card-btn.locked-btn {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-dim) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* === Starbucks-Style Referrals (Club de Amigos) Redesign === */
.referral-stats-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
}

.stat-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.08) 0%, rgba(10, 5, 20, 0.8) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 18px !important;
    padding: 14px !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
}

.stat-card.full-width {
    grid-column: span 2 !important;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.12) 0%, rgba(212, 175, 55, 0.1) 100%) !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

.stat-card.full-width::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 80%);
    pointer-events: none;
}

.stat-val {
    font-family: var(--font-heading) !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    margin-bottom: 2px !important;
}

.stat-card.full-width .stat-val {
    color: var(--accent) !important;
    font-size: 32px !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2) !important;
}

.stat-lbl {
    font-size: 10px !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.referral-steps-box {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 24px !important;
    padding: 16px !important;
    margin-bottom: 24px !important;
}

.steps-box-title {
    font-family: var(--font-heading) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-bottom: 12px !important;
    text-align: center !important;
}

.steps-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.step-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.step-num-circle {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: rgba(212, 175, 55, 0.15) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-accent), var(--font-body) !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    color: var(--accent) !important;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-info {
    flex: 1 !important;
}

.step-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-bottom: 1px !important;
}

.step-desc {
    font-size: 10.5px !important;
    color: var(--text-secondary) !important;
    line-height: 1.35 !important;
}

.referral-share-card {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 22px !important;
    padding: 16px !important;
    margin-bottom: 24px !important;
    box-shadow: var(--shadow-sm) !important;
}

.share-card-title {
    font-family: var(--font-heading) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-bottom: 8px !important;
    text-align: center !important;
}

.copy-link-wrapper {
    display: flex !important;
    background: #0B0B0F !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 4px !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    transition: border-color 0.2s !important;
}

.copy-link-wrapper:focus-within {
    border-color: var(--accent) !important;
}

.copy-input {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary) !important;
    font-family: var(--font-body) !important;
    font-size: 11.5px !important;
    padding: 8px 10px !important;
    outline: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.copy-btn {
    background: var(--accent-gradient) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #000000 !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 8px 14px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s ease !important;
}

.copy-btn:hover {
    opacity: 0.9 !important;
}

.copy-btn.copied {
    background: var(--success) !important;
    color: #FFFFFF !important;
}

.whatsapp-share-btn {
    background: #25D366 !important;
    border: none !important;
    border-radius: 14px !important;
    color: #FFFFFF !important;
    font-family: var(--font-accent), var(--font-body) !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 12px !important;
    width: 100% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.whatsapp-share-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4) !important;
}

.whatsapp-share-btn:active {
    transform: translateY(0) !important;
}

.whatsapp-share-btn ion-icon {
    font-size: 18px !important;
}

.invited-friends-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 40px !important;
}

.section-title {
    font-family: var(--font-heading) !important;
    font-size: 16px !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 4px !important;
}

.section-desc {
    font-size: 11.5px !important;
    color: var(--text-secondary) !important;
    margin-bottom: 8px !important;
}

.friends-list-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.friend-card {
    background: var(--bg-card) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 18px !important;
    padding: 12px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.friend-card:hover {
    transform: translateX(4px) !important;
    background: var(--bg-card-hover) !important;
    border-color: rgba(138, 43, 226, 0.2) !important;
}

.friend-card.completed-card {
    border-color: rgba(52, 199, 89, 0.25) !important;
}

.friend-card.completed-card:hover {
    border-color: rgba(52, 199, 89, 0.4) !important;
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.08) !important;
}

.friend-info-block {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.friend-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #1B1028 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-accent), var(--font-body) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm) !important;
}

.completed-card .friend-avatar {
    background: rgba(52, 199, 89, 0.1) !important;
    border-color: rgba(52, 199, 89, 0.3) !important;
    color: var(--success) !important;
}

.friend-texts {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.friend-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.friend-date {
    font-size: 10px !important;
    color: var(--text-dim) !important;
}

.status-badge {
    font-family: var(--font-body) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0;
}

.status-badge.pending-badge {
    background: rgba(255, 149, 0, 0.08) !important;
    border: 1px solid rgba(255, 149, 0, 0.2) !important;
    color: var(--warning) !important;
}

.status-badge.completed-badge {
    background: var(--success-glow) !important;
    border: 1px solid rgba(52, 199, 89, 0.3) !important;
    color: var(--success) !important;
    animation: bounceIn 0.5s ease forwards !important;
}

.empty-friends {
    font-size: 12.5px !important;
    color: var(--text-dim) !important;
    text-align: center !important;
    padding: 30px 20px !important;
    border: 1.5px dashed rgba(255, 255, 255, 0.05) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,0.01) !important;
}

.celebration-points {
    position: absolute !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--accent) !important;
    pointer-events: none !important;
    z-index: 100 !important;
    animation: floatPoints 1.2s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards !important;
    text-shadow: 0 0 8px var(--accent) !important;
}

@keyframes floatPoints {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(-40px) scale(1.1); opacity: 0; }
}

@keyframes bounceIn {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* === Fase 3: Pantalla Principal e Interactiva === */

/* 1. 3D Card Parallax & perspective */
.card-section {
    perspective: 1000px;
    width: 100%;
}

.loyalty-card {
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.2, 1), box-shadow 0.3s ease;
}

/* 3D layers inside card */
.loyalty-card .card-header {
    transform: translateZ(30px);
}

.loyalty-card .card-balance-container {
    transform: translateZ(45px);
}

.loyalty-card .card-holder-row {
    transform: translateZ(25px);
}

.loyalty-card .card-footer {
    transform: translateZ(20px);
}

/* Metallic light shine effect */
.card-shine {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 224, 136, 0.22) 0%, transparent 60%);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 5;
}

.card-monarca .card-shine {
    background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.45) 0%, transparent 65%) !important;
}

/* 2. Senda de Hitos del Rango (Timeline Map) */
.ranks-timeline-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.07) 0%, rgba(15, 8, 25, 0.75) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 20px;
    padding: 20px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
}

.kingdom-path {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 10px 5px 25px;
    margin-top: 10px;
}

.path-line-background {
    position: absolute;
    top: 25px; left: 0; right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 1;
    border-radius: 2px;
}

.path-line-fill {
    position: absolute;
    top: 25px; left: 0;
    height: 4px;
    background: linear-gradient(90deg, #CD7F32, #E2E8F0, var(--accent));
    box-shadow: 0 0 10px var(--accent);
    width: 0%; /* Updated dynamically */
    z-index: 2;
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.path-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    cursor: pointer;
}

.node-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1C1028;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.path-node.completed .node-circle {
    background: #25123E;
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    color: #FFFFFF;
}

.path-node.active .node-circle {
    background: var(--accent-gradient);
    border-color: #FFFFFF;
    box-shadow: 0 0 18px var(--accent);
    transform: scale(1.18);
    animation: pulse-ring 2s infinite ease-in-out;
}

.node-name {
    position: absolute;
    bottom: -22px;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.3s;
}

.path-node.active .node-name {
    color: var(--accent) !important;
    font-weight: 700;
}

.path-node.completed .node-name {
    color: #FFFFFF;
}

/* 3. Collapsible QR Drawer Trigger */
.qr-drawer-trigger {
    width: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(212, 175, 55, 0.15) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 18px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), var(--shadow-glow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 10px;
}

.qr-drawer-trigger:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

.qr-drawer-trigger ion-icon {
    font-size: 18px;
    color: var(--accent);
    animation: pulse-ring 2.5s infinite;
}

/* 4. Slide-Up Drawer Overlay and Content */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.qr-drawer-content {
    position: fixed;
    left: 50%;
    bottom: -100%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 420px;
    background: #16161e;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px 30px 24px 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    z-index: 1001;
    padding: 24px;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Spring bounce physics */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-drawer-content.active {
    bottom: 20px;
}

.drawer-bar-handle {
    width: 50px;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.drawer-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
}

/* Ticket Coupon container inside Drawer */
.ticket-box {
    width: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.08) 0%, rgba(10, 5, 20, 0.95) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.ticket-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1.5px dashed rgba(212, 175, 55, 0.25);
    position: relative;
}

.ticket-header::before, .ticket-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #16161e;
    border: 1.5px solid rgba(212, 175, 55, 0.25);
    z-index: 10;
}
.ticket-header::before { left: -9px; }
.ticket-header::after { right: -9px; }

.ticket-emblem {
    font-size: 32px;
    margin-bottom: 6px;
}

.ticket-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
}

.ticket-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ticket-qr-container {
    background: #FFFFFF;
    padding: 10px;
    border-radius: 14px;
    width: 150px;
    height: 150px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
}

.ticket-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ticket-instruction {
    font-size: 12.5px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.ticket-subinstruction {
    font-size: 10.5px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.35;
}

.ticket-warning {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 15px;
    font-size: 9px;
    color: var(--text-dim);
    line-height: 1.3;
}

.ticket-warning ion-icon {
    font-size: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

/* keyframes & helper effects */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* === Mundial 2026 Tab & Fixture Styling === */

.banner-mundial-acceso {
    position: relative;
    background: linear-gradient(135deg, rgba(37, 102, 211, 0.15) 0%, rgba(212, 175, 55, 0.15) 100%) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: 22px !important;
    padding: 16px 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 18px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.banner-mundial-acceso:hover {
    transform: translateY(-2px) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15) !important;
    background: linear-gradient(135deg, rgba(37, 102, 211, 0.2) 0%, rgba(212, 175, 55, 0.2) 100%) !important;
}

.banner-mundial-acceso:active {
    transform: translateY(0) scale(0.98) !important;
}

.banner-mundial-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 8.5px;
    font-weight: 800;
    color: #FF3B30;
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.3);
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-dot {
    width: 5px;
    height: 5px;
    background-color: #FF3B30;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.banner-mundial-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.banner-mundial-icon {
    font-size: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.banner-mundial-text h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.banner-mundial-text p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.banner-mundial-arrow {
    color: var(--text-dim);
    font-size: 20px;
    display: flex;
    align-items: center;
    margin-left: 10px;
    transition: color 0.2s, transform 0.2s;
}

.banner-mundial-acceso:hover .banner-mundial-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* Mundial Promo Banner Styling */
.mundial-promo-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(138, 43, 226, 0.08) 100%) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: 18px !important;
    padding: 14px 16px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), var(--shadow-sm);
    animation: fadeInTab 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease !important;
}

.mundial-promo-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.1) !important;
}

.mundial-promo-banner-icon {
    font-size: 24px !important;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.mundial-promo-banner-text {
    flex: 1;
}

.mundial-promo-banner-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2px;
}

.mundial-promo-banner-text p {
    font-family: var(--font-body);
    font-size: 11px;
    color: #E2E8F0;
    line-height: 1.4;
    margin: 0;
}

.mundial-promo-banner-arrow {
    font-size: 16px;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.mundial-promo-banner:hover .mundial-promo-banner-arrow {
    transform: translateX(3px);
}

/* Tab Mundial View styling */
.tab-mundial-banner {
    background: linear-gradient(135deg, rgba(16, 24, 48, 0.7) 0%, rgba(5, 8, 16, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    padding: 24px 20px !important;
    text-align: center;
    margin-bottom: 20px !important;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.tab-mundial-banner::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.mundial-banner-badge {
    font-size: 9px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.tab-mundial-banner h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tab-mundial-banner p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
    max-width: 90%;
    margin: 0 auto;
}

/* Fixture Filters Grid (Premium Redesign) */
.fixture-filters {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 26px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.fixture-filters .filter-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 20px !important;
    padding: 14px 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-align: center;
    color: var(--text-secondary) !important;
    position: relative;
    overflow: hidden;
    outline: none;
    box-shadow: var(--shadow-sm);
}

.fixture-filters .filter-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 70%);
    pointer-events: none;
}

.fixture-filters .filter-card-icon {
    font-size: 20px !important;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fixture-filters .filter-card-title {
    font-family: var(--font-heading) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.fixture-filters .filter-card-sub {
    font-family: var(--font-body) !important;
    font-size: 8.5px !important;
    font-weight: 600 !important;
    color: var(--text-dim) !important;
    letter-spacing: 0;
    line-height: 1.1;
}

.fixture-filters .filter-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25) !important;
}

.fixture-filters .filter-card:hover .filter-card-icon {
    transform: scale(1.15) rotate(3deg);
}

/* Active State with Imperial Gold and Purple Glow */
.fixture-filters .filter-card.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(138, 43, 226, 0.12) 100%) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.6) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2), 0 0 15px rgba(138, 43, 226, 0.15) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

.fixture-filters .filter-card.active .filter-card-icon {
    transform: scale(1.2) !important;
}

.fixture-filters .filter-card.active .filter-card-title {
    color: var(--accent) !important; /* Gold text */
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.fixture-filters .filter-card.active .filter-card-sub {
    color: rgba(255, 255, 255, 0.8) !important;
}

.fixture-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 30px !important;
}

/* Match Card styling */
.match-card {
    background: var(--bg-card) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 20px !important;
    padding: 16px 14px !important;
    box-shadow: var(--shadow-sm) !important;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.match-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.match-card.match-live {
    border-color: rgba(255, 59, 48, 0.7) !important;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.07) 0%, rgba(20, 10, 20, 0.98) 100%) !important;
    box-shadow: 0 8px 32px rgba(255, 59, 48, 0.2) !important;
    transform: scale(1.02) !important;
    z-index: 2;
    animation: livePulseCard 3s infinite ease-in-out !important;
}

.match-card.match-live:hover {
    transform: scale(1.03) translateY(-2px) !important;
    border-color: rgba(255, 59, 48, 1) !important;
    box-shadow: 0 12px 40px rgba(255, 59, 48, 0.35) !important;
}

.match-card.match-live::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF3B30, #FF9500) !important;
    box-shadow: 0 0 15px #FF3B30 !important;
}

@keyframes livePulseCard {
    0% {
        border-color: rgba(255, 59, 48, 0.6) !important;
        box-shadow: 0 8px 32px rgba(255, 59, 48, 0.15), 0 0 0 0px rgba(255, 59, 48, 0.2) !important;
    }
    50% {
        border-color: rgba(255, 59, 48, 1) !important;
        box-shadow: 0 12px 40px rgba(255, 59, 48, 0.35), 0 0 0 2.5px rgba(255, 59, 48, 0.3) !important;
    }
    100% {
        border-color: rgba(255, 59, 48, 0.6) !important;
        box-shadow: 0 8px 32px rgba(255, 59, 48, 0.15), 0 0 0 0px rgba(255, 59, 48, 0.2) !important;
    }
}

.match-card.match-final {
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
    transition: opacity 0.2s ease, background 0.2s ease !important;
}

.match-card.match-final:hover {
    opacity: 0.9 !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.match-card.match-final .match-card-header {
    margin-bottom: 2px !important;
    font-size: 8px !important;
}

.match-card.match-final .match-score-row {
    margin: 0 !important;
}

.match-card.match-final .match-score-num {
    font-size: 16px !important;
    font-weight: 700 !important;
}

.match-card.match-final .match-team {
    font-size: 11.5px !important;
    font-weight: 500 !important;
}

.match-card.match-final .match-card-footer {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    font-size: 8px !important;
    opacity: 0.7 !important;
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-card-header .match-group {
    color: var(--text-secondary);
}

.match-card-header .match-live-badge {
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF3B30;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 8.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-card-header .match-final-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 8px;
}

/* Score row */
.match-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 12px;
}

.match-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    min-width: 0;
}

.match-team.team-a {
    justify-content: flex-end;
    text-align: right;
}

.match-team.team-b {
    justify-content: flex-start;
    text-align: left;
}

.match-team span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-team-flag {
    font-size: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.match-score-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 80px;
    flex-shrink: 0;
}

.match-score-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    width: 25px;
    text-align: center;
}

.match-score-box.live-score .match-score-num {
    color: #FF3B30;
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.3);
}

.match-score-divider {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

/* Footer row */
.match-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 10px;
    margin-top: 4px;
    font-size: 10px;
    color: var(--text-secondary);
}

.match-time-place {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.match-venue {
    font-size: 9px;
    color: var(--text-dim);
}

.tv-channel-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--accent);
    font-weight: 600;
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-empty-message {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-dim);
    font-size: 12px;
    border: 1.5px dashed rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.01);
}

/* ============================================
   HISTORIAL DE MOVIMIENTOS
   ============================================ */

/* Botón sutil de acceso rápido al historial */
.historial-acceso-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 11px 16px;
    cursor: pointer;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 500;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    margin-top: 10px;
}

.historial-acceso-btn ion-icon:first-child {
    font-size: 16px;
    color: rgba(212, 175, 55, 0.5);
    flex-shrink: 0;
}

.historial-acceso-btn span {
    flex: 1;
}

.historial-acceso-btn .historial-chevron {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.historial-acceso-btn:active {
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.15);
    color: var(--text-secondary);
}

/* Header de la pestaña historial */
.historial-header-section {
    text-align: center;
    padding: 10px 0 20px;
}

.historial-header-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.historial-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.historial-subtitle {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Sección de lista */
.historial-list-section {
    flex: 1;
    padding-bottom: 40px;
}

.historial-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Estado de carga */
.historial-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 50px 20px;
    color: var(--text-dim);
    font-size: 13px;
}

.historial-loading ion-icon {
    font-size: 28px;
    opacity: 0.4;
}

/* Estado vacío */
.historial-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 50px 20px;
    text-align: center;
}

.historial-empty-icon {
    font-size: 40px;
    opacity: 0.5;
}

.historial-empty h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
}

.historial-empty p {
    font-size: 12px;
    color: var(--text-dim);
    max-width: 220px;
    line-height: 1.5;
}

/* Ítem de movimiento */
.historial-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 12px 14px;
    transition: background 0.15s ease;
}

.historial-item:active {
    background: rgba(255, 255, 255, 0.04);
}

/* Ícono circular izquierdo */
.historial-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
}

.historial-item.positivo .historial-icon {
    background: rgba(52, 199, 89, 0.1);
}

.historial-item.negativo .historial-icon {
    background: rgba(255, 59, 48, 0.08);
}

/* Texto central */
.historial-info {
    flex: 1;
    min-width: 0;
}

.historial-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.historial-date {
    font-size: 10.5px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* Variación de coronas a la derecha */
.historial-delta {
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    text-align: right;
    font-family: var(--font-body);
}

.historial-item.positivo .historial-delta {
    color: #34C759;
}

.historial-item.negativo .historial-delta {
    color: #FF6B6B;
}

/* Separador de mes */
.historial-month-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 4px 2px;
}
