/* ============================================================================
   MOCA Docs — VegaUI v1.0.0 (MOCA Soft)
   Glassmorphism 2.0 · dark-first · Apple-style corporate.
   Tokenlar VegaUI'den BİREBİR; light + eco temaları kılavuzdaki paletten türetildi.
   ============================================================================ */

/* ─── Font ─────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Raleway';
  src: url('https://cdn.moca-dev.com/ui/Raleway/Raleway-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('https://cdn.moca-dev.com/ui/Raleway/Raleway-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* ─── Design Tokens — Dark (VegaUI varsayılanı) ─────────────────────────────── */
:root {
  --bg-primary:      #080808;
  --bg-secondary:    #111111;
  --bg-card:         rgba(16, 16, 16, 0.55);
  --bg-card-hover:   rgba(22, 22, 22, 0.70);

  --text-primary:    rgba(255, 255, 255, 0.95);
  --text-secondary:  rgba(255, 255, 255, 0.62);
  --text-tertiary:   rgba(255, 255, 255, 0.38);

  --accent:          #A4AEC7;
  --accent-light:    #3B5771;
  --accent-soft:     rgba(164, 174, 199, 0.10);

  --success:         #10b981;
  --warning:         #f59e0b;
  --danger:          #ef4444;
  --info:            #3b82f6;

  --border-subtle:   rgba(255, 255, 255, 0.06);
  --border-normal:   rgba(255, 255, 255, 0.12);
  --border-strong:   rgba(255, 255, 255, 0.26);

  --shadow-sm:       0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-md:       0 4px 20px rgba(0, 0, 0, 0.42);
  --shadow-lg:       0 8px 40px rgba(0, 0, 0, 0.55);

  --blur-card:       blur(24px) saturate(1.4);
  --blur-heavy:      blur(40px) saturate(1.6);

  --dropdown-bg:     #0f0f0f;
  --dropdown-border: rgba(255, 255, 255, 0.07);
  --option-hover:    rgba(255, 255, 255, 0.06);
  --option-active:   rgba(255, 255, 255, 0.10);

  --toggle-off:      #555555;
  --toggle-on:       var(--accent);

  --margin-safe:     24px;
  --radius-pill:     40px;
  --radius-card:     20px;
  --radius-sm:       12px;
  --radius-toast:    24px;
  --radius-tooltip:  24px;

  /* İkon rengi: dark'ta beyaz. Temalar bunu ezer. */
  --icon-filter:     brightness(0) invert(1);
  /* Kâğıt (editör sayfası) */
  --paper-bg:        #101010;
  --paper-ink:       rgba(255,255,255,0.92);

  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --spring:          cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Light Theme (kılavuz: Arctic White / Glass Frost / Accent #3B5771) ────── */
:root[data-theme="light"] {
  --bg-primary:      #f7f9fc;
  --bg-secondary:    #eef2f8;
  --bg-card:         rgba(255, 255, 255, 0.82);
  --bg-card-hover:   rgba(255, 255, 255, 0.94);

  --text-primary:    rgba(15, 23, 42, 0.95);
  --text-secondary:  rgba(15, 23, 42, 0.62);
  --text-tertiary:   rgba(15, 23, 42, 0.40);

  --accent:          #3B5771;
  --accent-light:    #A4AEC7;
  --accent-soft:     rgba(59, 87, 113, 0.10);

  --success:         #059669;
  --warning:         #d97706;
  --danger:          #dc2626;

  --border-subtle:   rgba(15, 23, 42, 0.08);
  --border-normal:   rgba(15, 23, 42, 0.14);
  --border-strong:   rgba(15, 23, 42, 0.28);

  --shadow-sm:       0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md:       0 4px 20px rgba(15, 23, 42, 0.12);
  --shadow-lg:       0 8px 40px rgba(15, 23, 42, 0.18);

  --dropdown-bg:     rgba(255, 255, 255, 0.96);
  --dropdown-border: rgba(15, 23, 42, 0.08);
  --option-hover:    rgba(15, 23, 42, 0.05);
  --option-active:   rgba(15, 23, 42, 0.09);

  --toggle-off:      #c3cbd8;

  --icon-filter:     brightness(0) saturate(100%) invert(11%) sepia(18%) saturate(1200%) hue-rotate(179deg) brightness(95%) contrast(92%);
  --paper-bg:        #ffffff;
  --paper-ink:       rgba(15, 23, 42, 0.92);
}

/* ─── Eco Theme (göz konforu — sıcak sepya, düşük mavi) ─────────────────────── */
:root[data-theme="eco"] {
  --bg-primary:      #efe6d3;
  --bg-secondary:    #e6dcc6;
  --bg-card:         rgba(255, 250, 240, 0.78);
  --bg-card-hover:   rgba(255, 252, 245, 0.92);

  --text-primary:    rgba(59, 47, 30, 0.95);
  --text-secondary:  rgba(59, 47, 30, 0.64);
  --text-tertiary:   rgba(59, 47, 30, 0.42);

  --accent:          #6b5836;
  --accent-light:    #a4906a;
  --accent-soft:     rgba(107, 88, 54, 0.10);

  --success:         #4f7a3f;
  --warning:         #b4761f;
  --danger:          #b3452f;

  --border-subtle:   rgba(59, 47, 30, 0.09);
  --border-normal:   rgba(59, 47, 30, 0.16);
  --border-strong:   rgba(59, 47, 30, 0.30);

  --shadow-sm:       0 2px 8px rgba(59, 47, 30, 0.08);
  --shadow-md:       0 4px 20px rgba(59, 47, 30, 0.12);
  --shadow-lg:       0 8px 40px rgba(59, 47, 30, 0.18);

  --dropdown-bg:     rgba(252, 247, 236, 0.97);
  --dropdown-border: rgba(59, 47, 30, 0.10);
  --option-hover:    rgba(59, 47, 30, 0.05);
  --option-active:   rgba(59, 47, 30, 0.09);

  --toggle-off:      #c9bda3;

  --icon-filter:     brightness(0) saturate(100%) invert(19%) sepia(18%) saturate(900%) hue-rotate(3deg) brightness(94%) contrast(88%);
  --paper-bg:        #fbf6ea;
  --paper-ink:       rgba(59, 47, 30, 0.92);
}

/* ─── Reset / Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

img { -webkit-user-drag: none; user-select: none; }
.ui-ic { filter: var(--icon-filter); pointer-events: none; user-select: none; -webkit-user-drag: none; display: block; }

/* Noise overlay — VegaUI dokusu */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
:root[data-theme="light"] .noise-overlay,
:root[data-theme="eco"]   .noise-overlay { opacity: 0.030; }

/* ════════════════════════════════════════════════════════════════════════════
   ÜST YÜZEN ADA (floating island)
   Düzen (sol→sağ): [MOCA Docs logosu] [sekmeler][+] ··· [ara][ızgara][profil]
   Arama açıkken: logo/sekmeler/+ GİZLENİR, yerinde arama barı açılır.
   ════════════════════════════════════════════════════════════════════════════ */
.island {
  position: fixed; top: 14px; left: var(--margin-safe); right: var(--margin-safe);
  z-index: 100;
  display: flex; align-items: center; gap: 10px;
  height: 60px; padding: 0 10px 0 14px;
  background: var(--bg-card);
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}
.island::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  pointer-events: none;
}

/* — Marka (en sol) — */
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; user-select: none; cursor: pointer; background: none; border: none; padding: 0; }
.brand img { width: 26px; height: 26px; display: block; }          /* app ikonu: filtre YOK */
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); white-space: nowrap; }

/* — Sekmeler — */
.tabs { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

.tab {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  max-width: 190px; height: 38px; padding: 0 8px 0 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 13px; font-family: inherit; cursor: pointer; user-select: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
:root[data-theme="light"] .tab, :root[data-theme="eco"] .tab { background: rgba(15, 23, 42, 0.03); }
.tab:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-normal); color: var(--text-primary); }
:root[data-theme="light"] .tab:hover, :root[data-theme="eco"] .tab:hover { background: rgba(15, 23, 42, 0.06); }
.tab:active { transform: scale(0.97); }
.tab.active { background: var(--accent-soft); border-color: rgba(164, 174, 199, 0.28); color: var(--text-primary); font-weight: 600; }
.tab-ic { width: 16px; height: 16px; flex-shrink: 0; display: block; }   /* belge ikonu: filtre YOK (temaya göre doc/doc-d) */
.tab-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.tab-close {
  width: 20px; height: 20px; flex-shrink: 0; border: none; background: transparent;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity 0.15s var(--ease), background 0.15s var(--ease);
}
.tab:hover .tab-close, .tab.active .tab-close { opacity: 0.7; }
.tab-close:hover { background: rgba(255, 255, 255, 0.12); opacity: 1; }
.tab-close img { width: 10px; height: 10px; filter: var(--icon-filter); }

/* — Ada içi ikon butonu (VegaUI .btn-icon, ada ölçeğinde 38px) — */
.i-btn {
  width: 38px; height: 38px; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px);
  border: 1px solid var(--border-normal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
:root[data-theme="light"] .i-btn, :root[data-theme="eco"] .i-btn { background: rgba(15, 23, 42, 0.035); }
.i-btn img { width: 18px; height: 18px; filter: var(--icon-filter); }
.i-btn:hover { background: rgba(255, 255, 255, 0.10); border-color: var(--border-strong); }
:root[data-theme="light"] .i-btn:hover, :root[data-theme="eco"] .i-btn:hover { background: rgba(15, 23, 42, 0.07); }
.i-btn:active { transform: scale(0.95); }
.i-btn.on { background: var(--accent-soft); border-color: rgba(164, 174, 199, 0.34); }

.island-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }

/* — Arama (açılınca soldaki materyaller kaybolur) — */
.search-wrap { display: none; flex: 1; min-width: 0; position: relative; align-items: center; }
.island.searching .brand,
.island.searching .tabs,
.island.searching .new-btn { display: none; }
.island.searching .search-wrap { display: flex; }

.search-input {
  width: 100%; height: 40px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-normal); color: var(--text-primary);
  padding: 0 16px 0 44px; border-radius: var(--radius-pill);
  font-size: 14px; font-family: inherit; outline: none;
  backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
:root[data-theme="light"] .search-input, :root[data-theme="eco"] .search-input { background: rgba(15, 23, 42, 0.04); }
.search-input::placeholder { color: var(--text-tertiary); }
.search-input:hover { border-color: var(--border-strong); }
.search-input:focus { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.28); }
:root[data-theme="light"] .search-input:focus, :root[data-theme="eco"] .search-input:focus { background: rgba(15, 23, 42, 0.06); border-color: var(--border-strong); }
.search-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-ic img { width: 18px; height: 18px; filter: var(--icon-filter); opacity: 0.5; }

/* — Avatar — */
.avatar-btn {
  width: 38px; height: 38px; flex-shrink: 0; padding: 0;
  border: 1px solid var(--border-normal); border-radius: 50%;
  background: var(--accent-soft); cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.avatar-btn:hover { border-color: var(--border-strong); }
.avatar-btn:active { transform: scale(0.95); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-ini { font-size: 13px; font-weight: 700; color: var(--text-primary); user-select: none; }

/* ════════════════════════════════════════════════════════════════════════════
   POPOVER (profil + servis ızgarası) — VegaUI dropdown dili
   ════════════════════════════════════════════════════════════════════════════ */
.pop {
  position: fixed; z-index: 3000;
  min-width: 260px; padding: 8px;
  background: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px) saturate(1.55); -webkit-backdrop-filter: blur(22px) saturate(1.55);
  opacity: 0; transform: translateY(-8px) scale(0.97); pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.22s var(--spring);
}
.pop.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.pop-user { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; }
.pop-av { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-normal); }
.pop-av img { width: 100%; height: 100%; object-fit: cover; }
.pop-name { font-size: 14px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-mail { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-sep { height: 1px; background: var(--border-subtle); margin: 4px 8px; }
.pop-label { font-size: 0.72rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; padding: 8px 12px 6px; user-select: none; }

.pop-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: none; background: transparent;
  border-radius: 14px; color: var(--text-secondary);
  font-size: 13.5px; font-family: inherit; cursor: pointer; text-align: left;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.pop-item:hover { background: var(--option-hover); color: var(--text-primary); }
.pop-item img { width: 17px; height: 17px; filter: var(--icon-filter); opacity: 0.75; }

/* Tema seçici — segmented (3 tema) */
.theme-seg { display: flex; gap: 4px; padding: 4px; margin: 2px 8px 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); }
:root[data-theme="light"] .theme-seg, :root[data-theme="eco"] .theme-seg { background: rgba(15,23,42,0.04); }
.theme-opt {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; border: none; background: transparent; border-radius: var(--radius-pill);
  color: var(--text-tertiary); font-size: 12px; font-weight: 600; font-family: inherit;
  cursor: pointer; user-select: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.theme-opt:hover { color: var(--text-secondary); }
.theme-opt.sel { background: var(--accent-soft); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.theme-opt img { width: 14px; height: 14px; filter: var(--icon-filter); opacity: 0.85; }

/* Servis ızgarası (6 noktalı kare → tüm MOCA servisleri) */
.apps-pop { min-width: 300px; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; }
.app-cell {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px; border: none; background: transparent; border-radius: 16px;
  color: var(--text-secondary); font-size: 11.5px; font-family: inherit;
  cursor: pointer; text-decoration: none; user-select: none;
  transition: background 0.15s var(--ease), transform 0.12s var(--ease), color 0.15s var(--ease);
}
.app-cell:hover { background: var(--option-hover); color: var(--text-primary); }
.app-cell:active { transform: scale(0.94); }
.app-cell img { width: 30px; height: 30px; display: block; }   /* app ikonları: filtre YOK */
.app-cell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ════════════════════════════════════════════════════════════════════════════
   GÖVDE / GÖRÜNÜMLER
   ════════════════════════════════════════════════════════════════════════════ */
.view { position: relative; z-index: 1; padding: 96px var(--margin-safe) 60px; max-width: 1400px; margin: 0 auto; }
.view[hidden] { display: none; }

.hero-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; user-select: none;
  background: linear-gradient(160deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 0.98rem; color: var(--text-secondary); margin-top: 6px; }

.sec { margin-top: 44px; animation: sectionIn 0.45s ease both; }
@keyframes sectionIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.sec-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; user-select: none; }

/* Şablon şeridi */
.tpl-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.tpl {
  background: var(--bg-card); backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-card);
  padding: 0; cursor: pointer; overflow: hidden; position: relative;
  font-family: inherit; color: var(--text-primary); text-align: left;
  transition: border-color 0.25s var(--ease), transform 0.18s var(--ease);
}
.tpl::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); pointer-events: none; }
.tpl:hover { border-color: var(--border-normal); transform: translateY(-2px); }
.tpl:active { transform: scale(0.98); }
.tpl-prev { height: 96px; background: var(--paper-bg); border-bottom: 1px solid var(--border-subtle); padding: 12px; overflow: hidden; }
.tpl-line { height: 5px; border-radius: 3px; background: var(--text-tertiary); opacity: 0.35; margin-bottom: 6px; }
.tpl-line.t { height: 8px; opacity: 0.6; width: 62%; margin-bottom: 9px; }
.tpl-line.s { width: 84%; } .tpl-line.m { width: 70%; } .tpl-line.l { width: 92%; }
.tpl-name { display: block; padding: 11px 13px; font-size: 12.5px; font-weight: 600; }

/* Belge kartları (son belgeler) */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.doc-card {
  display: flex; align-items: center; gap: 11px;
  background: var(--bg-card); backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-card);
  padding: 14px; cursor: pointer; position: relative; overflow: hidden;
  font-family: inherit; color: var(--text-primary); text-align: left;
  transition: border-color 0.25s var(--ease), transform 0.18s var(--ease), background 0.25s var(--ease);
}
.doc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); pointer-events: none; }
.doc-card:hover { border-color: var(--border-normal); background: var(--bg-card-hover); transform: translateY(-2px); }
.doc-card:active { transform: scale(0.98); }
.doc-card img { width: 26px; height: 26px; flex-shrink: 0; display: block; }
.doc-meta { min-width: 0; flex: 1; }
.doc-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-date { font-size: 11.5px; color: var(--text-tertiary); }

.empty { padding: 44px 20px; text-align: center; color: var(--text-tertiary); font-size: 14px; }

/* VegaUI butonlar */
.btn-primary {
  background: var(--text-primary); color: var(--bg-primary); border: none;
  padding: 11px 22px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  white-space: nowrap; user-select: none; position: relative; overflow: hidden;
  transition: all 0.25s var(--ease);
}
.btn-primary::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent);
  border-radius: var(--radius-pill) var(--radius-pill) 0 0; pointer-events: none; }
.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.96); }

.btn-secondary {
  background: rgba(255,255,255,0.05); backdrop-filter: blur(12px);
  color: var(--text-primary); border: 1px solid var(--border-normal);
  padding: 11px 22px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
  white-space: nowrap; user-select: none; transition: all 0.25s var(--ease);
}
:root[data-theme="light"] .btn-secondary, :root[data-theme="eco"] .btn-secondary { background: rgba(15,23,42,0.04); }
.btn-secondary:hover { border-color: var(--border-strong); }
.btn-secondary:active { transform: scale(0.96); }

/* Toast */
.toast-wrap { position: fixed; top: 84px; right: var(--margin-safe); z-index: 4000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 240px; max-width: 380px; padding: 13px 16px;
  background: var(--bg-card); backdrop-filter: var(--blur-heavy); -webkit-backdrop-filter: var(--blur-heavy);
  border: 1px solid var(--border-normal); border-radius: var(--radius-toast);
  box-shadow: var(--shadow-lg); color: var(--text-primary); font-size: 13.5px;
  animation: toastIn 0.35s var(--spring) both;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(24px) scale(0.96); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 720px) {
  .brand-name { display: none; }
  .island { left: 10px; right: 10px; padding: 0 8px 0 10px; gap: 6px; }
  .view { padding-left: 14px; padding-right: 14px; }
}
