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

:root {
    /* Cinnamon — primary */
    --primary: #A67448;
    --primary-dark: #8B5E38;
    --primary-light: #D4A876;
    /* Mediterranean blue — accent */
    --accent: #5BA8C4;
    --accent-dark: #4590A8;
    /* Light blue — background */
    --bg: #EDF5F8;
    --bg-alt: #E0EFF4;
    /* Warm gray — text */
    --text: #5A554D;
    --text-muted: #7A756D;
    --text-light: #9C9590;
    --white: #FFFFFF;
    --border: #E0D8CC;
    /* Olive — success */
    --success: #8FA876;
    /* Terracotta — error / warning */
    --error: #C97A6B;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(90,85,77,0.08), 0 1px 2px rgba(90,85,77,0.06);
    --shadow-lg: 0 10px 25px rgba(90,85,77,0.1);
    --max-width: 1100px;
    --font: 'Segoe UI', Tahoma, Arial, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

/* === Typography === */
h1, h2, h3 {
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

a:hover {
    color: var(--primary-dark);
}

/* === Layout === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section--alt {
    background: var(--bg-alt);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    text-decoration: none;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn--secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn--full {
    width: 100%;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === Landing Page === */

.landing-page {
    --ink: #5A554D;
    --muted: #7A756D;
    --paper: #EDF5F8;
    --cinnamon: #A67448;
    --cinnamon-dark: #8B5E38;
    --blue: #5BA8C4;
    --olive: #8FA876;
    --terracotta: #C97A6B;
    background:
        radial-gradient(circle at 12% 8%, rgba(166, 116, 72, 0.12), transparent 28rem),
        radial-gradient(circle at 86% 18%, rgba(91, 168, 196, 0.15), transparent 30rem),
        linear-gradient(180deg, #EDF5F8 0%, #E0EFF4 44%, #EDF5F8 100%);
    color: var(--ink);
    overflow: hidden;
}

.landing-page .container {
    max-width: 1160px;
}

/* Hero */
.landing-hero {
    min-height: 92vh;
    padding: 2rem 0 3rem;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 3rem;
    align-items: center;
}

.hero-logo {
    max-width: 360px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(166, 116, 72, 0.2);
    border-radius: 999px;
    background: rgba(166, 116, 72, 0.06);
    color: var(--cinnamon);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.hero-grid > div:first-child {
    text-align: center;
}

.landing-hero h1 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.35rem, 6vw, 5rem);
    line-height: 1.03;
    margin-bottom: 1.35rem;
    letter-spacing: 0;
    color: var(--cinnamon-dark);
}

.hero-lede {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    color: var(--ink);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.landing-page .btn {
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(166, 116, 72, 0.18);
}

.landing-page .btn--primary {
    background: var(--cinnamon);
}

.landing-page .btn--primary:hover {
    background: var(--cinnamon-dark);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.75rem;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(90, 85, 77, 0.08);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Phone mockup */
.phone-shell {
    position: relative;
    max-width: 420px;
    margin-inline: auto;
    border-radius: 34px;
    padding: 0.85rem;
    background: #1E3A4A;
    box-shadow: 0 28px 80px rgba(30, 58, 74, 0.35);
}

.phone-screen {
    border-radius: 26px;
    overflow: hidden;
    background: #EDF5F8;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.chat-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--blue);
    color: white;
    font-weight: 800;
}

.bot-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--cinnamon);
    font-size: 1.25rem;
}

.chat-body {
    min-height: 510px;
    padding: 1.1rem;
    background:
        linear-gradient(rgba(237, 245, 248, 0.88), rgba(237, 245, 248, 0.88)),
        repeating-linear-gradient(45deg, transparent 0 18px, rgba(91, 168, 196, 0.05) 18px 19px);
}

.bubble {
    width: fit-content;
    max-width: 92%;
    margin-bottom: 0.8rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    line-height: 1.45;
    box-shadow: 0 2px 8px rgba(30, 58, 74, 0.08);
}

.bubble--user {
    margin-right: auto;
    background: #D4EAF2;
}

.bubble--bot {
    margin-left: auto;
    background: #fff;
}

.bubble strong {
    color: var(--cinnamon-dark);
}

.chat-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    margin: 1rem 0;
}

.metric {
    padding: 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(91, 168, 196, 0.15);
}

.metric b {
    display: block;
    font-size: 1.25rem;
    color: var(--cinnamon-dark);
    line-height: 1.2;
}

.metric span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.2rem;
    padding: 0.65rem 0.8rem;
    border-radius: 999px;
    background: white;
    color: var(--muted);
    font-weight: 700;
}

/* Content sections */
.section-panel {
    padding: 5rem 0;
}

.section-panel h2,
.cta-band h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.12;
    margin-bottom: 1.2rem;
    color: var(--cinnamon-dark);
}

.section-panel p {
    color: var(--ink);
    font-size: 1.12rem;
    line-height: 1.7;
}

.section-panel--alt {
    background: rgba(91, 168, 196, 0.04);
    border-top: 1px solid rgba(91, 168, 196, 0.1);
    border-bottom: 1px solid rgba(91, 168, 196, 0.1);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.block {
    max-width: 780px;
}

.block p {
    margin-bottom: 1rem;
}

.pain-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.pain-list li {
    padding: 1.1rem 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(90, 85, 77, 0.08);
    border-right: 3px solid var(--blue);
    box-shadow: 0 6px 20px rgba(90, 85, 77, 0.05);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.55;
}

.solution-text p {
    margin-bottom: 1rem;
}

.habits-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.habits-list li {
    padding: 0.58rem 0.95rem;
    border-radius: 999px;
    background: var(--cinnamon);
    color: white;
    font-weight: 800;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.features-list li {
    padding: 1.3rem 1.4rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(91, 168, 196, 0.1);
    box-shadow: 0 8px 24px rgba(90, 85, 77, 0.06);
    line-height: 1.6;
}

.features-list li strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--cinnamon-dark);
}

/* CTA band */
.cta-band {
    padding: 5rem 0;
    background: #3D3428;
    color: white;
    text-align: center;
}

.cta-band h2 {
    color: white;
    max-width: 780px;
    margin-inline: auto;
}

.cta-band p {
    max-width: 650px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.15rem;
}

.cta-band .btn {
    margin-top: 1rem;
    background: var(--cinnamon);
    color: white;
    box-shadow: none;
}

.cta-band .btn:hover {
    background: var(--primary-light);
    color: #3D3428;
}

.tagline {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

/* Consent section */
.consent-section {
    padding: 4rem 0;
    background: rgba(166, 116, 72, 0.06);
    border-top: 1px solid rgba(166, 116, 72, 0.1);
    border-bottom: 1px solid rgba(166, 116, 72, 0.1);
}

.consent-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem;
}

.consent-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--cinnamon-dark);
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.consent-checkbox:hover {
    border-color: var(--primary-light);
}

.consent-checkbox--checked {
    border-color: var(--primary);
    background: rgba(166, 116, 72, 0.06);
}

.consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.consent-checkbox label {
    font-weight: 600;
    cursor: pointer;
    line-height: 1.5;
}

.consent-checkbox label a {
    color: var(--primary);
    text-decoration: underline;
}

.consent-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-right: 0.5rem;
}

.consent-badge--required {
    background: rgba(166, 116, 72, 0.12);
    color: var(--cinnamon-dark);
}

.consent-badge--optional {
    background: rgba(143, 168, 118, 0.15);
    color: var(--success);
}

.consent-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.marketing-notice {
    margin-top: 1rem;
    font-size: 0.85em;
    color: #5A554D;
    text-align: center;
    line-height: 1.5;
}

/* Post-signup zone */
.post-signup-zone {
    padding: 4rem 0;
    text-align: center;
}

.post-signup-card {
    max-width: 540px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2rem;
}

.post-signup-card h2 {
    color: var(--cinnamon-dark);
    margin-bottom: 1rem;
}

.post-signup-card .btn {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
}

.post-signup-fallback {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.post-signup-fallback a,
.post-signup-fallback button {
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: none;
    font-size: inherit;
    font-family: inherit;
    text-decoration: underline;
}

.copy-toast {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    background: var(--success);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* About section */
.about-section {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.about-section h2 {
    color: var(--cinnamon-dark);
}

.about-section p {
    font-size: 1.12rem;
    color: var(--ink);
}

/* Flash messages */
.flash {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
    max-width: 640px;
    margin-inline: auto;
}

.flash--error {
    background: rgba(201, 122, 107, 0.12);
    color: var(--error);
    border: 1px solid rgba(201, 122, 107, 0.25);
}

.flash--success {
    background: rgba(143, 168, 118, 0.12);
    color: var(--success);
    border: 1px solid rgba(143, 168, 118, 0.25);
}

/* Footer */
.landing-footer {
    padding: 2rem 0;
    background: #E0EFF4;
    border-top: 1px solid rgba(91, 168, 196, 0.15);
    color: var(--muted);
    text-align: center;
}

.landing-footer p {
    margin-bottom: 0.6rem;
}

.landing-footer a {
    color: var(--ink);
    margin: 0 0.65rem;
    font-weight: 700;
}

/* === Legal pages (terms, privacy, about) === */
.legal-page {
    padding: 3rem 0;
    max-width: 780px;
    margin: 0 auto;
}

.legal-page h1 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.legal-page .subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.legal-page h2 {
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.legal-page p,
.legal-page li {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.legal-page ul {
    margin: 0.75rem 0 1rem 1.5rem;
}

.legal-page li {
    margin-bottom: 0.4rem;
}

.legal-page .warning-box {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
    background: rgba(201, 122, 107, 0.08);
    border-right: 4px solid var(--error);
    margin: 1rem 0;
}

.legal-page .warning-box p {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.legal-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--primary);
}

.legal-page .back-link:hover {
    color: var(--primary-dark);
}

/* === Onboarding (legacy, kept for existing dashboard) === */
.onboarding-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--bg);
}

.onboarding-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 520px;
}

.onboarding-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

/* Progress bar */
.progress-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.progress-step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    transition: background 0.3s;
}

.progress-step--active {
    background: var(--primary);
}

.progress-step--done {
    background: var(--success);
}

/* Form elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color 0.2s;
    direction: rtl;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-hint {
    font-size: 0.825rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.form-warning {
    font-size: 0.875rem;
    color: var(--error);
    margin-top: 0.25rem;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.checkbox-group:hover {
    border-color: var(--primary-light);
}

.checkbox-group--checked {
    border-color: var(--primary);
    background: rgba(166, 116, 72, 0.06);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.checkbox-group label {
    font-weight: 600;
    cursor: pointer;
}

.checkbox-group .sub-label {
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Goal target input (nested under checkbox) */
.goal-target {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.goal-target .form-input {
    max-width: 200px;
}

.suggested-target {
    font-size: 0.825rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

/* Navigation buttons */
.step-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.step-nav .btn {
    flex: 1;
}

/* === Dashboard === */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.dashboard-nav {
    width: 220px;
    background: var(--white);
    border-left: 1px solid var(--border);
    padding: 2rem 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border-right: 3px solid transparent;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dashboard-nav-item:hover {
    color: var(--primary);
    background: rgba(166, 116, 72, 0.06);
}

.dashboard-nav-item--active {
    color: var(--primary);
    border-right-color: var(--primary);
    background: rgba(166, 116, 72, 0.06);
    font-weight: 600;
}

.dashboard-nav-item--danger {
    color: var(--error);
}

.dashboard-nav-item--danger:hover {
    background: rgba(201, 122, 107, 0.06);
    color: #B06A4D;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    max-width: 720px;
    min-width: 0;
}

.dashboard-content--wide {
    max-width: none;
}

.dashboard-content h1 {
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

/* Card */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

/* Bot key display */
.key-display {
    background: var(--bg-alt);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
    direction: ltr;
    margin: 1.5rem 0;
    user-select: all;
}

.instructions-list {
    list-style: none;
    counter-reset: step;
}

.instructions-list li {
    counter-increment: step;
    padding: 0.75rem 0;
    padding-right: 2.5rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.instructions-list li:last-child {
    border-bottom: none;
}

.instructions-list li::before {
    content: counter(step);
    position: absolute;
    right: 0;
    top: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

/* === Scroll reveal === */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: calc(var(--item-delay, 0) * 0.12s);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 900px) {
    .landing-hero {
        min-height: auto;
        padding-top: 2.5rem;
    }

    .hero-grid,
    .split {
        grid-template-columns: 1fr;
    }

    .phone-shell {
        max-width: 390px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }

    .section {
        padding: 2.5rem 0;
    }

    .onboarding-card {
        padding: 2rem 1.25rem;
    }

    /* Mobile dashboard: nav becomes bottom bar */
    .dashboard-layout {
        flex-direction: column-reverse;
    }

    .dashboard-nav {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 0;
        display: flex;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        z-index: 100;
        background: var(--white);
    }

    .dashboard-nav-item {
        flex: 1;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.25rem;
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
        border-right: none;
        border-top: 3px solid transparent;
    }

    .nav-icon {
        width: 18px;
        height: 18px;
    }

    .dashboard-nav-item--active {
        border-right-color: transparent;
        border-top-color: var(--primary);
    }

    .dashboard-content {
        padding: 1.5rem 1rem;
        padding-bottom: 5rem; /* space for fixed nav */
    }
}

@media (max-width: 540px) {
    .landing-page .container {
        padding: 0 1rem;
    }

    .landing-hero h1 {
        font-size: 2.45rem;
    }

    .hero-actions,
    .hero-actions .btn {
        width: 100%;
    }

    .phone-shell {
        border-radius: 26px;
        padding: 0.55rem;
    }

    .chat-body {
        min-height: 430px;
        padding: 0.85rem;
    }

    .section-panel,
    .cta-band {
        padding: 3.5rem 0;
    }

    .trust-row span,
    .habits-list li {
        flex: 1 1 auto;
        justify-content: center;
    }

    .consent-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .habits-list {
        flex-direction: column;
        align-items: stretch;
    }

    .habits-list li {
        text-align: center;
    }

    .step-nav {
        flex-direction: column-reverse;
    }
}

/* ============================================================
   Admin Dashboard (LTR, English)
   ============================================================ */

.admin-dashboard {
    direction: ltr;
    text-align: left;
}

/* -- KPI Cards -- */

.admin-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kpi-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.kpi-sub {
    font-size: 0.75rem;
    color: var(--text-light);
}

.kpi-funnel {
    flex-direction: column;
    gap: 0.75rem;
}

.funnel-stages {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.funnel-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.funnel-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.funnel-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.funnel-pct {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
}

.funnel-arrow {
    color: var(--text-light);
    font-size: 1.25rem;
}

.funnel-alt {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
}

.funnel-alt strong {
    color: var(--primary);
}

/* -- Charts -- */

.admin-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 2rem 2rem;
    box-shadow: var(--shadow);
    min-height: 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.chart-card canvas {
    flex: 1;
    min-height: 260px;
}

.chart-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

/* -- Hot Leads -- */

.admin-leads {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
}

.admin-leads h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.leads-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

.leads-tabs button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    font-family: var(--font);
}

.leads-tabs button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.leads-tabs button:hover {
    color: var(--text);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-muted);
    border-radius: 10px;
    margin-left: 0.35rem;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.leads-table th {
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.leads-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #f0ece6;
    vertical-align: middle;
}

.leads-table tr:hover td {
    background: #FAF7F2;
}

.lead-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.btn-outreach {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    background: #0088cc;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--font);
}

.btn-outreach:hover {
    background: #006699;
}

.btn-outreach:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-outreach--sent {
    background: var(--success);
}

.btn-whatsapp {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    background: #e8e8e8;
    border: none;
    border-radius: var(--radius-sm);
    cursor: not-allowed;
    opacity: 0.6;
    font-family: var(--font);
}

.btn-copy-msg {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    background: none;
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--font);
}

.btn-copy-msg:hover {
    background: rgba(166,116,72,0.08);
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
}

.badge-warn {
    background: #FFF3E0;
    color: var(--error);
}

.badge-info {
    background: #E8F4F8;
    color: var(--accent-dark);
}

.leads-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #FAF7F2;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.leads-empty {
    text-align: center;
    color: var(--text-light);
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* -- Copy Toast -- */

.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: var(--text);
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 1000;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* -- Admin responsive -- */

@media (max-width: 900px) {
    .admin-kpis {
        grid-template-columns: 1fr;
    }
    .admin-charts {
        grid-template-columns: 1fr;
    }
    .admin-main {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .leads-table {
        font-size: 0.8rem;
    }
    .lead-actions {
        flex-direction: column;
    }
    .funnel-stages {
        flex-wrap: wrap;
    }
}
