/* =============================================================================
 * InfoGate — Application Styles
 * A self-contained, Tailwind-inspired design system (no build step required).
 * Uses CSS variables for theming so dark mode is a single attribute toggle.
 * =========================================================================== */

:root {
    --brand:        #4f46e5;
    --brand-600:    #4338ca;
    --brand-700:    #3730a3;
    --brand-soft:   #eef2ff;
    --accent:       #7c3aed;
    --bg:           #f8fafc;
    --surface:      #ffffff;
    --surface-2:    #f1f5f9;
    --border:       #e2e8f0;
    --text:         #0f172a;
    --text-soft:    #475569;
    --text-muted:   #94a3b8;
    --success:      #16a34a;
    --success-bg:   #dcfce7;
    --danger:       #dc2626;
    --danger-bg:    #fee2e2;
    --warning:      #d97706;
    --warning-bg:   #fef3c7;
    --info:         #2563eb;
    --info-bg:      #dbeafe;
    --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg:    0 10px 25px -5px rgba(0,0,0,.12), 0 8px 10px -6px rgba(0,0,0,.06);
    --radius:       14px;
    --radius-sm:    9px;
    --maxw:         1160px;
    --font:         'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
    --brand:        #818cf8;
    --brand-600:    #6366f1;
    --brand-700:    #4f46e5;
    --brand-soft:   #1e293b;
    --accent:       #a78bfa;
    --bg:           #0b1120;
    --surface:      #111827;
    --surface-2:    #1e293b;
    --border:       #263449;
    --text:         #e5e7eb;
    --text-soft:    #cbd5e1;
    --text-muted:   #94a3b8;
    --brand-soft:   #1e1b4b;
    --shadow:       0 1px 3px rgba(0,0,0,.4);
    --shadow-lg:    0 10px 25px -5px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background .2s ease, color .2s ease;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; margin: 0 auto; }
.mid { max-width: 860px; margin: 0 auto; }

h1,h2,h3,h4 { line-height: 1.25; color: var(--text); font-weight: 700; }
h1 { font-size: 2rem; }
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }
.center { text-align: center; }
.small { font-size: .85rem; }
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}

/* ------------------------------- Header ---------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    display: grid; place-items: center; color: #fff; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { color: var(--text-soft); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-spacer { flex: 1; }
.nav-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-soft); cursor: pointer;
    display: grid; place-items: center; font-size: 1.05rem; transition: .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.lang-switch a { padding: 8px 10px; font-size: .8rem; font-weight: 600; color: var(--text-soft); }
.lang-switch a:hover { background: var(--surface-2); text-decoration: none; }
.lang-switch a.active { background: var(--brand); color: #fff; }

.menu-toggle { display: none; }

/* ------------------------------- Buttons --------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: .95rem;
    border: 1px solid transparent; cursor: pointer; transition: .15s; text-decoration: none;
    line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* -------------------------------- Cards ---------------------------------- */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.card-pad-sm { padding: 16px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.wrap { flex-wrap: wrap; }

/* --------------------------------- Forms --------------------------------- */
.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--text-soft); }
input[type=text], input[type=email], input[type=password], input[type=search],
input[type=number], select, textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); color: var(--text); font-size: .95rem; font-family: inherit;
    transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
textarea { resize: vertical; min-height: 120px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text-soft); }
.checkbox input { width: auto; }
.field-hint { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

/* -------------------------------- Alerts --------------------------------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: .92rem; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: #166534; border-color: #bbf7d0; }
.alert-error   { background: var(--danger-bg);  color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-bg); color: #92400e; border-color: #fde68a; }
.alert-info    { background: var(--info-bg);    color: #1e40af; border-color: #bfdbfe; }
[data-theme="dark"] .alert-success{background:#052e16;color:#86efac;border-color:#14532d}
[data-theme="dark"] .alert-error{background:#450a0a;color:#fca5a5;border-color:#7f1d1d}
[data-theme="dark"] .alert-warning{background:#451a03;color:#fcd34d;border-color:#78350f}
[data-theme="dark"] .alert-info{background:#172554;color:#93c5fd;border-color:#1e3a8a}

/* -------------------------------- Badges --------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-gray { background: var(--surface-2); color: var(--text-soft); }
.badge-success { background: var(--success-bg); color: #166534; }
.badge-danger { background: var(--danger-bg); color: #991b1b; }
.badge-warning { background: var(--warning-bg); color: #92400e; }

/* --------------------------------- Tags ---------------------------------- */
.tag-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
    background: var(--brand-soft); color: var(--brand); border-radius: 999px;
    font-size: .78rem; font-weight: 600; text-decoration: none;
}
.tag-chip:hover { text-decoration: none; filter: brightness(.97); }

/* -------------------------------- Tables --------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { background: var(--surface-2); font-weight: 600; color: var(--text-soft); white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--surface-2); }

/* ------------------------------- Hero / marketing ------------------------ */
.hero { padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(1000px 400px at 50% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; margin-bottom: 18px; }
.hero p.lead { font-size: 1.2rem; color: var(--text-soft); max-width: 720px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.eyebrow { display:inline-block; background: var(--brand-soft); color: var(--brand); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .82rem; margin-bottom: 18px; }

.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 12px; font-size: 2rem; }
.section-sub { text-align: center; color: var(--text-soft); max-width: 640px; margin: 0 auto 44px; font-size: 1.05rem; }

.feature-card { text-align: left; }
.feature-icon {
    width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.feature-card p { color: var(--text-soft); margin: 0; }

.cta-banner {
    background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff;
    border-radius: 22px; padding: 52px 32px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; font-size: 2rem; margin: 0 0 12px; }
.cta-banner p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin: 0 0 26px; }
.cta-banner .btn-ghost { background: #fff; color: var(--brand); border: none; }

/* ------------------------------- Pricing --------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 780px; margin: 0 auto; }
.price-card { position: relative; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.price-card .price { font-size: 2.6rem; font-weight: 800; margin: 8px 0; }
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.price-list { list-style: none; padding: 0; margin: 20px 0; }
.price-list li { padding: 8px 0; display: flex; gap: 10px; align-items: center; color: var(--text-soft); }
.price-list li::before { content: '✓'; color: var(--success); font-weight: 800; }
.ribbon { position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; }

/* --------------------------- Dashboard layout ---------------------------- */
.app-shell { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; padding: 24px 0; }
.sidebar { position: sticky; top: 88px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
    color: var(--text-soft); font-weight: 500;
}
.sidebar-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.sidebar-nav a.active { background: var(--brand); color: #fff; }
.sidebar-nav a.active:hover { background: var(--brand-600); }

.stat-card { display: flex; flex-direction: column; gap: 6px; }
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-card .label { color: var(--text-muted); font-size: .9rem; }

.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* --------------------------------- Notes --------------------------------- */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.note-card { display: flex; flex-direction: column; height: 100%; transition: .15s; position: relative; }
.note-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.note-card h3 { font-size: 1.05rem; margin: 0 0 6px; padding-right: 24px; }
.note-card .note-body { color: var(--text-soft); font-size: .9rem; flex: 1; overflow: hidden; }
.note-card .note-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: .78rem; color: var(--text-muted); }
.note-card .pin { position: absolute; top: 16px; right: 16px; color: var(--warning); }
.note-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .grow { flex: 1; min-width: 180px; }

/* ------------------------- Search dropdown (AJAX) ------------------------ */
.search-box { position: relative; }
.search-results {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow-lg); max-height: 420px; overflow-y: auto; display: none;
}
.search-results.show { display: block; }
.search-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--surface-2); text-decoration: none; }
.search-item .si-title { font-weight: 600; }
.search-item .si-excerpt { font-size: .85rem; color: var(--text-muted); }
.search-item mark { background: color-mix(in srgb, var(--brand) 30%, transparent); color: inherit; padding: 0 2px; border-radius: 3px; }
.search-empty { padding: 16px; color: var(--text-muted); text-align: center; }

/* ------------------------------- Content view ---------------------------- */
.note-content { font-size: 1rem; line-height: 1.75; word-wrap: break-word; }
.note-content h1,.note-content h2,.note-content h3 { margin-top: 1.4em; }
.note-content pre { background: var(--surface-2); padding: 14px; border-radius: 10px; overflow-x: auto; }
.note-content code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.note-content pre code { background: none; padding: 0; }
.note-content blockquote { border-left: 4px solid var(--brand); margin: 1em 0; padding: 4px 16px; color: var(--text-soft); }
.note-content img { border-radius: 10px; }
.note-content table { border-collapse: collapse; }
.note-content th, .note-content td { border: 1px solid var(--border); padding: 8px 12px; }

/* -------------------------------- Footer --------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 64px; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .95rem; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-soft); font-size: .9rem; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; text-align: center; color: var(--text-muted); font-size: .85rem; }

/* --------------------------------- Modal --------------------------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius); max-width: 520px; width: 100%; padding: 26px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }

/* --------------------------------- Auth ---------------------------------- */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.divider { text-align: center; color: var(--text-muted); font-size: .85rem; margin: 18px 0; }

/* ------------------------------ Utilities -------------------------------- */
.hidden { display: none !important; }
.kbd { display:inline-block; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); font-family: monospace; font-size: .82rem; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
        background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px; gap: 2px; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px; }
    .menu-toggle { display: grid; }
    .grid-2, .grid-3, .grid-4, .price-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 50px 0 40px; }
}



/* =========================================================================
   Supplementary components (admin panel, public marketing, legal pages)
   Appended in v1.0.0 — these complement the base design system above.
   ========================================================================= */

/* --- Small utilities used by newer pages --- */
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.text-muted { color: var(--text-muted); }
.p-1 { padding: .5rem; }
.p-3 { padding: 1.5rem; }
.my-3 { margin: 1.5rem 0; }
.gap-4 { gap: 2rem; }
.small { font-size: .85rem; }

/* --- Generic stacked list --- */
.stack { display: flex; flex-direction: column; }

/* --- Page section heading block --- */
.page-head h1 { margin: 0 0 8px; }
.page-head p { margin: 0 auto; max-width: 640px; }

/* --- Card header row --- */
.card-head { margin-bottom: 12px; }
.card-unread { border-left: 3px solid var(--brand); }

/* --- Admin statistic cards grid --- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.stat-grid .stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat-label { color: var(--text-muted); font-size: .85rem; margin-top: 4px; }
.stat-inline { color: var(--text-muted); font-size: .95rem; }

/* --- Badge variants used across admin --- */
.badge-muted   { background: var(--surface-2); color: var(--text-muted); }
.badge-primary { background: var(--brand-soft); color: var(--brand-600); }

/* --- Tables: hover rows --- */
.table-hover tbody tr:hover { background: var(--surface-2); }

/* --- Simple dropdown menu (admin user actions) --- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 4px); z-index: 40;
    min-width: 190px; padding: 6px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    display: none;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-form { margin: 0; }
.dropdown-item {
    display: block; width: 100%; text-align: left;
    padding: 8px 10px; border: 0; background: none; cursor: pointer;
    font: inherit; color: var(--text); border-radius: 8px;
}
.dropdown-item:hover { background: var(--surface-2); }
.dropdown-item.danger, .btn.danger { color: var(--danger); }

/* --- Pagination --- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); text-decoration: none; font-size: .9rem;
}
.page-link:hover { background: var(--surface-2); }
.page-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --- Marketing hero (landing) --- */
.hero-inner { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; margin: 0 0 18px; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-soft); max-width: 720px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Feature grid (landing + features page) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.feature-grid .feature-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.feature-grid .feature-card h3 { margin: 10px 0 8px; }
.feature-icon { font-size: 1.8rem; line-height: 1; }

/* --- Pricing cards --- */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; align-items: stretch;
}
.pricing-card {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.pricing-card.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.pricing-card h3 { margin: 0 0 6px; }
.pricing-card .price { font-size: 2.2rem; font-weight: 800; margin: 8px 0 16px; }
.pricing-card .price-unit { font-size: .95rem; font-weight: 500; color: var(--text-muted); }
.pricing-card .price-list { flex: 1; }
.pricing-card .ribbon {
    position: absolute; top: 14px; right: -30px; transform: rotate(45deg);
    background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700;
    padding: 4px 36px; letter-spacing: .04em;
}

/* --- Accordion (FAQ) --- */
.accordion-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 10px; padding: 4px 18px;
}
.accordion-item summary {
    cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: '+'; font-size: 1.2rem; color: var(--text-muted); }
.accordion-item[open] summary::after { content: '\2212'; }
.accordion-body { padding: 0 0 16px; }

/* --- Best-practices cards --- */
.practice-card { display: flex; gap: 16px; align-items: flex-start; }
.practice-card .feature-icon { font-size: 1.6rem; }

/* --- Legal documents --- */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-tab {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
    color: var(--text); text-decoration: none; font-size: .88rem;
}
.legal-tab:hover { background: var(--surface-2); }
.legal-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.legal-doc h1 { margin-top: 0; }
.legal-body p { line-height: 1.7; margin: 0 0 14px; color: var(--text-soft); }

/* --- Admin sidebar title --- */
.sidebar-title {
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--text-muted); padding: 4px 10px 10px;
}

@media (max-width: 720px) {
    .practice-card { flex-direction: column; }
}
