/* ═══════════════════════════════════════
   TradesMind MVP — Style
   ═══════════════════════════════════════ */

:root {
  --bg: #0b1929;
  --bg-deep: #060f1a;
  --bg-page: #0e1a22;
  --teal: #02C39A;
  --teal-dark: #1D9E75;
  --teal-light: #5DCAA5;
  --text: #c8daea;
  --text-dim: #4a6070;
  --text-muted: #2a3e50;
  --border: #1a2e40;
  --red: #e24b4a;
  --orange: #EF9F27;
  --purple: #AFA9EC;
  --card: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.06);
}

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

body {
  background: var(--bg-page);
  font-family: 'DM Sans', -apple-system, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

/* Phone Frame */
.phone-frame {
  width: 100%;
  max-width: 428px;
  height: 100vh;
  max-height: 926px;
  background: var(--bg);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

@media (min-width: 500px) {
  .phone-frame {
    border-radius: 44px;
    border: 5px solid var(--border);
    height: 90vh;
    box-shadow: 0 28px 70px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.03);
  }
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 4px;
  flex-shrink: 0;
  z-index: 10;
}
.sb-time { font-size: 14px; font-weight: 700; color: #fff; }
.sb-right { display: flex; align-items: center; gap: 8px; }
.rec-indicator { display: flex; align-items: center; gap: 5px; }
.rec-indicator.hidden { display: none; }
.rec-indicator-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1s ease-in-out infinite; }
.rec-indicator span { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--red); font-weight: 700; }

.notch {
  width: 72px; height: 5px;
  background: var(--bg-deep);
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
  flex-shrink: 0;
}

/* Screen Container */
.screen-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(20px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Bottom Nav */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0 max(12px, env(safe-area-inset-bottom));
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 10;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 20px;
  border-radius: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}
.nav-item.active { color: var(--teal); background: rgba(2,195,154,.1); }
.nav-item span { font-size: 10px; font-weight: 600; letter-spacing: 0.2px; }

/* ═══ HOME ═══ */
.home-top {
  padding: 16px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.record-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.tap-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.record-btn-outer {
  position: relative;
  width: 120px; height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ring {
  position: absolute;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.r3 { width: 120px; height: 120px; border: 1px solid rgba(2,195,154,.07); }
.r2 { width: 96px; height: 96px; border: 1px solid rgba(2,195,154,.13); }
.r1 { width: 76px; height: 76px; border: 1.5px solid rgba(2,195,154,.22); }
.record-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 8px 28px rgba(2,195,154,.38);
  transition: transform 0.15s ease;
}
.record-btn-outer:active .record-btn { transform: scale(0.92); }
.record-btn-outer:hover .r1 { transform: scale(1.08); }
.record-btn-outer:hover .r2 { transform: scale(1.04); }

.home-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
  margin-top: 20px;
}
.home-sub span { color: var(--teal-light); font-weight: 500; }

.recent-section {
  padding: 16px 20px 8px;
  border-top: 1px solid rgba(255,255,255,.04);
  flex-shrink: 0;
}
.recent-title {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.recent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.recent-row:last-child { border: none; }
.recent-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.recent-text { flex: 1; font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-time { font-size: 10px; color: var(--text-muted); font-family: 'Space Mono', monospace; }

/* ═══ RECORDING ═══ */
.rec-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
}
.rec-chip {
  background: rgba(226,75,74,.12);
  border: 1px solid rgba(226,75,74,.28);
  border-radius: 24px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.rec-dot-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1s ease-in-out infinite;
}
.rec-chip-txt {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 1.5px;
}
.rec-btn-wrap {
  position: relative;
  width: 130px; height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pulse-ring { position: absolute; border-radius: 50%; }
.rpa { width: 130px; height: 130px; border: 1px solid rgba(2,195,154,.08); animation: pulseRing 2s ease-in-out infinite; }
.rpb { width: 104px; height: 104px; border: 1.5px solid rgba(2,195,154,.16); animation: pulseRing 2s ease-in-out infinite 0.3s; }
.rpc { width: 82px; height: 82px; border: 2px solid rgba(2,195,154,.28); animation: pulseRing 2s ease-in-out infinite 0.6s; }
.rec-inner-btn {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 10px 32px rgba(2,195,154,.42);
}

.waveform {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 32px;
  margin-bottom: 18px;
}
.wave-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--teal);
  opacity: 0.9;
  transition: height 0.15s ease;
}

.transcript-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 16px;
  width: 100%;
  margin-bottom: 18px;
}
.transcript-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.transcript-text {
  font-size: 11px;
  color: #8899aa;
  line-height: 1.7;
}
.transcript-text em { color: var(--text); font-style: normal; font-weight: 500; }

.stop-row { display: flex; gap: 8px; width: 100%; }
.stop-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--red), #c0392b);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
}
.stop-btn:active { transform: scale(0.97); }
.pause-btn {
  width: 48px;
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.07);
  cursor: pointer;
}

/* ═══ ANALYSING ═══ */
.proc-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 20px;
}
.proc-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.proc-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.audio-snippet {
  background: rgba(2,195,154,.04);
  border-left: 2px solid rgba(2,195,154,.3);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  margin-bottom: 20px;
}
.audio-quote { font-size: 11px; color: var(--text-dim); line-height: 1.65; font-style: italic; }

.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.3s ease;
}
.s-done { background: var(--teal); }
.s-active { background: transparent; border: 2px solid var(--teal); }
.s-wait { background: transparent; border: 2px solid var(--border); }
.step-content { flex: 1; }
.step-title { font-size: 13px; font-weight: 600; color: var(--text-muted); transition: color 0.3s; }
.step.done .step-title { color: var(--teal); }
.step.active .step-title { color: #fff; }
.step-detail { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.spinner {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 1.1s ease-in-out infinite;
}

.progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 24px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
}

/* ═══ EMAIL ═══ */
.email-header {
  padding: 14px 18px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.back-btn {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--teal-light); font-weight: 600;
}
.email-title {
  flex: 1; text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 700; color: #fff;
}
.edit-btn {
  font-size: 12px; color: var(--teal-light); font-weight: 600;
  background: none; border: none; cursor: pointer;
}

.ai-pill {
  margin: 10px 18px 8px;
  background: rgba(127,119,221,.1);
  border: 1px solid rgba(127,119,221,.2);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); flex-shrink: 0; }
.ai-pill-text { font-size: 10px; color: var(--purple); line-height: 1.5; }
.ai-pill-text strong { color: var(--text); display: block; margin-bottom: 2px; }

.email-meta { margin: 0 18px 8px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.meta-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  padding: 8px 12px;
}
.meta-label {
  font-size: 9px; color: var(--text-muted); font-weight: 600;
  letter-spacing: .5px; min-width: 36px; text-transform: uppercase;
}
.meta-value { flex: 1; font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-value.teal { color: var(--teal); }
.meta-input {
  flex: 1; font-size: 12px; color: var(--text);
  background: none; border: none; outline: none;
  font-family: inherit; padding: 0;
}
.meta-input.teal { color: var(--teal); }
.meta-input::placeholder { color: var(--text-muted); }
.meta-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(2,195,154,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; color: var(--teal);
  flex-shrink: 0;
}

.email-divider { height: 1px; background: var(--border); margin: 4px 18px; flex-shrink: 0; }

.tone-row {
  display: flex; gap: 6px; margin: 0 18px 8px; flex-shrink: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.tone-row::-webkit-scrollbar { display: none; }
.tone-pill {
  font-size: 10px; font-weight: 600;
  padding: 6px 14px; border-radius: 24px;
  white-space: nowrap; flex-shrink: 0;
  cursor: pointer; border: none; transition: all 0.2s;
}
.tone-pill.active { background: var(--teal); color: #0D1F2D; }
.tone-pill:not(.active) { background: rgba(255,255,255,.05); color: var(--text-muted); border: 1px solid var(--border); }

.email-body {
  flex: 1; overflow-y: auto;
  margin: 0 18px 10px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  padding: 14px 16px;
  font-size: 11px;
  color: var(--text);
  line-height: 1.8;
  outline: none;
  min-height: 180px;
  -webkit-user-modify: read-write-plaintext-only;
  cursor: text;
  transition: border-color 0.2s;
}
.email-body:focus {
  border-color: rgba(2,195,154,.4);
}
.email-body::after {
  content: 'Tap to edit';
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 8px;
  letter-spacing: 0.5px;
}
.email-body:focus::after {
  content: 'Editing';
  color: var(--teal);
}
.email-greeting { color: #fff; font-weight: 600; display: block; margin-bottom: 6px; }
.email-intro { color: var(--text-dim); display: block; margin-bottom: 10px; }
.email-section-title {
  color: var(--teal); font-size: 10px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  display: block; margin-bottom: 4px;
}
.email-bullet { display: flex; gap: 8px; margin-bottom: 4px; }
.bullet-dot { color: var(--teal); flex-shrink: 0; font-size: 12px; }
.highlight { background: rgba(2,195,154,.12); color: var(--teal); border-radius: 4px; padding: 0 4px; }
.email-signoff { color: var(--text-dim); display: block; margin-top: 10px; }
.email-name { color: var(--text); font-weight: 600; display: block; margin-top: 3px; }

.email-actions { padding: 0 18px 6px; flex-shrink: 0; }
.ea-top { display: flex; gap: 8px; margin-bottom: 6px; }
.ea-bottom { display: flex; gap: 8px; }
.btn-send {
  flex: 2;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
}
.btn-send:active { transform: scale(0.97); }
.btn-send span { font-size: 13px; font-weight: 700; color: #0D1F2D; }
.btn-secondary {
  flex: 1;
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,.07);
  cursor: pointer;
}
.btn-small {
  flex: 1;
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
}
.btn-small.accent { color: var(--teal-light); border-color: rgba(2,195,154,.18); }

/* ═══ SENT ═══ */
.sent-screen {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 24px 20px;
}
.sent-tick {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 8px 26px rgba(2,195,154,.38);
  animation: popIn 0.4s ease;
}
.sent-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 4px;
}
.sent-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }

.sent-card {
  width: 100%;
  background: var(--card);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sent-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(2,195,154,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sent-card-title { font-size: 12px; color: #fff; font-weight: 500; }
.sent-card-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.notices-box {
  width: 100%;
  background: rgba(2,195,154,.04);
  border: 1px solid rgba(2,195,154,.14);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.notices-header {
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(2,195,154,.1);
}
.notices-header span { font-size: 11px; color: var(--teal-light); font-weight: 600; }
.notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.notice:last-child { border: none; }
.notice-badge {
  font-family: 'Space Mono', monospace;
  font-size: 8px; font-weight: 700; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 5px;
  flex-shrink: 0; margin-top: 2px;
}
.nb-invoice { background: rgba(2,195,154,.15); color: var(--teal); }
.nb-call { background: rgba(239,159,39,.15); color: var(--orange); }
.nb-diary { background: rgba(26,82,118,.2); color: #85C1E9; }
.notice-text { font-size: 11px; color: #8899aa; line-height: 1.5; flex: 1; }
.notice-tap { font-size: 10px; color: var(--teal-light); font-weight: 600; flex-shrink: 0; align-self: center; cursor: pointer; }

.coming-soon { font-size: 10px; color: var(--border); text-align: center; margin-bottom: 12px; font-style: italic; }
.home-btn {
  width: 100%;
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--teal-light);
  font-weight: 500;
  border: 1px solid rgba(2,195,154,.18);
  cursor: pointer;
  transition: transform 0.15s;
}
.home-btn:active { transform: scale(0.97); }

/* ═══ HISTORY ═══ */
.hist-header { padding: 18px 20px 12px; flex-shrink: 0; }
.hist-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px;
}
.hist-filters { display: flex; gap: 6px; overflow-x: auto; }
.hist-filters::-webkit-scrollbar { display: none; }
.filter-pill {
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700;
  padding: 6px 14px; border-radius: 24px;
  white-space: nowrap; flex-shrink: 0;
  cursor: pointer; border: none; letter-spacing: .3px;
  transition: all 0.2s;
}
.filter-pill.active { background: var(--teal); color: #0D1F2D; }
.filter-pill:not(.active) { background: rgba(255,255,255,.05); color: var(--text-muted); border: 1px solid var(--border); }

.hist-list { flex: 1; overflow-y: auto; padding: 6px 20px 0; }
.hist-item {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--card-border);
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.15s;
}
.hist-item:active { transform: scale(0.98); }
.hist-item-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.hist-item-title { font-size: 13px; font-weight: 600; color: #fff; flex: 1; padding-right: 10px; line-height: 1.4; }
.hist-item-time { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--text-muted); flex-shrink: 0; }
.hist-item-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hist-badge {
  font-family: 'Space Mono', monospace;
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 5px; letter-spacing: .3px;
}
.hb-sent { background: rgba(2,195,154,.12); color: var(--teal); }
.hb-type { background: rgba(255,255,255,.07); color: var(--text-dim); }
.hb-dur { background: rgba(255,255,255,.05); color: var(--text-muted); }
.hist-item-preview { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-top: 6px; }

/* ═══ PROFILE ═══ */
.profile-header { padding: 20px 20px 12px; flex-shrink: 0; }
.profile-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(2,195,154,.2), rgba(29,158,117,.08));
  border: 2px solid rgba(2,195,154,.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--teal);
}
.profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 3px;
}
.profile-trade { font-size: 12px; color: var(--teal-light); font-weight: 500; }

.profile-stats { display: flex; gap: 8px; }
.stat-box {
  flex: 1;
  background: var(--card);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid var(--card-border);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700; color: var(--teal);
  display: block;
}
.stat-label { font-size: 10px; color: var(--text-muted); font-weight: 500; }

.profile-form { flex: 1; overflow-y: auto; padding: 0 20px 20px; }
.form-section-title {
  font-family: 'Space Mono', monospace;
  font-size: 9px; color: var(--text-muted); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 10px;
}
.form-group { margin-bottom: 10px; }
.form-label { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; display: block; font-weight: 500; }
.form-input, .form-select {
  width: 100%; padding: 10px 12px; font-size: 13px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 10px; color: #fff; font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus { border-color: rgba(2,195,154,.4); }
.form-input::placeholder { color: var(--text-muted); }
.form-select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.form-select option { background: var(--bg); color: #fff; }
.form-sub { font-size: 9px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.form-hint {
  font-size: 10px; color: var(--text-dim); line-height: 1.6;
  background: rgba(2,195,154,.04); border-left: 2px solid rgba(2,195,154,.3);
  border-radius: 0 8px 8px 0; padding: 8px 12px; margin-bottom: 10px;
}
.btn-save-profile {
  width: 100%; margin-top: 14px; padding: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 14px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; color: #0D1F2D;
  transition: transform 0.15s;
}
.btn-save-profile:active { transform: scale(0.97); }
.form-saved {
  text-align: center; font-size: 12px; color: var(--teal);
  margin-top: 8px; font-weight: 600;
}
.hidden { display: none; }

.profile-list { flex: 1; overflow-y: auto; padding: 0 20px; }
.profile-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.profile-row:last-child { border: none; }
.profile-row-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-row-icon.purple { background: rgba(175,169,236,.08); }
.profile-row-content { flex: 1; }
.profile-row-title { font-size: 13px; font-weight: 500; color: #fff; margin-bottom: 2px; }
.profile-row-title.purple { color: var(--purple); }
.profile-row-sub { font-size: 10px; color: var(--text-muted); }
.profile-row-arrow { font-size: 16px; color: var(--text-muted); }
.profile-row-chip {
  background: rgba(2,195,154,.12); border: 1px solid rgba(2,195,154,.2);
  border-radius: 8px; padding: 4px 10px;
  font-family: 'Space Mono', monospace;
  font-size: 9px; font-weight: 700; color: var(--teal);
}
.profile-row-soon { font-size: 10px; color: var(--text-muted); }

/* ═══ ANIMATIONS ═══ */
@keyframes blink { 0%,100%{ opacity:1 } 50%{ opacity:.2 } }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.25 } }
@keyframes pulseRing { 0%,100%{ transform:scale(1); opacity:1 } 50%{ transform:scale(1.06); opacity:.5 } }
@keyframes popIn { 0%{ transform:scale(0.5); opacity:0 } 100%{ transform:scale(1); opacity:1 } }
