/* Adiciona isto no topo do teu ficheiro CSS, se ainda não tiveres */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;900&display=swap');

/* ============================================================
   PIOCLICKS NEXUS ENGINE - V4.6 (ULTIMATE ALL-IN-ONE RESPONSIVE)
   ============================================================ */

/* --- 1. CORE VARIABLES --- */
:root {
    --bg: #050505;
    --card-bg: #0d0d0d;
    --panel-bg: rgba(10, 10, 12, 0.95);
    --gold: #d4af37;
    --neon-green: #00ff80;
    --border: #1a1a1a;
    --scan-line: rgba(0, 255, 128, 0.03);
    --header-height: 70px;
    --sidebar-width: 260px;
    --font-main: 'Rajdhani', sans-serif;
    --font-cyber: 'Orbitron', sans-serif;
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: #fff;
    font-family: var(--font-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    /* min-height: 100vh;  <--- APAGA ISTO */
}

.main-content {
    padding-bottom: 20px;
    /* flex: 1;  <--- APAGA ISTO */
}

/* Proteção global anti-transbordo */
img, table, input, select, textarea, iframe, canvas {
    max-width: 100%;
}

a { 
    text-decoration: none !important;
    color: inherit; 
}

/* --- 3. ANIMATIONS --- */
@keyframes pulse-green {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse-blue {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); box-shadow: 0 0 12px #00d4ff; }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shine { to { background-position: 200% center; } }
@keyframes blinker { 50% { opacity: 0; } }
@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes sweep { 100% { transform: rotate(360deg); } }
@keyframes loading { 100% { left: 100%; } }

/* --- 4. HEADER & NAVIGATION --- */
.nexus-header {
    position: fixed;
    top: 0; left: 0; width: 100%; height: var(--header-height);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 2000;
}

.brand-nexus {
    font-family: var(--font-cyber);
    font-weight: 900;
    background: linear-gradient(to right, #fff 20%, var(--gold) 40%, var(--gold) 60%, #fff 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
}

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-link {
    color: #888;
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }

.server-status {
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-dot {
    width: 6px; height: 6px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse-green 1.5s infinite;
}

/* --- 5. LAYOUT: DASHBOARD & SIDEBAR --- */
.dashboard-wrapper {
    display: flex;
    flex: 1;
    width: 100%;
}

.sidebar {
    width: var(--sidebar-width);
    background: #080808;
    border-right: 1px solid var(--border);
    position: fixed;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    padding: 30px 15px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.content-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    margin-top: var(--header-height);
    min-width: 0;
    transition: all 0.3s ease;
}

.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; color: #555;
    font-family: var(--font-cyber); font-size: 0.7rem;
    border-left: 3px solid transparent; transition: 0.3s;
}
.nav-item:hover, .nav-item.active {
    background: rgba(212, 175, 55, 0.05);
    color: var(--gold); border-left-color: var(--gold);
}

.avatar-wrapper {
    width: 80px; height: 80px; border: 2px solid var(--gold);
    padding: 5px; background: #000; margin: 0 auto 15px;
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }

.avatar-frame {
    position: relative; padding: 10px;
    background: repeating-conic-gradient(from 0deg, #111 0deg 90deg, #0a0a0a 90deg 180deg);
    border: 1px solid #222;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

/* --- 6. GRIDS & CARDS --- */
.hero-section { text-align: center; padding: calc(var(--header-height) + 60px) 20px 80px; }
.main-title { font-family: var(--font-cyber); font-size: clamp(2.5rem, 8vw, 6rem); margin: 0; line-height: 1; }

.stats-grid, .pkg-grid, .hiw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.stat-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stat-box h2 { font-family: var(--font-cyber); font-size: 2.5rem; color: var(--gold); margin: 0; position: relative; z-index: 1; }
.stat-box p { color: #555; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; position: relative; z-index: 1; }

.hiw-card {
    background: linear-gradient(135deg, #0d0d0d 0%, #050505 100%);
    border-left: 3px solid var(--gold);
    padding: 30px; position: relative; transition: 0.4s;
}
.hiw-card:hover { border-left-color: var(--neon-green); transform: translateY(-5px); }

/* --- 7. PACKAGES (WALLET) --- */
.pkg-card {
    background: #0a0a0a;
    border: 1px solid #151515;
    padding: 25px; text-align: center;
    cursor: pointer; transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.pkg-card:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.02); transform: translateY(-3px); }
.pkg-card.selected { border-color: var(--neon-green); background: rgba(0, 255, 128, 0.03); box-shadow: 0 0 15px rgba(0, 255, 128, 0.05); }

.pkg-badge {
    position: absolute; top: 0; right: 0;
    background: #ff4757; color: #fff; font-size: 0.6rem; font-weight: 900;
    padding: 6px 15px 6px 25px;
    font-family: var(--font-cyber), monospace; letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    clip-path: polygon(15px 0%, 100% 0%, 100% 100%, 0% 100%); z-index: 2;
}

.pkg-points { font-size: 1.8rem; font-family: var(--font-cyber); color: #fff; margin: 10px 0; font-weight: 900; }
.pkg-price { font-size: 1.1rem; color: var(--gold); font-weight: bold; }
.pkg-card.selected .pkg-points { color: var(--neon-green); }

/* --- 8. TELEGRAM ULTRA BOX --- */
.telegram-ultra-box {
    border: 1px solid #0088cc !important;
    background: radial-gradient(circle at center, rgba(0, 136, 204, 0.08) 0%, rgba(0, 0, 0, 0.9) 100%) !important;
    box-shadow: inset 0 0 15px rgba(0, 136, 204, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.laser-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(to right, transparent, #00d4ff, #0088cc, #00d4ff, transparent);
    box-shadow: 0 0 8px #00d4ff;
}
.cyber-scanlines {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 136, 204, 0.06) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 6px 100%; opacity: 0.8; z-index: 1; pointer-events: none;
}
.telegram-tag { color: #00d4ff !important; font-weight: 900 !important; letter-spacing: 2px !important; font-size: 0.6rem !important; text-shadow: 0 0 5px rgba(0, 212, 255, 0.4); z-index: 2; }
.telegram-title { font-size: 1.15rem !important; color: #fff !important; margin: 6px 0 !important; letter-spacing: 1px; font-weight: 900; z-index: 2; transition: all 0.3s ease; }
.telegram-status { color: #005580 !important; font-size: 0.55rem !important; text-transform: uppercase; display: flex; align-items: center; gap: 6px; font-family: monospace; z-index: 2; transition: all 0.3s ease; }
.status-dot-blue { width: 6px; height: 6px; background-color: #00d4ff; border-radius: 50%; box-shadow: 0 0 8px #00d4ff; animation: pulse-blue 1.2s infinite; }

.telegram-ultra-box:hover {
    transform: translateY(-3px) !important; border-color: #00d4ff !important;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.15) 0%, rgba(5, 5, 5, 0.95) 100%) !important;
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.2), 0 0 15px rgba(0, 136, 204, 0.3) !important;
}
.telegram-ultra-box:hover .telegram-title, .telegram-ultra-box:hover .telegram-status { color: #00d4ff !important; text-shadow: 0 0 10px rgba(0, 212, 255, 0.6); }

/* --- CSS CORRIGIDO PARA AUTH --- */
.auth-container { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 80px 15px; /* Mais padding para o header não tapar */
    min-height: 100vh;
}

.cyber-card {
    background: var(--panel-bg); 
    border: 1px solid var(--border); 
    padding: 40px;
    width: 100%; 
    max-width: 400px; /* Isto impede que fique gigante */
    position: relative; 
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .auth-container {
        padding: 20px 10px; /* Mais compacto no mobile */
        align-items: flex-start; /* Alinha ao topo para não centrar mal */
        padding-top: 100px;
    }
    
    .cyber-card {
        padding: 20px !important;
        width: 100% !important;
        max-width: 350px !important; /* Limita o tamanho máximo */
        margin: 0 auto;
    }
    
    /* Reduzir o título que deve estar gigante */
    .cyber-card h2 {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }
}
.cyber-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    filter: drop-shadow(0 0 5px var(--neon-green));
}
.cyber-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 10px; height: 10px;
    border-top: 2px solid var(--neon-green); border-left: 2px solid var(--neon-green);
}

.nexus-label { display: block; font-family: var(--font-cyber); font-size: 0.7rem; color: var(--gold); margin-bottom: 8px; letter-spacing: 1px; }

.nexus-input {
    width: 100%; background: rgba(0, 0, 0, 0.6) !important; border: 1px solid #222 !important;
    padding: 12px 15px; color: #fff !important; font-family: var(--font-main);
    margin-bottom: 20px; outline: none; transition: all 0.3s ease;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5);
}
.nexus-input:focus { border-color: var(--neon-green) !important; box-shadow: 0 0 10px rgba(0, 255, 128, 0.1), inset 2px 2px 5px rgba(0, 0, 0, 0.8) !important; }

/* --- 10. BUTTONS --- */
.btn-join-nexus {
    background: var(--neon-green); color: #000; font-family: var(--font-cyber); font-weight: 900; font-size: 0.7rem;
    padding: 10px 20px; text-transform: uppercase;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: 0.3s; cursor: pointer; border: none; display: inline-block;
}
.btn-join-nexus:hover { transform: translateY(-2px); box-shadow: 0 0 15px var(--neon-green); }

.btn-solid-white {
    background: #fff; color: #000; border: none; padding: 15px 40px; font-family: var(--font-cyber);
    font-weight: 900; cursor: pointer; clip-path: polygon(0 0, 100% 0, 100% 70%, 85% 100%, 0 100%);
}

.btn-sync {
    background: transparent; border: 1px solid var(--neon-green); color: var(--neon-green);
    position: relative; overflow: hidden; z-index: 1; cursor: pointer; transition: 0.3s;
}
.btn-sync:hover { color: #000; background: var(--neon-green); box-shadow: 0 0 20px var(--neon-green); }

/* --- 11. VIDEO PLAYER ENGINE --- */
.video-main-frame {
    width: 100%; max-width: 1100px; margin: 0 auto; background: #000;
    border: 1px solid #1a1a1a; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}
.video-ratio { position: relative; padding-bottom: 56.25%; height: 0; width: 100%; }
#yt-player { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
#focus-overlay {
    display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); z-index: 100; flex-direction: column;
    align-items: center; justify-content: center; color: var(--gold); font-family: var(--font-cyber);
}
.radar-container {
    position: relative; width: 200px; height: 200px; margin: 0 auto 30px;
    border: 2px solid #111; border-radius: 50%;
    background: repeating-radial-gradient(circle, #050505 0%, #050505 10%, #0a0a0a 10%, #0a0a0a 20%); overflow: hidden;
}
.radar-sweep {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 80%, var(--neon-green));
    animation: sweep 4s linear infinite; opacity: 0.3;
}

/* --- 12. MAINTENANCE MODE --- */
.maintenance-wrapper {
    position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center;
    justify-content: center; height: 100vh; text-align: center; color: white;
    background: radial-gradient(circle, rgba(0, 255, 128, 0.05) 0%, transparent 70%);
}
.glitch-wrapper h1 { font-family: var(--font-cyber); font-size: 3.5rem; letter-spacing: 10px; margin: 0; color: var(--neon-green); text-shadow: 0 0 20px rgba(0, 255, 128, 0.5); animation: pulse-glow 2s infinite; }
.status-line { font-family: monospace; font-size: 1rem; color: #555; text-transform: uppercase; margin-top: 10px; letter-spacing: 2px; }
.box { border: 1px solid #111; background: rgba(0, 0, 0, 0.8); padding: 40px; margin-top: 30px; border-radius: 2px; box-shadow: 0 0 50px rgba(0, 0, 0, 1); position: relative; }
.box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--neon-green), transparent); }
.box p { font-size: 1.2rem; color: #aaa; max-width: 500px; line-height: 1.6; }
.loader { width: 200px; height: 2px; background: #111; margin: 20px auto; position: relative; overflow: hidden; }
.loader::after { content: ''; position: absolute; left: -100%; width: 100%; height: 100%; background: var(--neon-green); animation: loading 2s infinite; }

/* --- 13. ADMIN TABLES & COMPONENTS --- */
.admin-table-wrapper {
    width: 100%; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    margin-top: 20px; 
    margin-bottom: 25px; 
    border: 1px solid #111; 
    background: rgba(5,5,5,0.6);
}

.admin-table { 
    width: 100%; 
    min-width: 800px; /* Garante scroll seguro impedindo esmagamento horizontal */
    border-collapse: collapse; 
    font-family: monospace; 
    font-size: 0.85rem; 
    table-layout: fixed; 
}

.admin-table th {
    background: #111; 
    color: var(--gold); 
    border: 1px solid #222; 
    padding: 12px; 
    text-align: left; 
    font-weight: bold;
}

.admin-table td {
    border: 1px solid #111; 
    padding: 10px; 
    color: #eee; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
}

.admin-table tr { transition: background 0.2s ease; }
.admin-table tr:hover td { background: #0c0c0c; }

.stats-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #222; }
.stats-label { color: #555; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; }
.stats-value { color: var(--gold); font-family: var(--font-cyber); font-size: 0.7rem; }

/* Badges */
.badge { padding: 3px 8px; font-size: 0.7rem; font-weight: bold; border-radius: 3px; display: inline-block; }
.badge-active { background: rgba(0, 255, 128, 0.1); color: var(--neon-green); border: 1px solid var(--neon-green); }
.badge-danger { background: rgba(255, 71, 87, 0.1); color: #ff4757; border: 1px solid #ff4757; }
.badge-warning { background: rgba(255, 165, 2, 0.1); color: #ffa502; border: 1px solid #ffa502; }

/* Timeline element */
.timeline-item { border-left: 2px solid var(--gold); padding-left: 20px; margin-bottom: 15px; position: relative; }
.timeline-item::before { 
    content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; 
    background: #00d4ff; border-radius: 50%; box-shadow: 0 0 5px #00d4ff;
}

/* Utilities */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- 14. FOOTER --- */
.nexus-footer {
    background: #000; border-top: 1px solid var(--border); padding: 20px 5%;
    margin-top: auto; width: 100%; transition: all 0.3s ease;
}
.dashboard-wrapper ~ .nexus-footer { padding-left: calc(var(--sidebar-width) + 5%); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.footer-copyright { font-size: 0.65rem; color: #444; font-family: var(--font-cyber); }


/* ============================================================
   15. NEXUS CORE RESPONSIVE MEDIA QUERIES (O MOTOR RESPONSIVO)
   ============================================================ */

/* TABLETS & ECRÃS INTERMÉDIOS */
@media (max-width: 992px) {
    .sidebar { width: 80px; padding: 20px 5px; }
    .sidebar span, .sidebar p, .sidebar small, .sidebar-nav div { display: none !important; }
    .sidebar .avatar-wrapper { width: 45px; height: 45px; margin-bottom: 5px; }
    .nav-item { justify-content: center; padding: 15px 0; border-left: none; border-bottom: 3px solid transparent; }
    .nav-item i { font-size: 1.1rem; }
    .nav-item:hover, .nav-item.active { border-left-color: transparent; border-bottom-color: var(--gold); }
    
    .content-area { margin-left: 80px; padding: 25px; }
    .dashboard-wrapper ~ .nexus-footer { padding-left: calc(80px + 5%); }
    .footer-grid { flex-direction: column; gap: 15px; text-align: center; }
}

/* MOBILE (TELEMÓVEIS) */
@media (max-width: 768px) {
    /* Header Encolhido */
    .nexus-header { padding: 0 15px; flex-direction: row; }
    .nav-menu { gap: 10px; }
    .nav-link { font-size: 0.65rem; }
    .server-status { display: none; }
    .main-title { font-size: 2rem !important; }

    /* MÓDULO AUTH RESPONSIVO (Login, Register, Recover) */
    .auth-container {
        padding: calc(var(--header-height) + 20px) 15px 40px;
    }
    .cyber-card {
        padding: 25px 20px !important;
        width: 100% !important;
        max-width: 100% !important; /* Faz a box ocupar a largura total no telemóvel */
    }

    /* Forçar Grids para Coluna Única */
    .stats-grid, .pkg-grid, .hiw-grid,
    .content-area > div[style*="display: grid;"],
    .content-area > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Transformar Sidebar em Menu Superior Horizontal */
    .dashboard-wrapper { flex-direction: column; }
    .sidebar {
        position: relative !important; 
        top: var(--header-height) !important;
        width: 100% !important; 
        height: auto !important; 
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important; 
        padding: 10px !important;
        display: flex !important; 
        flex-direction: row !important;
        align-items: center !important; 
        justify-content: center !important;
    }
    .sidebar > div:first-child { display: none !important; }
    .sidebar-nav { 
        display: flex !important; 
        flex-direction: row !important; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 5px; 
        width: 100%; 
    }
    .nav-item { padding: 8px 12px !important; border-bottom: none !important; border-radius: 4px; }
    .nav-item.active { background: rgba(212,175,55,0.1) !important; }

/* Ajuste de Espaços do Conteúdo Principal e Seções Admin */
    .content-area { 
        margin-left: 0 !important; 
        margin-top: 0 !important; 
        padding: 90px 15px 20px 15px !important; /* Subiu para 90px */
        width: 100% !important;
    }

    /* Redução inteligente dos títulos no mobile */
    .content-area h2, .content-area h4 {
        /* O texto vai variar entre 1.1rem e 1.5rem dependendo da largura do ecrã */
        font-size: clamp(1.1rem, 5vw, 1.5rem) !important;
        line-height: 1.2 !important;
    }
    .dashboard-wrapper ~ .nexus-footer { padding-left: 5% !important; }

    @media (max-width: 768px) {
    h2 { font-size: 1.4rem !important; }
    /* Garante que o metadata tag abaixo do título não fique demasiado grande */
    .meta-tag { font-size: 0.6rem !important; }
    }

    /* Ajuste fino das caixas internas */
    .stat-box { padding: 20px !important; }
    
    /* Manutenção Mobile */
    .glitch-wrapper h1 { font-size: 2rem; }
    .box { padding: 20px; }
}

/* --- 14. BANNER PREVIEW STYLES --- */
.copy-btn {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 8px 15px;
    font-family: var(--font-cyber);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.copy-btn:hover {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    transform: translateY(-2px);
}

.banner-preview-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #222;
    padding: 15px;
    margin-bottom: 25px;
    position: relative;
}

.html-code-box {
    background: #050505;
    color: #00ffaa;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    border: 1px solid #111;
    overflow-x: auto;
    margin-top: 10px;
    word-break: break-all;
}

/* Ajuste Responsivo para Mobile */
@media (max-width: 768px) {
    .banner-preview-box {
        padding: 10px;
    }

    .html-code-box {
        font-size: 0.7rem;
    }

    .copy-btn {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    /* Forçar os blocos de cabeçalho a empilhar em vez de ficarem lado a lado */
    .content-area > div[style*="display: flex"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; /* Alinha tudo à esquerda */
        gap: 15px !important;
        margin-bottom: 30px !important;
    }

    /* Ajustar o texto do ID/Pontos para alinhar à esquerda no mobile */
    .content-area > div[style*="display: flex"] > div:last-child {
        text-align: left !important;
        width: 100% !important;
    }
}

/* Ajuste fino para os botões no login mobile */
@media (max-width: 768px) {
    .cyber-card {
        padding: 30px 20px !important;
        margin: 0 15px; /* Margem lateral para não colar nas bordas do telemóvel */
    }
    
    .btn-solid-white {
        padding: 12px 20px !important; /* Ajuste de altura para ser fácil de clicar */
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .cyber-card {
        padding: 15px !important;
    }
    .video-main-frame {
        max-width: 100% !important;
    }
}