/* =========================================================
   TechDoctor - Premium HealthTech CSS
   Brand: Blue (#0066FF), White, Light Green (#00C853)
   Style: Glassmorphism + Soft Shadows + Clean Medical
   ========================================================= */

/* === CSS Variables === */
:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #E6F0FF;
    --secondary: #00C853;
    --secondary-dark: #00A844;
    --secondary-light: #E8F5E9;
    --accent: #7C4DFF;
    --danger: #FF3D57;
    --warning: #FFA726;
    --info: #29B6F6;

    --bg: #F0F4F8;
    --bg-dark: #0A1628;
    --card: rgba(255, 255, 255, 0.85);
    --card-solid: #FFFFFF;
    --text: #1A2332;
    --text-light: #5A6B80;
    --text-muted: #8E99A4;
    --border: rgba(0, 102, 255, 0.08);

    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 102, 255, 0.08);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 72px;
}

/* === Global Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-light { color: var(--text-light) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
}

.nav-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Nav Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-toggle i {
    transition: var(--transition);
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px !important;
    border-radius: var(--radius) !important;
    color: var(--text) !important;
    background: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

.nav-dropdown-menu a i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary);
    opacity: 0.7;
}

.nav-dropdown-menu a:hover i {
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 28px rgba(0, 102, 255, 0.4);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 28px rgba(0, 200, 83, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-xl { padding: 18px 44px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 12px; border-radius: var(--radius); }

/* === Cards (Glassmorphism) === */
.card {
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-glass {
    background: var(--glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--glass-shadow);
}

.card-solid {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.card-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #4A90FF 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.25);
}

.card-gradient.green {
    background: linear-gradient(135deg, var(--secondary) 0%, #4CAF50 100%);
    box-shadow: 0 8px 32px rgba(0, 200, 83, 0.25);
}

.card-gradient.purple {
    background: linear-gradient(135deg, var(--accent) 0%, #B388FF 100%);
    box-shadow: 0 8px 32px rgba(124, 77, 255, 0.25);
}

.card-gradient.danger {
    background: linear-gradient(135deg, var(--danger) 0%, #FF6B6B 100%);
    box-shadow: 0 8px 32px rgba(255, 61, 87, 0.25);
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 60%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.04) 0%, transparent 60%);
    z-index: 0;
}

.hero-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    text-align: left;
}

.hero-stat .number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-dashboard-preview {
    width: 100%;
    max-width: 560px;
    background: var(--card-solid);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.hero-dashboard-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), #4A90FF);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-dashboard-header h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-dashboard-body {
    padding: 20px;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.mini-stat {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg);
    border-radius: var(--radius);
}

.mini-stat .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.mini-stat .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-stat.danger .value { color: var(--danger); }
.mini-stat.success .value { color: var(--secondary); }
.mini-stat.primary .value { color: var(--primary); }

.mini-chart {
    height: 120px;
    background: var(--bg);
    border-radius: var(--radius);
    display: flex;
    align-items: flex-end;
    padding: 12px;
    gap: 4px;
}

.mini-chart .bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary), rgba(0, 102, 255, 0.3));
    border-radius: 4px 4px 0 0;
    min-height: 8px;
    animation: barGrow 1.5s ease-out forwards;
}

/* Floating elements around hero dashboard */
.float-card {
    position: absolute;
    background: var(--card-solid);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.float-card.top-left {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}

.float-card.top-right {
    top: 5%;
    right: -20px;
    animation-delay: 1s;
}

.float-card.bottom-left {
    bottom: 15%;
    left: -40px;
    animation-delay: 2s;
}

.float-card .icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.float-card .icon.blue { background: var(--primary-light); color: var(--primary); }
.float-card .icon.green { background: var(--secondary-light); color: var(--secondary); }
.float-card .icon.red { background: #FFEBEE; color: var(--danger); }

.float-card .info .title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.float-card .info .desc {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* === Section Layout === */
.section {
    padding: 100px 0;
}

.section-sm {
    padding: 60px 0;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* === Grid System === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* === Feature Cards === */
.feature-card {
    background: var(--card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.feature-icon.blue { background: var(--primary-light); color: var(--primary); }
.feature-icon.green { background: var(--secondary-light); color: var(--secondary); }
.feature-icon.purple { background: #EDE7F6; color: var(--accent); }
.feature-icon.red { background: #FFEBEE; color: var(--danger); }
.feature-icon.orange { background: #FFF3E0; color: var(--warning); }

.feature-card h4 {
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === Service Cards === */
.service-card {
    background: var(--card-solid);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--primary);
}

.service-card .icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-light), rgba(0, 200, 83, 0.1));
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* === Stats Section === */
.stats-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1A2E4A 100%);
    color: white;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item .number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* === Pricing Cards === */
.pricing-card {
    background: var(--card-solid);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 40px rgba(0, 102, 255, 0.15);
    transform: scale(1.05);
}

.pricing-card.featured .popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card .plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.pricing-card .price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-card .period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-light);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* === Product Grid === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* === Product Cards === */
.product-card {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h4 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.product-info > p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features {
    margin-bottom: 16px;
    flex: 1;
}

.product-features .feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--text-light);
}

.product-features .feat-item i {
    color: var(--secondary);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.product-price .current {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.product-price .original {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price .discount {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success);
    background: #E8F5E9;
    padding: 2px 8px;
    border-radius: 12px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-actions .btn { flex: 1; justify-content: center; }

.product-stock {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 10px;
    font-weight: 600;
}

/* === Dashboard Layout === */
.dashboard,
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--header-height);
}

.dashboard-layout {
    padding-top: 0;
}

.sidebar {
    width: 260px;
    background: var(--card-solid);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
}

.dashboard-layout .sidebar {
    top: 0;
}

.sidebar-nav {
    list-style: none;
    padding: 0 12px;
}

.sidebar-nav li {
    margin-bottom: 2px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-nav a.active {
    background: var(--primary);
    color: white;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

.sidebar-label {
    padding: 16px 16px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

.dashboard-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.dashboard-header h2 {
    font-size: 1.8rem;
}

/* === Dashboard Stat Cards === */
.stat-card {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-card .stat-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-card .stat-change {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.stat-card .stat-change.up {
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

.stat-card .stat-change.down {
    background: #FFEBEE;
    color: var(--danger);
}

/* === Health Data Cards === */
.health-card {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
}

.health-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.health-card-header h4 {
    font-size: 0.95rem;
    color: var(--text-light);
}

.health-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.health-value.normal { color: var(--secondary); }
.health-value.warning { color: var(--warning); }
.health-value.critical { color: var(--danger); }

.health-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.health-chart {
    margin-top: 16px;
    height: 80px;
}

/* === Table === */
.table-container {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--bg);
    padding: 14px 20px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 14px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.table tbody tr:hover {
    background: var(--primary-light);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* === Forms === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 4px;
}

/* === Badge / Status === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--secondary-light); color: var(--secondary-dark); }
.badge-warning { background: #FFF3E0; color: #E65100; }
.badge-danger { background: #FFEBEE; color: var(--danger); }
.badge-info { background: #E3F2FD; color: #1565C0; }

/* === Video Call UI === */
.video-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    height: calc(100vh - var(--header-height) - 48px);
}

.video-main {
    background: #000;
    border-radius: var(--radius-lg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-self {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 150px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid white;
}

.video-self video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
}

.video-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.15);
}

.video-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-controls button.end-call {
    background: var(--danger);
    width: 56px;
    height: 56px;
}

.video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-patient-info {
    background: var(--card-solid);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
}

.video-chat {
    flex: 1;
    background: var(--card-solid);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.video-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.video-chat-input {
    padding: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.video-chat-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    outline: none;
}

/* === Footer === */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

/* === Alerts/Toast === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: var(--secondary-light); color: #1B5E20; border-left: 4px solid var(--secondary); }
.alert-danger { background: #FFEBEE; color: #B71C1C; border-left: 4px solid var(--danger); }
.alert-warning { background: #FFF3E0; color: #E65100; border-left: 4px solid var(--warning); }
.alert-info { background: #E3F2FD; color: #0D47A1; border-left: 4px solid var(--info); }

.toast {
    position: fixed;
    top: 90px;
    right: 24px;
    min-width: 300px;
    padding: 16px 20px;
    background: var(--card-solid);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    transform: translateX(120%);
    transition: var(--transition);
}

.toast.show {
    transform: translateX(0);
}

/* === Loading/Spinner === */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* === Animations === */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes barGrow {
    from { height: 0; }
    to { height: var(--h); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* === Auth Pages === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 50%, var(--secondary-light) 100%);
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--card-solid);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
}

.auth-card .logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border);
}

/* === Report page === */
.report-card {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.report-card:hover {
    box-shadow: var(--shadow-md);
}

.report-severity {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.report-severity.normal { background: var(--secondary); }
.report-severity.mild { background: var(--info); }
.report-severity.moderate { background: var(--warning); }
.report-severity.severe { background: #FF6B6B; }
.report-severity.critical { background: var(--danger); }

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show,
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-solid);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.show .modal,
.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: #FFEBEE;
    color: var(--danger);
}

.modal-body {
    margin-bottom: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* === Hero Banner === */
.hero.hero-banner {
    min-height: 90vh;
    padding-top: var(--header-height);
    position: relative;
    display: flex;
    align-items: center;
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 15, 50, 0.92) 0%, rgba(0, 40, 100, 0.88) 50%, rgba(0, 60, 160, 0.85) 100%);
}

.hero.hero-banner .hero-container {
    display: flex;
    justify-content: center;
    max-width: 900px;
    text-align: center;
}

.hero.hero-banner .hero-content {
    max-width: 800px;
}

.hero.hero-banner h1 {
    color: white;
    font-size: 4rem;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero.hero-banner p {
    color: rgba(255,255,255,0.88);
    font-size: 1.2rem;
    max-width: 680px;
    margin: 0 auto 36px;
}

.hero.hero-banner .hero-badge {
    background: rgba(255,255,255,0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero.hero-banner .hero-badge .pulse {
    background: #00E676;
}

.hero.hero-banner .hero-actions {
    justify-content: center;
}

.hero.hero-banner .hero-stats {
    justify-content: center;
    gap: 48px;
}

.hero.hero-banner .hero-stat .number {
    color: white;
    font-size: 2.2rem;
}

.hero.hero-banner .hero-stat .label {
    color: rgba(255,255,255,0.65);
}

/* === Trusted By === */
.trusted-by {
    padding: 40px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.trusted-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 24px;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.7;
    transition: var(--transition);
}

.trust-item:hover {
    opacity: 1;
}

.trust-item i {
    font-size: 1.4rem;
}

/* === How It Works Timeline === */
.how-it-works-section {
    background: var(--primary-light);
}

.steps-timeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    justify-content: center;
}

.step-card {
    flex: 1;
    max-width: 360px;
    background: var(--card-solid);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
    position: absolute;
    top: 20px;
    right: 24px;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.step-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.step-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 4px 0;
}

.step-features li i {
    color: var(--secondary);
    font-size: 0.75rem;
}

.step-connector {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0.4;
}

/* === Feature Showcase (alternating) === */
.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-showcase.reverse {
    direction: rtl;
}

.feature-showcase.reverse > * {
    direction: ltr;
}

.showcase-mock {
    background: var(--card-solid);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.showcase-mock-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), #4A90FF);
    display: flex;
    gap: 6px;
    align-items: center;
}

.showcase-mock-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.showcase-mock-body {
    padding: 24px;
}

.feature-showcase-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.feature-showcase-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
}

.check-item i {
    color: var(--secondary);
    font-size: 1rem;
}

/* === Testimonials === */
.testimonial-card {
    background: var(--card-solid);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #FFC107;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    gap: 2px;
}

.testimonial-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #4A90FF 50%, var(--secondary) 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 32px;
}

.cta-section .btn {
    background: white;
    color: var(--primary);
    font-weight: 700;
}

.cta-section .btn:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .video-container { grid-template-columns: 1fr; }
    .video-sidebar { display: none; }
    .feature-showcase { grid-template-columns: 1fr; gap: 32px; }
    .feature-showcase.reverse { direction: ltr; }
    .steps-timeline { flex-direction: column; align-items: center; }
    .step-connector { transform: rotate(90deg); padding: 12px 0; }
    .step-card { max-width: 100%; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2.5rem; }

    .nav-links { 
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--card-solid);
        flex-direction: column;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        gap: 2px;
        z-index: 999;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }
    .nav-actions .btn { display: none; }

    .nav-links li { width: 100%; }

    .nav-links > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px !important;
        border-radius: var(--radius) !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: var(--text) !important;
    }

    .nav-links > li > a:hover,
    .nav-links > li > a.active {
        background: var(--primary-light) !important;
        color: var(--primary) !important;
    }

    .nav-dropdown-toggle i {
        transition: var(--transition);
    }

    .nav-dropdown.open .nav-dropdown-toggle i {
        transform: rotate(180deg);
    }

    /* Mobile Dropdowns */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-darker);
        padding: 4px 0 4px 12px;
        margin: 4px 0 4px 16px;
        border-left: 2px solid var(--primary);
        border-radius: 0 var(--radius) var(--radius) 0;
        display: none;
        min-width: auto;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }
    .nav-dropdown.open:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
    .nav-dropdown-menu a {
        padding: 10px 14px !important;
        font-size: 0.88rem !important;
        font-weight: 500 !important;
        border-radius: var(--radius) !important;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .sidebar { display: none; }
    .dashboard-content { margin-left: 0; }
    .dashboard-layout { flex-direction: column; }

    .section { padding: 60px 0; }
    .auth-card { padding: 32px 24px; }

    .pricing-card.featured { transform: none; }

    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero.hero-banner h1 { font-size: 2.5rem; }
    .hero.hero-banner p { font-size: 1rem; }
    .hero.hero-banner .hero-stats { gap: 20px; }
    .hero.hero-banner .hero-stat .number { font-size: 1.6rem; }
    .trusted-logos { gap: 24px; }
    .trust-item { font-size: 0.8rem; }
    .trust-item i { font-size: 1.1rem; }
    .testimonial-card { padding: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .card, .card-glass, .card-solid { padding: 20px; }
    .hero h1 { font-size: 2rem; }
    .hero.hero-banner h1 { font-size: 1.8rem; }
    .hero.hero-banner { min-height: 80vh; }
    .stat-item .number { font-size: 2rem; }
    .pricing-card { padding: 24px; }
}

/* === Utility === */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.gap-4 { gap: 4px; }

/* === Table Responsive === */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive .table { min-width: 700px; }
