/* ==========================================================================
   BettaRifa - Estilos CSS Premium (Neon Dark Theme & Glassmorphism)
   ========================================================================== */

/* 1. Variáveis e Reset */
:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(18, 20, 32, 0.65);
    --bg-input: rgba(30, 33, 50, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.15);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Cores de Destaque Neon */
    --neon-cyan: #00f2fe;
    --neon-purple: #7f00ff;
    --neon-green: #00ff87;
    --neon-orange: #ff9900;
    --neon-red: #ff0055;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    --gradient-success: linear-gradient(135deg, var(--neon-green), #60efff);
    --gradient-warning: linear-gradient(135deg, var(--neon-orange), #ff5500);
    --gradient-danger: linear-gradient(135deg, var(--neon-red), #990033);
    --gradient-dark: linear-gradient(135deg, #121420, #0a0b10);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fontes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Glow Elements */
.glow-bg {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.bg-cyan {
    background-color: var(--neon-cyan);
    top: -200px;
    left: -200px;
    animation: pulse-glow 8s infinite alternate;
}

.bg-purple {
    background-color: var(--neon-purple);
    bottom: -200px;
    right: -200px;
    animation: pulse-glow 12s infinite alternate-reverse;
}

@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.12; }
    100% { transform: scale(1.2); opacity: 0.2; }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* ==========================================================================
   2. Layout Base & Sidebar
   ========================================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

.sidebar {
    width: 280px;
    background-color: rgba(10, 11, 16, 0.95);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.brand-icon i {
    width: 24px;
    height: 24px;
    color: #fff;
}

.brand h1 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand span {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    background: none;
    border: none;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
    width: 100%;
}

.nav-item i {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 4px 20px rgba(127, 0, 255, 0.25);
}

.nav-item.active i {
    transform: scale(1.1);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-footer span {
    color: var(--text-secondary);
    display: block;
    margin-top: 0.25rem;
}

/* ==========================================================================
   3. Área de Conteúdo Principal
   ========================================================================== */
.main-content {
    flex-grow: 1;
    padding: 2.5rem 2.5rem 8rem 2.5rem;
    overflow-y: auto;
    max-width: calc(100vw - 280px);
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.header-title h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.active-rifa-badge {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

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

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--neon-cyan); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* ==========================================================================
   4. Componentes Comuns (Cards, Botões, Forms)
   ========================================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.card-glow:hover {
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.icon-accent {
    color: var(--neon-cyan);
    width: 22px;
    height: 22px;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: var(--gradient-danger);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.3);
}

.btn-filter {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-filter.active {
    background-color: var(--neon-cyan);
    color: var(--bg-dark);
    font-weight: 700;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.btn-large {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
}

/* Inputs & Form */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="email"],
select,
textarea {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.15);
}

.input-with-action {
    display: flex;
    gap: 0.75rem;
}

.input-with-action input {
    flex-grow: 1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Utilities */
.col-span-2 { grid-column: span 2; }
.w-full { width: 100%; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.flex-column { flex-direction: column; }
.hidden { display: none !important; }
.min-h-400 { min-height: 400px; }
.text-success { color: var(--neon-green) !important; }
.text-warning { color: var(--neon-orange) !important; }
.text-danger { color: var(--neon-red) !important; }
.text-secondary { color: var(--text-secondary); }

/* ==========================================================================
   5. Estilos Específicos das Abas
   ========================================================================== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.75rem;
}

/* Progresso Radial */
.stats-progress-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.radial-progress-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
}

.radial-progress-svg {
    transform: rotate(-90deg);
}

.radial-progress-svg circle {
    fill: none;
    stroke-width: 8px;
}

.radial-progress-svg circle.bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.radial-progress-svg circle.fg {
    stroke: url(#radial-gradient-colors); /* Definido no JS por estilo se necessário ou via cor única */
    stroke: var(--neon-cyan);
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-linecap: round;
}

.radial-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.radial-progress-text span {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.radial-progress-text small {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.85rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.stat-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-available { background-color: var(--text-muted); }
.dot-reserved { background-color: var(--neon-orange); }
.dot-paid { background-color: var(--neon-cyan); }

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-val {
    font-size: 0.95rem;
    font-weight: 700;
}

.financials-card {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.financial-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.financial-row strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.financial-row.border-top {
    border-top: 1px dashed var(--border-color);
    padding-top: 0.75rem;
}

/* ==========================================================================
   6. Grade de Rifas Interativa
   ========================================================================== */
.grid-manager-controls {
    padding: 1.25rem !important;
}

.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.search-bar {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.search-bar input {
    padding-left: 2.75rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.grid-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bg-available { background-color: var(--text-muted); box-shadow: 0 0 5px rgba(255,255,255,0.1); }
.bg-reserved { background-color: var(--neon-orange); box-shadow: 0 0 8px var(--neon-orange); }
.bg-paid { background-color: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }

/* Floating Pop-up Cart (Carrinho no Canto Inferior Direito) */
.floating-cart-popup {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 290px;
    background: rgba(10, 11, 16, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 10px 45px rgba(0, 242, 254, 0.35);
    border-radius: 20px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    animation: slideInUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.cart-popup-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-icon {
    color: var(--neon-cyan);
    width: 24px;
    height: 24px;
}

.cart-popup-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cart-popup-text span {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.cart-popup-text small {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cart-checkout {
    padding: 0.5rem 1rem !important;
    border-radius: 30px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2) !important;
}

.raffle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.quota-btn {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
}

.quota-number {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.quota-name {
    font-size: 0.65rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
}

/* Estados da Cota */
.quota-btn:hover {
    background-color: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.2);
}

.quota-btn.status-available {
    border-color: var(--border-color);
}

.quota-btn.client-selected {
    border-color: var(--neon-cyan) !important;
    background-color: rgba(0, 242, 254, 0.15) !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4) !important;
}
.quota-btn.client-selected .quota-number {
    color: var(--neon-cyan) !important;
    font-weight: 800;
}
.quota-btn.client-selected .quota-name {
    color: #ffffff !important;
}

.quota-btn.status-reserved {
    border-color: rgba(255, 153, 0, 0.4);
    background-color: rgba(255, 153, 0, 0.05);
}

.quota-btn.status-reserved .quota-number {
    color: var(--neon-orange);
}

.quota-btn.status-paid {
    border-color: rgba(0, 255, 135, 0.4);
    background-color: rgba(0, 255, 135, 0.05);
}

.quota-btn.status-paid .quota-number {
    color: var(--neon-green);
}

/* ==========================================================================
   7. Geradores (WhatsApp, Regras, Flyer)
   ========================================================================== */
.grid-two-columns {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.75rem;
}

.grid-two-columns > * {
    min-width: 0;
}

.whatsapp-preview-container,
.rules-preview-container {
    background-color: rgba(10, 11, 16, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 500px;
}

.whatsapp-pre-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #e5e7eb;
    white-space: pre-wrap;
    line-height: 1.4;
}

/* Estilos do Flyer Promocional */
.color-presets {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-color-preset {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-color-preset:hover {
    transform: scale(1.1);
}

.btn-color-preset.active {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Flyer Container Visual */
.flyer-container {
    width: 360px;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
}

/* Gradientes do Flyer */
.flyer-container.gradient-blue-purple { background: linear-gradient(135deg, #100e26 0%, #17183e 50%, #201344 100%); border: 2px solid #7f00ff; }
.flyer-container.gradient-orange-red { background: linear-gradient(135deg, #240a0c 0%, #311119 50%, #3d0711 100%); border: 2px solid #ff0055; }
.flyer-container.gradient-gold-dark { background: linear-gradient(135deg, #1e190e 0%, #2a2213 50%, #362610 100%); border: 2px solid #e68a00; }
.flyer-container.gradient-green-cyan { background: linear-gradient(135deg, #071e16 0%, #0d291f 50%, #0e3036 100%); border: 2px solid #00ff87; }
.flyer-container.gradient-sunset { background: linear-gradient(135deg, #240e0a 0%, #311812 50%, #3d1410 100%); border: 2px solid #f12711; }

.flyer-header {
    text-align: center;
}

.flyer-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    color: #fff;
}

.gradient-blue-purple .flyer-badge { background-color: var(--neon-purple); }
.gradient-orange-red .flyer-badge { background-color: var(--neon-red); }
.gradient-gold-dark .flyer-badge { background-color: #e68a00; }
.gradient-green-cyan .flyer-badge { background-color: #00875a; }
.gradient-sunset .flyer-badge { background-color: #f12711; }

.flyer-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
}

.flyer-tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.flyer-image-container {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.flyer-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flyer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
}

.flyer-price-badge {
    background-color: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 0.65rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.flyer-price-badge span {
    font-size: 0.55rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.flyer-price-badge strong {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--neon-cyan);
}

.flyer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
}

.flyer-stat-box {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    text-align: center;
    padding: 0.4rem 0.2rem;
    display: flex;
    flex-direction: column;
}

.flyer-stat-box span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
}

.flyer-stat-box small {
    font-size: 0.55rem;
    color: var(--text-secondary);
}

.flyer-progress-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.flyer-progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.flyer-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease-out;
}

.flyer-pix-section {
    margin-top: 0.25rem;
}

.pix-card {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
}

.pix-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.pix-title i {
    width: 12px;
    height: 12px;
}

.pix-key-val {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    word-break: break-all;
}

.pix-owner-val {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.flyer-footer {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 0.75rem;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

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

/* ==========================================================================
   8. Sorteador Digital Premium
   ========================================================================== */
.stats-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.compact-stat {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.compact-stat span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.compact-stat strong {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.bg-dark {
    background-color: rgba(10, 11, 16, 0.4);
}

/* Roleta Deslizante de Sorteio (Estilo Case Opening) */
.roulette-wrapper {
    position: relative;
    width: 100%;
    max-width: 95%;
    padding: 10px;
    background: rgba(18, 20, 32, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 242, 254, 0.05);
    z-index: 5;
    margin: 1.5rem 0;
}

.roulette-pointer {
    position: absolute;
    left: 50%;
    top: -4px;
    bottom: -4px;
    width: 3px;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan), 0 0 25px var(--neon-cyan);
    z-index: 10;
    transform: translateX(-50%);
}

.roulette-pointer::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid var(--neon-cyan);
}

.roulette-pointer::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--neon-cyan);
}

.roulette-window {
    width: 100%;
    height: 106px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0d0f18 0%, #06070c 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    position: relative;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.9);
}

.roulette-track {
    display: flex;
    gap: 8px;
    width: max-content;
    padding: 9px 0;
    transform: translateX(0px);
}

.roulette-placeholder {
    width: 100%;
    min-width: 100%;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding-top: 2rem;
    letter-spacing: 1px;
}

.roulette-card {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(28, 32, 50, 0.85), rgba(15, 17, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.roulette-card.winner-highlight {
    border-color: var(--neon-green);
    box-shadow: 0 0 25px rgba(0, 255, 137, 0.5), inset 0 0 10px rgba(0, 255, 137, 0.25);
    transform: scale(1.08);
}

.roulette-card.winner-highlight .roulette-card-num {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 137, 0.6);
}

.roulette-card-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.roulette-card-name {
    font-size: 0.72rem;
    color: var(--text-secondary);
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 3px;
    font-weight: 600;
}
    font-weight: 700;
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(0, 242, 254, 0.6), 0 0 15px rgba(0, 242, 254, 0.4);
    }
    20%, 24%, 55% {
        opacity: 0.5;
        text-shadow: none;
    }
}

/* Tela de Anúncio do Ganhador */
.draw-winner-announcement {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 7, 12, 0.96);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: fadeIn 0.4s ease-out;
}

.winner-card {
    text-align: center;
    padding: 2.5rem 2rem;
    width: 350px;
    max-width: 92%;
    background: linear-gradient(135deg, rgba(15, 17, 28, 0.95), rgba(8, 9, 15, 0.98));
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 40px rgba(0, 255, 135, 0.25), inset 0 0 20px rgba(0, 255, 135, 0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: winnerEntry 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes winnerEntry {
    from { transform: scale(0.7) translateY(40px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.winner-crown {
    width: 56px;
    height: 56px;
    color: #f5d061;
    filter: drop-shadow(0 0 12px rgba(245, 208, 97, 0.8));
    margin-bottom: 0.75rem;
    animation: crownBounce 2s infinite ease-in-out;
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.1); }
}

.winner-card h4 {
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.winner-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-purple);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.winner-name {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.winner-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   9. Janela Modal (Edição de Cotas)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    width: 450px;
    max-width: 90%;
    background: var(--gradient-dark);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.1);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close:hover {
    color: #fff;
}

.status-radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.status-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.status-radio-label input {
    display: none;
}

.status-radio-label:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.status-radio-label.border-available:has(input:checked) { border-color: var(--text-muted); background-color: rgba(255,255,255,0.05); }
.status-radio-label.border-reserved:has(input:checked) { border-color: var(--neon-orange); background-color: rgba(255, 153, 0, 0.08); }
.status-radio-label.border-paid:has(input:checked) { border-color: var(--neon-cyan); background-color: rgba(0, 242, 254, 0.08); }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

/* ==========================================================================
   10. Responsividade (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem;
    }
    
    .brand {
        margin-bottom: 1.5rem;
    }
    
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .nav-item {
        white-space: nowrap;
        padding: 0.65rem 1rem;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .main-content {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .dashboard-grid,
    .grid-two-columns {
        grid-template-columns: 1fr;
    }
    
    .col-span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .filter-buttons {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
        width: 100% !important;
    }
    
    .status-radio-group {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   11. Estilos Temáticos do Sorteador (Aquático & Roleta)
   ========================================================================== */
#draw-display-card {
    background: radial-gradient(circle at 50% 35%, rgba(0, 242, 254, 0.06) 0%, rgba(127, 0, 255, 0.03) 50%, rgba(10, 11, 16, 0.98) 100%) !important;
    border: 1px solid rgba(0, 242, 254, 0.12) !important;
    box-shadow: inset 0 0 35px rgba(0, 242, 254, 0.03), 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    gap: 2.25rem !important; /* Espaçamento vertical equilibrado para preencher o vazio */
    padding-top: 4.5rem !important; /* Espaço para o cabeçalho flutuante */
    padding-bottom: 2.5rem !important;
}

/* Flashing LIVE DRAWING indicator */
.draw-live-header {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    z-index: 5;
}

.live-dot-pulse {
    width: 9px;
    height: 9px;
    background-color: var(--neon-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-orange);
    animation: pulse-live 1.6s infinite alternate;
}

@keyframes pulse-live {
    0% { opacity: 0.3; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 18px var(--neon-orange); }
}

/* Premium Rotating Aquatic Decor Widget */
.aquarium-decor-widget {
    width: 140px;
    height: 140px;
    border: 2px dashed rgba(0, 242, 254, 0.14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotate-decor 25s linear infinite;
    z-index: 2;
    margin-top: 0.5rem;
}

.decor-inner-circle {
    width: 110px;
    height: 110px;
    border: 1px solid rgba(127, 0, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(127,0,255,0.03) 0%, transparent 80%);
}

.decor-icon {
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    opacity: 0.65;
    animation: bounce-decor 3.2s ease-in-out infinite alternate;
}

@keyframes rotate-decor {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce-decor {
    0% { transform: translateY(-4px) scale(0.96) rotate(-8deg); opacity: 0.5; }
    100% { transform: translateY(4px) scale(1.04) rotate(8deg); opacity: 0.85; }
}

.aquatic-grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.02) 0%, rgba(10, 11, 16, 0) 80%),
                linear-gradient(rgba(0, 242, 254, 0.015) 1px, transparent 1px) 0 0 / 25px 25px;
    pointer-events: none;
    z-index: 1;
}

/* Painel de Status do Sorteador */
.draw-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.45rem 1.15rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    z-index: 3;
    transition: var(--transition-fast);
}

.draw-status-badge.status-spinning {
    color: var(--neon-orange);
    border-color: rgba(255, 153, 0, 0.4);
    background-color: rgba(255, 153, 0, 0.06);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.15);
}

.draw-status-badge.status-done {
    color: var(--neon-green);
    border-color: rgba(0, 255, 135, 0.4);
    background-color: rgba(0, 255, 135, 0.06);
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.15);
}

.status-dot-active {
    width: 8px;
    height: 8px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-cyan);
}

.status-spinning .status-dot-active {
    background-color: var(--neon-orange) !important;
    box-shadow: 0 0 8px var(--neon-orange) !important;
    animation: pulse-status 1.2s infinite;
}

.status-done .status-dot-active {
    background-color: var(--neon-green) !important;
    box-shadow: 0 0 8px var(--neon-green) !important;
}

@keyframes pulse-status {
    0%, 100% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Bolhas de Aquário Animadas */
.aquarium-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    bottom: -30px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.01) 70%);
    border: 1px solid rgba(0, 242, 254, 0.12);
    border-radius: 50%;
    animation: float-bubble 10s infinite linear;
}

.bubble-1 { width: 14px; height: 14px; left: 12%; animation-duration: 8s; animation-delay: 1s; }
.bubble-2 { width: 22px; height: 22px; left: 28%; animation-duration: 12s; animation-delay: 0s; }
.bubble-3 { width: 10px; height: 10px; left: 68%; animation-duration: 9s; animation-delay: 3s; }
.bubble-4 { width: 16px; height: 16px; left: 78%; animation-duration: 11s; animation-delay: 2s; }
.bubble-5 { width: 8px; height: 8px; left: 90%; animation-duration: 7s; animation-delay: 4s; }
.bubble-6 { width: 18px; height: 18px; left: 45%; animation-duration: 10s; animation-delay: 1.5s; }
.bubble-7 { width: 12px; height: 12px; left: 58%; animation-duration: 9s; animation-delay: 2.5s; }

@keyframes float-bubble {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-440px) translateX(25px); opacity: 0; }
}

/* ==========================================================================
   12. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: rgba(10, 18, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    min-width: 300px;
    max-width: 420px;
    color: var(--text-primary);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.05);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-color: rgba(0, 255, 135, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 135, 0.1);
}
.toast-success .toast-icon {
    color: var(--neon-green);
}

.toast-error {
    border-color: rgba(255, 0, 85, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 85, 0.1);
}
.toast-error .toast-icon {
    color: var(--neon-red);
}

.toast-warning {
    border-color: rgba(255, 159, 26, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 159, 26, 0.1);
}
.toast-warning .toast-icon {
    color: var(--neon-orange);
}

.toast-info {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.1);
}
.toast-info .toast-icon {
    color: var(--neon-cyan);
}

.toast-message {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    font-family: var(--font-body);
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0 0.25rem;
    transition: color 0.2s;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* active-raffles-grid styling */
.active-raffles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.raffle-card {
    background: rgba(30, 30, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.raffle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.3);
}

.raffle-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #0f0f1a;
}

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

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

.raffle-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.raffle-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.raffle-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.raffle-card-breed {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.raffle-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.raffle-card-price span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.raffle-card-progress {
    margin-top: auto;
    margin-bottom: 1.25rem;
}

.raffle-card-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.raffle-card-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.raffle-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.raffle-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
}

.raffle-card-actions .btn {
    flex: 1 1 110px;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    justify-content: center;
    min-width: 0; /* permite que encolha se necessário */
}

/* --- Mobile / Responsividade --- */
.mobile-top-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(10, 11, 16, 0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 11, 16, 0.98);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    z-index: 1000;
}

.mobile-tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100%;
}

.mobile-tab-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 500;
    gap: 3px;
    flex-grow: 1;
    height: 100%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-tab-item i {
    width: 20px;
    height: 20px;
}

.mobile-tab-item:hover,
.mobile-tab-item.active {
    color: var(--neon-cyan);
}

/* Media Query para Celulares e Tablets */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        padding-top: 56px; /* Altura da barra superior */
        padding-bottom: 60px; /* Altura da barra inferior */
        height: auto;
        min-height: calc(100vh - 116px);
    }
    
    .sidebar {
        display: none !important;
    }
    
    .mobile-top-bar {
        display: flex;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    .main-content {
        padding: 1.25rem 1rem 3.5rem 1rem !important;
        overflow-y: visible;
        max-width: 100% !important;
    }

    .card {
        padding: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .raffle-grid {
        padding-bottom: 140px !important; /* Espaço para não cobrir números com a barra flutuante */
    }

    #client-selection-bar.floating-cart-popup {
        bottom: 5.5rem !important; /* Posicionado acima do bottom-nav de 60px */
        right: 1rem !important;
        left: 1rem !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        border-radius: 16px !important;
        padding: 0.65rem 0.85rem !important;
        display: flex;
    }

    .flyer-container {
        width: 100% !important;
        max-width: 360px !important;
        box-sizing: border-box !important;
    }
    
    .grid-two-columns,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    .card.col-span-2 {
        grid-column: span 1 / span 1 !important;
    }

    .active-raffles-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .grid-manager-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }

    .card-header {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .grid-legend {
        width: 100% !important;
        justify-content: flex-start !important;
        margin-top: 0.25rem !important;
        gap: 0.75rem !important;
    }

    .modal-overlay {
        align-items: flex-start !important;
        overflow-y: auto !important;
        padding: 2rem 0 !important;
    }
    
    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        display: none !important; /* Oculta cabeçalho desktop redundante */
    }
    
    .raffle-grid {
        grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)) !important;
        gap: 0.4rem !important;
    }

    .quota-cell {
        height: 48px !important;
        font-size: 0.85rem !important;
    }

    .toast-container {
        top: 12px !important;
        right: 12px !important;
        left: 12px !important;
        width: calc(100% - 24px) !important;
    }

    .toast {
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

#mock-invite-bubble-text strong {
    font-weight: 700;
    color: var(--neon-cyan);
}

#mock-invite-bubble-text em {
    font-style: italic;
    color: var(--text-secondary);
}

#mock-invite-bubble-text del {
    text-decoration: line-through;
    color: var(--text-muted);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sub-abas Administrativas */
.admin-dashboard-tabs::-webkit-scrollbar {
    display: none;
}
.sub-tab-btn {
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
    transition: all 0.25s var(--transition-fast) !important;
    cursor: pointer;
}
.sub-tab-btn:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.03) !important;
}
.sub-tab-btn.active {
    background: rgba(0, 242, 254, 0.1) !important;
    color: var(--neon-cyan) !important;
    border: 1px solid rgba(0, 242, 254, 0.25) !important;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.1) !important;
}
.subtab-content.hidden {
    display: none !important;
}
.subtab-content {
    animation: fadeIn 0.3s ease-out;
}

/* Responsividade Proporcional para o Sorteador em Telas Pequenas */
@media (max-width: 576px) {
    .roulette-card {
        width: 75px !important;
        height: 75px !important;
        border-radius: 12px !important;
    }
    .roulette-card-num {
        font-size: 1.25rem !important;
    }
    .roulette-card-name {
        font-size: 0.6rem !important;
    }
    .aquarium-decor-widget {
        width: 100px !important;
        height: 100px !important;
    }
    .decor-inner-circle {
        width: 80px !important;
        height: 80px !important;
    }
    .decor-icon {
        width: 22px !important;
        height: 22px !important;
    }
    #draw-display-card {
        gap: 1.5rem !important;
        padding-top: 3.5rem !important;
        padding-bottom: 1.5rem !important;
        min-height: 350px !important;
    }
    .draw-live-header {
        top: 1.25rem;
        left: 1.25rem;
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
}
