/* ============================================================
   Redeem pages — shared premium theme
   Dark, glassy, with ambient aurora and refined micro-interactions.
   All class names / IDs preserved for JS compatibility.
   ============================================================ */

:root {
  --bg: #070d15;
  --bg-2: #0a1320;
  --panel: rgba(15, 23, 35, 0.72);
  --panel-solid: #0d1521;
  --panel-line: rgba(150, 196, 240, 0.16);
  --panel-line-strong: rgba(150, 196, 240, 0.28);
  --text: #eaf2fd;
  --muted: #93a6bd;
  --accent: #7fd5ff;
  --accent-2: #74efc7;
  --accent-rgb: 127, 213, 255;
  --accent-2-rgb: 116, 239, 199;
  --danger: #ff9d9d;
  --ok: #8df0c8;

  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.35);
  --glow: 0 18px 50px rgba(var(--accent-rgb), 0.25);

  --title-font: "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", serif;
  --ui-font: "Avenir Next", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono-font: "Cascadia Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

/* ----------------------------------------------------------------
   Per-page accent themes (only color tokens change)
   ---------------------------------------------------------------- */

body.page-stock {
  --bg: #06101c;
  --bg-2: #081626;
  --panel-line: rgba(125, 211, 252, 0.18);
  --accent: #7fd5ff;
  --accent-2: #8ff0da;
  --accent-rgb: 127, 213, 255;
  --accent-2-rgb: 143, 240, 218;
}

body.page-doubao {
  --bg: #160d0d;
  --bg-2: #221312;
  --panel: rgba(30, 19, 18, 0.72);
  --panel-solid: #1c1212;
  --panel-line: rgba(255, 179, 107, 0.18);
  --muted: #d1b5ac;
  --accent: #ffbe63;
  --accent-2: #ff8e74;
  --accent-rgb: 255, 190, 99;
  --accent-2-rgb: 255, 142, 116;
}

body.page-yuanbao {
  --bg: #08140f;
  --bg-2: #0c1d16;
  --panel: rgba(14, 28, 22, 0.72);
  --panel-solid: #0e1c16;
  --panel-line: rgba(110, 230, 170, 0.18);
  --muted: #a9c8b9;
  --accent: #6ee7a4;
  --accent-2: #5fe2c9;
  --accent-rgb: 110, 231, 164;
  --accent-2-rgb: 95, 226, 201;
}

body.page-wenxin {
  --bg: #0c0f1d;
  --bg-2: #12162a;
  --panel: rgba(16, 20, 34, 0.72);
  --panel-solid: #101422;
  --panel-line: rgba(120, 156, 255, 0.2);
  --muted: #a8b4d6;
  --accent: #7c9cff;
  --accent-2: #9b7cff;
  --accent-rgb: 124, 156, 255;
  --accent-2-rgb: 155, 124, 255;
}

body.page-haluo {
  --bg: #05111a;
  --bg-2: #071c28;
  --panel: rgba(10, 22, 32, 0.74);
  --panel-solid: #0a1620;
  --panel-line: rgba(0, 176, 255, 0.22);
  --muted: #8eb4c9;
  --accent: #36b9ff;
  --accent-2: #4dd4ff;
  --accent-rgb: 54, 185, 255;
  --accent-2-rgb: 77, 212, 255;
}

body.page-siji {
  --bg: #07110a;
  --bg-2: #0a1812;
  --panel: rgba(12, 22, 30, 0.74);
  --panel-solid: #0c161e;
  --panel-line: rgba(72, 211, 196, 0.22);
  --muted: #8fa8b8;
  --accent: #48d3c4;
  --accent-2: #5eb8ff;
  --accent-rgb: 72, 211, 196;
  --accent-2-rgb: 94, 184, 255;
}

body.page-xiaohongshu {
  --bg: #18070c;
  --bg-2: #260a12;
  --panel: rgba(33, 13, 18, 0.74);
  --panel-solid: #1c0a0f;
  --panel-line: rgba(255, 90, 122, 0.22);
  --muted: #d7a3ad;
  --accent: #ff4d6d;
  --accent-2: #ff8a5c;
  --accent-rgb: 255, 77, 109;
  --accent-2-rgb: 255, 138, 92;
}

body.page-gaode {
  --bg: #060f1c;
  --bg-2: #08182b;
  --panel: rgba(12, 24, 38, 0.74);
  --panel-solid: #0a1726;
  --panel-line: rgba(56, 150, 255, 0.22);
  --muted: #93b1cf;
  --accent: #3896ff;
  --accent-2: #34d6a8;
  --accent-rgb: 56, 150, 255;
  --accent-2-rgb: 52, 214, 168;
}

/* ----------------------------------------------------------------
   Base + ambient animated background
   ---------------------------------------------------------------- */

body {
  margin: 0;
  min-height: 100vh;
  padding: 32px 24px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--bg-2), transparent 60%),
    var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* drifting aurora orbs behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -30vmax;
  z-index: -2;
  background:
    radial-gradient(38vmax 38vmax at 18% 22%, rgba(var(--accent-rgb), 0.20), transparent 60%),
    radial-gradient(34vmax 34vmax at 82% 78%, rgba(var(--accent-2-rgb), 0.16), transparent 60%),
    radial-gradient(30vmax 30vmax at 75% 18%, rgba(var(--accent-rgb), 0.10), transparent 60%);
  filter: blur(8px) saturate(120%);
  animation: aurora 26s var(--ease) infinite alternate;
}

/* fine grain / vignette overlay for depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 50% 0%, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  opacity: 0.9;
}

@keyframes aurora {
  0%   { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(2%, -3%, 0) rotate(-6deg) scale(1.04); }
}

/* ----------------------------------------------------------------
   Card
   ---------------------------------------------------------------- */

.wrap {
  width: min(760px, 100%);
  padding: 38px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)) ,
    var(--panel);
  border: 1px solid var(--panel-line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
  position: relative;
  overflow: hidden;
  animation: card-in 0.7s var(--ease) both;
}

/* soft gradient ring on the card edge */
.wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.45), transparent 40%, transparent 70%, rgba(var(--accent-2-rgb), 0.32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* animated accent bar across the top */
.wrap::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----------------------------------------------------------------
   Typography
   ---------------------------------------------------------------- */

.page-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--panel-line);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}

h1 {
  margin: 0 0 20px;
  font: 700 clamp(40px, 8vw, 58px)/0.94 var(--title-font);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 62%, var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ----------------------------------------------------------------
   Inputs
   ---------------------------------------------------------------- */

input,
textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-line);
  background: rgba(4, 9, 15, 0.6);
  color: var(--text);
  font: 500 15px/1.55 var(--ui-font);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

input {
  min-height: 54px;
  padding: 0 16px;
}

textarea {
  min-height: 220px;
  padding: 14px 16px;
  resize: vertical;
  font-family: var(--mono-font);
  font-size: 13px;
  line-height: 1.6;
}

input::placeholder,
textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }

input:hover,
textarea:hover { border-color: var(--panel-line-strong); }

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(4, 9, 15, 0.78);
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.14),
    0 8px 24px rgba(var(--accent-rgb), 0.10);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.result-field { min-width: 0; }
.result-field.full { grid-column: 1 / -1; }

.result-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.phone-input-row {
  align-items: stretch;
}

.phone-input-group {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.phone-country-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 12px;
  border: 1px solid var(--panel-line);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-family: var(--mono-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.phone-input-group .result-input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  flex: 1;
  min-width: 0;
}

.result-input {
  font-family: var(--mono-font);
  font-size: 15px;
}

.code-input {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

button {
  position: relative;
  min-height: 50px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: 700 14px/1 var(--ui-font);
  overflow: hidden;
  transition: transform 0.16s var(--ease-spring), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* sheen sweep on hover */
button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease);
}

button:hover:not(:disabled)::after { left: 130%; }
button:hover:not(:disabled) { transform: translateY(-2px); }
button:active:not(:disabled) { transform: translateY(0) scale(0.98); }

.primary {
  color: #06120d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 32px rgba(var(--accent-rgb), 0.28);
}

.primary:hover:not(:disabled) {
  box-shadow: 0 18px 42px rgba(var(--accent-rgb), 0.38);
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-line);
}

.secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--panel-line-strong);
}

.mini-copy {
  min-height: 54px;
  min-width: 78px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-line);
  box-shadow: none;
}

.mini-copy:hover:not(:disabled) {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.4);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

button:disabled::after { display: none; }

/* ----------------------------------------------------------------
   Messages / countdown
   ---------------------------------------------------------------- */

.msg {
  min-height: 24px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}

.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }

.countdown {
  margin-top: 10px;
  min-height: 22px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

/* ----------------------------------------------------------------
   Quota panel
   ---------------------------------------------------------------- */

.quota-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-line);
  background: rgba(255, 255, 255, 0.04);
}

.quota-panel[hidden] { display: none; }

.quota-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quota-head strong {
  color: var(--text);
  font-family: var(--mono-font);
  font-size: 15px;
}

.quota-track {
  height: 9px;
  margin-top: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quota-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.5);
  transition: width 0.4s var(--ease);
}

.quota-detail {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

/* ----------------------------------------------------------------
   Modal
   ---------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 12, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  animation: fade-in 0.2s var(--ease) both;
}

.modal-backdrop[hidden] { display: none; }

.modal-card {
  width: min(520px, 100%);
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)), var(--panel-solid);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: pop-in 0.35s var(--ease-spring) both;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal-title {
  margin: 0 0 12px;
  font: 700 clamp(24px, 5vw, 32px)/1.05 var(--title-font);
  letter-spacing: -0.03em;
}

.modal-body {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.modal-actions button { flex: 1 1 180px; }

/* ----------------------------------------------------------------
   Bottom links
   ---------------------------------------------------------------- */

.bottom-links {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.bottom-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.32);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.bottom-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ----------------------------------------------------------------
   Siji software picker
   ---------------------------------------------------------------- */

body.page-siji .page-lead {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

body.page-siji .software-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

body.page-siji .wrap { width: min(880px, 100%); }

body.page-siji .software-option {
  appearance: none;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 14px 12px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 4px;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease-spring),
    background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

body.page-siji .software-option:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.38);
}

body.page-siji .software-option.is-selected {
  border-color: rgba(var(--accent-rgb), 0.78);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-2-rgb), 0.08));
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.18);
}

body.page-siji .software-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
}

body.page-siji .software-name {
  font-size: 1.02rem;
  font-weight: 700;
}

body.page-siji .software-keyword {
  font-size: 0.82rem;
  color: var(--muted);
}

body.page-siji .software-hint {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ----------------------------------------------------------------
   Multi-SMS keep-alive panel (HeroSMS / 小红书 only)
   ---------------------------------------------------------------- */

.multi-sms-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.02));
}

.multi-sms-panel[hidden] { display: none; }

.multi-sms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.multi-sms-head strong {
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 16px;
}

.multi-sms-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.multi-sms-history:empty { display: none; }

.multi-sms-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-line);
  background: rgba(4, 9, 15, 0.5);
  animation: pop-in 0.3s var(--ease-spring) both;
}

.multi-sms-code .code {
  font-family: var(--mono-font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.multi-sms-code .at {
  color: var(--muted);
  font-size: 12px;
}

.multi-sms-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.multi-sms-actions button { flex: 1 1 160px; }

.multi-sms-tip {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */

@media (max-width: 640px) {
  body { padding: 16px; }

  .wrap {
    width: 100%;
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  .actions { gap: 10px; }

  .actions button {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }

  .modal-backdrop {
    padding: 14px;
    align-items: end;
  }

  .modal-card {
    width: 100%;
    padding: 20px 18px 18px;
    border-radius: var(--radius-lg);
  }

  .modal-actions { flex-direction: column-reverse; }

  .modal-actions button {
    width: 100%;
    flex: 1 1 auto;
  }

  .result-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .result-field.full { grid-column: auto; }

  .result-input-row { grid-template-columns: 1fr; }

  textarea { min-height: 160px; }

body.page-siji .page-lead a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
}

body.page-siji .page-lead a:hover {
  border-bottom-color: var(--accent);
}

body.page-siji-repeat .phone-sessions-panel {
  margin: 16px 0 18px;
  padding: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

body.page-siji-repeat .phone-sessions-panel[hidden] {
  display: none;
}

body.page-siji-repeat .phone-sessions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

body.page-siji-repeat .phone-sessions-head strong {
  color: var(--text);
  font-size: 0.98rem;
}

body.page-siji-repeat .phone-sessions-list {
  display: grid;
  gap: 10px;
}

body.page-siji-repeat .phone-session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  background: rgba(255, 255, 255, 0.02);
}

body.page-siji-repeat .phone-session-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.page-siji-repeat .phone-session-phone {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

body.page-siji-repeat .phone-session-meta,
body.page-siji-repeat .phone-session-code,
body.page-siji-repeat .phone-session-muted,
body.page-siji-repeat .phone-session-wait {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

body.page-siji-repeat .phone-session-action {
  appearance: none;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

body.page-siji-repeat .phone-session-action:hover {
  border-color: rgba(var(--accent-rgb), 0.72);
  background: rgba(var(--accent-rgb), 0.18);
}

body.page-siji-repeat .phone-session-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  body.page-siji-repeat .phone-session-item {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-siji-repeat .phone-session-actions {
    display: flex;
    justify-content: flex-end;
  }
}

  body.page-siji .software-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.page-xiaohongshu .actions-link-only {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.page-xiaohongshu .actions-link-only button {
  width: 100%;
}

body.page-xiaohongshu #linkResultPanel {
  margin-top: 16px;
}

/* ----------------------------------------------------------------
   Accessibility — respect reduced motion
   ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .wrap, .wrap::before, .modal-backdrop, .modal-card { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
