/* CSS Design System & Aesthetics for LÁMINAS */

/* --- ROOT VARIABLES (LIGHT & DARK THEMES) --- */
:root {
    /* Light Theme (Match mockup exactly) */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'EB Garamond', Georgia, serif;

    --bg-main: #fcfcfd;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --border-color: #ededed;
    --border-light: #f5f5f5;

    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #8c8c9e;
    --text-light: #999999;

    --color-primary: #1a1a1a;
    --color-primary-hover: #333333;
    --color-accent: #0066cc;
    --color-success: #10b981;
    --color-repeated: #f59e0b;
    --color-missing: #6b7280;

    /* Rare / Holographic Card Colors */
    --holo-glow: linear-gradient(135deg, #ff007f, #7f00ff, #00f0ff, #ff007f);
    --gold-glow: linear-gradient(135deg, #ffe066, #f59e0b, #d97706, #ffe066);

    /* Elevation Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 15px rgba(26, 26, 26, 0.1);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark-theme {
    /* Dark Theme */
    --bg-main: #0b0f19;
    --bg-card: #151d30;
    --bg-header: #0f1524;
    --border-color: #242f47;
    --border-light: #1b263b;

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-light: #4b5563;

    --color-primary: #ffffff;
    --color-primary-hover: #e5e7eb;
    --color-accent: #3b82f6;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* --- GENERAL RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- BACKGROUND GLOW EFFECT --- */
.glow-accent {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 120px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.02) 0%, rgba(26, 26, 26, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.dark-theme .glow-accent {
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.08) 0%, rgba(11, 15, 25, 0) 70%);
    height: 300px;
}

/* --- HEADER SECTION --- */
.main-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    height: 72px;
    display: flex;
    align-items: center;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-svg {
    flex-shrink: 0;
    transition: transform var(--transition-bounce), filter var(--transition-fast);
    filter: drop-shadow(0 2px 6px rgba(129, 140, 248, 0.3));
}

.logo-link:hover .logo-svg {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 4px 12px rgba(192, 132, 252, 0.55));
}

.logo-wordmark {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
}

.logo-wordmark strong {
    font-weight: 800;
    color: var(--text-primary);
}

.dark-theme .logo-svg {
    filter: drop-shadow(0 2px 10px rgba(129, 140, 248, 0.5));
}


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

.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn-create-account {
    background-color: var(--color-primary);
    color: var(--bg-header);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-create-account:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.user-avatar-mini {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 10px;
}

.user-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hidden {
    display: none !important;
}

/* --- NAVIGATION TABS --- */
.main-nav {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-header);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide for Firefox */
}

.nav-container::-webkit-scrollbar {
    display: none;
    /* Hide for Chrome */
}

.nav-tab {
    padding: 18px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    position: relative;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.nav-tab:hover {
    color: var(--text-primary);
}

.nav-tab.active {
    color: var(--text-primary);
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.nav-tab.active::after {
    transform: scaleX(1);
}

/* --- APP MAIN LAYOUT --- */
.app-main-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 20px 80px 20px;
}

.content-container {
    width: 100%;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn var(--transition-normal) ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* --- MI ÁLBUM VIEW --- */

/* Overview & Stats Block */
.album-overview-block {
    margin-bottom: 32px;
}

.album-image {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.overview-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 12px;
}

@media(min-width: 480px) {
    .overview-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.overview-stats {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.stats-count {
    font-weight: 600;
    color: var(--text-secondary);
}

.stats-divider {
    margin: 0 6px;
}

/* Progress bar system */
.album-progress-container {
    width: 100%;
    max-width: 320px;
}

.progress-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}

.progress-label {
    color: var(--text-secondary);
}

.progress-percentage {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
}

.progress-bar-bg {
    height: 6px;
    background-color: var(--border-color);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--color-primary);
    border-radius: var(--radius-pill);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-subtext {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

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

.inline-link {
    color: var(--text-primary);
    text-decoration: underline;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.inline-link:hover {
    opacity: 0.7;
}

/* Search bar design */
.search-bar-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 48px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0 50px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--text-muted);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.05);
}

.dark-theme .search-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.search-input::placeholder {
    color: var(--text-light);
    font-style: italic;
}

.clear-search-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.clear-search-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* Quick Filter Badges Row */
.quick-filters-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.quick-filters-row::-webkit-scrollbar {
    display: none;
}

.quick-filter-btn {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.quick-filter-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.quick-filter-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--bg-header);
}

/* Loading state styling */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.loading-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-light);
}

/* --- ACCORDIONS LIST --- */
.groups-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    /* border grid effect */
    background-color: var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.accordion-item {
    background-color: var(--bg-card);
    transition: background-color var(--transition-normal);
}

/* Accordion Header */
.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    text-align: left;
    transition: background-color var(--transition-fast);
}

.accordion-header:hover {
    background-color: var(--border-light);
}

.accordion-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.accordion-flag {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.accordion-flag .fi {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    background-size: cover;
}

.accordion-progress-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    background-color: var(--border-color);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
}

.accordion-progress-pill.completed {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.accordion-toggle-icon {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform var(--transition-normal);
}

/* Accordion Collapsed States */
.accordion-item.collapsed .accordion-toggle-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 2000px;
    overflow: hidden;
    border-top: 1px solid var(--border-light);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s;
    background-color: var(--bg-main);
}

.accordion-item.collapsed .accordion-body {
    max-height: 0 !important;
    border-top-color: transparent;
}

.accordion-grid-wrapper {
    padding: 16px;
}

/* --- STICKER GRID --- */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media(min-width: 480px) {
    .sticker-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

@media(min-width: 640px) {
    .sticker-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 12px;
    }
}

/* STICKER CARD */
.sticker-card {
    aspect-ratio: 3 / 4;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-fast), transform var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

/* Hover Zoom & Elevation */
.sticker-card:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--shadow-md);
    z-index: 10;
    border-color: var(--text-muted);
}

/* Card States */

/* State 0: Missing */
.sticker-card.missing {
    background-color: var(--bg-main);
    border-style: dashed;
    border-color: var(--border-color);
}

.sticker-card.missing .sticker-num {
    color: var(--text-light);
    opacity: 0.8;
}

.sticker-card.missing .sticker-name {
    color: var(--text-muted);
    opacity: 0.5;
}

.sticker-card.missing:hover {
    border-style: solid;
    background-color: var(--bg-card);
}

/* State 1: Owned */
.sticker-card.owned {
    border: 1.5px solid var(--text-primary);
}

/* Rare Card Glow / Holographic Effect */
.sticker-card.rare {
    border: 1.5px solid #d97706;
    /* gold border */
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.6) 0%, rgba(253, 230, 138, 0.4) 100%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.dark-theme .sticker-card.rare {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(120, 53, 4, 0.1) 100%);
}

/* Holographic Shimmer */
.sticker-card.holo {
    border: 1.5px solid transparent;
    background: var(--bg-card);
}

.sticker-card.holo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    padding: 1.5px;
    background: var(--holo-glow);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.sticker-card.holo:hover {
    box-shadow: 0 0 12px rgba(127, 0, 255, 0.3);
}

/* Sticker inner elements */
.sticker-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.sticker-name {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-top: 4px;
}

/* Sticker Rare icon indicator */
.sticker-star {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 8px;
    color: var(--color-repeated);
}

/* Repeated badge badge counter */
.sticker-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background-color: var(--color-repeated);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--bg-card);
    z-index: 5;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* --- BUSCADOR AVANZADO --- */
.search-view-header {
    margin-bottom: 24px;
}

.search-view-header h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.search-view-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.search-controls-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}

@media(min-width: 520px) {
    .filters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-select {
    height: 38px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 10px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast);
}

.custom-select:focus {
    border-color: var(--text-muted);
}

.advanced-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media(min-width: 480px) {
    .advanced-results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(min-width: 640px) {
    .advanced-results-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.no-results-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: var(--text-muted);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.no-results-card i {
    font-size: 24px;
    margin-bottom: 8px;
}

/* --- TRADES VIEW --- */
.trades-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media(min-width: 768px) {
    .trades-container {
        flex-direction: row;
    }
}

.trades-left {
    flex: 1.2;
}

.trades-left h2,
.trades-right h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.trades-left p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.share-box-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.share-box-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.share-subtext {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px !important;
}

.share-lists-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

@media(min-width: 480px) {
    .share-lists-wrapper {
        flex-direction: row;
    }
}

.share-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-col-title {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.label-owned-share {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.label-repeated {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-repeated);
}

.label-missing {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--color-missing);
}

.share-col textarea {
    height: 120px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-family: inherit;
    font-size: 12px;
    color: var(--text-primary);
    resize: none;
    outline: none;
    transition: border-color var(--transition-fast);
}

.share-col textarea:focus {
    border-color: var(--text-muted);
}

.share-buttons-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.share-buttons-row button {
    flex: 1;
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.w-full {
    width: 100%;
}

.mt-4 {
    margin-top: 16px;
}

.mt-6 {
    margin-top: 24px;
}

.trades-right {
    flex: 0.8;
}

.trade-matcher-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.trade-matcher-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.trade-matcher-subtext {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.matcher-inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.matcher-inputs label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.matcher-inputs textarea {
    height: 80px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-family: inherit;
    font-size: 12px;
    color: var(--text-primary);
    resize: none;
    outline: none;
    transition: border-color var(--transition-fast);
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--color-primary);
    color: var(--bg-header);
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
}

/* Matcher calculations results box */
.matching-results-area {
    margin-top: 20px;
    border-top: 1.5px dashed var(--border-color);
    padding-top: 20px;
    animation: fadeIn 0.4s ease;
}

.matching-results-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.match-score-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.match-circular-progress {
    width: 60px;
    height: 60px;
    position: relative;
}

.circular-chart {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s ease;
}

.circular-chart.green .circle {
    stroke: var(--color-success);
}

.percentage-val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
}

.match-summary-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.match-detail-lists {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-list-item {
    font-size: 12px;
    line-height: 1.4;
}

.match-list-badge {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

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

.repeated-badge {
    color: var(--color-repeated);
}

.match-list-item p {
    color: var(--text-secondary);
    padding-left: 18px;
    word-break: break-all;
}

/* --- CAMBIATONES VIEW --- */
.cambiatones-header {
    margin-bottom: 24px;
}

.cambiatones-header h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.cambiatones-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.cambiatones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media(min-width: 580px) {
    .cambiatones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.event-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--text-muted);
}

.event-banner {
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #3b82f6);
}

.event-body {
    padding: 20px;
}

.event-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    background-color: var(--border-color);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.event-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.event-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.event-info-item {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-info-item i {
    width: 14px;
    color: var(--text-muted);
}

.event-footer {
    padding: 16px 20px;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-attending-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-rsvp {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    transition: all var(--transition-fast);
}

.btn-rsvp:hover {
    background-color: var(--color-primary);
    color: var(--bg-header);
}

.btn-rsvp.attending {
    background-color: var(--color-success);
    border-color: var(--color-success);
    color: #ffffff;
}

/* Map Mock Block */
.cambiaton-map-mock {
    width: 100%;
}

.map-placeholder {
    height: 240px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.map-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, rgba(0, 0, 0, 0) 80%);
    pointer-events: none;
}

.map-placeholder-icon {
    font-size: 36px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.map-placeholder h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.map-placeholder p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 360px;
}

/* --- INTERACTIVE MODAL (STICKER DETAIL) --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(11, 15, 25, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn var(--transition-fast) ease-out;
}

.modal-backdrop.hidden {
    display: none !important;
}

.modal-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-main);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.modal-close-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.sticker-detail-layout {
    display: flex;
    flex-direction: column;
}

@media(min-width: 520px) {
    .sticker-detail-layout {
        flex-direction: row;
    }
}

/* Holographic Premium Sticker Portrayal */
.sticker-card-visual {
    flex: 1;
    background-color: #f3f4f6;
    aspect-ratio: 3 / 4;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    user-select: none;
    border-right: 1px solid var(--border-color);
}

.dark-theme .sticker-card-visual {
    background-color: #111827;
}

/* Visual Glow Details */
.card-inner-glow {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.dark-theme .card-inner-glow {
    border-color: rgba(255, 255, 255, 0.05);
}

.card-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 70%);
    transform: translateX(-100%);
    pointer-events: none;
}

/* Card Animation states */
.sticker-card-visual.animate-shine .card-shimmer {
    animation: shimmerSlide 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shimmerSlide {
    100% {
        transform: translateX(100%);
    }
}

.sticker-card-visual.premium-holo {
    background: linear-gradient(135deg, #ffe5ec, #ebf8ff, #f3e8ff, #fffcf0);
}

.sticker-card-visual.premium-holo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.1), rgba(0, 240, 255, 0.1), rgba(127, 0, 255, 0.1));
    z-index: 1;
    animation: holoColors 8s infinite alternate;
}

@keyframes holoColors {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

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

.card-rarity-badge {
    font-size: 8px;
    font-weight: 800;
    background-color: var(--color-primary);
    color: var(--bg-header);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
}

.premium-holo .card-rarity-badge {
    background: var(--holo-glow);
    color: #ffffff;
}

.card-id {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
}

.card-player-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    position: relative;
    z-index: 2;
}

.placeholder-silhouette {
    font-size: 72px;
    color: var(--text-light);
    opacity: 0.4;
    transition: transform var(--transition-bounce);
}

.sticker-card-visual:hover .placeholder-silhouette {
    transform: scale(1.1) rotate(2deg);
}

.player-flag-badge {
    position: absolute;
    bottom: 0;
    right: 25%;
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-footer-info {
    z-index: 2;
}

.card-player-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.card-player-team {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Modal Right Actions Pane */
.sticker-detail-actions {
    flex: 1.2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.action-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.action-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.status-counter-widget {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.status-counter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.counter-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.counter-btn:hover {
    border-color: var(--text-muted);
}

.counter-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    min-width: 14px;
    text-align: center;
}

.status-indicator-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.status-indicator-badge.missing {
    background-color: rgba(107, 114, 128, 0.08);
    color: var(--color-missing);
}

.status-indicator-badge.owned {
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--color-success);
}

.status-indicator-badge.repeated {
    background-color: rgba(245, 158, 11, 0.08);
    color: var(--color-repeated);
}

.sticker-stats-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    line-height: 1.4;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-val {
    color: var(--text-primary);
    font-weight: 700;
}

.btn-action-fun {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.btn-action-fun:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-action-fun.active {
    background: var(--holo-glow);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(127, 0, 255, 0.2);
}

/* --- SLIDE DRAWER (AUTH / ACCOUNT DETAILS) --- */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(11, 15, 25, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 90;
    display: flex;
    justify-content: flex-end;
    animation: fadeIn var(--transition-fast) ease-out;
}

.drawer-backdrop.hidden {
    display: none !important;
}

.drawer-panel {
    width: 100%;
    max-width: 400px;
    background-color: var(--bg-card);
    height: 100%;
    box-shadow: var(--shadow-lg);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 16px;
    font-weight: 800;
}

.drawer-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.drawer-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.drawer-intro {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Chile exclusive badge */
.exclusive-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    width: fit-content;
}

.exclusive-flag {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.exclusive-flag .fi {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    background-size: cover;
}

.exclusive-pill {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background-color: #dc2626;
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
}

/* Locked country field */
.country-locked {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    cursor: not-allowed;
    opacity: 0.8;
}

.country-locked-flag {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.country-locked-flag .fi {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    background-size: cover;
}

.country-locked-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.country-locked-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    font-style: italic;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-form input[type="text"] {
    height: 40px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast);
}

.auth-form input[type="text"]:focus {
    border-color: var(--text-muted);
}

/* Avatar selectors */
.avatar-selectors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.avatar-select-btn {
    aspect-ratio: 1;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.avatar-select-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.avatar-select-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--bg-header);
}

/* Logged in state profile layout */
.user-profile-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.user-big-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--bg-header);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
}

.user-profile-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.user-profile-country {
    font-size: 12px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.user-profile-country .fi {
    width: 16px;
    height: 12px;
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background-size: cover;
}

.profile-stats-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.profile-stats-card h5 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    text-align: center;
}

.stat-badge-row {
    display: flex;
    justify-content: space-between;
}

.s-badge {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.s-badge:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.s-num {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.s-lbl {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
}

.drawer-action-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-action-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    text-align: left;
    transition: all var(--transition-fast);
}

.drawer-action-item:hover {
    transform: translateX(2px);
    border-color: var(--text-muted);
}

.drawer-action-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.color-red {
    color: #ef4444;
}

.color-gold {
    color: #f59e0b;
}

.action-item-desc span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.action-item-desc p {
    font-size: 10px;
    color: var(--text-muted);
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
    width: 100%;
    max-width: 320px;
    pointer-events: none;
}

.toast {
    background-color: var(--color-primary);
    color: var(--bg-header);
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), toastFadeOut 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.7s forwards;
}

@keyframes toastPop {
    0% {
        transform: translateY(20px) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastFadeOut {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(10px) scale(0.9);
        opacity: 0;
    }
}

.toast i {
    font-size: 14px;
}

.toast-success i {
    color: var(--color-success);
}

.toast-info i {
    color: var(--color-accent);
}

/* --- GOOGLE ADS & SIMULATED BANNER --- */
.ad-leaderboard-wrapper {
    margin-bottom: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-fast);
}

.ad-leaderboard-wrapper:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--text-muted);
}

/* Hidden adsbygoogle default box when loaded locally, but show simulation */
.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

/* Premium Simulation banner styles */
.ad-simulated-box {
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.02) 100%);
    border-left: 4px solid #ef4444;
    /* Coca-Cola red */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-tag {
    font-size: 8px;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-simulated-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-direction: column;
}

@media(min-width: 580px) {
    .ad-simulated-content {
        flex-direction: row;
    }
}

.ad-simulated-logo {
    font-size: 28px;
    width: 48px;
    height: 48px;
    background-color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
    }
}

.ad-simulated-text {
    flex: 1;
    text-align: center;
}

@media(min-width: 580px) {
    .ad-simulated-text {
        text-align: left;
    }
}

.ad-simulated-text h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.ad-simulated-text p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.ad-simulated-button {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background-color: #ef4444;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
    text-align: center;
    width: 100%;
}

@media(min-width: 580px) {
    .ad-simulated-button {
        width: auto;
    }
}

.ad-simulated-button:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}