:root {
    --bg-primary: #0f0f13;
    --bg-secondary: rgba(26, 26, 35, 0.7);
    --bg-tertiary: rgba(37, 37, 50, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #d0d0e0;

    /* Updated to match Admin/Auth Purple Theme */
    --accent: #8A2BE2;
    /* Cosmic Purple */
    --accent-hover: #9d4edd;
    --secondary-accent: #0096FF;
    /* Blue */

    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 15, 20, 0.85);
    --glass-border: rgba(138, 43, 226, 0.3);
    /* Purple tinted border */
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    background-image:
        linear-gradient(rgba(15, 15, 19, 0.9), rgba(15, 15, 19, 0.8)),
        url('../img/cosmic_bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center 20%;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    .section-title { font-size: 20px !important; margin: 30px 0 15px !important; }
}

.btn {
    padding: 10px 20px;
    border-radius: 30px;
    /* Rounded buttons */
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--secondary-accent));
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.6);
}

.btn-outline {
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 15px var(--accent);
}

/* Header */
header {
    background: rgba(15, 15, 20, 0.7);
    /* Glass Header */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--accent), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    position: relative;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--secondary-accent);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn {
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 5px;
    transition: 0.3s;
}

.search-btn:hover {
    color: var(--secondary-accent);
    transform: scale(1.1);
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-accent);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Header Wallet Pill */
.header-wallet {
    cursor: pointer;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50px;
    padding: 5px 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    transition: 0.3s;
}

.header-wallet:hover {
    border-color: var(--accent);
}

.header-wallet i {
    color: #00ffff;
    font-size: 1.1rem;
    margin-right: 8px;
    text-shadow: 0 0 10px #00ffff;
}

.header-wallet span {
    color: #00ffff;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    font-size: 1.1rem;
    margin-right: 12px;
    letter-spacing: 1px;
}

.btn-add-sc {
    background: linear-gradient(45deg, #ff0055, #cc00ff);
    color: #fff !important;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    transition: transform 0.2s;
}

.btn-add-sc:hover {
    transform: scale(1.2) rotate(90deg);
}

/* VIP Header Icons */
.vip-star {
    color: #ff0055;
    font-size: 0.8rem;
    text-shadow: 0 0 5px #ff0055;
}

.legend-crown {
    color: gold;
    font-size: 0.9rem;
    text-shadow: 0 0 8px gold;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.username-text {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-logout {
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 5px;
    transition: 0.3s;
}

.btn-logout:hover {
    color: #ff0055;
    transform: translateX(3px);
}

/* Anime Grid */
.section-title {
    font-size: 28px;
    margin: 50px 0 25px;
    padding-left: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-left: 5px solid var(--accent);
    position: relative;
    display: inline-block;
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

@media (max-width: 1024px) {
    .anime-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
}

@media (max-width: 768px) {
    .anime-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
}

@media (max-width: 480px) {
    .anime-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.anime-card {
    background: rgba(30, 30, 40, 0.6);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.anime-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 0, 85, 0.3);
    border-color: var(--accent);
    z-index: 10;
}

.card-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.anime-card:hover .card-image img {
    transform: scale(1.15) rotate(1deg);
}

/* Play Overlay */
.card-image::before {
    content: '\f144';
    /* Font Awesome Play Icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 50px;
    color: white;
    z-index: 2;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 0 20px var(--accent);
    opacity: 0;
}

.anime-card:hover .card-image::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Gradient Overlay */
.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 20, 1) 0%, rgba(15, 15, 20, 0.4) 40%, transparent 100%);
    opacity: 0.9;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 3;
    transform: translateY(10px);
    transition: 0.4s;
}

.anime-card:hover .card-content {
    transform: translateY(0);
}

.card-title {
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    height: 2.8em;
    line-height: 1.4;
    transition: color 0.3s;
}

.anime-card:hover .card-title {
    color: var(--secondary-accent);
}

.btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    transition: 0.3s;
    cursor: pointer;
}

.btn-favorite:hover {
    transform: scale(1.1);
    background: var(--accent);
    border-color: #fff;
}

.btn-favorite.active {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    border-color: #ff4757;
}

.btn-favorite.active i {
    filter: drop-shadow(0 0 5px #ff4757);
}

/* 🚀 BOTÕES CYBER-CIRCLE (APENAS ÍCONES - DESIGN MINIMALISTA) */
.btn-cyber {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    border: 2px solid rgba(255,255,255,0.15) !important;
    background: var(--bg-tertiary);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.btn-cyber i {
    font-size: 1.4rem;
    transition: transform 0.3s;
}

/* Mestre: Centralização Absoluta Indestrutível (Sem Flexbox bug) */
.mestre-player-anime {
    display: block !important; /* Substitui o flex que estava encolhendo os iframes */
    width: 100% !important;
    max-width: 1100px !important;
    margin: 40px auto !important; /* Centraliza a caixa inteira na página */
    text-align: center !important; /* Força o alinhamento central de textos filhos */
    clear: both !important;
}

/* O container do vídeo com Fallback de Proporção Clássica */
.video-container-responsivo {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important; /* Centraliza fortemente usando margin auto */
    position: relative !important;
    padding-bottom: 56.25% !important; /* Fallback clássico para 16:9 */
    height: 0 !important;
    overflow: hidden !important;
    background: #000 !important;
    border-radius: 12px !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(176, 38, 255, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Suporte Moderno se disponível */
@supports (aspect-ratio: 16/9) {
    .video-container-responsivo {
        aspect-ratio: 16 / 9 !important;
        padding-bottom: 0 !important;
        height: auto !important;
    }
}

/* O iframe/video: Ocupação total do container */
.video-container-responsivo iframe,
.video-container-responsivo video,
.video-container-responsivo #torrent-player {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Container dos botões centralizado (Este sim usa flex) */
.botoes-container-centro {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 25px !important;
    margin: 35px auto 0 !important; /* Auto pros lados, 35px em cima */
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
}

@media (max-width: 768px) {
    .player-container {
        border-radius: 0;
        margin: 20px 0;
    }
}

.btn-cyber:hover {
    transform: scale(1.1);
    border-color: var(--accent) !important;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.6) !important;
}

.btn-cyber:hover i {
    transform: scale(1.2);
}

.btn-cyber span {
    display: none !important; /* Remove totalmente o texto conforme pedido */
}

/* Cores específicas */
.btn-cyber.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--secondary-accent)) !important;
}

.btn-cyber.btn-outline {
    background: rgba(15, 15, 20, 0.8) !important;
    border: 2px solid var(--accent) !important;
}

.card-meta {
    font-size: 13px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.card-badge {
    background: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Auth Boxes */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-box {
    background: rgba(26, 26, 35, 0.85);
    /* Glass Auth */
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
}

.form-control {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: white;
}

.form-control:focus {
    border-color: var(--secondary-accent);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* Chat Styling */
.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent);
}

.chat-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 0 15px 15px 15px;
    font-size: 14px;
    max-width: 80%;
}

.chat-user {
    display: block;
    font-size: 11px;
    color: var(--secondary-accent);
    font-weight: bold;
    margin-bottom: 4px;
}

.chat-text {
    line-height: 1.4;
}

/* =========================================
   SISTEMA DE MOLDURAS (CSS PURO GLOBAL)
   ========================================= */
.avatar-container-vip {
    position: relative; display: inline-flex; justify-content: center; align-items: center;
    border-radius: 50%; z-index: 10;
}
.avatar-container-vip img.profile-avatar-img {
    position: relative; z-index: 2; border: 3px solid #1a0b2e; border-radius: 50%; width: 120px; height: 120px; object-fit: cover; background-color: #050505;
}
.moldura-otaku {
    box-shadow: 0 0 10px #b026ff, 0 0 20px #b026ff, inset 0 0 15px #b026ff;
    animation: pulse-neon 2s infinite alternate;
}
@keyframes pulse-neon {
    0% { box-shadow: 0 0 5px #b026ff, 0 0 10px #b026ff; }
    100% { box-shadow: 0 0 15px #ff0055, 0 0 30px #ff0055, 0 0 45px #b026ff; }
}
.moldura-lendario { position: relative; }
.moldura-lendario::before {
    content: ''; position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px;
    z-index: 1; border-radius: 50%;
    background: conic-gradient(#00ffff, #ff0055, #cc00ff, #00ffff);
    animation: spin-epic 4s linear infinite;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
}
@keyframes spin-epic { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Efeitos de Raridade na Borda e Brilhos Específicos do Gacha Molduras */
.rarity-comum { border-color: #555 !important; }
.rarity-raro { border-color: #b026ff !important; box-shadow: 0 0 15px rgba(176,38,255,0.1); }
.rarity-epico { border-color: #00f0ff !important; box-shadow: 0 0 20px rgba(0,240,255,0.2); }
.rarity-lendario { border-color: gold !important; box-shadow: 0 0 25px rgba(255,215,0,0.3); }

.moldura-gacha { animation: pulse-gacha 2s infinite alternate; }
@keyframes pulse-gacha {
    0% { box-shadow: 0 0 5px currentColor; }
    100% { box-shadow: 0 0 25px currentColor; }
}
.moldura-gacha.rarity-comum { color: #888; border: 3px solid #888; border-radius: 50%; }
.moldura-gacha.rarity-raro { color: #b026ff; }
.moldura-gacha.rarity-epico { color: #00f0ff; }
.moldura-gacha.rarity-lendario { color: gold; border: 3px solid gold; border-radius: 50%; }

/* =========================================
   SISTEMA DE MANEQUINS CSS (Dummys)
   ========================================= */
.dummy-tag {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 100%; height: 100%; min-height: 120px;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 10px; background: rgba(0,0,0,0.4);
    transition: all 0.3s;
}
.dummy-tag i { font-size: 40px; margin-bottom: 10px; }
.dummy-tag span { font-size: 14px; font-weight: bold; letter-spacing: 2px; }

.dummy-tag.rarity-comum { border-color: rgba(136,136,136,0.5); color: #888; text-shadow: 0 0 10px rgba(136,136,136,0.5);}
.dummy-tag.rarity-raro { border-color: rgba(176,38,255,0.6); color: #b026ff; text-shadow: 0 0 10px rgba(176,38,255,0.8);}
.dummy-tag.rarity-epico { border-color: rgba(0,240,255,0.6); color: #00f0ff; text-shadow: 0 0 10px rgba(0,240,255,0.8);}
.dummy-tag.rarity-lendario { border-color: rgba(255,215,0,0.8); color: gold; text-shadow: 0 0 10px gold;}

/* Footer */
/* Responsividade Global */
@media (max-width: 992px) {
    .nav-links { 
        display: none !important; 
    }
    
    /* Hide desktop-specific actions in the header to prevent "double menu" feel */
    .user-actions .search-btn,
    .user-actions .header-wallet,
    .user-actions .btn-logout,
    .user-actions .btn-outline,
    .user-actions .btn-primary { 
        display: none !important; 
    }

    .user-actions {
        gap: 15px;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Manter Visível apenas o Essencial no Mobile */
    .user-actions { gap: 10px; }
    .header-wallet { display: none !important; }
    .btn-logout { display: none !important; }

    /* Fix to hide toggle when sidebar is open */
    .mobile-menu-toggle { transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
}

body.mobile-nav-active .mobile-menu-toggle {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 992px) {
    .header-wallet { padding: 5px 10px; font-size: 0.9rem; }
    .header-wallet span { margin-right: 5px; font-size: 0.9rem; }
    
    .hero-section { height: auto !important; padding: 100px 0 60px !important; }
}

/* Hamburguer Essentials */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 2001;
    padding: 5px; /* Área de toque maior */
}

@media (max-width: 992px) {
    .mobile-menu-toggle { display: block; }
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(20px);
    z-index: 3000;
    padding: 30px 20px 80px; /* Reduzi padding superior e aumentei inferior para garantir reachability */
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 40px rgba(0,0,0,0.8);
    overflow-y: auto; /* Habilita a rolagem vertical */
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.mobile-nav::-webkit-scrollbar { width: 4px; }
.mobile-nav::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

.mobile-nav.active { right: 0; }

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hero Responsiveness & Slider */
.hero-section { 
    height: 75vh; 
    min-height: 550px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 620px; /* Mais espaço para o conteúdo empilhado */
        padding-top: 80px; /* Espaço para o cabeçalho */
    }
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 6s ease-out;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1.1);
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(0.4);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 15%, transparent 70%),
                linear-gradient(to right, var(--bg-primary) 10%, transparent 50%);
    z-index: 1;
}

.carousel-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--accent);
}

/* Slide Entry Animations */
.hero-slide.active .hero-poster { animation: slideInLeft 0.8s ease forwards; }
.hero-slide.active .hero-info { animation: fadeInScale 0.8s ease 0.2s forwards; opacity: 0; }
.hero-slide.active .hero-actions { animation: slideInRight 0.8s ease 0.4s forwards; opacity: 0; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 992px) {
    .hero-container { padding-bottom: 50px !important; }
    .hero-content-wrapper { 
        flex-direction: column !important; 
        text-align: center; 
        gap: 25px !important; 
        width: 100%;
        margin: 0 auto;
    }
    .hero-poster { 
        width: 140px !important; 
        height: 195px !important; 
        margin: 0 auto !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .hero-info h1 { 
        font-size: 1.8rem !important; 
        margin-bottom: 10px !important;
    }
    .hero-info p {
        font-size: 0.9rem !important;
        max-width: 100% !important;
    }
    .hero-actions { 
        flex-direction: row !important; 
        border-left: none !important; 
        padding-left: 0 !important; 
        justify-content: center;
        width: 100%;
        margin-top: 15px;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .hero-section { min-height: 580px; }
    .hero-info h1 { font-size: 1.5rem !important; }
    .hero-actions .btn { padding: 12px 18px !important; font-size: 11px !important; }
}

/* Bank Shortcut Responsiveness */
@media (max-width: 768px) {
    .bank-shortcut-card { flex-direction: column !important; text-align: center; gap: 15px !important; }
    .bank-desc { display: none !important; }
    .bank-balance-box { text-align: center !important; }
    .bank-icon-box { margin: 0 auto; }
}

/* Local Sections & Animes Layout Adjustment */
@media (max-width: 768px) {
    #local-sections, #animes { 
        top: -20px !important; 
        position: relative;
    }
    #local-sections > div { padding: 15px !important; }
}

footer {
    background: rgba(10, 10, 15, 0.98);
    padding: 60px 0 40px;
    margin-top: 80px;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    footer { padding: 40px 15px; margin-top: 40px; }
    .header-wallet span { font-size: 0.9rem !important; }
    .header-wallet { padding: 4px 10px !important; }
    .username-text { display: none !important; }
    .logo { font-size: 22px !important; }
}

@media (max-width: 480px) {
    .header-wallet { display: none !important; } /* Hidden on top to keep it clean, as it's now in the sidebar */
    .header-user { display: inline-flex !important; }
    .btn-logout { display: none !important; } /* Keep logout in sidebar only */
    .logo { font-size: 20px !important; }
}

@media (max-width: 768px) {
    .mobile-nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
    .mobile-nav-links a:last-child { border-bottom: none; }
}

/* 🧩 SKELETON LOADERS (INTELLIGENT LOADING) */
.skeleton {
    background-color: #1a1a24;
    background-image: linear-gradient(90deg, #1a1a24 25%, #252535 50%, #1a1a24 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.skeleton-image { width: 100%; height: 280px; border-radius: 12px; }
.skeleton-title { width: 80%; height: 18px; margin: 15px 0 8px; border-radius: 4px; }
.skeleton-meta { width: 50%; height: 12px; border-radius: 4px; }

/* 🏷️ CATEGORY CHIPS */
.category-container { margin-bottom: 40px; }
.category-filters {
    display: flex;
    flex-wrap: wrap; /* Permite quebrar linha se necessário */
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 10px 5px 20px;
}
.category-filters::-webkit-scrollbar { display: none; }
.category-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.category-chip:hover, .category-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .category-chip {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* 🤝 PARTNER PROMO CARD */
.partner-section { margin: 60px 0; }
.partner-promo-card {
    background: linear-gradient(135deg, #1a1a24 0%, #0f0f13 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}
.partner-promo-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.partner-tag {
    background: #a855f7; color: #fff; padding: 4px 12px; border-radius: 6px; font-weight: 900; font-size: 0.65rem; text-transform: uppercase; margin-bottom: 15px; display: inline-block;
}

@media (max-width: 992px) {
    .partner-promo-card { padding: 40px; }
}

@media (max-width: 768px) {
    .partner-promo-card { 
        flex-direction: column; 
        text-align: center; 
        padding: 40px 20px; 
        gap: 30px;
        border-radius: 20px;
    }
    .partner-promo-info { order: 2; width: 100%; }
    .partner-promo-info h2 { font-size: clamp(1.6rem, 8vw, 2.2rem) !important; margin-bottom: 20px !important; }
    .partner-promo-info p { font-size: 0.95rem !important; margin-bottom: 25px !important; }
    .partner-promo-img { order: 1; max-width: 180px; margin: 0 auto; }
    .partner-promo-img img { width: 100% !important; }
    
    /* Botões empilhados ou lado a lado se couber */
    .partner-promo-info .btn { 
        width: 100%; 
        padding: 12px !important; 
        margin-bottom: 10px;
    }
}

/* 📱 MODAL MOBILE SEARCH FIX */
#search-input { width: 100%; border: none !important; }

/* 🎇 ANIMATION HELPERS */
.fade-in { animation: fadeIn 0.8s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }