/* ===========================
   Variables CSS Personalizadas Premium
   =========================== */
:root {
    --primary: #003876;
    --primary-dark: #002558;
    --primary-light: #5B8DB8;
    --secondary: #C8102E;
    --secondary-dark: #A00D24;
    --success: #10B981;
    --info: #06B6D4;
    --warning: #F59E0B;
    --danger: #EF4444;
    --light: #F9FAFB;
    --dark: #111827;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

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

/* ===========================
   Estilos Globales Premium
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #F3F4F6;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--gray-800);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #EBF3FB 0%, #F9FAFB 100%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* ===========================
   Navbar Premium con Glassmorphism
   =========================== */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 0.625rem 0;
    transition: all 0.2s ease;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
}

.navbar-brand:hover {
    color: var(--primary);
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.375rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.875rem;
}

.navbar .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::before,
.navbar .nav-link.active::before {
    width: 80%;
}

.navbar .nav-link:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.navbar .nav-link.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    font-weight: 600;
}

/* ===========================
   Cards Premium con Glassmorphism
   =========================== */
.card {
    background: #FFFFFF;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-header {
    background: #F9FAFB;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    font-weight: 600;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
}

.card-body {
    padding: 1.5rem;
}

/* ===========================
   Botones Premium con Gradientes
   =========================== */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -2px rgba(99, 102, 241, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 2px 8px 0 rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 12px 28px -8px rgba(16, 185, 129, 0.5);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(14, 165, 233, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    box-shadow: 0 12px 28px -8px rgba(14, 165, 233, 0.5);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    box-shadow: 0 12px 28px -8px rgba(245, 158, 11, 0.5);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    box-shadow: 0 12px 28px -8px rgba(239, 68, 68, 0.5);
    color: white;
}

/* ===========================
   Tablas Premium
   =========================== */
.table {
    border-radius: 1rem;
    overflow: hidden;
    background: white;
}

.table thead th {
    background: var(--gray-50);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    color: var(--gray-700);
    border: none;
    padding: 0.75rem 1rem;
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr:hover {
    background: rgba(99, 102, 241, 0.02);
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    font-size: 0.875rem;
}

/* ===========================
   Badges Premium
   =========================== */
.badge {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    letter-spacing: 0.015em;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.2);
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success), #059669) !important;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2);
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--warning), #D97706) !important;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--danger), #DC2626) !important;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.2);
}

/* ===========================
   Formularios Premium
   =========================== */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid var(--gray-300);
    padding: 0.5rem 0.875rem;
    transition: all 0.2s ease;
    background: white;
    font-size: 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* ===========================
   Login Page Premium
   =========================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

.login-container::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.login-card {
    max-width: 480px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 2rem;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.login-card .card-body {
    padding: 3rem 2.5rem;
}

.login-card .navbar-brand {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.login-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.login-logo i {
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.card-body {
    padding: 1rem;
}

.input-group-text {
    background: #F9FAFB;
    border: 1px solid var(--gray-300);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* ===========================
   Botón Flotante de Telegram Premium
   =========================== */
.telegram-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc, #00a0e4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 12px 32px rgba(0, 136, 204, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
}

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

.telegram-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc, #00a0e4);
    z-index: -1;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.telegram-float:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 20px 48px rgba(0, 136, 204, 0.6);
    color: white;
    animation: none;
}

/* ===========================
   Stats Cards Premium
   =========================== */
.stats-card {
    background: #FFFFFF;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.stats-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}

.stats-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.75rem;
}

.stats-card-icon.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.stats-card-icon.bg-gradient-success {
    background: linear-gradient(135deg, var(--success), #059669);
}

.stats-card-icon.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning), #D97706);
}

.stats-card-icon.bg-gradient-danger {
    background: linear-gradient(135deg, var(--danger), #DC2626);
}

.stats-card-title {
    font-size: 0.8125rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.stats-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
}

.stats-card-footer {
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-100);
}

.stats-card-content {
    flex: 1;
}

/* ===========================
   Animaciones Premium
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animaciones escalonadas */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

/* ===========================
   Scrollbar Personalizado Premium
   =========================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

/* ===========================
   Utilidades Premium
   =========================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-success {
    background: linear-gradient(135deg, var(--success), #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-premium {
    box-shadow: 0 20px 50px rgba(31, 38, 135, 0.15);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.border-gradient {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, var(--primary), var(--secondary));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ===========================
   Navbar Dropdown Premium
   =========================== */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 12px 32px rgba(31, 38, 135, 0.15);
    border-radius: 1rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.navbar .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.05));
    transform: translateX(4px);
}

.navbar .dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--gray-200);
}

/* ===========================
   Service Card Premium (para vista cliente)
   =========================== */
.service-card {
    background: #FFFFFF;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.service-card.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.02);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.75rem;
}

.service-card-icon.bg-danger {
    background: linear-gradient(135deg, var(--danger), #DC2626);
}

.service-card-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.service-card-icon.bg-dark {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
}

.service-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.375rem;
}

.service-card-description {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.service-card-price {
 font-size: 0.8125rem;
    color: var(--gray-700);
    font-weight: 600;
}

/* ===========================
   Plan Card Premium
   =========================== */
.plan-card {
    background: #FFFFFF;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
}

.plan-card.popular {
    border-color: var(--primary);
    border-width: 2px;
}

.plan-card-header {
    padding: 1.5rem 1.25rem;
    text-align: center;
    color: white;
}

.plan-card-header.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.plan-card-header.bg-gradient-success {
    background: linear-gradient(135deg, var(--success), #059669);
}

.plan-card-header.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning), #D97706);
}

.plan-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.plan-card-price .amount {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.plan-card-price .currency,
.plan-card-price .period {
    font-size: 0.875rem;
    opacity: 0.9;
}

.plan-card-credits {
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    opacity: 0.9;
}

.plan-card-body {
    padding: 1.25rem 1rem;
}

.plan-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-card-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

.plan-card-features li:last-child {
    border-bottom: none;
}

.plan-card-footer {
    padding: 1rem;
    background: var(--gray-50);
}

.plan-badge {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--warning);
    color: white;
    padding: 0.5rem 3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ===========================
   Alert Premium
   =========================== */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-left: 3px solid;
}

.alert-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.05));
    border-left-color: var(--info);
    color: #0369a1;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border-left-color: var(--success);
    color: #047857;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    border-left-color: var(--warning);
    color: #b45309;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border-left-color: var(--danger);
    color: #b91c1c;
}

/* ===========================
   Contenedor Principal
   =========================== */
main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 80px);
}

/* ===========================
   Breadcrumb Premium
   =========================== */
.breadcrumb {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: var(--primary);
    font-size: 1.25rem;
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* ===========================
   Modal Premium
   =========================== */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
    background: var(--gray-50);
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
}

/* ===========================
   Empty State
   =========================== */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
    display: inline-block;
}

.empty-state h5 {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ===========================
   Responsive Premium
   =========================== */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .stats-card .stats-value {
        font-size: 2rem;
    }
    
    .stats-card .stats-icon {
        font-size: 2.5rem;
    }
    
    .telegram-float {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .login-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .plan-card .plan-price {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .stats-card .stats-value {
        font-size: 1.75rem;
    }
}

/* ===========================
   Efectos de Carga
   =========================== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.5rem;
}

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

/* ===========================
   Tooltips Custom
   =========================== */
.tooltip-inner {
    background: var(--gray-900);
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--gray-900);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--gray-900);
}
/* ===========================
   Navbar Brand Icon - Premium
   =========================== */
.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    transition: all 0.2s ease;
}

.brand-icon:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.brand-text {
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text strong {
    font-weight: 800;
}

/* ===========================
   User Dropdown - Premium Avatar
   =========================== */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem !important;
    border-radius: 1.5rem !important;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.user-dropdown:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

.user-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.875rem;
    display: block;
}

.user-role {
    font-size: 0.6875rem;
    color: var(--gray-600);
    display: block;
    margin-top: -2px;
}

/* ===========================
   Credit Badge - Premium Display
   =========================== */
.credit-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    padding: 0.375rem 0.875rem;
    transition: all 0.2s ease;
}

.credit-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.credit-badge i {
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--warning), #FCD34D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credit-badge-content {
    display: flex;
    flex-direction: column;
}

.credit-badge-label {
    font-size: 0.6875rem;
    color: var(--gray-600);
    font-weight: 500;
    line-height: 1;
}

.credit-badge-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

/* Animación de actualización de créditos */
.credit-updated {
    animation: creditPulse 1s ease-in-out;
}

@keyframes creditPulse {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===========================
   Dropdown Menu Premium
   =========================== */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 200px;
    margin-top: 0.375rem !important;
}

.dropdown-header {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.375rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 0.375rem;
}

.dropdown-header strong {
    color: var(--gray-800);
    font-size: 0.875rem;
}

.dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    transform: translateX(3px);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.875rem;
}

.dropdown-divider {
    margin: 0.375rem 0;
    opacity: 0.15;
}

/* ===========================
   Page Header Premium
   =========================== */
.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.page-header h2 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* ===========================
   Credit Overview Card - Client Dashboard
   =========================== */
.credit-overview-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.1);
    transition: all 0.2s ease;
}

.credit-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.credit-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.credit-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--warning), #FCD34D);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.credit-overview-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.credit-amount {
    display: flex;
    flex-direction: column;
}

.credit-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.credit-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-top: 0.25rem;
}

.credit-type {
    margin-top: 0.5rem;
}

.credit-overview-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

/* ===========================
   Stats Mini Card
   =========================== */
.stats-mini-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.stats-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stats-mini-card.bg-gradient-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.2);
}

.stats-mini-card.bg-gradient-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.2);
}

.stats-mini-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
}

.bg-gradient-success .stats-mini-icon {
    background: linear-gradient(135deg, var(--success), #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.bg-gradient-warning .stats-mini-icon {
    background: linear-gradient(135deg, var(--warning), #D97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.stats-mini-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--gray-800);
    line-height: 1;
}

.stats-mini-title {
    font-size: 0.8125rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-top: 0.125rem;
}

/* ===========================
   Empty State
   =========================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    display: block;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state h5 {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ===========================
   User Management Styles
   =========================== */

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.form-switch .form-check-input {
    cursor: pointer;
    width: 2.5rem;
    height: 1.25rem;
}

.form-switch .form-check-input:checked {
    background-color: var(--success);
    border-color: var(--success);
}

.form-switch .form-check-label {
    margin-left: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
}
