@import url("site-chrome.css?v=20260911-type1");

/* ═══════════════════════════════════════════════════════
   SHVL V2 Design System
   Tesla/SpaceX inspired. Pure black, opacity hierarchy.
   Include on every page: <link rel="stylesheet" href="css/v2.css?v=20260911-type1">
   ═══════════════════════════════════════════════════════ */

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

:root {
  --gold: #0ea5bf;
  --gold-gradient: linear-gradient(180deg, #0ea5bf 0%, #055864 100%);
  --text-primary: rgba(232, 228, 220, 1);
  --text-secondary: rgba(232, 228, 220, 0.7);
  --text-tertiary: rgba(232, 228, 220, 0.5);
  --text-muted: rgba(232, 228, 220, 0.3);
  --text-faint: rgba(232, 228, 220, 0.15);
  --text-ghost: rgba(232, 228, 220, 0.08);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

/* Scrollbar for all elements */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
@media (hover:hover) and (pointer:fine){::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,0.2); }}
::-webkit-scrollbar-corner { background: transparent; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #111110;
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
}

::selection { background: rgba(14,165,191,0.3); color: #fff; }

/* ═══════ Select / Dropdown global dark theme ═══════ */
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255,255,255,0.03);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  font-family: 'Inter', sans-serif;
  padding-right: 28px;
  cursor: pointer;
  transition: border-color 0.15s;
}
@media (hover:hover) and (pointer:fine){select:hover{ border-color: rgba(255,255,255,0.15); }}
select:focus { border-color: rgba(14,165,191,0.4); outline: 2px solid transparent; }
select option {
  background: #151515;
  color: rgba(255,255,255,0.85);
  padding: 8px;
}
/* White sections override */
section.white select {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.3)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  border-color: rgba(0,0,0,0.1);
  color: #000;
}
section.white select option { background: #fff; color: #000; }

/* ═══════ Scroll Reveal ═══════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════ Nav ═══════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  transition: background 0.3s ease;
}
nav.scrolled {
  background: rgba(0,0,0,0.9);

}
.nav-logo {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
}
.nav-logo img { height: 36px; }
.nav-logo-text {
  font-size: 44px; font-weight: 900; letter-spacing: -0.02em; line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 14px;
  font-weight: 400; transition: color 0.3s ease;
}
@media (hover:hover) and (pointer:fine){.nav-links a:hover{ color: var(--gold); }}

/* ═══════ Sections ═══════ */
section {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 48px;
}
section.short { min-height: auto; }
section.half { min-height: 50vh; }

/* White panels */
section.white { background: #f0f0f0; }
section.white h1, section.white h2, section.white h3,
section.white .section-title { color: #000; }
section.white p, section.white .section-desc { color: rgba(0,0,0,0.5); }
section.white .card {
  background: #fff; border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
section.white .card-title { color: #000; }
section.white .card-desc { color: rgba(0,0,0,0.5); }
section.white .card-meta { color: rgba(0,0,0,0.3); }

/* ═══════ Typography ═══════ */
.section-title {
  font-size: 48px; font-weight: 900; color: var(--text-primary);
  text-align: center; margin-bottom: 20px; line-height: 1.1;
}
.section-subtitle {
  font-size: 20px; font-weight: 400; color: var(--text-tertiary);
  text-align: center; max-width: 600px; margin-bottom: 60px;
}
.page-title {
  font-size: 64px; font-weight: 900; margin-bottom: 16px; line-height: 1.1;
}
.page-subtitle {
  font-size: 20px; font-weight: 400; color: var(--text-tertiary);
  max-width: 500px; text-align: center;
}

/* ═══════ Cards ═══════ */
.card-grid {
  display: grid; gap: 1px; width: 100%; max-width: 1200px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.card {
  background: rgba(232,228,220,0.03);
  padding: 32px;
  transition: background 0.3s ease;
}
@media (hover:hover) and (pointer:fine){.card:hover{ background: rgba(232,228,220,0.06); }}
.card-title {
  font-size: 18px; font-weight: 500; color: var(--text-primary); margin-bottom: 8px;
}
.card-desc {
  font-size: 14px; color: var(--text-tertiary); line-height: 1.6; margin-bottom: 16px;
}
.card-meta {
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: space-between;
}

/* ═══════ Buttons ═══════ */
.btn-pill {
  background: transparent;
  border: 1px solid rgba(232,228,220,0.4);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  padding: 12px 28px; border-radius: 10px; cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
@media (hover:hover) and (pointer:fine){.btn-pill:hover{
  border-color: rgba(232,228,220,0.7);
  background: rgba(232,228,220,0.05);
}}
.btn-gold {
  background: var(--ac, #055864); color: var(--btn-p-fg, #b8e8ef);
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
  padding: 10px 22px; border-radius: 10px; border: 1px solid var(--ac-border, rgba(10,125,140,0.3)); cursor: pointer;
  transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover:hover) and (pointer:fine){.btn-gold:hover{ background: var(--ac-hover, #0a7d8c); transform: translateY(-1px); }}
.gold-link {
  color: var(--gold); text-decoration: none; font-weight: 500;
  font-size: 14px; transition: opacity 0.3s;
}
@media (hover:hover) and (pointer:fine){.gold-link:hover{ opacity: 0.7; }}

/* White panel buttons */
section.white .btn-pill {
  border-color: rgba(0,0,0,0.2); color: #000;
}
@media (hover:hover) and (pointer:fine){section.white .btn-pill:hover{
  border-color: rgba(0,0,0,0.5); background: rgba(0,0,0,0.03);
}}

/* ═══════ Social Auth ═══════ */
.social-row { display: flex; align-items: center; gap: 12px; }
.social-label { font-size: 13px; color: var(--text-muted); margin-right: 4px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(232,228,220,0.1); background: transparent;
  color: var(--text-tertiary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color 0.3s, color 0.3s;
}
@media (hover:hover) and (pointer:fine){.social-btn:hover{ border-color: rgba(232,228,220,0.3); color: var(--text-primary); }}
.social-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ═══════ Forms ═══════ */
.input-line {
  background: transparent; border: none;
  border-bottom: 1px solid var(--text-muted);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif; font-size: 16px;
  padding: 12px 0; width: 280px; outline: 2px solid transparent;
  transition: border-color 0.3s;
}
.input-line::placeholder { color: var(--text-muted); }
.input-line:focus { border-color: var(--text-secondary); }

.input-box {
  background: rgba(232,228,220,0.03); border: 1px solid rgba(232,228,220,0.08);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif; font-size: 14px;
  padding: 12px 16px; border-radius: 10px; outline: 2px solid transparent;
  transition: border-color 0.3s;
  width: 100%;
}
.input-box::placeholder { color: var(--text-muted); }
.input-box:focus { border-color: rgba(232,228,220,0.2); }

section.white .input-box {
  background: #fff; border-color: rgba(0,0,0,0.1); color: #000;
}
section.white .input-box::placeholder { color: rgba(0,0,0,0.3); }

/* ═══════ Tags / Badges ═══════ */
.tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 10px;
  background: rgba(232,228,220,0.06); color: var(--text-tertiary);
}
.tag-gold { background: rgba(14,165,191,0.15); color: var(--gold); }

section.white .tag { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.5); }

/* ═══════ Footer ═══════ */
footer {
  padding: 80px 48px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.footer-logo img { height: 36px; }
.footer-logo-text {
  font-size: 44px; font-weight: 900; letter-spacing: -0.02em;
  background: var(--gold-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0.5;
}
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a {
  color: var(--text-faint); text-decoration: none; font-size: 13px;
  transition: color 0.3s;
}
@media (hover:hover) and (pointer:fine){.footer-links a:hover{ color: var(--gold); }}
.footer-copy {
  text-align: center; padding: 24px 48px 32px;
  font-size: 12px; color: rgba(232,228,220,0.08);
}

/* ═══════ Unified Detail Modal ═══════ */
/* ═══════ Detail Modal: V3 Theme ═══════ */
.dm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  overflow-y: auto; padding: 40px 20px;
}
.dm-box {
  background: var(--bg2, #181816); border: 1px solid var(--bd, rgba(255,255,255,0.06));
  border-radius: 10px;
  max-width: 680px; width: 100%; position: relative;
  max-height: 90vh; overflow-y: auto;
}
.dm-close {
  position: absolute; top: 16px; right: 16px; background: none;
  border: none; color: var(--t3, rgba(232,228,220,0.32)); font-size: 24px;
  cursor: pointer; width: 36px; height: 36px; display: flex;
  align-items: center; justify-content: center; border-radius: 10px;
  transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover:hover) and (pointer:fine){.dm-close:hover{ color: var(--t1, #e8e4dc); background: var(--surface-soft, rgba(255,255,255,0.02)); }}
.dm-header { padding: 40px 40px 0; }
.dm-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 24px; font-weight: 900; letter-spacing: -0.02em; color: var(--t1, #e8e4dc); margin-bottom: 10px; }
.dm-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.dm-desc { font-size: 14px; line-height: 1.7; color: var(--t2, rgba(232,228,220,0.62)); padding: 0 40px 24px; }
.dm-section-label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--t3, rgba(232,228,220,0.32));
  padding: 0 40px; margin-bottom: 12px;
}
.dm-flow { padding: 0 40px 24px; }
.dm-stats {
  padding: 0 40px 16px; display: flex; gap: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 11px; color: var(--t3, rgba(232,228,220,0.32));
}
.dm-footer {
  padding: 24px 40px; border-top: 1px solid var(--bd, rgba(255,255,255,0.06));
  display: flex; gap: 12px; align-items: center;
}
.dm-btn-secondary {
  padding: 10px 20px; border-radius: 10px; font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500; cursor: pointer;
  color: var(--t2, rgba(232,228,220,0.62)); background: transparent;
  border: 1px solid var(--bd, rgba(255,255,255,0.06)); transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover:hover) and (pointer:fine){.dm-btn-secondary:hover{ border-color: var(--bdh, rgba(255,255,255,0.12)); color: var(--t1, #e8e4dc); }}
.dm-setup { padding: 0 40px 24px; }
.dm-setup-field {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--bd, rgba(255,255,255,0.06));
  font-size: 13px; color: var(--t2, rgba(232,228,220,0.62));
}
.dm-setup-field:last-child { border-bottom: none; }
.dm-setup-dot {
  width: 2px; height: 12px; border-radius: 0; flex-shrink: 0;
  background: var(--ac2, #0ea5bf);
}
.dm-setup-dot.optional { background: var(--t4, rgba(232,228,220,0.12)); }

/* Detail flow nodes in V3 colours */
.df-node {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px; margin-bottom: 2px;
  font-size: 13px;
}
.df-node.trigger { background: rgba(232,228,220,0.04); border: 1px solid rgba(232,228,220,0.1); color: var(--t1, #e8e4dc); }
.df-node.ai { background: rgba(14,165,191,0.06); border: 1px solid rgba(14,165,191,0.18); color: var(--t1, #e8e4dc); }
.df-node.action { background: rgba(96,165,250,0.06); border: 1px solid rgba(96,165,250,0.15); color: var(--t1, #e8e4dc); }
.df-node.output { background: rgba(52,211,153,0.06); border: 1px solid rgba(52,211,153,0.15); color: var(--t1, #e8e4dc); }
.df-dot { width: 3px; height: 12px; border-radius: 0; flex-shrink: 0; }
.df-node.trigger .df-dot { background: var(--t2, rgba(232,228,220,0.62)); }
.df-node.ai .df-dot { background: #0ea5bf; }
.df-node.action .df-dot { background: #60a5fa; }
.df-node.output .df-dot { background: #34d399; }
.df-label { flex: 1; font-weight: 500; }
.df-arrow { width: 1px; height: 10px; background: var(--bd, rgba(255,255,255,0.06)); margin: 0 auto; }
.df-arrow::after { content: none; }
.df-parallel { display: flex; gap: 8px; margin-bottom: 2px; }
.df-parallel .df-node { flex: 1; }

/* Mini flow nodes for cards in V3 colours */
.mf-node {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 10px; margin-bottom: 1px;
  font-size: 11px;
}
.mf-node.trigger { background: rgba(232,228,220,0.03); border: 1px solid rgba(232,228,220,0.08); color: var(--t2, rgba(232,228,220,0.62)); }
.mf-node.ai { background: rgba(14,165,191,0.05); border: 1px solid rgba(14,165,191,0.12); color: var(--t2, rgba(232,228,220,0.62)); }
.mf-node.action { background: rgba(96,165,250,0.05); border: 1px solid rgba(96,165,250,0.1); color: var(--t2, rgba(232,228,220,0.62)); }
.mf-node.output { background: rgba(52,211,153,0.05); border: 1px solid rgba(52,211,153,0.1); color: var(--t2, rgba(232,228,220,0.62)); }
.mf-dot { width: 2px; height: 10px; border-radius: 0; flex-shrink: 0; }
.mf-node.trigger .mf-dot { background: var(--t2, rgba(232,228,220,0.62)); }
.mf-node.ai .mf-dot { background: #0ea5bf; }
.mf-node.action .mf-dot { background: #60a5fa; }
.mf-node.output .mf-dot { background: #34d399; }
.mf-label { flex: 1; }
.mf-arrow { width: 1px; height: 5px; background: var(--bd, rgba(255,255,255,0.06)); margin: 0 0 0 16px; }
.mf-parallel { display: flex; gap: 4px; margin-bottom: 1px; }
.mf-parallel .mf-node { flex: 1; }

@media (max-width: 768px) {
  .dm-header, .dm-desc, .dm-section-label, .dm-flow, .dm-setup, .dm-footer, .dm-stats { padding-left: 24px; padding-right: 24px; }
  .df-parallel, .mf-parallel { flex-direction: column; }
}

/* ═══════ App Shell (sidebar + command bar) ═══════ */

.app-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 240px; z-index: 200;
  background: rgba(255,255,255,0.015);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  transition: width 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}
.app-sidebar.collapsed { width: 0; transform: translateX(-240px); }

.sb-header {
  display: flex; align-items: center; padding: 24px 48px 16px; flex-shrink: 0;
}
.sb-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.sb-brand img { height: 36px; width: auto; }
.sb-brand-text {
  font-size: 44px; font-weight: 900; letter-spacing: -0.02em; line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.sb-group { padding: 8px 12px; }
.sb-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted);
  padding: 12px 8px 6px; user-select: none;
}
.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  text-decoration: none; color: var(--text-tertiary);
  font-size: 13px; font-weight: 500; transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover:hover) and (pointer:fine){.sb-item:hover{ background: rgba(255,255,255,0.04); color: var(--text-secondary); }}
.sb-item.active { background: rgba(201,168,76,0.08); color: var(--gold); }
.sb-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.sb-spacer { flex: 1; }
.sb-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.sb-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  text-decoration: none; color: var(--text-tertiary); transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover:hover) and (pointer:fine){.sb-user:hover{ background: rgba(255,255,255,0.04); color: var(--text-secondary); }}
.sb-avatar {
  width: 30px; height: 30px; border-radius: 10px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--gold); flex-shrink: 0;
}
.sb-user-info { display: flex; flex-direction: column; }
.sb-user-name { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.sb-user-plan { font-size: 10px; color: var(--text-muted); }

/* Command bar */
.app-topbar {
  position: fixed; top: 0; right: 0; height: 56px; z-index: 150;
  left: 240px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px;
  background: rgba(0,0,0,0.85);

  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: left 0.2s ease;
}
.app-topbar.sb-collapsed { left: 0; }

.tb-hamburger {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover:hover) and (pointer:fine){.tb-hamburger:hover{ background: rgba(255,255,255,0.06); color: var(--text-secondary); }}
.tb-hamburger svg { width: 20px; height: 20px; }

.tb-search {
  flex: 1; max-width: 480px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 0 12px; height: 34px;
  transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.tb-search:focus-within { border-color: rgba(14,165,191,0.3); background: rgba(255,255,255,0.06); }
.tb-search svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.tb-search input {
  background: none; border: none; outline: 2px solid transparent;
  color: var(--text-primary); font-family: 'Inter', sans-serif;
  font-size: 13px; width: 100%;
}
.tb-search input::placeholder { color: var(--text-muted); }
.tb-shortcut {
  font-size: 10px; color: var(--text-muted);
  background: rgba(255,255,255,0.06); padding: 2px 6px;
  border-radius: 10px; font-weight: 500; flex-shrink: 0;
}

.tb-avatar {
  width: 28px; height: 28px; border-radius: 10px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: var(--gold); cursor: pointer;
}

/* Profile dropdown */
.tb-dropdown {
  position: fixed; top: 52px; right: 16px; z-index: 300;
  background: #151515; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; min-width: 200px; padding: 6px;
  display: none; box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.tb-dropdown.open { display: block; }
.tb-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; font-size: 13px; font-weight: 500;
  color: var(--text-tertiary); transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover:hover) and (pointer:fine){.tb-dd-item:hover{ background: rgba(255,255,255,0.05); color: var(--text-secondary); }}

/* Main content area */
.app-main {
  margin-left: 240px; padding-top: 56px; min-height: 100vh;
  transition: margin-left 0.2s ease;
}
.app-main.sb-collapsed { margin-left: 0; }

/* Override section widths in app layout */
.app-main section { max-width: 100%; }

/* ═══════ Mobile ═══════ */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-logo img { height: 24px; }
  .nav-logo-text { font-size: 28px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; }
  section { padding: 60px 24px; }
  .section-title { font-size: 32px; }
  .page-title { font-size: 40px; }
  .card-grid { grid-template-columns: 1fr; }
  footer { padding: 48px 24px 32px; }
  .footer-logo img { height: 24px; }
  .footer-logo-text { font-size: 28px; }
  .footer-links { flex-direction: column; align-items: center; gap: 16px; }
  .section-subtitle { font-size: 16px; }

  /* App shell mobile */
  .app-sidebar { width: 0; transform: translateX(-240px); }
  .app-sidebar:not(.collapsed) { width: 240px; transform: translateX(0); }
  .app-topbar { left: 0 !important; }
  .app-main { margin-left: 0 !important; }
}
