/* ==========================================================================
   ÁLBUM DIGITAL 2026 - DESIGN SYSTEM & STYLES
   ========================================================================== */

/* VARIÁVEIS DO TEMA */
:root {
    /* Cores de Fundo e Layout */
    --bg-app: #080f19;
    --bg-sidebar: #0b1525;
    --bg-header: #0d1b2e;
    --bg-card-dark: #12223c;
    --border-color: #1a2f4c;
    
    /* Cores das Páginas do Livro */
    --bg-page: #f6f5f0;
    --bg-page-darker: #eae7de;
    --text-page-dark: #111b27;
    --text-page-light: #526071;
    --border-page: #d4cfc3;
    
    /* Cores Temáticas e Destaques */
    --color-primary: #00875a;      /* Verde Brasil */
    --color-primary-light: #00a870;
    --color-secondary: #f4b41a;    /* Amarelo Ouro */
    --color-secondary-light: #ffd260;
    --color-accent: #0f4c81;       /* Azul Escuro Complementar */
    --color-danger: #e63946;
    
    /* Fontes */
    --font-primary: 'Outfit', sans-serif;
    --font-header: 'Montserrat', sans-serif;
    
    /* Efeitos */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-inset: inset 0 2px 5px rgba(0, 0, 0, 0.08);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    
    /* Transições */
    --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-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-app);
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

/* CLASSES UTILITÁRIAS */
.hidden {
    display: none !important;
}

/* LAYOUT E ESTRUTURA */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    width: 100vw;
    height: 100vh;
}

/* ==========================================================================
   SIDEBAR (Menu Lateral)
   ========================================================================== */
.sidebar {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.brand-logo {
    background-color: transparent;
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-brand h2 {
    font-family: var(--font-header);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: -0.5px;
}

.sidebar-brand .highlight {
    color: var(--color-secondary);
}

/* Menu de Setores */
.sectors-menu {
    flex-grow: 1;
    margin-bottom: 24px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) rgba(255, 255, 255, 0.01);
}

/* Customização de Scrollbar para o Menu de Setores */
.sectors-menu::-webkit-scrollbar {
    width: 6px;
}

.sectors-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 3px;
}

.sectors-menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
    transition: var(--transition-fast);
}

.sectors-menu::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

.menu-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #4a5c78;
    margin-bottom: 12px;
    padding-left: 8px;
}

.sectors-menu ul {
    list-style: none;
}

.sector-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.sector-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.sector-menu-item.active {
    background-color: var(--color-primary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 135, 90, 0.3);
}

/* Setor Ativo especial estilo Comunicação na imagem */
.sector-menu-item.active .sector-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.sector-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: var(--bg-card-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c9fb8;
    transition: var(--transition-fast);
}

.sector-menu-item:hover .sector-icon-wrapper {
    color: #ffffff;
}

.sector-menu-info {
    display: flex;
    flex-direction: column;
}

.sector-menu-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
}

.sector-menu-item.active .sector-menu-name {
    color: #ffffff;
}

.sector-menu-progress {
    font-size: 0.72rem;
    color: #64748b;
}

.sector-menu-item.active .sector-menu-progress {
    color: rgba(255, 255, 255, 0.8);
}

/* Área de Ações e Pacotinho */
.sidebar-pack-actions {
    background-color: var(--bg-card-dark);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.pack-inventory {
    margin-bottom: 12px;
}

.pack-graphic {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.pack-graphic:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.pack-wrapper-mini {
    position: relative;
    width: 44px;
    height: 54px;
}

.pack-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card-dark);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.pack-art-mini {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e63946, #d62828);
    border-radius: 4px;
    border: 2px solid var(--color-secondary);
    box-shadow: var(--shadow-sm);
    transform: rotate(-3deg);
    transition: var(--transition-fast);
}

.pack-graphic:hover .pack-art-mini {
    transform: rotate(0deg) scale(1.05);
}

.pack-info {
    display: flex;
    flex-direction: column;
}

.pack-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}

.pack-subtitle {
    font-size: 0.72rem;
    color: var(--color-secondary);
    font-weight: 500;
    animation: pulse 1.5s infinite;
}

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

/* Cooldown Timer text */
#cooldown-timer {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Card de Recompensas */
.sidebar-card-ranking {
    display: block;
    flex-shrink: 0; /* impede o flex da sidebar de encolher o card e cortar o padding inferior */
    background: linear-gradient(135deg, #0f2d5a, #0b1a38);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: var(--transition-fast);
}

.sidebar-card-ranking:hover {
    border-color: rgba(244, 180, 26, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.card-ranking-content {
    position: relative;
    z-index: 2;
    padding-right: 54px;
}

.card-ranking-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--color-secondary);
    background: rgba(244, 180, 26, 0.12);
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.sidebar-card-ranking h3 {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #ffffff;
}

.card-ranking-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-secondary);
    transition: var(--transition-fast);
}

.sidebar-card-ranking:hover .card-ranking-cta {
    gap: 9px;
}

/* Pódio decorativo no canto */
.card-ranking-visual {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 38px;
    z-index: 1;
}

.rank-col {
    width: 12px;
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
    font-size: 0.5rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.45);
}

.rank-col-1 {
    height: 38px;
    background: linear-gradient(180deg, #ffd75e, #f4b41a);
    animation: rankGlow 2.6s ease-in-out infinite;
}

.rank-col-2 {
    height: 26px;
    background: linear-gradient(180deg, #d8dde6, #aab3c2);
}

.rank-col-3 {
    height: 18px;
    background: linear-gradient(180deg, #e8a978, #cd7f4a);
}

@keyframes rankGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(244, 180, 26, 0); }
    50% { box-shadow: 0 0 10px rgba(244, 180, 26, 0.65); }
}

@keyframes wobble {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(-8deg) scale(1.05); }
    30% { transform: rotate(6deg) scale(1.05); }
    45% { transform: rotate(-4deg); }
    60% { transform: rotate(2deg); }
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL
   ========================================================================== */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-image: url('assets/background-02.avif');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Header Superior */
.main-header {
    background-color: rgba(13, 27, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
}

/* Barra de Busca */
.search-bar-container {
    position: relative;
    width: 320px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4f637f;
    display: flex;
}

.search-bar-container input {
    width: 100%;
    background-color: #0b1422;
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 10px 16px 10px 42px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.search-bar-container input::placeholder {
    color: #4f637f;
}

.search-bar-container input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(244, 180, 26, 0.2);
    background-color: #0d1a2d;
}

/* Dropdown da Busca */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}

.search-results-dropdown.hidden {
    display: none;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

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

.search-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.search-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--color-primary);
}

.search-item-info {
    display: flex;
    flex-direction: column;
}

.search-item-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.search-item-subtitle {
    font-size: 0.7rem;
    color: #8c9fb8;
}

.search-item-badge {
    margin-left: auto;
    font-size: 0.65rem;
    background-color: var(--bg-card-dark);
    color: var(--color-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* Painel de Progresso Geral */
.header-progress-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 240px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-label {
    color: #8c9fb8;
}

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

.progress-track {
    width: 100%;
    height: 6px;
    background-color: #0b1422;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(244, 180, 26, 0.5);
    transition: width var(--transition-slow);
}

/* Ações da Direita */
.header-actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Usuário */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    transition: var(--transition-fast);
    position: relative;
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.user-avatar-container {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-secondary);
}

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

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.user-role {
    font-size: 0.7rem;
    color: #8c9fb8;
}

.user-profile svg {
    color: #4f637f;
}

/* Dropdown do Perfil de Usuário */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 160px;
    background-color: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.profile-dropdown.hidden {
    display: none;
}

.profile-dropdown ul {
    list-style: none;
    padding: 6px 0;
    margin: 0;
}

.profile-dropdown li {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.82rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.profile-dropdown li:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.profile-dropdown li svg {
    color: #8c9fb8;
    transition: var(--transition-fast);
}

.profile-dropdown li:hover svg {
    color: var(--color-secondary);
}

.profile-dropdown li.logout-item:hover {
    background-color: rgba(230, 57, 70, 0.08);
    color: var(--color-danger);
}

.profile-dropdown li.logout-item:hover svg {
    color: var(--color-danger);
}

/* Transição suave na setinha (chevron) */
.user-profile svg.chevron-icon {
    transition: transform var(--transition-fast);
}

.user-profile.active svg.chevron-icon {
    transform: rotate(180deg);
    color: #ffffff;
}

/* ==========================================================================
   VIEWPORT DO ÁLBUM (Livro Aberto)
   ========================================================================== */
.album-viewport {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    position: relative;
    overflow: hidden;
    perspective: 2000px; /* Profundidade 3D global */
}

.book-container {
    display: flex;
    position: relative;
    width: 1060px; /* Largura proporcional ideal */
    height: 620px;
    background-color: var(--bg-page);
    border-radius: 12px 24px 24px 12px;
    transform: rotateX(12deg); /* Inclinação puramente vertical */
    transform-style: preserve-3d;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.45), 
        0 10px 20px rgba(0, 0, 0, 0.25);
    z-index: 2;
    transition: transform var(--transition-slow);
}

/* Efeitos 3D de Folhas Empilhadas */
.book-spine {
    position: absolute;
    left: 50%;
    top: 0;
    width: 16px;
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.15) 0%, 
        rgba(0, 0, 0, 0.25) 45%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.25) 55%, 
        rgba(0, 0, 0, 0.15) 100%);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 5;
}

.book-page-back-left, .book-page-back-right {
    position: absolute;
    width: 50%;
    height: 98%;
    top: 1%;
    background-color: var(--bg-page-darker);
    border: 1px solid var(--border-page);
    z-index: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.book-page-back-left {
    left: -8px;
    border-radius: 12px 0 0 12px;
    transform-origin: right center;
    transform: translateZ(-8px) rotateY(-2deg);
}

.book-page-back-right {
    right: -8px;
    border-radius: 0 24px 24px 0;
    transform-origin: left center;
    transform: translateZ(-8px) rotateY(2deg);
}

/* Páginas Ativas do Livro */
.book-page {
    position: relative;
    width: 50%;
    height: 100%;
    padding: 20px 30px; /* Reduzido de 30px 40px para 20px 30px para dar mais espaço */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-page);
    z-index: 1;
}

.page-left {
    border-radius: 12px 0 0 12px;
    box-shadow: inset -15px 0 25px rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.page-right {
    border-radius: 0 24px 24px 0;
    box-shadow: inset 15px 0 25px rgba(0, 0, 0, 0.05);
}

/* Cabeçalho do Setor (Página Esquerda) */
.sector-header {
    display: flex;
    gap: 15px;
    margin-bottom: 12px; /* Reduzido de 24px para 12px */
}

.sector-badge-container {
    flex-shrink: 0;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.sector-badge-svg {
    width: 58px; /* Reduzido de 70px para dar mais espaço vertical */
    height: 70px;
}

.sector-title-group {
    display: flex;
    flex-direction: column;
}

.sector-tag {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.sector-name {
    font-family: var(--font-header);
    font-size: 1.45rem; /* Ajustado para caber perfeitamente no novo cabeçalho menor */
    font-weight: 800;
    color: #0b2240;
    line-height: 1;
    margin: 1px 0;
    letter-spacing: -0.5px;
}

.sector-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 2px;
}

.sector-desc {
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--text-page-light);
    max-width: 320px;
}

/* Título de Escalação (Página Direita) */
.right-page-header {
    margin-bottom: 12px; /* Reduzido de 24px para 12px */
}

.right-page-header h2 {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 800;
    color: #0b2240;
}

.right-page-header p {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 2px;
}

/* Grids de Figurinhas */
.stickers-grid {
    display: grid;
    gap: 20px 15px; /* Aumentados os espaçamentos internos para ocupar melhor a página */
    flex-grow: 1;
    align-content: center; /* Centraliza verticalmente o grid no espaço útil */
}

.grid-left {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    margin-bottom: 12px;
}

.grid-right {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    margin-bottom: 12px;
}

/* Espaço da Figurinha (Slot) */
.sticker-slot {
    position: relative;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1.5px dashed var(--border-page);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-inset);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-fast);
    aspect-ratio: 1 / 1.4; /* Proporção Portrait Padrão */
    width: 100%;
    justify-self: center;
    max-width: 130px; /* Aumentado de 105px para 130px para ocupar melhor o espaço e reduzir área branca */
}

.sticker-slot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: var(--color-primary);
}

.slot-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: rgba(0,0,0,0.15);
    margin-bottom: 2px;
    transition: var(--transition-fast);
}

.sticker-slot:hover .slot-number {
    color: var(--color-primary);
    transform: scale(1.1);
}

.slot-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #929ba6;
    text-align: center;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* CARD DA FIGURINHA COLADA */
.sticker-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    padding: 3px;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--color-primary);
    overflow: hidden;
    animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.sticker-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    border-color: var(--color-secondary);
}

/* Selo Especial Holográfico */
.sticker-card.special {
    border-color: var(--color-secondary);
    background: linear-gradient(135deg, #fff 0%, #fff6e0 100%);
    box-shadow: 
        0 4px 10px rgba(244, 180, 26, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.sticker-card.special::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 300%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.3) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: holo-shine 4s infinite linear;
    pointer-events: none;
}

@keyframes holo-shine {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

.sticker-avatar-container {
    width: 100%;
    height: 100%; /* Ocupa todo o card vertical */
    background-color: #f1f5f9;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.sticker-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Banner de número no canto da figurinha */
.sticker-number-badge {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%); /* Centralizado horizontalmente no topo */
    background-color: var(--color-primary);
    color: white;
    font-size: 0.68rem;
    font-weight: 850;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sticker-card.special .sticker-number-badge {
    background-color: var(--color-secondary);
    color: var(--text-page-dark);
}

.sticker-info {
    position: absolute;
    bottom: 3px;
    left: 3px;
    width: calc(100% - 6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 92, 83, 0.92); /* Fundo verde escuro translúcido sobre a foto */
    color: white;
    border-radius: 0 0 5px 5px;
    padding: 3px 2px;
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sticker-card.special .sticker-info {
    background-color: var(--color-secondary);
    color: var(--text-page-dark);
}

.sticker-name {
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    max-width: 95%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticker-role {
    font-size: 0.52rem;
    font-weight: 500;
    opacity: 0.9;
}

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

/* Rodapés de Página */
.page-footer-left, .page-footer-right {
    height: 54px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 12px;
}

.page-footer-left {
    justify-content: space-between;
}

.page-footer-right {
    justify-content: space-between;
}

/* Progresso do Setor (Esquerda) */
.sector-progress-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trophy-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #e3f9e5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #a3e635;
}

.sector-progress-info {
    display: flex;
    flex-direction: column;
}

.sec-progress-label {
    font-size: 0.65rem;
    color: var(--text-page-light);
    font-weight: 700;
    text-transform: uppercase;
}

.sec-progress-count {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-page-dark);
}

.sec-progress-dots {
    display: flex;
    gap: 3px;
    margin-top: 4px;
}

.progress-dot {
    width: 14px;
    height: 6px;
    background-color: #cbd5e1;
    border-radius: 2px;
    transition: var(--transition-fast);
}

.progress-dot.active {
    background-color: var(--color-primary);
}

.progress-dot.gold {
    background-color: var(--color-secondary);
}

/* Dica e Próximo Setor (Direita) */
.tip-card {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 250px;
}

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

.tip-text h4 {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-page-dark);
    text-transform: uppercase;
}

.tip-text p {
    font-size: 0.62rem;
    color: var(--text-page-light);
    line-height: 1.3;
}

.next-sector-card {
    background-color: #fef08a; /* Amarelo clarinho */
    border: 1px solid #fde047;
    border-radius: var(--radius-md);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
}

.next-sector-card:hover {
    background-color: #fef9c3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.next-sector-info {
    display: flex;
    flex-direction: column;
}

.next-label {
    font-size: 0.62rem;
    font-weight: 800;
    color: #854d0e;
    text-transform: uppercase;
}

.next-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: #451a03;
}

.next-arrow-btn {
    background-color: var(--color-secondary);
    color: #451a03;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.next-sector-card:hover .next-arrow-btn {
    transform: translateX(4px);
}

/* Navegação do Álbum (Rodapé Geral) */
.album-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 44px;
    z-index: 3;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #cbd5e1;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-outline:hover {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(255,255,255,0.03);
}

.page-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-pages {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.indicator-label {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   INVENTÁRIO INFERIOR (Mesa de Figurinhas)
   ========================================================================== */
.inventory-drawer {
    position: absolute;
    bottom: 0;
    left: 280px; /* Alinhado após a sidebar */
    width: calc(100vw - 280px);
    background-color: #0b1422;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.5);
    z-index: 8;
    transform: translateY(calc(100% - 50px)); /* Mostra apenas o header por padrão */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.inventory-drawer.open {
    transform: translateY(0);
}

.drawer-header {
    height: 50px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

.drawer-header:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.drawer-title h3 {
    font-size: 0.88rem;
    font-weight: 700;
}

.drawer-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.drawer-toggle-icon {
    color: #8c9fb8;
    display: flex;
    transition: transform 0.3s;
}

.inventory-drawer.open .drawer-toggle-icon {
    transform: rotate(180deg);
}

.drawer-body {
    height: 180px; /* Altura do conteúdo expandido */
    display: flex;
    flex-direction: column;
}

.drawer-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    background-color: #070e19;
}

.drawer-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    padding: 10px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.drawer-tab:hover {
    color: #ffffff;
}

.drawer-tab.active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.tab-content {
    display: none;
    flex-grow: 1;
    padding: 12px 24px;
    overflow-x: auto;
    overflow-y: hidden;
}

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

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #4f637f;
}

.empty-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
}

.empty-state span {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 2px;
}

/* Pilha/Fila de Figurinhas na Mesa */
.stickers-pile-container {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 4px;
    height: 100%;
    width: 100%;
}

.stickers-pile-container.hidden {
    display: none;
}

/* Card da Figurinha na Mesa (Mini) */
.sticker-item-mini {
    width: 80px;
    height: 112px; /* Proporção Portrait 1:1.4 exata */
    background-color: #ffffff;
    border-radius: 6px;
    border: 2.5px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
    padding: 2px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
    position: relative;
}

.sticker-item-mini:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.sticker-item-mini.special {
    border-color: var(--color-secondary);
}

.mini-avatar-container {
    width: 100%;
    height: 100%;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

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

.mini-info {
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: calc(100% - 4px);
    background-color: rgba(0, 92, 83, 0.9);
    color: white;
    font-size: 0.5rem;
    font-weight: 800;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    overflow: hidden;
    padding: 2px 1px;
    z-index: 3;
}

.sticker-item-mini.special .mini-info {
    background-color: var(--color-secondary);
    color: var(--text-page-dark);
}

.mini-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.mini-number-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 0 4px;
    border-radius: 2px;
    z-index: 1;
}

.sticker-item-mini.special .mini-number-badge {
    background-color: var(--color-secondary);
    color: var(--text-page-dark);
}

/* Quantidade de repetidas */
.mini-count-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background-color: var(--color-danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
    box-shadow: var(--shadow-sm);
}

/* Controles de troca de repetidas */
.repeated-pile-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.repeated-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.repeated-exchange-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.exchange-highlight {
    color: var(--color-secondary);
}

.progress-bar-mini-container {
    width: 80px;
    height: 6px;
    background-color: #070e19;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-mini {
    height: 100%;
    background-color: var(--color-secondary);
    width: 0%;
    transition: width var(--transition-fast);
}

.exchange-ratio-text {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.sticker-item-mini.selected-for-exchange {
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px var(--color-secondary);
    transform: translateY(-4px) scale(0.95);
    opacity: 0.95;
}

.sticker-item-mini.selected-for-exchange::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-secondary);
    color: var(--text-page-dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

/* ==========================================================================
   MODAIS E TELAS SOBREPOSTAS (OVERLAYS)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(4, 9, 17, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn var(--transition-normal);
}

.modal-overlay.hidden {
    display: none;
}

.close-btn {
    background: none;
    border: none;
    color: #8c9fb8;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-btn:hover {
    color: #ffffff;
}

/* ==========================================================================
   MODAL DE RESGATE DE CÓDIGO & REVELAÇÃO
   ========================================================================== */
#redeem-code-modal {
    z-index: 1005;
}

.redeem-modal-container {
    position: relative;
    width: 380px;
    max-width: 90%;
    /* Liquid Glass Claro Apple Style */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.45),
        inset 0 2px 3px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 32px 24px;
    animation: zoomIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.redeem-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.redeem-modal-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 10px rgba(244, 180, 26, 0.25));
    animation: pulse-key 2s infinite ease-in-out;
}

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

.redeem-modal-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: var(--font-header);
    letter-spacing: -0.3px;
}

.redeem-modal-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.48;
    margin-bottom: 24px;
}

#redeem-code-form {
    width: 100%;
}

.redeem-input-wrapper {
    width: 100%;
    margin-bottom: 16px;
}

#redeem-code-input {
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    font-family: var(--font-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
    text-transform: uppercase;
}

#redeem-code-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.14);
}

#redeem-code-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    text-transform: none;
}

.redeem-feedback {
    margin-top: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    width: 100%;
    animation: fadeInUp 0.3s ease;
}

.redeem-feedback.success {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.redeem-feedback.error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ==========================================================================
   MODAL DE REVELAÇÃO DA FIGURINHA
   ========================================================================== */
#redeem-reveal-modal {
    z-index: 1010;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(4, 9, 20, 0.75);
}

.redeem-reveal-container {
    position: relative;
    width: 440px;
    max-width: 95%;
    overflow: visible;
    text-align: center;
    /* Sem grupo/box em volta: apenas o fundo com blur do overlay */
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.redeem-reveal-top {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#redeem-reveal-card-container {
    width: 210px;
    height: 294px;
    position: relative;
    perspective: 1200px;
}

#redeem-reveal-card-container::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, var(--backlight-color, rgba(0, 198, 255, 0.65)) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    opacity: 0.9;
    pointer-events: none;
    animation: glowPulse 3.5s ease-in-out infinite alternate;
}

#redeem-reveal-card-container .sticker-card {
    cursor: default;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 25px 50px rgba(0,0,0,0.7);
    animation: floatCard3D 6s ease-in-out infinite alternate;
}

.redeem-reveal-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: pulse-glow-bg 3s ease-out forwards;
}

@keyframes pulse-glow-bg {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; }
    100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.2); }
}

.redeem-reveal-info {
    position: relative;
    z-index: 2;
}

.redeem-reveal-info h2 {
    font-family: var(--font-header);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.redeem-reveal-info p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    line-height: 1.45;
}

#collect-redeemed-btn {
    width: 100%;
    height: 42px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.25s ease;
}

#collect-redeemed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    filter: brightness(1.1);
}

/* Partícula de Confete de Resgate */
.confetti-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    z-index: 1015;
    pointer-events: none;
    border-radius: 2px;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(105vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==========================================================================
   ANIMAÇÃO DE VOO DA FIGURINHA (COLAGEM)
   ========================================================================== */
.flying-sticker {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-radius: 8px;
}

/* Efeito de Confete */
.confetti {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: #f00;
    z-index: 9999;
    pointer-events: none;
    border-radius: 20%;
    animation: confetti-fall 2.5s ease-out forwards;
}

/* ==========================================================================
   BOTÕES E COMPONENTES AUXILIARES
   ========================================================================== */
.btn {
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-secondary);
    color: #451a03;
    box-shadow: 0 4px 10px rgba(244, 180, 26, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 180, 26, 0.4);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 135, 90, 0.2);
}

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

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

/* ANIMAÇÃO DE FOLHEAR PÁGINAS (FLIP 3D REALISTA) */
.page-flip-sheet {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: var(--bg-page);
    box-shadow: inset 15px 0 25px rgba(0, 0, 0, 0.05);
    z-index: 10;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Direção: Avançar (Folha da direita vira para a esquerda) */
.page-flip-sheet.flip-next {
    right: 0;
    transform-origin: left center;
    border-radius: 0 24px 24px 0;
}

.page-flip-sheet.flip-next.active {
    transform: rotateY(-180deg);
    box-shadow: inset -15px 0 25px rgba(0, 0, 0, 0.05);
}

/* Direção: Voltar (Folha da esquerda vira para a direita) */
.page-flip-sheet.flip-prev {
    left: 0;
    transform-origin: right center;
    border-radius: 12px 0 0 12px;
}

.page-flip-sheet.flip-prev.active {
    transform: rotateY(180deg);
    box-shadow: inset 15px 0 25px rgba(0, 0, 0, 0.05);
}

/* Faces da Folha Voadora */
.page-flip-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 20px 30px;
    background-color: var(--bg-page);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-flip-face.front {
    z-index: 2;
    transform: rotateY(0deg);
}

.page-flip-face.back {
    transform: rotateY(180deg);
}

/* ESTILOS DO MODAL DE DESTAQUE E COMENTÁRIOS DA FIGURINHA */
#sticker-detail-modal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background-color: rgba(4, 9, 20, 0.45);
    overflow-y: auto;
    align-items: flex-start; /* Alinha no topo para permitir rolagem segura desde o início */
    justify-content: center;
    padding: 152px 20px 32px 20px; /* Espaço para a figurinha que flutua acima do card */
}

.sticker-detail-container {
    position: relative;
    width: 580px;
    max-width: 95%;
    /* Efeito Liquid Glass Claro e Translúcido Estilo Apple */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.28); /* Borda branca nítida simulando reflexo de luz */
    border-radius: 28px;
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.5),
        inset 0 2px 3px rgba(255, 255, 255, 0.35),
        inset 0 -1px 3px rgba(255, 255, 255, 0.15);
    overflow: visible; /* Permite que a figurinha saia pelo topo */
    animation: zoomIn var(--transition-normal);
    z-index: 101;
    padding: 158px 30px 20px 30px; /* Padding superior para dar espaço à figurinha flutuante */
    margin: 0 auto; /* Gerenciado pelo padding do contêiner pai overlay */
    backdrop-filter: blur(30px); /* Desfoque local aumentado para valorizar o vidro líquido */
    -webkit-backdrop-filter: blur(30px);
    transition: all 0.3s ease;
}

.sticker-detail-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Topo: Figurinha Centralizada em Destaque Flutuante */
.sticker-detail-top {
    position: absolute;
    top: -140px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    z-index: 10;
    pointer-events: none; /* Deixa cliques passarem se necessário */
}

#sticker-detail-card-container {
    width: 210px;
    height: 294px;
    position: relative;
    perspective: 1200px;
    pointer-events: auto; /* Reativa cliques e interações na figurinha */
}

/* Luz de fundo pulsante dinâmica (backlight) */
#sticker-detail-card-container::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, var(--backlight-color, rgba(0, 198, 255, 0.6)) 0%, transparent 70%);
    filter: blur(35px);
    z-index: -1;
    opacity: 0.85;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.15);
        opacity: 0.95;
    }
}

#sticker-detail-card-container .sticker-card {
    cursor: default;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: scale(1.05) rotateX(12deg) rotateY(-6deg);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.65),
        0 0 25px rgba(255, 255, 255, 0.05);
    animation: floatCard3D 6s ease-in-out infinite alternate;
}

@keyframes floatCard3D {
    0% {
        transform: scale(1.05) rotateX(12deg) rotateY(-8deg) rotateZ(-1.2deg) translateY(0px);
        box-shadow: 
            0 15px 35px rgba(0, 0, 0, 0.55),
            0 0 30px rgba(255, 255, 255, 0.05);
    }
    50% {
        transform: scale(1.07) rotateX(8deg) rotateY(8deg) rotateZ(1.2deg) translateY(-12px);
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.65),
            0 0 45px rgba(255, 255, 255, 0.1);
    }
    100% {
        transform: scale(1.05) rotateX(14deg) rotateY(-4deg) rotateZ(-0.6deg) translateY(-6px);
        box-shadow: 
            0 20px 42px rgba(0, 0, 0, 0.6),
            0 0 35px rgba(255, 255, 255, 0.08);
    }
}

/* Informações do Colaborador */
.sticker-detail-info {
    text-align: center;
    margin-bottom: 12px;
    z-index: 2;
}

.sticker-detail-info h2 {
    font-family: var(--font-header);
    font-size: 1.4rem;
    color: #ffffff; /* Nome do Talento branco */
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.sticker-detail-info p {
    font-size: 0.88rem;
    color: var(--color-secondary); /* Amarelo da Eace */
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Características: especialidade, grito e curiosidade */
.sticker-detail-traits {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    z-index: 2;
}

.trait {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 13px;
    text-align: left;
}

.trait-icon {
    font-size: 1.15rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.trait-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.trait-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 2px;
}

.trait-value {
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.4;
}

/* Base: Mural de Comentários */
.sticker-detail-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
}

.sticker-detail-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sticker-detail-comments-header h3 {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff; /* Branco literal */
}

.comments-count-badge {
    background: rgba(255, 255, 255, 0.15); /* Badge de vidro */
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff; /* Letras brancas */
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
}

.comments-section {
    display: flex;
    flex-direction: column;
}

.comments-list {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.02);
}

/* Scrollbar para Comentários */
.comments-list::-webkit-scrollbar {
    width: 4px;
}
.comments-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
.comments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}
.comments-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.comment-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.06); /* Vidro claro sutil */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.comment-item:hover {
    transform: translateX(2px);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Avatar do autor do comentário */
.comment-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    overflow: hidden;
    margin-top: 1px;
}

.comment-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffffff;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

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

.comment-author-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.comment-author {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff; /* Nome do comentador em branco literal */
}

.comment-sector {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--color-secondary);
    background: rgba(244, 180, 26, 0.12);
    padding: 1px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.comment-time {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6); /* Branco semitransparente */
    font-weight: 500;
}

.comment-text {
    font-size: 0.82rem;
    color: #ffffff; /* Conteúdo em branco literal */
    line-height: 1.45;
}

.empty-comments {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    color: rgba(255, 255, 255, 0.6);
    gap: 6px;
}

.empty-comments-icon {
    font-size: 2rem;
    opacity: 0.8;
    margin-bottom: 4px;
    color: #ffffff; /* Ícone em branco */
}

.empty-comments p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff; /* Branco literal */
}

.empty-comments span {
    font-size: 0.72rem;
    opacity: 0.8;
    color: #ffffff;
}

/* Formulário de Envio Compacto */
.comment-form {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 16px;
}

.comment-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.comment-form textarea {
    flex-grow: 1;
    height: 42px;
    /* Textarea com efeito Liquid Glass */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 0.85rem;
    resize: none;
    font-family: var(--font-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Placeholder branco suave */
}

.comment-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.14);
}

.comment-form button {
    height: 42px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Botão verde esmeralda brilhante */
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    transition: all 0.25s ease;
}

.comment-form button svg {
    stroke: #ffffff; /* Ícone do botão branco */
}

.comment-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
    filter: brightness(1.1);
}

/* Botão de Fechar do Modal de Destaque */
.sticker-detail-container .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.12); /* Brilho especular para combinar com liquid glass */
    border: 1px solid rgba(255, 255, 255, 0.22);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff; /* Ícone branco */
    cursor: pointer;
    z-index: 105;
    transition: all 0.25s ease;
}

.sticker-detail-container .close-btn:hover {
    background-color: var(--color-danger);
    color: #ffffff;
    border-color: transparent;
    transform: rotate(90deg) scale(1.1);
}

.comment-meta-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.delete-comment-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 2px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.delete-comment-btn svg {
    stroke: rgba(255, 255, 255, 0.55);
    transition: stroke 0.2s ease;
}

.delete-comment-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.1);
}

.delete-comment-btn:hover svg {
    stroke: #ef4444; /* Vermelho */
}

/* Aviso de limite de 1 comentário por usuário com efeito Liquid Glass */
.comment-limit-notice {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    padding: 12px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.comment-limit-notice svg {
    stroke: rgba(255, 255, 255, 0.8);
}

/* ANIMAÇÕES GERAIS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* RESPONSIVIDADE E ADAPTAÇÃO */
@media (max-width: 1360px) {
    .book-container {
        width: 880px;
        height: 520px;
    }
    .book-page {
        padding: 20px 25px;
    }
    .sector-header {
        margin-bottom: 12px;
    }
    .sector-name {
        font-size: 1.35rem;
    }
    .sticker-slot {
        height: auto;
    }
}

/* MODAL DE CONFIRMAÇÃO PERSONALIZADO (DELETE COMMENT) */
#confirm-delete-modal {
    z-index: 2000; /* Fica acima do modal de figurinhas */
    background-color: rgba(4, 9, 20, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.confirm-modal-container {
    width: 350px;
    max-width: 90%;
    /* Liquid Glass Claro Apple Style */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.45),
        inset 0 2px 2px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 24px;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.confirm-modal-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 6px rgba(239, 68, 68, 0.2));
}

.confirm-modal-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: var(--font-header);
    letter-spacing: -0.3px;
}

.confirm-modal-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.48;
    margin-bottom: 24px;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.confirm-modal-actions button {
    flex: 1;
    height: 40px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.confirm-modal-actions button.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.confirm-modal-actions button.btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.confirm-modal-actions button.btn-danger {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.confirm-modal-actions button.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
    filter: brightness(1.1);
}

/* ==========================================================================
   MODAIS DE RESGATE E REVELAÇÃO (LIQUID GLASS APPLE STYLE)
   ========================================================================== */

#redeem-code-modal {
    z-index: 1500;
    background-color: rgba(4, 9, 20, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.redeem-modal-container {
    position: relative;
    width: 420px;
    max-width: 90%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 36px 28px;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.redeem-modal-container .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    z-index: 105;
    transition: all 0.25s ease;
}

.redeem-modal-container .close-btn:hover {
    background-color: var(--color-danger);
    color: #ffffff;
    border-color: transparent;
    transform: rotate(90deg) scale(1.1);
}

.redeem-modal-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.redeem-modal-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(244, 180, 26, 0.3));
    animation: floatIcon 3s ease-in-out infinite;
}

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

.redeem-modal-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    font-family: var(--font-header);
    letter-spacing: -0.5px;
}

.redeem-modal-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 24px;
}

#redeem-code-form {
    width: 100%;
}

.redeem-input-wrapper {
    width: 100%;
    margin-bottom: 18px;
    position: relative;
}

#redeem-code-input {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0 16px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#redeem-code-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

#redeem-code-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    letter-spacing: 0px;
}

#submit-redeem-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #00875a 0%, #00a870 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 135, 90, 0.3);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#submit-redeem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 135, 90, 0.45);
    filter: brightness(1.1);
}

#submit-redeem-btn:active {
    transform: translateY(0);
}

.redeem-feedback {
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.25s ease;
}

.redeem-feedback.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.redeem-feedback.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* MODAL DE REVELAÇÃO 3D */
#redeem-reveal-modal {
    z-index: 2500;
    background-color: rgba(4, 9, 20, 0.82);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.redeem-reveal-container {
    position: relative;
    width: 460px;
    max-width: 92%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.redeem-reveal-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--backlight-color, rgba(244, 180, 26, 0.6)) 0%, rgba(244, 180, 26, 0) 70%);
    opacity: 0.8;
    filter: blur(35px);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
}

.redeem-reveal-top {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    perspective: 1000px;
}

#redeem-reveal-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 10px;
}

#redeem-reveal-card-container .sticker-card {
    width: 200px;
    height: 290px;
    animation: floatCard3D 6s ease-in-out infinite alternate;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 30px var(--backlight-color, rgba(244, 180, 26, 0.4));
    transform-style: preserve-3d;
}

/* Quando revelando múltiplos cards */
#redeem-reveal-card-container.multiple-cards {
    gap: 15px;
    flex-wrap: wrap;
}

#redeem-reveal-card-container.multiple-cards .sticker-card {
    width: 140px;
    height: 200px;
    font-size: 0.85rem;
    box-shadow: 
        0 15px 30px -8px rgba(0, 0, 0, 0.5),
        0 0 20px var(--backlight-color, rgba(244, 180, 26, 0.3));
}

#redeem-reveal-card-container.multiple-cards .sticker-card .sticker-avatar-container {
    height: 110px;
}

#redeem-reveal-card-container.multiple-cards .sticker-card .sticker-name {
    font-size: 0.75rem;
}

#redeem-reveal-card-container.multiple-cards .sticker-card .sticker-role {
    font-size: 0.65rem;
}

#redeem-reveal-card-container.multiple-cards .sticker-card .sticker-number-badge {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
}

@keyframes floatCard3D {
    0% {
        transform: translateY(5px) rotateY(-8deg) rotateX(4deg);
    }
    50% {
        transform: translateY(-10px) rotateY(8deg) rotateX(-4deg);
    }
    100% {
        transform: translateY(5px) rotateY(-8deg) rotateX(4deg);
    }
}

.redeem-reveal-info {
    text-align: center;
    z-index: 2;
}

.redeem-reveal-info h2 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 850;
    color: var(--color-secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(244, 180, 26, 0.4);
}

.redeem-reveal-info p {
    font-size: 0.95rem;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 24px;
}

#collect-redeemed-btn {
    height: 48px;
    padding: 0 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 
        0 8px 20px rgba(16, 185, 129, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
}

#collect-redeemed-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
    filter: brightness(1.1);
}

#collect-redeemed-btn:active {
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   SAQUINHO DE FIGURINHAS — ANIMAÇÃO DE ABERTURA
   ========================================================================== */
.sticker-pack {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 210px;
    height: 300px;
    margin: -150px 0 0 -105px; /* centraliza sem usar transform (livre p/ o shake) */
    z-index: 5;
    animation: packShake 0.85s ease-in-out;
    pointer-events: none;
}

/* Quando a figurinha já foi revelada, o pacote some */
.redeem-reveal-container.revealed .sticker-pack {
    display: none;
}

.pack-half {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #0a857a 0%, #04524a 45%, #042940 100%);
    border: 2px solid rgba(244, 180, 26, 0.55);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.55),
        inset 0 2px 4px rgba(255, 255, 255, 0.18);
    overflow: hidden;
    backface-visibility: hidden;
    transition:
        transform 0.7s cubic-bezier(0.5, -0.25, 0.4, 1.25),
        opacity 0.6s ease;
}

/* Brilho metálico (foil) atravessando o pacote */
.pack-half::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        transparent 28%,
        rgba(255, 255, 255, 0.22) 45%,
        rgba(255, 255, 255, 0.04) 56%,
        transparent 72%);
    pointer-events: none;
}

/* Borda serrilhada que une as duas metades (linha de rasgo) */
.pack-half-top {
    clip-path: polygon(0% 0%, 100% 0%, 100% 50%, 90% 60%, 80% 50%, 70% 60%, 60% 50%, 50% 60%, 40% 50%, 30% 60%, 20% 50%, 10% 60%, 0% 50%);
    z-index: 6;
}

.pack-half-bottom {
    clip-path: polygon(0% 50%, 10% 60%, 20% 50%, 30% 60%, 40% 50%, 50% 60%, 60% 50%, 70% 60%, 80% 50%, 90% 60%, 100% 50%, 100% 100%, 0% 100%);
    z-index: 6;
}

/* Ao revelar: metades se rasgam e voam em direções opostas */
.redeem-reveal-container.revealed .pack-half-top {
    transform: translateY(-280px) rotate(-16deg);
    opacity: 0;
}

.redeem-reveal-container.revealed .pack-half-bottom {
    transform: translateY(280px) rotate(12deg);
    opacity: 0;
}

/* Marca do pacote */
.pack-brand {
    position: absolute;
    top: 42px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pack-brand-logo {
    font-family: var(--font-header);
    font-size: 2.4rem;
    font-weight: 850;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pack-brand-sub {
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-secondary);
}

.pack-bottom-label {
    position: absolute;
    bottom: 32px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
}

@keyframes packShake {
    0%   { transform: scale(0.8);  opacity: 0; }
    20%  { transform: scale(1.05) rotate(0deg); opacity: 1; }
    35%  { transform: rotate(-5deg); }
    50%  { transform: rotate(5deg); }
    65%  { transform: rotate(-4deg); }
    80%  { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

/* ---- Fases de revelação (controladas via JS) ---- */
#redeem-reveal-card-container {
    transition:
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.5s ease;
}

.redeem-reveal-container.sealed #redeem-reveal-card-container {
    opacity: 0;
    transform: scale(0.3);
}

.redeem-reveal-container.revealed #redeem-reveal-card-container {
    opacity: 1;
    transform: scale(1);
}

.redeem-reveal-info {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.redeem-reveal-container.sealed .redeem-reveal-info {
    opacity: 0;
    transform: translateY(25px);
    pointer-events: none;
}

.redeem-reveal-container.revealed .redeem-reveal-info {
    opacity: 1;
    transform: translateY(0);
}

.redeem-reveal-container.sealed .redeem-reveal-glow {
    opacity: 0.25;
}

/* Partícula de confete virtual */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 3000;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* ==========================================================================
   BOTÃO FLUTUANTE "MINHA FIGURINHA" + MODAL DO CÓDIGO
   ========================================================================== */
.floating-mycard-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 135, 90, 0.4);
    transition: var(--transition-fast);
}

.floating-mycard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 135, 90, 0.5);
    filter: brightness(1.05);
}

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

/* Modal "Minha figurinha": reaproveita o estilo do modal de detalhe
   (.sticker-detail-container) — vidro + figurinha flutuante + glow.
   Aqui ficam só os ajustes específicos. */
.sticker-detail-container.mycard-detail {
    width: 400px;
    padding: 60px 30px 30px;
}

.mycard-text {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    text-align: center;
    max-width: 320px;
    margin: 0 auto 18px;
}

.mycard-code {
    width: 100%;
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    color: var(--color-secondary);
    background: rgba(0, 0, 0, 0.25);
    border: 1.5px dashed rgba(244, 180, 26, 0.5);
    border-radius: 12px;
    padding: 14px 10px;
    margin-bottom: 16px;
    user-select: all;
}

#copy-mycard-code.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ==========================================================================
   NAVEGAÇÃO POR ARRASTAR (SWIPE) NAS PÁGINAS
   ========================================================================== */
.book-page {
    cursor: grab;
}
.sticker-card {
    cursor: pointer; /* figurinhas continuam clicáveis */
}
.book-container.grabbing,
.book-container.grabbing * {
    cursor: grabbing !important;
}

/* ==========================================================================
   MENU MOBILE (hambúrguer) — escondidos no desktop
   ========================================================================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    flex-shrink: 0;
}
.sidebar-backdrop {
    display: none;
}

/* ==========================================================================
   RESPONSIVO — MOBILE (≤ 820px)
   ========================================================================== */
@media (max-width: 820px) {
    /* Permite rolagem vertical da página inteira */
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .app-container {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Sidebar vira menu lateral deslizante.
       Ancorada com top:0 + bottom:0 (em vez de height:100vh) para respeitar a
       área visível real do mobile e manter o card de ranking fixo embaixo. */
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1200;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    /* Marca e ranking não encolhem; só a lista de setores rola */
    .sidebar-brand { flex-shrink: 0; }
    .sidebar-card-ranking { flex-shrink: 0; }
    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .sidebar-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }

    /* Conteúdo principal ocupa toda a largura e cresce conforme o conteúdo */
    .main-content {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    /* Header compacto */
    .main-header {
        position: sticky;
        top: 0;
        height: 60px;
        padding: 0 14px;
        gap: 10px;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .search-bar-container { display: none; }
    .header-progress-panel { display: none; }
    .header-actions { gap: 10px; }
    /* Perfil só com o avatar */
    .user-info,
    .user-profile .chevron-icon { display: none; }

    /* Álbum: rola normalmente, sem efeito 3D */
    .album-viewport {
        height: auto;
        padding: 16px 12px 90px;
        perspective: none;
        overflow: visible;
        justify-content: flex-start;
    }

    /* Álbum como UMA página só (meio livro), sem efeito 3D */
    .book-container {
        width: 100%;
        max-width: 440px;
        height: auto;
        transform: none;
        display: flex;
        flex-direction: column;
        background: var(--bg-page);
        border-radius: 16px;
        padding: 20px 16px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
        transition: none;
    }
    .book-spine,
    .book-page-back-left,
    .book-page-back-right { display: none; }

    /* As duas páginas deixam de ser "caixa": os filhos viram itens do book-container */
    .book-page {
        display: contents;
    }

    /* Reordena tudo numa página única: cabeçalho -> grade 3x4 -> rodapés */
    .sector-header     { order: 1; margin-bottom: 14px; }
    .grid-left         { order: 2; }
    .grid-right        { order: 3; }
    .page-footer-left  { order: 4; }
    .page-footer-right { order: 5; }
    /* "NOSSA ESCALAÇÃO" não faz sentido na página única */
    .right-page-header { display: none; }

    /* Página única: as 12 figurinhas numa grade 4x3 (4 colunas, 3 linhas) */
    .grid-left {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
        gap: 8px;
        margin: 0 0 16px;
        flex-grow: 0;
    }
    .grid-right { display: none; } /* no mobile tudo vai na grade da esquerda */
    .sticker-slot {
        aspect-ratio: 3 / 4;
        height: auto;
    }

    /* Rodapés empilhados (progresso -> próximo setor -> dica) */
    .page-footer-left { margin-bottom: 12px; }
    .page-footer-right {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .page-footer-right .next-sector-card { order: 1; }
    .page-footer-right .tip-card { order: 2; }

    /* Navegação entre setores */
    .album-navigation {
        margin-top: 22px;
        gap: 20px;
        flex-wrap: wrap;
    }

    /* Esconde o card amarelo "Próximo setor" (a navegação fica nos botões/swipe).
       !important para vencer o display inline definido pelo JS. */
    .next-sector-card { display: none !important; }

    /* ---- Modal de detalhe da figurinha: otimizado pra caber sem scroll ---- */
    #sticker-detail-modal {
        padding-top: 118px;
    }
    .sticker-detail-container {
        width: 580px;
        padding: 128px 18px 18px;
    }
    .sticker-detail-top { top: -112px; }
    /* Figurinha 20% menor (210x294 -> 168x235) */
    #sticker-detail-card-container {
        width: 168px;
        height: 235px;
    }
    .sticker-detail-info { margin-bottom: 10px; }
    .sticker-detail-info h2 { font-size: 1.2rem; margin-bottom: 3px; }
    .sticker-detail-info p { font-size: 0.78rem; }
    .sticker-detail-traits { gap: 6px; margin-bottom: 12px; }
    .trait { padding: 7px 11px; gap: 9px; }
    .trait-icon { font-size: 1rem; }
    .trait-value { font-size: 0.8rem; }
    .sticker-detail-bottom { padding-top: 12px; }
    .sticker-detail-comments-header h3 { font-size: 0.95rem; }
    .comments-list { max-height: 130px; }

    /* Botão flutuante um pouco menor */
    .floating-mycard-btn {
        bottom: 14px;
        right: 14px;
        height: 44px;
        padding: 0 16px;
        font-size: 0.82rem;
    }
}

/* Ajustes finos para telas bem estreitas */
@media (max-width: 420px) {
    .grid-left { gap: 6px; }              /* mantém 4 colunas, só aperta o espaçamento */
    .book-container { padding: 16px 12px; }
    .sector-name { font-size: 1.25rem; }
    .album-navigation { gap: 12px; }
    .album-navigation .page-indicator .indicator-label { display: none; }
}
