:root {
    --bg-color: #0B612D;
    --bg-color-light: #1a7a3a;
    --bg-yellow: #c9a827;
    --bg-card: #f6f6f6;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --text-main: #f0f0f0;
    --text-muted: #8892b0;
    --accent: #2563eb;
    --danger: #ef4444;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: linear-gradient(135deg, #041f0f 0%, #063519 25%, #0B4a22 50%, #0c3e1e 75%, #122c15 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

/* ===== FLOATING WATERMARK ICONS ===== */
.floating-icons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.06;
    animation: floatIcon linear infinite;
    filter: grayscale(0.5);
    will-change: transform;
}

@keyframes floatIcon {
    0% {
        transform: translateY(110vh) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.15);
    }
    100% {
        transform: translateY(-10vh) rotate(360deg) scale(1);
    }
}

/* ===== LOADER ===== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-card);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== HEADER ===== */
.app-header {
    background: rgba(21, 27, 43, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header h1 {
    font-size: 1.5rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
}

/* ===== FEED TOGGLE ===== */
.feed-toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.feed-toggle-label {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--gold);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--gold);
}

input:checked+.slider:before {
    transform: translateX(14px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Share My Sticker Button */
.btn-share-sticker {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-share-sticker:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.btn-share-sticker:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .feed-toggle-label {
        display: none;
    }

    .feed-toggle-container {
        margin-right: 5px;
        padding: 5px;
    }

    .share-label {
        display: none;
    }

    .btn-share-sticker {
        padding: 5px 8px;
        font-size: 0.9rem;
    }
}

/* ===== MAIN ===== */
.app-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

/* ===== PACK SECTION ===== */
.pack-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.pack-wrapper {
    cursor: pointer;
    perspective: 1000px;
    transition: transform 0.3s ease;
    width: 200px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
}

.pack-wrapper:hover {
    transform: scale(1.05) translateY(-10px);
}

.pack-half {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center;
}

.pack-top {
    clip-path: polygon(0 0, 100% 0, 100% 15%, 80% 22%, 60% 12%, 40% 25%, 20% 15%, 0 20%);
    z-index: 2;
}

.pack-bottom {
    clip-path: polygon(0 20%, 20% 15%, 40% 25%, 60% 12%, 80% 22%, 100% 15%, 100% 100%, 0 100%);
    z-index: 2;
}

.pack {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #a0a0a0 100%);
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.pack::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    pointer-events: none;
}

.pack-design {
    text-align: center;
    color: #111;
    z-index: 2;
}

.pack-logo {
    width: 110px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.pack-wrapper.shaking {
    animation: realistic-shake 0.3s cubic-bezier(.36, .07, .19, .97) both infinite;
    filter: brightness(1.1);
}

.pack-wrapper.torn .pack-top {
    transform: translateY(-150px) translateX(30px) rotate(25deg);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.pack-wrapper.torn .pack-bottom {
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.pack-wrapper::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 50px 50px rgba(255, 255, 255, 0.8), 0 0 100px 100px rgba(212, 175, 55, 0.6);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.pack-wrapper.torn::after {
    animation: flash-burst 0.6s ease-out forwards;
}

@keyframes realistic-shake {
    0%, 100% { transform: scale(1.05) translate(0, 0) rotate(0); }
    20% { transform: scale(1.05) translate(-3px, 2px) rotate(-2deg); }
    40% { transform: scale(1.05) translate(3px, -2px) rotate(2deg); }
    60% { transform: scale(1.05) translate(-3px, -2px) rotate(-1deg); }
    80% { transform: scale(1.05) translate(2px, 2px) rotate(1deg); }
}

@keyframes flash-burst {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    40% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(35); opacity: 0; }
}

/* ===== ALBUM SECTION ===== */
.album-stats {
    text-align: center;
    margin-bottom: 2rem;
}

.album-stats h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.progress-bar-container {
    width: 100%;
    max-width: 400px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 1rem auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width 1s ease;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
}

/* ===== ALBUM BOOK (PAGE-FLIP) ===== */
.album-book-container {
    position: relative;
    width: 100%;
    perspective: 2000px;
}

.album-book {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.book-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 400px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transform-origin: left center;
    backface-visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1),
                opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.book-page.active {
    transform: rotateY(0deg);
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 5;
}

.book-page.flip-out-forward {
    animation: flipOutForward 0.7s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
    z-index: 10;
}

.book-page.flip-in-forward {
    animation: flipInForward 0.7s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
    z-index: 5;
}

.book-page.flip-out-backward {
    animation: flipOutBackward 0.7s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
    z-index: 10;
}

.book-page.flip-in-backward {
    animation: flipInBackward 0.7s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
    z-index: 5;
}

@keyframes flipOutForward {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(-100deg);
        opacity: 0;
    }
}

@keyframes flipInForward {
    0% {
        transform: rotateY(100deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

@keyframes flipOutBackward {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(100deg);
        opacity: 0;
    }
}

@keyframes flipInBackward {
    0% {
        transform: rotateY(-100deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

/* Page header with department name */
.page-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.page-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s ease infinite;
}

.page-header .page-dept-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-weight: 400;
}

/* Book navigation */
.book-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem;
}

.book-nav-btn {
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: var(--gold);
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.book-nav-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.book-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.book-nav-btn .nav-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.book-nav-btn:hover:not(:disabled) .nav-arrow-left {
    transform: translateX(-3px);
}

.book-nav-btn:hover:not(:disabled) .nav-arrow-right {
    transform: translateX(3px);
}

.page-indicator {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.page-indicator .current-page {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 800;
}

/* Page tabs navigation (department names) */
.page-dots {
    display: flex;
    gap: 8px;
    margin-top: 1.2rem;
    padding: 0.5rem 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.page-dots::-webkit-scrollbar {
    height: 4px;
}

.page-dots::-webkit-scrollbar-track {
    background: transparent;
}

.page-dots::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

.page-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
    min-width: 80px;
}

.page-tab:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.page-tab.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.25), inset 0 0 0 1px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.page-tab-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.page-tab.active .page-tab-name {
    color: var(--gold);
}

.page-tab:hover .page-tab-name {
    color: var(--text-main);
}

.page-tab-count {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.page-tab.active .page-tab-count {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-light);
}

.page-tab-count.complete {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

/* ===== STICKER / CARD ===== */
.sticker-slot {
    aspect-ratio: 2 / 3;
    border-radius: 0;
    perspective: 1000px;
    position: relative;
}

.sticker {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.sticker.flipped {
    transform: rotateY(180deg);
}

.sticker-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Faltante (Costas) */
.sticker-back {
    background: var(--bg-card);
    border: 2px dashed rgba(21, 27, 43, 0.3);
    align-items: center;
    justify-content: center;
    color: rgba(21, 27, 43, 0.5);
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.back-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(21, 27, 43, 0.7);
    line-height: 1.2;
}

.back-role {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(21, 27, 43, 0.4);
}

.back-dept {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(21, 27, 43, 0.3);
    margin-top: 2px;
}

/* Colada (Frente) - Estilo Panini */
.sticker-front {
    background: #fff;
    transform: rotateY(180deg);
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), inset 0 0 0 10px #fff;
    border: 1px solid #ccc;
    color: #111;
}

.sticker-border-inner {
    border: 2px solid #b0b0b0;
    border-radius: 4px;
    margin: 8px;
    height: calc(100% - 16px);
    display: grid;
    grid-template-columns: 22px 1fr;
    grid-template-rows: 1fr auto;
    position: relative;
    background: #fff;
    /* Fundo branco para formar o L */
    overflow: hidden;
}

.sticker-side-text {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5px;
    padding-top: 25px;
    /* espaço pro badge */
    min-height: 0;
    overflow: hidden;
}

.sticker-side-text span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.55rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Mantém nowrap para o BR fazer a quebra exata */
    text-overflow: ellipsis;
    overflow: hidden;
    text-align: left;
    /* Alinha o texto perto da base quando quebra a linha */
    line-height: 1.2;
    min-height: 0;
}

.sticker-photo {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    /* Linha sutil para separar a foto do L branco se a foto for muito clara */
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sticker-bottom {
    grid-column: 1 / span 2;
    grid-row: 2;
    background: transparent;
    /* Deixa o branco do L aparecer */
    text-align: center;
    padding: 8px 4px;
    z-index: 2;
    min-height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sticker-name {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    line-height: 1;
}

.sticker-func {
    font-size: 0.6rem;
    color: #444;
    font-weight: 600;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.sticker-number {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    z-index: 10;
}

.sticker-logo {
    position: absolute;
    top: 4px;
    left: 2px;
    width: 20px;
    height: auto;
    z-index: 10;
    opacity: 0.9;
}

.sticker-badge {
    position: absolute;
    top: 28px;
    left: 5px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rare-badge {
    background: linear-gradient(45deg, #d4af37, #f3e5ab, #d4af37);
    color: #000;
    border: 1px solid #000;
    font-weight: 900;
    animation: goldShimmer 2s infinite linear;
    background-size: 200% 200%;
}

.sticker-rare {
    border: 2px solid var(--gold) !important;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.6), inset 0 0 0 4px var(--gold) !important;
    background: transparent !important;
    padding: 0;
}

.sticker-rare .sticker-border-inner {
    border-color: var(--gold) !important;
}

@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99999;
}

.toast {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid var(--gold);
    font-weight: 600;
}

.toast-error {
    border-left-color: var(--danger);
}

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

.toast button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

.toast button:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== REVEAL OVERLAY ===== */
.pack-reveal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow-y: auto;
}

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

.reveal-content {
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin: auto 0;
}

.reveal-content h2 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cards-reveal-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cards-reveal-grid .sticker-slot {
    width: 200px;
    animation: floatIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-primary {
    background: var(--gold);
    color: #111;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 1.2rem 2.5rem;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .pack-reveal-overlay {
        justify-content: flex-start;
    }

    .reveal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .cards-reveal-grid {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .cards-reveal-grid .sticker-slot {
        width: 125px;
    }

    .reveal-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        padding-bottom: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
    }

    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    /* Fontes menores na figurinha pro Mobile */
    .sticker-name { font-size: 0.58rem; }
    .sticker-func { font-size: 0.40rem; }
    .sticker-side-text span { font-size: 0.30rem; }
    .sticker-number { font-size: 0.40rem; padding: 1px 3px; }
    .back-name { font-size: 0.8rem; }
    .back-role { font-size: 0.55rem; }
    .back-dept { font-size: 0.45rem; }

    .sticker-border-inner {
        margin: 4px;
        grid-template-columns: 18px 1fr;
    }

    .sticker-bottom {
        padding: 4px 2px;
        min-height: 35px;
    }

    .sticker-side-text {
        padding-top: 15px;
    }

    /* Book nav mobile */
    .book-nav {
        gap: 0.5rem;
    }

    .book-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .page-header h3 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .book-page {
        padding: 1rem;
    }
}

/* ===== WARNING MODAL ===== */
.warning-modal-content {
    background: rgba(20, 24, 33, 0.95);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.2);
    max-width: 550px !important;
    animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.warning-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulseWarning 2s infinite ease-in-out;
    display: inline-block;
}

@keyframes pulseWarning {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.4)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.8)); }
}

.warning-text {
    font-size: 1.15rem;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.warning-details {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--gold);
    padding: 1.2rem;
    border-radius: 4px 8px 8px 4px;
    margin-bottom: 2rem;
    text-align: left;
}

.warning-details p {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 0.8rem;
}

.warning-details strong {
    color: var(--gold);
}

.warning-details ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.warning-details li {
    font-size: 1rem;
    font-weight: 600;
    color: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-details li::before {
    content: "❌";
    font-size: 0.9rem;
}

.warning-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.warning-actions button {
    width: 100%;
}

.warning-actions .btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #b89020 100%);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.warning-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    filter: brightness(1.1);
}

.warning-actions .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #9ca3af;
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
}

.warning-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* ===== TABS NAVIGATION ===== */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--gold);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

/* Mobile warning styles */
@media (max-width: 768px) {
    .warning-modal-content {
        padding: 1.5rem;
        margin: auto 15px;
    }

    .warning-icon { font-size: 3rem; }
    .warning-text { font-size: 1rem; }
    .warning-details { padding: 0.8rem; }

    .warning-actions .btn-secondary {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .tab-btn {
        font-size: 0.96rem;
        padding: 0.6rem 0.8rem;
    }

    /* Mobile Book & Grid Layout */
    .book-wrapper {
        padding: 0;
        perspective: none;
    }

    .book-page {
        min-height: auto;
        padding: 1rem 0.5rem;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-content: center;
        padding: 0 5px;
    }

    /* Fix background flashing in mobile WebViews */
    body {
        animation: none !important;
        background-size: cover !important;
        background-attachment: scroll !important;
        min-height: 100%;
    }

    /* Disable floating icons on mobile to save GPU */
    .floating-icons-container {
        display: none !important;
    }
}

/* ===== ACTION BUTTONS IN GRIDS ===== */
.action-btn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    border-radius: 4px;
}

.sticker-slot:hover .action-btn-overlay {
    opacity: 1;
}

.action-btn {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 0.8rem 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.sticker-slot:hover .action-btn {
    transform: translateY(0);
}

.action-btn:hover {
    background: #fff;
    transform: scale(1.05);
}