/* ============================================================
   appstorrent2 — точная копия app-torrent.com
   Топбар + сайдбар + карточки приложений
   ============================================================ */

:root {
  --bg:          #1c1c1c;
  --topbar-bg:   #222222;
  --sidebar-bg:  #1e1e1e;
  --card-bg:     #2d2d2d;
  --card-hover:  #363636;
  --border:      rgba(255,255,255,0.07);
  --text:        #ffffff;
  --text-soft:   #aaaaaa;
  --text-muted:  #666666;
  --accent:      #4B8EF8;
  --accent-h:    #6AA3FF;
  --sidebar-w:   260px;
  --topbar-h:    52px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --disp: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input { font: inherit; color: var(--text); border: none; outline: none; background: none; width: 100%; }
ul { list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 9999; font-weight: 700; }
.skip:focus { left: 0; }

/* ════════════════════════════════════
   TOPBAR
════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  z-index: 200;
}

.tb-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.tb-brand img { width: 26px; height: 26px; flex-shrink: 0; }

.tb-search {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  transition: border-color .15s, background .15s;
}
.tb-search:focus-within {
  border-color: rgba(75,142,248,.5);
  background: rgba(75,142,248,.06);
}
.tb-search svg { color: var(--text-muted); flex-shrink: 0; width: 15px; height: 15px; }
.tb-search input { font-size: 13px; }
.tb-search input::placeholder { color: var(--text-muted); }

.tb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.tb-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s;
}
.tb-lang:hover { border-color: rgba(75,142,248,.4); }
.tb-lang svg { width: 16px; height: 11px; border-radius: 2px; }
.tb-lang-arrow { font-size: 9px; opacity: .65; margin-left: 1px; }

/* ════════════════════════════════════
   SIDEBAR
════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }

.sb-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 18px 16px;
  flex-shrink: 0;
}
.sb-brand-icon {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sb-brand-icon svg { width: 22px; height: 22px; }
.sb-brand-name {
  font-family: var(--disp);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

.sb-nav {
  padding: 4px 10px 20px;
  flex: 1;
}
.sn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: background .15s, color .15s;
  cursor: pointer;
  margin-bottom: 2px;
}
.sn:hover { background: rgba(255,255,255,.05); color: var(--text); }
.sn.active {
  background: rgba(75,142,248,.15);
  color: var(--accent);
  font-weight: 600;
}
.sn svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .75; }
.sn.active svg { opacity: 1; }

/* ════════════════════════════════════
   MAIN
════════════════════════════════════ */
.main {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  min-height: calc(100vh - var(--topbar-h));
  padding: 24px 24px 0;
}

/* ════════════════════════════════════
   SECTION HEADER
════════════════════════════════════ */
.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 0;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--disp);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.section-title svg { width: 18px; height: 18px; color: var(--text-soft); flex-shrink: 0; }

.see-all {
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 7px;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}
.see-all:hover { background: var(--accent-h); }

/* ════════════════════════════════════
   APP CARD GRID
════════════════════════════════════ */
.cat-section { margin-bottom: 32px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1200px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px)  { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }

.app-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  transition: background .15s, transform .15s;
  position: relative;
  overflow: hidden;
}
.app-card:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}

.app-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
  background: #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-card-icon span {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1;
  display: block;
}
.app-card-info { width: 100%; }
.app-card-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}
.app-card-ver {
  font-size: 11.5px;
  color: var(--text-soft);
  text-align: left;
}

/* ════════════════════════════════════
   OS VERSIONS GRID
════════════════════════════════════ */
.os-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1200px) { .os-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px)  { .os-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .os-grid { grid-template-columns: repeat(2, 1fr); } }

.os-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.os-card:hover { background: var(--card-hover); transform: translateY(-2px); }

.os-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.os-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.os-card-icon span {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1;
}
.os-card-info { width: 100%; text-align: center; }
.os-card-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.os-card-ver {
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.4;
}

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 36px 40px;
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(75,142,248,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-family: var(--disp);
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero-accent { color: var(--accent); }
.hero-sub {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 20px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tag {
  background: rgba(75,142,248,.12);
  border: 1px solid rgba(75,142,248,.22);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  white-space: nowrap;
}
.hero-icons {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  grid-template-rows: repeat(2, 52px);
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.hi {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.hi:hover { transform: scale(1.06); }
.hi-1 { grid-column: 1; grid-row: 1; }
.hi-2 { grid-column: 2; grid-row: 1; }
.hi-3 { grid-column: 3; grid-row: 1; }
.hi-4 { grid-column: 1; grid-row: 2; }
.hi-5 { grid-column: 2; grid-row: 2; }
.hi-6 { grid-column: 3; grid-row: 2; }
@media (max-width: 680px) {
  .hero { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .hero-title { font-size: 22px; }
  .hero-icons { grid-template-columns: repeat(6, 44px); grid-template-rows: 44px; }
  .hi { width: 44px; height: 44px; }
  .hi-1,.hi-2,.hi-3,.hi-4,.hi-5,.hi-6 { grid-row: 1; }
  .hi-1 { grid-column:1; } .hi-2 { grid-column:2; } .hi-3 { grid-column:3; }
  .hi-4 { grid-column:4; } .hi-5 { grid-column:5; } .hi-6 { grid-column:6; }
}

/* ════════════════════════════════════
   LONGREAD
════════════════════════════════════ */
.longread-section {
  margin-bottom: 32px;
}
.longread-inner {
  position: relative;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(75,142,248,.08) 0%, transparent 60%),
    linear-gradient(180deg, #2c2c2c 0%, #262626 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 48px;
  overflow: hidden;
}
.longread-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(75,142,248,.55) 50%, transparent 100%);
  pointer-events: none;
}

/* ── Header ── */
.lr-header {
  margin-bottom: 36px;
}
.lr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(75,142,248,.1);
  border: 1px solid rgba(75,142,248,.22);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.lr-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(75,142,248,.7);
}
.lr-title {
  font-family: var(--disp);
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: 18px;
}
.lr-lead {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.78;
  margin: 0;
  max-width: 820px;
}

/* ── Stats ── */
.lr-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 44px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lr-stat {
  position: relative;
  background: linear-gradient(180deg, rgba(75,142,248,.08) 0%, rgba(75,142,248,.02) 100%);
  border: 1px solid rgba(75,142,248,.18);
  border-radius: 12px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .2s, border-color .2s, background .2s;
  overflow: hidden;
}
.lr-stat::after {
  content: '';
  position: absolute;
  top: -35px;
  right: -35px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(75,142,248,.16) 0%, transparent 70%);
  pointer-events: none;
}
.lr-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(75,142,248,.36);
  background: linear-gradient(180deg, rgba(75,142,248,.13) 0%, rgba(75,142,248,.04) 100%);
}
.lr-stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(75,142,248,.18);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.lr-stat-icon svg { width: 15px; height: 15px; }
.lr-stat-num {
  font-family: var(--disp);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  background: linear-gradient(180deg, #8FBBFF 0%, #4B8EF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.lr-stat-label {
  font-size: 11.5px;
  color: var(--text-soft);
  line-height: 1.4;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* ── Block (H2 numbered chapter) ── */
.lr-block {
  position: relative;
  padding-top: 36px;
  margin-top: 36px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.lr-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.lr-block-side {
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
}
.lr-block-body { min-width: 0; }
.lr-block-num {
  display: inline-block;
  font-family: var(--disp);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 5px 11px;
  background: rgba(75,142,248,.1);
  border: 1px solid rgba(75,142,248,.22);
  border-radius: 6px;
}
.lr-h2 {
  font-family: var(--disp);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.025em;
  line-height: 1.22;
  margin-bottom: 0;
}
.lr-h3 {
  font-family: var(--disp);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  margin-top: 26px;
  margin-bottom: 10px;
  padding-left: 14px;
  position: relative;
}
.lr-h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(75,142,248,.3) 100%);
}

.longread-inner p {
  font-size: 13.8px;
  color: var(--text-soft);
  line-height: 1.78;
  margin-bottom: 12px;
}
.longread-inner p strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Lists ── */
.lr-list {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lr-list li {
  position: relative;
  padding-left: 28px;
  font-size: 13.8px;
  color: var(--text-soft);
  line-height: 1.7;
}
.lr-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  background: rgba(75,142,248,.14);
  border: 1px solid rgba(75,142,248,.32);
  border-radius: 50%;
}
.lr-list li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(75,142,248,.55);
}

/* ── Highlight ── */
.lr-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(75,142,248,.12) 0%, rgba(75,142,248,.04) 100%);
  border: 1px solid rgba(75,142,248,.22);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.7;
  position: relative;
  overflow: hidden;
}
.lr-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(75,142,248,.3) 100%);
}
.lr-highlight-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: rgba(75,142,248,.18);
  border: 1px solid rgba(75,142,248,.28);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.lr-highlight-icon svg { width: 18px; height: 18px; }
.lr-highlight strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .lr-block {
    display: block;
  }
  .lr-block-side {
    position: static;
    margin-bottom: 16px;
  }
  .lr-h2 { font-size: 22px; margin-bottom: 14px; }
}
@media (max-width: 860px) {
  .longread-inner { padding: 28px 22px; }
  .lr-stats { grid-template-columns: repeat(2, 1fr); }
  .lr-title { font-size: 24px; }
  .lr-h2 { font-size: 20px; }
  .lr-header { margin-bottom: 26px; }
}
@media (max-width: 500px) {
  .longread-inner { padding: 24px 18px; }
  .lr-stats { grid-template-columns: 1fr 1fr; }
  .lr-title { font-size: 20px; }
  .lr-lead { font-size: 14px; }
  .lr-h2 { font-size: 18px; }
}

/* ════════════════════════════════════
   FAQ
════════════════════════════════════ */
.faq-section { margin-bottom: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: background .15s;
}
.faq-item[open] { background: var(--card-hover); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  gap: 12px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  transition: transform .2s;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 18px 14px;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.65;
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 12px;
}

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.footer {
  margin-left: calc(-24px);
  margin-right: calc(-24px);
  background: var(--topbar-bg);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--disp);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.footer-brand img { width: 22px; height: 22px; }
.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 13px;
  color: var(--text-soft);
  transition: color .15s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  background: var(--card-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-soft);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, background .15s;
  z-index: 50;
}
.scroll-top.visible { opacity: 1; transform: none; }
.scroll-top:hover { background: var(--card-bg); color: var(--accent); }

/* ════════════════════════════════════
   PLACEHOLDER ICON COLORS
════════════════════════════════════ */
.ph-blue   { background: linear-gradient(135deg, #1a4fc7, #2563eb); }
.ph-indigo { background: linear-gradient(135deg, #312e81, #4f46e5); }
.ph-purple { background: linear-gradient(135deg, #581c87, #7c3aed); }
.ph-rose   { background: linear-gradient(135deg, #881337, #e11d48); }
.ph-orange { background: linear-gradient(135deg, #9a3412, #ea580c); }
.ph-amber  { background: linear-gradient(135deg, #92400e, #d97706); }
.ph-green  { background: linear-gradient(135deg, #14532d, #16a34a); }
.ph-teal   { background: linear-gradient(135deg, #134e4a, #0d9488); }
.ph-cyan   { background: linear-gradient(135deg, #164e63, #0891b2); }
.ph-slate  { background: linear-gradient(135deg, #1e293b, #475569); }
.ph-ubuntu { background: linear-gradient(135deg, #7c2d12, #dd4814); }

/* ════════════════════════════════════
   RESPONSIVE / MOBILE
════════════════════════════════════ */
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .28s; }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .topbar { padding: 0 14px; }
  .tb-hamburger { display: flex; }
}
@media (min-width: 861px) {
  .tb-hamburger { display: none; }
}
.tb-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background .15s;
  flex-shrink: 0;
}
.tb-hamburger:hover { background: rgba(255,255,255,.08); }
.tb-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-soft);
  border-radius: 2px;
  transition: transform .22s, opacity .15s;
}
.tb-hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.tb-hamburger.open span:nth-child(2) { opacity: 0; }
.tb-hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.sb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
}
@media (max-width: 860px) {
  .sb-overlay.visible { display: block; }
}
