/*
 * Neo Kurapunkture – Design System
 * Premium healthcare theme with earth tones and modern glassmorphism.
 */

/* ── CSS Custom Properties ────────────────────── */
:root {
    /* Primary palette – earthy greens & golds */
    --clr-primary: hsl(155, 40%, 28%);
    --clr-primary-light: hsl(155, 35%, 42%);
    --clr-primary-dark: hsl(155, 45%, 18%);
    --clr-accent: hsl(38, 70%, 55%);
    --clr-accent-light: hsl(38, 80%, 70%);

    /* Neutrals */
    --clr-bg: hsl(40, 15%, 96%);
    --clr-surface: #ffffff;
    --clr-surface-alt: hsl(40, 12%, 93%);
    --clr-text: hsl(200, 15%, 15%);
    --clr-text-muted: hsl(200, 10%, 50%);
    --clr-border: hsl(40, 10%, 88%);

    /* Feedback */
    --clr-success: hsl(145, 55%, 42%);
    --clr-danger: hsl(0, 65%, 55%);
    --clr-warning: hsl(40, 90%, 50%);
    --clr-info: hsl(210, 60%, 50%);

    /* Dark areas (nav, footer, admin) */
    --clr-dark: hsl(200, 25%, 12%);
    --clr-dark-surface: hsl(200, 20%, 18%);
    --clr-dark-text: hsl(40, 15%, 92%);

    /* Typography */
    --font-body: 'Outfit', system-ui, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Sizing */
    --container-max: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(76, 175, 130, 0.15);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background: var(--clr-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--clr-primary);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

a:hover {
    color: var(--clr-primary-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-primary-dark);
    line-height: 1.3;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Skip link (a11y) ─────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--clr-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 10000;
}

.skip-link:focus {
    top: 1rem;
}

/* ── Navbar ───────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.35s var(--ease);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-primary-dark);
}

.logo-icon {
    font-size: 1.6rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--clr-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-primary);
    transition: width 0.3s var(--ease);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-cart {
    position: relative;
    font-size: 1.25rem;
    color: var(--clr-text);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--clr-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.nav-user-menu {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--clr-text);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--clr-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s var(--ease);
}

.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--clr-text);
    font-size: 0.9rem;
}

.nav-dropdown a:hover {
    background: var(--clr-surface-alt);
    color: var(--clr-primary);
}

.nav-dropdown hr {
    border: none;
    border-top: 1px solid var(--clr-border);
    margin: 0.25rem 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--clr-text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Buttons ──────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-align: center;
    justify-content: center;
    line-height: 1.4;
}

.btn-primary {
    background: var(--clr-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--clr-primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--clr-accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--clr-accent-light);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background: var(--clr-primary);
    color: #fff;
}

.btn-danger {
    background: var(--clr-danger);
    color: #fff;
}

.btn-danger:hover {
    opacity: 0.85;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ── Cards ────────────────────────────────────── */
.card {
    background: var(--clr-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s var(--ease);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* ── Grid layouts ─────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ── Section helpers ──────────────────────────── */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Hero Section ─────────────────────────────── */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 50%, hsl(155, 30%, 35%) 100%);
    margin-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 200, 100, 0.06) 0%, transparent 50%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
    color: #fff;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero .btn {
    font-size: 1.05rem;
}

/* Decorative floating elements */
.hero-deco {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: #fff;
    animation: float 8s ease-in-out infinite;
}

.hero-deco:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -80px;
    animation-delay: 0s;
}

.hero-deco:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: 10%;
    animation-delay: 3s;
}

.hero-deco:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 15%;
    animation-delay: 5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* ── Featured services strip ──────────────────── */
.services-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: -3rem;
    position: relative;
    z-index: 5;
}

.service-card {
    padding: 2rem;
    text-align: center;
    background: var(--clr-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: all 0.35s var(--ease);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* ── Blog cards ───────────────────────────────── */
.blog-card .card-body {
    padding: 1.25rem 1.5rem;
}

.blog-card .card-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--clr-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.blog-card .card-title a {
    color: var(--clr-primary-dark);
}

.blog-card .card-title a:hover {
    color: var(--clr-primary);
}

/* ── Therapist cards ──────────────────────────── */
.therapist-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.therapist-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--clr-primary-light);
}

.therapist-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.therapist-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.therapist-spec {
    color: var(--clr-accent);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.therapist-bio {
    color: var(--clr-text-muted);
    font-size: 0.88rem;
}

/* ── Store / product cards ────────────────────── */
.product-card .card-body {
    padding: 1.25rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-primary);
    margin: 0.5rem 0;
}

.product-stock {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* ── Cart page ────────────────────────────────── */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--clr-border);
}

.cart-table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--clr-text-muted);
}

.cart-row {
    transition: background 0.2s;
}

.cart-row:hover {
    background: var(--clr-surface-alt);
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-surface);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-qty-btn:hover {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}

.cart-qty-input {
    width: 45px;
    text-align: center;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 0.3rem;
    font-family: var(--font-body);
}

.cart-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--clr-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: right;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-primary-dark);
}

/* ── Forms ────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--clr-text);
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-surface);
    color: var(--clr-text);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 130, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.auth-card h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

/* ── Contact page ─────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-card {
    padding: 2rem;
    background: var(--clr-primary-dark);
    color: var(--clr-dark-text);
    border-radius: var(--radius);
}

.contact-info-card h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-info-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.contact-info-item strong {
    display: block;
    opacity: 1;
    margin-bottom: 0.2rem;
}

/* ── Flash messages ───────────────────────────── */
.flash-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 0.8rem 1.5rem;
    min-width: 300px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: opacity 0.4s;
    animation: slideDown 0.4s var(--ease);
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.flash-success {
    background: var(--clr-success);
    color: #fff;
}

.flash-error {
    background: var(--clr-danger);
    color: #fff;
}

.flash-info {
    background: var(--clr-info);
    color: #fff;
}

.flash-warning {
    background: var(--clr-warning);
    color: var(--clr-text);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.8;
}

/* ── Pagination ───────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    transition: all 0.25s;
}

.pagination a:hover {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}

.pagination .active {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}

/* ── Tables (admin) ───────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--clr-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--clr-border);
}

.data-table th {
    background: var(--clr-surface-alt);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--clr-text-muted);
}

.data-table tbody tr:hover {
    background: hsl(40, 15%, 98%);
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success {
    background: hsl(145, 55%, 90%);
    color: hsl(145, 55%, 30%);
}

.badge-warning {
    background: hsl(40, 90%, 90%);
    color: hsl(40, 60%, 30%);
}

.badge-danger {
    background: hsl(0, 65%, 92%);
    color: hsl(0, 65%, 35%);
}

.badge-info {
    background: hsl(210, 60%, 92%);
    color: hsl(210, 60%, 30%);
}

/* ── Admin layout ─────────────────────────────── */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 0;
}

.admin-sidebar {
    width: 260px;
    background: var(--clr-dark);
    color: var(--clr-dark-text);
    padding: 1.5rem 0;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 500;
    overflow-y: auto;
}

.admin-sidebar .sidebar-logo {
    padding: 0.5rem 1.5rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: var(--clr-dark-text);
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-left-color: var(--clr-accent);
}

.admin-sidebar nav .nav-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    padding: 1rem 1.5rem 0.4rem;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    background: var(--clr-bg);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 1.6rem;
}

/* Admin stat cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--clr-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-primary-dark);
    line-height: 1.2;
}

.stat-card .stat-label {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ── Patient dashboard ────────────────────────── */
.dashboard-welcome {
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
    border-radius: var(--radius-lg);
    color: #fff;
    margin-bottom: 2rem;
}

.dashboard-welcome h1 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.dashboard-welcome p {
    opacity: 0.9;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.dash-card {
    background: var(--clr-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.dash-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Fade-in animation ────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Empty/placeholder image ──────────────────── */
.img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--clr-surface-alt), var(--clr-border));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-muted);
    font-size: 2.5rem;
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
    background: var(--clr-dark);
    color: var(--clr-dark-text);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.7;
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul a {
    color: var(--clr-dark-text);
    opacity: 0.75;
    font-size: 0.88rem;
    transition: opacity 0.2s;
}

.footer-col ul a:hover {
    opacity: 1;
    color: var(--clr-accent-light);
}

.footer-contact li {
    display: flex;
    gap: 0.5rem;
    font-size: 0.88rem;
    opacity: 0.75;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    font-size: 1.2rem;
    color: var(--clr-dark-text);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-social a:hover {
    opacity: 1;
}

/* ── Utility classes ──────────────────────────── */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--clr-text-muted);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.gap-1 {
    gap: 0.5rem;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inline-flex {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--clr-surface);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform 0.35s var(--ease);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links a {
        padding: 0.8rem 1.5rem;
    }

    .nav-actions .nav-user-btn .user-name {
        display: none;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-strip {
        grid-template-columns: 1fr;
        margin-top: -1.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .cart-table {
        font-size: 0.85rem;
    }

    .cart-table th:nth-child(4),
    .cart-table td:nth-child(4) {
        display: none;
    }
}