*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0f0e17; --surface: #1a1928; --surface2: #22213a;
  --border: rgba(255,255,255,0.07); --text: #fffffe; --muted: #8a8aaa;
  --claudette: #ff8c69; --claudette-bg: rgba(255,140,105,0.08);
  --googz: #5b7af9; --googz-bg: rgba(91,122,249,0.08);
  --sammy: #19c37d; --sammy-bg: rgba(25,195,125,0.08);
  --board: #13121f; --accent: #ffe66d;
}
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; min-height: 100vh; display: flex; flex-direction: column; }

/* NAV */
.nav { display: flex; align-items: center; gap: 24px; padding: 16px 40px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(15,14,23,0.95); backdrop-filter: blur(12px); z-index: 100; }
.nav-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--text); }
.nav-links { display: flex; gap: 24px; margin-left: 16px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-auth { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn-ghost { background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 0.85rem; padding: 7px 16px; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.btn-primary { background: var(--accent); color: #0f0e17; border: none; border-radius: 8px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem; padding: 8px 18px; cursor: pointer; transition: opacity 0.15s; }
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* USER MENU */
.nav-user { margin-left: auto; position: relative; }
.user-menu { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); transition: border-color 0.15s; }
.user-menu:hover { border-color: rgba(255,255,255,0.2); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #0f0e17; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.user-menu span { font-size: 0.85rem; }
.chevron { color: var(--muted); font-size: 0.7rem; }
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; min-width: 220px; padding: 14px; display: none; box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.user-dropdown.open { display: block; }
.user-dropdown a { display: block; color: var(--muted); text-decoration: none; font-size: 0.85rem; padding: 6px 0; transition: color 0.15s; }
.user-dropdown a:hover { color: var(--text); }
.dropdown-hr { border: none; border-top: 1px solid var(--border); margin: 10px 0; }
.dropdown-usage { }
.usage-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.usage-bar-wrap { background: var(--surface2); border-radius: 4px; height: 5px; margin-bottom: 4px; overflow: hidden; }
.usage-bar { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s; }
.usage-count { font-size: 0.75rem; color: var(--muted); }

/* HERO */
.hero { padding: 48px 40px 24px; }
.hero-inner { max-width: 600px; }
.hero-badge { display: inline-block; background: rgba(255,230,109,0.1); border: 1px solid rgba(255,230,109,0.25); border-radius: 50px; color: var(--accent); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 14px; margin-bottom: 16px; }
.hero-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 16px; }
.fire-text { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 0.95rem; line-height: 1.7; max-width: 480px; }

/* INTRO STRIP */
.intro-strip { padding: 12px 40px 10px; }
.intro-headline { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px; }
.intro-headline span { color: #F5E642; }
.intro-tagline { font-size: 0.75rem; color: #666; margin-top: 4px; }

/* PROMPT */
.prompt-section { padding: 0 40px 20px; }
.cap-warning { background: rgba(255,100,100,0.1); border: 1px solid rgba(255,100,100,0.25); border-radius: 10px; padding: 10px 16px; font-size: 0.82rem; color: #ff8a80; margin-bottom: 10px; }
.cap-warning a { color: var(--accent); }
.prompt-wrapper { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; display: flex; align-items: flex-end; gap: 12px; padding: 16px 16px 16px 20px; transition: border-color 0.2s; }
.prompt-wrapper:focus-within { border-color: rgba(255,230,109,0.4); }
textarea { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.95rem; resize: none; overflow-y: hidden; min-height: 48px; max-height: 140px; line-height: 1.6; }
textarea::placeholder { color: var(--muted); }
.send-btn { background: var(--accent); color: #0f0e17; border: none; border-radius: 10px; padding: 10px 22px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: opacity 0.15s, transform 0.1s; white-space: nowrap; flex-shrink: 0; }
.send-btn:hover:not(:disabled) { opacity: 0.85; transform: translateY(-1px); }
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.prompt-meta { font-size: 0.75rem; color: var(--muted); padding: 4px 4px 0; }

/* MAIN */
.main { flex: 1; display: flex; gap: 0; padding: 0 40px 24px; min-height: 500px; }
.columns { display: flex; gap: 14px; flex: 1; min-width: 0; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.col-header { padding: 14px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.col-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.col.claudette .col-avatar { background: var(--claudette-bg); border: 1.5px solid var(--claudette); }
.col.googz .col-avatar { background: var(--googz-bg); border: 1.5px solid var(--googz); }
.col.sammy .col-avatar { background: var(--sammy-bg); border: 1.5px solid var(--sammy); }
.col-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; }
.col.claudette .col-name { color: var(--claudette); }
.col.googz .col-name { color: var(--googz); }
.col.sammy .col-name { color: var(--sammy); }
.col-powered-by { font-size: 0.63rem; color: var(--muted); letter-spacing: 0.01em; margin-top: 1px; opacity: 0.7; }
.col-role { font-size: 0.68rem; color: var(--muted); margin-left: auto; text-transform: uppercase; letter-spacing: 0.08em; }
.settings-btn { background: none; border: none; cursor: pointer; font-size: 1rem; opacity: 0.4; transition: opacity 0.15s; padding: 2px; margin-left: 6px; }
.settings-btn:hover { opacity: 1; }
.col-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.col-body::-webkit-scrollbar { width: 4px; }
.col-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 0.8rem; text-align: center; padding: 20px; }
.empty-icon { font-size: 28px; opacity: 0.4; }
.typing { display: flex; align-items: center; gap: 5px; padding: 10px; color: var(--muted); font-size: 0.8rem; font-style: italic; }
.typing-dots { display: flex; gap: 3px; }
.typing-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

/* CARDS */
.idea-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px 32px; font-size: 0.82rem; line-height: 1.6; cursor: grab; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; position: relative; user-select: none; animation: fadeUp 0.3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.idea-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.col.claudette .idea-card:hover { border-color: rgba(255,140,105,0.4); }
.col.googz .idea-card:hover { border-color: rgba(91,122,249,0.4); }
.col.sammy .idea-card:hover { border-color: rgba(25,195,125,0.4); }
.idea-card:active { cursor: grabbing; transform: scale(0.97); }
.card-tag { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; opacity: 0.6; }
.col.claudette .card-tag { color: var(--claudette); }
.col.googz .card-tag { color: var(--googz); }
.col.sammy .card-tag { color: var(--sammy); }
.add-to-board-btn { position: absolute; bottom: 8px; right: 10px; background: rgba(255,230,109,0.1); border: 1px solid rgba(255,230,109,0.25); border-radius: 5px; color: var(--accent); font-size: 0.65rem; font-family: 'Syne', sans-serif; font-weight: 700; padding: 2px 7px; cursor: pointer; opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.idea-card:hover .add-to-board-btn { opacity: 1; pointer-events: all; }
.add-to-board-btn:hover { background: rgba(255,230,109,0.2); }
.error-msg { background: rgba(255,100,100,0.1); border: 1px solid rgba(255,100,100,0.25); border-radius: 8px; padding: 8px 12px; font-size: 0.78rem; color: #ff8a80; }

/* DIVIDER */
.divider { width: 1px; background: var(--border); margin: 0 14px; flex-shrink: 0; }

/* BOARD */
.idea-board { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--board); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.board-header { padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.board-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.board-count { background: var(--accent); color: #0f0e17; border-radius: 50px; font-family: 'DM Sans', sans-serif; font-size: 0.75rem; font-weight: 700; padding: 2px 7px; min-width: 20px; text-align: center; flex-shrink: 0; }
.board-actions { display: flex; align-items: center; gap: 6px; }
.board-actions-right { margin-left: auto; }
.board-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 0.7rem; padding: 6px 12px; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: color 0.15s; display: inline-flex; align-items: center; }
.board-btn:hover { color: var(--text); }
.board-btn:disabled { opacity: 0.35; cursor: default; }
.board-btn:disabled:hover { color: var(--muted); }
.export-dropdown { position: relative; }
.export-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px; min-width: 160px; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.export-menu.open { display: block; }
.export-menu button { display: block; width: 100%; background: none; border: none; color: var(--text); text-align: left; padding: 8px 12px; border-radius: 7px; font-size: 0.82rem; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.export-menu button:hover { background: var(--border); }
.board-btn .chevron { display: inline-block; margin-left: 4px; transition: transform 0.2s; flex-shrink: 0; }
.export-dropdown.open .chevron { transform: rotate(180deg); }
.modal.mindmap-modal { width: 96vw; max-width: 96vw; height: 94vh; max-height: 94vh; display: flex; flex-direction: column; padding: 16px; overflow: hidden; gap: 0; }
#mindmap-svg { flex: 1; min-height: 0; display: block; width: 100%; overflow: auto; }
.mindmap-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-shrink: 0; }
.board-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.board-body::-webkit-scrollbar { width: 4px; }
.board-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.board-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 0.78rem; text-align: center; padding: 20px; min-height: 150px; }
.board-empty-mobile { display: none; }
.board-empty-icon { font-size: 30px; opacity: 0.3; }
.board-body.drag-over { outline: 2px dashed var(--accent); outline-offset: -4px; border-radius: 10px; background: rgba(255,230,109,0.03); }
.board-card { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; font-size: 0.78rem; line-height: 1.55; position: relative; animation: fadeUp 0.25s ease both; }
.board-card-source { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.board-card-remove { position: absolute; top: 6px; right: 8px; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.75rem; opacity: 0; transition: opacity 0.15s; padding: 0; }
.board-card:hover .board-card-remove { opacity: 1; }
.board-card-remove:hover { color: #ff6b6b; }
.board-card[data-source="Claudette"] .board-card-source { color: var(--claudette); }
.board-card[data-source="Claudette"] { border-left: 2px solid var(--claudette); }
.board-card[data-source="Googz"] .board-card-source { color: var(--googz); }
.board-card[data-source="Googz"] { border-left: 2px solid var(--googz); }
.board-card[data-source="Sammy"] .board-card-source { color: var(--sammy); }
.board-card[data-source="Sammy"] { border-left: 2px solid var(--sammy); }

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(4px); animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; width: 460px; max-width: 92vw; max-height: 80vh; display: flex; flex-direction: column; gap: 14px; position: relative; }
.modal h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal-content { flex: 1; overflow-y: auto; background: var(--board); border: 1px solid var(--border); border-radius: 10px; padding: 16px; font-size: 0.82rem; line-height: 1.7; white-space: pre-wrap; }
.modal-btns { display: flex; gap: 8px; justify-content: flex-end; }
.modal-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.8rem; padding: 8px 16px; cursor: pointer; }
.modal-btn.primary { background: var(--accent); border-color: var(--accent); color: #0f0e17; }
.modal-btn.primary:hover { opacity: 0.85; }

/* AUTH MODAL */
.auth-modal { max-width: 400px; }
.auth-tabs { display: flex; gap: 0; background: var(--surface2); border-radius: 10px; padding: 3px; }
.auth-tab { flex: 1; background: none; border: none; color: var(--muted); font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.85rem; padding: 8px; border-radius: 8px; cursor: pointer; transition: all 0.15s; }
.auth-tab.active { background: var(--surface); color: var(--text); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; padding: 11px; cursor: pointer; transition: border-color 0.15s; }
.btn-google:hover { border-color: rgba(255,255,255,0.2); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.75rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-input { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; padding: 11px 14px; outline: none; transition: border-color 0.15s; }
.auth-input:focus { border-color: rgba(255,230,109,0.4); }
.auth-submit { width: 100%; padding: 12px; font-size: 0.9rem; }
.auth-switch { font-size: 0.8rem; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--accent); text-decoration: none; }
.auth-error { background: rgba(255,100,100,0.1); border: 1px solid rgba(255,100,100,0.25); border-radius: 8px; padding: 8px 12px; font-size: 0.8rem; color: #ff8a80; }

/* SETTINGS MODAL */
.settings-modal { max-width: 380px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: none; }
.setting-label { font-size: 0.85rem; font-weight: 500; }
.setting-desc { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.setting-select { background: var(--surface2); border: 1px solid var(--border); border-radius: 7px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.82rem; padding: 6px 10px; cursor: pointer; outline: none; }
.toggle { position: relative; width: 38px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--surface2); border: 1px solid var(--border); border-radius: 22px; cursor: pointer; transition: background 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: var(--muted); border-radius: 50%; transition: transform 0.2s, background 0.2s; }
.toggle input:checked + .toggle-slider { background: rgba(255,230,109,0.15); border-color: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); background: var(--accent); }

/* CONTENT PAGES */
.page-content { max-width: 720px; margin: 0 auto; padding: 60px 40px; }
.page-content h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.2rem; margin-bottom: 16px; }
.page-content h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.3rem; margin: 32px 0 12px; color: var(--accent); }
.page-content p { color: var(--muted); line-height: 1.8; margin-bottom: 14px; font-size: 0.95rem; }
.page-content .lead { color: var(--text); font-size: 1.05rem; line-height: 1.7; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; margin-bottom: 14px; display: flex; gap: 18px; align-items: flex-start; }
.step-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--accent); flex-shrink: 0; width: 36px; }
.step-body h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.step-body p { margin: 0; font-size: 0.85rem; }
.contact-form { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.contact-form input, .contact-form textarea { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; padding: 12px 16px; outline: none; transition: border-color 0.15s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(255,230,109,0.4); }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ADMIN */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.admin-login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px; width: 360px; display: flex; flex-direction: column; gap: 14px; }
.admin-login-card h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; }
.admin-nav { display: flex; align-items: center; gap: 24px; padding: 16px 32px; border-bottom: 1px solid var(--border); background: var(--surface); }
.admin-nav h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; }
.admin-nav-links { display: flex; gap: 16px; }
.admin-nav-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; cursor: pointer; transition: color 0.15s; }
.admin-nav-links a:hover, .admin-nav-links a.active { color: var(--text); }
.admin-main { padding: 32px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stat-value { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2rem; color: var(--accent); }
.stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.admin-table th { text-align: left; padding: 10px 14px; color: var(--muted); font-weight: 500; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.admin-table tr:hover td { background: var(--surface2); }
.tier-badge { display: inline-block; padding: 2px 8px; border-radius: 50px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.tier-badge.free { background: rgba(138,138,170,0.15); color: var(--muted); }
.tier-badge.pro { background: rgba(255,230,109,0.15); color: var(--accent); }
.admin-section { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.admin-section h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 18px; }
.config-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.config-row:last-child { border-bottom: none; }
.config-input { background: var(--surface2); border: 1px solid var(--border); border-radius: 7px; color: var(--text); font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; padding: 6px 12px; width: 80px; text-align: center; outline: none; }
.save-btn { background: var(--accent); color: #0f0e17; border: none; border-radius: 8px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.8rem; padding: 8px 18px; cursor: pointer; }
.save-btn:hover { opacity: 0.85; }

/* ─── NAV HAMBURGER + ACCOUNT BTN (hidden on desktop) ─── */
.nav-hamburger { display: none; align-items: center; justify-content: center; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; padding: 6px; line-height: 1; margin-left: auto; flex-shrink: 0; }
.nav-account-btn { display: none; align-items: center; justify-content: center; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text); cursor: pointer; padding: 6px; flex-shrink: 0; }

/* ─── MOBILE NAV DRAWER ─── */
.mobile-nav { display: none; position: fixed; top: 57px; left: 0; right: 0; background: rgba(15,14,23,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: 99; padding: 4px 20px 20px; flex-direction: column; }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 14px 0; border-bottom: 1px solid var(--border); display: block; }
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav-auth { display: flex; gap: 8px; padding-top: 14px; }
.mobile-nav-auth button { flex: 1; justify-content: center; padding: 11px; }
.mobile-nav-user { padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav-email { font-size: 0.82rem; color: var(--muted); }

/* ─── BOARD FAB + BACKDROP (hidden on desktop) ─── */
.board-fab { display: none; position: fixed; bottom: 20px; right: 20px; z-index: 150; align-items: center; gap: 8px; background: var(--surface); border: 1px solid rgba(255,255,255,0.15); border-radius: 50px; padding: 11px 18px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem; cursor: pointer; color: var(--text); box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.board-fab-count { background: var(--accent); color: #0f0e17; border-radius: 50px; font-size: 0.65rem; font-weight: 800; padding: 1px 7px; min-width: 20px; text-align: center; }
.board-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 199; }
.board-backdrop.open { display: block; }

/* ─── TOUCH: always-show add button ─── */
@media (hover: none) {
  .add-to-board-btn { opacity: 1; pointer-events: all; }
  .board-card-remove { opacity: 1; }
}

/* ─── TABLET (≤1024px) ─── */
@media (max-width: 1024px) {
  .nav { padding: 14px 24px; }
  .intro-strip { padding: 10px 24px 8px; }
  .prompt-section { padding: 0 24px 16px; }
  .main { padding: 0 24px 24px; }
  .idea-board { width: 240px; }
}

/* ─── MOBILE (≤768px) ─── */
@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 12px 16px; gap: 12px; }
  .nav-links { display: none; }
  .nav-auth { display: none !important; }
  .nav-user { display: none !important; }
  .nav-account-btn { display: flex; margin-left: auto; }
  .nav-hamburger { display: flex; margin-left: 8px; }

  /* Intro strip */
  .intro-strip { padding: 10px 16px 8px; }
  .intro-headline { font-size: 18px; }
  .intro-tagline { display: none; }

  /* Prompt */
  .prompt-section { padding: 0 16px 12px; }
  .send-btn { width: 44px; height: 44px; min-height: unset; padding: 0; font-size: 0; border-radius: 50%; }
  .send-btn::after { content: '↑'; font-size: 1.3rem; font-family: system-ui, sans-serif; line-height: 1; }

  /* Main: stack columns vertically */
  .main { flex-direction: column; padding: 0 16px 96px; min-height: unset; gap: 0; }
  .columns { flex-direction: column; gap: 12px; }
  .col { min-height: 260px; }
  .col-body { min-height: 180px; }

  /* Hide board from page flow; show via FAB */
  .divider { display: none; }
  .idea-board { display: none; width: 100%; }
  .idea-board.mobile-open {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100%; height: 72vh;
    border-radius: 20px 20px 0 0;
    z-index: 200;
    animation: slideUp 0.25s ease;
  }
  @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

  /* Show FAB */
  .board-fab { display: flex; }

  /* Board empty state: hide drag copy, show tap copy */
  .board-empty-desktop { display: none; }
  .board-empty-mobile { display: block; }

  /* Prevent iOS auto-zoom on input focus (threshold is 16px) */
  textarea, .auth-input { font-size: 16px; }
  textarea::placeholder { font-size: 0.78rem; }
}

/* ── Board Save UI ── */
.board-save-login {
  font-size: 0.68rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.board-save-login:hover { color: var(--text); }

.board-btn-save { color: var(--accent); }
.board-btn-save:hover { color: var(--accent); opacity: 0.8; }

.board-btn-delete { color: #e55; }
.board-btn-delete:hover { color: #e55; opacity: 0.8; }

/* My Boards modal */
.my-boards-modal { width: 500px; }

.my-boards-loading,
.my-boards-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px 0;
  line-height: 1.6;
}

.my-boards-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }

.my-board-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: 10px;
}

.my-board-info { flex: 1; min-width: 0; }
.my-board-name {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-board-meta { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

.my-board-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Upgrade modal */
.upgrade-modal { max-width: 400px; }
.upgrade-modal-body { text-align: center; padding: 8px 0 4px; }
.upgrade-modal h3 { margin-bottom: 10px; font-size: 1rem; }
.upgrade-modal p { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.upgrade-modal-actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.upgrade-modal-actions .modal-btn { flex: 1; min-width: 120px; }

/* Tier selection cards */
.tier-cards { display: flex; gap: 10px; margin: 4px 0 4px; }
.tier-card { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.tier-card-pro { border-color: var(--accent); }
.tier-card-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; }
.tier-card-pro .tier-card-name { color: var(--accent); }
.tier-card-price { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; }
.tier-card-price span { font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.tier-card-features { list-style: none; padding: 0; margin: 0; font-size: 0.78rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tier-card-features li::before { content: '✓ '; color: var(--accent); }
.tier-cta { width: 100%; margin-top: 4px; }

/* Toast notification */
.board-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--surface2);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2000;
  white-space: nowrap;
}
.board-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
