/* =============================================
   GYM VEST ADMIN - Neon Granulated System
   Glassmorphism + Bento Grid + Real-time
   ============================================= */

:root {
    /* Colors - Neon Palette */
    --black-deep: #030304;
    --black-surface: #08090a;
    --black-surface-alt: #0c0d0e;
    --white: #ffffff;
    --white-mute: #8a8a8a;
    --white-dim: #555555;
    --aqua: #00ff88;
    --aqua-dim: #00cc6d;
    --aqua-glow: rgba(0, 255, 136, 0.15);
    --aqua-border: rgba(0, 255, 136, 0.25);
    --wine: #8b1538;
    --navy: #0a1628;
    --gold: #ffd700;
    
    /* Status Colors */
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff4444;
    --info: #4488ff;
    
    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* RESET */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    background: var(--black-deep);
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: transparent;
    color: var(--white);
    line-height: 1.5;
    cursor: default;
}

/* BACKGROUND EFFECTS */
.admin-bg {
    position: fixed;
    inset: 0;
    background: var(--black-deep);
    z-index: -10;
}

.admin-gradient {
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 255, 136, 0.06) 0%,
        rgba(0, 255, 136, 0.02) 40%,
        transparent 70%
    );
    z-index: -9;
    pointer-events: none;
}

.admin-grain {
    position: fixed;
    inset: 0;
    z-index: -8;
    opacity: 0.04;
    pointer-events: none;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════
   AUTH MODAL
   ═══════════════════════════════════ */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
}

.auth-logo {
    margin-bottom: 2rem;
}

.auth-logo-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    display: block;
}

.auth-logo-text .accent { color: var(--aqua); }

.auth-logo-sub {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--white-mute);
}

.auth-form { text-align: left; }

.auth-field {
    margin-bottom: 1rem;
}

.auth-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--white-mute);
    margin-bottom: 0.5rem;
}

.auth-field input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.auth-pass-wrap {
    position: relative;
}

.auth-pass-wrap input {
    padding-right: 3rem;
}

.auth-eye {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.auth-eye:hover { opacity: 1; }

.auth-error {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--danger);
    min-height: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-error.show { opacity: 1; }

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: var(--aqua);
    border: none;
    border-radius: 0.75rem;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--black-deep);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    background: var(--white);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.auth-spin {
    display: none;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.auth-btn.loading .auth-spin { display: inline-block; }
.auth-btn.loading span:first-child { opacity: 0.5; }

.auth-back {
    display: block;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--white-mute);
    text-align: center;
    transition: color 0.3s ease;
}

.auth-back:hover { color: var(--aqua); }

/* LOADING */
.admin-loading {
    position: fixed;
    inset: 0;
    background: var(--black-deep);
    z-index: 9998;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.admin-loading.show { display: flex; }

.loading-spin {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--aqua);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.admin-loading span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--white-mute);
}

/* ADMIN LAYOUT */
.admin-hidden {
    display: none;
}

.admin-hidden.show { display: flex; }

.admin-sidebar {
    width: 260px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.sidebar-logo .accent { color: var(--aqua); }

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--white-mute);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
}

.nav-item.active {
    background: rgba(0, 255, 136, 0.05);
    color: var(--aqua);
    border-left-color: var(--aqua);
}

.nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.nav-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    background: var(--danger);
    color: var(--white);
    border-radius: 9999px;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--white-mute);
    transition: color 0.3s ease;
}

.footer-link:hover { color: var(--aqua); }

.logout-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--danger);
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--danger);
    color: var(--white);
}

/* MAIN CONTENT */
.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    padding: var(--space-lg);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--success);
}

.pill-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: var(--space-lg);
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.4s ease;
}

.stat-card:hover {
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.stat-card.highlight {
    background: var(--aqua-glow);
    border-color: var(--aqua-border);
}

.stat-header {
    margin-bottom: 1rem;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--white-mute);
}

.stat-trend {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    margin-top: 0.5rem;
}

.stat-trend.up { color: var(--success); }
.stat-trend.warning { color: var(--warning); }
.stat-trend.down { color: var(--danger); }

/* SECTION CARDS */
.section-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* DATA TABLE */
.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--white-mute);
    text-align: left;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.875rem;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* STATUS BADGES */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

.status-badge.pending {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: var(--warning);
}

.status-badge.confirmed, .status-badge.preparando {
    background: rgba(68, 136, 255, 0.1);
    border: 1px solid rgba(68, 136, 255, 0.3);
    color: var(--info);
}

.status-badge.entregue {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--success);
}

.status-badge.cancelado {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--danger);
}

/* QUICK ACTIONS */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.quick-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

.quick-card:hover {
    background: var(--aqua-glow);
    border-color: var(--aqua-border);
    transform: translateY(-4px);
}

.quick-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.quick-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* BUTTONS */
.btn-primary {
    background: var(--aqua);
    color: var(--black-deep);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background: var(--white);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.btn-primary-sm {
    background: var(--aqua);
    color: var(--black-deep);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-primary-sm:hover {
    background: var(--white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary-sm {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.btn-secondary-sm:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* FILTERS */
.page-header { margin-bottom: 1.5rem; }

.filters-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    max-width: 400px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--white);
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--aqua);
}

.filter-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--white);
    font-size: 0.875rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8a8a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* PRODUCTS PAGE */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.collection-tabs {
    display: flex;
    gap: 0.5rem;
}

.collection-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--white-mute);
    transition: all 0.3s ease;
}

.collection-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.collection-tab.active {
    background: var(--aqua-glow);
    border-color: var(--aqua-border);
    color: var(--aqua);
}

.products-actions {
    display: flex;
    gap: 0.75rem;
}

.collection-editor {
    margin-bottom: var(--space-lg);
}

.editor-header {
    margin-bottom: 1rem;
}

.editor-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.editor-header p {
    font-size: 0.85rem;
    color: var(--white-mute);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.product-thumb {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name-input {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-name-input:focus {
    outline: none;
    border-color: var(--aqua);
}

.product-price-input {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--aqua);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.product-price-input:focus {
    outline: none;
    border-color: var(--aqua);
}

.product-delete {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 68, 68, 0.2);
    background: rgba(255, 68, 68, 0.05);
    border-radius: 0.5rem;
    color: var(--danger);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-delete:hover {
    background: var(--danger);
    color: var(--white);
}

/* CONFIG PAGE */
.config-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: var(--space-lg);
}

.config-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
}

.config-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.config-field {
    margin-bottom: 1rem;
}

.config-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--white-mute);
    margin-bottom: 0.5rem;
}

.config-field input,
.config-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--white);
    font-size: 0.875rem;
}

.config-field input:focus,
.config-field textarea:focus {
    outline: none;
    border-color: var(--aqua);
}

.config-field textarea {
    resize: vertical;
    min-height: 80px;
}

.config-actions {
    display: flex;
    gap: 1rem;
}

/* ANALYTICS */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: var(--space-lg);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 180px;
    padding: 1rem 0;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, var(--aqua), rgba(0, 255, 136, 0.3));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: all 0.4s ease;
}

.bar:hover {
    background: var(--aqua);
}

.bar-day {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--white-mute);
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-rank {
    width: 24px;
    height: 24px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--aqua);
}

.top-name {
    flex: 1;
    font-size: 0.85rem;
}

.top-bar-mini {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.top-bar-fill {
    height: 100%;
    background: var(--aqua);
    transition: width 0.4s ease;
}

.top-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--white-mute);
}

.status-dist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dist-label {
    width: 80px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--white-mute);
}

.dist-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.dist-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.dist-fill.pending { background: var(--warning); }
.dist-fill.preparando { background: var(--info); }
.dist-fill.entregue { background: var(--success); }
.dist-fill.cancelado { background: var(--danger); }

.dist-pct {
    width: 40px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-align: right;
}

/* COLLECTIONS LIST */
.collections-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.collection-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.collection-thumb {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
}

.collection-info {
    flex: 1;
}

.collection-name {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.collection-price {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--aqua);
}

.collection-actions {
    display: flex;
    gap: 0.5rem;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 480px;
    background: var(--black-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    overflow: hidden;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.modal-body {
    padding: 1.5rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-field {
    margin-bottom: 1rem;
}

.modal-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--white-mute);
    margin-bottom: 0.5rem;
}

.modal-field input,
.modal-field select,
.modal-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--white);
    font-size: 0.875rem;
}

.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
    outline: none;
    border-color: var(--aqua);
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* TOAST */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.4s ease;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ACTION BUTTONS */
.action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--aqua-glow);
    border-color: var(--aqua);
    color: var(--aqua);
}

.action-btn.danger:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.action-btn.sm {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    padding: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s ease;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle,
    .menu-btn {
        display: flex;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .config-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-row {
        flex-wrap: wrap;
    }
    
    .search-input {
        max-width: 100%;
    }
    
    .collection-tabs {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 0.5rem;
    }
    
    .products-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-actions {
        justify-content: flex-end;
    }
}

/* EMPTY STATE */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--white-mute);
}

.empty-state p {
    font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
