:root {
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    --primary-50:  #fff0e5;
    --primary-100: #ffdec2;
    --primary-200: #ffc191;
    --primary-300: #ffa05e;
    --primary-400: #ff8c33;
    --primary-500: #F97316;
    --primary-600: #ea580c;
    --primary-700: #c2410c;
    --primary-800: #9a3412;
    --primary-900: #7c2d12;
    
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

h1 { font-size: 76px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 48px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.body-large { font-size: 20px; font-weight: 400; line-height: 1.6; }
.body { font-size: 16px; font-weight: 400; line-height: 1.7; }
.label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }

a {
    color: inherit;
    text-decoration: none;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s;
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary-600) 0%,
        var(--primary-500) 30%,
        var(--primary-400) 60%,
        var(--primary-500) 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #ffffff;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 
        0 0 0 1px rgba(249, 115, 22, 0.5),
        0 4px 24px rgba(249, 115, 22, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
    box-shadow: 
        0 0 0 2px rgba(249, 115, 22, 0.8),
        0 8px 40px rgba(249, 115, 22, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--primary-500);
    background: rgba(249, 115, 22, 0.1);
}

/* COMPONENTS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

.text-primary { color: var(--primary-500); }
.text-secondary { color: var(--text-secondary); }

.glass-card {
    background: linear-gradient(
        135deg,
        rgba(249, 115, 22, 0.08) 0%,
        rgba(249, 115, 22, 0.04) 50%,
        rgba(249, 115, 22, 0.08) 100%
    );
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.35);
    transform: translateY(-4px);
}

.glow-primary {
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.6))
            drop-shadow(0 0 40px rgba(249, 115, 22, 0.4))
            drop-shadow(0 0 60px rgba(249, 115, 22, 0.3));
}

.glow-text {
    text-shadow: 
        0 0 10px rgba(249, 115, 22, 0.8),
        0 0 20px rgba(249, 115, 22, 0.6),
        0 0 40px rgba(249, 115, 22, 0.4);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    color: var(--primary-400);
}

.hero-title {
    margin-top: 24px;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-300) 0%, var(--primary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* PARTICLES */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-500);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-500);
    animation: float-particle 20s infinite ease-in-out;
}

/* SOCIAL PROOF */
.social-proof {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(249, 115, 22, 0.1);
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
    padding: 64px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.metric-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-500);
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* SERVICES FLIP CARDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card-flip {
    background-color: transparent;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 24px;
}

.service-card-flip:hover .service-card-inner,
.service-card-flip.flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front, .service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

.service-card-front {
    background: var(--bg-secondary);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.service-card-flip:hover .service-image {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 24px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    text-align: left;
}

.service-title-front {
    color: var(--text-primary);
    margin: 0;
}

.service-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(24, 24, 27, 0.95) 100%);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.service-title-back {
    color: var(--primary-400);
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature-tag {
    background: rgba(249, 115, 22, 0.15);
    color: var(--primary-300);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    padding: 32px;
    position: relative;
}

.quote-icon {
    font-size: 48px;
    color: rgba(249, 115, 22, 0.2);
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: serif;
}

.rating {
    color: var(--primary-500);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--primary-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-400);
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(249, 115, 22, 0.2), transparent);
}

/* CTA FINAL */
.cta-final {
    background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.15) 0%, var(--bg-secondary) 70%);
    border-top: 1px solid rgba(249, 115, 22, 0.1);
    position: relative;
    overflow: hidden;
}

.pulse-btn {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* FOOTER */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(249, 115, 22, 0.2);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 24px;
}

.footer-desc {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-title {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-tertiary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ANIMATIONS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fade-in-rotate {
    0% { opacity: 0; transform: perspective(1000px) rotateY(-20deg) scale(0.95); }
    100% { opacity: 1; transform: perspective(1000px) rotateY(0) scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
    75% { transform: translateY(-30px) rotate(1deg); }
}

@keyframes float-particle {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    25% { transform: translate(100px, -100px); opacity: 0.8; }
    50% { transform: translate(-50px, -200px); opacity: 0.6; }
    75% { transform: translate(-100px, -100px); opacity: 0.8; }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 0 0 1px rgba(249, 115, 22, 0.5),
            0 4px 24px rgba(249, 115, 22, 0.4),
            0 0 60px rgba(249, 115, 22, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 2px rgba(249, 115, 22, 0.8),
            0 8px 40px rgba(249, 115, 22, 0.6),
            0 0 80px rgba(249, 115, 22, 0.5);
    }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    h1 { font-size: 56px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-label { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { padding: 40px 0; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; margin-bottom: 40px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: 0.3s;
    }
    .nav-links.active { left: 0; }
    .mobile-menu-toggle { display: flex; }
    
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    .section { padding: 80px 0; }
    
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    
    .particle:nth-child(n+20) { display: none; }
}

/* ========================================
   LIGHT THEME
   ======================================== */
[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;

    --text-primary: #1a1a2e;
    --text-secondary: #495057;
    --text-tertiary: #6c757d;
    --text-quaternary: #adb5bd;
}

[data-theme="light"] .glass-card {
    background: linear-gradient(
        135deg,
        rgba(249, 115, 22, 0.05) 0%,
        rgba(249, 115, 22, 0.02) 50%,
        rgba(249, 115, 22, 0.05) 100%
    );
    border-color: rgba(249, 115, 22, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .glass-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15);
}

[data-theme="light"] .form-control {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

[data-theme="light"] .form-control:focus {
    border-color: var(--primary-500);
    background: #fff;
}

[data-theme="light"] td {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] tr:hover td {
    background: rgba(249, 115, 22, 0.04);
}

[data-theme="light"] th {
    background: rgba(249, 115, 22, 0.08);
    color: var(--text-secondary);
}

[data-theme="light"] .sidebar {
    border-right-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active {
    background: rgba(249, 115, 22, 0.08);
}

[data-theme="light"] .sidebar-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sidebar-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .table-container {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Adaptación del logo en modo claro */
[data-theme="light"] img[alt*="Oriental Plus Cars Logo"],
[data-theme="light"] .sidebar-header img,
[data-theme="light"] .nav-brand img,
[data-theme="light"] .footer-logo {
    /* Invierte el fondo negro a blanco, rota el tono para mantener el naranja, y usa multiply para que el fondo blanco se mimetice */
    filter: invert(1) hue-rotate(180deg) contrast(1.2);
    mix-blend-mode: multiply;
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--primary-500);
    color: var(--primary-500);
}

/* ========================================
   DASHBOARD RESPONSIVE SIDEBAR
   ======================================== */

/* Hamburger button for CRM dashboards */
.hamburger-btn {
    display: none;
    background: none;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 22px;
    z-index: 1100;
    transition: all 0.3s;
}

.hamburger-btn:hover {
    background: rgba(249, 115, 22, 0.1);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* Desktop: compact sidebar with hover expand */
@media (min-width: 1025px) {
    .sidebar.compact-sidebar {
        width: 68px;
        transition: width 0.3s ease;
        overflow: hidden;
    }

    .sidebar.compact-sidebar:hover {
        width: 250px;
    }

    .sidebar.compact-sidebar .nav-item {
        white-space: nowrap;
        overflow: hidden;
    }

    .sidebar.compact-sidebar .sidebar-header img {
        max-width: 40px !important;
        transition: max-width 0.3s;
    }

    .sidebar.compact-sidebar:hover .sidebar-header img {
        max-width: 150px !important;
    }

    .sidebar.compact-sidebar .sidebar-footer {
        overflow: hidden;
    }

    .sidebar.compact-sidebar .sidebar-footer button {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main-content.compact-main {
        margin-left: 68px;
        transition: margin-left 0.3s ease;
        /* Para que no desborde verticalmente durante animación */
        width: auto;
    }

    /* ¡Esta es la clave! Cuando el sidebar es :hover, desplaza el main-content hacia la derecha */
    .sidebar.compact-sidebar:hover ~ .main-content.compact-main {
        margin-left: 250px;
    }
}

/* Tablet & Mobile */
@media (max-width: 1024px) {
    .hamburger-btn {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        padding: 20px 16px !important;
    }

    .header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .stat-card {
        padding: 16px !important;
    }

    .stat-value {
        font-size: 24px !important;
    }

    .modal {
        margin: 16px;
        max-width: calc(100% - 32px) !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Client detail grid to single column */
    .view-section .glass-card[style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Mobile specific */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    h2 {
        font-size: 22px !important;
    }

    th, td {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }

    .form-control {
        padding: 10px !important;
        font-size: 14px !important;
    }

    .btn-primary, .btn-outline {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}

