/* ═══════════════════════════════════════════════════════════
   TerminalNotes — main.css
   Design: notebook × terminal × modern SaaS
   Fonts: Fraunces (display serif) + JetBrains Mono + DM Sans
═══════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --bg:          #0b0d0f;
  --bg-1:        #101316;
  --bg-2:        #161a1f;
  --bg-3:        #1c2028;
  --border:      #1f2730;
  --border-2:    #2a3340;

  --accent:      #00c896;
  --accent-2:    #00e0a8;
  --accent-dim:  rgba(0,200,150,.13);
  --accent-glow: rgba(0,200,150,.22);

  --amber:       #f5a623;
  --amber-dim:   rgba(245,166,35,.13);
  --blue:        #4da9ff;
  --blue-dim:    rgba(77,169,255,.13);
  --purple:      #b48eff;
  --purple-dim:  rgba(180,142,255,.13);
  --red:         #ff5f5f;
  --red-dim:     rgba(255,95,95,.13);

  --text:        #e2e8f0;
  --text-2:      #94a3b8;
  --text-3:      #4a5568;
  --text-accent: #00c896;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Radius */
  --r:    6px;
  --r-lg: 12px;
  --r-xl: 20px;

  /* Transitions */
  --t:    150ms cubic-bezier(.4,0,.2,1);
  --t-md: 280ms cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:var(--font-body);background:var(--bg);color:var(--text);min-height:100vh;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button{cursor:pointer;font-family:inherit}
input,textarea,select{font-family:inherit}
::selection{background:var(--accent-glow);color:var(--accent)}
::-webkit-scrollbar{width:5px;height:5px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:99px}
::-webkit-scrollbar-thumb:hover{background:var(--border-2)}
.hidden{display:none!important}
img{max-width:100%}

/* ═══════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════ */

.landing { min-height: 100vh; }

/* NAV */
.land-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(11,13,15,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.land-logo { display: flex; align-items: center; gap: 10px; }
.logo-name  { font-family: var(--font-mono); font-size: 1rem; font-weight: 500; color: var(--text); }
.brand-logo-img { width: 36px; height: 36px; object-fit: contain; display: block; }
.brand-logo-img.sm { width: 28px; height: 28px; }
.brand-logo-img.xs { width: 30px; height: 30px; }
.logo-sq    { display: flex; align-items: center; justify-content: center;
               width: 36px; height: 36px; border-radius: var(--r);
               background: #0a1f0f; border: 1px solid rgba(0,200,150,.25); }
.logo-sq span { font-family: var(--font-mono); font-size: .85rem; font-weight: 700; color: var(--accent); }
.logo-sq.sm { width: 28px; height: 28px; }
.logo-sq.xs { width: 30px; height: 30px; }
.logo-sq.sm span,.logo-sq.xs span { font-size: .72rem; }

.land-nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: .9rem; color: var(--text-2); transition: color var(--t); }
.nav-link:hover { color: var(--text); }

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

/* BUTTONS */
.btn-outline-sm {
  font-family: var(--font-mono); font-size: .8rem;
  background: transparent; border: 1px solid var(--border-2);
  color: var(--text-2); border-radius: var(--r); padding: 8px 16px;
  transition: var(--t);
}
.btn-outline-sm:hover { border-color: var(--accent); color: var(--accent); }

.btn-accent-sm {
  font-family: var(--font-mono); font-size: .8rem;
  background: var(--accent); border: none; color: #000;
  border-radius: var(--r); padding: 8px 18px; font-weight: 500;
  transition: var(--t);
}
.btn-accent-sm:hover { background: var(--accent-2); box-shadow: 0 0 18px var(--accent-glow); }

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 48px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: .25;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 75%);
}
.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 820px; gap: 28px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); border: 1px solid rgba(0,200,150,.2);
  border-radius: 99px; padding: 6px 14px;
  font-family: var(--font-mono); font-size: .75rem; color: var(--accent);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300; line-height: 1.1;
  color: var(--text); letter-spacing: -.02em;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1.15rem; line-height: 1.7;
  color: var(--text-2); max-width: 600px;
}
.hero-cta { display: flex; align-items: center; gap: 16px; }
.btn-hero {
  font-family: var(--font-mono); font-size: 1rem; font-weight: 500;
  background: var(--accent); color: #000; border: none;
  border-radius: var(--r-lg); padding: 14px 28px;
  display: flex; align-items: center; gap: 8px;
  transition: var(--t);
}
.btn-hero:hover { background: var(--accent-2); box-shadow: 0 0 30px var(--accent-glow); transform: translateY(-1px); }
.btn-hero span  { opacity: .7; }
.hero-hint { font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); }

/* HERO TERMINAL */
.hero-terminal {
  width: 100%; max-width: 620px;
  background: #0d1117; border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(0,200,150,.05);
  text-align: left;
}
.ht-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.ht-dots { display: flex; gap: 6px; }
.ht-dots span { width: 11px; height: 11px; border-radius: 50%; }
.ht-dots span:nth-child(1){background:#ff5f57}
.ht-dots span:nth-child(2){background:#febc2e}
.ht-dots span:nth-child(3){background:#28c840}
.ht-title { font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); }
.ht-body  { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.ht-line  { font-family: var(--font-mono); font-size: .85rem; line-height: 1.5; }
.ht-prompt{ color: var(--accent); }
.ht-cmd   { color: var(--text-2); }
.ht-out   { color: var(--text-3); padding-left: 16px; }
.ht-accent{ color: var(--accent); }
.ht-blink { display: flex; align-items: center; gap: 4px; }
.cursor-block { display: inline-block; color: var(--accent);
  animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* FEATURES */
.features,.how {
  max-width: 1100px; margin: 0 auto;
  padding: 100px 48px;
}
.section-label {
  font-family: var(--font-mono); font-size: .8rem; color: var(--accent);
  margin-bottom: 16px; letter-spacing: .05em;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.2; letter-spacing: -.02em;
  margin-bottom: 56px; color: var(--text);
}
.section-title em { font-style: italic; color: var(--accent); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.feat-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color var(--t), transform var(--t);
}
.feat-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feat-card--accent { border-color: rgba(0,200,150,.2); background: linear-gradient(135deg, var(--bg-2), rgba(0,200,150,.04)); }
.feat-card--accent:hover { border-color: rgba(0,200,150,.4); }
.feat-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feat-card h3 {
  font-family: var(--font-mono); font-size: 1rem; font-weight: 500;
  color: var(--text); margin-bottom: 10px;
}
.feat-card p { font-size: .95rem; color: var(--text-2); line-height: 1.65; }

/* HOW */
.how-steps {
  display: flex; align-items: flex-start;
  gap: 0; flex-wrap: wrap;
}
.how-step {
  flex: 1; min-width: 160px; padding: 24px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.how-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 10px; color: var(--accent); font-size: 1.3rem;
  font-family: var(--font-mono); flex-shrink: 0;
  padding-top: 52px;
}
.step-num {
  font-family: var(--font-mono); font-size: .75rem;
  color: var(--accent); margin-bottom: 10px; opacity: .7;
}
.how-step h3 {
  font-family: var(--font-mono); font-size: 1rem; font-weight: 500;
  color: var(--text); margin-bottom: 8px;
}
.how-step p { font-size: .9rem; color: var(--text-2); line-height: 1.6; }

/* FOOTER */
.land-footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { font-family: var(--font-mono); font-size: .78rem; color: var(--text-3); }

/* ═══════════════════════════════════════════════
   AUTH OVERLAY
═══════════════════════════════════════════════ */

.auth-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-panel {
  position: relative; background: var(--bg-1);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 36px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  animation: pop-in .25s cubic-bezier(.16,1,.3,1) both;
}
@keyframes pop-in {
  from{opacity:0;transform:scale(.95) translateY(12px)}
  to{opacity:1;transform:scale(1) translateY(0)}
}
.auth-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: var(--text-3);
  font-size: 1rem; padding: 6px 8px; border-radius: var(--r);
  transition: var(--t);
}
.auth-close:hover { background: var(--bg-3); color: var(--text); }
.auth-logo-sm {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .95rem; color: var(--text);
  margin-bottom: 24px; font-weight: 500;
}
.auth-tabs {
  display: flex; gap: 4px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); padding: 3px; margin-bottom: 22px;
}
.atab {
  flex: 1; font-family: var(--font-mono); font-size: .82rem;
  background: transparent; border: none; color: var(--text-3);
  padding: 8px 0; border-radius: calc(var(--r) - 2px); transition: var(--t);
}
.atab:hover { color: var(--text-2); }
.atab.active { background: var(--bg-3); color: var(--accent); }

.aform { display: none; flex-direction: column; gap: 14px; }
.aform.active { display: flex; }

.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-family: var(--font-mono); font-size: .75rem; color: var(--text-2); }
.field {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text); font-size: .9rem;
  padding: 10px 13px; outline: none; transition: border-color var(--t), box-shadow var(--t);
}
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field::placeholder { color: var(--text-3); }

.auth-err {
  font-family: var(--font-mono); font-size: .78rem;
  color: var(--red); background: var(--red-dim);
  border: 1px solid rgba(255,95,95,.2); border-radius: var(--r); padding: 9px 12px;
}
.btn-auth-primary {
  font-family: var(--font-mono); font-size: .88rem; font-weight: 500;
  background: var(--accent); color: #000; border: none;
  border-radius: var(--r); padding: 12px; transition: var(--t);
}
.btn-auth-primary:hover { background: var(--accent-2); box-shadow: 0 0 20px var(--accent-glow); }
.auth-or {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .75rem; color: var(--text-3);
}
.auth-or::before,.auth-or::after { content:''; flex:1; height:1px; background:var(--border); }
.btn-github {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-size: .85rem;
  background: var(--bg-3); color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--r); padding: 11px;
  transition: var(--t);
}
.btn-github:hover { border-color: var(--border-2); color: var(--text); background: var(--bg-2); }

/* ═══════════════════════════════════════════════
   APP SHELL
═══════════════════════════════════════════════ */

.app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* TOPBAR */
.topbar {
  height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; gap: 16px;
  background: var(--bg-1); border-bottom: 1px solid var(--border);
  z-index: 50;
}
.tb-left { display: flex; align-items: center; gap: 12px; }
.tb-logo { display:flex; align-items:center; gap:10px; }
.tb-sidebar-toggle {
  background: none; border: 1px solid transparent; color: var(--text-3);
  border-radius: var(--r); padding: 7px; transition: var(--t);
}
.tb-sidebar-toggle:hover { border-color: var(--border); color: var(--text); background: var(--bg-2); }

.tb-search-wrap {
  flex: 1; max-width: 480px; position: relative;
  display: flex; align-items: center;
}
.tb-search-icon { position: absolute; left: 11px; color: var(--text-3); font-size: 1rem; pointer-events: none; }
.tb-search {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text); font-size: .88rem;
  padding: 8px 12px 8px 32px; outline: none; cursor: pointer;
  transition: var(--t);
}
.tb-search:hover { border-color: var(--border-2); }
.tb-right { display: flex; align-items: center; gap: 10px; }

.tb-icon-btn {
  background: none; border: 1px solid transparent; color: var(--text-3);
  border-radius: var(--r); padding: 8px; transition: var(--t);
}
.tb-icon-btn:hover { border-color: var(--border); color: var(--text); background: var(--bg-2); }

.tb-user { position: relative; }
.tb-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-dim); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
  color: var(--accent); cursor: pointer; overflow: hidden;
  transition: var(--t);
}
.tb-avatar:hover { box-shadow: 0 0 12px var(--accent-glow); }
.tb-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.tb-user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); min-width: 200px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  overflow: hidden; z-index: 200;
  animation: pop-in .15s cubic-bezier(.16,1,.3,1) both;
}
.udd-header { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.udd-name { font-weight: 500; font-size: .9rem; margin-bottom: 2px; }
.udd-email { font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); }
.udd-item {
  display: block; padding: 10px 16px; font-size: .88rem; color: var(--text-2);
  cursor: pointer; transition: var(--t);
}
.udd-item:hover { background: var(--bg-3); color: var(--text); }
.udd-item.danger:hover { color: var(--red); }
.udd-divider { height: 1px; background: var(--border); }

/* APP BODY */
.app-body { display: flex; flex: 1; overflow: hidden; }

/* SIDEBAR */
.sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--bg-1); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto; transition: transform var(--t-md);
}
.sidebar-section { padding: 16px 10px 8px; }
.sb-label {
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--text-3); letter-spacing: .07em;
  padding: 0 8px 8px; text-transform: lowercase;
}
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: var(--r);
  font-size: .9rem; color: var(--text-2);
  cursor: pointer; transition: var(--t);
  border: 1px solid transparent;
  text-decoration: none;
}
.sb-item svg { flex-shrink: 0; stroke: currentColor; }
.sb-item:hover { background: var(--bg-2); color: var(--text); }
.sb-item.active {
  background: var(--accent-dim); color: var(--accent);
  border-color: rgba(0,200,150,.15);
}
.sb-bottom {
  margin-top: auto; padding: 10px;
  border-top: 1px solid var(--border);
}
.sb-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-dim); border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .72rem; color: var(--accent);
  overflow: hidden;
}
.sb-avatar img { width:100%;height:100%;object-fit:cover;border-radius:50%; }

/* MAIN CONTENT */
.main-content {
  flex: 1; overflow-y: auto;
  padding: 32px 40px;
  background: var(--bg);
}

/* ═══════════════════════════════════════════════
   PAGE COMPONENTS
═══════════════════════════════════════════════ */

/* Page header */
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 20px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.page-title-block {}
.page-label {
  font-family: var(--font-mono); font-size: .78rem;
  color: var(--accent); margin-bottom: 6px; opacity: .8;
}
.page-title {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 300; color: var(--text); line-height: 1.2;
}
.page-sub { font-size: .92rem; color: var(--text-2); margin-top: 6px; line-height: 1.5; }

/* Stat cards */
.stats-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 24px;
  flex: 1; min-width: 130px;
  transition: border-color var(--t);
}
.stat-card:hover { border-color: var(--border-2); }
.stat-num {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 600; color: var(--text); line-height: 1;
}
.stat-label { font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); margin-top: 6px; }

/* Cards */
.card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.card:hover { border-color: var(--border-2); box-shadow: 0 4px 20px rgba(0,0,0,.3); }

.card-list { display: flex; flex-direction: column; gap: 12px; }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 14px; gap: 12px;
}
.card-title {
  font-family: var(--font-mono); font-size: 1rem; font-weight: 500; color: var(--text);
}
.card-body { padding: 0 18px 16px; }
.card-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 8px;
}

/* Type badges */
.badge {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  border-radius: 4px; padding: 2px 8px; letter-spacing: .04em;
}
.badge-green  { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(0,200,150,.2); }
.badge-blue   { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(77,169,255,.2); }
.badge-amber  { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,166,35,.2); }
.badge-purple { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(180,142,255,.2); }
.badge-red    { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,95,95,.2); }
.badge-gray   { background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border); }

/* Tags */
.tag {
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--text-3); background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 3px; padding: 2px 7px;
}
.tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* Command block */
.cmd-block {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}
.cmd-block-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.cmd-dots { display: flex; gap: 5px; }
.cmd-dots span { width: 9px; height: 9px; border-radius: 50%; }
.cmd-dots span:nth-child(1){background:#ff5f57}
.cmd-dots span:nth-child(2){background:#febc2e}
.cmd-dots span:nth-child(3){background:#28c840}
.btn-copy {
  font-family: var(--font-mono); font-size: .68rem;
  background: none; border: 1px solid var(--border);
  border-radius: 3px; color: var(--text-3); padding: 2px 8px; transition: var(--t);
}
.btn-copy:hover,.btn-copy.copied { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.cmd-code {
  font-family: var(--font-mono); font-size: .9rem;
  color: var(--accent); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  overflow-x: auto; white-space: nowrap;
}
.cmd-prompt { color: var(--text-3); user-select: none; }
.cmd-desc { font-size: .85rem; color: var(--text-2); margin-top: 8px; line-height: 1.55; }

/* Section rows */
.section-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.section-row-title {
  font-family: var(--font-mono); font-size: .82rem; color: var(--text-3); letter-spacing: .05em;
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; }

/* Empty state */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center; gap: 14px;
}
.empty-state-icon {
  font-family: var(--font-mono); font-size: 2.5rem; color: var(--text-3); opacity: .4;
  animation: blink 1.2s step-end infinite;
}
.empty-state h3 {
  font-family: var(--font-mono); font-size: 1rem; color: var(--text-2);
}
.empty-state p { font-size: .9rem; color: var(--text-3); max-width: 320px; }

/* Buttons */
.btn {
  font-family: var(--font-mono); font-size: .82rem;
  border-radius: var(--r); padding: 9px 16px;
  border: 1px solid transparent; transition: var(--t);
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-primary  { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 500; }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 16px var(--accent-glow); }
.btn-secondary{ background: var(--bg-3); color: var(--text-2); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-2); color: var(--text); }
.btn-ghost    { background: transparent; color: var(--text-3); border-color: var(--border); }
.btn-ghost:hover { color: var(--text-2); border-color: var(--border-2); background: var(--bg-3); }
.btn-danger   { background: var(--red-dim); color: var(--red); border-color: rgba(255,95,95,.25); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm       { padding: 6px 12px; font-size: .78rem; }
.btn-lg       { padding: 13px 24px; font-size: .92rem; }

/* Icon button */
.btn-icon {
  width: 32px; height: 32px; border-radius: var(--r);
  background: none; border: 1px solid transparent;
  color: var(--text-3); display: flex; align-items: center;
  justify-content: center; transition: var(--t);
}
.btn-icon:hover { background: var(--bg-3); border-color: var(--border); color: var(--text-2); }
.btn-icon.red:hover { background: var(--red-dim); color: var(--red); border-color: rgba(255,95,95,.2); }

/* ── Timeline ── */
.timeline {
  position: relative; padding: 20px 0;
  overflow-x: auto;
}
.timeline-track {
  display: flex; align-items: flex-start;
  gap: 0; min-width: max-content; padding: 20px 30px;
  position: relative;
}
.timeline-track::before {
  content: '';
  position: absolute; top: 56px; left: 30px;
  right: 30px; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 100%);
}
.tl-point {
  display: flex; flex-direction: column; align-items: center;
  width: 160px; flex-shrink: 0;
}
.tl-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 10px var(--accent-glow);
  position: relative; z-index: 1; margin-top: 6px;
}
.tl-dot.past { background: var(--border-2); box-shadow: none; }
.tl-date { font-family: var(--font-mono); font-size: .68rem; color: var(--text-3); margin-bottom: 12px; }
.tl-label {
  margin-top: 14px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 8px 12px; text-align: center;
  font-size: .82rem; color: var(--text-2); width: 140px;
}

/* ── Feed items ── */
.feed-item {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 20px;
  transition: border-color var(--t);
  animation: slide-in .25s cubic-bezier(.16,1,.3,1) both;
}
@keyframes slide-in {
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}
.feed-item:hover { border-color: var(--border-2); }
.feed-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.feed-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-3); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .75rem; color: var(--text-3);
  flex-shrink: 0; overflow: hidden;
}
.feed-avatar img { width:100%;height:100%;object-fit:cover;border-radius:50%; }
.feed-user { font-weight: 500; font-size: .88rem; color: var(--text); }
.feed-user-link { font-weight: 500; font-size: .88rem; color: var(--text); background:none; border:none; }
.feed-user-link:hover { color: var(--accent); }
.feed-time { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); margin-left: auto; }
.feed-action { font-size: .85rem; color: var(--text-2); margin-bottom: 8px; }
.feed-action a { color: var(--blue); text-decoration: underline; }
.feed-editor-tools { display: flex; gap: 6px; margin-bottom: 8px; }
.feed-dropzone {
  border: 1px dashed var(--border-2);
  border-radius: var(--r);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  cursor: pointer;
}
.feed-dropzone:hover { border-color: var(--accent); color: var(--text); }
.feed-dropzone.active { border-color: var(--accent); background: var(--accent-dim); }
.feed-upload-meta { font-size: .78rem; color: var(--text-3); margin-top: 6px; }
.feed-image {
  margin-top: 10px;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg);
}
.feed-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.feed-comments-preview { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.feed-comment-line { font-size: .82rem; color: var(--text-2); margin: 4px 0; }
.feed-btn {
  font-family: var(--font-mono); font-size: .75rem; color: var(--text-3);
  background: none; border: none; display: flex; align-items: center; gap: 5px;
  cursor: pointer; transition: var(--t); padding: 4px 0;
}
.feed-btn:hover { color: var(--accent); }
.feed-btn.starred { color: var(--amber); }
.feed-like-btn {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
}
.feed-like-btn.starred {
  background: var(--amber-dim);
  border-color: rgba(245,166,35,.35);
  color: var(--amber);
}
.ui-icon { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Profile ── */
.profile-hero {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 32px; margin-bottom: 28px;
  display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
}
.profile-avatar-lg {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-dim); border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 1.8rem; color: var(--accent);
  overflow: hidden;
}
.profile-avatar-lg img { width:100%;height:100%;object-fit:cover;border-radius:50%; }
.profile-info { flex: 1; }
.profile-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; margin-bottom: 4px; }
.profile-handle { font-family: var(--font-mono); font-size: .82rem; color: var(--text-3); margin-bottom: 12px; }
.profile-bio { font-size: .92rem; color: var(--text-2); line-height: 1.6; max-width: 500px; }
.profile-stats { display: flex; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.pstat { text-align: center; }
.pstat-btn { background: none; border: none; color: inherit; padding: 0; cursor: pointer; }
.pstat-num { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--text); }
.pstat-label { font-family: var(--font-mono); font-size: .7rem; color: var(--text-3); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--r-xl); width: 100%; max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  animation: pop-in .2s cubic-bezier(.16,1,.3,1) both;
}
.modal-lg { max-width: 680px; }
.modal-sm { max-width: 420px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 16px; border-bottom: 1px solid var(--border);
}
.modal-title { font-family: var(--font-mono); font-size: .9rem; color: var(--accent); }
.modal-close-btn {
  background: none; border: none; color: var(--text-3); font-size: .9rem;
  padding: 5px 8px; border-radius: var(--r); cursor: pointer; transition: var(--t);
}
.modal-close-btn:hover { background: var(--bg-3); color: var(--text); }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; max-height: 70vh; overflow-y: auto; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* Form */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-family: var(--font-mono); font-size: .77rem; color: var(--text-2); }
.form-input {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text); font-size: .92rem;
  padding: 10px 13px; outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-input::placeholder { color: var(--text-3); }
.form-input.mono { font-family: var(--font-mono); font-size: .86rem; }
textarea.form-input { resize: vertical; line-height: 1.6; min-height: 90px; }
.feed-post-textarea {
  min-height: 160px;
  max-height: 65vh;
  resize: vertical;
}
select.form-input { cursor: pointer; }
select.form-input option { background: var(--bg-2); }

/* Confirm delete */
.confirm-danger-text {
  font-family: var(--font-mono); font-size: .82rem; color: var(--text-2);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 12px;
}

/* Tabs inside page */
.page-tabs {
  display: flex; gap: 4px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 3px;
  margin-bottom: 22px; width: fit-content;
}
.ptab {
  font-family: var(--font-mono); font-size: .8rem;
  background: transparent; border: none; color: var(--text-3);
  padding: 7px 14px; border-radius: calc(var(--r) - 2px); cursor: pointer;
  transition: var(--t);
}
.ptab:hover { color: var(--text-2); }
.ptab.active { background: var(--bg-3); color: var(--accent); }

/* Progress bar */
.progress-bar { height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s; }

/* Repo card */
.repo-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 18px;
  transition: border-color var(--t);
}
.repo-card:hover { border-color: rgba(0,200,150,.25); }
.repo-name { font-family: var(--font-mono); font-size: .92rem; color: var(--blue); margin-bottom: 6px; }
.repo-desc { font-size: .85rem; color: var(--text-2); margin-bottom: 10px; line-height: 1.5; }
.repo-meta { display: flex; align-items: center; gap: 12px; }
.repo-lang { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); }
.repo-stars { font-family: var(--font-mono); font-size: .72rem; color: var(--amber); }

/* ── Toast ── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px; z-index: 9999;
}
.toast {
  font-family: var(--font-mono); font-size: .8rem;
  padding: 11px 18px; border-radius: var(--r);
  pointer-events: none; white-space: nowrap;
  animation: pop-in .25s cubic-bezier(.16,1,.3,1) both;
}
.toast.success { background: var(--accent); color: #000; }
.toast.error   { background: var(--red); color: #fff; }
.toast.info    { background: var(--bg-3); color: var(--text); border: 1px solid var(--border); }

/* ── Search overlay ── */
.search-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center; padding: 80px 20px 20px;
}
.search-modal {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--r-xl); width: 100%; max-width: 600px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  animation: pop-in .2s cubic-bezier(.16,1,.3,1) both;
  overflow: hidden;
}
.sm-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.sm-icon { color: var(--text-3); font-size: 1.1rem; }
.sm-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-mono); font-size: 1rem; color: var(--text);
}
.sm-input::placeholder { color: var(--text-3); }
.sm-esc {
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--text-3); background: var(--bg-3);
  border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 4px; padding: 2px 7px;
}
.sm-results { max-height: 380px; overflow-y: auto; padding: 8px; }
.sm-empty { font-family: var(--font-mono); font-size: .82rem; color: var(--text-3); text-align: center; padding: 30px; }
.sm-result {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--r); cursor: pointer;
  transition: var(--t);
}
.sm-result:hover { background: var(--bg-2); }
.sm-result-type { font-family: var(--font-mono); font-size: .7rem; width: 70px; flex-shrink: 0; }
.sm-result-title { font-size: .9rem; color: var(--text); }
.sm-result-sub { font-size: .78rem; color: var(--text-3); margin-top: 1px; }

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

.loading-page {
  display: flex; align-items: center; justify-content: center;
  height: 200px; gap: 12px; font-family: var(--font-mono);
  font-size: .82rem; color: var(--text-3);
}

/* ═══════════════════════════════════════════════
   NOTEBOOK
═══════════════════════════════════════════════ */

/* Grid */
.nb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── Book card ── */
.nb-book {
  display: flex;
  cursor: pointer;
  border-radius: 12px;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
/* stacked pages */
.nb-book::before, .nb-book::after { display: none; }
.nb-book:hover { transform: translateY(-2px); }

/* Spine */
.nb-book-spine {
  width: 10px; flex-shrink: 0;
  border-radius: 12px 0 0 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12px 0;
  position: relative; z-index: 2;
}
.nb-book-rings {
  display: none;
}
.nb-book-ring {
  width: 18px; height: 10px;
  border: 2px solid rgba(0,0,0,.4);
  border-radius: 50%; flex-shrink: 0;
}
.nb-book-spine-title {
  display: none;
}

/* Cover */
.nb-book-cover {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 14px 12px;
  display: flex; flex-direction: column;
  min-height: 160px;
  position: relative; z-index: 2;
  /* ruled lines */
  background-image: repeating-linear-gradient(
    to bottom, transparent 0px, transparent 23px,
    rgba(255,255,255,.03) 23px, rgba(255,255,255,.03) 24px
  );
}
.nb-book-cover-inner { flex: 1; }
.nb-book-label {
  font-family: var(--font-mono); font-size: .62rem;
  color: var(--accent); margin-bottom: 7px; opacity: .7;
}
.nb-book-title {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 400; color: var(--text); line-height: 1.3; margin-bottom: 5px;
}
.nb-book-desc {
  font-size: .78rem; color: var(--text-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.nb-book-footer {
  display: flex; align-items: center;
  justify-content: space-between; margin-top: 10px; gap: 6px; flex-wrap: wrap;
}
.nb-date { font-family: var(--font-mono); font-size: .66rem; color: var(--text-3); }
.nb-book-actions { display: flex; gap: 2px; opacity: 0; transition: opacity 150ms; }
.nb-book:hover .nb-book-actions { opacity: 1; }

/* ── Open notebook (page view) ── */
.nb-page-wrap {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  background: var(--bg-1);
  margin-bottom: 28px;
}

/* Spine */
.nb-page-spine {
  width: 42px; flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px 0; position: relative;
}
.nb-page-rings {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-around;
  padding: 12px 0;
}
.nb-page-ring {
  width: 22px; height: 12px;
  border: 2.5px solid rgba(0,0,0,.4);
  border-radius: 50%; flex-shrink: 0;
}
.nb-page-spine-title {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-mono); font-size: .56rem;
  color: rgba(0,0,0,.5); letter-spacing: .12em;
  white-space: nowrap; overflow: hidden; max-height: 70%;
  position: relative; z-index: 1;
}

/* Page inner */
.nb-page-inner { flex: 1; min-width: 0; border-left: 1px solid rgba(255,255,255,.05); }
.nb-page-inner { border-left: none; }

/* Title area */
.nb-page-title-area {
  padding: 22px 26px 18px 28px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 14px;
  background: var(--bg-2);
}
.nb-page-heading {
  font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 300; color: var(--text); line-height: 1.2;
}
.nb-page-subheading { font-size: .88rem; color: var(--text-2); margin-top: 7px; line-height: 1.6; }

/* Tab bar */
.nb-page-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  background: var(--bg-2); padding: 0 26px; overflow-x: auto;
}
.nb-ptab {
  font-family: var(--font-mono); font-size: .75rem;
  padding: 9px 13px; color: var(--text-3);
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer; transition: color 150ms;
  white-space: nowrap; position: relative; top: 1px;
}
.nb-ptab:hover { color: var(--text-2); }
.nb-ptab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Page body */
.nb-page-body {
  padding: 0 26px 32px 28px;
  background: var(--bg-1);
}

/* Section */
.nb-section { margin-top: 26px; }
.nb-section:first-child { margin-top: 20px; }
.nb-section-heading {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nb-section-line { width: 3px; height: 16px; border-radius: 2px; flex-shrink: 0; }
.nb-section-label {
  font-family: var(--font-display); font-size: 1.35rem;
  font-weight: 400; letter-spacing: .01em; text-transform: none;
}
.nb-section-count {
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--text-3); background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 99px; padding: 1px 7px;
}

/* Entry row */
.nb-section-entries { display: flex; flex-direction: column; }
.nb-entry {
  display: flex; gap: 13px;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.nb-entry:last-child { border-bottom: none; }
.nb-entry-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0; margin-top: 7px;
}
.nb-entry-body { flex: 1; min-width: 0; }
.nb-entry-header {
  display: flex; align-items: flex-start;
  gap: 8px; margin-bottom: 5px;
}
.nb-entry-title {
  font-family: var(--font-display); font-size: .97rem;
  font-weight: 400; color: var(--text); flex: 1; line-height: 1.3;
}
.nb-entry-actions { display: flex; gap: 3px; opacity: 0; transition: opacity 150ms; flex-shrink: 0; }
.nb-entry:hover .nb-entry-actions { opacity: 1; }
.nb-entry-content {
  font-size: .88rem; color: var(--text-2);
  line-height: 1.7; white-space: pre-wrap;
}
.nb-entry-time { margin-top: 7px; font-family: var(--font-mono); font-size: .65rem; color: var(--text-3); }

/* Pagination */
.nb-pagination {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0 4px; margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.nb-page-btn {
  font-family: var(--font-mono); font-size: .72rem;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-2); border-radius: var(--r);
  padding: 4px 12px; cursor: pointer; transition: 150ms;
}
.nb-page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.nb-page-btn:disabled { opacity: .35; cursor: default; }
.nb-page-info { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); }

/* Empty */
.nb-empty { padding: 48px 0; text-align: center; }
.nb-empty-icon { font-family: var(--font-mono); font-size: 2rem; color: var(--text-3); opacity: .2; margin-bottom: 12px; }
.nb-empty-title { font-family: var(--font-mono); font-size: .88rem; color: var(--text-2); margin-bottom: 5px; }
.nb-empty-sub { font-size: .84rem; color: var(--text-3); max-width: 280px; margin: 0 auto; line-height: 1.6; }

/* ── Legacy compat (kept so nothing else breaks) ── */
/* ─── Idea status ─── */
.idea-status { display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .72rem; border-radius: 4px; padding: 3px 9px; }
.status-exploring { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,166,35,.2); }
.status-planning  { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(77,169,255,.2); }
.status-building  { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(180,142,255,.2); }
.status-done      { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(0,200,150,.2); }
.status-parked    { background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .main-content { padding: 20px; }
  .sidebar { position: fixed; left: 0; top: 56px; bottom: 0; z-index: 40;
    transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,.5); }
  .land-nav { padding: 14px 20px; }
  .land-nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 80px 24px 60px; }
  .features,.how { padding: 60px 20px; }
  .how-steps { flex-direction: column; }
  .how-arrow { transform: rotate(90deg); padding: 0 20px 0 70px; align-self: flex-start; }
  .land-footer { flex-direction: column; gap: 12px; text-align: center; padding: 30px 20px; }
  .stats-row { gap: 10px; }
  .modal-overlay { padding: 12px; }
  .modal { max-width: 100%; }
}
@media (max-width: 600px) {
  .tb-search-wrap { display: none; }
  .page-title { font-size: 1.5rem; }
  .grid-2,.grid-3 { grid-template-columns: 1fr; }
  .profile-hero { flex-direction: column; }
  .feed-actions { flex-wrap: wrap; gap: 8px; }
  .page-tabs { width: 100%; overflow-x: auto; }
  .topbar { padding: 0 12px; }
}