/* =====================================================================
   TRATOK CORPORATES — Global Styles
   Aligned with the Tratok ecosystem palette: gold-led obsidian theme
   shared across tratok.net / .info / .org / hospitality.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ─── Design tokens (mirror Hospitality) ─────────────────────────── */
:root {
    --gold-50:  #fefbf0;
    --gold-100: #fdf3d0;
    --gold-200: #fae5a0;
    --gold-300: #f4cf5c;
    --gold-400: #e8b82e;
    --gold-500: #d4a843;
    --gold-600: #b8892a;
    --gold-700: #926a1f;
    --gold-800: #6d4f18;

    --coral-400: #f07b65;
    --coral-500: #e8634a;
    --teal-400:  #5ccec2;
    --teal-500:  #3bb5a8;

    --bg-body:     #0c1018;
    --bg-surface:  #131a28;
    --bg-elevated: #1a2335;
    --bg-card:     #161e2e;
    --bg-input:    #0f1622;
    --bg-hover:    #1d2740;

    --border-subtle:  rgba(212, 168, 67, 0.06);
    --border-default: rgba(212, 168, 67, 0.12);
    --border-strong:  rgba(212, 168, 67, 0.25);
    --border-muted:   rgba(255, 255, 255, 0.06);

    --text-primary:   #f0ede8;
    --text-secondary: #b8c0d0;
    --text-muted:     #8a96b0;

    --success:    #34d399;
    --success-bg: rgba(52, 211, 153, 0.10);
    --danger:     var(--coral-500);
    --danger-bg:  rgba(232, 99, 74, 0.10);
    --info:       var(--teal-400);
    --info-bg:    rgba(92, 206, 194, 0.10);
    --warning:    #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.10);

    --shadow-md:   0 4px 16px rgba(0,0,0,0.40);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.45);
    --shadow-gold: 0 4px 24px rgba(212, 168, 67, 0.14);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-height: 68px;
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Theme variants (toggled by js/theme.js via [data-theme]) ───── */
html[data-theme="midnight"] {
    --bg-body:     #060a14;
    --bg-surface:  #0c1326;
    --bg-elevated: #131a35;
    --bg-card:     #0f1830;
    --bg-input:    #08101f;
    --bg-hover:    #18224a;
    --border-subtle:  rgba(168, 197, 255, 0.04);
    --border-default: rgba(168, 197, 255, 0.10);
    --border-strong:  rgba(168, 197, 255, 0.22);
    --text-primary:   #eef1f8;
    --text-secondary: #b6c3da;
    --text-muted:     #7d8aa8;
}
html[data-theme="boardroom"] {
    --bg-body:     #f6f3ec;
    --bg-surface:  #ffffff;
    --bg-elevated: #ffffff;
    --bg-card:     #ffffff;
    --bg-input:    #faf7ee;
    --bg-hover:    #f2eee3;
    --border-subtle:  rgba(146, 106, 31, 0.10);
    --border-default: rgba(146, 106, 31, 0.18);
    --border-strong:  rgba(146, 106, 31, 0.32);
    --border-muted:   rgba(0, 0, 0, 0.08);
    --text-primary:   #1a1410;
    --text-secondary: #4d4239;
    --text-muted:     #8a7d6e;
    --shadow-md:      0 4px 16px rgba(146, 106, 31, 0.10);
    --shadow-lg:      0 12px 48px rgba(146, 106, 31, 0.14);
}
html[data-theme="boardroom"] .lp-nav,
html[data-theme="boardroom"] .dash-sidebar { background: #fffaf0; }

/* ─── RTL support (toggled by i18n.js when dir='rtl') ────────────── */
html[dir="rtl"] body { font-family: 'Tahoma', var(--font-body); }
html[dir="rtl"] .hero-cta i { margin-left: 8px; margin-right: 0; }
html[dir="rtl"] .feature-card,
html[dir="rtl"] .step-card { text-align: right; }
html[dir="rtl"] .benefit-item { flex-direction: row-reverse; }
html[dir="rtl"] .header-nav-links { flex-direction: row-reverse; }

/* ─── Reset / base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    /* Stop the offscreen drawer's transform from creating horizontal
       scroll on browsers that don't honour body's overflow-x:hidden. */
    overflow-x: clip;
}
body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: var(--gold-400); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-300); }
img { max-width: 100%; height: auto; }

/* ─── Header / glass nav ─────────────────────────────────────────── */
.lp-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 60px);
    background: rgba(12, 16, 24, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-base), border-color var(--transition-base);
}
.lp-nav.scrolled {
    background: rgba(12, 16, 24, 0.96);
    border-bottom-color: var(--border-default);
    box-shadow: 0 1px 20px rgba(0,0,0,0.4);
}
.lp-nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lp-nav-logo img { height: 32px; width: auto; }
.lp-nav-logo-divider { width: 1px; height: 22px; background: var(--border-strong); opacity: 0.5; }
.lp-nav-logo span {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 500; color: var(--gold-400);
    letter-spacing: 0.02em;
}
.lp-nav-links { display: flex; align-items: center; gap: 6px; }
.lp-nav-links a {
    padding: 8px 16px; border-radius: 8px;
    font-size: 0.82rem; font-weight: 600;
    transition: all 0.2s;
}
.lp-link-ghost { color: var(--text-secondary); }
.lp-link-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.lp-link-primary {
    color: #0c1018 !important;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    box-shadow: 0 4px 20px rgba(212,168,67,0.18);
}
.lp-link-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(212,168,67,0.28);
}

/* ─── Language switcher (rendered by js/i18n.js) ─────────────────── */
.lang-switcher { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-muted);
    color: var(--text-secondary);
    font-family: inherit; font-size: 0.78rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.lang-btn:hover { color: var(--text-primary); border-color: var(--border-default); background: rgba(255,255,255,0.06); }
.lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 200px; max-height: 360px; overflow-y: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px; opacity: 0; pointer-events: none;
    transform: translateY(-6px); transition: all 0.2s;
    z-index: 1100;
}
.lang-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-option {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 8px 12px;
    background: none; border: none; border-radius: 6px;
    color: var(--text-secondary); font-family: inherit;
    font-size: 0.82rem; cursor: pointer; text-align: left;
    transition: all 0.15s;
}
.lang-option:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.lang-option.active { background: rgba(212,168,67,0.10); color: var(--gold-400); }
.lang-flag { font-size: 1rem; }

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 140px 24px 80px; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 30%, rgba(212,168,67,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 70%, rgba(232,99,74,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.hero-grid {
    position: absolute; inset: 0; opacity: 0.04;
    background-image:
        linear-gradient(rgba(212,168,67,0.30) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,168,67,0.30) 1px, transparent 1px);
    background-size: 80px 80px; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 880px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px 6px 8px; border-radius: 100px;
    background: rgba(212,168,67,0.08);
    border: 1px solid rgba(212,168,67,0.18);
    font-size: 0.74rem; font-weight: 600; color: var(--gold-400);
    margin-bottom: 28px; letter-spacing: 0.04em; text-transform: uppercase;
    animation: fadeUp 0.8s ease-out;
}
.hero-badge i { font-size: 0.7rem; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700; line-height: 1.1; margin-bottom: 22px;
    color: var(--text-primary);
    animation: fadeUp 0.8s ease-out 0.1s both;
}
.hero h1 .text-gold { color: var(--gold-400); }
.hero-sub {
    font-size: clamp(0.98rem, 1.8vw, 1.18rem);
    color: var(--text-secondary); max-width: 640px;
    margin: 0 auto 36px; line-height: 1.7;
    animation: fadeUp 0.8s ease-out 0.2s both;
}
.hero-cta {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    animation: fadeUp 0.8s ease-out 0.3s both;
}
.btn-big {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 34px; border-radius: 12px; font-size: 0.94rem;
    font-weight: 700; border: none; cursor: pointer;
    transition: all 0.25s; text-decoration: none;
}
.btn-gold-big {
    color: #0c1018; background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    box-shadow: 0 4px 24px rgba(212,168,67,0.20);
}
.btn-gold-big:hover { color: #0c1018; transform: translateY(-2px); box-shadow: 0 8px 36px rgba(212,168,67,0.32); }
.btn-outline-big {
    color: var(--text-secondary); background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
}
.btn-outline-big:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.03); }

.hero-stats {
    display: flex; justify-content: center; gap: 48px; margin-top: 64px;
    animation: fadeUp 0.8s ease-out 0.4s both;
}
.hero-stat-value {
    display: block; font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 700; color: var(--gold-400);
}
.hero-stat-label {
    font-size: 0.72rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}

/* ─── Generic sections ───────────────────────────────────────────── */
.section { padding: 100px 24px; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-label {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--gold-500); margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--gold-600); }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 600; margin-bottom: 18px;
    line-height: 1.15; color: var(--text-primary);
}
.section-desc {
    font-size: 1.02rem; color: var(--text-secondary);
    max-width: 620px; margin-bottom: 56px; line-height: 1.7;
}
.section-center { text-align: center; }
.section-center .section-label { justify-content: center; }
.section-center .section-desc { margin-left: auto; margin-right: auto; }

/* ─── Feature cards (3-col grid) ─────────────────────────────────── */
.features-section { background: var(--bg-surface); }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.35s ease;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
    opacity: 0; transition: opacity 0.35s;
}
.feature-card:hover {
    border-color: var(--border-default); transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.18rem; margin-bottom: 22px;
}
.fi-gold   { background: rgba(212,168,67,0.10); color: var(--gold-400); }
.fi-green  { background: rgba(52,211,153,0.10); color: var(--success); }
.fi-blue   { background: rgba(96,165,250,0.10); color: #60a5fa; }
.fi-rose   { background: rgba(251,113,133,0.10); color: #fb7185; }
.fi-purple { background: rgba(168,85,247,0.10); color: #a855f7; }
.fi-amber  { background: rgba(251,191,36,0.10); color: var(--warning); }
.fi-teal   { background: rgba(92,206,194,0.10); color: var(--teal-400); }
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.08rem; font-weight: 600;
    margin-bottom: 10px; color: var(--text-primary);
}
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ─── How It Works (4 steps) ─────────────────────────────────────── */
.steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 28px; position: relative;
}
.steps-grid::before {
    content: ''; position: absolute; top: 34px; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-600), var(--gold-600), transparent);
    opacity: 0.3; z-index: 0;
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-number {
    width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 22px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border: 2px solid var(--border-default);
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 700; color: var(--gold-400);
    transition: all 0.3s;
}
.step-card:hover .step-number {
    background: rgba(212,168,67,0.10);
    border-color: var(--gold-500); transform: scale(1.06);
}
.step-card h3 {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary);
}
.step-card p {
    font-size: 0.84rem; color: var(--text-muted);
    line-height: 1.55; max-width: 220px; margin: 0 auto;
}

/* ─── Benefits (split panel) ─────────────────────────────────────── */
.benefits-section { background: var(--bg-surface); }
.benefits-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center;
}
.benefits-list { display: flex; flex-direction: column; gap: 26px; }
.benefit-item { display: flex; gap: 16px; }
.benefit-check {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; margin-top: 2px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(52,211,153,0.10); color: var(--success); font-size: 0.74rem;
}
.benefit-item h4 {
    font-family: var(--font-display);
    font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; color: var(--text-primary);
}
.benefit-item p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.55; }

.benefits-visual {
    position: relative; background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl); padding: 44px;
    text-align: center;
}
.benefits-visual-glow {
    position: absolute; inset: -40px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,67,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.bv-icon { font-size: 4rem; color: var(--gold-500); opacity: 0.18; margin-bottom: 18px; }
.bv-stat { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--gold-400); }
.bv-label { font-size: 0.88rem; color: var(--text-muted); margin-top: 6px; }

/* ─── Concierge "coming soon" panel ──────────────────────────────── */
.concierge-panel {
    margin: 0 auto; max-width: 1180px;
    background: linear-gradient(135deg, rgba(212,168,67,0.06), rgba(232,99,74,0.04));
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 40px 44px;
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 28px; align-items: center;
}
.concierge-icon {
    width: 64px; height: 64px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    display: flex; align-items: center; justify-content: center;
    color: #0c1018; font-size: 1.5rem; flex-shrink: 0;
}
.concierge-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 600; margin-bottom: 6px;
    color: var(--text-primary);
}
.concierge-content p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; }
.concierge-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 100px;
    background: rgba(212,168,67,0.12);
    border: 1px solid rgba(212,168,67,0.2);
    font-size: 0.7rem; font-weight: 700; color: var(--gold-400);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 8px;
}

/* ─── CTA section ────────────────────────────────────────────────── */
.cta-section {
    text-align: center; padding: 100px 24px;
    background: linear-gradient(180deg, var(--bg-body) 0%, #0e131e 100%);
    position: relative;
}
.cta-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-600), transparent);
    opacity: 0.3;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 600; margin-bottom: 16px; color: var(--text-primary);
}
.cta-inner p { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 36px; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.lp-footer {
    padding: 48px 24px 32px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}
.footer-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 18px;
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-left img { height: 28px; opacity: 0.7; }
.footer-left span { font-size: 0.78rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-400); }

/* ─── Buttons (general purpose) ──────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.88rem; font-weight: 600;
    border: 1px solid transparent; cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none; line-height: 1.2;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
    color: #0c1018;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    box-shadow: 0 4px 16px rgba(212,168,67,0.18);
}
.btn-gold:hover { color: #0c1018; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212,168,67,0.28); }
.btn-outline { color: var(--text-secondary); background: transparent; border-color: var(--border-default); }
.btn-outline:hover { color: var(--text-primary); border-color: var(--border-strong); background: rgba(255,255,255,0.03); }
.btn-ghost { color: var(--text-secondary); background: transparent; }
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.btn-danger { color: #fff; background: var(--danger); }
.btn-danger:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 0.96rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ─── Form elements ──────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
}
.form-group label i { color: var(--gold-500); font-size: 0.78rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-sm);
    color: var(--text-primary); font-family: inherit; font-size: 0.92rem;
    transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--gold-500); background: var(--bg-card);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.form-group select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a96b0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 38px;
}
.form-error {
    font-size: 0.75rem; color: var(--danger);
    margin-top: 4px; min-height: 1em;
}
.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

/* ─── Flash messages ─────────────────────────────────────────────── */
.flash-message {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 0.86rem; margin-bottom: 18px; line-height: 1.5;
    border: 1px solid transparent;
}
.flash-message i { flex-shrink: 0; margin-top: 2px; }
.flash-success { background: var(--success-bg); color: var(--success); border-color: rgba(52,211,153,0.25); }
.flash-error   { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(232,99,74,0.25); }
.flash-info    { background: var(--info-bg);    color: var(--info);    border-color: rgba(92,206,194,0.25); }
.flash-warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(251,191,36,0.25); }

/* ─── Reveal animations (used by js/main.js) ─────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid    { grid-template-columns: 1fr 1fr; }
    .steps-grid::before { display: none; }
    .benefits-grid { grid-template-columns: 1fr; gap: 40px; }
    .concierge-panel { grid-template-columns: 1fr; text-align: center; }
    .concierge-icon { margin: 0 auto; }
}
/* ═════════════════════════════════════════════════════════════════
   MOBILE NAVIGATION SHARED STYLES
   These rules style the slide-out drawer markup used by the home page
   (.lp-mobile-drawer in index.php), the auth pages (rendered by
   app_includes/auth_mobile_head.php), and the dashboard (which extends
   them in dash-polish.css). MUST live in platform.css because
   platform.css is the only stylesheet loaded by every property page.
   ═════════════════════════════════════════════════════════════════ */

/* Generic hamburger button (also used by dashboard topbar via .menu-toggle) */
.menu-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}
.menu-toggle:hover {
    border-color: var(--border-default);
    color: var(--gold-400);
}
.menu-toggle .bars {
    width: 18px; height: 14px;
    position: relative; display: block;
}
.menu-toggle .bars::before,
.menu-toggle .bars::after,
.menu-toggle .bars span {
    content: ''; position: absolute; left: 0; right: 0;
    height: 2px; border-radius: 1px;
    background: currentColor;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars span    { top: 6px; display: block; }
.menu-toggle .bars::after  { bottom: 0; }
.menu-toggle.open .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open .bars::after  { transform: translateY(-6px) rotate(-45deg); }
.menu-toggle.open .bars span    { opacity: 0; transform: scaleX(0); }

/* Slide-out drawer + backdrop (shared by all pages) */
.lp-mobile-backdrop {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(8,12,20,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.lp-mobile-backdrop.open { opacity: 1; pointer-events: auto; }

.lp-mobile-drawer {
    position: fixed;
    top: 0; right: 0;
    /* Use the dynamic viewport height so iOS Safari's URL bar doesn't
       clip the bottom of the drawer; fall back to 100vh on browsers that
       don't support dvh. */
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(420px, 92vw);
    background: var(--bg-surface);
    border-left: 1px solid var(--border-default);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    display: flex; flex-direction: column;
    box-shadow: -16px 0 48px rgba(0,0,0,0.5);
    /* Respect notches / home indicators */
    padding-top:    env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-right:  env(safe-area-inset-right);
}
html[dir="rtl"] .lp-mobile-drawer {
    right: auto; left: 0;
    border-left: none; border-right: 1px solid var(--border-default);
    transform: translateX(-100%);
    padding-right: 0;
    padding-left: env(safe-area-inset-left);
}
.lp-mobile-drawer.open { transform: translateX(0); }

/* Full-screen takeover on phones — no awkward backdrop strip */
@media (max-width: 600px) {
    .lp-mobile-drawer {
        width: 100vw; max-width: 100%;
        border-left: none;
        box-shadow: none;
    }
    html[dir="rtl"] .lp-mobile-drawer { border-right: none; }
}

.lp-mobile-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
    background: var(--bg-surface);
}
.lp-mobile-head img { height: 32px; }
.lp-mobile-close {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.lp-mobile-close:hover {
    color: var(--text-primary); border-color: var(--border-default);
    transform: rotate(90deg);
}

.lp-mobile-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
}
.lp-mobile-link {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    color: var(--text-secondary);
    font-size: 0.94rem; font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.18s ease;
    margin-bottom: 2px;
}
.lp-mobile-link i {
    width: 18px; text-align: center;
    color: var(--text-muted);
    font-size: 0.86rem;
}
.lp-mobile-link:hover, .lp-mobile-link:active {
    background: rgba(212,168,67,0.08);
    color: var(--gold-400);
}
.lp-mobile-link:hover i, .lp-mobile-link:active i { color: var(--gold-400); }

.lp-mobile-cta {
    flex-shrink: 0;
    padding: 16px 16px 14px;
    display: flex; flex-direction: column; gap: 10px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}
.lp-mobile-foot {
    flex-shrink: 0;
    padding: 14px 22px;
    border-top: 1px solid var(--border-subtle);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    background: var(--bg-surface);
}

/* Lock body scroll while a drawer or bottom sheet is open. */
body.menu-locked,
body.sheet-open {
    overflow: hidden;
    overscroll-behavior: contain;
}

/* Tap-target polish on mobile drawer items */
@media (max-width: 700px) {
    .lp-mobile-link {
        padding: 16px 18px;
        font-size: 1rem;
        min-height: 56px;
    }
    .lp-mobile-link i { font-size: 1rem; width: 22px; }
    .lp-mobile-head { padding: 18px 22px 16px; }
    .lp-mobile-cta { padding: 18px 18px 12px; }
    .lp-mobile-foot { padding: 14px 22px; }
    .lp-mobile-close { width: 42px; height: 42px; }
}

/* ═══════════════════════════════════════════════════════════════════
   LANGUAGE PICKER — smart positioning + mobile bottom-sheet pattern
   On mobile, the dropdown is replaced by a full-width bottom sheet so
   it can never overflow off-screen. On desktop the dropdown auto-flips
   up/left when needed. Single source of truth: js/i18n.js opens the
   right variant based on viewport.
   ═══════════════════════════════════════════════════════════════════ */

/* Smart dropdown positioning (desktop) */
.lang-menu.up    { top: auto; bottom: calc(100% + 8px); }
.lang-menu.flush-left  { right: auto; left: 0; }
.lang-menu.flush-right { right: 0; left: auto; }

/* Bottom sheet (mobile) */
.lang-sheet-backdrop {
    position: fixed; inset: 0; z-index: 4500;
    background: rgba(8,12,20,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.lang-sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.lang-sheet {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 4501;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-default);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -16px 48px rgba(0,0,0,0.55);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    max-height: 78vh;
    display: flex; flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
}
.lang-sheet.open { transform: translateY(0); }

.lang-sheet-handle {
    width: 44px; height: 4px;
    background: var(--text-muted);
    border-radius: 2px;
    margin: 10px auto 4px;
    opacity: 0.4;
    flex-shrink: 0;
}
.lang-sheet-head {
    padding: 12px 22px 10px;
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-subtle);
}
.lang-sheet-head h3 {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 600;
    color: var(--text-primary);
}
.lang-sheet-close {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer; padding: 0;
    transition: all 0.2s ease;
}
.lang-sheet-close:hover {
    color: var(--text-primary); border-color: var(--border-default);
}
.lang-sheet-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px 18px;
    flex: 1 1 auto; min-height: 0;
}
.lang-sheet-option {
    display: flex; align-items: center; gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: none; border: none;
    color: var(--text-primary);
    font-family: inherit; font-size: 0.96rem; font-weight: 500;
    cursor: pointer; text-align: left;
    border-radius: 12px;
    transition: background 0.15s ease;
    min-height: 56px;
}
.lang-sheet-option:hover, .lang-sheet-option:active {
    background: rgba(212,168,67,0.08);
}
.lang-sheet-option.active {
    background: rgba(212,168,67,0.12);
    color: var(--gold-400);
    font-weight: 600;
}
.lang-sheet-option .lang-flag { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.lang-sheet-option .lang-name { flex: 1; }
.lang-sheet-option .check {
    color: var(--gold-400);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.lang-sheet-option.active .check { opacity: 1; }

/* ─── Hamburger toggle (home page nav) ──────────────────────────── */
/* Base style MUST come before media queries so its `display: none` doesn't
   shadow the `display: inline-flex` set inside the @media block below. */
.lp-nav-mobile-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}
.lp-nav-mobile-toggle:hover {
    border-color: var(--border-default);
    color: var(--gold-400);
}
.lp-nav-mobile-toggle .bars {
    width: 18px; height: 14px;
    position: relative; display: block;
}
.lp-nav-mobile-toggle .bars::before,
.lp-nav-mobile-toggle .bars::after,
.lp-nav-mobile-toggle .bars span {
    content: ''; position: absolute; left: 0; right: 0;
    height: 2px; border-radius: 1px;
    background: currentColor;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
}
.lp-nav-mobile-toggle .bars::before { top: 0; }
.lp-nav-mobile-toggle .bars span    { top: 6px; display: block; }
.lp-nav-mobile-toggle .bars::after  { bottom: 0; }
.lp-nav-mobile-toggle.open .bars::before { transform: translateY(6px) rotate(45deg); }
.lp-nav-mobile-toggle.open .bars::after  { transform: translateY(-6px) rotate(-45deg); }
.lp-nav-mobile-toggle.open .bars span    { opacity: 0; transform: scaleX(0); }

@media (max-width: 850px) {
    .lp-nav { padding: 0 16px; }
    .lp-nav-links { gap: 4px; }
    /* Hide non-essential top-level links on tablets — drawer takes over */
    .lp-nav-links > a.lp-link-ghost { display: none; }
    .lp-nav-links > #langSwitcher  { display: none; }
    .lp-nav-mobile-toggle { display: inline-flex; }
}
@media (max-width: 700px) {
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid    { grid-template-columns: 1fr; gap: 18px; }
    .hero-stats    { flex-direction: column; gap: 18px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .form-row     { grid-template-columns: 1fr; }
    .section { padding: 70px 20px; }
    /* Hero CTAs full-width on phones */
    .hero-cta { flex-direction: column; align-items: stretch; padding: 0 16px; }
    .hero-cta .btn-big { justify-content: center; }
    /* On phones the "Get Started Free" CTA lives in the drawer, not the header */
    .lp-nav-links > a.lp-link-primary { display: none; }
}
