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

/* Variables del Sistema de Diseño */
:root {
    --bg-primary: #12161a;
    --bg-secondary: #181f25;
    --bg-card: rgba(28, 35, 41, 0.85);
    --bg-card-hover: rgba(36, 45, 53, 0.95);
    --border-color: rgba(90, 105, 114, 0.45);
    --border-color-focus: #00c0f0;

    --slate-gray: #5a6972;
    --accent-teal: #0082a6;
    --accent-blue: #00c0f0;
    --accent-gradient: linear-gradient(135deg, #0082a6 0%, #00c0f0 100%);
    --accent-glow: 0 0 15px rgba(0, 192, 240, 0.4);

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;

    --success: #10b981;
    --success-glow: 0 0 12px rgba(16, 185, 129, 0.4);
    --warning: #f59e0b;
    --danger: #ef4444;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

/* Reset y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 130, 166, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 192, 240, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: #38bdf8;
}

/* Header & Navbar */
header {
    background: rgba(90, 105, 114, 0.95); /* El gris de logo2 como fondo */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px; /* Expandir ancho de la barra */
    width: 95%;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    flex: 0 2 auto;
}

.logo-img {
    height: 48px;
    width: auto;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 220px;
    display: inline-block;
}

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

.nav-item a {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.nav-item a:hover, .nav-item a.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 220px;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block !important;
    padding: 0.6rem 1.2rem !important;
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-align: left;
}

.dropdown-menu li a:hover {
    color: #ffffff !important;
    background: rgba(90, 105, 114, 0.2) !important;
}

/* Desktop: dropdown se despliega al pasar el mouse */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        display: block;
    }
}

/* Móvil: dropdown se controla con clase .active desde JS */
@media (max-width: 768px) {
    .nav-item.dropdown.active > .dropdown-menu {
        display: block;
    }
}

.dropdown-caret {
    font-size: 0.75rem;
    margin-left: 0.3rem;
}

#ventas-contabilidad, #reparaciones, #crm, #facturacion, #sorteos, #sobre-nosotros, #contactanos {
    scroll-margin-top: 110px;
}

/* ==========================================================================
 * NAVBAR RESPONSIVA - Comportamiento similar a FacturaScripts Core
 * - Priority nav con dropdown "Más" en escritorio
 * - Menú hamburguesa en móvil
 * - Iconos + texto en desktop, iconos solo si no cabe
 * ========================================================================== */

/* Wrapper del menú principal: flex con las secciones del navbar */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 1.5rem;
}

/* Menú principal: items de navegación */
.nav-menu {
    display: flex;
    justify-content: flex-end;
    gap: 1.8rem;
    align-items: center;
    list-style: none;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
}

/* Botón hamburguesa (solo móvil) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    margin-left: auto;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Dropdown overflow "Más" (priority nav) */
.nav-overflow {
    display: none;
    list-style: none;
    align-items: center;
    margin-left: 0.5rem;
    flex: 0 0 auto;
}

.nav-overflow.vt-show {
    display: flex;
}

.nav-overflow .dropdown-trigger {
    padding: 0.5rem 0.75rem;
    color: #e2e8f0;
    font-weight: 600;
}

.vt-overflow-arrow {
    display: inline;
}

.vt-overflow-bars {
    display: none;
}

.vt-hidden-item {
    display: none !important;
}

.vt-overflow-menu {
    min-width: 220px;
    right: 0;
    left: auto;
    max-height: 70vh;
    overflow-y: auto;
}

.vt-overflow-menu .dropdown-header {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.25rem;
}

.vt-overflow-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
}

.vt-overflow-menu li a:hover {
    color: #ffffff;
    background: rgba(90, 105, 114, 0.2);
}

/* Iconos dentro de items de menú */
.vt-menu-icon {
    display: inline-block;
    margin-right: 0.4rem;
    font-style: normal;
    width: 1.1em;
    text-align: center;
}

/* Acciones derechas (login/register) */
.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    list-style: none;
    margin-left: 1rem;
    flex: 0 0 auto;
}

.nav-user-dropdown {
    position: relative;
}

.nav-user-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 38px;
    height: 38px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    padding: 0 0.7rem 0 0.5rem;
}

.nav-user-toggle:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.5);
}

.nav-user-toggle-name {
    display: inline-block;
    max-width: 160px;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.nav-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    display: none;
    z-index: 1001;
}

.nav-user-menu.active {
    display: block;
}

.nav-user-menu li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    color: var(--text-main) !important;
    font-size: 0.9rem;
    text-decoration: none;
}

.nav-user-menu li a:hover {
    background: rgba(108,117,125,0.2);
    color: #ffffff !important;
}

.nav-user-menu li a .menu-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.85;
}

/* Pantallas medianas: texto del menú se oculta, quedan solo iconos
   para evitar que el texto se superponga antes de activar el menú móvil */
@media (max-width: 1100px) and (min-width: 769px) {
    .nav-menu {
        gap: 1.2rem;
    }

    .nav-item > a .vt-menu-text {
        display: none;
    }

    .nav-item > a .vt-menu-icon {
        margin-right: 0;
        font-size: 1.2rem;
    }

    .nav-item.dropdown > a {
        padding: 0.5rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(90, 105, 114, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding: 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        border-top: 2px solid var(--bg-primary);
        z-index: 999;
    }

    .nav-wrapper.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item > a {
        display: flex;
        align-items: center;
        padding: 0.8rem 1rem;
        border-radius: 6px;
    }

    .nav-item > a:hover,
    .nav-item.active > a {
        background: rgba(255, 255, 255, 0.1);
        text-shadow: none;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 6px;
        margin-top: 0.25rem;
        padding: 0.4rem 0;
    }

    .nav-overflow {
        display: none !important;
    }

    .nav-actions {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .nav-actions li {
        flex: 0 0 auto;
    }

    .nav-actions li a {
        width: 100%;
        text-align: center;
    }

    .nav-user-menu {
        right: 50%;
        transform: translateX(50%);
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.25rem;
        letter-spacing: 1px;
        max-width: 160px;
    }

    .nav-user-toggle-name {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
        max-width: 100px;
    }

    .nav-user-toggle-name {
        max-width: 90px;
    }
}

@media (max-width: 400px) {
    .logo-img {
        height: 36px;
    }
}

/* Responsive Grid Classes for Dashboards */
.sorteo-setup-container {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 2rem;
}

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

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-main);
    box-shadow: 0 4px 14px rgba(0, 192, 240, 0.25);
}

.btn-primary:hover {
    box-shadow: var(--accent-glow);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: rgba(18, 22, 26, 0.6);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(90, 105, 114, 0.3);
    border-color: var(--slate-gray);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--accent-glow);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Layout y Contenedores Ampliados */
.container {
    max-width: 1400px; /* Ampliado para mejor uso del espacio */
    width: 95%;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Landing Page Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 75vh;
    gap: 4rem;
    padding: 3rem 0;
}

.hero-content {
    flex: 1.2;
}

.badge-tag {
    background: rgba(0, 192, 240, 0.1);
    color: var(--accent-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(0, 192, 240, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

.hero-image-container {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-bg {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--accent-gradient);
    filter: blur(80px);
    opacity: 0.25;
    z-index: 1;
}

.hero-logo-img {
    max-width: 340px;
    width: 100%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* SaaS Services Showcase */
.services-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Glassmorphism Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.2rem;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--slate-gray);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-features li::before {
    content: "✓";
    color: var(--accent-blue);
    font-weight: bold;
}

.card-status {
    position: absolute;
    top: 15px;
    right: -30px;
    transform: rotate(45deg);
    padding: 0.25rem 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    width: 120px;
}

.status-maintenance {
    background: var(--slate-gray);
    color: #fff;
}

.status-active {
    background: var(--success);
    color: #fff;
}

/* Formularios y Login/Registro */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem 0;
}

.auth-card {
    max-width: 500px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.2rem;
}

/* ==========================================================================
 * LOGIN / REGISTRO AL ESTILO CORE
 * ========================================================================== */
.vt-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 1rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0a0d10 100%);
}

.vt-auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.vt-auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.vt-auth-card-header {
    background: rgba(90, 105, 114, 0.35);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.vt-auth-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
}

.vt-auth-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.vt-auth-brand {
    display: none;
}

.vt-auth-body {
    padding: 2rem;
}

.vt-auth-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.vt-auth-body .form-group {
    margin-bottom: 1.2rem;
}

.vt-auth-body .form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.vt-auth-body .form-control {
    background: rgba(18, 22, 26, 0.8);
    border: 2px solid rgba(90, 105, 114, 0.5);
    color: #ffffff;
    padding: 0.95rem 1.2rem;
    border-radius: 12px;
    font-size: 1rem;
    min-height: 52px;
}

.vt-auth-body .form-control::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.vt-auth-body .form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 192, 240, 0.2);
    background: rgba(18, 22, 26, 0.95);
}

.vt-auth-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-blue) 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 192, 240, 0.3);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vt-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 192, 240, 0.5);
}

.vt-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.vt-auth-footer a {
    color: var(--accent-blue);
    font-weight: 600;
}

.vt-auth-link {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--accent-blue);
    margin-bottom: 1.2rem;
}

.vt-auth-link:hover {
    color: #ffffff;
}

@media (max-width: 480px) {
    .vt-auth-body {
        padding: 1.5rem;
    }

    .vt-auth-brand {
        padding: 0.75rem 1rem;
    }

    .vt-auth-brand-name {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
 * OVERLAY DE CARGA GLOBAL
 * ========================================================================== */
.vt-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 13, 16, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.vt-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.vt-loading-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    width: 320px;
}

.vt-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 192, 240, 0.2);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: vt-spin 1s linear infinite;
}

@keyframes vt-spin {
    to { transform: rotate(360deg); }
}

.vt-loading-text {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.vt-loading-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.vt-btn-loading {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vt-btn-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: vt-spin 0.8s linear infinite;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    background: rgba(18, 22, 26, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem 0.95rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus {
    border-color: var(--border-color-focus);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 192, 240, 0.15);
}

textarea.form-control {
    resize: vertical;
}

.form-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Alertas */
.alert {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-left: 4px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #a7f3d0;
    border-color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fde68a;
    border-color: var(--warning);
}

.alert-debug {
    background: rgba(0, 192, 240, 0.1);
    color: #bae6fd;
    border-color: var(--accent-blue);
}

/* Paso de verificación (Multi-step) */
.step-container {
    display: none;
}

.step-container.active {
    display: block;
}

/* Panel Layout (Widescreen Ampliado) */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr; /* Más ancho de sidebar */
    gap: 2.5rem;
    min-height: 80vh;
}

.dashboard-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem 1.2rem;
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.sidebar-item a:hover, .sidebar-item.active a {
    color: var(--text-main);
    background: rgba(90, 105, 114, 0.25);
    border-left: 4px solid var(--accent-blue);
    padding-left: 1.1rem;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.2rem;
    gap: 1rem;
}

.dashboard-header-wrap {
    flex-wrap: wrap;
}

.dashboard-header-wrap h1,
.dashboard-header-wrap p {
    flex: 0 1 auto;
    min-width: 0;
}

@media (max-width: 768px) {
    .dashboard-header-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Bank Account List Styles */
.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.bank-account-card {
    background: rgba(18, 22, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.bank-account-card .bank-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.bank-account-card .acc-num {
    font-family: monospace;
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0.2rem 0;
}

.bank-account-card .acc-holder {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bank-account-card .acc-type {
    display: inline-block;
    background: rgba(90, 105, 114, 0.25);
    color: var(--text-main);
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Sorteos Setup Styles */
.sorteo-setup-container {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 2rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Barra Horizontal de Selección de Boletos */
.horizontal-slider-container {
    background: rgba(18, 22, 26, 0.4);
    padding: 2.2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.slider-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.horizontal-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: var(--bg-primary);
    outline: none;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.horizontal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    box-shadow: var(--accent-glow);
    border: 2px solid white;
    transition: transform 0.1s ease;
}

.horizontal-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.ticket-number-display {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-blue);
    text-shadow: var(--accent-glow);
    line-height: 1;
}

/* Barra de progreso de ventas */
.progress-bar-container {
    background: rgba(18, 22, 26, 0.7);
    border: 1px solid var(--border-color);
    height: 14px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 0.5rem;
}

.progress-bar-fill {
    background: var(--accent-gradient);
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--accent-glow);
}

/* Admin Dashboard Table */
.data-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.data-table th, .data-table td {
    padding: 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: rgba(18, 22, 26, 0.85);
    font-weight: 600;
    color: var(--text-main);
}

.data-table tr:hover td {
    background: rgba(90, 105, 114, 0.15);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-approved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 2rem 1rem;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    padding: 2.2rem;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-speed);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    margin: 1rem auto;
    flex-shrink: 0;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Vista preliminar del voucher */
.voucher-preview {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 0.5rem;
    display: none;
}

/* Estilo para tabuladores generales */
.tab-headers {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-header-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
}

.tab-header-btn:hover, .tab-header-btn.active {
    color: var(--text-main);
}

.tab-header-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 10px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Header de Mis Sorteos: título y balance en línea, apilándose cuando falta espacio */
.dashboard-header-nowrap {
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 1rem;
}

.raffle-header-title {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.raffle-header-balance {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .dashboard-header-nowrap {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .raffle-header-balance {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}

.raffle-balance-count {
    color: var(--accent-blue);
}

/* Pestañas recortables: iconos siempre visibles, texto recortable */
.tab-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.tab-header-btn .tab-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.tab-header-btn:nth-child(1) .tab-icon {
    color: #ff6b6b;
}

.tab-header-btn:nth-child(2) .tab-icon {
    color: #4ecdc4;
}

.tab-header-btn:nth-child(3) .tab-icon {
    color: #ffe66d;
}

.tab-header-btn .tab-text {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 160px;
}

@media (max-width: 900px) {
    .tab-header-btn .tab-text {
        max-width: 140px;
    }
}

@media (max-width: 768px) {
    .tab-header-btn .tab-text {
        max-width: 120px;
    }
}

@media (max-width: 600px) {
    .tab-header-btn .tab-text {
        max-width: 90px;
    }
}

@media (max-width: 500px) {
    .tab-header-btn .tab-text {
        max-width: 60px;
    }
}

@media (max-width: 450px) {
    .tab-header-btn .tab-text {
        display: none;
    }
    .tab-header-btn {
        justify-content: center;
        padding: 0.8rem 0;
        flex: 1;
    }
    .tab-headers {
        gap: 0;
        justify-content: space-between;
    }
    .raffle-header-balance {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    .raffle-buy-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Media Queries (Responsividad) */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 2;
    }

    .hero-image-container {
        order: 1;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-logo-img {
        max-width: 280px;
    }
    
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .sorteo-setup-container {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .raffle-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .data-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        padding: 1rem !important;
    }
    
    .sidebar-menu {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem !important;
    }
    
    .sidebar-item a {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    .sidebar-item a:hover, .sidebar-item.active a {
        border-left: none !important;
        border-bottom: 3px solid var(--accent-blue) !important;
        padding-left: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Estilo Premium de Boleto Digital (Ticket Stub) */
.ticket-stub {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px dashed var(--accent-blue);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    margin-top: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-notch-l, .ticket-notch-r {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 50%;
    z-index: 10;
}
.ticket-notch-l {
    left: -10px;
    border-right: 2px dashed var(--accent-blue);
}
.ticket-notch-r {
    right: -10px;
    border-left: 2px dashed var(--accent-blue);
}

/* Botón de verificación premium y centrado */
.btn-verify-premium {
    background: linear-gradient(135deg, #0082a6, #00c0f0);
    color: #fff !important;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 192, 240, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}
.btn-verify-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 192, 240, 0.5);
    background: linear-gradient(135deg, #00c0f0, #38bdf8);
}
.btn-verify-premium:active {
    transform: translateY(0);
}

/* Responsive adjustments for the public raffle header */
.verify-btn-text-short {
    display: none;
}

.raffle-public-nav {
    flex-wrap: nowrap;
}

.raffle-public-logo {
    min-width: 0;
    flex-shrink: 1;
}

.raffle-public-logo-text {
    font-size: 1.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    display: inline-block;
    max-width: none;
}

.raffle-public-verify {
    flex: 0 0 auto;
}

.raffle-public-info {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .raffle-public-logo .raffle-public-logo-text {
        max-width: none;
    }
    .raffle-public-info {
        display: none !important;
    }
    header .nav-container {
        gap: 0.6rem !important;
        padding: 0.6rem 0.8rem !important;
        min-height: 56px;
    }
    header .logo-img {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 576px) {
    .raffle-public-logo .raffle-public-logo-text {
        max-width: none;
    }
    .verify-btn-text-full {
        display: none !important;
    }
    .verify-btn-text-short {
        display: inline !important;
    }
    .btn-verify-premium {
        padding: 0.5rem 1rem !important;
        font-size: 0.78rem !important;
        min-height: 38px;
    }
    header .nav-container {
        min-height: 56px;
        padding: 0.6rem 0.8rem !important;
    }
}

/* =========================================================
   BIZ PANEL MAIN HEADER (Consistent across all biz pages)
   ========================================================= */
#biz-main-header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
}
.biz-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.biz-header-company {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    flex-shrink: 1;
    min-width: 0;
}

.biz-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.biz-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 38px;
    padding: 0 0.85rem;
    border-radius: 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.biz-header-btn .btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .biz-header-btn .btn-text {
        display: none;
    }
    .biz-header-btn {
        padding: 0;
        width: 38px;
    }
}

.biz-header-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
}

.biz-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    text-decoration: none;
}

.biz-header-icon:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
}

.biz-header-dropdown {
    position: relative;
}

.biz-header-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    display: none;
    z-index: 1001;
}

.biz-header-dropdown-menu.active {
    display: block;
}

.biz-header-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    color: var(--text-main) !important;
    font-size: 0.9rem;
    text-decoration: none;
}

.biz-header-dropdown-menu li a:hover {
    background: rgba(108,117,125,0.2);
    color: #ffffff !important;
}

.biz-header-dropdown-menu li a .menu-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.85;
}

/* =========================================================
   BIZ SUB-NAV BAR (section navigation strip)
   ========================================================= */
.biz-subnav-bar {
    background: rgba(14, 18, 22, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    margin-bottom: 2rem;
}
.biz-subnav-bar .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* =========================================================
   BIZ TOP NAV BAR (replaces sidebar in dashboard pages)
   ========================================================= */
.biz-topnav-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.4rem 0;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.biz-topnav-left {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.biz-topnav-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.biz-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font-body);
    text-decoration: none;
}

.biz-nav-btn:hover {
    color: var(--text-main);
    background: rgba(90, 105, 114, 0.25);
    border-color: var(--border-color);
}

.biz-nav-btn.active {
    color: var(--accent-blue);
    background: rgba(0, 192, 240, 0.1);
    border-color: rgba(0, 192, 240, 0.3);
}

.biz-nav-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 140px;
}

/* Hamburger menu for biz-topnav on very small screens */
.biz-topnav-hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .biz-topnav-hamburger {
        display: inline-flex;
    }
    .biz-topnav-wrapper {
        flex-wrap: nowrap;
        position: relative;
    }
    .biz-topnav-left {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.6rem 1rem;
        background: rgba(14, 18, 22, 0.98);
        border-bottom: 1px solid var(--border-color);
        z-index: 998;
    }
    .biz-topnav-left.open {
        display: flex;
    }
    .biz-nav-btn {
        width: 100%;
        justify-content: flex-start;
    }
    .biz-nav-text {
        display: none;
    }
    .biz-topnav-left.open .biz-nav-text {
        display: inline-block;
    }
}

/* Single-column dashboard layout when sidebar is replaced */
.dashboard-layout-full {
    display: flex;
    flex-direction: column;
}

/* =========================================================
   CUSTOM DIALOG MODALS (showAlert / showConfirm / showPrompt)
   ========================================================= */
#vant-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    padding: 1rem;
}

#vant-dialog-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#vant-dialog-box {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    transform: scale(0.88) translateY(20px);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}

#vant-dialog-overlay.active #vant-dialog-box {
    transform: scale(1) translateY(0);
}

#vant-dialog-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    display: block;
}

#vant-dialog-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    text-align: center;
}

#vant-dialog-message {
    color: var(--text-muted);
    font-size: 0.93rem;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

#vant-dialog-input {
    width: 100%;
    margin-bottom: 1.5rem;
}

#vant-dialog-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

/* =========================================================
   PREMIUM UPLOAD ZONE (dashed dropzone)
   ========================================================= */
.premium-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    background: rgba(18, 22, 26, 0.4);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.premium-upload-zone:hover, .premium-upload-zone.dragover {
    border-color: var(--accent-blue);
    background: rgba(0, 192, 240, 0.07);
    box-shadow: 0 0 0 3px rgba(0, 192, 240, 0.12);
}

.premium-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-zone-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    display: block;
}

.upload-zone-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.25rem;
}

.upload-zone-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.upload-zone-preview {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-top: 0.8rem;
    display: none;
}

/* =========================================================
   QTY STEPPER (− / + buttons for ticket quantity)
   ========================================================= */
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(18, 22, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 220px;
}

.qty-stepper-btn {
    background: rgba(90, 105, 114, 0.2);
    border: none;
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 700;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.qty-stepper-btn:hover {
    background: rgba(0, 192, 240, 0.2);
    color: var(--accent-blue);
}

.qty-stepper-btn:active {
    background: rgba(0, 192, 240, 0.35);
}

.qty-stepper-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--accent-blue);
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-align: center;
    padding: 0;
    outline: none;
    min-width: 0;
}

/* Hide spinners on number input */
.qty-stepper-input::-webkit-outer-spin-button,
.qty-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
.qty-stepper-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* =========================================================
   NUMBERS CONTROL GRID
   ========================================================= */
.numbers-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 6px;
    margin-top: 1rem;
}

.num-cell {
    background: rgba(18, 22, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.3rem;
    font-family: monospace;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.2;
    user-select: none;
}

.num-cell:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 192, 240, 0.08);
}

.num-cell.available {
    color: var(--text-muted);
}

.num-cell.pending {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: var(--warning);
}

.num-cell.sold {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.numbers-filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.numbers-filter-bar .btn-sm {
    border: 1px solid var(--border-color);
}

.numbers-filter-bar .btn-sm.active-filter {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(0, 192, 240, 0.1);
}

/* =========================================================
   CONTACT SETTINGS CARD
   ========================================================= */
.contact-settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.8rem;
    margin-top: 2rem;
}

.contact-settings-card h3 {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* =========================================================
   PHONE VALIDATION UI
   ========================================================= */
.phone-input-wrapper {
    position: relative;
}

.phone-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    font-weight: 600;
}

.phone-input-padded {
    padding-left: 2.8rem !important;
}

.phone-feedback {
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: none;
}

.phone-feedback.ok {
    color: var(--success);
    display: block;
}

.phone-feedback.err {
    color: var(--danger);
    display: block;
}

/* =========================================================
   LOTTERY EXPLANATION CARD
   ========================================================= */
.lottery-explain-card {
    background: rgba(0, 192, 240, 0.06);
    border: 1px solid rgba(0, 192, 240, 0.22);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.lottery-explain-card strong {
    color: var(--accent-blue);
}

/* =========================================================
   BANK LOGO BUTTONS (shared: raffle.php + profile.php)
   ========================================================= */
.bank-logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.bank-logo-btn {
    width: 90px;
    height: 58px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s, background 0.2s;
    background: transparent;
    overflow: hidden;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-logo-btn img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

/* PayPal logo is wider — give it slightly more room */
.bank-logo-btn[data-key="paypal"] img,
.bank-logo-btn[data-bank-key="paypal"] img {
    max-height: 34px;
    padding: 2px 4px;
}

.bank-logo-btn:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 192, 240, 0.25);
    background: rgba(0, 192, 240, 0.06);
}

.bank-logo-btn.selected {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 192, 240, 0.3);
    background: rgba(0, 192, 240, 0.08);
}


/* Reveal panel for selected bank account */
.bank-account-detail {
    display: none;
    background: rgba(0, 192, 240, 0.07);
    border: 1px solid rgba(0, 192, 240, 0.3);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-top: 0.8rem;
    animation: fadeInBankDetail 0.2s ease;
}

.bank-account-detail.visible {
    display: block;
}

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

.bank-acc-number {
    font-family: monospace;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: 0.05em;
}

