/**
 * ============================================
 * 🍎 ELITE COUNTRY CARDS - APPLE ZEN REDESIGN
 * ============================================
 * Redesign cirúrgico dos cards BRASIL e ESTADOS UNIDOS
 * Estilo: Apple Zen Banner (Minimalismo + Elegância Absoluta)
 * Features: Dark/Light Mode + Glassmorphism + Stats Cards + Animações Premium
 * Sincronizado com: Botão "Alterar Tema 2" (data-theme)
 */

/* ============================================
   SISTEMA DE CORES - DARK/LIGHT MODE
   ============================================ */

:root {
    /* Light Mode (Padrão Apple) - AJUSTADO PARA CONTRASTE */
    --country-bg-primary: #FFFFFF;
    --country-bg-secondary: #F8F8F9; /* Levemente mais escuro para contraste */
    --country-text-primary: #1D1D1F;
    --country-text-secondary: #6E6E73;
    --country-border: rgba(0, 0, 0, 0.12); /* Mais visível */
    --country-shadow: rgba(0, 0, 0, 0.08);
    --country-glass-bg: rgba(248, 248, 250, 0.85); /* Menos branco, mais opaco */
    --country-glass-border: rgba(0, 0, 0, 0.08); /* Borda delicada visível */

    /* Brasil Colors */
    --brasil-primary: #059669; /* emerald-600 */
    --brasil-secondary: #10b981; /* emerald-500 */
    --brasil-glow: rgba(5, 150, 105, 0.4);

    /* USA Colors */
    --usa-primary: #2563eb; /* blue-600 */
    --usa-secondary: #3b82f6; /* blue-500 */
    --usa-glow: rgba(37, 99, 235, 0.4);
}

[data-theme="dark"] {
    /* Dark Mode (Apple Night) */
    --country-bg-primary: #000000;
    --country-bg-secondary: #1C1C1E;
    --country-text-primary: #F5F5F7;
    --country-text-secondary: #A1A1A6;
    --country-border: rgba(255, 255, 255, 0.1);
    --country-shadow: rgba(255, 255, 255, 0.05);
    --country-glass-bg: rgba(28, 28, 30, 0.7);
    --country-glass-border: rgba(255, 255, 255, 0.1);
}

/* ============================================
   CONTAINER PRINCIPAL DOS CARDS
   ============================================ */

.elite-country-card-apple {
    position: relative;
    background: var(--country-bg-primary);
    border: 1px solid var(--country-border);
    border-radius: 24px;
    padding: 1.75rem; /* REDUZIDO de 2.5rem para mais compacto */
    overflow: hidden;

    /* Sombra Realista Apple */
    box-shadow:
        0 20px 40px -12px var(--country-shadow),
        0 10px 20px -8px var(--country-shadow),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);

    /* Transição Premium */
    transition: all 0.8s cubic-bezier(0.28, 0.11, 0.32, 1);
}

/* 🍎 LIGHT MODE - FUNDO ELEGANTE MESH GRADIENT (APPLE LEVEL) */
[data-theme="light"] .elite-country-card-apple {
    background:
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.95) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(248, 250, 252, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(241, 245, 249, 0.7) 0%, transparent 50%),
        linear-gradient(135deg, #fafbfc 0%, #f8fafc 50%, #f1f5f9 100%);

    /* Borda com gradiente suave */
    border: 1.5px solid transparent;
    background-clip: padding-box;
    position: relative;
}

/* Borda gradiente elegante */
[data-theme="light"] .elite-country-card-apple::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.8), rgba(241, 245, 249, 0.5), rgba(226, 232, 240, 0.8));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

/* Brasil Light Mode - Verde Suave + Sombra Colorida */
[data-theme="light"] .elite-country-card-brasil {
    background:
        radial-gradient(ellipse at top left, rgba(236, 253, 245, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(209, 250, 229, 0.4) 0%, transparent 60%),
        linear-gradient(135deg, #fafbfc 0%, #f0fdf4 25%, #f8fafc 75%, #ecfdf5 100%);

    box-shadow:
        0 20px 40px -12px rgba(5, 150, 105, 0.08),
        0 10px 20px -8px rgba(5, 150, 105, 0.06),
        0 0 0 1px rgba(5, 150, 105, 0.04),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
}

/* Borda gradiente verde */
[data-theme="light"] .elite-country-card-brasil::before {
    background: linear-gradient(135deg,
        rgba(5, 150, 105, 0.15),
        rgba(16, 185, 129, 0.08),
        rgba(5, 150, 105, 0.15));
}

/* USA Light Mode - Azul Suave + Sombra Colorida */
[data-theme="light"] .elite-country-card-usa {
    background:
        radial-gradient(ellipse at top left, rgba(239, 246, 255, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(219, 234, 254, 0.4) 0%, transparent 60%),
        linear-gradient(135deg, #fafbfc 0%, #eff6ff 25%, #f8fafc 75%, #dbeafe 100%);

    box-shadow:
        0 20px 40px -12px rgba(37, 99, 235, 0.08),
        0 10px 20px -8px rgba(37, 99, 235, 0.06),
        0 0 0 1px rgba(37, 99, 235, 0.04),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
}

/* Borda gradiente azul */
[data-theme="light"] .elite-country-card-usa::before {
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.15),
        rgba(59, 130, 246, 0.08),
        rgba(37, 99, 235, 0.15));
}

.elite-country-card-apple:hover {
    transform: translateY(-8px);
    box-shadow:
        0 35px 70px -15px var(--country-shadow),
        0 20px 40px -12px var(--country-shadow),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* Light Mode - Hover com sombra elevada */
[data-theme="light"] .elite-country-card-apple:hover {
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.12),
        0 20px 40px -12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .elite-country-card-brasil:hover {
    box-shadow:
        0 30px 60px -15px rgba(5, 150, 105, 0.12),
        0 20px 40px -12px rgba(5, 150, 105, 0.08),
        0 0 0 1px rgba(5, 150, 105, 0.06),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .elite-country-card-usa:hover {
    box-shadow:
        0 30px 60px -15px rgba(37, 99, 235, 0.12),
        0 20px 40px -12px rgba(37, 99, 235, 0.08),
        0 0 0 1px rgba(37, 99, 235, 0.06),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}

/* ============================================
   MORPHING BLOB BACKGROUND (SUTIL)
   ============================================ */

.country-blob-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 0.06;
    pointer-events: none;
}

[data-theme="dark"] .country-blob-container {
    opacity: 0.1;
}

.country-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    mix-blend-mode: multiply;
    animation: country-blob-morph 20s ease-in-out infinite;
}

[data-theme="dark"] .country-blob {
    mix-blend-mode: screen;
}

/* Brasil Blobs - Verde */
.elite-country-card-brasil .country-blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: linear-gradient(135deg, var(--brasil-primary), var(--brasil-secondary));
}

.elite-country-card-brasil .country-blob-2 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    right: -100px;
    background: linear-gradient(135deg, var(--brasil-secondary), var(--brasil-primary));
    animation-delay: 5s;
}

/* USA Blobs - Azul */
.elite-country-card-usa .country-blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: linear-gradient(135deg, var(--usa-primary), var(--usa-secondary));
}

.elite-country-card-usa .country-blob-2 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    right: -100px;
    background: linear-gradient(135deg, var(--usa-secondary), var(--usa-primary));
    animation-delay: 5s;
}

@keyframes country-blob-morph {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50%;
    }
    25% {
        transform: translate(20px, -20px) scale(1.05) rotate(90deg);
        border-radius: 60% 40% 60% 40%;
    }
    50% {
        transform: translate(-15px, 25px) scale(0.95) rotate(180deg);
        border-radius: 40% 60% 40% 60%;
    }
    75% {
        transform: translate(25px, 15px) scale(1.02) rotate(270deg);
        border-radius: 55% 45% 55% 45%;
    }
}

/* ============================================
   GRID MINIMALISTA - DESABILITADO (REMOVIDO)
   ============================================ */

.country-grid {
    display: none; /* REMOVIDO - usuário não gostou das linhas */
}

/* ============================================
   CONTEÚDO DO CARD
   ============================================ */

.country-card-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* REDUZIDO de 2rem para mais compacto */
}

/* ============================================
   HEADER COM BANDEIRA E TÍTULO
   ============================================ */

.country-header {
    display: flex;
    align-items: center;
    gap: 1rem; /* REDUZIDO de 1.5rem */
    margin-bottom: 0.5rem; /* REDUZIDO de 1rem */
}

.country-flag-container {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    background: var(--country-glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--country-glass-border);
    box-shadow:
        0 8px 24px -5px var(--country-shadow),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
}

/* Light Mode - Flag Container Elegante */
[data-theme="light"] .country-flag-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 6px 20px -4px rgba(0, 0, 0, 0.08),
        0 4px 12px -2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 0 rgba(255, 255, 255, 1);
}

.country-flag-container:hover {
    transform: scale(1.05) rotate(5deg);
}

.country-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem); /* REDUZIDO de 2rem-3rem */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--country-text-primary);
    margin: 0;
    background: linear-gradient(
        180deg,
        var(--country-text-primary) 0%,
        var(--country-text-primary) 70%,
        var(--country-text-secondary) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cores específicas dos títulos */
.elite-country-card-brasil .country-title {
    background: linear-gradient(135deg, var(--brasil-primary), var(--brasil-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.elite-country-card-usa .country-title {
    background: linear-gradient(135deg, var(--usa-primary), var(--usa-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   STATS CARDS (MINI-CARDS INFORMATIVOS)
   ============================================ */

.country-stats {
    display: flex;
    gap: 0.75rem; /* REDUZIDO de 1rem */
    margin-bottom: 0; /* REMOVIDO para mais compacto */
}

.country-stat {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--country-glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--country-glass-border);
    border-radius: 12px;
    box-shadow:
        0 6px 18px -4px var(--country-shadow),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    cursor: default;
}

/* Light Mode - Stats com sombra interna suave */
[data-theme="light"] .country-stat {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 4px 12px -2px rgba(0, 0, 0, 0.06),
        0 2px 6px -1px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

.country-stat:hover {
    transform: translateY(-2px) scale(1.01); /* Movimento mais sutil */
    box-shadow:
        0 12px 24px -6px var(--country-shadow),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.country-stat-value {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Orbitron', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem); /* REDUZIDO de 1.5rem-2rem */
    font-weight: 700;
    margin-bottom: 0.2rem; /* REDUZIDO de 0.25rem */
    color: var(--country-text-primary);
}

/* Brasil Stats - Verde */
.elite-country-card-brasil .country-stat-value {
    background: linear-gradient(135deg, var(--brasil-primary), var(--brasil-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* USA Stats - Azul */
.elite-country-card-usa .country-stat-value {
    background: linear-gradient(135deg, var(--usa-primary), var(--usa-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.country-stat-label {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
    font-size: 0.6875rem; /* REDUZIDO de 0.75rem */
    font-weight: 500;
    color: var(--country-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px; /* REDUZIDO de 0.5px */
}

/* ============================================
   SEÇÕES (GASTOS MENSAIS, HISTÓRICO)
   ============================================ */

.country-section {
    background: var(--country-glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--country-glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow:
        0 4px 16px -4px var(--country-shadow),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* Light Mode - Sections com contraste elegante */
[data-theme="light"] .country-section {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 3px 12px -2px rgba(0, 0, 0, 0.05),
        0 2px 6px -1px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.95);
}

.country-section-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Orbitron', sans-serif;
    font-size: 0.9375rem; /* REDUZIDO de 1.125rem */
    font-weight: 600;
    color: var(--country-text-primary);
    margin-bottom: 0.75rem; /* REDUZIDO de 1rem */
    padding-bottom: 0.5rem; /* REDUZIDO de 0.75rem */
    border-bottom: 1px solid var(--country-border);
    letter-spacing: 0.3px; /* REDUZIDO de 0.5px */
}

/* ============================================
   FORMULÁRIOS (APPLE STYLE)
   ============================================ */

.country-form {
    display: flex;
    flex-direction: column; /* ALTERADO: Botão embaixo dos inputs */
    gap: 0.625rem; /* Espaçamento vertical */
    margin-top: 0.75rem;
}

/* Container dos inputs (nome e valor) */
.country-form-inputs {
    display: flex;
    gap: 0.5rem;
}

.country-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--country-text-primary);
    background: var(--country-bg-secondary);
    border: 1px solid var(--country-border);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    outline: none;
}

.country-input::placeholder {
    color: var(--country-text-secondary);
}

.country-input:focus {
    background: var(--country-bg-primary);
    box-shadow:
        0 0 0 3px rgba(0, 113, 227, 0.15),
        0 4px 12px var(--country-shadow);
}

/* Brasil Input Focus - Verde */
.elite-country-card-brasil .country-input:focus {
    border-color: var(--brasil-secondary);
    box-shadow:
        0 0 0 3px var(--brasil-glow),
        0 4px 12px var(--country-shadow);
}

/* USA Input Focus - Azul */
.elite-country-card-usa .country-input:focus {
    border-color: var(--usa-secondary);
    box-shadow:
        0 0 0 3px var(--usa-glow),
        0 4px 12px var(--country-shadow);
}

.country-btn {
    width: 100%; /* FULL WIDTH - botão embaixo */
    padding: 0.625rem 1.25rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Brasil Button - Verde */
.elite-country-card-brasil .country-btn {
    background: linear-gradient(135deg, var(--brasil-primary), var(--brasil-secondary));
}

.elite-country-card-brasil .country-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px var(--brasil-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Light Mode - Botão Brasil com sombra refinada */
[data-theme="light"] .elite-country-card-brasil .country-btn:hover {
    box-shadow:
        0 10px 25px rgba(5, 150, 105, 0.25),
        0 5px 12px rgba(5, 150, 105, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* USA Button - Azul */
.elite-country-card-usa .country-btn {
    background: linear-gradient(135deg, var(--usa-primary), var(--usa-secondary));
}

.elite-country-card-usa .country-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px var(--usa-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Light Mode - Botão USA com sombra refinada */
[data-theme="light"] .elite-country-card-usa .country-btn:hover {
    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.25),
        0 5px 12px rgba(37, 99, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.country-btn:active {
    transform: translateY(0);
}

/* ============================================
   BOTÃO LANÇAR GASTO AVULSO (DESTAQUE)
   ============================================ */

.country-btn-highlight {
    width: 100%;
    padding: 0.875rem 1.5rem; /* REDUZIDO de 1.25rem 2rem */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* REDUZIDO de 0.75rem */
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Orbitron', sans-serif;
    font-size: 0.875rem; /* REDUZIDO de 1rem */
    font-weight: 600;
    color: #FFFFFF;
    border: none;
    border-radius: 12px; /* REDUZIDO de 16px */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    position: relative;
    overflow: hidden;
}

/* Brasil Highlight - Verde */
.elite-country-card-brasil .country-btn-highlight {
    background: linear-gradient(135deg, var(--brasil-primary), var(--brasil-secondary));
    box-shadow:
        0 8px 24px var(--brasil-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.elite-country-card-brasil .country-btn-highlight:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 32px var(--brasil-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Light Mode - Botão Brasil Highlight com brilho extra */
[data-theme="light"] .elite-country-card-brasil .country-btn-highlight {
    box-shadow:
        0 10px 30px rgba(5, 150, 105, 0.2),
        0 6px 16px rgba(5, 150, 105, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .elite-country-card-brasil .country-btn-highlight:hover {
    box-shadow:
        0 14px 40px rgba(5, 150, 105, 0.28),
        0 8px 20px rgba(5, 150, 105, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* USA Highlight - Azul */
.elite-country-card-usa .country-btn-highlight {
    background: linear-gradient(135deg, var(--usa-primary), var(--usa-secondary));
    box-shadow:
        0 8px 24px var(--usa-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.elite-country-card-usa .country-btn-highlight:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 32px var(--usa-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Light Mode - Botão USA Highlight com brilho extra */
[data-theme="light"] .elite-country-card-usa .country-btn-highlight {
    box-shadow:
        0 10px 30px rgba(37, 99, 235, 0.2),
        0 6px 16px rgba(37, 99, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .elite-country-card-usa .country-btn-highlight:hover {
    box-shadow:
        0 14px 40px rgba(37, 99, 235, 0.28),
        0 8px 20px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.country-btn-highlight:active {
    transform: translateY(0) scale(1);
}

/* Shimmer Effect no Botão */
.country-btn-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    animation: country-btn-shimmer 3s infinite;
}

@keyframes country-btn-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* ============================================
   LISTAS (GASTOS MENSAIS E HISTÓRICO)
   ============================================ */

.country-list {
    max-height: 180px; /* REDUZIDO de 240px para mais compacto */
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Scrollbar customizada */
.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: var(--country-bg-secondary);
    border-radius: 10px;
}

.country-list::-webkit-scrollbar-thumb {
    background: var(--country-border);
    border-radius: 10px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: var(--country-text-secondary);
}

/* Empty State */
.country-empty-state {
    padding: 1.25rem 0.75rem; /* REDUZIDO de 2rem 1rem */
    text-align: center;
    color: var(--country-text-secondary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
    font-size: 0.8125rem; /* REDUZIDO de 0.9375rem */
    font-style: italic;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 1024px) {
    .elite-country-card-apple {
        padding: 1.5rem; /* REDUZIDO de 2rem */
    }

    .country-stats {
        flex-wrap: wrap;
    }

    .country-stat {
        min-width: calc(50% - 0.375rem);
    }
}

@media (max-width: 768px) {
    .elite-country-card-apple {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .country-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .country-flag-container {
        width: 56px;
        height: 56px;
        font-size: 2rem;
    }

    .country-title {
        font-size: 1.75rem;
    }

    .country-stats {
        flex-direction: column;
    }

    .country-stat {
        min-width: 100%;
    }

    /* Inputs lado a lado viram verticais em mobile */
    .country-form-inputs {
        flex-direction: column;
    }

    .country-btn,
    .country-btn-highlight {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .elite-country-card-apple {
        padding: 1.25rem; /* REDUZIDO de 1.5rem */
        border-radius: 16px;
    }

    .country-flag-container {
        width: 48px; /* REDUZIDO de 56px */
        height: 48px;
        font-size: 1.75rem; /* REDUZIDO de 2rem */
    }

    .country-section {
        padding: 1rem; /* REDUZIDO de 1.25rem */
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.elite-country-card-apple,
.country-blob,
.country-stat,
.country-btn,
.country-btn-highlight {
    will-change: transform;
}

/* Reduzir movimento para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   ANIMAÇÕES KEYFRAMES
   ============================================ */

@keyframes country-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Entrada suave dos elementos */
.country-card-content > * {
    animation: country-fade-in-up 0.6s cubic-bezier(0.28, 0.11, 0.32, 1) backwards;
}

.country-card-content > *:nth-child(1) { animation-delay: 0.1s; }
.country-card-content > *:nth-child(2) { animation-delay: 0.2s; }
.country-card-content > *:nth-child(3) { animation-delay: 0.3s; }
.country-card-content > *:nth-child(4) { animation-delay: 0.4s; }
.country-card-content > *:nth-child(5) { animation-delay: 0.5s; }
