/* ═══════════════════════════════════════════════
   ParkRequest - Main Stylesheet
   ═══════════════════════════════════════════════ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --error: #dc2626;
    --error-light: #fee2e2;
    --info: #0891b2;
    --info-light: #cffafe;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --transition: 150ms ease;
}

/* ─── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
ul, ol { list-style: none; }
hr { border: none; border-top: 1px solid var(--gray-200); margin: 0.75rem 0; }

/* ─── Container ──────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Navbar ─────────────────────────────── */
.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0.375rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
}
.navbar-brand svg { color: var(--primary); }
.navbar-logo { height: 56px !important; width: 56px !important; max-width: 56px !important; max-height: 56px !important; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.navbar-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--gray-50); text-decoration: none; }

.nav-dropdown { position: relative; }
.dropdown-toggle {
    cursor: pointer;
    background: rgba(45, 101, 232, 0.05);
    border: 1px solid rgba(45, 101, 232, 0.16);
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1;
    color: var(--gray-700);
}
.dropdown-toggle:hover,
.nav-dropdown.open > .dropdown-toggle {
    background: rgba(45, 101, 232, 0.10);
    border-color: rgba(45, 101, 232, 0.28);
    color: var(--primary);
}
.dropdown-toggle::after {
    content: '';
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transform-origin: center;
    opacity: 0.7;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-dropdown.open > .dropdown-toggle::after {
    transform: rotate(225deg) translateY(-1px);
    opacity: 1;
}
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 200;
    padding: 0.25rem;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    border-radius: 4px;
    text-decoration: none;
}
.dropdown-menu a:hover { background: var(--gray-50); color: var(--primary); }
.lang-option {
    all: unset;
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}
.lang-option:hover { background: var(--gray-50); }
.lang-option.active { font-weight: 700; color: var(--primary); }

.navbar-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--gray-600); }

.property-bar {
    background: var(--primary);
    color: white;
    padding: 0.375rem 0;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

/* ─── Main Content ───────────────────────── */
.main-content { flex: 1; padding: 2rem 0; }

/* ─── Hero ───────────────────────────────── */
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: 2.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.125rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; }
.hero-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ─── Cards ──────────────────────────────── */
.card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-hover { transition: all var(--transition); }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
}
.card-header h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.card-body { padding: 1.5rem; }
.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}
.card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* ─── Stat Cards ─────────────────────────── */
.stat-card { text-align: center; }
.stat-card .card-body { padding: 1.25rem; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.stat-label { font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }

/* ─── Grid ───────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ─── Buttons ────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #15803d; }
.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #b45309; }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline { background: white; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); }
.btn-block { width: 100%; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: 0.25rem 0.625rem; font-size: 0.8rem; }

/* ─── Forms ──────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}
.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: var(--font);
    color: var(--gray-800);
    background: white;
    transition: border-color var(--transition), box-shadow var(--transition);
    line-height: 1.5;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 80px; }
input[type="file"].form-control { padding: 0.375rem; }
.form-help { display: block; font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.form-section-title:first-child { margin-top: 0; }
.search-form { display: flex; gap: 0.75rem; }
.search-form .form-control { flex: 1; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding-top: 1.75rem; }
.checkbox-label[title] { cursor: help; text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: #9ca3af; text-underline-offset: 3px; }
.checkbox-label input[type="checkbox"] { width: 1rem; height: 1rem; }

/* ─── Tables ─────────────────────────────── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}
.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
.table tbody tr:hover { background: var(--gray-50); }
.table-sm th, .table-sm td { padding: 0.5rem 0.75rem; }

/* ─── Badges ─────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
}
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-error { background: var(--error-light); color: var(--error); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-muted { background: var(--gray-100); color: var(--gray-500); }

/* ─── Alerts ─────────────────────────────── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    position: relative;
}
.alert-success { background: var(--success-light); color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: var(--error-light); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: var(--info-light); color: #155e75; border: 1px solid #a5f3fc; }
.alert-close {
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}
.alert-close:hover { opacity: 1; }

/* ─── Auth Container ─────────────────────── */
.auth-container { max-width: 480px; margin: 0 auto; }
.auth-container .card { margin-top: 1rem; }

/* ─── Page Header ────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; }

/* ─── Filter / Pagination ────────────────── */
.filter-bar { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.pagination { display: flex; gap: 0.25rem; padding: 1rem; justify-content: center; }

/* ─── Empty State ────────────────────────── */
.empty-state { padding: 3rem 1.5rem; text-align: center; color: var(--gray-500); }

/* ─── Code Block ─────────────────────────── */
.code-block {
    background: var(--gray-800);
    color: #e2e8f0;
    padding: 1rem;
    border-radius: var(--radius);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    overflow-x: auto;
    line-height: 1.6;
}
code { background: var(--gray-100); padding: 0.125rem 0.375rem; border-radius: 4px; font-size: 0.85em; }

/* ─── Footer ─────────────────────────────── */
.footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: auto;
}

/* ─── Landing Page ───────────────────────── */
.landing-hero {
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}
.landing-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.landing-hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.landing-hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.landing-features {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}
.landing-section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}
.landing-section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}
.feature-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.landing-how {
    padding: 4rem 0;
}
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.step {
    text-align: center;
    max-width: 250px;
}
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.step p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.step-arrow {
    font-size: 1.5rem;
    color: var(--gray-300);
    font-weight: 300;
}
.landing-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-light), #ede9fe);
    border-top: 1px solid var(--gray-200);
}
.landing-cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}
.landing-cta p {
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Property card links */
.property-card-link { color: inherit; }
.property-card-link:hover { text-decoration: none; }

/* ─── FAQ Section ────────────────────────── */
.landing-faq {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid var(--gray-100);
}
.faq-list {
    max-width: 700px;
    margin: 2rem auto 0;
}
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    background: var(--gray-50);
    overflow: hidden;
    transition: all var(--transition);
}
.faq-item[open] {
    border-color: var(--primary-light);
    background: white;
}
.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-800);
}
.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--gray-400);
    transition: transform var(--transition);
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Landing CTA sub-link */
.landing-cta-sub {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray-500);
}
.landing-cta-sub a {
    color: var(--primary);
    font-weight: 500;
}

/* ─── Services Page ──────────────────────── */
.services-hero {
    padding-bottom: 3.5rem;
}

/* Pain point cards */
.services-pain {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid var(--gray-100);
}
.pain-card {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition);
}
.pain-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.pain-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.pain-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}
.pain-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Trust / Stats */
.services-trust {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid var(--gray-100);
}
.trust-stat {
    text-align: center;
    padding: 1.5rem 1rem;
}
.trust-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.trust-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Contact / Quote section */
.services-contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-light), #ede9fe);
    border-top: 1px solid var(--gray-200);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}
.contact-info > p {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.contact-detail strong {
    font-size: 0.85rem;
    color: var(--gray-700);
}
.contact-detail span {
    font-size: 0.95rem;
    color: var(--gray-600);
}
.contact-form-wrap .card {
    padding: 2rem;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.75rem;
}
.btn-block {
    display: block;
    width: 100%;
}

/* Grid helper: 4 columns */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Footer enhancements */
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    font-size: 0.8rem;
    color: var(--gray-500);
}
.footer-links a:hover {
    color: var(--primary);
}

/* ─── Responsive: Tablet ─────────────────── */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .landing-hero h1 { font-size: 2.25rem; }
    .landing-section-title { font-size: 1.6rem; }
}

/* ─── Responsive: Services & FAQ ─────────── */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Pre/code blocks scroll */
    pre, code { overflow-x: auto; max-width: 100%; word-break: break-all; }

    /* Landing hero */
    .landing-hero { padding: 2.5rem 1rem 2rem; }
    .landing-hero h1 { font-size: 1.85rem; }
    .landing-hero-subtitle { font-size: 1rem; }
    .landing-section-title { font-size: 1.4rem; }

    /* Steps: stack vertically, hide arrows */
    .steps-grid { flex-direction: column; gap: 2rem; }
    .step-arrow { display: none; }
    .step { max-width: 100%; }

    /* Feature & pain cards: 1 column handled by grid-3 rule */
    .landing-features { padding: 2.5rem 0; }
    .landing-how { padding: 2.5rem 0; }
    .landing-faq { padding: 2.5rem 0; }
    .landing-cta { padding: 2.5rem 0; }
    .landing-cta h2 { font-size: 1.35rem; }
}

/* ─── Password Strength Indicator ────────── */
.pw-requirements {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.85rem;
    transition: border-color 0.2s ease;
}
.pw-requirements.pw-all-met {
    border-color: var(--success);
    background: var(--success-light);
}
.pw-requirements p {
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.8rem;
}
.pw-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
}
.pw-req-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gray-500);
    transition: color 0.2s ease;
}
.pw-req-item .pw-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.pw-req-item.met {
    color: var(--success);
}
.pw-req-item.met .pw-icon {
    border-color: var(--success);
    background: var(--success);
    color: white;
}
.pw-match-status {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
    color: var(--gray-400);
}
.pw-match-status.match { color: var(--success); }
.pw-match-status.mismatch { color: var(--error); }
@media (max-width: 480px) {
    .pw-requirements ul { grid-template-columns: 1fr; }
}

/* ─── Action Cells (keep buttons in one line on desktop) ─── */
.actions-cell { white-space: nowrap; }

/* ─── Toolbar Wrap ───────────────────────── */
.toolbar-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* ─── Utilities ──────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-warning { color: var(--warning) !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-0 { padding: 0 !important; }

/* ─── Responsive ─────────────────────────── */
@media (max-width: 768px) {
    .navbar-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 0.5rem; border-top: 1px solid var(--gray-200); box-shadow: var(--shadow-md); z-index: 300; max-height: 80vh; overflow-y: auto; }
    .navbar-menu.open { display: flex; }
    .navbar-toggle { display: block; }
    .nav-dropdown { width: 100%; }
    .nav-link { padding: 0.75rem 1rem; font-size: 0.95rem; min-height: 44px; display: flex; align-items: center; }
    .dropdown-toggle { width: 100%; text-align: left; padding: 0.75rem 1rem; font-size: 0.95rem; min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
    .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 0.75rem; background: transparent; }
    .dropdown-menu a { min-height: 44px; display: flex; align-items: center; padding: 0.6rem 1rem; font-size: 0.9rem; }
    .nav-dropdown.open .dropdown-menu { display: block; }

    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.75rem; }
    .form-row { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .page-header > div { width: 100%; }
    .table { font-size: 0.8rem; }
    .table th, .table td { padding: 0.5rem; }

    /* Tables: allow button wrapping in action cells */
    .table td { word-break: break-word; }
    .table .actions-cell { white-space: normal !important; }
    .table .actions-cell .btn { white-space: normal; margin-bottom: 0.25rem; }

    /* Buttons: allow wrapping in tight containers */
    .btn { white-space: normal; }
    .btn-sm { font-size: 0.75rem; padding: 0.2rem 0.5rem; }

    /* Search form should stack */
    .search-form { flex-wrap: wrap; }
    .search-form .form-control { min-width: 0; }

    /* Checkbox alignment fix when form-row collapses */
    .checkbox-label { padding-top: 0; }

    /* Form actions wrap */
    .form-actions { flex-wrap: wrap; }

    /* Flex containers in headers should wrap */
    .page-header div[style*="display:flex"],
    .page-header div[style*="display: flex"] { flex-wrap: wrap !important; }

    /* Pagination compact */
    .pagination { flex-wrap: wrap; gap: 0.25rem; }

    /* Grid stat cards: 1 col on small phones (overridden to 2-col below for larger phones) */
}

/* Larger phones: stat grids get 2 columns */
@media (min-width: 481px) and (max-width: 768px) {
    .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .container { padding: 0 0.75rem; }
    .card-body { padding: 0.75rem; }
    .hero { padding: 2rem 0 1rem; }
    .grid-2, .grid-3, .grid-4, .grid-5 { gap: 0.75rem; }
    .landing-hero h1 { font-size: 1.5rem; }
    .landing-hero-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .feature-card { padding: 1.25rem 1rem; }
    .feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }

    /* Tighter table on small phones */
    .table { font-size: 0.75rem; }
    .table th, .table td { padding: 0.35rem 0.4rem; }
    .btn-sm { font-size: 0.7rem; padding: 0.15rem 0.4rem; }

    /* Stack form actions vertically */
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; text-align: center; }

    /* Auth pages: less padding */
    .auth-container { padding: 1rem 0; }

    /* Page header: full-width buttons */
    .page-header .btn { width: 100%; text-align: center; }
}

/* ─── Demo Login ─────────────────────────── */
.demo-login-section { margin-top: 1.5rem; }
.demo-divider {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    position: relative;
}
.demo-divider span {
    background: white;
    padding: 0 0.75rem;
    position: relative;
    z-index: 1;
}
.demo-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--gray-200);
}
.demo-banner {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #92400e;
    text-align: center;
    margin-bottom: 1rem;
}

/* ─── Chatbot Widget ─────────────────────────────────────── */
.chatbot-bubble {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 300;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s, background .15s;
}
.chatbot-bubble:hover { transform: scale(1.08); }
.chatbot-bubble.chatbot-active { background: var(--gray-600); }

.chatbot-panel {
    position: fixed;
    bottom: 5rem;
    right: 1.25rem;
    z-index: 301;
    width: 370px;
    max-height: 540px;
    background: var(--white);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity .15s, transform .15s;
}
.chatbot-panel.chatbot-hidden {
    display: none;
}
.chatbot-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 1rem;
    background: var(--primary);
    color: #fff;
    font-size: .9rem;
}
.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 .15rem;
}
.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: .85rem 1rem;
    font-size: .85rem;
}

/* Category buttons */
.chatbot-cats { display: flex; flex-direction: column; gap: .4rem; }
.chatbot-cat-btn { text-align: left; }

/* Ticket list */
.chatbot-ticket-list { display: flex; flex-direction: column; gap: .35rem; }
.chatbot-ticket-row {
    padding: .55rem .65rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .1s;
}
.chatbot-ticket-row:hover { background: var(--gray-50); }

/* Conversation messages */
.chatbot-conv-header {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: .5rem;
    margin-bottom: .5rem;
}
#chatbot-messages {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .25rem 0;
}
.chatbot-msg {
    max-width: 88%;
    padding: .45rem .65rem;
    border-radius: 10px;
    font-size: .82rem;
    line-height: 1.45;
    word-wrap: break-word;
}
.chatbot-msg-mine {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 3px;
}
.chatbot-msg-staff {
    align-self: flex-start;
    background: var(--gray-100);
    color: var(--text);
    border-bottom-left-radius: 3px;
}
.chatbot-msg-internal {
    border: 1px dashed var(--warning, #f59e0b);
    background: #fefce8;
    color: var(--text);
}
.chatbot-msg-meta {
    font-size: .68rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 2px;
}
.chatbot-msg-staff .chatbot-msg-meta { color: var(--text-muted); }
.chatbot-msg-internal .chatbot-msg-meta { color: var(--text-muted); }

.chatbot-reply {
    border-top: 1px solid var(--gray-200);
    padding-top: .5rem;
    margin-top: .5rem;
}
.chatbot-reply textarea { font-size: .82rem; resize: none; }

/* Badge on bubble for open tickets */
.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Responsive: full-width on small screens */
@media (max-width: 600px) {
    .chatbot-panel {
        width: calc(100% - 1rem);
        right: .5rem;
        bottom: 4.5rem;
        max-height: 70vh;
    }
    .chatbot-bubble { bottom: .75rem; right: .75rem; }
}

/* ─── Support ticket pages ───────────────────────────────── */
.ticket-thread { display: flex; flex-direction: column; gap: .6rem; }
.ticket-msg {
    max-width: 80%;
    padding: .65rem .85rem;
    border-radius: 12px;
    font-size: .88rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.ticket-msg-user {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.ticket-msg-staff {
    align-self: flex-start;
    background: var(--gray-100);
    border-bottom-left-radius: 4px;
}
.ticket-msg-internal {
    align-self: flex-start;
    border: 1px dashed var(--warning, #f59e0b);
    background: #fefce8;
    border-bottom-left-radius: 4px;
}
.ticket-msg .msg-meta {
    font-size: .75rem;
    margin-bottom: 3px;
    opacity: .7;
}
.ticket-msg-staff .msg-meta,
.ticket-msg-internal .msg-meta { color: var(--text-muted); opacity: 1; }

.support-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--error);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════
   Sales Brochure (admin)
   ═══════════════════════════════════════════════ */
.brochure-wrap { max-width: 960px; margin: 0 auto; }
.brochure-header { display: flex; align-items: center; gap: 2rem; padding: 2rem; background: linear-gradient(135deg, #1e293b 0%, #334155 100%); border-radius: var(--radius-lg); color: #fff; margin-bottom: 2rem; }
.brochure-logo { width: 120px; height: 120px; object-fit: contain; border-radius: 12px; background: #fff; padding: 6px; }
.brochure-title { font-size: 2.2rem; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.brochure-tagline { font-size: 1.1rem; font-weight: 600; margin: 0.25rem 0 0.5rem; color: #93c5fd; }
.brochure-subtitle { font-size: 0.95rem; line-height: 1.5; margin: 0; color: #cbd5e1; }
.brochure-section { margin-bottom: 2rem; }
.brochure-section-title { font-size: 1.35rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary); display: inline-block; }

.brochure-value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.brochure-value-card { text-align: center; padding: 1.25rem 1rem; background: var(--gray-50); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.brochure-value-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.brochure-value-card h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.4rem; color: var(--gray-900); }
.brochure-value-card p { font-size: 0.82rem; color: var(--gray-600); margin: 0; line-height: 1.4; }

.brochure-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.brochure-feature-group { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; }
.brochure-feature-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.brochure-feature-header h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--gray-900); }
.brochure-feature-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 20px; color: #fff; background: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; }
.brochure-feature-badge.badge-manager { background: #7c3aed; }
.brochure-feature-badge.badge-guard { background: #059669; }
.brochure-feature-badge.badge-admin { background: #dc2626; }
.brochure-feature-list { margin: 0; padding-left: 1.25rem; }
.brochure-feature-list li { font-size: 0.85rem; color: var(--gray-700); line-height: 1.6; padding: 0.1rem 0; }
.brochure-feature-list li::marker { color: var(--primary); }

.brochure-security-grid, .brochure-tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.brochure-security-item, .brochure-tech-item { padding: 1rem; background: var(--gray-50); border-radius: var(--radius); border: 1px solid var(--gray-200); }
.brochure-security-item strong, .brochure-tech-item strong { display: block; font-size: 0.88rem; margin-bottom: 0.3rem; color: var(--gray-900); }
.brochure-security-item p, .brochure-tech-item p { font-size: 0.82rem; color: var(--gray-600); margin: 0; line-height: 1.4; }

.brochure-stats-bar { display: flex; justify-content: space-around; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); border-radius: var(--radius-lg); padding: 1.5rem 1rem; color: #fff; }
.brochure-stat { text-align: center; }
.brochure-stat-number { font-size: 2rem; font-weight: 800; line-height: 1; }
.brochure-stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.3rem; opacity: 0.85; }

.brochure-audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.brochure-audience-card { padding: 1.25rem; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
.brochure-audience-card h3 { font-size: 1rem; margin: 0 0 0.5rem; color: var(--gray-900); }
.brochure-audience-card p { font-size: 0.85rem; color: var(--gray-600); margin: 0; line-height: 1.5; }

.brochure-cta { text-align: center; padding: 2rem; background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border-radius: var(--radius-lg); color: #fff; margin-top: 2rem; }
.brochure-cta h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.5rem; }
.brochure-cta p { color: #94a3b8; font-size: 0.95rem; margin: 0 0 1.5rem; }
.brochure-contact-row { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.brochure-contact-item { text-align: center; }
.brochure-contact-item strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #93c5fd; margin-bottom: 0.2rem; }
.brochure-contact-item span { font-size: 1.05rem; font-weight: 600; }

@media (max-width: 768px) {
    .brochure-header { flex-direction: column; text-align: center; }
    .brochure-value-grid { grid-template-columns: repeat(2, 1fr); }
    .brochure-features-grid { grid-template-columns: 1fr; }
    .brochure-security-grid, .brochure-tech-grid { grid-template-columns: 1fr; }
    .brochure-audience-grid { grid-template-columns: 1fr; }
    .brochure-stats-bar { flex-wrap: wrap; gap: 1rem; }
    .brochure-contact-row { gap: 1.5rem; }
}

@media print {
    .no-print, .navbar, .ss-tabs, .page-header, footer { display: none !important; }
    .ss-panel { display: block !important; }
    .ss-panel:not(#tab-brochure) { display: none !important; }
    .brochure-wrap { max-width: 100%; }
    .brochure-header { background: #1e293b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .brochure-stats-bar { background: #4f46e5 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .brochure-cta { background: #1e293b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body { background: #fff !important; }
    .brochure-action-bar { display: none !important; }
}

/* ═══════════════════════════════════════════════
   Brochure Enhancements (public page)
   ═══════════════════════════════════════════════ */
.brochure-action-bar { display: flex; gap: 0.75rem; justify-content: flex-end; margin-bottom: 1.5rem; flex-wrap: wrap; }
.brochure-cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Comparison Table */
.brochure-comparison-table { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.comparison-header { display: grid; grid-template-columns: 1.5fr 1fr 1fr; background: var(--gray-100); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.comparison-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; border-top: 1px solid var(--gray-200); }
.comparison-row:nth-child(odd) { background: var(--gray-50); }
.comparison-col-label, .comparison-col { padding: 0.75rem 1rem; font-size: 0.88rem; line-height: 1.4; }
.comparison-col-label { font-weight: 600; color: var(--gray-900); }
.comparison-without { color: var(--error, #dc2626); }
.comparison-with { color: var(--success, #059669); font-weight: 500; }

/* ROI Section */
.brochure-roi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.brochure-roi-card { text-align: center; padding: 1.5rem 1rem; background: var(--gray-50); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.brochure-roi-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.brochure-roi-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.brochure-roi-label { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); margin: 0.25rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.03em; }
.brochure-roi-card p { font-size: 0.82rem; color: var(--gray-600); margin: 0; line-height: 1.4; }

/* Testimonials */
.brochure-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.brochure-testimonial { padding: 1.5rem; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); border-left: 4px solid var(--primary); }
.brochure-testimonial-quote { font-size: 0.92rem; line-height: 1.6; color: var(--gray-700); margin: 0 0 0.75rem; font-style: italic; }
.brochure-testimonial-author { font-size: 0.8rem; font-weight: 600; color: var(--gray-500); }

/* App Section */
.brochure-app-section { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: 1.5rem; background: var(--gray-50); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.brochure-app-text p { font-size: 0.95rem; color: var(--gray-700); line-height: 1.6; margin: 0 0 1rem; }
.brochure-app-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.app-badge { display: inline-block; transition: opacity 0.2s; }
.app-badge:hover { opacity: 0.8; }
.brochure-app-features ul { margin: 0; padding-left: 1.25rem; }
.brochure-app-features li { font-size: 0.9rem; color: var(--gray-700); line-height: 1.8; }
.brochure-app-features li::marker { color: var(--primary); }

@media (max-width: 768px) {
    .comparison-header, .comparison-row { grid-template-columns: 1fr; }
    .comparison-col-label { background: var(--gray-100); font-size: 0.8rem; }
    .brochure-roi-grid { grid-template-columns: 1fr; }
    .brochure-testimonial-grid { grid-template-columns: 1fr; }
    .brochure-app-section { grid-template-columns: 1fr; }
    .brochure-action-bar { justify-content: center; }
}

/* ═══════════════════════════════════════════════
   Pricing Page
   ═══════════════════════════════════════════════ */
.pricing-hero { text-align: center; padding: 3rem 1rem 2rem; background: linear-gradient(135deg, #1e293b 0%, #334155 100%); color: #fff; }
.pricing-hero h1 { font-size: 2.2rem; font-weight: 800; margin: 0 0 0.5rem; }
.pricing-hero-subtitle { font-size: 1.1rem; color: #94a3b8; margin: 0; max-width: 600px; margin: 0 auto; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 3rem 0; }
.pricing-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2rem 1.5rem; display: flex; flex-direction: column; position: relative; }
.pricing-card-featured { border-color: var(--primary); box-shadow: 0 4px 24px rgba(79,70,229,0.15); transform: scale(1.03); }
.pricing-card-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 1rem; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.pricing-card-header h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.25rem; color: var(--gray-900); }
.pricing-unit-range { font-size: 0.9rem; color: var(--primary); font-weight: 600; margin: 0; }
.pricing-desc { font-size: 0.88rem; color: var(--gray-600); line-height: 1.5; margin: 1rem 0; flex-grow: 0; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 1.5rem; flex-grow: 1; }
.pricing-features li { font-size: 0.88rem; color: var(--gray-700); padding: 0.35rem 0; line-height: 1.4; }
.pricing-price { text-align: center; margin-bottom: 1rem; }
.pricing-custom { font-size: 0.9rem; font-weight: 600; color: var(--gray-600); }
.btn-block { display: block; width: 100%; text-align: center; }

.pricing-free-callout { padding: 2rem 1rem; }
.pricing-free-banner { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); border: 1px solid #a7f3d0; border-radius: var(--radius-lg); padding: 2rem; }
.pricing-free-banner h2 { font-size: 1.3rem; font-weight: 700; color: #065f46; margin: 0 0 0.5rem; }
.pricing-free-banner p { font-size: 0.95rem; color: #047857; margin: 0 0 1rem; }

@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-card-featured { transform: none; }
    .pricing-hero h1 { font-size: 1.6rem; }
}

/* ═══════════════════════════════════════════════
   Dark Mode
   ═══════════════════════════════════════════════ */

/* Theme toggle icon visibility */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem; }
.theme-toggle svg { display: block; }
.theme-icon-dark { display: none; }
.theme-icon-light { display: inline-flex; }

/* Dark mode via data-theme="dark" on <html> */
html[data-theme="dark"] .theme-icon-dark { display: inline-flex; }
html[data-theme="dark"] .theme-icon-light { display: none; }

/* System preference when data-theme="system" */
@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .theme-icon-dark { display: inline-flex; }
    html[data-theme="system"] .theme-icon-light { display: none; }
}

/* Dark mode CSS variable overrides */
html[data-theme="dark"] {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-light: #1e3a5f;
    --success: #4ade80;
    --success-light: #14532d;
    --warning: #fbbf24;
    --warning-light: #451a03;
    --error: #f87171;
    --error-light: #450a0a;
    --info: #22d3ee;
    --info-light: #083344;

    --gray-50: #111827;
    --gray-100: #1f2937;
    --gray-200: #374151;
    --gray-300: #4b5563;
    --gray-400: #6b7280;
    --gray-500: #9ca3af;
    --gray-600: #d1d5db;
    --gray-700: #e5e7eb;
    --gray-800: #f3f4f6;
    --gray-900: #f9fafb;

    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.3);

    color-scheme: dark;
}

html[data-theme="dark"] body {
    color: #e5e7eb;
    background: #0f172a;
}

html[data-theme="dark"] .navbar {
    background: #1e293b;
    border-bottom-color: #334155;
}

html[data-theme="dark"] .nav-link { color: #d1d5db; }
html[data-theme="dark"] .nav-link:hover { color: #60a5fa; background: rgba(255,255,255,0.05); }
html[data-theme="dark"] .navbar-brand { color: #f9fafb; }
html[data-theme="dark"] .navbar-logo { background: #fff; }
html[data-theme="dark"] .navbar-toggle { color: #d1d5db; }
html[data-theme="dark"] .dropdown-menu { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .dropdown-menu a { color: #d1d5db; }
html[data-theme="dark"] .dropdown-menu a:hover { background: rgba(255,255,255,0.05); color: #60a5fa; }

html[data-theme="dark"] .card { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .card-header { background: #0f172a; border-bottom-color: #334155; }
html[data-theme="dark"] .card-footer { background: #0f172a; border-top-color: #334155; }

html[data-theme="dark"] .form-control {
    background: #0f172a;
    border-color: #374151;
    color: #e5e7eb;
}
html[data-theme="dark"] .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96,165,250,0.2);
}
html[data-theme="dark"] .form-control::placeholder { color: #6b7280; }

html[data-theme="dark"] .btn-outline { background: #1e293b; border-color: #4b5563; color: #d1d5db; }
html[data-theme="dark"] .btn-outline:hover { background: #334155; border-color: #6b7280; }

html[data-theme="dark"] .stat-number { color: #f9fafb; }

html[data-theme="dark"] .data-table th { background: #0f172a; color: #d1d5db; border-bottom-color: #334155; }
html[data-theme="dark"] .data-table td { border-bottom-color: #1f2937; }
html[data-theme="dark"] .data-table tr:hover td { background: rgba(255,255,255,0.03); }

html[data-theme="dark"] .property-bar { background: #1e3a5f; }

html[data-theme="dark"] .alert { border-color: #334155; }
html[data-theme="dark"] .alert-success { background: #14532d; color: #bbf7d0; }
html[data-theme="dark"] .alert-error { background: #450a0a; color: #fecaca; }
html[data-theme="dark"] .alert-warning { background: #451a03; color: #fed7aa; }
html[data-theme="dark"] .alert-info { background: #083344; color: #cffafe; }

html[data-theme="dark"] .footer { background: #0f172a; border-top: 1px solid #1f2937; }

html[data-theme="dark"] a { color: #60a5fa; }

/* Buttons: override generic link color; use deeper bg for contrast with white text */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] a.btn-primary { background: #3b82f6; border-color: #3b82f6; color: #fff; }
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] a.btn-primary:hover { background: #2563eb; border-color: #2563eb; color: #fff; }
html[data-theme="dark"] .btn-success,
html[data-theme="dark"] a.btn-success { color: #fff; }
html[data-theme="dark"] .btn-warning,
html[data-theme="dark"] a.btn-warning { color: #fff; }
html[data-theme="dark"] .btn-danger,
html[data-theme="dark"] a.btn-danger { color: #fff; }

html[data-theme="dark"] .badge-success { background: #166534; color: #bbf7d0; }
html[data-theme="dark"] .badge-warning { background: #713f12; color: #fef3c7; }
html[data-theme="dark"] .badge-danger { background: #7f1d1d; color: #fecaca; }
html[data-theme="dark"] .badge-info { background: #164e63; color: #cffafe; }

html[data-theme="dark"] .hero h1 { color: #f9fafb; }

html[data-theme="dark"] .demo-banner { background: #1e293b; color: #d1d5db; border-color: #334155; }

html[data-theme="dark"] .ss-tab { color: #9ca3af; }
html[data-theme="dark"] .ss-tab:hover { color: #e5e7eb; }
html[data-theme="dark"] .ss-tab.active { color: #60a5fa; border-bottom-color: #60a5fa; }
html[data-theme="dark"] .ss-tabs { border-bottom-color: #334155; }
html[data-theme="dark"] .ss-panel { color: #e5e7eb; }

html[data-theme="dark"] select.form-control { background: #0f172a; color: #e5e7eb; }

html[data-theme="dark"] hr { border-top-color: #334155; }

html[data-theme="dark"] .tabs a.tab { color: #9ca3af; }
html[data-theme="dark"] .tabs a.tab.active { color: #60a5fa; border-bottom-color: #60a5fa; }

/* Landing page sections */
html[data-theme="dark"] .landing-features { background: #0f172a; border-color: #1f2937; }
html[data-theme="dark"] .landing-faq { background: #0f172a; border-color: #1f2937; }
html[data-theme="dark"] .landing-cta { background: linear-gradient(135deg, #1e3a5f, #1e1b4b); border-color: #334155; }
html[data-theme="dark"] .landing-how { background: #0f172a; }

/* FAQ items */
html[data-theme="dark"] .faq-item[open] { background: #1e293b; border-color: #334155; }

/* Services page */
html[data-theme="dark"] .services-pain { background: #0f172a; border-color: #1f2937; }
html[data-theme="dark"] .pain-card { background: #2a1215; border-color: #7f1d1d; }
html[data-theme="dark"] .services-trust { background: #0f172a; border-color: #1f2937; }
html[data-theme="dark"] .services-contact { background: linear-gradient(135deg, #1e3a5f, #1e1b4b); border-color: #334155; }

/* Code blocks (must stay dark regardless of variable inversion) */
html[data-theme="dark"] .code-block { background: #1e293b; color: #e2e8f0; }

/* Demo divider */
html[data-theme="dark"] .demo-divider span { background: #1e293b; }

/* Mobile responsive navbar menu */
html[data-theme="dark"] .navbar-menu { background: #1e293b; border-color: #334155; }

/* Chatbot */
html[data-theme="dark"] .chatbot-panel { background: #1e293b; }
html[data-theme="dark"] .chatbot-msg-internal { background: #1a1a0a; border-color: #78716c; color: #e5e7eb; }

/* Support ticket internal messages */
html[data-theme="dark"] .ticket-msg-internal { background: #1a1a0a; border-color: #78716c; color: #e5e7eb; }

/* General table th (non data-table) */
html[data-theme="dark"] .table th { background: #111827; }

/* Password requirements */
html[data-theme="dark"] .pw-requirements { background: #111827; border-color: #374151; }
html[data-theme="dark"] .pw-requirements.pw-all-met { background: #14532d; border-color: #16a34a; }

/* Pagination */
html[data-theme="dark"] .pagination a { color: #d1d5db; }
html[data-theme="dark"] .pagination .active { color: #60a5fa; }

/* Contact details */
html[data-theme="dark"] .contact-form-wrap .card { background: #1e293b; }

/* Brochure */
html[data-theme="dark"] .brochure-value-card { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .brochure-feature-group { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .brochure-security-item,
html[data-theme="dark"] .brochure-tech-item { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .brochure-audience-card { background: #1e293b; border-color: #334155; }

/* Map modals & Leaflet popups */
.modal-inner { background: #fff; }
.leaflet-control-attribution { font-size: 9px; opacity: 0.5; background: rgba(255,255,255,0.4) !important; padding: 1px 5px; }
.leaflet-control-attribution a { color: inherit; }
html[data-theme="dark"] .modal-inner { background: #1e293b; color: #e5e7eb; }
html[data-theme="dark"] .modal-inner h3 { color: #f9fafb; }
html[data-theme="dark"] .modal-inner label { color: #d1d5db; }
html[data-theme="dark"] .leaflet-control-attribution { background: rgba(30,41,59,0.4) !important; color: #9ca3af; }
html[data-theme="dark"] .leaflet-popup-content-wrapper { background: #1e293b; color: #e5e7eb; }
html[data-theme="dark"] .leaflet-popup-tip { background: #1e293b; }
html[data-theme="dark"] .leaflet-popup-content a { color: #60a5fa; }
html[data-theme="dark"] .leaflet-control-zoom a { background: #1e293b; color: #e5e7eb; border-color: #334155; }
html[data-theme="dark"] .leaflet-control-layers { background: #1e293b; color: #e5e7eb; border-color: #334155; }

/* System-preference dark mode (when data-theme="system") */
@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        --primary: #60a5fa;
        --primary-dark: #3b82f6;
        --primary-light: #1e3a5f;
        --success: #4ade80;
        --success-light: #14532d;
        --warning: #fbbf24;
        --warning-light: #451a03;
        --error: #f87171;
        --error-light: #450a0a;
        --info: #22d3ee;
        --info-light: #083344;

        --gray-50: #111827;
        --gray-100: #1f2937;
        --gray-200: #374151;
        --gray-300: #4b5563;
        --gray-400: #6b7280;
        --gray-500: #9ca3af;
        --gray-600: #d1d5db;
        --gray-700: #e5e7eb;
        --gray-800: #f3f4f6;
        --gray-900: #f9fafb;

        --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
        --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.3);

        color-scheme: dark;
    }

    html[data-theme="system"] body { color: #e5e7eb; background: #0f172a; }
    html[data-theme="system"] .navbar { background: #1e293b; border-bottom-color: #334155; }
    html[data-theme="system"] .nav-link { color: #d1d5db; }
    html[data-theme="system"] .nav-link:hover { color: #60a5fa; background: rgba(255,255,255,0.05); }
    html[data-theme="system"] .navbar-brand { color: #f9fafb; }
    html[data-theme="system"] .navbar-logo { background: #fff; }
    html[data-theme="system"] .navbar-toggle { color: #d1d5db; }
    html[data-theme="system"] .dropdown-menu { background: #1e293b; border-color: #334155; }
    html[data-theme="system"] .dropdown-menu a { color: #d1d5db; }
    html[data-theme="system"] .dropdown-menu a:hover { background: rgba(255,255,255,0.05); color: #60a5fa; }
    html[data-theme="system"] .navbar-menu { background: #1e293b; border-color: #334155; }
    html[data-theme="system"] .card { background: #1e293b; border-color: #334155; }
    html[data-theme="system"] .card-header { background: #0f172a; border-bottom-color: #334155; }
    html[data-theme="system"] .card-footer { background: #0f172a; border-top-color: #334155; }
    html[data-theme="system"] .form-control { background: #0f172a; border-color: #374151; color: #e5e7eb; }
    html[data-theme="system"] .form-control:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,0.2); }
    html[data-theme="system"] .form-control::placeholder { color: #6b7280; }
    html[data-theme="system"] .btn-outline { background: #1e293b; border-color: #4b5563; color: #d1d5db; }
    html[data-theme="system"] .btn-outline:hover { background: #334155; border-color: #6b7280; }
    html[data-theme="system"] .stat-number { color: #f9fafb; }
    html[data-theme="system"] .data-table th { background: #0f172a; color: #d1d5db; border-bottom-color: #334155; }
    html[data-theme="system"] .data-table td { border-bottom-color: #1f2937; }
    html[data-theme="system"] .data-table tr:hover td { background: rgba(255,255,255,0.03); }
    html[data-theme="system"] .property-bar { background: #1e3a5f; }
    html[data-theme="system"] .alert { border-color: #334155; }
    html[data-theme="system"] .alert-success { background: #14532d; color: #bbf7d0; }
    html[data-theme="system"] .alert-error { background: #450a0a; color: #fecaca; }
    html[data-theme="system"] .alert-warning { background: #451a03; color: #fed7aa; }
    html[data-theme="system"] .alert-info { background: #083344; color: #cffafe; }
    html[data-theme="system"] .footer { background: #0f172a; border-top: 1px solid #1f2937; }
    html[data-theme="system"] a { color: #60a5fa; }

    /* Buttons */
    html[data-theme="system"] .btn-primary,
    html[data-theme="system"] a.btn-primary { background: #3b82f6; border-color: #3b82f6; color: #fff; }
    html[data-theme="system"] .btn-primary:hover,
    html[data-theme="system"] a.btn-primary:hover { background: #2563eb; border-color: #2563eb; color: #fff; }
    html[data-theme="system"] .btn-success,
    html[data-theme="system"] a.btn-success { color: #fff; }
    html[data-theme="system"] .btn-warning,
    html[data-theme="system"] a.btn-warning { color: #fff; }
    html[data-theme="system"] .btn-danger,
    html[data-theme="system"] a.btn-danger { color: #fff; }

    html[data-theme="system"] .badge-success { background: #166534; color: #bbf7d0; }
    html[data-theme="system"] .badge-warning { background: #713f12; color: #fef3c7; }
    html[data-theme="system"] .badge-danger { background: #7f1d1d; color: #fecaca; }
    html[data-theme="system"] .badge-info { background: #164e63; color: #cffafe; }
    html[data-theme="system"] .hero h1 { color: #f9fafb; }
    html[data-theme="system"] .demo-banner { background: #1e293b; color: #d1d5db; border-color: #334155; }
    html[data-theme="system"] .ss-tab { color: #9ca3af; }
    html[data-theme="system"] .ss-tab:hover { color: #e5e7eb; }
    html[data-theme="system"] .ss-tab.active { color: #60a5fa; border-bottom-color: #60a5fa; }
    html[data-theme="system"] .ss-tabs { border-bottom-color: #334155; }
    html[data-theme="system"] .ss-panel { color: #e5e7eb; }
    html[data-theme="system"] select.form-control { background: #0f172a; color: #e5e7eb; }
    html[data-theme="system"] hr { border-top-color: #334155; }
    html[data-theme="system"] .tabs a.tab { color: #9ca3af; }
    html[data-theme="system"] .tabs a.tab.active { color: #60a5fa; border-bottom-color: #60a5fa; }

    /* Landing page sections */
    html[data-theme="system"] .landing-features { background: #0f172a; border-color: #1f2937; }
    html[data-theme="system"] .landing-faq { background: #0f172a; border-color: #1f2937; }
    html[data-theme="system"] .landing-cta { background: linear-gradient(135deg, #1e3a5f, #1e1b4b); border-color: #334155; }
    html[data-theme="system"] .landing-how { background: #0f172a; }

    /* FAQ items */
    html[data-theme="system"] .faq-item[open] { background: #1e293b; border-color: #334155; }

    /* Services page */
    html[data-theme="system"] .services-pain { background: #0f172a; border-color: #1f2937; }
    html[data-theme="system"] .pain-card { background: #2a1215; border-color: #7f1d1d; }
    html[data-theme="system"] .services-trust { background: #0f172a; border-color: #1f2937; }
    html[data-theme="system"] .services-contact { background: linear-gradient(135deg, #1e3a5f, #1e1b4b); border-color: #334155; }

    /* Code blocks */
    html[data-theme="system"] .code-block { background: #1e293b; color: #e2e8f0; }

    /* Demo divider */
    html[data-theme="system"] .demo-divider span { background: #1e293b; }

    /* Mobile responsive navbar menu */
    html[data-theme="system"] .navbar-menu { background: #1e293b; border-color: #334155; }

    /* Chatbot */
    html[data-theme="system"] .chatbot-panel { background: #1e293b; }
    html[data-theme="system"] .chatbot-msg-internal { background: #1a1a0a; border-color: #78716c; color: #e5e7eb; }

    /* Support ticket internal messages */
    html[data-theme="system"] .ticket-msg-internal { background: #1a1a0a; border-color: #78716c; color: #e5e7eb; }

    /* General table th */
    html[data-theme="system"] .table th { background: #111827; }

    /* Password requirements */
    html[data-theme="system"] .pw-requirements { background: #111827; border-color: #374151; }
    html[data-theme="system"] .pw-requirements.pw-all-met { background: #14532d; border-color: #16a34a; }

    /* Pagination */
    html[data-theme="system"] .pagination a { color: #d1d5db; }
    html[data-theme="system"] .pagination .active { color: #60a5fa; }

    /* Contact details */
    html[data-theme="system"] .contact-form-wrap .card { background: #1e293b; }

    /* Brochure */
    html[data-theme="system"] .brochure-value-card { background: #1e293b; border-color: #334155; }
    html[data-theme="system"] .brochure-feature-group { background: #1e293b; border-color: #334155; }
    html[data-theme="system"] .brochure-security-item,
    html[data-theme="system"] .brochure-tech-item { background: #1e293b; border-color: #334155; }
    html[data-theme="system"] .brochure-audience-card { background: #1e293b; border-color: #334155; }

    /* Map modals & Leaflet popups */
    html[data-theme="system"] .modal-inner { background: #1e293b; color: #e5e7eb; }
    html[data-theme="system"] .modal-inner h3 { color: #f9fafb; }
    html[data-theme="system"] .modal-inner label { color: #d1d5db; }
    html[data-theme="system"] .leaflet-control-attribution { background: rgba(30,41,59,0.4) !important; color: #9ca3af; }
    html[data-theme="system"] .leaflet-popup-content-wrapper { background: #1e293b; color: #e5e7eb; }
    html[data-theme="system"] .leaflet-popup-tip { background: #1e293b; }
    html[data-theme="system"] .leaflet-popup-content a { color: #60a5fa; }
    html[data-theme="system"] .leaflet-control-zoom a { background: #1e293b; color: #e5e7eb; border-color: #334155; }
    html[data-theme="system"] .leaflet-control-layers { background: #1e293b; color: #e5e7eb; border-color: #334155; }
}

/* ── Legal / informational page layout ─────────────────────── */
.py-4 { padding-top: 2rem; padding-bottom: 3rem; }

.legal-content { max-width: 860px; margin: 0 auto; line-height: 1.7; }
.legal-content h2 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--gray-800); }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.25rem; margin-bottom: 0.5rem; color: var(--gray-700); }
.legal-content p { margin-bottom: 0.75rem; color: var(--gray-600); line-height: 1.7; }
.legal-content ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.legal-content ul li { list-style: disc; margin-bottom: 0.4rem; color: var(--gray-600); line-height: 1.6; }
html[data-theme="dark"] .legal-content h2 { color: var(--gray-200); }
html[data-theme="dark"] .legal-content h3 { color: var(--gray-300); }
html[data-theme="dark"] .legal-content p,
html[data-theme="dark"] .legal-content ul li { color: var(--gray-400); }
