@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   SISTEMA DE DESIGN & VARIÁVEIS
   ========================================================================== */
:root {
    /* Cores HSL Harmoniosas */
    --bg-darker: hsl(240, 10%, 4%);
    --bg-dark: hsl(240, 10%, 7%);
    --bg-card: hsla(240, 10%, 12%, 0.6);
    --bg-card-hover: hsla(240, 10%, 16%, 0.8);
    
    --primary: hsl(37, 75%, 55%);      /* Dourado / Champanhe */
    --primary-hover: hsl(37, 85%, 60%);
    --primary-glow: hsla(37, 75%, 55%, 0.15);
    
    --text-pure: hsl(0, 0%, 100%);
    --text-primary: hsl(240, 5%, 95%);
    --text-secondary: hsl(240, 5%, 75%);
    --text-muted: hsl(240, 5%, 55%);
    
    --border-color: hsla(240, 5%, 20%, 0.5);
    --border-color-active: hsla(37, 75%, 55%, 0.4);
    
    /* Fontes */
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Outros */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --blur-glass: 16px;
}

/* ==========================================================================
   RESET & CONFIGURAÇÕES GERAIS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Barra de Rolagem Premium */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: hsl(240, 5%, 20%);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   ESTILOS DE CABEÇALHO (NAVBAR)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-scrolled {
    background: var(--bg-darker);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-pure) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
    font-weight: 300;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-pure);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--bg-darker);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Menu Mobile Hamburguer */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* ==========================================================================
   SEÇÕES GERAIS
   ========================================================================== */
.section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--text-pure);
    letter-spacing: -1px;
}

/* ==========================================================================
   SEÇÃO HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px 24px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.8) 0%, rgba(10, 10, 12, 0.95) 100%),
                url('../assets/hero_bg.png') no-repeat center center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 70%, var(--bg-darker) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
}

.hero-tag {
    background: hsla(37, 75%, 55%, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-pure);
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease;
}

.hero-title span {
    background: linear-gradient(90deg, var(--primary) 0%, hsl(45, 90%, 65%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px auto;
    animation: fadeInUp 1.2s ease;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 1.4s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-darker);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 10px 30px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-pure);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

/* ==========================================================================
   SEÇÃO PORTFÓLIO
   ========================================================================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.portfolio-item:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-active);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 24px;
    background: linear-gradient(0deg, rgba(10, 10, 12, 0.9) 0%, rgba(10, 10, 12, 0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-category {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.portfolio-title {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-pure);
}

/* ==========================================================================
   SEÇÃO ÁREA DO CLIENTE (DOWNLOAD DRIVE)
   ========================================================================== */
.client-section {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.client-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    text-align: center;
    transition: var(--transition-smooth);
}

.client-card:hover {
    border-color: var(--border-color-active);
}

.client-card-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--text-pure);
    margin-bottom: 12px;
}

.client-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.client-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.client-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-pure);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.client-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.client-input::placeholder {
    color: var(--text-muted);
}

/* Galeria do Cliente (Resultados da API) */
.client-gallery-container {
    margin-top: 60px;
    display: none; /* Ativado via JS */
    animation: fadeIn 0.8s ease;
}

.gallery-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.gallery-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--text-pure);
}

.gallery-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.photo-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.photo-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-active);
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover .photo-img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(0deg, rgba(10, 10, 12, 0.9) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-name {
    color: var(--text-primary);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.photo-download-btn {
    background: var(--primary);
    color: var(--bg-darker);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.photo-download-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-hover);
}

.photo-download-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Spinner e Estados de Erro */
.loading-spinner {
    display: none;
    margin: 40px auto;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-message {
    display: none;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.2);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* Skeletons de Carregamento (Shimmer Effect) */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.03) 25%, 
        rgba(255, 255, 255, 0.08) 37%, 
        rgba(255, 255, 255, 0.03) 63%
    );
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

/* ==========================================================================
   SOBRE & CONTATO
   ========================================================================== */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--text-pure);
}

.about-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.instagram-btn {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
    box-shadow: 0 5px 15px rgba(214, 36, 159, 0.2);
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(214, 36, 159, 0.4);
}

.whatsapp-btn {
    background-color: #25d366;
    color: #fff;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   FOOTER (RODAPÉ)
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    text-align: center;
    background: var(--bg-darker);
}

.footer-logo {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-pure);
    margin-bottom: 8px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   LIGHTBOX (VISUALIZAÇÃO DE FOTOS)
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 6, 0.95);
    z-index: 1000;
    display: none; /* Ativado via JS */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
}

.lightbox-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    color: var(--text-primary);
}

.lightbox-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.lightbox-actions {
    display: flex;
    gap: 12px;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--text-pure);
    transform: scale(1.1);
}

/* ==========================================================================
   ANIMAÇÕES & TRANSISÕES
   ========================================================================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDADE)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        visibility: hidden; /* Evita cliques fantasmas em links invisíveis no iOS */
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
        visibility: visible;
    }
    
    .hero {
        min-height: 100dvh; /* Otimizado para Safari/Chrome Mobile */
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }
    
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-actions .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .client-card {
        padding: 24px;
    }
    
    .about-container {
        padding: 35px 24px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Otimizações do Lightbox para Dispositivos Móveis */
    .lightbox-content-wrapper {
        max-width: 95%;
        max-height: 90%;
    }

    .lightbox-img {
        max-height: 60dvh; /* Garante que caiba com margem em qualquer celular */
    }

    .lightbox-info {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: 12px;
        text-align: center;
    }

    .lightbox-name {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .lightbox-actions {
        width: 100%;
    }

    .lightbox-actions .btn {
        width: 100%;
        padding: 12px;
    }

    .lightbox-close {
        position: fixed;
        top: 15px;
        right: 15px;
        width: 44px; /* Área de toque confortável no Safari Mobile */
        height: 44px;
        background: rgba(10, 10, 12, 0.75);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid var(--border-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        z-index: 2100;
        color: var(--text-primary);
    }
}

/* Responsividade extra para celulares pequenos */
@media (max-width: 576px) {
    .section {
        padding: 60px 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .admin-panel-card {
        padding: 16px;
        margin: 10px auto;
    }

    /* Otimizações de Tabelas Admin em Celulares */
    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th, 
    .admin-table td {
        padding: 8px 10px;
    }

    /* Oculta colunas longas e complexas em celulares */
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        display: none; /* Oculta ID do Google Drive */
    }

    /* Na tabela de logs, oculta a coluna de IP em celulares */
    #admin-logs-list tr td:nth-child(4),
    .admin-section-box:nth-child(3) .admin-table th:nth-child(4) {
        display: none; /* Oculta IP nos logs */
    }

    .admin-form-row {
        gap: 8px;
    }
}

/* ==========================================================================
   MODAL DE IDENTIFICAÇÃO DO CLIENTE & ADMIN (LOGIN)
   ========================================================================== */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 6, 0.88);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    z-index: 2000;
    display: none; /* Ativado via JS */
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.4s ease;
    overflow-y: auto; /* Permite rolar verticalmente em celulares pequenos */
    -webkit-overflow-scrolling: touch; /* Rolagem suave inercial no iOS Safari */
}

.login-card {
    max-width: 450px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-title {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-pure);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.login-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Novo visual premium do campo de entrada (cantos arredondados e cores do site) */
.login-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px; /* Cantos arredondados conforme solicitado */
    color: var(--text-pure);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.login-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px var(--primary-glow);
}

.login-input::placeholder {
    color: var(--text-muted);
}

.login-cancel-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.login-cancel-btn:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* ==========================================================================
   ESTILOS DO PAINEL ADMINISTRATIVO (ADMIN PANEL)
   ========================================================================== */
.admin-panel-card {
    max-width: 850px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-premium);
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.admin-panel-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--text-pure);
    font-weight: 600;
}

.admin-section-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.admin-section-box h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-form-row {
    display: flex;
    gap: 16px;
}

.admin-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.admin-input-wrapper label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Tabela de Álbuns */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--text-pure);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* Botões do Painel */
.admin-btn-action {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.admin-btn-copy {
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--primary);
}

.admin-btn-copy:hover {
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-1px);
}

.admin-btn-delete {
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.admin-btn-delete:hover {
    background: rgba(255, 107, 107, 0.05);
    border-color: #ff6b6b;
    transform: translateY(-1px);
}

/* Responsividade do Painel */
@media (max-width: 768px) {
    .admin-panel-card {
        padding: 20px;
    }
    
    .admin-form-row {
        flex-direction: column;
        gap: 12px;
    }
}


