/* ═══════════════════════════════════════════════════════════════
   PlanAI — Styles
   Modern beige/gray UI with CSS custom properties for theming
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ────────────────────────────────────────────── */
:root {
    /* Colors */
    --accent: #8B7E74;
    --accent-light: #A89B91;
    --accent-dark: #6E6359;
    --bg: #FAF7F4;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F5F2EF;
    --bg-secondary: #F0ECE8;
    --bg-tertiary: #E8E3DE;
    --text: #2D2A26;
    --text-secondary: #5C574F;
    --text-muted: #9B958D;
    --border: #E2DDD7;
    --border-light: #EDE9E4;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: .2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 64px;
}

/* Dark mode */
[data-theme="dark"] {
    --bg: #1A1917;
    --bg-card: #242320;
    --bg-card-hover: #2E2D29;
    --bg-secondary: #2E2D29;
    --bg-tertiary: #38362F;
    --text: #F0ECE8;
    --text-secondary: #B8B2A8;
    --text-muted: #7A7468;
    --border: #3A3832;
    --border-light: #2E2D29;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,.25);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.35);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; }

/* ─── Typography ───────────────────────────────────────────────── */
h1 { font-size: 3rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: 2rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
h4 { font-size: 1rem; font-weight: 600; }

.text-accent { color: var(--accent); }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    font-family: var(--font); font-weight: 500; font-size: .9rem;
    padding: 10px 20px; border-radius: var(--radius-sm);
    border: 1.5px solid transparent; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-outline {
    background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-secondary); }

.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ─── Inputs ───────────────────────────────────────────────────── */
.input {
    display: block; width: 100%;
    font-family: var(--font); font-size: .9rem;
    padding: 10px 14px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border); background: var(--bg-card);
    color: var(--text); transition: all var(--transition);
    outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,126,116,.15); }
.input::placeholder { color: var(--text-muted); }
.input-sm { padding: 6px 10px; font-size: .82rem; }

.input-icon-wrap { position: relative; }
.input-icon-wrap svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted);
}
.input-with-icon { padding-left: 40px; }

textarea.input { resize: vertical; min-height: 44px; }

select.input { cursor: pointer; appearance: auto; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; font-size: .85rem; margin-bottom: 6px; color: var(--text-secondary); }

.checkbox-wrap {
    display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .85rem;
}
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.link { color: var(--accent); font-size: .85rem; }

/* ─── Navigation ───────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nav-height);
    background: rgba(250,247,244,.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}
[data-theme="dark"] .navbar { background: rgba(26,25,23,.85); }

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.nav-logo:hover { color: var(--text); }

.nav-links { display: flex; gap: 4px; }
.nav-link {
    padding: 8px 16px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500;
    color: var(--text-secondary); transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg-secondary); }
.nav-link.active { color: var(--accent); background: rgba(139,126,116,.1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-user { font-size: .85rem; font-weight: 500; color: var(--text-secondary); }

.theme-toggle {
    width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border);
    background: var(--bg-card); cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
    padding-top: calc(var(--nav-height) + 60px); padding-bottom: 80px;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-badge {
    display: inline-block; padding: 6px 14px; border-radius: 20px;
    background: rgba(139,126,116,.1); color: var(--accent);
    font-size: .82rem; font-weight: 600; margin-bottom: 20px;
}
.hero-title { margin-bottom: 20px; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero card / mockup */
.hero-visual { display: flex; justify-content: center; }
.hero-card {
    width: 100%; max-width: 440px;
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border-light);
}
.hero-card-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-light);
}
.hero-card-dots { display: flex; gap: 6px; }
.hero-card-dots span { width: 10px; height: 10px; border-radius: 50%; }
.hero-card-dots span:nth-child(1) { background: #F87171; }
.hero-card-dots span:nth-child(2) { background: #FBBF24; }
.hero-card-dots span:nth-child(3) { background: #34D399; }
.hero-card-title { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.hero-card-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.chat-bubble {
    padding: 12px 16px; border-radius: var(--radius-md); font-size: .88rem; line-height: 1.6;
    max-width: 90%; animation: fadeSlideUp .5s ease;
}
.chat-user {
    background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px;
}
.chat-ai {
    background: var(--bg-secondary); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px;
}

/* ─── Features ─────────────────────────────────────────────────── */
.features { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { color: var(--text-secondary); margin-top: 10px; font-size: 1.05rem; }

.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.feature-card {
    background: var(--bg-card); padding: 32px; border-radius: var(--radius-lg);
    border: 1px solid var(--border-light); transition: all .3s ease;
}
.feature-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border);
}
.feature-icon {
    width: 52px; height: 52px; border-radius: var(--radius-md);
    background: rgba(139,126,116,.1); color: var(--accent);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; }

/* ─── CTA ──────────────────────────────────────────────────────── */
.cta-section { padding: 0 0 80px; }
.cta-card {
    background: var(--accent); color: #fff; text-align: center;
    padding: 60px 40px; border-radius: var(--radius-xl);
}
.cta-card h2 { color: #fff; margin-bottom: 14px; }
.cta-card p { opacity: .85; margin-bottom: 28px; font-size: 1.05rem; }
.cta-card .btn-primary { background: #fff; color: var(--accent); border-color: #fff; }
.cta-card .btn-primary:hover { background: var(--bg); }

/* ─── Footer ───────────────────────────────────────────────────── */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-light); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.footer-desc { color: var(--text-secondary); font-size: .88rem; line-height: 1.6; }
.footer-col h4 { margin-bottom: 14px; color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { display: block; color: var(--text-secondary); font-size: .88rem; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: .82rem; }

/* ─── Auth Page ────────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: calc(var(--nav-height) + 20px) 24px 40px;
}
.auth-container { width: 100%; max-width: 420px; }
.auth-card {
    background: var(--bg-card); padding: 40px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header svg { margin-bottom: 16px; }
.auth-header h2 { margin-bottom: 6px; }
.auth-header p { color: var(--text-secondary); font-size: .9rem; }
.auth-error {
    background: #FEF2F2; color: #B91C1C; padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: .85rem; margin-bottom: 18px; border: 1px solid #FECACA;
}
.auth-divider {
    position: relative; text-align: center; margin: 24px 0;
    color: var(--text-muted); font-size: .82rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-social { display: flex; gap: 12px; }
.social-btn { flex: 1; }
.auth-footer { text-align: center; margin-top: 24px; font-size: .85rem; color: var(--text-secondary); }

/* ─── Planner Page ─────────────────────────────────────────────── */
.planner-page {
    padding-top: var(--nav-height); min-height: 100vh;
}
.planner-layout {
    display: grid; grid-template-columns: 340px 1fr;
    min-height: calc(100vh - var(--nav-height));
}

/* Sidebar */
.planner-sidebar {
    background: var(--bg-card); border-right: 1px solid var(--border-light);
    padding: 24px; display: flex; flex-direction: column; overflow-y: auto;
}
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sidebar-header h2 { font-size: 1.2rem; }

.add-task-form { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.task-form-row { display: flex; gap: 8px; }
.task-form-row select { flex: 1; }

.task-filters { display: flex; gap: 4px; margin-bottom: 16px; }
.filter-btn {
    flex: 1; padding: 8px; border: none; background: var(--bg-secondary); color: var(--text-secondary);
    border-radius: var(--radius-sm); font-size: .82rem; font-weight: 500; cursor: pointer;
    font-family: var(--font); transition: all var(--transition);
}
.filter-btn.active { background: var(--accent); color: #fff; }
.filter-btn:hover:not(.active) { background: var(--bg-tertiary); }

.task-list { flex: 1; overflow-y: auto; }
.task-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 40px 20px; gap: 10px;
}
.task-empty p { font-weight: 500; color: var(--text-secondary); }
.task-empty span { font-size: .82rem; color: var(--text-muted); }

.task-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px;
    border-radius: var(--radius-sm); transition: all var(--transition);
    border: 1px solid transparent; margin-bottom: 6px;
}
.task-item:hover { background: var(--bg-secondary); }

.task-check {
    width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border);
    cursor: pointer; flex-shrink: 0; margin-top: 2px; transition: all var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.task-check:hover { border-color: var(--accent); }
.task-item.done .task-check { background: var(--accent); border-color: var(--accent); }
.task-item.done .task-check::after { content: '✓'; color: #fff; font-size: .7rem; }
.task-item.done .task-text { text-decoration: line-through; color: var(--text-muted); }

.task-body { flex: 1; min-width: 0; }
.task-text { font-size: .88rem; font-weight: 500; }
.task-meta { display: flex; gap: 8px; margin-top: 4px; }

.task-priority {
    font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 10px;
    text-transform: uppercase; letter-spacing: .03em;
}
.priority-high { background: #FEE2E2; color: #B91C1C; }
.priority-medium { background: #FEF3C7; color: #92400E; }
.priority-low { background: #D1FAE5; color: #065F46; }

.task-delete {
    width: 28px; height: 28px; border: none; background: none; cursor: pointer;
    color: var(--text-muted); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
    transition: all var(--transition); opacity: 0;
}
.task-item:hover .task-delete { opacity: 1; }
.task-delete:hover { background: #FEE2E2; color: #B91C1C; }

.task-stats {
    display: flex; justify-content: space-around; padding: 16px 0; margin-top: 12px;
    border-top: 1px solid var(--border-light);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: .75rem; color: var(--text-muted); }

/* Chat */
.planner-main { display: flex; flex-direction: column; }
.chat-container { flex: 1; display: flex; flex-direction: column; }

.chat-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px; border-bottom: 1px solid var(--border-light); background: var(--bg-card);
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(139,126,116,.1);
    display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.chat-header h3 { font-size: 1rem; }
.chat-status { font-size: .78rem; color: var(--text-muted); }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 24px;
    display: flex; flex-direction: column; gap: 16px;
}
.chat-welcome { text-align: center; padding: 60px 20px; max-width: 480px; margin: 0 auto; }
.chat-welcome-icon { margin-bottom: 16px; }
.chat-welcome h3 { margin-bottom: 8px; }
.chat-welcome p { color: var(--text-secondary); font-size: .9rem; margin-bottom: 24px; }

.quick-prompts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.quick-prompt {
    padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-secondary); font-size: .82rem;
    font-family: var(--font); cursor: pointer; transition: all var(--transition);
}
.quick-prompt:hover { border-color: var(--accent); color: var(--accent); background: rgba(139,126,116,.05); }

/* Chat messages */
.msg { display: flex; gap: 10px; animation: fadeSlideUp .3s ease; max-width: 80%; }
.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-ai { align-self: flex-start; }

.msg-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 600;
}
.msg-user .msg-avatar { background: var(--accent); color: #fff; }
.msg-ai .msg-avatar { background: var(--bg-secondary); color: var(--accent); }

.msg-content {
    padding: 12px 16px; border-radius: var(--radius-md); font-size: .9rem; line-height: 1.65;
    white-space: pre-wrap; word-wrap: break-word;
}
.msg-user .msg-content { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg-ai .msg-content { background: var(--bg-card); border: 1px solid var(--border-light); border-bottom-left-radius: 4px; }

.msg-typing .msg-content::after {
    content: ''; display: inline-block; width: 6px; height: 14px;
    background: var(--accent); margin-left: 4px; border-radius: 1px;
    animation: blink .8s infinite;
}

.chat-input-area { padding: 16px 24px; border-top: 1px solid var(--border-light); background: var(--bg-card); }
.chat-input-wrapper { display: flex; gap: 10px; align-items: flex-end; }
.chat-textarea {
    flex: 1; font-family: var(--font); font-size: .9rem; padding: 12px 16px;
    border-radius: var(--radius-md); border: 1.5px solid var(--border);
    background: var(--bg); color: var(--text); resize: none; outline: none;
    min-height: 44px; max-height: 120px; transition: border-color var(--transition);
}
.chat-textarea:focus { border-color: var(--accent); }
.chat-send-btn {
    width: 44px; height: 44px; border-radius: var(--radius-md); border: none;
    background: var(--accent); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: all var(--transition);
}
.chat-send-btn:hover { background: var(--accent-dark); }
.chat-send-btn:disabled { opacity: .5; cursor: not-allowed; }
.chat-hint { font-size: .75rem; color: var(--text-muted); margin-top: 6px; display: block; }

/* ─── Contact Page ─────────────────────────────────────────────── */
.contact-page { padding: calc(var(--nav-height) + 48px) 0 80px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
    display: flex; gap: 16px; padding: 20px; background: var(--bg-card);
    border-radius: var(--radius-md); border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-sm); border-color: var(--border); }
.contact-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md); flex-shrink: 0;
    background: rgba(139,126,116,.1); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.contact-card h4 { font-size: .85rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-card p { font-size: .9rem; }

.contact-form-wrap {
    background: var(--bg-card); padding: 32px; border-radius: var(--radius-lg);
    border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}
.form-success {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px;
}
.form-success h3 { color: var(--accent); }
.form-success p { color: var(--text-secondary); }

/* ─── Settings Page ────────────────────────────────────────────── */
.settings-page { padding: calc(var(--nav-height) + 48px) 0 80px; }
.settings-section { margin-bottom: 32px; }
.settings-section h3 { margin-bottom: 14px; font-size: 1.1rem; }
.settings-card {
    background: var(--bg-card); padding: 24px; border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}
.settings-row { margin-bottom: 18px; }
.settings-row label { display: block; font-size: .85rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.settings-hint { color: var(--text-muted); font-size: .88rem; }

.theme-options { display: flex; gap: 16px; }
.theme-option { cursor: pointer; text-align: center; }
.theme-option input { display: none; }
.theme-preview {
    width: 120px; height: 80px; border-radius: var(--radius-sm); overflow: hidden;
    border: 2px solid var(--border); transition: all var(--transition);
}
.theme-option input:checked + .theme-preview { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,126,116,.2); }
.theme-option span { display: block; margin-top: 8px; font-size: .82rem; font-weight: 500; }

.theme-light-preview { background: #FAF7F4; }
.theme-dark-preview { background: #1A1917; }
.tp-bar { height: 20px; background: rgba(139,126,116,.2); }
.theme-dark-preview .tp-bar { background: rgba(255,255,255,.1); }
.tp-content { padding: 8px; }
.tp-line { height: 6px; border-radius: 3px; background: rgba(139,126,116,.15); margin-bottom: 4px; }
.tp-line.short { width: 60%; }
.theme-dark-preview .tp-line { background: rgba(255,255,255,.1); }

.range-wrap { display: flex; align-items: center; gap: 12px; }
.range-input { flex: 1; accent-color: var(--accent); }
.range-value { font-weight: 600; font-size: .9rem; color: var(--accent); min-width: 30px; }

/* ─── Color Customizer ─────────────────────────────────────────── */
.customizer { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.customizer-toggle {
    width: 48px; height: 48px; border-radius: 50%; border: none;
    background: var(--accent); color: #fff; cursor: pointer;
    box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.customizer-toggle:hover { transform: scale(1.1); }

.customizer-panel {
    position: absolute; bottom: 60px; right: 0; width: 260px;
    background: var(--bg-card); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
    padding: 20px; display: none;
}
.customizer-panel.open { display: block; animation: fadeSlideUp .2s ease; }
.customizer-panel h3 { font-size: .95rem; margin-bottom: 16px; }

.color-option { margin-bottom: 14px; }
.color-option label { font-size: .8rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; display: block; }
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent;
    cursor: pointer; transition: all var(--transition);
}
.swatch:hover { transform: scale(1.15); }
.swatch.active { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg-card); }

/* ─── Animations ───────────────────────────────────────────────── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: -1; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .planner-layout { grid-template-columns: 1fr; }
    .planner-sidebar { max-height: 40vh; border-right: none; border-bottom: 1px solid var(--border-light); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    .features-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0;
        background: var(--bg-card); flex-direction: column; padding: 16px;
        border-bottom: 1px solid var(--border-light); box-shadow: var(--shadow-md); }
    .nav-links.open { display: flex; }
    .nav-burger { display: flex; }
    .msg { max-width: 95%; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .auth-card { padding: 28px 20px; }
    .cta-card { padding: 40px 24px; }
}
