/* ═══════════════════════════════════════════════════════════════
   LabFlow — Design System
   Modern SaaS for Clinical Laboratories
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
    /* Brand Colors */
    --brand-50:  #eef4ff;
    --brand-100: #dbe6fe;
    --brand-200: #bfd3fe;
    --brand-300: #93b4fd;
    --brand-400: #6090fa;
    --brand-500: #3b6cf6;
    --brand-600: #254beb;
    --brand-700: #1d38d8;
    --brand-800: #1e2faf;
    --brand-900: #1e2d8a;
    --brand-950: #0a0f2e;

    /* Accent - Emerald/Teal for health/lab feel */
    --accent-400: #34d399;
    --accent-500: #10b981;
    --accent-600: #059669;

    /* Neutrals */
    --gray-25:  #fcfcfd;
    --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;
    --gray-950: #020617;

    /* Semantic */
    --success:  #10b981;
    --warning:  #f59e0b;
    --danger:   #ef4444;
    --info:     #3b82f6;

    /* Surface */
    --surface-0:  #ffffff;
    --surface-1:  var(--gray-50);
    --surface-2:  var(--gray-100);
    --surface-card: #ffffff;

    /* Typography */
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.03);
    --shadow-glow: 0 0 40px rgba(59,108,246,.15);

    /* Transitions */
    --ease: cubic-bezier(.4,0,.2,1);
    --duration: 200ms;

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 64px;
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    overflow-x: hidden;
}
a { color: var(--brand-600); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--brand-700); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ═══════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════ */

/* ── Navbar ── */
.lp-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,.04);
    transition: all .3s var(--ease);
}
.lp-nav.scrolled {
    background: rgba(255,255,255,.95);
    box-shadow: var(--shadow-md);
}
.lp-nav-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; height: 72px;
}
.lp-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 24px; color: var(--brand-950);
    letter-spacing: -.02em;
}
.lp-logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
}
.lp-nav-links {
    display: flex; align-items: center; gap: 36px;
    list-style: none;
}
.lp-nav-links a {
    color: var(--gray-600); font-weight: 500; font-size: 14.5px;
    letter-spacing: .01em;
    transition: color var(--duration);
}
.lp-nav-links a:hover { color: var(--brand-600); }
.lp-nav-actions { display: flex; align-items: center; gap: 12px; }
.lp-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.lp-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-800); margin: 5px 0; border-radius: 2px; transition: all .3s; }

/* ── Hero ── */
.lp-hero {
    position: relative;
    padding: 160px 32px 100px;
    overflow: hidden;
    background: var(--gray-950);
    color: #fff;
}
.lp-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 30% 40%, rgba(59,108,246,.2) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(16,185,129,.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(59,108,246,.08) 0%, transparent 40%);
}
.lp-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='.6' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}
.lp-hero-inner {
    position: relative; z-index: 2;
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.lp-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-full);
    padding: 6px 16px 6px 8px;
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,.8);
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
}
.lp-hero-badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-400);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.3); }
}
.lp-hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: 24px;
}
.lp-hero h1 span {
    background: linear-gradient(135deg, var(--accent-400), var(--brand-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-hero-desc {
    font-size: 18px; line-height: 1.7;
    color: rgba(255,255,255,.6);
    max-width: 520px;
    margin-bottom: 40px;
}
.lp-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.lp-hero-metrics {
    display: flex; gap: 40px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.lp-hero-metric h4 {
    font-size: 32px; font-weight: 700; color: #fff;
    letter-spacing: -.02em;
}
.lp-hero-metric p {
    font-size: 13px; color: rgba(255,255,255,.45);
    margin-top: 4px; text-transform: uppercase; letter-spacing: .06em;
    font-weight: 500;
}

/* Hero visual */
.lp-hero-visual {
    position: relative;
    display: flex; justify-content: center; align-items: center;
}
.lp-hero-mockup {
    width: 100%; max-width: 580px;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 40px 80px rgba(0,0,0,.3);
}
.lp-mockup-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px;
}
.lp-mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.lp-mockup-dot:nth-child(1) { background: #ff5f57; }
.lp-mockup-dot:nth-child(2) { background: #febc2e; }
.lp-mockup-dot:nth-child(3) { background: #28c840; }
.lp-mockup-body {
    background: var(--gray-900);
    border-radius: var(--radius-md);
    padding: 24px;
    min-height: 320px;
}
.lp-mockup-bar {
    height: 8px; border-radius: 4px; margin-bottom: 12px;
    opacity: .6;
}
.lp-mockup-bar.w1 { width: 60%; background: var(--brand-400); }
.lp-mockup-bar.w2 { width: 85%; background: var(--gray-700); }
.lp-mockup-bar.w3 { width: 40%; background: var(--accent-400); }
.lp-mockup-bar.w4 { width: 72%; background: var(--gray-700); }
.lp-mockup-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-top: 20px;
}
.lp-mockup-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.lp-mockup-card-value {
    font-size: 22px; font-weight: 700; color: #fff;
    margin-bottom: 4px;
}
.lp-mockup-card-label { font-size: 11px; color: var(--gray-400); text-transform: uppercase; letter-spacing: .08em; }
.lp-mockup-card-trend {
    display: inline-block; margin-top: 8px;
    font-size: 12px; font-weight: 600;
    padding: 2px 8px; border-radius: 4px;
}
.lp-mockup-card-trend.up { background: rgba(16,185,129,.15); color: var(--accent-400); }
.lp-mockup-card-trend.down { background: rgba(239,68,68,.15); color: #f87171; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px;
    font-weight: 600; font-size: 14.5px;
    border-radius: var(--radius-md);
    border: none; cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    box-shadow: 0 1px 3px rgba(37,75,235,.3), inset 0 1px 0 rgba(255,255,255,.1);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,75,235,.35);
    color: #fff;
}
.btn-secondary {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
}
.btn-secondary:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--brand-600);
    border: 1.5px solid var(--brand-200);
}
.btn-outline:hover {
    background: var(--brand-50);
    border-color: var(--brand-300);
}
.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    padding: 10px 16px;
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-icon { padding: 10px; border-radius: var(--radius-md); }

/* ── Sections ── */
.lp-section {
    padding: 100px 32px;
    max-width: 1280px; margin: 0 auto;
}
.lp-section-header {
    text-align: center;
    max-width: 640px; margin: 0 auto 64px;
}
.lp-section-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
    color: var(--brand-600);
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 16px;
}
.lp-section-tag::before {
    content: ''; width: 20px; height: 2px;
    background: var(--brand-400); border-radius: 2px;
}
.lp-section-header h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.025em;
    line-height: 1.15;
    margin-bottom: 16px;
}
.lp-section-header p {
    font-size: 17px; color: var(--gray-500);
    line-height: 1.7;
}

/* ── Features Grid ── */
.lp-features-bg { background: var(--surface-1); }
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.lp-feature-card {
    background: var(--surface-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all .3s var(--ease);
    position: relative;
    overflow: hidden;
}
.lp-feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-400), var(--accent-400));
    opacity: 0; transition: opacity .3s;
}
.lp-feature-card:hover {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.lp-feature-card:hover::before { opacity: 1; }
.lp-feature-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}
.lp-feature-icon.blue   { background: var(--brand-50); color: var(--brand-600); }
.lp-feature-icon.green  { background: #ecfdf5; color: var(--accent-600); }
.lp-feature-icon.amber  { background: #fffbeb; color: #d97706; }
.lp-feature-icon.purple { background: #f5f3ff; color: #7c3aed; }
.lp-feature-icon.rose   { background: #fff1f2; color: #e11d48; }
.lp-feature-icon.cyan   { background: #ecfeff; color: #0891b2; }
.lp-feature-card h3 {
    font-size: 17px; font-weight: 700; color: var(--gray-900);
    margin-bottom: 8px;
}
.lp-feature-card p { font-size: 14.5px; color: var(--gray-500); line-height: 1.65; }

/* ── Pricing ── */
.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.lp-pricing-card {
    background: var(--surface-card);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    transition: all .3s var(--ease);
    position: relative;
}
.lp-pricing-card.featured {
    border-color: var(--brand-400);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(59,108,246,.08);
    transform: scale(1.04);
    z-index: 1;
}
.lp-pricing-card.featured::before {
    content: 'Mais popular';
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    padding: 4px 18px; border-radius: var(--radius-full);
    font-size: 12.5px; font-weight: 600;
}
.lp-pricing-name {
    font-size: 18px; font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.lp-pricing-desc {
    font-size: 14px; color: var(--gray-500);
    margin-bottom: 24px;
}
.lp-pricing-price {
    display: flex; align-items: baseline; gap: 4px;
    margin-bottom: 8px;
}
.lp-pricing-currency { font-size: 18px; font-weight: 600; color: var(--gray-600); }
.lp-pricing-value {
    font-size: 48px; font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.03em; line-height: 1;
}
.lp-pricing-period { font-size: 14px; color: var(--gray-400); margin-bottom: 28px; }
.lp-pricing-features {
    list-style: none;
    margin-bottom: 32px;
}
.lp-pricing-features li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0;
    font-size: 14px; color: var(--gray-600);
    line-height: 1.5;
}
.lp-pricing-features li::before {
    content: '✓';
    color: var(--accent-500);
    font-weight: 700; font-size: 14px;
    flex-shrink: 0; margin-top: 1px;
}
.lp-pricing-cta .btn { width: 100%; }

/* ── Testimonials / Social proof ── */
.lp-proof-strip {
    background: var(--surface-1);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 40px 32px;
}
.lp-proof-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    gap: 48px; flex-wrap: wrap;
}
.lp-proof-item { color: var(--gray-400); font-size: 14px; font-weight: 500; text-align: center; }
.lp-proof-item strong { display: block; font-size: 28px; color: var(--gray-900); font-weight: 800; letter-spacing: -.02em; }

/* ── CTA Banner ── */
.lp-cta-banner {
    background: var(--gray-950);
    padding: 80px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lp-cta-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(59,108,246,.15), transparent);
}
.lp-cta-inner {
    position: relative; z-index: 2;
    max-width: 600px; margin: 0 auto;
}
.lp-cta-banner h2 {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800; color: #fff;
    letter-spacing: -.025em;
    margin-bottom: 16px;
}
.lp-cta-banner p {
    font-size: 17px; color: rgba(255,255,255,.5);
    margin-bottom: 32px;
}

/* ── Footer ── */
.lp-footer {
    background: var(--gray-950);
    color: rgba(255,255,255,.4);
    padding: 64px 32px 32px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.lp-footer-inner {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.lp-footer-brand p {
    font-size: 14px; line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}
.lp-footer h4 {
    font-size: 13px; font-weight: 700; color: rgba(255,255,255,.7);
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 20px;
}
.lp-footer ul { list-style: none; }
.lp-footer ul li { margin-bottom: 10px; }
.lp-footer ul a {
    color: rgba(255,255,255,.4);
    font-size: 14px;
    transition: color .2s;
}
.lp-footer ul a:hover { color: rgba(255,255,255,.8); }
.lp-footer-bottom {
    max-width: 1280px; margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════ */
.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--gray-950);
}
.login-visual {
    flex: 1; position: relative;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse 70% 60% at 30% 50%, rgba(59,108,246,.15), transparent),
        radial-gradient(ellipse 50% 40% at 80% 30%, rgba(16,185,129,.1), transparent);
    overflow: hidden;
}
.login-visual::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='.5' fill='rgba(255,255,255,.04)'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}
.login-visual-content {
    position: relative; z-index: 2;
    text-align: center; padding: 48px;
    color: #fff;
}
.login-visual-content h2 {
    font-size: 36px; font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}
.login-visual-content p {
    font-size: 17px; color: rgba(255,255,255,.5);
    max-width: 380px; margin: 0 auto;
}
.login-form-side {
    width: 480px; min-width: 420px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    padding: 48px;
}
.login-form-wrapper { width: 100%; max-width: 360px; }
.login-form-wrapper h1 {
    font-size: 26px; font-weight: 800; color: var(--gray-900);
    margin-bottom: 8px;
}
.login-form-wrapper .subtitle {
    font-size: 15px; color: var(--gray-500);
    margin-bottom: 36px;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 13.5px; font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--surface-0);
    color: var(--gray-800);
    transition: all var(--duration) var(--ease);
    outline: none;
}
.form-control:focus {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgba(59,108,246,.1);
}
.form-control.is-error { border-color: var(--danger); }
.form-text { font-size: 12.5px; color: var(--gray-400); margin-top: 4px; }
.form-error { font-size: 12.5px; color: var(--danger); margin-top: 4px; }
.form-check {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--gray-600);
}
.form-check input { width: 16px; height: 16px; accent-color: var(--brand-500); }

/* ── Alerts ── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px; font-weight: 500;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-200); }

/* ═══════════════════════════════════════════════════
   DASHBOARD / INTERNAL
   ═══════════════════════════════════════════════════ */

/* ── Layout ── */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--gray-950);
    color: rgba(255,255,255,.7);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 900;
    display: flex; flex-direction: column;
    border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-logo {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-weight: 800; font-size: 20px;
    letter-spacing: -.01em;
}
.sidebar-tenant {
    font-size: 12px; color: rgba(255,255,255,.35);
    margin-top: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-nav {
    flex: 1; padding: 12px 10px;
    overflow-y: auto;
}
.sidebar-section {
    margin-bottom: 8px;
}
.sidebar-section-title {
    font-size: 10.5px; font-weight: 700;
    color: rgba(255,255,255,.25);
    text-transform: uppercase; letter-spacing: .1em;
    padding: 16px 12px 6px;
}
.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    color: rgba(255,255,255,.55);
    border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 500;
    transition: all .15s var(--ease);
    text-decoration: none;
}
.sidebar-link:hover {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.9);
}
.sidebar-link.active {
    background: rgba(59,108,246,.15);
    color: var(--brand-300);
}
.sidebar-link i { width: 18px; text-align: center; font-size: 15px; opacity: .7; }
.sidebar-link.active i { opacity: 1; }
.sidebar-link .badge-count {
    margin-left: auto;
    background: rgba(239,68,68,.2); color: #fca5a5;
    font-size: 11px; font-weight: 600;
    padding: 1px 7px; border-radius: var(--radius-full);
}
.sidebar-footer {
    padding: 16px 14px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background .2s;
}
.sidebar-user:hover { background: rgba(255,255,255,.05); }
.sidebar-avatar {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 700;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,.35); }

/* ── Main Content ── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    background: var(--gray-50);
}

/* ── Top Bar ── */
.topbar {
    height: var(--header-height);
    background: var(--surface-0);
    border-bottom: 1px solid var(--gray-200);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px;
    position: sticky; top: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-breadcrumb { font-size: 14px; color: var(--gray-500); }
.topbar-breadcrumb strong { color: var(--gray-800); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-btn {
    width: 38px; height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    background: var(--surface-0);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    position: relative;
    transition: all .15s;
}
.topbar-btn:hover { background: var(--gray-50); color: var(--gray-700); }
.topbar-btn .dot {
    position: absolute; top: 6px; right: 6px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--danger);
}

/* ── Page Content ── */
.page-content {
    padding: 28px;
}
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px;
}
.page-title {
    font-size: 24px; font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -.02em;
}
.page-subtitle {
    font-size: 14px; color: var(--gray-500);
    margin-top: 4px;
}

/* ── Cards ── */
.card {
    background: var(--surface-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-100);
    display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--gray-800); }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--gray-100); }

/* ── Stat Cards ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--surface-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex; align-items: flex-start; justify-content: space-between;
    transition: all .2s var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-value {
    font-size: 28px; font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.02em;
    line-height: 1;
}
.stat-label {
    font-size: 13px; color: var(--gray-500);
    margin-top: 6px; font-weight: 500;
}
.stat-trend {
    font-size: 12px; font-weight: 600;
    margin-top: 8px;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 8px; border-radius: var(--radius-full);
}
.stat-trend.up { background: #ecfdf5; color: #059669; }
.stat-trend.down { background: #fef2f2; color: #dc2626; }
.stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.stat-icon.blue   { background: var(--brand-50); color: var(--brand-600); }
.stat-icon.green  { background: #ecfdf5; color: var(--accent-600); }
.stat-icon.amber  { background: #fffbeb; color: #d97706; }
.stat-icon.purple { background: #f5f3ff; color: #7c3aed; }

/* ── Tables ── */
.table-wrapper { overflow-x: auto; }
.data-table {
    width: 100%;
    font-size: 14px;
}
.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px; font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase; letter-spacing: .06em;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: var(--gray-50); }

/* ── Badges ── */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600;
    line-height: 1.4;
}
.badge-green  { background: #ecfdf5; color: #065f46; }
.badge-blue   { background: var(--brand-50); color: var(--brand-700); }
.badge-yellow { background: #fffbeb; color: #92400e; }
.badge-red    { background: #fef2f2; color: #991b1b; }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }
.badge-teal   { background: #ecfeff; color: #155e75; }
.badge-emerald{ background: #ecfdf5; color: #065f46; }
.badge-indigo { background: #eef2ff; color: #3730a3; }

/* ── Pagination ── */
.pagination-wrapper {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px;
}
.pagination {
    display: flex; list-style: none; gap: 4px;
}
.pg-link {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500;
    color: var(--gray-600);
    transition: all .15s;
}
.pg-link:hover { background: var(--gray-100); color: var(--gray-800); }
.pg-link.active { background: var(--brand-500); color: #fff; }
.pg-info { font-size: 13px; color: var(--gray-400); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .lp-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .lp-hero-desc { margin: 0 auto 40px; }
    .lp-hero-ctas { justify-content: center; }
    .lp-hero-metrics { justify-content: center; }
    .lp-hero-visual { display: none; }
    .lp-pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .lp-pricing-card.featured { transform: scale(1); }
    .lp-footer-inner { grid-template-columns: 1fr 1fr; }
    .sidebar { transform: translateX(-100%); transition: transform .3s var(--ease); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
}
@media (max-width: 768px) {
    .lp-nav-links { display: none; }
    .lp-mobile-toggle { display: block; }
    .lp-hero { padding: 130px 20px 60px; }
    .lp-hero h1 { font-size: 32px; }
    .lp-section { padding: 60px 20px; }
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-footer-inner { grid-template-columns: 1fr; }
    .login-page { flex-direction: column; }
    .login-visual { min-height: 200px; }
    .login-form-side { width: 100%; min-width: auto; }
    .page-content { padding: 16px; }
}
