/* BriefBot — Complete Styles v2 (Polished UX) */
:root {
  --bg: #0a0a0b;
  --bg-card: #18181b;
  --bg-hover: #27272a;
  --border: #27272a;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --text-dim: #52525b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-bg: rgba(59,130,246,0.12);
  --success: #22c55e;
  --success-bg: rgba(34,197,94,0.12);
  --warning: #eab308;
  --warning-bg: rgba(234,179,8,0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239,68,68,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ====== Scrollbar ====== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ====== Layout ====== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ====== Navigation ====== */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--border);
  background: rgba(10,10,11,0.95); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo { font-weight: 800; font-size: 1.25rem; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 0.4rem; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--primary); }

.nav-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-bg); color: var(--primary);
  font-weight: 700; font-size: 0.85rem;
}

/* Hamburger */
.hamburger { display: none !important; font-size: 1.25rem; color: var(--text); background: none; border: none; cursor: pointer; padding: 0.25rem; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.875rem; text-decoration: none;
  cursor: pointer; border: none; transition: all 0.2s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: #fff; background: var(--primary-bg); }
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: var(--radius); }
.btn-icon:hover { border-color: var(--primary); }

/* ====== Forms ====== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.375rem; }
.form-input {
  width: 100%; padding: 0.625rem 0.875rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.form-input::placeholder { color: var(--text-dim); }
select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1a1aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem; }

/* ====== Cards ====== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: border-color 0.2s;
}
.card-title { font-size: 1rem; color: #fff; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }

/* ====== Badge ====== */
.badge {
  display: inline-flex; align-items: center; padding: 0.2rem 0.6rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 600;
}
.badge-active { background: var(--success-bg); color: var(--success); }
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-inactive { background: var(--danger-bg); color: var(--danger); }

/* ====== Status dot ====== */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--success); box-shadow: 0 0 4px rgba(34,197,94,0.5); }
.dot-gray { background: var(--text-dim); }

/* ====== Modal ====== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); display: flex; align-items: center;
  justify-content: center; z-index: 200; padding: 1rem;
}
.modal { background: var(--bg-card); border-radius: var(--radius-lg); padding: 2rem; width: 100%; max-width: 500px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.modal h2 { margin-bottom: 1.25rem; color: #fff; font-size: 1.2rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ====== Toast ====== */
#toast-container {
  position: fixed; top: 1rem; right: 1rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem;
  max-width: 380px; width: calc(100% - 2rem);
}
.toast {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.75rem 1rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); font-size: 0.875rem;
  transform: translateX(120%); opacity: 0; transition: all 0.3s ease;
}
.toast-visible { transform: translateX(0); opacity: 1; }
.toast-exit { transform: translateX(120%); opacity: 0; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--primary); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-icon { font-size: 1rem; flex-shrink: 0; }

/* ====== Spinner ====== */
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top: 3px solid var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ====== Hero ====== */
.hero {
  text-align: center; padding: 5rem 1.5rem 3rem;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59,130,246,0.15), transparent);
}
.hero-badge {
  display: inline-block; padding: 0.35rem 1rem; border-radius: 999px;
  background: var(--primary-bg); color: var(--primary); font-size: 0.8rem;
  font-weight: 500; margin-bottom: 1.5rem; border: 1px solid rgba(59,130,246,0.2);
}
.hero h1 { font-size: 2.8rem; font-weight: 800; color: #fff; margin-bottom: 1rem; letter-spacing: -0.03em; line-height: 1.15; }
.hero h1 span {
  background: linear-gradient(135deg, var(--primary), #8b5cf6, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 550px; margin: 0 auto 2rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 2rem; margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat { color: var(--text-muted); font-size: 0.85rem; }
.hero-stat strong { color: #fff; font-weight: 700; }

/* Logos section */
.logos-section { text-align: center; padding: 2rem 1.5rem; }
.logos-title { color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.logos-row { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.logos-row span { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; padding: 0.4rem 0.8rem; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); }

/* ====== Features ====== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem; padding: 3rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: all 0.2s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.55; }

/* ====== How it works ====== */
.how-it-works { padding: 3rem 1.5rem; max-width: 900px; margin: 0 auto; text-align: center; }
.how-it-works h2 { font-size: 1.5rem; color: #fff; margin-bottom: 2rem; }
.steps { display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; width: 180px; text-align: center; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; margin: 0 auto 0.75rem; }
.step h3 { color: #fff; font-size: 0.95rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.8rem; }
.step-arrow { color: var(--text-dim); font-size: 1.5rem; font-weight: 300; }

/* ====== Pricing ====== */
.pricing-section { padding: 3rem 1.5rem; max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.pricing-card {
  position: relative;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.05));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center; transition: all 0.2s;
}
.pricing-card:hover { border-color: var(--primary); }
.pricing-featured { border-color: var(--primary); box-shadow: 0 0 30px rgba(59,130,246,0.12); }
.pricing-badge {
  position: absolute; top: -0.5rem; right: 1rem;
  background: var(--primary); color: #fff; padding: 0.2rem 0.8rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 600;
}
.pricing-card h2 { color: #fff; font-size: 1.35rem; margin-bottom: 0.25rem; }
.price { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 0.75rem 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 1.25rem 0; text-align: left; display: inline-block; }
.pricing-card li { padding: 0.35rem 0; color: #d4d4d8; font-size: 0.875rem; }
.pricing-card li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ====== Testimonial ====== */
.testimonial-section { padding: 2rem 1.5rem; max-width: 600px; margin: 0 auto; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; text-align: center;
  position: relative;
}
.testimonial-card p { color: var(--text-muted); font-style: italic; font-size: 0.95rem; line-height: 1.6; }
.testimonial-author { color: var(--text-dim); font-size: 0.85rem; margin-top: 1rem; }

/* ====== CTA ====== */
.cta-section { text-align: center; padding: 3rem 1.5rem; }
.cta-section h2 { font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ====== Footer ====== */
.footer { text-align: center; padding: 2rem; color: var(--text-dim); font-size: 0.85rem; border-top: 1px solid var(--border); }

/* ====== Dashboard Layout ====== */
.dashboard-grid { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 57px); }

.sidebar {
  background: var(--bg-card); border-right: 1px solid var(--border);
  padding: 1.5rem; position: sticky; top: 57px; height: calc(100vh - 57px);
  overflow-y: auto; transition: transform 0.3s ease;
}
.sidebar-user { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; }
.sidebar-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.sidebar-name { font-weight: 600; color: #fff; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar h3 { color: var(--text-dim); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 0.15rem; }
.sidebar-menu a {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.75rem; border-radius: var(--radius);
  color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
  transition: all 0.15s;
}
.sidebar-menu a:hover { background: var(--primary-bg); color: #fff; }
.sidebar-menu a.active { background: var(--primary-bg); color: #fff; border-left: 2px solid var(--primary); }
.logout-link:hover { background: var(--danger-bg) !important; }

.main-content { padding: 2rem; overflow-y: auto; max-width: 1000px; }
.main-content h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; color: #fff; }
.main-content .subtitle { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 2rem; }

/* ====== Page header ====== */
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.section-title { font-size: 1.1rem; color: #fff; margin: 2rem 0 1rem; }

/* ====== Stats cards ====== */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(59,130,246,0.05));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; transition: all 0.2s;
}
.stat-card:hover { border-color: var(--primary); }
.stat-value { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 0.25rem; }
.stat-label { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.5rem; }
.stat-trend { color: var(--text-dim); font-size: 0.75rem; }
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* ====== Dashboard grid ====== */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.dash-section-header h2 { font-size: 1.05rem; color: #fff; }
.dash-see-all { color: var(--primary); font-size: 0.8rem; text-decoration: none; }
.dash-see-all:hover { text-decoration: underline; }

/* ====== Topic cards (small) ====== */
.topic-card-sm {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  margin-bottom: 0.5rem; transition: all 0.15s;
}
.topic-card-sm:hover { border-color: var(--primary); }
.topic-card-info { min-width: 0; flex: 1; }
.topic-card-name { font-weight: 600; font-size: 0.9rem; color: #fff; margin-bottom: 0.15rem; }
.topic-card-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ====== Brief cards (small) ====== */
.brief-card-sm {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  margin-bottom: 0.5rem; cursor: pointer; transition: all 0.15s;
}
.brief-card-sm:hover { border-color: var(--primary); }
.brief-sm-header { display: flex; justify-content: space-between; margin-bottom: 0.25rem; }
.brief-sm-topic { font-weight: 600; font-size: 0.85rem; color: #fff; }
.brief-sm-date { font-size: 0.75rem; color: var(--text-dim); }
.brief-sm-summary { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* ====== Empty state ====== */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ====== Topic list ====== */
.topic-list { display: flex; flex-direction: column; gap: 0.75rem; }
.topic-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  transition: all 0.2s; gap: 1rem;
}
.topic-card:hover { border-color: var(--primary); }
.topic-info { flex: 1; min-width: 0; }
.topic-name { font-weight: 600; color: #fff; margin-bottom: 0.2rem; font-size: 0.95rem; }
.topic-meta { font-size: 0.78rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* ====== Topic picker ====== */
.topic-pick-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; margin-bottom: 0.5rem;
  transition: all 0.15s;
}
.topic-pick-item:hover { border-color: var(--primary); background: var(--primary-bg); }
.topic-pick-cb { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }

/* ====== Brief list ====== */
.brief-list { display: flex; flex-direction: column; gap: 0.75rem; }
.brief-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  transition: all 0.2s; cursor: pointer;
}
.brief-card:hover { border-color: var(--primary); }
.brief-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.brief-title { font-weight: 600; color: #fff; font-size: 0.95rem; }
.brief-topic { font-size: 0.78rem; color: var(--primary); margin-top: 0.1rem; }
.brief-date { font-size: 0.78rem; color: var(--text-dim); white-space: nowrap; }
.brief-summary { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }
.brief-card-footer { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }

/* ====== Search bar ====== */
.search-bar {
  display: flex; align-items: center; gap: 0.625rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.5rem 1rem;
  margin-bottom: 1rem; transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.search-icon { font-size: 0.9rem; color: var(--text-dim); }
.search-input { border: none !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; }
.search-input:focus { box-shadow: none !important; }

/* ====== Brief stats ====== */
.brief-stats { display: flex; gap: 1rem; margin-bottom: 1rem; color: var(--text-dim); font-size: 0.8rem; }

/* ====== Brief view modal ====== */
.brief-view-modal { max-width: 720px; max-height: 85vh; display: flex; flex-direction: column; }
.brief-view-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; gap: 1rem; }
.brief-view-header h2 { margin: 0; }
.brief-view-meta { display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); font-size: 0.85rem; margin-top: 0.25rem; }
.brief-view-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.brief-view-content {
  flex: 1; overflow-y: auto; padding: 1rem 0;
  font-size: 0.9rem; line-height: 1.7; color: var(--text);
}
.brief-view-content h2 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; color: #fff; }
.brief-view-content h3 { font-size: 1rem; margin: 1.25rem 0 0.5rem; color: var(--primary); }
.brief-view-content h4 { font-size: 0.95rem; margin: 1rem 0 0.4rem; color: #fff; }
.brief-view-content p { margin-bottom: 0.75rem; }
.brief-view-content strong { color: #fff; }
.brief-view-content ul { margin: 0.5rem 0; padding-left: 1.25rem; }
.brief-view-content li { margin-bottom: 0.25rem; color: var(--text-muted); }
.brief-view-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1rem; border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.8rem;
}

/* ====== Profile ====== */
.profile-section { max-width: 600px; }
.profile-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.profile-info { display: flex; flex-direction: column; gap: 0.5rem; }
.info-row { display: flex; gap: 0.75rem; align-items: center; font-size: 0.875rem; }
.info-label { color: var(--text-muted); min-width: 120px; }

/* ====== Subscription ====== */
.sub-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.sub-plan { font-weight: 600; color: #fff; margin-bottom: 0.25rem; }
.sub-expires { color: var(--text-muted); font-size: 0.85rem; }
.sub-actions { display: flex; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ====== Payment ====== */
.payment-list { display: flex; flex-direction: column; }
.payment-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.payment-date { color: var(--text-muted); }
.payment-amount { font-weight: 600; color: #fff; }

.payment-status-page { text-align: center; padding: 4rem 2rem; }
.payment-status-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ====== FAQ ====== */
.faq-page { max-width: 700px; margin: 0 auto; padding: 2rem 1.5rem; }
.faq-page h1 { color: #fff; margin-bottom: 0.5rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 2rem; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; background: none; border: none;
  color: var(--text); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; text-align: left; transition: background 0.15s;
}
.faq-question:hover { background: var(--bg-hover); }
.faq-arrow { color: var(--text-muted); font-size: 0.75rem; transition: transform 0.2s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 1.25rem; }
.faq-answer.faq-open { max-height: 300px; padding: 0 1.25rem 1rem; }
.faq-answer p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.faq-contact { text-align: center; margin-top: 2rem; color: var(--text-muted); font-size: 0.85rem; }
.faq-contact a { color: var(--primary); }

/* ====== Cookie banner ====== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 1rem 1.5rem; display: flex; align-items: center;
  justify-content: center; gap: 1rem; z-index: 9998;
  transform: translateY(100%); transition: transform 0.3s ease;
  flex-wrap: wrap;
}
.cookie-visible { transform: translateY(0); }
.cookie-banner p { color: var(--text-muted); font-size: 0.85rem; }
.cookie-banner a { color: var(--primary); }

/* ====== Alert card ====== */
.alert-card { border-color: var(--warning); text-align: center; }

/* ====== Onboarding ====== */
.onboarding-modal { max-width: 480px; }
.onboarding-steps { position: relative; min-height: 280px; }
.onboarding-step { display: none; }
.onboarding-step.active { display: block; animation: fadeIn 0.3s ease; }
.onboarding-icon { font-size: 3rem; text-align: center; margin-bottom: 1rem; }
.onboarding-modal h2 { text-align: center; font-size: 1.2rem; }
.onboarding-modal p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; line-height: 1.5; }
.onboarding-actions { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
.onboarding-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.dot.active { background: var(--primary); }

/* ====== Signup benefits ====== */
.signup-benefits { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.25rem; }
.signup-benefits span { font-size: 0.8rem; color: var(--text-muted); }

/* ====== Auth ====== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 2rem;
}
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  width: 100%; max-width: 420px;
}
.auth-card-signup { max-width: 460px; }
.auth-card h1 { font-size: 1.4rem; color: #fff; margin-bottom: 0.4rem; text-align: center; }
.auth-card p { text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.875rem; }
.auth-card .form-input { margin-bottom: 0.5rem; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 1rem; }
.auth-link { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.auth-link a { color: var(--primary); text-decoration: none; font-weight: 500; }

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 57px; bottom: 0;
    transform: translateX(-100%); z-index: 150;
    width: 260px; height: auto;
  }
  .sidebar-open { transform: translateX(0); }
  .hamburger { display: inline-flex !important; }
  .nav-desktop { display: none; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .pricing-section { grid-template-columns: 1fr; }
  .pricing-card { padding: 1.5rem; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .main-content { padding: 1.25rem; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat { font-size: 0.8rem; }
  .feature-card { padding: 1.25rem; }
  .auth-card { padding: 1.5rem; }
  .modal { padding: 1.5rem; }
  .brief-view-modal { max-height: 90vh; }
}
