/* Design System & Variáveis */
:root {
    --bg-app: #080c14;
    --bg-header: rgba(9, 15, 29, 0.88);
    --bg-card: rgba(18, 28, 48, 0.65);
    --bg-card-hover: rgba(26, 39, 68, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary: #10b981; /* Emerald Green */
    --primary-glow: rgba(16, 185, 129, 0.35);
    --secondary: #d4af37; /* Gold Trophy */
    --secondary-glow: rgba(212, 175, 55, 0.35);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #111827;
    
    /* Cores Temáticas dos Grupos (Copa 2026) */
    --color-fwc: #e5c158;      /* Ouro Institucional */
    --color-group-a: #2e7d32;  /* Verde */
    --color-group-b: #c62828;  /* Vermelho */
    --color-group-c: #fbc02d;  /* Amarelo */
    --color-group-d: #1565c0;  /* Azul */
    --color-group-e: #ef6c00;  /* Laranja */
    --color-group-f: #00695c;  /* Teal */
    --color-group-g: #78909c;  /* Cinza Azulado */
    --color-group-h: #00838f;  /* Ciano */
    --color-group-i: #4a148c;  /* Roxo */
    --color-group-j: #ff8a80;  /* Rosa Claro */
    --color-group-k: #c2185b;  /* Magenta */
    --color-group-l: #4e342e;  /* Marrom/Bordô */

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-circle: 50%;
}

/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Header Fixo & Dashboard */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.logo-area h1 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 40%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.trophy-icon {
    font-size: 1.6rem;
    animation: pulse 2s infinite ease-in-out;
}

.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

#stat-total { color: var(--primary); }
#stat-missing { color: var(--text-muted); }
#stat-repeats { color: var(--secondary); }

.stat-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Anel de Progresso Circular */
.progress-circle-card {
    padding: 4px;
}

.progress-ring-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

.progress-text {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Área Principal */
.app-main {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Painel de Controles */
.controls-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-md);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.search-box input {
    width: 100%;
    padding: 12px 40px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-icon {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-circle);
}

.search-box input:not(:placeholder-shown) ~ .btn-icon {
    display: flex;
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.filter-btn {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.action-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
}

.action-group-single {
    display: flex;
    width: 100%;
    gap: 8px;
}

.action-group-single .btn {
    width: 100%;
}

.w-full {
    width: 100%;
}

.btn {
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--primary-glow);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #d1fae5;
}

/* Seções de Grupos (Novos Estilos) */
.teams-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.group-section {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Divisores de Grupos com Bordas Coloridas */
.border-fwc { border-top: 3px solid var(--color-fwc); }
.border-a { border-top: 3px solid var(--color-group-a); }
.border-b { border-top: 3px solid var(--color-group-b); }
.border-c { border-top: 3px solid var(--color-group-c); }
.border-d { border-top: 3px solid var(--color-group-d); }
.border-e { border-top: 3px solid var(--color-group-e); }
.border-f { border-top: 3px solid var(--color-group-f); }
.border-g { border-top: 3px solid var(--color-group-g); }
.border-h { border-top: 3px solid var(--color-group-h); }
.border-i { border-top: 3px solid var(--color-group-i); }
.border-j { border-top: 3px solid var(--color-group-j); }
.border-k { border-top: 3px solid var(--color-group-k); }
.border-l { border-top: 3px solid var(--color-group-l); }

/* Título de Seção do Grupo */
.group-section-title {
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

.group-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* Fundos de Títulos de Grupos baseados no álbum */
.bg-color-fwc { background: linear-gradient(90deg, rgba(229, 193, 88, 0.15), transparent); color: var(--color-fwc); }
.bg-color-a { background: linear-gradient(90deg, rgba(46, 125, 50, 0.18), transparent); color: #81c784; }
.bg-color-b { background: linear-gradient(90deg, rgba(198, 40, 40, 0.18), transparent); color: #e57373; }
.bg-color-c { background: linear-gradient(90deg, rgba(251, 192, 45, 0.12), transparent); color: #fff59d; }
.bg-color-d { background: linear-gradient(90deg, rgba(21, 101, 192, 0.18), transparent); color: #64b5f6; }
.bg-color-e { background: linear-gradient(90deg, rgba(239, 108, 0, 0.18), transparent); color: #ffb74d; }
.bg-color-f { background: linear-gradient(90deg, rgba(0, 105, 92, 0.18), transparent); color: #4db6ac; }
.bg-color-g { background: linear-gradient(90deg, rgba(120, 144, 140, 0.18), transparent); color: #cfd8dc; }
.bg-color-h { background: linear-gradient(90deg, rgba(0, 131, 143, 0.18), transparent); color: #4dd0e1; }
.bg-color-i { background: linear-gradient(90deg, rgba(74, 20, 140, 0.18), transparent); color: #ba68c8; }
.bg-color-j { background: linear-gradient(90deg, rgba(255, 138, 128, 0.18), transparent); color: #ff8a80; }
.bg-color-k { background: linear-gradient(90deg, rgba(194, 24, 91, 0.18), transparent); color: #f48fb1; }
.bg-color-l { background: linear-gradient(90deg, rgba(78, 52, 46, 0.22), transparent); color: #bcaaa4; }

/* Corpo da Seção do Grupo */
.group-section-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-color); /* Cria bordas divisoras finas entre times */
}

/* Cards das Seleções */
.team-card {
    background: var(--bg-card);
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
}

/* Bordas de Cor nos Times */
.card-fwc { border-left: 4px solid var(--color-fwc); }
.card-group-a { border-left: 4px solid var(--color-group-a); }
.card-group-b { border-left: 4px solid var(--color-group-b); }
.card-group-c { border-left: 4px solid var(--color-group-c); }
.card-group-d { border-left: 4px solid var(--color-group-d); }
.card-group-e { border-left: 4px solid var(--color-group-e); }
.card-group-f { border-left: 4px solid var(--color-group-f); }
.card-group-g { border-left: 4px solid var(--color-group-g); }
.card-group-h { border-left: 4px solid var(--color-group-h); }
.card-group-i { border-left: 4px solid var(--color-group-i); }
.card-group-j { border-left: 4px solid var(--color-group-j); }
.card-group-k { border-left: 4px solid var(--color-group-k); }
.card-group-l { border-left: 4px solid var(--color-group-l); }

.team-card:hover {
    background: var(--bg-card-hover);
}

/* Arredondamento do primeiro e último item do grupo */
.group-section-body > .team-card:last-child {
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.team-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-flag {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.team-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.team-code {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.team-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-progress-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.team-progress-pill.completed {
    color: var(--secondary);
    background: var(--secondary-glow);
    border-color: rgba(212, 175, 55, 0.25);
}

.chevron-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.team-card.expanded .chevron-icon {
    transform: rotate(180deg);
}

/* Conteúdo Expandido (Grade de Figurinhas) */
.team-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.25);
}

.team-card.expanded .team-body {
    max-height: 2000px;
    border-top: 1px solid var(--border-color);
}

.stickers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 16px;
}

/* Célula/Cartão de Figurinha */
.sticker-cell {
    aspect-ratio: 1 / 1.15;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    overflow: hidden;
}

.sticker-cell:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.sticker-number {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.sticker-code-sub {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.15);
    margin-top: 2px;
    font-weight: 600;
}

/* Modificadores de Quantidade */
.sticker-cell.owned {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

.sticker-cell.owned .sticker-number {
    color: #fff;
    transform: scale(1.05);
}

.sticker-cell.owned .sticker-code-sub {
    color: var(--primary);
}

/* Badge de Repetidas */
.sticker-repeat-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--secondary);
    color: var(--text-dark);
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Controles de Incremento/Decremento na figurinha */
.sticker-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
}

.sticker-cell:hover .sticker-controls,
.sticker-cell:focus-within .sticker-controls,
.sticker-cell.touch-active .sticker-controls {
    opacity: 1;
}

.control-btn {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.control-btn.btn-dec {
    border-right: 1px solid var(--border-color);
    color: #f87171;
}

.control-btn.btn-inc {
    color: var(--primary);
}

/* Spinner de Carregamento */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-circle);
    animation: spin 1s linear infinite;
}

/* Modais */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #0f182c;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: var(--transition);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

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

.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tab-btn {
    padding: 8px 4px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #fff;
    padding: 12px;
    font-family: monospace;
    font-size: 0.8rem;
    resize: none;
    outline: none;
    line-height: 1.4;
}

textarea:focus {
    border-color: var(--primary);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scanner-modal-content {
    max-width: 560px;
}

.scanner-body {
    gap: 12px;
}

.scanner-view {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 14;
    max-height: 68vh;
    background: #020617;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.scanner-view video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scanner-frame {
    position: absolute;
    top: 3.5%;
    right: 3%;
    width: 42%;
    height: 18%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(8, 12, 20, 0.12);
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.26);
}

.scanner-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--secondary);
}

.scanner-corner.top-left {
    top: -2px;
    left: -2px;
    border-top: 3px solid;
    border-left: 3px solid;
}

.scanner-corner.top-right {
    top: -2px;
    right: -2px;
    border-top: 3px solid;
    border-right: 3px solid;
}

.scanner-corner.bottom-left {
    bottom: -2px;
    left: -2px;
    border-bottom: 3px solid;
    border-left: 3px solid;
}

.scanner-corner.bottom-right {
    right: -2px;
    bottom: -2px;
    border-right: 3px solid;
    border-bottom: 3px solid;
}

.scanner-status,
.scanner-result,
.scanner-confirm {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.22);
}

.scanner-status {
    padding: 10px 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.scanner-status[data-type="busy"] {
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.35);
}

.scanner-status[data-type="success"] {
    color: #bbf7d0;
    border-color: rgba(16, 185, 129, 0.45);
}

.scanner-status[data-type="confirm"] {
    color: #fde68a;
    border-color: rgba(212, 175, 55, 0.45);
}

.scanner-status[data-type="error"],
.scanner-result[data-type="invalid"] {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.45);
}

.scanner-result {
    min-height: 74px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scanner-result[data-type="success"] {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.10);
}

.scanner-result[data-type="confirm"] {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.10);
}

.scanner-code {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

.scanner-detail {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: right;
}

.scanner-confirm {
    display: none;
    padding: 12px;
    gap: 10px;
}

.scanner-confirm.active {
    display: flex;
    flex-direction: column;
}

.scanner-confirm p {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
}

.scanner-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.w-full {
    width: 100%;
}

/* Animações */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

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

/* Responsividade Mobile-First */
@media (max-width: 600px) {
    .action-group-single {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .stickers-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 10px;
        gap: 6px;
    }
    .sticker-number {
        font-size: 1rem;
    }
    .group-section-title {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .action-group-single,
    .scanner-confirm-actions {
        grid-template-columns: 1fr;
    }
    .stickers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .stats-dashboard {
        gap: 4px;
    }
    .stat-card {
        padding: 6px 4px;
    }
    .stat-value {
        font-size: 1.1rem;
    }
}

/* Zona de Perigo (Resetar) */
.danger-zone {
    margin-top: 40px;
    padding: 24px 16px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    width: 100%;
    max-width: 340px;
    padding: 14px;
    font-size: 0.9rem;
    font-weight: 700;
}

.btn-danger:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

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