/* GetPressed — Design System v2
   Aesthetic: Light stage · Receding chrome · Content-first
   The interface is neutral infrastructure — assets are the star.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Surface */
  --bg:         #f7f7f5;
  --bg-2:       #ffffff;
  --bg-3:       #f2f2ef;
  --bg-4:       #eaeae6;
  --bg-5:       #e2e2dd;

  /* Borders */
  --border:       #e0e0da;
  --border-dark:  #c8c8c0;

  /* Text */
  --text-primary:   #1a1a18;
  --text-secondary: #6b6b63;
  --text-muted:     #a0a098;
  --text-placeholder: #b8b8b0;

  /* Single accent — used sparingly */
  --accent:       #2d6a4f;   /* muted forest green — calm, professional */
  --accent-light: #e8f3ee;
  --accent-mid:   #52997a;

  /* Status */
  --red:   #c0392b;
  --red-bg: #fdf2f1;
  --amber: #b45309;
  --amber-bg: #fef9ee;
  --green: #2d6a4f;
  --green-bg: #e8f3ee;
  --blue:  #1d4ed8;
  --blue-bg: #eff4ff;

  /* Pro plan indicator — the only real color pop */
  --pro: #6d28d9;
  --pro-bg: #f5f0ff;

  /* Radii — slightly softer */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Typography — one font, all weights */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows — very light, barely-there */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 3px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);

  --transition: 0.15s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
p { color: var(--text-secondary); }
a { color: var(--accent); }

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

/* ---- LAYOUT ---- */
.container    { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 560px;  margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 760px;  margin: 0 auto; padding: 0 24px; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 5px 18px rgba(26,26,24,0.07);
  display: flex; align-items: center;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px;
}
.logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.navbar-actions { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.nav-link:hover  { color: var(--text-primary); background: var(--bg-3); }
.nav-link.active { color: var(--accent); background: var(--accent-light); font-weight: 600; }
.nav-badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(45,106,79,0.2);
  margin-left: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-badge.pro-badge {
  background: var(--pro-bg);
  color: var(--pro);
  border-color: rgba(109,40,217,0.2);
}
.dashboard-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  color: var(--text-primary);
  cursor: pointer;
}
.dashboard-menu-icon,
.dashboard-menu-icon::before,
.dashboard-menu-icon::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.dashboard-menu-icon { position: relative; }
.dashboard-menu-icon::before,
.dashboard-menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}
.dashboard-menu-icon::before { top: -6px; }
.dashboard-menu-icon::after { top: 6px; }
.dashboard-menu-toggle[aria-expanded="true"] .dashboard-menu-icon { background: transparent; }
.dashboard-menu-toggle[aria-expanded="true"] .dashboard-menu-icon::before { transform: translateY(6px) rotate(45deg); }
.dashboard-menu-toggle[aria-expanded="true"] .dashboard-menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  border: 0;
  background: rgba(17,24,39,.34);
  cursor: pointer;
}

@media (max-width: 1000px) and (min-width: 769px) {
  .navbar-inner { padding: 0 20px; }
  .navbar-actions { gap: 10px; }
  .nav-links { gap: 2px; }
  .nav-link { padding-left: 10px; padding-right: 10px; }
}

/* ---- PAGE WRAPPER ---- */
.page-wrapper { padding-top: 72px; min-height: 100vh; }

/* ---- APP LAYOUT ---- */
.app-layout { display: flex; min-height: calc(100vh - 72px); }

/* ---- SIDEBAR ---- */
.sidebar {
  width: 220px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  position: sticky; top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  flex-shrink: 0;
  padding: 20px 0;
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 16px;
  margin-bottom: 4px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  border-left: 2px solid transparent;
  margin: 1px 0;
}
.sidebar-link:hover  { color: var(--text-primary); background: var(--bg-3); }
.sidebar-link.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-light); font-weight: 600; }
.sidebar-icon { font-size: 13px; opacity: 0.6; }
.sidebar-link.active .sidebar-icon { opacity: 1; }

.app-main { flex: 1; overflow: hidden; background: var(--bg); }

/* ---- CARDS ---- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-sm { padding: 16px; border-radius: var(--radius-md); }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #245c43; box-shadow: var(--shadow-sm); }

.btn-secondary {
  background: var(--bg-2);
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
}
.btn-secondary:hover { background: var(--bg-3); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-3); border-color: var(--border-dark); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a93226; }

.btn-lg  { padding: 11px 22px; font-size: 14.5px; border-radius: var(--radius-lg); }
.btn-sm  { padding: 5px 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  padding: 9px 13px;
  transition: var(--transition);
  outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-placeholder); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
  background: var(--bg-2);
}
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-select { appearance: none; cursor: pointer; }
.form-hint  { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; }

/* ---- OTP CODE INPUT ---- */
.code-input-group { display: flex; gap: 8px; justify-content: center; }
.code-char {
  width: 42px; height: 52px;
  background: var(--bg-2);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  outline: none;
  transition: var(--transition);
  text-transform: uppercase;
}
.code-char:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,106,79,0.1); }
.code-char.filled { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }

/* ---- ALERTS ---- */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  display: flex; align-items: flex-start; gap: 9px;
  border: 1px solid;
  margin-bottom: 16px;
  line-height: 1.5;
}
.alert-success { background: var(--green-bg);  border-color: rgba(45,106,79,0.25);  color: var(--green); }
.alert-error   { background: var(--red-bg);    border-color: rgba(192,57,43,0.25);   color: var(--red);   }
.alert-info    { background: var(--blue-bg);   border-color: rgba(29,78,216,0.2);    color: var(--blue);  }
.alert-warn    { background: var(--amber-bg);  border-color: rgba(180,83,9,0.2);     color: var(--amber); }

/* ---- TOOL CARDS ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.tool-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit;
}
.tool-card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.tool-card.locked { opacity: 0.5; cursor: not-allowed; }
.tool-card.locked:hover { transform: none; box-shadow: none; }

/* Tool color shows only as a small left border accent on hover */
.tool-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--tool-color, var(--accent));
  opacity: 0;
  transition: var(--transition);
}
.tool-card:hover::before { opacity: 1; }

.tool-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.tool-name { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.tool-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.tool-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.tool-category { color: var(--text-muted); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.tool-plan-badge {
  font-size: 9.5px; font-weight: 600;
  padding: 2px 7px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-pro     { background: var(--pro-bg);       color: var(--pro);    border: 1px solid rgba(109,40,217,0.2); }
.badge-starter { background: var(--accent-light); color: var(--accent); border: 1px solid rgba(45,106,79,0.2); }
.lock-icon { position: absolute; top: 14px; right: 14px; font-size: 14px; opacity: 0.4; }

/* ---- REPOSITORY ITEMS ---- */
.repo-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}
.repo-item:hover { border-color: var(--border-dark); background: var(--bg-3); }
.repo-item-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  color: var(--text-muted);
}
.repo-item-info { flex: 1; min-width: 0; }
.repo-item-title { font-weight: 600; font-size: 13.5px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repo-item-meta  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ---- ONBOARDING PROGRESS ---- */
.progress-track { display: flex; gap: 6px; align-items: center; margin-bottom: 36px; }
.progress-step  { display: flex; align-items: center; gap: 6px; }
.progress-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  border: 1.5px solid var(--border-dark);
  background: var(--bg-2);
  color: var(--text-muted);
  flex-shrink: 0; transition: var(--transition);
}
.progress-dot.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.progress-dot.done   { border-color: var(--accent); background: var(--accent); color: #fff; }
.progress-line       { flex: 1; height: 1px; background: var(--border); max-width: 36px; }
.progress-line.done  { background: var(--accent); }

/* ---- AI OUTPUT ---- */
.ai-output {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ai-output-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.ai-output-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.ai-output-body {
  padding: 24px;
  font-size: 14px; line-height: 1.85;
  color: var(--text-primary);
  white-space: pre-wrap;
  max-height: 620px; overflow-y: auto;
}
.ai-output-body h1, .ai-output-body h2, .ai-output-body h3 {
  color: var(--text-primary); margin: 20px 0 8px; font-size: 15px;
}
.ai-output-body strong { color: var(--text-primary); font-weight: 600; }
.ai-output-body hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ---- STATS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- TABS ---- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  font-family: var(--font); font-size: 13.5px; font-weight: 500;
  padding: 9px 16px;
  background: none; border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}
.tab-btn:hover  { color: var(--text-primary); }
.tab-btn.active { color: var(--text-primary); font-weight: 600; border-bottom-color: var(--accent); }
.tab-panel         { display: none; }
.tab-panel.active  { display: block; }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,26,24,0.4);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  width: 100%; max-width: 600px;
  max-height: 88vh; overflow-y: auto;
  transform: translateY(12px);
  transition: var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.modal-title  { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.modal-close  {
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-secondary); width: 30px; height: 30px;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 14px;
  transition: var(--transition); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.modal-close:hover { background: var(--bg-4); color: var(--text-primary); }

/* ---- TAG / PILL ---- */
.tag {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 100px;
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ---- COLOR INPUTS ---- */
.color-input-row  { display: flex; align-items: center; gap: 10px; }
.color-preview    { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border); flex-shrink: 0; }
.color-row        { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.color-swatch     { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 2.5px solid transparent; transition: var(--transition); }
.color-swatch.selected { border-color: var(--text-primary); }

/* ---- LOADING ---- */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border-dark);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.55s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- HERO (landing page) ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 80px 24px;
  background: var(--bg-2);
}
/* Subtle grid — barely visible, just enough structure */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, var(--accent-light) 0%, transparent 70%);
  opacity: 0.6;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 680px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(45,106,79,0.2);
  padding: 5px 13px; border-radius: 100px;
  margin-bottom: 28px;
}
.hero h1 { font-size: clamp(40px, 7vw, 72px); margin-bottom: 20px; color: var(--text-primary); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 17px; color: var(--text-secondary); max-width: 480px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---- PRICING ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 660px; margin: 0 auto; }
.pricing-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; position: relative; }
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pricing-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 3px 12px; border-radius: 100px;
}
.pricing-name    { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.07em; }
.pricing-price   { font-size: 46px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; line-height: 1; }
.pricing-price sup { font-size: 20px; vertical-align: top; margin-top: 8px; color: var(--text-secondary); font-weight: 500; }
.pricing-period  { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-secondary); }
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-3); }
::-webkit-scrollbar-thumb { background: var(--bg-5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-dark); }

/* ---- TOAST ---- */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.25s ease;
  min-width: 240px; max-width: 320px;
}
.toast.error   { background: var(--red); }
.toast.info    { background: var(--blue); }
.toast.warn    { background: var(--amber); }
.toast.success { background: var(--accent); }
.toast-icon { font-size: 14px; flex-shrink: 0; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-up           { animation: fadeUp 0.4s ease forwards; }
.animate-up-delay-1   { animation: fadeUp 0.4s 0.08s ease both; }
.animate-up-delay-2   { animation: fadeUp 0.4s 0.16s ease both; }
.animate-up-delay-3   { animation: fadeUp 0.4s 0.24s ease both; }

/* ---- UTILITIES ---- */
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.p-24   { padding: 24px; }
.p-32   { padding: 32px; }
.text-center { text-align: center; }
.w-full      { width: 100%; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .tools-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- STREAMING CURSOR (tool generation) ---- */
.streaming-cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--accent);
  animation: blink 0.75s step-end infinite;
  vertical-align: text-bottom; margin-left: 1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ================================================================
   MOBILE — Complete responsive overhaul
   Breakpoints: 768px (tablet), 480px (phone)
   Strategy: sidebar drawer on mobile, stacked content layouts
   ================================================================ */

/* Mobile navigation uses the full sidebar as an off-canvas drawer. */

/* ================================================================
   768px — Tablet / Mobile
   ================================================================ */
@media (max-width: 768px) {

  /* Desktop links collapse into the sidebar drawer. */
  .nav-links { display: none; }
  .navbar { height: 64px; }
  .navbar-inner { padding: 0 20px; }
  .navbar-actions { gap: 0; }
  .dashboard-menu-toggle { display: inline-flex; }
  .page-wrapper { padding-top: 64px; }

  .page-wrapper { padding-bottom: 0; }

  .sidebar {
    display: block;
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 140;
    width: min(86vw, 300px);
    height: calc(100dvh - 64px);
    padding: 18px 0 calc(24px + env(safe-area-inset-bottom));
    box-shadow: 12px 0 30px rgba(17,24,39,.12);
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  body.dashboard-menu-open { overflow: hidden; }
  body.dashboard-menu-open .sidebar { transform: translateX(0); }
  body.dashboard-menu-open .sidebar-overlay { display: block; }
  .sidebar-section { margin-bottom: 22px; }
  .sidebar-link { min-height: 44px; padding: 10px 20px; font-size: 14px; }
  .sidebar-label { padding: 0 20px; }
  .sidebar-legal-section { padding-top: 6px; border-top: 1px solid var(--border); }

  /* App layout — no sidebar column */
  .app-layout { display: block; }
  .app-main   { min-height: calc(100vh - 64px); }

  /* Reduce page padding on mobile */
  .app-main > div[style*="padding:32px"],
  .app-main > div[style*="padding: 32px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Cards */
  .card { padding: 16px; }

  /* Grids → single column */
  .tools-grid        { grid-template-columns: 1fr; }
  .pricing-grid      { grid-template-columns: 1fr; }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .two-col           { grid-template-columns: 1fr; }

  /* Buttons — full width where sensible */
  .btn-full-mobile { width: 100%; }

  /* Forms */
  .form-input, .form-select, .form-textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  /* Hero */
  .hero { padding: 48px 20px; }
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .hero p  { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  /* Tool page — stack fields and output */
  .tool-layout { flex-direction: column; }
  .tool-sidebar, .tool-main { width: 100%; }

  /* Asset page output */
  .ai-output-body { max-height: 50vh; }

  /* Modal — full screen on mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 90vh;
    padding: 24px 20px;
  }

  /* Tabs — scrollable */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
    flex-wrap: nowrap;
    gap: 0;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px 14px;
    font-size: 13px;
  }

  /* Onboarding type grid */
  .type-grid { grid-template-columns: repeat(2, 1fr); }

  /* Toasts — full width bottom */
  #toast-container {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }
  .toast { min-width: 0; max-width: 100%; width: 100%; }

  /* Repository / asset list */
  .asset-list-header { flex-direction: column; gap: 12px; }
  .asset-actions { flex-wrap: wrap; }

  /* Admin dashboard */
  .layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }

  /* Media locker grid */
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Pricing page */
  .plan-grid { grid-template-columns: 1fr; }

  /* Dashboard welcome */
  .dashboard-header { flex-direction: column; gap: 12px; }
}

/* ================================================================
   480px — Small phones
   ================================================================ */
@media (max-width: 480px) {

  /* Typography scale down */
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }

  /* Navbar compact */
  .navbar { height: 60px; }
  .navbar-inner { padding: 0 16px; }
  .page-wrapper { padding-top: 60px; }
  .sidebar { top: 60px; height: calc(100dvh - 60px); }
  .logo { font-size: 17px; }

  /* Stats — stack */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-value { font-size: 22px; }

  /* Cards — tighter */
  .card { padding: 14px; border-radius: var(--radius-md); }

  /* Media grid — single col on tiny phones */
  .media-grid { grid-template-columns: 1fr; }

  /* Onboarding type grid */
  .type-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }

  /* Tool output */
  .ai-output-body { padding: 16px; font-size: 13px; }

  .page-wrapper { padding-bottom: 0; }
}

/* ================================================================
   Touch — improve tap targets
   ================================================================ */
@media (hover: none) and (pointer: coarse) {
  .btn         { min-height: 44px; }
  .btn-sm      { min-height: 36px; }
  .sidebar-link { padding: 10px 16px; }
  .form-input, .form-select { min-height: 46px; }
  .tab-btn     { min-height: 44px; }
  .nav-link    { padding: 8px 14px; }
}
