/* FreePiServers — Raspberry Pi themed */
:root {
  --pi-red:     #c51a4a;
  --pi-red-dk:  #a01238;
  --pi-green:   #75a928;
  --bg:         #110008;
  --bg2:        #1a000f;
  --bg3:        #22001a;
  --border:     #3a1028;
  --text:       #f0e0e8;
  --muted:      #666;
  --success:    #3a7d1e;
  --warning:    #c77b00;
  --danger:     #c51a4a;
  --mono:       'Ubuntu Mono', monospace;
  --sans:       'Ubuntu', sans-serif;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.page { display: block; }
.page.hidden { display: none !important; }

a { color: var(--pi-red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.red { color: var(--pi-red); }

/* ── BUTTONS ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 9px 20px; border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 13px 28px; font-size: 16px; font-weight: 700; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary { background: var(--pi-red); color: #fff; }
.btn-primary:hover { background: var(--pi-red-dk); }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg3) !important; }
.btn-ghost:hover { background: var(--bg2); border-color: #aaa; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.1); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { filter: brightness(1.1); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }

/* ── HEADER ────────────────────────────── */
.header {
  background: var(--bg);
  border-bottom: 3px solid var(--pi-red);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 20px; font-weight: 700;
  color: var(--text); text-decoration: none;
}
.logo-link { text-decoration: none; color: var(--text); }
.logo-pi { width: 32px; height: 32px; flex-shrink: 0; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.header-nav a:hover { color: var(--pi-red); text-decoration: none; }
.header-dash { border-bottom-color: var(--pi-red); }
.dash-userbar { display: flex; align-items: center; gap: 12px; }
.dash-uname {
  font-weight: 700; font-size: 14px;
  background: var(--bg2); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 100px;
}

/* ── HERO ──────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, #1a000f 100%);
  border-bottom: 1px solid #f0d0d8;
  padding: 80px 24px;
}
.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--pi-red);
  background: #fde8ef; border: 1px solid #f5b8c8;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 20px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pi-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-text h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 700;
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 18px;
}
.hero-desc {
  color: var(--muted); font-size: 17px; line-height: 1.7;
  max-width: 480px; margin-bottom: 32px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted); }

/* Pi card */
.pi-card {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(197,26,74,0.2), 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid #333;
}
.pi-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.pi-card-label { font-size: 11px; letter-spacing: 2px; color: #888; font-weight: 700; }
.pi-led-wrap { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--pi-green); font-weight: 700; }
.pi-led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pi-green);
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 6px var(--pi-green);
}
.pi-board {
  background: #0d2137;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #1e3a5a;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}
.pi-chip {
  background: #c51a4a; color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  padding: 10px; border-radius: 4px; text-align: center;
  letter-spacing: 1px;
  grid-column: 1;
}
.pi-ram-chip {
  background: #1e3a5a; color: #7ab8f5;
  font-family: var(--mono); font-size: 10px;
  padding: 8px; border-radius: 4px; text-align: center;
  grid-column: 2;
}
.pi-ports {
  display: flex; gap: 6px;
  grid-column: 1 / -1;
}
.pi-port {
  flex: 1; padding: 6px 4px;
  border-radius: 4px;
  font-family: var(--mono); font-size: 9px;
  text-align: center; font-weight: 700; letter-spacing: 0.5px;
}
.pi-port.usb { background: #1e4a2a; color: #5dd87a; border: 1px solid #2a6a3a; }
.pi-port.eth { background: #1e3a5a; color: #7ab8f5; border: 1px solid #2a5a8a; }
.pi-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pi-stat { text-align: center; }
.pi-stat-val { font-weight: 700; font-size: 16px; color: #fff; }
.pi-stat-lbl { font-size: 10px; color: #888; margin-top: 2px; letter-spacing: 0.5px; }

/* ── SPECS ─────────────────────────────── */
.specs-section { padding: 80px 0; background: var(--bg3); }
.section-title {
  font-size: 32px; font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 40px; text-align: center;
}
.specs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.spec-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.spec-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.spec-icon { font-size: 28px; margin-bottom: 12px; }
.spec-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--pi-red); }
.spec-desc { font-size: 14px; color: var(--text); opacity: 0.75; line-height: 1.5; }

/* ── HOW IT WORKS ──────────────────────── */
.how-section { padding: 80px 0; }
.steps {
  display: flex; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 200px;
  display: flex; gap: 16px; align-items: flex-start;
}
.step-num {
  font-size: 36px; font-weight: 700;
  color: var(--pi-red); opacity: 0.3;
  line-height: 1; flex-shrink: 0;
  font-family: var(--mono);
}
.step-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step-body p { color: var(--muted); font-size: 14px; }
.step-arrow { font-size: 28px; color: var(--border); padding-top: 8px; }

/* ── CTA ───────────────────────────────── */
.cta-section { padding: 80px 0; background: var(--pi-red); color: #fff; }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
.cta-inner p { font-size: 17px; opacity: 0.85; margin-bottom: 32px; }
.cta-section .btn-primary { background: #fff; color: var(--pi-red); }
.cta-section .btn-primary:hover { background: #f5e8eb; }

/* ── FOOTER ────────────────────────────── */
.footer { background: #1a1a1a; color: #aaa; padding: 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.footer-note { opacity: 0.6; font-style: italic; }

/* ── MODAL ─────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; padding: 20px;
}
.modal {
  background: #fff; border-radius: 12px;
  padding: 40px; max-width: 440px; width: 100%;
  position: relative; box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  border-top: 4px solid var(--pi-red);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 18px;
  color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-pi-icon { text-align: center; margin-bottom: 16px; }
.modal-pi-icon svg { width: 48px; height: 48px; }
.modal h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; text-align: center; }
.modal-sub { color: var(--muted); font-size: 14px; text-align: center; margin-bottom: 24px; line-height: 1.6; }
.modal-input {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-family: var(--mono); font-size: 16px; margin-bottom: 8px;
  transition: border-color 0.15s; outline: none;
}
.modal-input:focus { border-color: var(--pi-red); }
.input-hint { font-size: 12px; color: var(--muted); margin-bottom: 16px; min-height: 18px; }
.input-hint.error { color: var(--danger); }
.input-hint.ok { color: var(--success); }
.modal-terms { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }

/* ── DASHBOARD ─────────────────────────── */
.dash-view { padding: 32px 0; }

.queue-card {
  max-width: 480px; margin: 60px auto;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  text-align: center; box-shadow: var(--shadow);
}
.queue-icon { font-size: 48px; margin-bottom: 16px; }
.queue-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.queue-card p { color: var(--muted); margin-bottom: 20px; }
.queue-pos-badge {
  display: inline-block;
  background: #fde8ef; color: var(--pi-red);
  border: 1px solid #f5b8c8;
  padding: 10px 24px; border-radius: 100px;
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
}
.queue-tip { font-size: 13px; color: var(--muted); margin-bottom: 20px !important; }

.server-header {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
  gap: 16px; margin-bottom: 24px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.server-title { display: flex; align-items: center; gap: 10px; }
.server-title h1 { font-size: 24px; font-weight: 700; }
.sdot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--muted); flex-shrink: 0;
  transition: background 0.3s;
}
.sdot.running { background: var(--success); box-shadow: 0 0 8px var(--success); }
.sdot.stopped { background: var(--danger); }
.sdot.installing { background: var(--warning); animation: pulse 1s infinite; }
.sbadge {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 2px 10px;
  border-radius: 100px; background: var(--bg3);
  color: var(--muted); border: 1px solid var(--border);
}
.sbadge.running { background: #e8f5e9; color: var(--success); border-color: #c8e6c9; }
.sbadge.stopped { background: #fde8ef; color: var(--danger); border-color: #f5b8c8; }
.sbadge.installing { background: #fff8e1; color: var(--warning); border-color: #ffe082; }
.power-btns { display: flex; gap: 8px; }

/* Info grid */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.icard {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
}
.icard-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.icard-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.ip-display {
  font-family: var(--mono); font-size: 18px; font-weight: 700;
  color: var(--pi-red); margin-bottom: 8px; word-break: break-all;
}
.res-row { display: flex; align-items: center; gap: 16px; }
.res-item { text-align: center; }
.res-val { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.res-lbl { font-size: 11px; color: var(--muted); margin-top: 4px; }
.res-sep { width: 1px; height: 40px; background: var(--border); }
.motd-row { display: flex; gap: 8px; }
.motd-row input {
  flex: 1; padding: 8px 12px;
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--mono); font-size: 13px; outline: none;
}
.motd-row input:focus { border-color: var(--pi-red); }
.world-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.upload-bar { margin-top: 10px; }
.upload-track { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.upload-fill { height: 100%; background: var(--pi-red); width: 0; transition: width 0.2s; }
#upload-label { font-size: 12px; color: var(--muted); }

/* Console */
.console-card {
  background: #1a1a2e; border-radius: var(--radius);
  overflow: hidden; border: 1px solid #333;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.console-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: #12121f;
  border-bottom: 1px solid #333;
}
.console-head .icard-label { color: #888; margin-bottom: 0; }
.conn-status { font-size: 12px; color: #555; font-family: var(--mono); }
.conn-status.connected { color: var(--pi-green); }
.console-out {
  height: 320px; overflow-y: auto;
  padding: 12px 16px;
  font-family: var(--mono); font-size: 12px; line-height: 1.8;
}
.cline { color: #ccc; }
.cline.info { color: #7ab8f5; }
.cline.warn { color: #ffd54f; }
.cline.error { color: #ef9a9a; }
.cline.dim { color: #555; }
.console-in {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: #12121f;
  border-top: 1px solid #333;
}
.cprompt { color: var(--pi-red); font-family: var(--mono); font-weight: 700; }
.console-in input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #ccc; font-family: var(--mono); font-size: 13px;
}

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #1a1a1a; color: #fff;
  border-radius: var(--radius); padding: 12px 20px;
  font-size: 14px; z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: slideUp 0.2s ease;
  max-width: 320px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

.hidden { display: none !important; }

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #12121f; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .server-header { flex-direction: column; align-items: flex-start; }
}

/* Loading spinner */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1.5rem;
}
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(197, 26, 74, 0.2);
  border-top-color: #c51a4a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  color: var(--text-muted, #888);
  font-size: 0.95rem;
}

/* ── Discord button ── */
.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #5865F2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn-discord:hover { background: #4752c4; }

/* ── Avatar ── */
.dash-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: none;
}

/* ── None card ── */
.none-card {
  max-width: 520px;
  margin: 6rem auto;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.none-icon { font-size: 3rem; margin-bottom: 1rem; }
.none-card h2 { margin: 0 0 .75rem; font-size: 1.4rem; }
.none-card p  { color: var(--text-muted, #888); margin-bottom: 2rem; }

/* ── Loading spinner ── */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1.5rem;
}
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(197,26,74,.2);
  border-top-color: #c51a4a;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--text-muted, #888); font-size: .95rem; }

/* ── Info grid: 3 cols now (no resources card) ── */
.info-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ── Server settings card ── */
.settings-list { display: flex; flex-direction: column; gap: 10px; }
.setting-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.setting-row:last-child { border-bottom: none; }
.setting-label { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; }
.setting-hint { font-size: 11px; color: var(--muted); flex: 2; }
.setting-toggle {
  appearance: none; -webkit-appearance: none;
  width: 36px; height: 20px; border-radius: 10px;
  background: var(--border); cursor: pointer;
  position: relative; transition: background .2s; flex-shrink: 0;
}
.setting-toggle::after {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; top: 2px; left: 2px; transition: left .2s;
}
.setting-toggle:checked { background: var(--pi-red); }
.setting-toggle:checked::after { left: 18px; }
.setting-select {
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 8px; font-size: 13px; cursor: pointer;
  flex-shrink: 0;
}

/* ── Server settings card ── */
.settings-list { display: flex; flex-direction: column; gap: 12px; }
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; cursor: pointer;
}
.setting-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.setting-label, .setting-name { font-size: 13px; font-weight: 600; color: var(--text); }
.setting-hint, .setting-desc  { font-size: 11px; color: var(--muted); }
.setting-select {
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 8px; font-size: 13px; cursor: pointer;
}

/* Toggle switch */
.toggle-wrap { position: relative; flex-shrink: 0; }
.toggle-cb   { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle {
  display: block; width: 40px; height: 22px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 11px; cursor: pointer;
  transition: background .2s, border-color .2s;
  position: relative;
}
.toggle::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  background: var(--muted); border-radius: 50%;
  transition: transform .2s, background .2s;
}
.toggle-cb:checked + .toggle { background: var(--pi-red); border-color: var(--pi-red); }
.toggle-cb:checked + .toggle::after { transform: translateX(18px); background: #fff; }

/* ── Compact settings card ── */
.settings-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.sc-row span { flex: 1; }
.setting-toggle {
  width: 16px; height: 16px;
  accent-color: var(--pi-red);
  cursor: pointer;
  flex-shrink: 0;
}
.setting-select-sm {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
  cursor: pointer;
}
.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  margin-top: 4px;
  align-self: flex-start;
}

/* ── Settings compact v2 ── */
.sc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
}
.sc-row-select {
  justify-content: space-between;
  cursor: default;
}
.sc-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.sc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.sc-hint {
  font-size: 11px;
  color: var(--muted);
}

/* ── Toggle switch ── */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 22px;
  transition: background 0.2s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #666;
  border-radius: 50%;
  transition: left 0.2s, background 0.2s;
}
.toggle-switch input:checked + .toggle-track {
  background: var(--pi-red);
  border-color: var(--pi-red);
}
.toggle-switch input:checked + .toggle-track::after {
  left: 21px;
  background: #fff;
}

/* toggle rows push toggle to the right */
.sc-row { justify-content: space-between; }

/* ── Delete button ── */
.btn-delete {
  border: 1px solid #5a1a1a;
  color: #ff6b6b;
  background: transparent;
  margin-left: 4px;
}
.btn-delete:hover {
  background: #3a0a0a;
  border-color: #ff6b6b;
}
.toast.info { background: #1a5a8a; }

/* ── Subtle delete button ── */
.btn-delete-subtle {
  background: rgba(255,60,60,0.12);
  border: 1px solid rgba(255,60,60,0.35);
  color: #ff6b6b;
  font-size: 13px;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
  margin-left: 10px;
}
.btn-delete-subtle:hover {
  background: rgba(255,60,60,0.28);
  border-color: #ff6b6b;
}
