*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
* { -webkit-tap-highlight-color: transparent; }

button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
}

@media (forced-colors: active) {
  * { forced-color-adjust: none; }
}

:root {
  --bg:        #0a0a0a;
  --bg2:       #111114;
  --glass:     rgba(255,255,255,0.045);
  --glass2:    rgba(255,255,255,0.075);
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.13);

  --en:        #4f9eff;
  --en-dim:    rgba(79,158,255,0.15);
  --en-glow:   rgba(79,158,255,0.35);

  /* B-side color is overridden per language pair via body[data-pair] */
  --b-rgb:        255, 95, 158;
  --b-grad-from:  #ff79ae;
  --b-grad-to:    #d4205e;
  --b:            rgb(var(--b-rgb));
  --b-dim:        rgba(var(--b-rgb), 0.15);
  --b-glow:       rgba(var(--b-rgb), 0.35);
}

/* Lebanese Arabic palette — warm gold */
body[data-pair="en-ar-lb"] {
  --b-rgb:        240, 185, 69;
  --b-grad-from:  #f5c45f;
  --b-grad-to:    #c89020;

  --text:      #f2f2f7;
  --text2:     rgba(242,242,247,0.55);
  --text3:     rgba(242,242,247,0.28);
}

html { height: 100%; background: var(--bg); }

body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 100% 40% at 20% 0%, rgba(79,158,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 85% 100%, rgba(var(--b-rgb),0.06) 0%, transparent 70%),
    var(--bg);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

#app {
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── HEADER ─── */
header {
  flex-shrink: 0;
  padding: max(env(safe-area-inset-top), 12px) 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  z-index: 10;
}

/* Hide the subtitle on very narrow screens to save space */
@media (max-width: 380px) {
  .brand-sub { display: none; }
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--en) 0%, var(--b) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 4px 12px rgba(79,158,255,0.3);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
}
.brand-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
}

.hdr-actions { display: flex; gap: 6px; align-items: center; }

/* ─── PAIR DROPDOWN ─── */
.pair-select {
  position: relative;
}
.pair-btn {
  height: 32px;
  padding: 0 10px 0 12px;
  border-radius: 99px;
  border: 1px solid var(--border2);
  background: var(--glass);
  color: #f2f2f7;
  -webkit-text-fill-color: #f2f2f7;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.pair-btn:active { background: var(--glass2); }
.pair-btn-flag { font-size: 14px; line-height: 1; }
.pair-btn-chevron { font-size: 9px; opacity: 0.6; margin-left: 1px; }

.pair-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #16161e;
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 6px;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  animation: pairMenuIn 0.18s cubic-bezier(0.34,1.2,0.64,1);
}
.pair-menu.open { display: flex; }
@keyframes pairMenuIn {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.pair-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #f2f2f7;
  -webkit-text-fill-color: #f2f2f7;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}
.pair-opt:hover, .pair-opt:active { background: rgba(255,255,255,0.06); }
.pair-opt.current { background: rgba(255,255,255,0.06); }
.pair-opt-flags { font-size: 16px; line-height: 1; flex-shrink: 0; }
.pair-opt-label { flex: 1; }
.pair-opt-check { font-size: 12px; color: var(--en); opacity: 0; }
.pair-opt.current .pair-opt-check { opacity: 1; }

/* ─── KEBAB MENU ─── */
.more-select { position: relative; }
.more-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--glass);
  color: #f2f2f7;
  -webkit-text-fill-color: #f2f2f7;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.more-btn:active { background: var(--glass2); }
.more-btn svg { display: block; }

.more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #16161e;
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 6px;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 1px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  animation: pairMenuIn 0.18s cubic-bezier(0.34,1.2,0.64,1);
}
.more-menu.open { display: flex; }
.more-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: #f2f2f7;
  -webkit-text-fill-color: #f2f2f7;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.more-opt:active { background: rgba(255,255,255,0.06); }
.more-opt-ico { font-size: 14px; line-height: 1; width: 18px; text-align: center; }
.more-opt-danger { color: #ff8080; -webkit-text-fill-color: #ff8080; }
.more-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}
.hdr-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--border2);
  background: var(--glass);
  color: var(--text2);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.hdr-btn:active { background: var(--glass2); color: var(--text); }

/* ─── SCROLL AREA ─── */
.feed {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.feed::-webkit-scrollbar { display: none; }

/* ─── EMPTY STATE ─── */
.empty {
  margin: auto;
  text-align: center;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-orb {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--en-dim), var(--b-dim));
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  position: relative;
}
.empty-orb::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: orbPulse 3s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 1; }
}
.empty-title { font-size: 15px; font-weight: 600; color: var(--text2); }
.empty-hint { font-size: 12px; color: var(--text3); line-height: 1.6; }

/* ─── THINKING ─── */
.thinking {
  align-self: center;
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--border2);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  letter-spacing: 0.3px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.thinking.on { display: flex; }
.dots { display: flex; gap: 3px; }
.dots span {
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor;
  animation: dotBounce 1.3s ease-in-out infinite;
}
.dots span:nth-child(2) { animation-delay: 0.15s; }
.dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* ─── BUBBLES ─── */
.bubble {
  display: flex;
  flex-direction: column;
  max-width: 84%;
  animation: bubbleIn 0.28s cubic-bezier(0.34,1.5,0.64,1) both;
}
.bubble.en { align-self: flex-start; }
.bubble.es { align-self: flex-end; }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.bubble-who {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 5px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bubble.en .bubble-who { color: var(--en); }
.bubble.es .bubble-who { color: var(--b); }

.bubble-body {
  padding: 12px 15px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  position: relative;
}
.bubble.en .bubble-body {
  background: linear-gradient(135deg, rgba(79,158,255,0.16), rgba(79,158,255,0.06));
  border: 1px solid rgba(79,158,255,0.22);
  border-radius: 4px 18px 18px 18px;
}
.bubble.es .bubble-body {
  background: linear-gradient(135deg, rgba(var(--b-rgb),0.16), rgba(var(--b-rgb),0.06));
  border: 1px solid rgba(var(--b-rgb),0.22);
  border-radius: 18px 4px 18px 18px;
}

.bubble-tr {
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  color: var(--text2);
  line-height: 1.5;
  padding: 7px 15px 3px;
  margin: 0 4px;
}
.bubble.en .bubble-tr { border-left: 2px solid var(--border2); }
.bubble.es .bubble-tr { border-right: 2px solid var(--border2); text-align: right; }

.bubble-foot { display: flex; padding: 3px 5px 0; }
.bubble.es .bubble-foot { justify-content: flex-end; }
.replay-btn {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text3);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  padding: 2px 0;
  transition: color 0.15s;
}
.replay-btn:active { color: var(--text2); }
.replay-btn svg { width: 9px; height: 9px; fill: currentColor; }

/* ─── BOTTOM ─── */
.bottom {
  flex-shrink: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--border);
  padding: 14px 14px max(env(safe-area-inset-bottom), 24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── SPEAKER PILLS ─── */
.speakers { display: flex; gap: 8px; }
.spk {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 8px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,0.03);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.1px;
}
.spk-flag { font-size: 18px; line-height: 1; }
.spk.sel-en {
  border-color: rgba(79,158,255,0.4);
  background: rgba(79,158,255,0.1);
  color: var(--en);
}
.spk.sel-es {
  border-color: rgba(var(--b-rgb),0.4);
  background: rgba(var(--b-rgb),0.1);
  color: var(--b);
}

/* ─── WAVEFORM ─── */
.waveform {
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
  transition: height 0.25s cubic-bezier(0.34,1.2,0.64,1);
}
.waveform.on { height: 38px; }
.wave-bar {
  width: 3px;
  background: currentColor;
  border-radius: 2px;
  transition: height 0.08s ease;
  min-height: 3px;
}
.waveform.en-mode { color: var(--en); }
.waveform.es-mode { color: var(--b); }

/* ─── MIC ROW ─── */
.mic-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mic-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-wrap::before, .mic-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.mic-wrap.recording::before {
  inset: -12px;
  border: 2px solid currentColor;
  opacity: 0.3;
  animation: ring 1.4s ease-out infinite;
}
.mic-wrap.recording::after {
  inset: -26px;
  border: 1.5px solid currentColor;
  opacity: 0.15;
  animation: ring 1.4s ease-out infinite 0.4s;
}
.mic-wrap.en-mode { color: var(--en); }
.mic-wrap.es-mode { color: var(--b); }

@keyframes ring {
  0%   { transform: scale(0.85); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

.mic-btn {
  width: 82px; height: 82px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.15s cubic-bezier(0.34,1.5,0.64,1), box-shadow 0.2s;
  z-index: 1;
}
.mic-btn.en-mode {
  background: linear-gradient(150deg, #5baeff 0%, #1a6fd4 100%);
  box-shadow: 0 6px 28px var(--en-glow), 0 2px 6px rgba(0,0,0,0.4);
}
.mic-btn.es-mode {
  background: linear-gradient(150deg, var(--b-grad-from) 0%, var(--b-grad-to) 100%);
  box-shadow: 0 6px 28px var(--b-glow), 0 2px 6px rgba(0,0,0,0.4);
}
.mic-btn.recording { transform: scale(1.1); }
.mic-btn.en-mode.recording {
  box-shadow: 0 8px 36px var(--en-glow), 0 2px 6px rgba(0,0,0,0.4);
}
.mic-btn.es-mode.recording {
  box-shadow: 0 8px 36px var(--b-glow), 0 2px 6px rgba(0,0,0,0.4);
}
.mic-btn:active { transform: scale(0.96); }
.mic-btn.recording:active { transform: scale(1.1); }

.mic-ico { display: flex; align-items: center; justify-content: center; }
.mic-ico svg { width: 28px; height: 28px; fill: rgba(255,255,255,0.95); filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3)); }
.mic-ico.stop svg { width: 22px; height: 22px; }
.mic-lbl {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', sans-serif;
}

/* ─── STATUS ─── */
.status {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  letter-spacing: 0.3px;
  min-height: 14px;
  transition: color 0.2s;
}
.status.err { color: #ff5f5f; }

/* ─── INSTALL BANNER ─── */
.install-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(79,158,255,0.1);
  border-bottom: 1px solid rgba(79,158,255,0.2);
  font-size: 11px;
  color: var(--text2);
  line-height: 1.4;
}
.install-banner.show { display: flex; }
.install-banner-icon { font-size: 18px; flex-shrink: 0; }
.install-banner-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  flex-shrink: 0;
}

/* ─── MODAL ─── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.overlay.open { display: flex; }

.sheet {
  width: 100%;
  max-width: 430px;
  background: #131318;
  border: 1px solid var(--border2);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  padding: 0 20px max(env(safe-area-inset-bottom), 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: sheetUp 0.28s cubic-bezier(0.34,1.2,0.64,1);
}
@keyframes sheetUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.sheet-drag {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--border2);
  margin: 10px auto 6px;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 2px;
}
.sheet-title { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.sheet-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--glass);
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.sheet-close:active { background: var(--glass2); }

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text3);
}
.field-input {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: var(--glass);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s;
  letter-spacing: 0.2px;
}
.field-input::placeholder { color: var(--text3); }
.field-input:focus { border-color: rgba(79,158,255,0.4); }
.field-hint { font-size: 10px; color: var(--text3); padding: 0 2px; line-height: 1.5; }

.sheet-save {
  padding: 15px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #4f9eff, #1a6fd4);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79,158,255,0.35);
  transition: opacity 0.15s;
}
.sheet-save:active { opacity: 0.85; }

/* ─── INVITE CODE GATE ─── */
.gate {
  position: fixed; inset: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 50% at 20% 0%, rgba(79,158,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 85% 100%, rgba(var(--b-rgb),0.10) 0%, transparent 60%);
  z-index: 500;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
}
.gate.show { display: flex; }
.gate-logo {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--en) 0%, var(--b) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 8px 32px rgba(79,158,255,0.4);
  margin-bottom: 22px;
}
.gate-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.gate-sub {
  font-size: 13px;
  color: var(--text2);
  max-width: 320px;
  line-height: 1.55;
  margin-bottom: 28px;
}
.gate-form { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 10px; }
.gate-input {
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  background: var(--glass);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  text-align: center;
  letter-spacing: 0.5px;
  transition: border-color 0.15s;
}
.gate-input:focus { border-color: rgba(79,158,255,0.5); }
.gate-btn {
  padding: 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--en), #1a6fd4);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79,158,255,0.35);
}
.gate-btn:active { opacity: 0.85; }
.gate-error {
  font-size: 12px;
  color: #ff6b6b !important;
  -webkit-text-fill-color: #ff6b6b !important;
  min-height: 16px;
  margin-top: 4px;
}
.gate-foot {
  margin-top: 28px;
  font-size: 11px;
  color: var(--text3);
  line-height: 1.6;
  max-width: 300px;
}
.gate-foot a { color: var(--en); text-decoration: underline; }

/* ─── DONATE BUTTON (bilingual rotating) ─── */
.donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid rgba(255,200,80,0.4);
  background: linear-gradient(135deg, rgba(255,200,80,0.12), rgba(255,140,80,0.08));
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  color: #ffd97a;
  -webkit-text-fill-color: #ffd97a !important;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: transform 0.15s;
}
.donate-btn:active { transform: scale(0.95); }
.donate-btn-heart { font-size: 11px; line-height: 1; }
.donate-flip {
  display: inline-block;
  position: relative;
  height: 14px;
  min-width: 56px;
  text-align: left;
  overflow: hidden;
}
.donate-flip span {
  display: block;
  position: absolute;
  inset: 0;
  animation: donateFlip 5s infinite;
  opacity: 0;
  color: #ffd97a !important;
  -webkit-text-fill-color: #ffd97a !important;
}
.donate-flip span:nth-child(1) { animation-delay: 0s; }
.donate-flip span:nth-child(2) { animation-delay: 2.5s; }
@keyframes donateFlip {
  0%   { transform: translateY(100%); opacity: 0; }
  6%   { transform: translateY(0);    opacity: 1; }
  44%  { transform: translateY(0);    opacity: 1; }
  50%  { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(-100%); opacity: 0; }
}

/* ─── INSTALL INSTRUCTIONS MODAL ─── */
.install-toggle {
  font-size: 11px;
  font-weight: 600;
  color: var(--en);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  letter-spacing: 0.3px;
  text-decoration: underline;
  text-underline-offset: 2px;
  -webkit-text-fill-color: var(--en) !important;
}

.install-lang-toggle {
  display: flex;
  background: var(--glass);
  border: 1px solid var(--border2);
  border-radius: 99px;
  padding: 2px;
  align-self: center;
  margin-bottom: 4px;
}
.install-lang-btn {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  -webkit-text-fill-color: var(--text3) !important;
  transition: all 0.15s;
}
.install-lang-btn.active {
  background: var(--en);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.install-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.install-step:last-child { border-bottom: none; }
.install-step-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--en-dim);
  color: var(--en) !important;
  -webkit-text-fill-color: var(--en) !important;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-step-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text2);
}
.install-step-text strong { color: var(--text); font-weight: 600; }
