/* ═══════════════════════════════════════════════════
   PRAXEROS MEDICAL — Premium Healthcare Design System
   Enhanced with rich colors, gradients & visual depth
   ═══════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
    /* Primary palette — rich deep blue to teal */
    --primary: #0c7fd4;
    --primary-dark: #0a5e9e;
    --primary-darker: #063d66;
    --primary-light: #dbeffe;
    --primary-50: #eef7ff;
    --primary-vivid: #1d8dee;

    /* Secondary — elegant purple accent */
    --secondary: #6d5ce7;
    --secondary-light: #ede9ff;
    --secondary-dark: #5a48d1;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Accent colors — vibrant */
    --accent-rose: #f43f5e;
    --accent-rose-light: #fff1f2;
    --accent-amber: #f59e0b;
    --accent-amber-light: #fffbeb;
    --accent-green: #10b981;
    --accent-green-light: #ecfdf5;
    --accent-teal: #14b8a6;
    --accent-teal-light: #f0fdfa;
    --accent-indigo: #6366f1;
    --accent-indigo-light: #eef2ff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0c7fd4 0%, #6d5ce7 100%);
    --gradient-hero: linear-gradient(135deg, #0a5e9e 0%, #1d8dee 40%, #6d5ce7 100%);
    --gradient-warm: linear-gradient(135deg, #f43f5e 0%, #f59e0b 100%);
    --gradient-cool: linear-gradient(135deg, #14b8a6 0%, #0c7fd4 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-section: linear-gradient(180deg, #f8fafc 0%, #eef7ff 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);

    /* Semantic */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-400);
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --border: var(--gray-200);

    /* WhatsApp */
    --whatsapp: #25d366;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows — richer with color */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px -2px rgba(12,127,212,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 24px -4px rgba(12,127,212,0.12), 0 4px 8px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px -8px rgba(12,127,212,0.15), 0 8px 16px -6px rgba(0,0,0,0.04);
    --shadow-2xl: 0 32px 64px -16px rgba(12,127,212,0.2);
    --shadow-card: 0 2px 8px rgba(12,127,212,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 40px rgba(12,127,212,0.15);
    --shadow-colored: 0 8px 32px -8px rgba(109,92,231,0.3);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 200ms;
    --duration-slow: 350ms;

    /* Layout */
    --nav-height: 72px;
    --container-max: 1280px;
    --sidebar-width: 260px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

img { max-width: 100%; display: block; }

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(12,127,212,0.2); }
    50% { box-shadow: 0 0 40px rgba(12,127,212,0.4); }
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(12,127,212,0.08);
    transition: all var(--duration-slow) var(--ease);
}

.nav--scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 30px rgba(12,127,212,0.1);
}

.nav__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.nav__logo-icon {
    flex-shrink: 0;
}

.nav__logo-text {
    display: flex;
    flex-direction: column;
}

.nav__logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.nav__logo-sub {
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__link {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    position: relative;
}

.nav__link:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.nav__link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav__link--cta {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
    margin-left: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(12,127,212,0.3);
}

.nav__link--cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(12,127,212,0.4);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--duration-slow) var(--ease);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(12,127,212,0.25);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(12,127,212,0.35);
}

.btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}

.btn--primary:hover::after {
    opacity: 1;
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    border-width: 1.5px;
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(12,127,212,0.25);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.375rem 0.625rem;
}

.btn--ghost:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.btn--white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.btn--white-outline {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
}

.btn--white-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-1px);
}

.btn--whatsapp {
    background: linear-gradient(135deg, #25d366, #128c43);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.btn--whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,211,102,0.4);
}

.btn--lg { padding: 0.875rem 2rem; font-size: 0.9375rem; border-radius: var(--radius-xl); }
.btn--sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn--xs { padding: 0.25rem 0.625rem; font-size: 0.75rem; }
.btn--block { width: 100%; }

.btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all var(--duration) var(--ease);
}

.btn-icon:hover {
    background: var(--primary-50);
    color: var(--primary);
    border-color: var(--primary);
}

/* ═══════════════════════════════════════
   PAGE SYSTEM
   ═══════════════════════════════════════ */
.page {
    display: none;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.page--active {
    display: block;
    animation: fadeIn 0.3s var(--ease);
}

.page-header {
    background: var(--gradient-hero);
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header h1 {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.page-header p {
    color: rgba(255,255,255,0.85);
    font-size: 1.0625rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-header .section__badge {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-3xl);
    padding: var(--space-3xl);
    max-width: var(--container-max);
    margin: 0 auto;
    overflow: hidden;
}

.hero__bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(12,127,212,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(109,92,231,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(20,184,166,0.04) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.125rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s var(--ease);
    box-shadow: 0 4px 16px rgba(12,127,212,0.3);
}

.hero__title {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.08;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s var(--ease) 0.1s both;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 520px;
    animation: fadeInUp 0.6s var(--ease) 0.2s both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.6s var(--ease) 0.3s both;
}

.hero__stats {
    display: flex;
    gap: var(--space-2xl);
    animation: fadeInUp 0.6s var(--ease) 0.4s both;
    padding: var(--space-lg);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(12,127,212,0.08);
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Hero floating cards */
.hero__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-xl);
}

.hero__card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.6);
    transition: transform var(--duration-slow) var(--ease-spring);
}

.hero__card:hover {
    transform: translateY(-4px) scale(1.02);
}

.hero__card--1 {
    animation: slideInRight 0.7s var(--ease-spring) 0.3s both;
}

.hero__card--2 {
    animation: slideInRight 0.7s var(--ease-spring) 0.5s both;
    margin-left: var(--space-2xl);
}

.hero__card--3 {
    animation: slideInRight 0.7s var(--ease-spring) 0.7s both;
    margin-left: var(--space-xl);
}

.hero__card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero__card div:not(.hero__card-icon):not(.hero__card-badge) {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hero__card strong {
    font-size: 0.9375rem;
    color: var(--gray-800);
}

.hero__card span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.hero__card-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section--alt {
    background: var(--gradient-section);
    position: relative;
}

.section--alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(12,127,212,0.15), transparent);
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}

.section__badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    box-shadow: 0 2px 12px rgba(12,127,212,0.25);
}

.section__title {
    margin-bottom: var(--space-md);
}

.section__desc {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════
   SERVICES GRID
   ═══════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--duration-slow) var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 16px rgba(12,127,212,0.25);
    transition: transform var(--duration-slow) var(--ease-spring);
}

.service-card:hover .service-card__icon {
    transform: scale(1.1) rotate(-3deg);
}

.service-card:nth-child(2) .service-card__icon {
    background: linear-gradient(135deg, var(--accent-teal), #0c7fd4);
    box-shadow: 0 4px 16px rgba(20,184,166,0.25);
}

.service-card:nth-child(3) .service-card__icon {
    background: linear-gradient(135deg, var(--secondary), #818cf8);
    box-shadow: 0 4px 16px rgba(109,92,231,0.25);
}

.service-card:nth-child(4) .service-card__icon {
    background: linear-gradient(135deg, var(--accent-amber), #f97316);
    box-shadow: 0 4px 16px rgba(245,158,11,0.25);
}

.service-card:nth-child(5) .service-card__icon {
    background: linear-gradient(135deg, var(--accent-rose), #ec4899);
    box-shadow: 0 4px 16px rgba(244,63,94,0.25);
}

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.service-card--cta {
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-light));
    border-color: rgba(12,127,212,0.1);
    display: flex;
    flex-direction: column;
}

.service-card--cta .service-card__icon {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    box-shadow: 0 4px 16px rgba(16,185,129,0.25);
}

.service-card--cta .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Services Detail Page */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    transition: all var(--duration-slow) var(--ease);
    position: relative;
    overflow: hidden;
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--duration-slow) var(--ease);
    transform-origin: left;
}

.service-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-detail-card:hover::before {
    transform: scaleX(1);
}

.service-detail-card__icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 16px rgba(12,127,212,0.2);
}

.service-detail-card:nth-child(2) .service-detail-card__icon {
    background: linear-gradient(135deg, var(--accent-teal), #0c7fd4);
}
.service-detail-card:nth-child(3) .service-detail-card__icon {
    background: linear-gradient(135deg, var(--secondary), #818cf8);
}
.service-detail-card:nth-child(4) .service-detail-card__icon {
    background: linear-gradient(135deg, var(--accent-amber), #f97316);
}
.service-detail-card:nth-child(5) .service-detail-card__icon {
    background: linear-gradient(135deg, var(--accent-rose), #ec4899);
}
.service-detail-card:nth-child(6) .service-detail-card__icon {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
}

.service-detail-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.service-detail-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.service-detail-card ul {
    list-style: none;
    margin-bottom: auto;
    padding-bottom: var(--space-lg);
}

.service-detail-card ul li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.service-detail-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.service-detail-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.service-detail-card__price {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════
   DOCTORS
   ═══════════════════════════════════════ */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.doctor-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-slow) var(--ease);
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.doctor-card__img {
    height: 220px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: rgba(255,255,255,0.6);
    overflow: hidden;
}

.doctor-card__img::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.doctor-card:nth-child(2) .doctor-card__img {
    background: linear-gradient(135deg, #e11d48, #ec4899, #f472b6);
}

.doctor-card:nth-child(3) .doctor-card__img {
    background: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24);
}

.doctor-card__placeholder {
    opacity: 0.5;
}

.doctor-card__status {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 0.3rem 0.875rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1;
}

.doctor-card__status--available {
    color: var(--accent-green);
}

.doctor-card__info {
    padding: var(--space-xl);
}

.doctor-card__info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.doctor-card__role {
    display: block;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.doctor-card__quals {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.doctor-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: var(--space-lg);
}

.doctor-card__tags span {
    padding: 0.25rem 0.75rem;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.doctor-card:nth-child(2) .doctor-card__tags span {
    background: var(--accent-rose-light);
    color: var(--accent-rose);
}

.doctor-card:nth-child(3) .doctor-card__tags span {
    background: var(--accent-amber-light);
    color: var(--accent-amber);
}

/* Doctor Select (Portal page) */
.doctor-select-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.doctor-select-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--duration-slow) var(--ease);
    text-align: left;
    font-family: inherit;
}

.doctor-select-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.doctor-select-card.active {
    border-color: var(--primary);
    background: var(--primary-50);
    box-shadow: 0 4px 20px rgba(12,127,212,0.15);
}

.doctor-select-card__avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(12,127,212,0.3);
}

.doctor-select-card div:nth-child(2) {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doctor-select-card strong {
    font-size: 0.9375rem;
}

.doctor-select-card span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.doctor-select-card__status {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.doctor-select-card__status.available {
    color: var(--accent-green);
}

/* ═══════════════════════════════════════
   DOCTOR PORTAL
   ═══════════════════════════════════════ */
.doctor-portal {
    display: none;
    padding-bottom: var(--space-3xl);
}

.doctor-portal.active {
    display: block;
    animation: fadeIn 0.3s var(--ease);
}

.portal-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.portal-profile__card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: sticky;
    top: calc(var(--nav-height) + var(--space-lg));
    overflow: hidden;
}

.portal-profile__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--gradient-hero);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.portal-profile__avatar {
    width: 80px;
    height: 80px;
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px auto var(--space-lg);
    position: relative;
    z-index: 1;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.portal-profile__card h2 {
    text-align: center;
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
}

.portal-profile__role {
    display: block;
    text-align: center;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.portal-profile__quals {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-lg);
}

.portal-profile__quals span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-align: center;
}

.portal-profile__specialties,
.portal-profile__bio {
    margin-bottom: var(--space-lg);
}

.portal-profile__specialties h4,
.portal-profile__bio h4 {
    margin-bottom: var(--space-sm);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.portal-profile__bio p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(12,127,212,0.1);
}

/* ═══════════════════════════════════════
   DASHBOARD CARDS
   ═══════════════════════════════════════ */
.portal-dashboard {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.dash-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: box-shadow var(--duration-slow) var(--ease);
}

.dash-card:hover {
    box-shadow: var(--shadow-md);
}

.dash-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border);
    background: var(--gray-50);
}

.dash-card__header h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.dash-card__badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: var(--gradient-primary);
    padding: 0.3rem 0.875rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(12,127,212,0.25);
}

.dash-card__nav {
    display: flex;
    gap: 0.375rem;
}

/* ═══════════════════════════════════════
   CALENDAR
   ═══════════════════════════════════════ */
.calendar {
    padding: var(--space-lg) var(--space-xl);
}

.calendar__header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.calendar__header span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar__body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar__day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    position: relative;
}

.calendar__day:hover {
    background: var(--primary-50);
}

.calendar__day--empty {
    cursor: default;
}

.calendar__day--today {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(12,127,212,0.35);
    border-radius: var(--radius-lg);
}

.calendar__day--today:hover {
    transform: scale(1.1);
}

.calendar__day--available::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 5px;
    height: 5px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(16,185,129,0.5);
}

.calendar__day--limited::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 5px;
    height: 5px;
    background: var(--accent-amber);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(245,158,11,0.5);
}

.calendar__day--full {
    color: var(--text-muted);
    text-decoration: line-through;
}

.calendar__day--past {
    color: var(--gray-300);
    cursor: default;
}

.calendar__legend {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-sm) var(--space-xl) var(--space-lg);
}

.calendar__legend span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot--available { background: var(--accent-green); box-shadow: 0 0 6px rgba(16,185,129,0.4); }
.legend-dot--limited { background: var(--accent-amber); box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.legend-dot--full { background: var(--gray-300); }

/* ═══════════════════════════════════════
   SCHEDULE LIST
   ═══════════════════════════════════════ */
.schedule-list {
    padding: var(--space-sm) 0;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--duration) var(--ease);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item:hover {
    background: var(--primary-50);
}

.schedule-item__time {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 48px;
    font-variant-numeric: tabular-nums;
}

.schedule-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.schedule-item__info strong {
    font-size: 0.875rem;
    font-weight: 600;
}

.schedule-item__info span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.schedule-item__status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    color: var(--text-muted);
    background: var(--gray-100);
}

.schedule-item--completed .schedule-item__status {
    color: var(--white);
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    box-shadow: 0 2px 6px rgba(16,185,129,0.25);
}

.schedule-item--active {
    background: var(--primary-50);
    border-left: 3px solid var(--primary);
}

.schedule-item--active .schedule-item__status {
    color: var(--white);
    background: var(--gradient-primary);
    box-shadow: 0 2px 6px rgba(12,127,212,0.25);
    animation: pulse 2s infinite;
}

.schedule-item__actions {
    display: flex;
    gap: 0.375rem;
}

/* ═══════════════════════════════════════
   NOTES
   ═══════════════════════════════════════ */
.notes-list {
    padding: var(--space-md) var(--space-xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.note-item {
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    border-left: 3px solid var(--primary);
    transition: all var(--duration) var(--ease);
}

.note-item:hover {
    background: var(--primary-50);
    border-left-color: var(--secondary);
}

.note-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.note-item__header strong {
    font-size: 0.9375rem;
}

.note-item__header span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.note-item__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.note-item__tags {
    display: flex;
    gap: 0.375rem;
}

.note-item__tags span {
    padding: 0.1875rem 0.625rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════
   TRUST / LOCATION
   ═══════════════════════════════════════ */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.trust-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.trust-detail {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease);
}

.trust-detail:hover {
    background: var(--primary-50);
}

.trust-detail__icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(12,127,212,0.2);
}

.trust-detail strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.trust-detail p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.trust-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.map-placeholder {
    height: 400px;
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: rgba(255,255,255,0.6);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 20L20 0l20 20-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.map-placeholder p {
    font-weight: 600;
    color: var(--white);
    font-size: 1.125rem;
    position: relative;
}

.map-placeholder span {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    position: relative;
}

.map-placeholder svg {
    position: relative;
}

/* ═══════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════ */
.cta-section {
    padding: var(--space-4xl) 0;
}

.cta-card {
    background: var(--gradient-hero);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-card h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
    position: relative;
}

.cta-card p {
    color: rgba(255,255,255,0.85);
    font-size: 1.0625rem;
    max-width: 500px;
    margin: 0 auto var(--space-xl);
    position: relative;
}

.cta-card__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    position: relative;
}

/* ═══════════════════════════════════════
   PATIENT PORTAL
   ═══════════════════════════════════════ */
.login-container {
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.login-card__icon {
    margin-bottom: var(--space-lg);
}

.login-card h2 {
    margin-bottom: 0.375rem;
}

.login-card > p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-xl);
}

.login-card__demo {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: var(--primary-50);
    border-radius: var(--radius-md);
}

.login-form {
    text-align: left;
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--white);
    transition: all var(--duration) var(--ease);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(12,127,212,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* Patient Header */
.patient-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.patient-header__info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.patient-header__avatar {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(12,127,212,0.3);
}

.patient-header__info h2 {
    font-size: 1.25rem;
    margin-bottom: 0.125rem;
}

.patient-header__info span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Patient Grid */
.patient-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.patient-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.patient-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--duration-slow) var(--ease);
    text-align: center;
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    position: relative;
    overflow: hidden;
}

.patient-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}

.patient-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
    color: inherit;
}

.patient-action-card:hover::before {
    opacity: 1;
}

.patient-action-card svg {
    color: var(--primary);
}

.patient-action-card:nth-child(2) svg { color: var(--secondary); }
.patient-action-card:nth-child(2)::before { background: linear-gradient(135deg, var(--secondary), #818cf8); }

.patient-action-card:nth-child(3) svg { color: var(--accent-green); }
.patient-action-card:nth-child(3)::before { background: linear-gradient(135deg, var(--accent-green), var(--accent-teal)); }

.patient-action-card:nth-child(4) svg { color: var(--accent-rose); }
.patient-action-card:nth-child(4)::before { background: var(--gradient-warm); }

.patient-action-card strong {
    font-size: 0.9375rem;
}

.patient-action-card span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Appointment Date */
.appt-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.875rem;
    min-width: 56px;
    box-shadow: 0 2px 8px rgba(12,127,212,0.25);
}

.appt-date__day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.appt-date__month {
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
}

/* Medical History */
.medical-history {
    padding: var(--space-sm) var(--space-xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.history-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    align-items: flex-start;
    border-left: 3px solid var(--primary);
    transition: all var(--duration) var(--ease);
}

.history-item:hover {
    background: var(--primary-50);
    transform: translateX(4px);
}

.history-item:nth-child(2) { border-left-color: var(--secondary); }
.history-item:nth-child(3) { border-left-color: var(--accent-teal); }
.history-item:nth-child(4) { border-left-color: var(--accent-green); }

.history-item__date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 80px;
    padding-top: 0.125rem;
}

.history-item__info {
    flex: 1;
}

.history-item__info strong {
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.25rem;
}

.history-item__info p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.history-item__type {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.type--routine { background: var(--gray-100); color: var(--text-secondary); }
.type--lab { background: var(--secondary-light); color: var(--secondary); }
.type--checkup { background: var(--primary-light); color: var(--primary); }
.type--vaccine { background: var(--accent-green-light); color: var(--accent-green); }

/* Medications */
.medication-list {
    padding: var(--space-md) var(--space-xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.medication-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--duration) var(--ease);
}

.medication-item:hover {
    background: var(--primary-50);
    border-color: rgba(12,127,212,0.1);
}

.medication-item__name strong {
    font-size: 0.875rem;
    display: block;
}

.medication-item__name span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.medication-item__info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.medication-item__info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.medication-item__refill {
    color: var(--accent-amber) !important;
    font-weight: 700;
}

/* ═══════════════════════════════════════
   BOOKING SYSTEM
   ═══════════════════════════════════════ */
.booking-container {
    max-width: 800px;
    margin: 0 auto;
}

.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
}

.booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.booking-step__num {
    width: 34px;
    height: 34px;
    background: var(--white);
    border: 2.5px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--duration-slow) var(--ease);
}

.booking-step span {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

.booking-step.active .booking-step__num {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(12,127,212,0.35);
}

.booking-step.active span {
    color: var(--primary);
    font-weight: 700;
}

.booking-step.completed .booking-step__num {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.booking-panel {
    display: none;
    animation: fadeInUp 0.4s var(--ease);
}

.booking-panel.active {
    display: block;
}

.booking-panel h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

.booking-doctor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.booking-doctor-option {
    cursor: pointer;
}

.booking-doctor-option input { display: none; }

.booking-doctor-option__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: var(--space-xl);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--duration-slow) var(--ease);
}

.booking-doctor-option input:checked + .booking-doctor-option__card {
    border-color: var(--primary);
    background: var(--primary-50);
    box-shadow: 0 4px 20px rgba(12,127,212,0.15);
}

.booking-doctor-option__card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.booking-doctor-option__avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    box-shadow: 0 4px 12px rgba(12,127,212,0.3);
}

.booking-doctor-option:nth-child(2) .booking-doctor-option__avatar {
    background: linear-gradient(135deg, var(--accent-rose), #ec4899);
    box-shadow: 0 4px 12px rgba(244,63,94,0.3);
}

.booking-doctor-option:nth-child(3) .booking-doctor-option__avatar {
    background: linear-gradient(135deg, var(--accent-amber), #f97316);
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.booking-doctor-option__card strong {
    font-size: 0.9375rem;
}

.booking-doctor-option__card span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.booking-doctor-option__avail {
    font-size: 0.75rem !important;
    color: var(--accent-green) !important;
    font-weight: 700;
}

.booking-datetime {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.booking-calendar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.booking-times {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.booking-times h4 {
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: var(--primary);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.time-slot {
    padding: 0.625rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.time-slot:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary-50);
    transform: translateY(-1px);
}

.time-slot.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(12,127,212,0.3);
}

.time-slot--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.booking-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.booking-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-md);
}

.booking-confirmation {
    text-align: center;
    padding: var(--space-xl);
}

.booking-confirmation__icon {
    margin-bottom: var(--space-lg);
}

.booking-confirmation__icon svg circle {
    stroke: var(--accent-green);
}
.booking-confirmation__icon svg path {
    stroke: var(--accent-green);
}

.booking-confirmation h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-confirmation > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.booking-summary {
    max-width: 400px;
    margin: 0 auto var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
}

.booking-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.booking-summary__row:last-child {
    border-bottom: none;
}

.booking-summary__row span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.booking-summary__row strong {
    font-size: 0.875rem;
    color: var(--primary);
}

.booking-confirmation__note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* ═══════════════════════════════════════
   ADMIN LAYOUT
   ═══════════════════════════════════════ */
.admin-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--gradient-dark);
    color: var(--white);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    z-index: 50;
}

.admin-sidebar__header {
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: var(--space-lg);
}

.admin-sidebar__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-nav__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--duration) var(--ease);
}

.admin-nav__item:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.admin-nav__item.active {
    color: var(--white);
    background: var(--gradient-primary);
    box-shadow: 0 4px 16px rgba(12,127,212,0.3);
}

.admin-sidebar__footer {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-sidebar__user-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
}

.admin-sidebar__user strong {
    display: block;
    font-size: 0.8125rem;
}

.admin-sidebar__user span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.admin-content {
    margin-left: var(--sidebar-width);
    padding: var(--space-xl);
    background: var(--gradient-section);
    min-height: calc(100vh - var(--nav-height));
}

.admin-content__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.admin-content__header h2 {
    font-size: 1.5rem;
}

.admin-content__date {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    padding: 0.375rem 1rem;
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
    animation: fadeIn 0.2s var(--ease);
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--duration-slow) var(--ease);
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
}

.admin-stat-card:nth-child(2)::before {
    background: linear-gradient(180deg, var(--accent-green), var(--accent-teal));
}

.admin-stat-card:nth-child(3)::before {
    background: linear-gradient(180deg, var(--accent-amber), #f97316);
}

.admin-stat-card:nth-child(4)::before {
    background: linear-gradient(180deg, var(--accent-rose), #ec4899);
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.admin-stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-stat-card__num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-stat-card:nth-child(2) .admin-stat-card__num {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
}

.admin-stat-card:nth-child(3) .admin-stat-card__num {
    background: linear-gradient(135deg, var(--accent-amber), #f97316);
    -webkit-background-clip: text;
    background-clip: text;
}

.admin-stat-card:nth-child(4) .admin-stat-card__num {
    background: linear-gradient(135deg, var(--accent-rose), #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
}

.admin-stat-card__label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.admin-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Admin Table */
.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 0.75rem var(--space-lg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: var(--primary-50);
    border-bottom: 2px solid var(--primary-light);
}

.admin-table td {
    padding: 0.75rem var(--space-lg);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.admin-table td small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.admin-table tbody tr {
    transition: all var(--duration) var(--ease);
}

.admin-table tbody tr:hover {
    background: var(--primary-50);
}

.admin-table__active {
    background: var(--primary-50) !important;
    border-left: 3px solid var(--primary);
}

/* Status Pills */
.status-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill--completed {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    color: var(--white);
    box-shadow: 0 2px 6px rgba(16,185,129,0.25);
}

.status-pill--progress {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(12,127,212,0.25);
    animation: pulse 2s infinite;
}

.status-pill--upcoming {
    background: var(--gray-100);
    color: var(--text-secondary);
}

.status-pill--active {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    color: var(--white);
}

.status-pill--chronic {
    background: linear-gradient(135deg, var(--accent-amber), #f97316);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(245,158,11,0.25);
}

.status-pill--new {
    background: linear-gradient(135deg, var(--secondary), #818cf8);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(109,92,231,0.25);
}

/* Admin Filters */
.admin-filters {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.admin-filter-select {
    padding: 0.5rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--white);
    cursor: pointer;
    outline: none;
    font-weight: 500;
}

.admin-filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12,127,212,0.1);
}

.admin-search {
    padding: 0.5rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    background: var(--white);
    outline: none;
    min-width: 200px;
}

.admin-search--wide {
    min-width: 320px;
}

.admin-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(12,127,212,0.1);
}

/* Admin Notes */
.notes-admin-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.note-admin-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-slow) var(--ease);
}

.note-admin-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.note-admin-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-light));
    border-bottom: 1px solid var(--border);
}

.note-admin-card__header strong {
    font-size: 0.9375rem;
}

.note-admin-card__date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.note-admin-card__doctor {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

.note-admin-card__body {
    padding: var(--space-lg);
}

.note-admin-card__body p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.note-admin-card__body p:last-child {
    margin-bottom: 0;
}

.note-admin-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
}

.note-admin-card__tags {
    display: flex;
    gap: 0.375rem;
}

.note-admin-card__tags span {
    padding: 0.1875rem 0.625rem;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
    background: var(--gradient-dark);
    color: rgba(255,255,255,0.7);
    padding: var(--space-3xl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

#page-admin ~ .footer {
    display: none;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer .nav__logo-name {
    color: var(--white);
}

.footer .nav__logo-sub {
    color: rgba(255,255,255,0.4);
}

.footer__links h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.footer__links a,
.footer__links p {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    line-height: 1.5;
}

.footer__links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer__bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

body.admin-active .footer {
    display: none;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: var(--space-2xl) var(--space-lg);
        padding-top: var(--space-3xl);
    }

    .hero__visual {
        display: none;
    }

    .services-grid,
    .services-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctor-select-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .portal-profile__card {
        position: static;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .patient-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-doctor-grid {
        grid-template-columns: 1fr 1fr;
    }

    .booking-datetime {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-lg);
        gap: 0.25rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-2xl);
    }

    .nav__links.active {
        display: flex;
    }

    .nav__link--cta {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }

    .nav__toggle {
        display: flex;
    }

    .services-grid,
    .services-detail-grid,
    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .doctor-select-grid {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        gap: var(--space-lg);
    }

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

    .admin-sidebar {
        position: static;
        width: 100%;
    }

    .admin-content {
        margin-left: 0;
    }

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

    .patient-actions {
        grid-template-columns: 1fr 1fr;
    }

    .booking-doctor-grid {
        grid-template-columns: 1fr;
    }

    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .patient-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .admin-filters {
        flex-direction: column;
    }

    .admin-search,
    .admin-search--wide {
        min-width: 100%;
    }

    .cta-card {
        padding: var(--space-xl);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .page-header::after {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .patient-actions {
        grid-template-columns: 1fr;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-steps {
        gap: 0;
    }

    .booking-step span {
        display: none;
    }

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

    .cta-card__actions {
        flex-direction: column;
    }

    .cta-card__actions .btn {
        width: 100%;
    }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

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

/* ── Selection ── */
::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}
