/* ═══════════════════════════════════════════════════════════
   SwiftDrop — styles.css
   Architecture: CSS Custom Properties + BEM-lite naming
   Aesthetic: Minimal Cyber — precise, sharp, fast-feeling
═══════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Accent (overridable) */
  --accent:        #00f0c8;
  --accent-dim:    #00f0c820;
  --accent-glow:   0 0 24px #00f0c840;

  /* Dark theme (default) */
  --bg:            #090c10;
  --bg-2:          #0e1318;
  --bg-3:          #141b22;
  --bg-card:       #111820;
  --border:        #1e2d3a;
  --border-bright: #2a3f52;
  --text-primary:  #e8f0f7;
  --text-sec:      #7a96ab;
  --text-hint:     #445566;
  --shadow:        0 8px 40px #00000066;

  /* Typography */
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  /* Sizes */
  --sidebar-w:     240px;
  --radius-s:      8px;
  --radius-m:      14px;
  --radius-l:      22px;
  --radius-xl:     32px;

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

[data-theme="light"] {
  --bg:            #f0f4f8;
  --bg-2:          #e4ebf2;
  --bg-3:          #d8e3ed;
  --bg-card:       #ffffff;
  --border:        #c8d8e8;
  --border-bright: #a8bdd0;
  --text-primary:  #0d1a26;
  --text-sec:      #4a6477;
  --text-hint:     #99aabb;
  --shadow:        0 8px 40px #00000018;
}

/* ── 2. RESET & BASE ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100dvh;
  display: flex;
  overflow-x: hidden;
  transition: background var(--t-med), color var(--t-med);
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── 3. LAYOUT ────────────────────────────────────────── */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: background var(--t-med);
}

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100dvh;
  padding: 40px 48px 80px;
  max-width: 1100px;
}

/* ── 4. SIDEBAR ───────────────────────────────────────── */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 24px 24px;
  border-bottom: 1px solid var(--border);
}

.logo-icon {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: var(--radius-s);
  display: grid; place-items: center;
  font-size: 18px;
  color: #000;
  box-shadow: var(--accent-glow);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-m);
  color: var(--text-sec);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--t-fast);
  position: relative;
}

.nav-item:hover {
  background: var(--bg-3);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-3);
  display: grid; place-items: center;
  font-size: 18px;
  color: var(--text-sec);
  transition: all var(--t-fast);
}
.theme-toggle:hover { color: var(--accent); }

.version-tag {
  font-size: 11px;
  color: var(--text-hint);
  letter-spacing: .5px;
}

/* ── 5. PAGES ─────────────────────────────────────────── */
.page { display: none; animation: fadeIn .3s ease; }
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-header { margin-bottom: 36px; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-header p { color: var(--text-sec); font-size: 15px; }

/* ── 6. HOME / HERO ───────────────────────────────────── */
.hero-section {
  padding: 60px 0 52px;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 24px;
}
.stat:first-child { padding-left: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label { font-size: 12px; color: var(--text-hint); text-transform: uppercase; letter-spacing: .5px; }

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 52px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* Section block */
.section-block { margin-bottom: 40px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

/* Recent files list */
.recent-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-hint);
}
.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: .4;
}
.empty-state p { font-size: 14px; }

/* ── 7. BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-m);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--t-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-danger {
  background: #ff4d4d22;
  color: #ff6b6b;
  border: 1px solid #ff6b6b44;
}
.btn-danger:hover { background: #ff4d4d44; }

.btn-text {
  background: none;
  color: var(--text-sec);
  font-size: 13px;
  padding: 4px 8px;
  border-radius: var(--radius-s);
  transition: color var(--t-fast);
}
.btn-text:hover { color: var(--accent); }
.btn-text.danger:hover { color: #ff6b6b; }

.btn-wide { width: 100%; justify-content: center; }

.btn-arrow { transition: transform var(--t-fast); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ── 8. DROP ZONE ─────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-med);
  background: var(--bg-card);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-med);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--bg-3);
}

.drop-zone:hover::before,
.drop-zone.drag-over::before { opacity: 1; }

.drop-zone.drag-over .drop-icon {
  transform: translateY(-6px) scale(1.15);
  color: var(--accent);
}

.drop-zone-inner { position: relative; z-index: 1; }

.drop-icon {
  font-size: 52px;
  color: var(--text-hint);
  margin-bottom: 20px;
  display: block;
  transition: all var(--t-med);
  font-family: var(--font-display);
  font-weight: 700;
}

.drop-primary {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.drop-secondary { font-size: 13px; color: var(--text-hint); margin-bottom: 18px; }
.drop-hint { font-size: 12px; color: var(--text-hint); margin-top: 14px; }

/* ── 9. FILE QUEUE / LIST ─────────────────────────────── */
.file-queue {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 24px;
  margin-bottom: 28px;
}

.queue-count {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 6px;
}

.queue-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  transition: border-color var(--t-fast);
  animation: slideIn .2s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.file-item:hover { border-color: var(--border-bright); }

.file-type-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-s);
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--accent-dim);
}

.file-info { flex: 1; min-width: 0; }
.file-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.file-size { font-size: 12px; color: var(--text-hint); }

.file-remove {
  opacity: 0;
  color: var(--text-hint);
  font-size: 18px;
  transition: all var(--t-fast);
  padding: 4px;
}
.file-item:hover .file-remove { opacity: 1; }
.file-remove:hover { color: #ff6b6b; }

/* Download list variant */
.download-list .file-item { cursor: default; }
.download-btn {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-s);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.download-btn:hover { background: var(--accent); color: #000; }

/* ── 10. SHARE PANEL ──────────────────────────────────── */
.share-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: fadeIn .4s ease;
}

.share-panel-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
}

.share-left {
  padding: 36px 40px;
  border-right: 1px solid var(--border);
}

.share-right {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 200px;
}

.share-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #00f0c810;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.share-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.link-box {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: 20px;
}

.link-box input {
  flex: 1;
  background: var(--bg-3);
  color: var(--text-primary);
  border: none;
  padding: 12px 16px;
  font-size: 13px;
  outline: none;
  min-width: 0;
}

.copy-btn {
  background: var(--accent);
  color: #000;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--t-fast);
  flex-shrink: 0;
  cursor: pointer;
  border: none;
}
.copy-btn:hover { filter: brightness(1.1); }
.copy-btn.copied { background: #26de81; }

.share-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.meta-item { display: flex; flex-direction: column; gap: 3px; }
.meta-label { font-size: 11px; color: var(--text-hint); text-transform: uppercase; letter-spacing: .5px; }
.meta-val { font-size: 14px; font-weight: 600; }

.qr-label { font-size: 12px; color: var(--text-hint); text-align: center; }

.qr-wrapper {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-m);
  width: 150px; height: 150px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.qr-hint { font-size: 11px; color: var(--text-hint); text-align: center; }

/* ── 11. PROGRESS ─────────────────────────────────────── */
.progress-wrap { margin-bottom: 20px; }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-sec);
  margin-bottom: 8px;
}

.progress-track {
  height: 4px;
  background: var(--bg-3);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width .3s ease;
  box-shadow: var(--accent-glow);
}

/* ── 12. RECEIVE PAGE ─────────────────────────────────── */
.receive-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  max-width: 600px;
  margin-bottom: 32px;
}

.receive-input-group { margin-bottom: 24px; }
.receive-input-group label,
.code-entry-wrap label {
  display: block;
  font-size: 12px;
  color: var(--text-hint);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  font-weight: 600;
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input,
.receive-card input[type="text"],
.settings-card input[type="text"] {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast);
}

.input-row input:focus,
.receive-card input:focus,
.settings-card input:focus { border-color: var(--accent); }

.divider-or {
  text-align: center;
  color: var(--text-hint);
  font-size: 12px;
  margin: 20px 0;
  position: relative;
}
.divider-or::before, .divider-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--border);
}
.divider-or::before { left: 0; }
.divider-or::after { right: 0; }

.code-entry-wrap { margin-bottom: 24px; }

.code-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.code-char {
  width: 44px; height: 52px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  text-align: center;
  font-size: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  outline: none;
  transition: border-color var(--t-fast);
}
.code-char:focus { border-color: var(--accent); }
.code-sep { color: var(--text-hint); font-size: 20px; margin: 0 4px; }

.receive-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  max-width: 600px;
  animation: fadeIn .3s ease;
}

.receive-result-header { margin-bottom: 24px; }
.receive-result-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 8px 0 4px;
}
.receive-result-header p { font-size: 13px; color: var(--text-sec); }

/* ── 13. SHARED LIST ──────────────────────────────────── */
.search-bar-wrap {
  margin-bottom: 24px;
  max-width: 480px;
}

.search-bar-wrap input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 12px 18px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast);
}
.search-bar-wrap input:focus { border-color: var(--accent); }

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

.shared-drop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: border-color var(--t-fast);
  animation: slideIn .2s ease;
}

.shared-drop-card:hover { border-color: var(--border-bright); }

.sdc-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-m);
  background: var(--accent-dim);
  display: grid; place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.sdc-info { flex: 1; min-width: 0; }
.sdc-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sdc-meta { font-size: 12px; color: var(--text-hint); display: flex; gap: 10px; }

.sdc-expiry {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.sdc-expiry.active { background: var(--accent-dim); color: var(--accent); }
.sdc-expiry.expired { background: #ff4d4d18; color: #ff6b6b; }

.sdc-actions { display: flex; gap: 8px; }

/* Recent file item */
.recent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: border-color var(--t-fast);
}
.recent-item:hover { border-color: var(--border-bright); }
.recent-info { flex: 1; min-width: 0; }
.recent-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-meta { font-size: 11px; color: var(--text-hint); }

/* ── 14. SETTINGS ─────────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 24px;
}

.settings-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  font-size: 14px;
}
.setting-row:last-child { border-bottom: none; padding-bottom: 0; }
.setting-row.column { flex-direction: column; align-items: flex-start; }
.setting-row.column input { width: 100%; }

.settings-card select {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 6px 10px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.toggle-group {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.toggle-opt {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-sec);
  transition: all var(--t-fast);
  cursor: pointer;
}
.toggle-opt.active {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}

/* Toggle switch */
.switch {
  position: relative;
  width: 44px; height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  top: 3px; left: 3px;
  background: var(--text-hint);
  border-radius: 50%;
  transition: all var(--t-fast);
}
.switch input:checked + .slider { background: var(--accent-dim); border-color: var(--accent); }
.switch input:checked + .slider::before {
  transform: translateX(20px);
  background: var(--accent);
}

/* Color swatches */
.color-swatches { display: flex; gap: 8px; }
.swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-fast);
}
.swatch.active, .swatch:hover {
  border-color: var(--text-primary);
  transform: scale(1.15);
}

/* Phase card */
.phase-card { border-style: dashed; opacity: .75; }
.phase-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  background: #f7b73120;
  color: #f7b731;
  border: 1px solid #f7b73155;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}
.coming-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-sec);
}

/* Danger zone */
.settings-danger {
  background: var(--bg-card);
  border: 1px solid #ff6b6b44;
  border-radius: var(--radius-l);
  padding: 24px;
}
.settings-danger h3 {
  font-family: var(--font-display);
  font-size: 14px;
  color: #ff6b6b;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.danger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.danger-row strong { font-size: 14px; display: block; margin-bottom: 4px; }
.danger-row p { font-size: 13px; color: var(--text-sec); }

/* ── 15. ABOUT ────────────────────────────────────────── */
.about-hero {
  text-align: center;
  padding: 60px 0 52px;
}
.about-logo {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(var(--accent-glow));
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.about-version { font-size: 13px; color: var(--text-hint); margin-bottom: 20px; }
.about-desc { font-size: 16px; color: var(--text-sec); max-width: 480px; margin: 0 auto; line-height: 1.7; }

.roadmap { margin-bottom: 48px; }
.roadmap h2, .tech-stack h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.roadmap-phases { display: flex; flex-direction: column; gap: 0; }

.roadmap-phase {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}
.roadmap-phase::before {
  content: '';
  position: absolute;
  left: 7px; top: 16px; bottom: 0;
  width: 2px;
  background: var(--border);
}
.roadmap-phase:last-child::before { display: none; }

.phase-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.roadmap-phase.done .phase-dot { background: var(--accent); border-color: var(--accent); }
.roadmap-phase.upcoming .phase-dot { border-color: #f7b731; }
.roadmap-phase.future .phase-dot { background: var(--bg-3); }

.phase-content h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phase-status { font-size: 12px; font-family: var(--font-body); font-weight: 400; color: var(--text-hint); }
.phase-content p { font-size: 13px; color: var(--text-sec); line-height: 1.6; }

.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chips span {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--text-sec);
  transition: all var(--t-fast);
}
.tech-chips span:hover { border-color: var(--accent); color: var(--accent); }

/* ── 16. TOAST NOTIFICATIONS ──────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-m);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow);
  max-width: 300px;
  animation: toastIn .25s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.success { border-color: var(--accent); }
.toast.error   { border-color: #ff6b6b; }
.toast.info    { border-color: #7b61ff; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

/* ── 17. BOTTOM NAV (Mobile) ──────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  display: none;
  grid-template-columns: repeat(5, 1fr);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: 10px;
  color: var(--text-hint);
  cursor: pointer;
  transition: color var(--t-fast);
}

.bottom-nav-item.active { color: var(--accent); }
.bnav-icon { font-size: 20px; line-height: 1; }

/* ── 18. RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 24px 20px 90px; }
  .bottom-nav { display: grid; }

  .share-panel-inner { grid-template-columns: 1fr; }
  .share-left { border-right: none; border-bottom: 1px solid var(--border); }
  .share-right { padding: 28px; }

  .hero-title { font-size: 2.5rem; }
  .hero-stats { flex-wrap: wrap; }

  #toast-container { bottom: 90px; left: 16px; right: 16px; }
  .toast { max-width: 100%; }
}

@media (max-width: 540px) {
  .hero-section { padding: 32px 0 36px; }
  .hero-title { font-size: 2rem; letter-spacing: -1px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .receive-card { padding: 24px 20px; }
  .code-inputs { gap: 5px; }
  .code-char { width: 38px; height: 46px; font-size: 18px; }
  .share-meta { flex-wrap: wrap; gap: 14px; }
  .settings-grid { grid-template-columns: 1fr; }
  .danger-row { flex-direction: column; align-items: flex-start; }
}

/* ── 19. SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── 20. SELECTION ────────────────────────────────────── */
::selection { background: var(--accent); color: #000; }

/* ── 21. LUCIDE ICONS ─────────────────────────────────── */
.lucide {
  width: 1.2em;
  height: 1.2em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.inline-icon {
  display: inline-block;
  vertical-align: -0.15em;
  width: 1em;
  height: 1em;
}

