/* ============================================
   CONECTA_DIAL - DISEÑO MÓVIL NATIVO + RESPONSIVE
   Estilos Premium basados en Flota360
   ============================================ */

/* ============================================
   VARIABLES - TEMA OSCURO (Default)
   ============================================ */

:root, [data-theme="dark"] {
    /* Paleta de colores principal */
    --primary: #DC2626;
    --primary-dark: #B02A37;
    --primary-light: #E35D6A;
    --primary-glow: rgba(220, 53, 69, 0.3);
    
    /* Colores de fondo */
    --bg-body: #0D0D0D;
    --bg-card: #1A1A1A;
    --bg-card-hover: #242424;
    --bg-surface: #141414;
    --bg-elevated: #1E1E1E;
    --bg-input: #141414;
    --bg-bottomnav: rgba(13, 13, 13, 0.95);
    
    /* Colores de texto */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #6B6B6B;
    --text-dark: #1a1a2e;
    
    /* Bordes */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-input: rgba(255, 255, 255, 0.15);
    
    /* Estados */
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --success-border: rgba(16, 185, 129, 0.2);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --warning-border: rgba(245, 158, 11, 0.2);
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --danger-border: rgba(239, 68, 68, 0.2);
    --info: #3B82F6;
    --info-bg: rgba(59, 130, 246, 0.1);
    --info-border: rgba(59, 130, 246, 0.2);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --shadow-bottomnav: 0 -4px 30px rgba(0, 0, 0, 0.5);
    
    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Bordes redondeados */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Scrollbar */
    --scrollbar-track: #0D0D0D;
    --scrollbar-thumb: #242424;
    
    /* Btn close */
    --btn-close-filter: invert(1);
    
    /* Safe areas para móviles */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    
    /* Bottom nav height */
    --bottom-nav-height: 70px;
}

/* ============================================
   VARIABLES - TEMA CLARO
   ============================================ */

[data-theme="light"] {
    --primary: #DC2626;
    --primary-dark: #B02A37;
    --primary-light: #E35D6A;
    --primary-glow: rgba(220, 53, 69, 0.2);
    
    --bg-body: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8F9FA;
    --bg-surface: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-input: #FFFFFF;
    --bg-bottomnav: rgba(255, 255, 255, 0.95);
    
    --text-primary: #1A1A2E;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-dark: #1a1a2e;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    --border-input: rgba(0, 0, 0, 0.15);
    
    --success: #059669;
    --success-bg: rgba(5, 150, 105, 0.1);
    --success-border: rgba(5, 150, 105, 0.2);
    --warning: #D97706;
    --warning-bg: rgba(217, 119, 6, 0.1);
    --warning-border: rgba(217, 119, 6, 0.2);
    --danger: #DC2626;
    --danger-bg: rgba(220, 38, 38, 0.1);
    --danger-border: rgba(220, 38, 38, 0.2);
    --info: #2563EB;
    --info-bg: rgba(37, 99, 235, 0.1);
    --info-border: rgba(37, 99, 235, 0.2);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --shadow-bottomnav: 0 -4px 30px rgba(0, 0, 0, 0.1);
    
    --scrollbar-track: #F5F7FA;
    --scrollbar-thumb: #CBD5E1;
    
    --btn-close-filter: none;
}

/* ============================================
   ESTILOS BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overscroll-behavior-y: contain;
    padding-top: var(--safe-area-top);
}

/* Padding bottom para bottom nav en móviles */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 10px);
    }
}

/* ============================================
   TOGGLE DE TEMA
   ============================================ */

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-normal);
    color: var(--text-secondary);
    margin-right: 12px;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--primary);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

[data-theme="dark"] .theme-icon-light { display: inline-block; }
[data-theme="dark"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: inline-block; }

/* ============================================
   NAVBAR PREMIUM - DESKTOP
   ============================================ */

.navbar-premium {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
    display: flex;
    overflow: visible;
}

.navbar-premium .container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition-normal);
}

.navbar-brand-premium:hover {
    transform: translateY(-1px);
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.brand-icon i {
    font-size: 1.4rem;
    color: white;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navegación Desktop */
.nav-premium {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link-premium {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    position: relative;
}

.nav-link-premium i {
    font-size: 1.1rem;
}

.nav-link-premium:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link-premium.active {
    color: var(--primary);
    background: rgba(220, 53, 69, 0.1);
}

.nav-link-premium.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Usuario dropdown */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-normal);
    min-height: 40px;
}

.user-menu:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.user-menu:active {
    transform: scale(0.98);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar i {
    font-size: 1.1rem;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-role {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 500;
    line-height: 1.2;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

/* Por defecto el menú debe estar oculto */
.dropdown-menu-premium {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    transform: translateY(-5px);
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    z-index: 1050 !important;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 220px;
    margin-top: 8px !important;
}

/* Cuando el contenedor dropdown tiene la clase .show, se muestra */
.dropdown.show .dropdown-menu-premium {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    min-height: 44px;
}

.dropdown-item-premium:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.dropdown-item-premium:active {
    transform: scale(0.98);
}

.dropdown-item-premium.danger {
    color: var(--danger);
}

.dropdown-item-premium.danger:hover {
    background: var(--danger-bg);
}

.dropdown-divider-premium {
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* ============================================
   BOTTOM NAVIGATION - MÓVIL (Estilo iOS/Android)
   ============================================ */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-bottomnav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 8px 0 calc(8px + var(--safe-area-bottom));
    z-index: 9999;
    box-shadow: var(--shadow-bottomnav);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 8px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-lg);
    transition: var(--transition-bounce);
    min-width: 64px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
    transition: var(--transition-bounce);
}

.bottom-nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition-normal);
}

.bottom-nav-item:active {
    transform: scale(0.9);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

/* Ripple effect para touch */
.bottom-nav-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bottom-nav-item:active::after {
    opacity: 0.1;
}

/* Botón central especial (más) */
.bottom-nav-item.nav-more {
    position: relative;
}

.bottom-nav-item.nav-more i {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 2px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* ============================================
   MOBILE HEADER SIMPLIFICADO
   ============================================ */

.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mobile-brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.mobile-brand-icon i {
    font-size: 1.1rem;
    color: white;
}

.mobile-brand-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.mobile-action-btn:active {
    transform: scale(0.95);
    background: var(--bg-card-hover);
}

.mobile-action-btn i {
    font-size: 1.1rem;
}

/* ============================================
   MOBILE MENU OVERLAY (Full Screen)
   ============================================ */

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-body);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: var(--safe-area-top) var(--safe-area-right) var(--safe-area-bottom) var(--safe-area-left);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.mobile-menu-close:active {
    transform: scale(0.95);
    background: var(--danger-bg);
    color: var(--danger);
}

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    margin: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.mobile-menu-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-avatar i {
    font-size: 1.5rem;
    color: white;
}

.mobile-menu-user-info {
    flex: 1;
}

.mobile-menu-user-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.mobile-menu-user-role {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu-nav {
    padding: 8px 16px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    margin-bottom: 4px;
}

.mobile-menu-item:active {
    transform: scale(0.98);
    background: var(--bg-card);
}

.mobile-menu-item.active {
    background: rgba(220, 53, 69, 0.1);
    color: var(--primary);
}

.mobile-menu-item i {
    font-size: 1.4rem;
    width: 28px;
    text-align: center;
}

.mobile-menu-item span {
    font-size: 1rem;
    font-weight: 500;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px;
}

.mobile-menu-item.danger {
    color: var(--danger);
}

.mobile-menu-item.danger:active {
    background: var(--danger-bg);
}

/* Theme toggle en menú móvil */
.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin: 0 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.mobile-theme-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.mobile-theme-toggle-label i {
    font-size: 1.3rem;
}

.mobile-theme-toggle-label span {
    font-size: 0.95rem;
    font-weight: 500;
}

.theme-switch {
    width: 52px;
    height: 28px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);
}

.theme-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-bounce);
}

[data-theme="light"] .theme-switch {
    background: var(--primary);
    border-color: var(--primary);
}

[data-theme="light"] .theme-switch::after {
    transform: translateX(24px);
    background: white;
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */

.main-container {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Asegurar que el contenido no se desborde */
@media (min-width: 1200px) {
    .main-container {
        padding: 32px;
    }
}

/* ============================================
   CARDS PREMIUM
   ============================================ */

.card-premium, .premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card-premium:hover, .premium-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.card-header-premium {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.premium-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 20px;
    font-weight: 600;
}

.premium-card-header-info {
    background: linear-gradient(135deg, var(--info) 0%, #2563EB 100%);
    color: white;
    padding: 16px 20px;
    font-weight: 600;
}

.premium-card-header-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 16px 20px;
    font-weight: 600;
}

.premium-card-header-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #D97706 100%);
    color: white;
    padding: 16px 20px;
    font-weight: 600;
}

.card-title-premium {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-title-premium i {
    color: var(--primary);
}

.card-body-premium {
    padding: 20px;
}

.card-gradient {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
}

/* Card de estadísticas */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-card:active {
    transform: scale(0.98);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-card-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-card-icon.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stat-card-icon.success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.stat-card-icon.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #D97706 100%);
}

.stat-card-icon.info {
    background: linear-gradient(135deg, var(--info) 0%, #2563EB 100%);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card-sublabel {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   TABLAS PREMIUM
   ============================================ */

.table-premium, .premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-premium thead th, .premium-table thead th {
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-premium tbody td, .premium-table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.875rem;
    vertical-align: middle;
}

.table-premium tbody tr, .premium-table tbody tr {
    transition: var(--transition-fast);
}

.table-premium tbody tr:hover, .premium-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.table-premium tbody tr:active, .premium-table tbody tr:active {
    background: var(--bg-card);
}

.table-premium tbody tr:last-child td, .premium-table tbody tr:last-child td {
    border-bottom: none;
}

.table-secondary td {
    background: var(--bg-surface) !important;
}

/* ============================================
   FORMULARIOS PREMIUM
   ============================================ */

.form-label-premium, .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control-premium, .premium-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input) !important;
    border: 1px solid var(--border-input) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    font-size: 16px; /* Previene zoom en iOS */
    font-family: inherit;
    transition: var(--transition-normal);
    min-height: 48px;
}

.form-control-premium:focus, .premium-input:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

.form-control-premium::placeholder, .premium-input::placeholder {
    color: var(--text-muted) !important;
}

.form-select-premium {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23A0A0A0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 44px;
}

/* ============================================
   BOTONES PREMIUM
   ============================================ */

.btn-premium, .premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    min-height: 48px;
    padding: 12px 24px;
    -webkit-tap-highlight-color: transparent;
}

.premium-btn:hover, .btn-premium:hover {
    transform: translateY(-2px);
}

.premium-btn:active, .btn-premium:active {
    transform: scale(0.98);
}

.btn-primary-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
    border: none;
}

.btn-primary-premium:hover {
    box-shadow: 0 6px 25px var(--primary-glow);
    color: white;
}

.btn-secondary-premium, .premium-btn-outline {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary-premium:hover, .premium-btn-outline:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.btn-success-premium {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border: none;
}

.btn-success-premium:hover {
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-danger-premium {
    background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
    color: white;
    border: none;
}

.btn-danger-premium:hover {
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.3);
    color: white;
}

.btn-sm-premium, .premium-btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-height: 40px;
    border-radius: var(--radius-sm);
}

.btn-lg-premium {
    padding: 16px 32px;
    font-size: 1rem;
    min-height: 56px;
}

/* Compatibilidad con clases antiguas */
.btn-primary {
    background: #DC2626 !important;
    color: white !important;
    border: none !important;
}

.btn-secondary {
    background: #DC2626 !important;
    color: white !important;
    border: none !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%) !important;
    color: white !important;
    border: none !important;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-normal);
    min-height: 48px;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ============================================
   BADGES PREMIUM
   ============================================ */

.badge-premium, .premium-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(220, 53, 69, 0.15);
    color: var(--primary);
}

.badge-success, .bg-success {
    background: var(--success-bg) !important;
    color: var(--success) !important;
}

.badge-warning, .bg-warning {
    background: var(--warning-bg) !important;
    color: var(--warning) !important;
}

.badge-danger, .bg-danger {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
}

.badge-info, .bg-info {
    background: var(--info-bg) !important;
    color: var(--info) !important;
}

.badge-secondary, .bg-secondary {
    background: rgba(160, 160, 160, 0.15) !important;
    color: var(--text-secondary) !important;
}

/* ============================================
   ALERTAS PREMIUM
   ============================================ */

.alert-premium, .premium-alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    border: none;
}

.alert-premium i, .premium-alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success-premium, .alert-success, .premium-alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

.alert-danger-premium, .alert-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
}

.alert-warning-premium, .alert-warning, .premium-alert-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning);
}

.alert-info-premium, .alert-info, .premium-alert-info {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: var(--info);
}

.error {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border-left: 4px solid var(--danger);
    font-size: 14px;
}

.success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border-left: 4px solid var(--success);
    font-size: 14px;
}

/* ============================================
   MODALES PREMIUM
   ============================================ */

.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

.modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.premium-modal {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.premium-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom: none;
    padding: 16px 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-elevated);
}

.modal .form-control,
.modal .form-select,
.modal .premium-input {
    background: var(--bg-input) !important;
    border-color: var(--border-input) !important;
    color: var(--text-primary) !important;
    position: relative;
    z-index: 1;
}

.modal .form-control:focus,
.modal .form-select:focus,
.modal .premium-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

.btn-close-white {
    filter: invert(1) !important;
}

.modal .btn,
.modal button,
.modal select,
.modal input {
    position: relative;
    z-index: 1;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
    }
    
    .modal-content {
        border-radius: 0;
        min-height: 100vh;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* ============================================
   PÁGINA HEADER
   ============================================ */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.page-title i {
    color: var(--primary);
}

/* ============================================
   UTILIDADES
   ============================================ */

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-dark { color: var(--text-dark) !important; }

.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

.btn-close {
    filter: var(--btn-close-filter);
}

/* Hide desktop nav on mobile, show mobile elements */
.desktop-only { display: flex; }
.mobile-only { display: none !important; }

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 991px) {
    .navbar-premium .container-fluid {
        flex-wrap: wrap;
        padding: 0 16px;
    }
    
    .nav-premium {
        display: none;
    }
    
    .user-info {
        display: none;
    }
}

/* Mejoras para desktop */
@media (min-width: 992px) {
    /* Ocultar elementos móviles en desktop */
    .mobile-header {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .bottom-nav {
        display: none !important;
    }
    
    .navbar-premium {
        padding: 0.75rem 0;
    }
    
    .navbar-premium .container-fluid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 24px;
    }
    
    .main-container {
        padding: 20px 24px;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .stats-grid,
    .mobile-app-grid {
        gap: 16px !important;
        margin-bottom: 24px !important;
    }
    
    .stat-card {
        padding: 14px !important;
    }
    
    .stat-card-icon {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 10px !important;
    }
    
    .stat-card-icon i {
        font-size: 1.1rem !important;
    }
    
    .stat-card-value {
        font-size: 1.4rem !important;
        margin: 6px 0 4px !important;
        line-height: 1.2 !important;
    }
    
    .stat-card-label {
        font-size: 0.75rem !important;
    }
    
    .nav-premium {
        gap: 8px;
        flex: 1;
        justify-content: center;
    }
    
    .nav-link-premium {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .user-menu {
        margin-left: auto;
        padding: 8px 12px;
        min-height: 44px;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 1.15rem;
    }
    
    .brand-subtitle {
        font-size: 0.65rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .user-avatar i {
        font-size: 1.1rem;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .user-role {
        font-size: 0.7rem;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL
   ============================================ */

@media (max-width: 768px) {
    /* Mostrar elementos móviles */
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    /* Ocultar navbar desktop, mostrar header móvil */
    .navbar-premium { display: none; }
    .mobile-header { display: block; }
    .bottom-nav { display: block; }
    .mobile-menu-overlay { display: block; }
    
    /* Contenedor principal */
    .main-container {
        padding: 16px;
        padding-bottom: 16px;
    }
    
    /* Page header móvil */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    /* Stats grid móvil */
    .stats-grid,
    .mobile-app-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 0 !important;
    }
    
    .stat-card {
        padding: 20px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 16px !important;
        position: relative !important;
        overflow: hidden !important;
        min-height: auto !important;
        height: auto !important;
        aspect-ratio: auto !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    }
    
    .stat-card:active {
        transform: scale(0.97) !important;
        background: var(--bg-card-hover) !important;
    }
    
    .stat-card-icon {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 12px !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .stat-card-icon i {
        font-size: 1.3rem !important;
        color: white !important;
    }
    
    .stat-card-value {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
        line-height: 1 !important;
        color: var(--text-primary) !important;
    }
    
    .stat-card-label {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: var(--text-secondary) !important;
    }
    
    .stat-card-sublabel {
        display: none !important;
    }
    
    /* Cards generales en móvil */
    .card-body-premium {
        padding: 16px;
    }
    
    .card-header-premium,
    .premium-card-header,
    .premium-card-header-info,
    .premium-card-header-success,
    .premium-card-header-warning {
        padding: 14px 16px;
    }
    
    /* Ocultar/Mostrar en móvil */
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    .show-mobile-flex {
        display: flex !important;
    }
    
    .show-mobile-grid {
        display: grid !important;
    }
    
    /* Tablas responsive */
    .table-responsive-premium {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    /* Tabla con scroll horizontal en móvil */
    .section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .section > h2 {
        margin-left: 0;
        margin-right: 0;
    }
    
    .table-premium {
        min-width: 700px;
        width: 100%;
    }
    
    .table-premium tbody td,
    .premium-table tbody td {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .table-premium thead th,
    .premium-table thead th {
        padding: 12px 8px;
        font-size: 0.7rem;
    }
    
    /* Botones móviles */
    .btn-premium, .premium-btn, .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    /* Formularios móviles */
    .form-control-premium, .premium-input, input, textarea, select {
        font-size: 16px;
        padding: 14px 16px;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL PEQUEÑO (≤576px)
   ============================================ */

@media (max-width: 576px) {
    .main-container {
        padding: 12px;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
    
    .stats-grid,
    .mobile-app-grid {
        gap: 12px !important;
    }
    
    .stat-card {
        padding: 16px 10px !important;
        border-radius: 14px !important;
    }
    
    .stat-card-icon {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 10px !important;
        border-radius: 12px !important;
    }
    
    .stat-card-icon i {
        font-size: 1.2rem !important;
    }
    
    .stat-card-value {
        font-size: 1.35rem !important;
    }
    
    .stat-card-label {
        font-size: 0.65rem !important;
    }
    
    .card-body-premium {
        padding: 14px;
    }
    
    .bottom-nav-item span {
        font-size: 0.58rem;
    }
    
    .bottom-nav-item i {
        font-size: 1.25rem;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL MUY PEQUEÑO (≤375px)
   ============================================ */

@media (max-width: 375px) {
    .main-container {
        padding: 10px;
    }
    
    .stats-grid,
    .mobile-app-grid {
        gap: 10px !important;
    }
    
    .stat-card {
        padding: 14px 8px !important;
        border-radius: 12px !important;
    }
    
    .stat-card-icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
    }
    
    .stat-card-icon i {
        font-size: 1.1rem !important;
    }
    
    .stat-card-value {
        font-size: 1.25rem !important;
    }
    
    .stat-card-label {
        font-size: 0.6rem !important;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.slide-up {
    animation: slideUp 0.3s ease forwards;
}

.slide-down {
    animation: slideDown 0.3s ease forwards;
}

.scale-in {
    animation: scaleIn 0.2s ease forwards;
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   SCROLLBAR PERSONALIZADO
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Ocultar scrollbar en móvil pero mantener funcionalidad */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA CONECTA_DIAL
   ============================================ */

/* Tipificación buttons */
.tipification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.tipification-button {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-normal);
}

.tipification-button:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.tipification-button.selected {
    border-color: var(--primary);
    background: rgba(220, 53, 69, 0.1);
}

.tipification-button-text {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.tipification-button.selected .tipification-button-text {
    color: var(--primary);
    font-weight: 600;
}

/* Line type buttons */
.line-type-section {
    margin-bottom: 20px;
}

.line-type-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.line-type-btn {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-normal);
    background: var(--bg-card);
    color: var(--text-primary);
}

.line-type-btn.claro {
    border-color: var(--primary);
    color: var(--primary);
}

.line-type-btn.claro:hover {
    background: var(--primary);
    color: white;
}

.line-type-btn.claro.selected {
    background: var(--primary);
    color: white;
}

.line-type-btn.tigo {
    border-color: var(--info);
    color: var(--info);
}

.line-type-btn.tigo:hover {
    background: var(--info);
    color: white;
}

.line-type-btn.tigo.selected {
    background: var(--info);
    color: white;
}

/* Contact card */
.contact-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.contact-info {
    margin-bottom: 20px;
}

.phone-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 15px 0;
}

/* Form sections */
.form-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

/* No contact message */
.no-contact {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Footer */
.footer-premium {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 12px 24px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.footer-brand i {
    font-size: 1.1rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer-version {
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 3px 8px;
    background: var(--bg-card);
    border-radius: 50px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

