@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Share+Tech+Mono&family=Teko:wght@500;700&display=swap');

:root {
    --bg-dark: #050811;
    --text-white: #ffffff;
    --text-gray: #8b949e;
    --primary-blue: #007bff;
    /* Variável global controlável pelo White-Label */
    --brand-color: #00d2ff;
    --brand-color-rgb: 0, 210, 255;
    --neon-blue: var(--brand-color);
    
    /* Fundo de cards com efeito Glassmorphism */
    --card-bg: rgba(6, 12, 26, 0.55);
    --border-color: rgba(0, 210, 255, 0.12);
    --font-mono: 'Share Tech Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    background: transparent;
}

/* =========================================
   ADMIN PANEL STYLES
   ========================================= */
body.admin-page {
    background: #050a12;
    padding: 0;
    margin: 0;
    height: 100vh;
    overflow: hidden; /* Avoid scroll if possible */
    display: flex;
    flex-direction: column;
    position: relative;
}

body.admin-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('fundo_app.jpg') center/cover no-repeat fixed;
    z-index: -2;
}

body.admin-page::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--brand-color, #00d2ff);
    mix-blend-mode: color;
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   NAVBAR STYLES
   ========================================= */
.navbar {
    width: 100%;
    background: rgba(10, 15, 25, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.navbar-brand, .logo {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.navbar-brand span, .logo span {
    color: var(--brand-color);
    text-shadow: 0 0 10px var(--brand-color);
}

.navbar-links, .nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-links a, .nav-links a, .nav-link-item {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.navbar-links a:hover, .nav-links a:hover, .nav-link-item:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.05);
}

.navbar-links a.active, .nav-links a.active, .nav-link-item.active {
    color: var(--text-white);
    border-color: var(--brand-color);
    box-shadow: inset 0 0 15px rgba(var(--brand-color-rgb), 0.2);
}

.btn-login {
    background: linear-gradient(135deg, #00d2ff 0%, #0095b3 100%);
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    display: inline-block;
}

.btn-login:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    color: #000;
}

/* Dark overlay merged into body.admin-page::before above (layered background) */

body.admin-page > * {
    position: relative;
    z-index: 1;
}

.admin-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
    overflow-y: auto; /* Let it scroll only if absolutely necessary */
}

.admin-container::-webkit-scrollbar {
    width: 8px;
}
.admin-container::-webkit-scrollbar-thumb {
    background: var(--brand-color);
    border-radius: 4px;
}

.admin-card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    height: fit-content;
    position: relative;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 12px; height: 12px;
    border-top: 2px solid var(--brand-color);
    border-left: 2px solid var(--brand-color);
    pointer-events: none;
}

.admin-card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 12px; height: 12px;
    border-bottom: 2px solid var(--brand-color);
    border-right: 2px solid var(--brand-color);
    pointer-events: none;
}

.admin-card h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    color: var(--brand-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 1px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 4px;
    color: white;
    font-size: 0.95rem;
    font-family: var(--font-mono);
    transition: all 0.25s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.35);
    background: rgba(0, 8, 16, 0.85);
}

.btn {
    background: transparent;
    color: var(--brand-color);
    border: 1px solid var(--brand-color);
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1.5px;
    cursor: pointer;
    width: 100%;
    transition: all 0.25s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: rgba(0, 210, 255, 0.1);
    color: white;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.btn-delete {
    background: transparent;
    color: #ff3366;
    border: 1px solid #ff3366;
    padding: 6px 14px;
    font-size: 0.8rem;
    width: auto;
    border-radius: 4px;
}

.btn-delete:hover {
    background: rgba(255, 51, 102, 0.1);
    color: white;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.4);
}

.weapon-list {
    list-style: none;
}

.weapon-item {
    background: rgba(0, 0, 0, 0.45);
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 210, 255, 0.1);
    border-left: 4px solid var(--brand-color);
    position: relative;
    transition: all 0.25s ease;
}

.weapon-item:hover {
    border-color: rgba(0, 210, 255, 0.35);
    background: rgba(0, 8, 16, 0.6);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

.weapon-item h3 {
    margin-bottom: 6px;
    font-size: 1.25rem;
    color: white;
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.weapon-item p {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-family: var(--font-mono);
}

/* =========================================
   OVERLAY STYLES
   ========================================= */
.overlay-container {
    width: 100vw; 
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    perspective: 1000px;
    padding: 10px; /* Pequeno respiro nas bordas para o neon não cortar no OBS */
    box-sizing: border-box;
}

.weapon-card {
    background: rgba(5, 12, 25, 0.85);
    border: 2px solid var(--neon-blue);
    border-radius: 0px; 
    padding: 24px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(0, 210, 255, 0.1);
    
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    position: relative;
    width: 100%;
    height: 100%; /* Preenche 100% da altura do OBS */
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    box-sizing: border-box;
}

/* Efeito de Reflexo / Scanline descendo pelo card */
.weapon-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: scanline 4s linear infinite;
    pointer-events: none;
    z-index: 10;
}

/* Background image + color blend combined into ::after */
.weapon-card::after {
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    background: url('fundo_app.jpg') center/cover no-repeat;
    background-blend-mode: color;
    filter: blur(12px);
    opacity: 0.7;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
}

.weapon-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    /* Animação Glitch na entrada, mas SEM a borda pulsante pesada de antes */
    animation: glitch-in 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Animações Keyframes para a Entrada */
@keyframes glitch-in {
    0% { opacity: 0; transform: translateY(30px) scale(0.95) skewX(5deg); filter: hue-rotate(90deg); }
    40% { opacity: 1; transform: translateY(-5px) scale(1.02) skewX(-5deg); filter: hue-rotate(0deg); }
    70% { transform: translateY(2px) scale(0.99) skewX(2deg); }
    100% { transform: translateY(0) scale(1) skewX(0); }
}

@keyframes scanline {
    0% { top: -50%; opacity: 0; }
    10% { opacity: 1; }
    30% { top: 150%; opacity: 0; }
    100% { top: 150%; opacity: 0; }
}

.weapon-header {
    border-bottom: 2px solid var(--neon-blue);
    padding-bottom: 8px;
    margin-bottom: 18px;
    position: relative;
    text-align: center;
}

.weapon-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 12px var(--neon-blue);
}

.weapon-title {
    font-family: 'Teko', sans-serif;
    font-size: 3rem; /* Título maior */
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
    color: white;
    font-style: italic; /* Agressividade e velocidade */
    letter-spacing: 2px;
}

.weapon-subtitle {
    font-size: 0.9rem; /* Subtítulo maior */
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Mais espaço entre os itens */
    flex-grow: 1; /* Preenche todo o espaço vazio restante no card */
}

.attachment-row {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Mantém alinhado ao centro mesmo se quebrar linha */
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid rgba(0, 210, 255, 0.5);
}

.att-type {
    font-size: 0.8rem;
    color: var(--neon-blue); /* Cor mudada para destacar o tipo */
    text-transform: uppercase;
    font-weight: 800;
    width: 35%; /* Reduzido levemente para dar espaço ao nome */
    flex-shrink: 0;
}

.att-name {
    font-size: 1rem; /* Fonte maior para o nome do acessório */
    color: var(--text-white);
    font-weight: 600;
    width: 65%;
    text-align: right;
    white-space: normal; /* Permite quebrar linha para textos longos! */
    word-break: break-word; /* Evita que palavras gigantes quebrem o layout */
    line-height: 1.2;
}
.weapon-ttk {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
    margin-bottom: -5px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 210, 255, 0.4);
    line-height: 1;
}

.weapon-code-box {
    margin-top: auto; /* Empurra o código para a base do card */
    background: rgba(0, 210, 255, 0.1);
    border: 1px dashed rgba(0, 210, 255, 0.4);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    animation: code-pulse 2s infinite ease-in-out;
}

@keyframes code-pulse {
    0% { box-shadow: inset 0 0 5px rgba(0, 210, 255, 0.05); border-color: rgba(0, 210, 255, 0.3); }
    50% { box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.25); border-color: var(--neon-blue); }
    100% { box-shadow: inset 0 0 5px rgba(0, 210, 255, 0.05); border-color: rgba(0, 210, 255, 0.3); }
}

.code-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
    font-weight: 600;
}

.code-value {
    font-family: monospace;
    font-size: 1.25rem; /* Fonte maior no código */
    color: var(--neon-blue);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 0 0 5px rgba(0, 210, 255, 0.3);
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px; /* Barra um pouco mais grossa */
    background: var(--neon-blue);
    width: 100%;
    border-radius: 0 0 12px 12px;
    transform-origin: left;
    animation: shrink 10s linear infinite;
}

@keyframes shrink {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* =========================================
   STORIES DOWNLOAD PAGE
   ========================================= */
.stories-page-header {
    max-width: 1100px;
    margin: 0 auto 40px;
    text-align: center;
}

.stories-page-header h1 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: var(--neon-blue);
    text-transform: uppercase;
}

.stories-page-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: 8px;
}

.stories-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.stories-card-wrapper {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    transition: border-color 0.3s;
}

.stories-card-wrapper:hover {
    border-color: var(--neon-blue);
}

.stories-preview {
    padding: 20px;
    background: linear-gradient(180deg, #050a14 0%, #000 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stories-card-mini {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
}

.stories-card-mini .attachment-row {
    padding: 5px 8px;
}

.stories-card-mini .att-type {
    font-size: 0.65rem;
}

.stories-card-mini .att-name {
    font-size: 0.75rem;
}

.stories-card-mini .weapon-code-box {
    margin-top: 12px;
    padding: 8px;
}

.stories-card-mini .code-value {
    font-size: 0.9rem;
}

.btn-download {
    display: block;
    width: 100%;
    border-radius: 0 0 12px 12px;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    color: white;
    background: linear-gradient(135deg, #007bff, #00d2ff);
    transition: opacity 0.3s;
}

.btn-download:hover {
    opacity: 0.85;
}

.btn-download:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* =========================================
   BARRINHA DE SETUP (OVERLAY) - OPÇÃO B
   ========================================= */
.barrinha-wrapper {
    /* Background mais limpo, imitando o azul profundo e fosco do banner, sem riscos agressivos */
    background: rgba(5, 12, 25, 0.85);
    
    /* Borda fina e seca, exatamente igual à moldura da sua webcam, sem glow exagerado */
    border: 2px solid var(--neon-blue);
    border-radius: 0px; /* Cantos 100% quadrados para encaixar com a câmera */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(0, 210, 255, 0.1);
    
    /* O tamanho agora é DITADO pela fonte do OBS (100vw = tamanho exato que vc puxar no OBS) */
    width: 100vw; 
    padding: 0 15px; 
    
    height: 60px; /* Altura fixa */
    margin: 0;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    
    /* Animação na caixa inteira */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.barrinha-wrapper.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: glitch-in 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Scanline muito mais sutil, apenas um reflexo de luz passando */
.barrinha-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: scanline-horizontal 5s linear infinite;
    pointer-events: none;
    z-index: 10;
}

/* Background image + color blend combined into ::after */
.barrinha-wrapper::after {
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    background: url('fundo_app.jpg') center/cover no-repeat;
    background-blend-mode: color;
    filter: blur(12px);
    opacity: 0.7;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
}

#barrinhaMarquee {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes scanline-horizontal {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    50% { left: 200%; opacity: 0; }
    100% { left: 200%; opacity: 0; }
}

.barrinha-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.barrinha-label {
    font-family: 'Teko', sans-serif;
    font-size: 2rem; /* Bem maior */
    color: var(--neon-blue);
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.9); /* Sombra dura estilo título */
    margin-top: 4px; 
}

.barrinha-value {
    font-family: 'Teko', sans-serif;
    font-size: 2.2rem; /* Bem maior */
    color: var(--text-white);
    font-weight: 600;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 210, 255, 0.4);
    margin-top: 4px;
}

.barrinha-divider {
    width: 3px;
    height: 40px;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    opacity: 0.7;
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }
    
    .nav-links, .navbar-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
        padding: 10px;
        max-height: none;
    }
    
    .admin-card {
        max-height: none !important;
    }
}

/* =========================================
   CUSTOM UPLOAD ZONE STYLES
   ========================================= */
.upload-zone {
    border: 2px dashed rgba(0, 210, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 4px;
    padding: 24px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-zone:hover {
    border-color: var(--brand-color);
    background: rgba(0, 210, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

.upload-zone input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-zone-text {
    font-family: var(--font-mono);
    color: var(--text-gray);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

.upload-zone-text span {
    color: var(--brand-color);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

.btn-support {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-support:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}
.livepix-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.livepix-content {
    background: rgba(10, 15, 25, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 40px rgba(16, 185, 129, 0.05);
    position: relative;
}
.livepix-content h2 {
    color: #fff;
    font-family: 'Teko', sans-serif;
    font-size: 32px;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.livepix-content h2 span {
    color: #10b981;
}
.livepix-content p {
    color: #8b949e;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.close-livepix {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #8b949e;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}
.close-livepix:hover {
    color: #fff;
}

/* ===== RESPONSIVE ADMIN PAGES ===== */
@media (max-width: 768px) {
    body.admin-page {
        height: auto !important;
        overflow: visible !important;
        overflow-x: hidden !important;
    }
    .admin-container {
        grid-template-columns: 1fr !important;
        padding: 12px;
        gap: 20px;
        height: auto;
        overflow-y: visible;
    }
    .admin-card {
        padding: 16px;
        max-height: none !important;
    }
    .admin-card h2 {
        font-size: 1.6rem;
    }
    .navbar {
        flex-wrap: wrap;
        padding: 10px 12px;
    }
    .navbar .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    .navbar .nav-links {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        justify-content: flex-start;
        -ms-overflow-style: none;
        scrollbar-width: none;
        gap: 10px;
    }
    .navbar .nav-links::-webkit-scrollbar {
        display: none;
    }
    .navbar .nav-links a {
        display: inline-block;
        font-size: 11px;
        padding: 6px 10px;
    }
    
    /* specific for preview scaling on mobile */
    .preview-frame {
        transform: scale(0.85);
        margin: 0;
    }
}
