:root {
  --bg: #050406;
  --bg-elevated: rgba(14, 13, 18, 0.72);
  --bg-card: rgba(18, 17, 22, 0.76);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #fafafa;
  --text-secondary: #a1a1ac;
  --text-muted: #696973;
  --orange: #ff5a1f;
  --orange-bright: #ff7c3e;
  --orange-deep: #d93f0b;
  --orange-soft: rgba(255, 90, 31, 0.15);
  --danger-text: #fca5a5;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
a {
  font-family: inherit;
}

.is-hidden {
  display: none !important;
}

.text-orange {
  background: linear-gradient(135deg, #ff8747 0%, #ff4d12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Unified Seamless Cosmic Background with GPU-friendly radial gradients (zero heavy blur filter) */
.space-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}

.ambient-nebula {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  transform: translateZ(0);
}

.nebula-top {
  top: -260px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 1300px;
  height: 640px;
  background: radial-gradient(ellipse at center, rgba(255, 90, 31, 0.14) 0%, rgba(255, 70, 15, 0.05) 45%, transparent 72%);
}

.nebula-mid {
  top: 38vh;
  left: -320px;
  width: 860px;
  height: 860px;
  background: radial-gradient(circle at center, rgba(255, 76, 18, 0.09) 0%, rgba(255, 76, 18, 0.03) 42%, transparent 70%);
}

.nebula-bot {
  bottom: -300px;
  right: -280px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle at center, rgba(255, 110, 44, 0.1) 0%, rgba(255, 90, 31, 0.03) 42%, transparent 70%);
}

.app-shell {
  position: relative;
  z-index: 2;
}

/* Integrated Seamless Header (Formix / Vetra style) */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(5, 4, 6, 0.72) 0%, rgba(5, 4, 6, 0) 100%);
  transition: background 0.25s ease, padding 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.topbar.is-scrolled {
  padding: 10px 0;
  background: rgba(8, 7, 10, 0.78);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  justify-self: start;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7838 0%, #e03e08 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 22px rgba(255, 90, 31, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

/* Center floating glass nav pill */
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  border-radius: 999px;
  background: rgba(18, 17, 22, 0.62);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.nav-link {
  position: relative;
  padding: 7px 15px;
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.16s ease, background 0.16s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

.header-controls {
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: end;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 130, 68, 0.45);
  background: linear-gradient(135deg, rgba(255, 114, 52, 0.2), rgba(255, 77, 18, 0.12));
  color: #ffb08a;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.header-cta:hover {
  background: linear-gradient(135deg, #ff7838 0%, #ff4d12 100%);
  border-color: rgba(255, 168, 122, 0.6);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(255, 90, 31, 0.48);
}

/* Dropdowns */
.dropdown-wrap {
  position: relative;
}

.control-btn,
.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(18, 17, 22, 0.62);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.profile-btn {
  padding: 4px 8px 4px 5px;
  gap: 5px;
}

.control-btn:hover,
.profile-btn:hover {
  background: rgba(255, 90, 31, 0.14);
  border-color: rgba(255, 90, 31, 0.45);
}

.chevron {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.profile-points {
  font-size: 12px;
  font-weight: 700;
  color: #ffa275;
  white-space: nowrap;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7838 0%, #e03e08 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(255, 90, 31, 0.45);
}

.user-avatar-lg {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

/* Crisp SVG Flags */
.flag-icon {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.flag-ru {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Crect width='24' height='5.33' fill='%23ffffff'/%3E%3Crect y='5.33' width='24' height='5.33' fill='%230039a6'/%3E%3Crect y='10.66' width='24' height='5.34' fill='%23d52b1e'/%3E%3C/svg%3E");
}

.flag-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Crect width='24' height='16' fill='%23012169'/%3E%3Cpath d='M0 0l24 16M24 0L0 16' stroke='%23ffffff' stroke-width='3'/%3E%3Cpath d='M0 0l24 16M24 0L0 16' stroke='%23C8102E' stroke-width='1.5'/%3E%3Cpath d='M12 0v16M0 8h24' stroke='%23ffffff' stroke-width='5'/%3E%3Cpath d='M12 0v16M0 8h24' stroke='%23C8102E' stroke-width='3'/%3E%3C/svg%3E");
}

.flag-fr {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Crect width='8' height='16' fill='%230055A4'/%3E%3Crect x='8' width='8' height='16' fill='%23ffffff'/%3E%3Crect x='16' width='8' height='16' fill='%23EF4135'/%3E%3C/svg%3E");
}

.flag-de {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Crect width='24' height='5.33' fill='%23000000'/%3E%3Crect y='5.33' width='24' height='5.33' fill='%23DD0000'/%3E%3Crect y='10.66' width='24' height='5.34' fill='%23FFCE00'/%3E%3C/svg%3E");
}

/* Official Polygon (POL) Coin Icon - optical cap-height centered & crisp */
.pol-token {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  white-space: nowrap;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: 1;
  vertical-align: baseline;
}

.pol-coin {
  display: inline-block;
  width: 1.18em;
  height: 1.18em;
  margin: 0;
  flex-shrink: 0;
  border-radius: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(-0.015em);
  box-shadow: 0 1px 4px rgba(130, 71, 229, 0.32);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 38'%3E%3Ccircle cx='19' cy='19' r='19' fill='%238247E5'/%3E%3Cg transform='translate(19 19) scale(1.06) translate(-18.95 -19.45)'%3E%3Cpath fill='%23FFFFFF' d='M25.4 15.1c-.5-.3-1.1-.3-1.6 0l-3.7 2.2-2.5 1.4-3.7 2.2c-.5.3-1.1.3-1.6 0l-2.9-1.7c-.5-.3-.8-.8-.8-1.4v-3.3c0-.6.3-1.1.8-1.4l2.9-1.7c.5-.3 1.1-.3 1.6 0l2.9 1.7c.5.3.8.8.8 1.4v2.2l2.5-1.5v-2.2c0-.6-.3-1.1-.8-1.4l-5.3-3.1c-.5-.3-1.1-.3-1.6 0l-5.4 3.1c-.5.3-.8.8-.8 1.4v6.2c0 .6.3 1.1.8 1.4l5.4 3.1c.5.3 1.1.3 1.6 0l3.7-2.1 2.5-1.5 3.7-2.1c.5-.3 1.1-.3 1.6 0l2.9 1.7c.5.3.8.8.8 1.4v3.3c0 .6-.3 1.1-.8 1.4l-2.9 1.7c-.5.3-1.1.3-1.6 0l-2.9-1.7c-.5-.3-.8-.8-.8-1.4v-2.1l-2.5 1.5v2.1c0 .6.3 1.1.8 1.4l5.4 3.1c.5.3 1.1.3 1.6 0l5.4-3.1c.5-.3.8-.8.8-1.4v-6.2c0-.6-.3-1.1-.8-1.4l-5.5-3.1z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Header Balance Pill (between flag and avatar) */
.header-balance-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(20, 19, 26, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.header-balance-pill:hover {
  border-color: rgba(255, 90, 31, 0.5);
  background: rgba(255, 90, 31, 0.12);
}

.header-balance-pol {
  color: #ffffff;
}

.header-balance-sep {
  color: rgba(255, 255, 255, 0.28);
}

.header-balance-usd {
  color: #ffb08a;
  font-weight: 600;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  background: rgba(14, 13, 18, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.85), 0 0 24px rgba(255, 90, 31, 0.1);
  animation: popIn 0.16s ease-out;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-menu-sm { min-width: 158px; }
.dropdown-menu-profile { min-width: 248px; }

.profile-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 10px;
}

.profile-menu-info { min-width: 0; }
.profile-menu-name { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.25; }
.profile-menu-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.dropdown-divider { height: 1px; background: var(--border); margin: 5px 6px; }

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.14s ease;
}

.dropdown-item:hover { background: rgba(255, 90, 31, 0.12); }
.dropdown-item svg { color: var(--text-secondary); flex-shrink: 0; }
.dropdown-item:hover svg { color: var(--orange-bright); }
.dropdown-item-danger { color: var(--danger-text); }
.dropdown-item-danger svg { color: var(--danger-text); }
.dropdown-check { margin-left: auto; color: var(--orange-bright); font-weight: 700; opacity: 0; }
.dropdown-item.is-selected .dropdown-check { opacity: 1; }

/* WIDE Main Container (1480px instead of cramped 1180px) */
.main-content {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px 72px;
}

.view { display: none; }
.view.is-active { display: block; }

/* HERO — Seamless Cosmic Opening with True Volumetric 3D Planet Horizon */
.hero-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 660px;
  padding: 96px 24px 80px;
  overflow-x: clip;
  overflow-y: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Volumetric 3D Planet Horizon (seamless fade into space, zero hard horizontal seam) */
.planet-scene {
  position: absolute;
  left: 50%;
  bottom: -1610px;
  width: 2400px;
  height: 1850px;
  transform: translate3d(-50%, 0, 0);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.planet-atmosphere {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 2000px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 52% 54% at 50% 58%,
    rgba(255, 118, 48, 0.44) 0%,
    rgba(255, 72, 16, 0.22) 32%,
    rgba(196, 44, 6, 0.06) 56%,
    transparent 74%
  );
  animation: atmosphereBreath 6.5s ease-in-out infinite;
  will-change: opacity;
}

.planet-corona {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 1520px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 50% 52% at 50% 60%,
    rgba(255, 194, 128, 0.72) 0%,
    rgba(255, 102, 36, 0.42) 38%,
    transparent 74%
  );
}

.planet-sphere {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 56% 16% at 50% 0%,
      rgba(255, 154, 82, 0.62) 0%,
      rgba(210, 68, 16, 0.36) 20%,
      rgba(88, 22, 6, 0.2) 38%,
      transparent 58%
    );
  box-shadow:
    0 -12px 38px rgba(255, 104, 38, 0.48),
    0 -42px 110px rgba(255, 74, 18, 0.28),
    inset 0 18px 46px rgba(255, 168, 96, 0.42),
    inset 0 65px 110px rgba(180, 46, 10, 0.22);
}

.planet-rim {
  display: none;
}

.planet-shade {
  display: none;
}

@keyframes atmosphereBreath {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

.hero-center {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  will-change: transform;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 16px;
  border-radius: 999px;
  background: rgba(20, 18, 22, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e4e4ea;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 26px;
  backdrop-filter: blur(12px);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.hero-pill-badge:hover {
  border-color: rgba(255, 90, 31, 0.55);
  background: rgba(255, 90, 31, 0.12);
  transform: translateY(-1px);
}

.hero-pill-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff783c, #ff4d12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  margin: 0 0 18px;
  font-size: 62px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: #ffffff;
}

.hero-subtitle {
  margin: 0 auto 32px;
  max-width: 600px;
  font-size: 17px;
  color: #bdbdc8;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* Glowing Orange CTA Button */
.btn-orange-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ff7a36 0%, #ff4c12 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 0 32px rgba(255, 90, 31, 0.46),
    0 10px 26px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}

.btn-orange-glow:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 0 52px rgba(255, 90, 31, 0.76),
    0 14px 32px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  filter: brightness(1.05);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(16, 15, 20, 0.66);
  backdrop-filter: blur(14px);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-sm { padding: 10px 20px; font-size: 13.5px; }

/* Minimalist Centered Hero Metrics with Soft Backdrop Shadow & Accent Underline */
.hero-metrics-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 14px 36px 18px;
  border-radius: 999px;
  background: radial-gradient(ellipse 85% 90% at 50% 50%, rgba(5, 4, 6, 0.58) 0%, rgba(5, 4, 6, 0) 100%);
  flex-wrap: wrap;
}

.hero-metric {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 12px;
}

.hero-metric::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 44px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8542 0%, #ff4c12 100%);
  box-shadow: 0 0 14px rgba(255, 90, 31, 0.85);
}

.hero-metric strong {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 4px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

.hero-metric span {
  font-size: 13.5px;
  font-weight: 500;
  color: #e4e4ec;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
.landing-section {
  margin-bottom: 96px;
  scroll-margin-top: 86px;
}

.section-center {
  text-align: center;
  margin-bottom: 38px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.12);
  border: 1px solid rgba(255, 90, 31, 0.3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ff9c6e;
  margin-bottom: 14px;
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}

.section-title-lg {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.14;
  color: #ffffff;
}

.section-subtitle-lg {
  margin: 0 auto;
  max-width: 620px;
  font-size: 16px;
  color: var(--text-secondary);
}

/* Wide 3D Floating Photo Arc — GPU-composited animations only (zero margin-top reflow!) */
.landing-section {
  position: relative;
  z-index: 3;
}

.arc-showcase {
  position: relative;
  z-index: 3;
  padding: 56px 32px 54px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 68% 58% at 50% 34%, rgba(255, 90, 31, 0.12), transparent 68%),
    rgba(11, 10, 15, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  text-align: center;
}

.arc-glow {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 880px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(255, 90, 31, 0.16) 0%, rgba(255, 90, 31, 0.04) 48%, transparent 72%);
  pointer-events: none;
}

.photo-arc {
  position: relative;
  z-index: 4;
  height: 248px;
  max-width: 1120px;
  margin: 0 auto 14px;
  will-change: transform;
}

.arc-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 136px;
  height: 136px;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.68), 0 0 22px rgba(255, 90, 31, 0.14);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.arc-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.arc-1 { --tx: -440px; --ty: 64px; --rot: -26deg; --sc: 0.84; animation: floatArc 5.4s ease-in-out infinite; }
.arc-2 { --tx: -298px; --ty: 10px; --rot: -17deg; --sc: 0.92; animation: floatArc 4.9s ease-in-out -0.8s infinite; }
.arc-3 { --tx: -152px; --ty: -24px; --rot: -8deg; --sc: 0.98; animation: floatArc 5.6s ease-in-out -1.5s infinite; }
.arc-4 { --tx: 0px; --ty: -38px; --rot: 0deg; --sc: 1.1; z-index: 4; border-color: rgba(255, 128, 66, 0.8); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.78), 0 0 36px rgba(255, 90, 31, 0.42); animation: floatArc 4.6s ease-in-out -2.1s infinite; }
.arc-5 { --tx: 152px; --ty: -24px; --rot: 8deg; --sc: 0.98; animation: floatArc 5.3s ease-in-out -1.1s infinite; }
.arc-6 { --tx: 298px; --ty: 10px; --rot: 17deg; --sc: 0.92; animation: floatArc 4.8s ease-in-out -2.6s infinite; }
.arc-7 { --tx: 440px; --ty: 64px; --rot: 26deg; --sc: 0.84; animation: floatArc 5.1s ease-in-out -0.4s infinite; }

@keyframes floatArc {
  0%, 100% {
    transform: translate3d(calc(-50% + var(--tx)), calc(-50% + var(--ty)), 0) rotate(var(--rot)) scale(var(--sc));
  }
  50% {
    transform: translate3d(calc(-50% + var(--tx)), calc(-50% + var(--ty) - 9px), 0) rotate(var(--rot)) scale(var(--sc));
  }
}

.arc-card:hover {
  border-color: var(--orange-bright);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.82), 0 0 36px rgba(255, 90, 31, 0.55);
  z-index: 10;
}

.arc-content { position: relative; z-index: 5; }

/* Wide Formix Bento Grid + Glassmorphism so cosmic stars subtly shine behind */
.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.section-head-note {
  margin: 0;
  max-width: 440px;
  font-size: 15px;
  color: var(--text-secondary);
}

.bento-grid-formix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tilt-card {
  position: relative;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  --mx: 50%;
  --my: 50%;
}

.tilt-card.is-tilting {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 90, 31, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.tilt-card:hover::before { opacity: 1; }

.bento-item {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 19, 25, 0.88) 0%, rgba(12, 11, 15, 0.84) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 256px;
}

.bento-item:hover {
  border-color: rgba(255, 90, 31, 0.45);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65), 0 0 28px rgba(255, 90, 31, 0.14);
}

.bento-item-wide { grid-column: span 2; }

.bento-item-orange {
  background: linear-gradient(135deg, #ff6f2f 0%, #dd3c08 100%);
  border-color: rgba(255, 174, 128, 0.45);
  box-shadow: 0 22px 50px rgba(255, 77, 18, 0.28);
  justify-content: space-between;
}

.bento-item-orange::before {
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.24), transparent 60%);
}

.bento-num { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--orange-bright); margin-bottom: 14px; }
.bento-title { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: #ffffff; }
.bento-desc { margin: 0 0 22px; font-size: 14.5px; color: var(--text-secondary); line-height: 1.56; }

.bento-mini-tag {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: #e4e4ea;
}

.bento-mini-frames { margin-top: auto; display: flex; gap: 10px; }

.bento-mini-frames span {
  width: 42px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bento-mini-frames span.is-hot {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 90, 31, 0.4);
}

.bento-mini-check {
  margin-top: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff783c, #ff4d12);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 26px rgba(255, 90, 31, 0.52);
}

.bento-bar-wrap { margin-top: auto; max-width: 420px; }
.bento-bar-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.bento-bar-meta strong { color: var(--orange-bright); }
.bento-bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bento-bar-fill { width: 100%; height: 100%; background: linear-gradient(90deg, #ff4d12, #ff9654); border-radius: 999px; box-shadow: 0 0 14px rgba(255, 90, 31, 0.6); }

.quote-mark { font-size: 50px; line-height: 0.7; font-weight: 900; color: rgba(255, 255, 255, 0.45); margin-bottom: 10px; }
.quote-text { margin: 0 0 20px; font-size: 18px; font-weight: 700; line-height: 1.44; color: #ffffff; }
.quote-author { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }

/* FAQ Accordion + Interactive Yield Calculator (equal height on desktop, scrollable FAQ) */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.faq-left-col {
  min-width: 0;
  min-height: 468px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.faq-all-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  flex-shrink: 0;
  padding: 13px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 110, 42, 0.18), rgba(255, 77, 18, 0.08));
  border: 1px solid rgba(255, 118, 52, 0.42);
  color: #ffb084;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.faq-all-cta-btn svg {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.faq-all-cta-btn:hover {
  background: linear-gradient(135deg, rgba(255, 110, 42, 0.3), rgba(255, 77, 18, 0.16));
  border-color: rgba(255, 134, 72, 0.72);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgba(255, 90, 31, 0.45);
}

.faq-all-cta-btn:hover svg {
  transform: translateX(3px);
}

.faq-accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-accordion::-webkit-scrollbar {
  width: 5px;
}

.faq-accordion::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.faq-accordion::-webkit-scrollbar-thumb {
  background: rgba(255, 90, 31, 0.45);
  border-radius: 999px;
}

.faq-accordion::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 90, 31, 0.72);
}

.faq-calc-card {
  min-height: 468px;
  padding: 20px 22px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 90% 60% at 85% 0%, var(--tier-glow, rgba(255, 90, 31, 0.14)), transparent 68%),
    rgba(16, 15, 22, 0.88);
  border: 1px solid var(--tier-accent, rgba(255, 90, 31, 0.32));
  box-shadow: 0 10px 28px -14px var(--tier-shadow, rgba(255, 90, 31, 0.14));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.faq-calc-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-calc-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tier-text, #ff9c6e);
  transition: color 0.24s ease;
}

.faq-calc-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.faq-calc-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--text-secondary);
}

.faq-calc-usdt-paren {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tier-text, #ffb08a);
  font-variant-numeric: tabular-nums;
  transition: color 0.24s ease;
}

.calc-input-wrap {
  margin-bottom: 0;
}

.calc-input {
  padding: 10px 72px 10px 14px;
  font-size: 16px;
}

.calc-tiers-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.calc-tier-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 11px;
  border: 1px solid var(--tier-border, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.025);
  color: var(--tier-text, #ffffff);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.calc-tier-btn:hover {
  transform: translateY(-1px);
  border-color: var(--tier-accent, rgba(255, 255, 255, 0.35));
  background: var(--tier-glow, rgba(255, 255, 255, 0.06));
}

.calc-tier-btn.is-active {
  border-color: var(--tier-accent, rgba(255, 90, 31, 0.65));
  background: var(--tier-icon-bg, rgba(255, 90, 31, 0.14));
  box-shadow: 0 0 0 1px var(--tier-border, transparent), 0 4px 12px -4px var(--tier-shadow, rgba(0, 0, 0, 0.35));
}

.calc-tier-btn-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}

.calc-tier-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.calc-tier-btn-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.calc-tier-btn-pct {
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  opacity: 0.92;
}

.calc-tier-btn-min {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.mobile-burger-icon,
.mobile-only-nav {
  display: none;
}

.mobile-nav-link {
  text-decoration: none;
}

.faq-calc-slider-head strong {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.faq-calc-range {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}

.faq-calc-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a36, #ff4c12);
  box-shadow: 0 0 14px rgba(255, 90, 31, 0.7);
  border: 2px solid #ffffff;
  cursor: pointer;
}

.faq-calc-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.faq-calc-box {
  padding: 9px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.faq-calc-box-wide {
  grid-column: 1 / -1;
  background: var(--tier-icon-bg, rgba(255, 90, 31, 0.1));
  border-color: var(--tier-border, rgba(255, 90, 31, 0.3));
  transition: border-color 0.24s ease, background 0.24s ease;
}

.faq-calc-box > span {
  font-size: 11px;
  color: var(--text-secondary);
}

.faq-calc-val-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
}

.faq-calc-box strong {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.faq-calc-box strong .pol-coin {
  width: 1em;
  height: 1em;
  font-size: inherit;
}

.faq-calc-sub {
  font-size: 11px;
  color: var(--tier-text, #ffb08a);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0.9;
}

.faq-calc-cta {
  width: 100%;
  padding: 11px 18px;
  font-size: 14px;
}

.faq-item {
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(20, 19, 25, 0.9) 0%, rgba(12, 11, 15, 0.88) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.faq-item:hover,
.faq-item.is-open {
  border-color: rgba(255, 90, 31, 0.42);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  color: #ffffff;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.faq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: #ffffff;
  background: rgba(255, 90, 31, 0.2);
  border-color: rgba(255, 90, 31, 0.48);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-a {
  margin: 0;
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.62;
}

.faq-tiers-body {
  padding: 0 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-tiers-intro {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.faq-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--tier-icon-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--tier-border, rgba(255, 255, 255, 0.1));
}

.faq-tier-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.faq-tier-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-tier-row-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.faq-tier-row-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--tier-text, #ffffff);
  white-space: nowrap;
}

.faq-tier-row-range {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.faq-tier-row-pct {
  min-width: 48px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--tier-text, #ffffff);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--tier-border, rgba(255, 255, 255, 0.12));
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.faq-tiers-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 31, 0.36);
  background: rgba(255, 90, 31, 0.1);
  color: #ffb08a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.faq-tiers-link:hover {
  background: rgba(255, 90, 31, 0.2);
  border-color: rgba(255, 90, 31, 0.6);
  color: #ffffff;
  transform: translateX(2px);
}

.profile-tiers-card.is-highlight {
  border-color: rgba(255, 118, 52, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 90, 31, 0.22), 0 12px 32px rgba(255, 90, 31, 0.18);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Transaction status badges */
.tx-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tx-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.tx-status-badge.is-completed {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.34);
  color: #86efac;
}

.tx-status-badge.is-processing {
  background: rgba(255, 90, 31, 0.14);
  border: 1px solid rgba(255, 90, 31, 0.36);
  color: #ffb08a;
}

.tx-status-badge.is-failed {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.34);
  color: #fca5a5;
}

.tx-reason {
  font-size: 12px;
  color: #fca5a5;
  opacity: 0.9;
}

/* Bottom CTA */
.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 58px 28px;
  border-radius: 28px;
  background: rgba(14, 13, 18, 0.86);
  border: 1px solid rgba(255, 90, 31, 0.32);
  margin-bottom: 44px;
}

.cta-glow {
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 760px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(255, 90, 31, 0.32) 0%, rgba(255, 90, 31, 0.08) 46%, transparent 72%);
  pointer-events: none;
}

.cta-banner-title { position: relative; z-index: 2; margin: 0 0 10px; font-size: 34px; font-weight: 800; letter-spacing: -0.025em; }
.cta-banner-sub { position: relative; z-index: 2; margin: 0 0 26px; font-size: 15.5px; color: var(--text-secondary); }
.cta-banner .btn-orange-glow { position: relative; z-index: 2; }

/* Vote view (with top padding for fixed seamless header) */
#viewVote {
  padding-top: 92px;
}

.round-meta { margin-bottom: 16px; }
.round-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.round-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  background: rgba(18, 17, 22, 0.7);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.back-link:hover { color: #ffffff; border-color: rgba(255, 90, 31, 0.5); }

.pill { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.2; }
.pill-orange { background: var(--orange-soft); color: #ff9c6e; border: 1px solid rgba(255, 90, 31, 0.32); }
.pill-muted { background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); }
.pill-outline { border: 1px solid var(--border-strong); color: var(--text-secondary); }

.progress-track { width: 100%; height: 5px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #ff4d12, #ff9654); border-radius: 999px; box-shadow: 0 0 14px rgba(255, 90, 31, 0.65); transition: width 0.35s ease; }

.prompt-card {
  background: rgba(18, 17, 23, 0.76);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 24px;
}

.prompt-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #ff9666; margin-bottom: 6px; }
.prompt-text { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; color: #ffffff; }
.prompt-hint { margin: 0; font-size: 14.5px; color: var(--text-secondary); }

.options-grid { display: grid; gap: 24px; width: 100%; margin: 0 auto; perspective: 1200px; }
.options-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.options-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.photo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(18, 17, 23, 0.84);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: cardEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.photo-card:nth-child(2) { animation-delay: 0.06s; }
.photo-card:nth-child(3) { animation-delay: 0.12s; }

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.photo-card:hover { border-color: rgba(255, 90, 31, 0.65); box-shadow: 0 0 34px rgba(255, 90, 31, 0.22), var(--shadow); }
.photo-card.is-winner { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(255, 90, 31, 0.6), 0 0 44px rgba(255, 90, 31, 0.35); }
.photo-card.is-dimmed { opacity: 0.32; pointer-events: none; }

.photo-media { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #09090b; overflow: hidden; cursor: pointer; }
.photo-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; display: block; transition: transform 0.38s ease; }
.photo-card:hover .photo-media img { transform: scale(1.035); }

.photo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

.zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 5, 6, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.zoom-btn:hover { background: var(--orange); border-color: var(--orange-bright); transform: scale(1.06); }

.reveal-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(7, 5, 5, 0.76);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  gap: 6px;
  animation: popIn 0.2s ease-out;
}

.reveal-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff783c, #ff4d12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  box-shadow: 0 0 32px rgba(255, 90, 31, 0.75);
}

.reveal-title { font-size: 16.5px; font-weight: 700; color: #fff; }
.reveal-sub { font-size: 13px; color: #ffb08a; }

.photo-card-footer { padding: 12px; border-top: 1px solid var(--border); background: rgba(14, 13, 18, 0.9); }

.select-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.photo-card:hover .select-btn,
.select-btn:hover {
  background: linear-gradient(135deg, #ff7838 0%, #ff4d12 100%);
  border-color: rgba(255, 168, 122, 0.5);
  box-shadow: 0 0 24px rgba(255, 90, 31, 0.45);
}

/* Complete Card */
.complete-card {
  max-width: 560px;
  margin: 40px auto;
  background: rgba(16, 15, 21, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 90, 31, 0.35);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow), 0 0 40px rgba(255, 90, 31, 0.14);
}

.complete-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff783c, #ff4d12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 36px rgba(255, 90, 31, 0.55);
}

.complete-title { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.complete-subtitle { margin: 0 0 24px; color: var(--text-secondary); font-size: 14.5px; }
.complete-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Cooldown 4-hour Live Timer Widget */
.cooldown-widget {
  margin: 0 auto 26px;
  padding: 22px 24px;
  border-radius: 18px;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(255, 90, 31, 0.18), rgba(255, 255, 255, 0.02) 70%);
  border: 1px solid rgba(255, 90, 31, 0.34);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cooldown-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffb08a;
}

.cooldown-clock {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 0 28px rgba(255, 90, 31, 0.45);
}

/* Profile View — Compact & Crisp with Right Tiers Sidebar */
#viewProfile {
  padding-top: 92px;
  max-width: 1320px;
  margin: 0 auto;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 368px;
  gap: 18px;
  align-items: start;
}

.profile-main-col {
  min-width: 0;
}

.profile-tiers-card {
  padding: 18px 18px;
  gap: 14px;
}

.profile-tiers-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-tiers-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
}

.profile-tiers-sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.profile-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-row-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid var(--tier-border, rgba(255, 255, 255, 0.09));
  background:
    radial-gradient(ellipse 85% 95% at 0% 50%, var(--tier-glow, rgba(255, 255, 255, 0.05)), transparent 68%),
    rgba(16, 15, 22, 0.84);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tier-row-card.is-current {
  border-color: var(--tier-accent, #ff9c6e);
  box-shadow: 0 0 12px var(--tier-shadow, rgba(255, 90, 31, 0.12));
}

.tier-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tier-mineral-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--tier-icon-bg, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--tier-border, rgba(255, 255, 255, 0.1));
}

.tier-row-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tier-row-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tier-row-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--tier-text, #ffffff);
  line-height: 1.2;
}

.tier-active-tag {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--tier-icon-bg, rgba(255, 255, 255, 0.1));
  border: 1px solid var(--tier-border, rgba(255, 255, 255, 0.22));
  color: var(--tier-text, #ffffff);
}

.tier-row-range {
  font-size: 11px;
  color: #c8c8d4;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: nowrap;
}

.tier-row-usd {
  margin-left: 4px;
  font-size: 10.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.tier-row-pct {
  flex-shrink: 0;
  min-width: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--tier-text, #ffffff);
  font-variant-numeric: tabular-nums;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--tier-icon-bg, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--tier-border, rgba(255, 255, 255, 0.1));
}

/* 5 Mineral Color Palettes — refined & subtle (no harsh overglow) */
.tier-theme-1 {
  --tier-accent: rgba(217, 138, 78, 0.62);
  --tier-text: #e6b187;
  --tier-border: rgba(217, 138, 78, 0.24);
  --tier-glow: rgba(205, 127, 50, 0.10);
  --tier-shadow: rgba(205, 127, 50, 0.14);
  --tier-icon-bg: rgba(205, 127, 50, 0.10);
}

.tier-theme-2 {
  --tier-accent: rgba(203, 213, 225, 0.56);
  --tier-text: #dce3ec;
  --tier-border: rgba(203, 213, 225, 0.22);
  --tier-glow: rgba(203, 213, 225, 0.08);
  --tier-shadow: rgba(203, 213, 225, 0.12);
  --tier-icon-bg: rgba(203, 213, 225, 0.09);
}

.tier-theme-3 {
  --tier-accent: rgba(245, 184, 46, 0.62);
  --tier-text: #f3d586;
  --tier-border: rgba(245, 184, 46, 0.25);
  --tier-glow: rgba(245, 184, 46, 0.09);
  --tier-shadow: rgba(245, 184, 46, 0.14);
  --tier-icon-bg: rgba(245, 184, 46, 0.10);
}

.tier-theme-4 {
  --tier-accent: rgba(125, 211, 252, 0.58);
  --tier-text: #b4e2fa;
  --tier-border: rgba(125, 211, 252, 0.24);
  --tier-glow: rgba(56, 189, 248, 0.09);
  --tier-shadow: rgba(56, 189, 248, 0.14);
  --tier-icon-bg: rgba(56, 189, 248, 0.10);
}

.tier-theme-5 {
  --tier-accent: rgba(192, 132, 252, 0.62);
  --tier-text: #dec7fa;
  --tier-border: rgba(192, 132, 252, 0.26);
  --tier-glow: rgba(168, 85, 247, 0.10);
  --tier-shadow: rgba(168, 85, 247, 0.15);
  --tier-icon-bg: rgba(168, 85, 247, 0.11);
}

/* Styled Profile Header Tier Badge (mineral frame + icon + percent) */
.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--tier-text, #ffd3bd);
  background: var(--tier-icon-bg, rgba(255, 90, 31, 0.12));
  border: 1px solid var(--tier-accent, rgba(255, 90, 31, 0.36));
}

.tier-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.tier-pill.is-muted {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  box-shadow: none;
}

.profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.profile-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.profile-rate-cta {
  padding: 11px 22px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.btn-orange-glow.is-cooldown,
.btn-orange-glow.is-cooldown:disabled {
  background: rgba(24, 22, 29, 0.88);
  border: 1px solid rgba(255, 122, 54, 0.34);
  color: #ffc5a8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  cursor: not-allowed;
  opacity: 1;
  transform: none;
  filter: none;
  font-variant-numeric: tabular-nums;
}

.btn-orange-glow.is-cooldown:hover {
  transform: none;
  filter: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.profile-page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.profile-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-card {
  background: linear-gradient(180deg, rgba(20, 19, 25, 0.88) 0%, rgba(12, 11, 15, 0.84) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.profile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-card-balance {
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(255, 90, 31, 0.22), transparent 65%),
    linear-gradient(180deg, rgba(22, 19, 24, 0.9) 0%, rgba(12, 11, 15, 0.88) 100%);
  border-color: rgba(255, 90, 31, 0.32);
}

.profile-card-user {
  display: flex;
  align-items: center;
  gap: 13px;
}

.user-avatar-xl {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.profile-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-user-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.profile-user-id {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-secondary);
}

.profile-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.profile-mini-stats-4 {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.profile-mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  min-width: 0;
}

.profile-mini-label-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.profile-mini-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.profile-mini-value {
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.info-tip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.info-tip-btn {
  width: 15px;
  height: 15px;
  padding: 0;
  border-radius: 5px;
  border: 1px solid rgba(255, 130, 72, 0.45);
  background: rgba(255, 90, 31, 0.14);
  color: #ffb08a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.info-tip-btn:hover,
.info-tip-btn:focus-visible {
  background: rgba(255, 90, 31, 0.28);
  border-color: rgba(255, 130, 72, 0.8);
  color: #ffffff;
  outline: none;
}

.info-tip-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  width: 240px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20, 19, 28, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  color: #e4e4ea;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 40;
}

.info-tip-wrap:hover .info-tip-popover,
.info-tip-wrap:focus-within .info-tip-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.balance-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.balance-amount {
  display: block;
  text-align: center;
  width: 100%;
  padding: 6px 0;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
}

.balance-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}

.balance-actions .btn-sm {
  padding: 8px 11px;
  font-size: 12.5px;
}

/* Profile Referral Card */
.profile-referral-card {
  margin-bottom: 18px;
  gap: 12px;
}

.ref-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ref-card-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
}

.ref-card-sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ref-earned-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding: 7px 12px;
  border-radius: 13px;
  background: rgba(255, 90, 31, 0.1);
  border: 1px solid rgba(255, 90, 31, 0.28);
  flex-shrink: 0;
}

.ref-earned-pill > span:first-child {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.ref-earned-pill strong {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ref-earned-usd {
  font-size: 10.5px;
  font-weight: 600;
  color: #ffb08a;
  font-variant-numeric: tabular-nums;
}

.ref-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.ref-link-text {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
  color: #e4e4ea;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.btn-copy-ref {
  padding: 6px 12px;
  font-size: 12px;
  flex-shrink: 0;
}

.ref-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ref-level-box {
  padding: 9px 11px;
  border-radius: 13px;
  background: var(--tier-icon-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--tier-border, var(--border));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.ref-level-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--tier-text, #e4e4ea);
}

.ref-level-count {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.ref-level-rates {
  font-size: 10.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* History Panel */
.history-panel {
  background: linear-gradient(180deg, rgba(20, 19, 25, 0.88) 0%, rgba(12, 11, 15, 0.84) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Unified Segmented Control with full-height smooth sliding orange fill (zero box-in-box borders) */
.seg-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 100%;
}

.seg-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7838 0%, #ff4d12 100%);
  box-shadow: 0 0 20px rgba(255, 90, 31, 0.4);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
  will-change: transform, width;
}

.seg-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.seg-btn-sm {
  font-size: 11px;
  padding: 6px 10px;
  gap: 4px;
}

.seg-btn:hover {
  color: #ffffff;
}

.seg-btn.is-active {
  color: #ffffff;
}

.history-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.seg-btn.is-active .history-tab-badge {
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
}

.history-body {
  display: none;
  padding: 16px 20px 22px;
}

.history-body.is-active {
  display: block;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Accordion Series Group in History */
.series-group {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.series-group:hover,
.series-group.is-open {
  border-color: rgba(255, 90, 31, 0.34);
}

.series-summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.series-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.series-thumbs {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.series-thumb-mini {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #121116;
  margin-left: -12px;
  display: block;
}

.series-thumb-mini:first-child {
  margin-left: 0;
}

.series-meta {
  min-width: 0;
}

.series-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.series-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.series-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--tier-text, #ffd3bd);
  background: var(--tier-icon-bg, rgba(255, 90, 31, 0.1));
  border: 1px solid var(--tier-border, rgba(255, 90, 31, 0.28));
  font-variant-numeric: tabular-nums;
}

.series-tier-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
}

.series-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.series-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.series-reward-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.series-reward-usd {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}

.series-chevron {
  color: var(--text-secondary);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.series-group.is-open .series-chevron {
  transform: rotate(180deg);
  color: #ff9c6e;
}

.series-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.series-group.is-open .series-details {
  grid-template-rows: 1fr;
}

.series-details-inner {
  overflow: hidden;
}

.series-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.history-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-thumb {
  width: 54px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 24%;
  border: 1px solid var(--border-strong);
  display: block;
}

.history-info {
  min-width: 0;
}

.history-top-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.history-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ff9c6e;
}

.history-date {
  font-size: 12px;
  color: var(--text-muted);
}

.history-prompt {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.14);
  border: 1px solid rgba(255, 90, 31, 0.3);
  color: #ff9c6e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.history-empty {
  text-align: center;
  padding: 40px 16px;
}

.history-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.history-empty-text {
  margin: 0 auto 18px;
  max-width: 460px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 8, 0.36); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox-dialog { position: relative; z-index: 2; width: min(920px, 100%); max-height: 92vh; background: #0f0f13; border: 1px solid var(--border-strong); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85); }
.lightbox-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.lightbox-title { font-weight: 600; font-size: 15px; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 90, 31, 0.14); color: #ffffff; }
.lightbox-image-wrap { flex: 1; min-height: 0; background: #040405; display: flex; align-items: center; justify-content: center; padding: 12px; overflow: auto; }
.lightbox-image-wrap img { max-width: 100%; max-height: 68vh; border-radius: 10px; display: block; }
.lightbox-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); }

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  background: #141419;
  border: 1px solid rgba(255, 90, 31, 0.4);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 32px);
  text-align: center;
}

/* Responsive */
@media (max-width: 1120px) {
  .topbar-inner {
    padding: 0 20px;
    grid-template-columns: auto 1fr;
  }
  .header-controls { grid-column: auto; }
  .nav-pill { display: none; }
  .main-content { padding: 0 20px 56px; }
  .hero-title { font-size: 46px; }
  .bento-grid-formix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-item-wide { grid-column: span 2; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .profile-main-col,
  .profile-tiers-col,
  .profile-card,
  .profile-tiers-card,
  .history-panel { min-width: 0; max-width: 100%; }
  .profile-top-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-left-col { min-height: 0; height: auto; }
  .faq-accordion { height: auto; overflow-y: visible; overscroll-behavior: auto; padding-right: 0; }
  .faq-calc-card { min-height: 0; height: auto; }
  .options-grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-arc { height: 184px; }
  .arc-card { width: 96px; height: 96px; }
  .arc-1, .arc-7 { display: none; }
  .arc-2 { --tx: -210px; --ty: 24px; --rot: -18deg; --sc: 0.9; }
  .arc-3 { --tx: -106px; --ty: -10px; --rot: -8deg; --sc: 0.96; }
  .arc-4 { --tx: 0px; --ty: -22px; --rot: 0deg; --sc: 1.06; }
  .arc-5 { --tx: 106px; --ty: -10px; --rot: 8deg; --sc: 0.96; }
  .arc-6 { --tx: 210px; --ty: 24px; --rot: 18deg; --sc: 0.9; }
}

@media (max-width: 640px) {
  .topbar { padding: 10px 0; }
  .topbar-inner { padding: 0 12px; gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .brand-name { font-size: 14.5px; }
  .brand-sub,
  .header-cta,
  .profile-points { display: none; }
  .header-controls { gap: 6px; }
  .control-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }
  .control-btn .lang-code,
  .control-btn .chevron { display: none; }
  .control-btn .flag-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
  }
  .header-balance-pill {
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.12;
    gap: 1px;
    padding: 3px 12px;
    font-size: 11px;
    font-variant-numeric: normal;
  }
  .header-balance-pill .pol-coin {
    width: 1.24em;
    height: 1.24em;
  }
  .header-balance-sep { display: none; }
  .header-balance-usd { font-size: 9.5px; }
  #profileDropdownWrap { display: block !important; }
  .profile-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }
  .profile-btn .user-avatar,
  .profile-btn .chevron { display: none; }
  .mobile-burger-icon { display: block; color: #ffffff; }
  .mobile-only-nav { display: block; }
  .main-content { padding: 0 12px 44px; }
  .hero-stage { min-height: auto; padding: 78px 4px 36px; }
  .planet-scene { width: 1200px; height: 1000px; bottom: -880px; }
  .hero-pill-badge { font-size: 11.5px; padding: 4px 5px 4px 12px; max-width: 100%; }
  .hero-title { font-size: 27px; line-height: 1.12; margin-bottom: 12px; }
  .hero-subtitle { font-size: 13.5px; max-width: 316px; margin-bottom: 22px; line-height: 1.5; }
  .hero-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 28px;
  }
  .hero-actions .btn-orange-glow {
    flex: 1.38;
    width: auto;
    padding: 12px 10px;
    font-size: 12.5px;
    gap: 6px;
    white-space: nowrap;
  }
  .hero-actions .btn-orange-glow svg { width: 14px; height: 14px; flex-shrink: 0; }
  .hero-actions .btn-glass {
    flex: 1;
    width: auto;
    padding: 12px 10px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .hero-metrics-bar { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 6px 0; }
  .hero-metric strong { font-size: 21px; }
  .hero-metric span { font-size: 11.5px; }
  .landing-section { margin-bottom: 52px; }
  .section-title-lg { font-size: 24px; }
  .arc-showcase { padding: 30px 14px 32px; border-radius: 22px; }
  .photo-arc { height: 140px; }
  .arc-card { width: 84px; height: 84px; border-radius: 16px; }
  .arc-2, .arc-6 { display: none; }
  .arc-3 { --tx: -96px; --ty: 10px; --rot: -12deg; --sc: 0.94; }
  .arc-4 { --tx: 0px; --ty: -8px; --rot: 0deg; --sc: 1.06; }
  .arc-5 { --tx: 96px; --ty: 10px; --rot: 12deg; --sc: 0.94; }
  .faq-accordion { width: 100%; max-width: none; gap: 10px; }
  .faq-item { border-radius: 16px; }
  .faq-trigger { padding: 15px 14px; font-size: 14px; gap: 10px; }
  .faq-a { padding: 0 14px 15px; font-size: 13.5px; }
  .faq-panel-inner:has(.faq-guide-link) .faq-a { padding-bottom: 12px; }
  .faq-guide-link { margin: 0 14px 16px; font-size: 13px; padding: 9px 13px; }
  .faq-tiers-body { padding: 0 14px 14px; }
  .faq-tier-row { padding: 6px 8px; }
  .faq-tier-row-range { font-size: 11px; }
  .bento-grid-formix { grid-template-columns: 1fr; }
  .bento-item-wide { grid-column: span 1; }
  .bento-item { padding: 22px 20px; min-height: auto; }
  .cta-banner { padding: 34px 18px; }
  .cta-banner-title { font-size: 22px; }
  .cta-banner .btn-orange-glow { width: 100%; }
  #viewVote { padding-top: 72px; }
  #viewProfile { padding-top: 76px; }
  .profile-page-title { font-size: 22px; }
  .profile-card { padding: 20px 18px; }
  .profile-mini-stats,
  .profile-mini-stats-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .info-tip-wrap { position: static; }
  .info-tip-popover {
    left: 0;
    right: 0;
    width: auto;
    bottom: auto;
    top: calc(100% + 8px);
    transform: translateY(4px);
    text-align: left;
  }
  .info-tip-wrap:hover .info-tip-popover,
  .info-tip-wrap:focus-within .info-tip-popover {
    transform: translateY(0);
  }
  .seg-control-sm { width: 100%; }
  .seg-control-sm .seg-btn-sm { flex: 1; padding: 6px 6px; font-size: 10.5px; }
  .balance-amount { font-size: 34px; }
  .reinvest-all-btn {
  width: 100%;
  margin: -2px 0 12px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4ea;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.reinvest-all-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.tier-preview-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--tier-icon-bg, rgba(255, 90, 31, 0.1));
  border-color: var(--tier-accent, rgba(255, 90, 31, 0.36));
  color: var(--tier-text, #ffd3bd);
}

.tier-preview-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--tier-text, #ffd3bd);
  line-height: 1.2;
}

.tier-preview-sub {
  font-size: 12px;
  font-weight: 600;
  color: #e4e4ea;
  line-height: 1.35;
}

.reinvest-tier-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tier-icon-bg, rgba(255, 90, 31, 0.1));
  border-color: var(--tier-accent, rgba(255, 90, 31, 0.34));
  color: var(--tier-text, #ffd3bd);
}

.reinvest-preview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reinvest-preview-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.balance-actions .btn-orange-glow,
  .balance-actions .btn-glass { flex: 1; }
  .history-header { padding: 10px; gap: 8px; }
  .history-tabs {
    width: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .history-tabs .seg-btn {
    padding: 8px 2px;
    font-size: 9.5px;
    gap: 3px;
    justify-content: center;
    min-width: 0;
  }
  .history-tabs .history-tab-badge {
    min-width: 15px;
    height: 15px;
    font-size: 9px;
    padding: 0 3px;
  }
  .ref-earned-pill {
    width: 100%;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
  .period-presets { width: 100%; }
  .period-presets .seg-btn { flex: 1; padding: 8px 6px; font-size: 11.5px; }
  .seg-btn { padding: 8px 10px; font-size: 11.5px; }
  .cooldown-clock { font-size: 34px; }
  .history-body { padding: 10px; }
  .series-summary {
    padding: 10px 10px;
    gap: 6px;
  }
  .series-left {
    gap: 7px;
    min-width: 0;
    flex: 1;
  }
  .series-thumb-mini {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    margin-left: -10px;
  }
  .series-title-row {
    gap: 4px;
  }
  .series-title {
    font-size: 13px;
    white-space: nowrap;
  }
  .series-tier-badge {
    padding: 1px 5px;
    font-size: 9.5px;
    gap: 3px;
  }
  .series-tier-badge svg {
    width: 10px;
    height: 10px;
  }
  .calc-tiers-row {
    gap: 4px;
  }
  .calc-tier-btn {
    padding: 6px 2px;
    border-radius: 10px;
  }
  .calc-tier-btn-pct {
    font-size: 11px;
  }
  .calc-tier-btn-min {
    font-size: 9px;
  }
  .faq-calc-kicker {
    font-size: 10px;
    letter-spacing: 0.05em;
  }
  .faq-calc-kicker-row .tier-pill {
    padding: 3px 8px;
    font-size: 10.5px;
  }
  .faq-calc-box {
    padding: 9px 10px;
  }
  .faq-calc-val-row {
    flex-wrap: wrap;
    gap: 2px 6px;
  }
  .faq-calc-box strong {
    font-size: 13.5px;
    white-space: nowrap;
  }
  .faq-calc-sub {
    font-size: 10.5px;
  }
  .series-sub {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .series-right {
    gap: 6px;
    flex-shrink: 0;
  }
  .series-right .history-reward {
    padding: 4px 8px;
    font-size: 11px;
  }
  .series-reward-usd {
    font-size: 10px;
  }
  .history-row .series-reward-stack {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }
  .tx-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 13px;
  }
  .tx-row-left {
    width: 100%;
    gap: 4px;
  }
  .tx-title-row {
    justify-content: space-between;
    gap: 6px;
  }
  .tx-reason {
    flex-basis: 100%;
    font-size: 11.5px;
  }
  .tx-row-right {
    width: 100%;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .tier-row-range {
    white-space: normal;
  }
  .series-items {
    padding: 0 10px 10px;
    gap: 6px;
  }
  .history-row {
    grid-template-columns: 44px 1fr;
    gap: 8px 10px;
    padding: 9px 10px;
    align-items: center;
  }
  .history-thumb { width: 44px; height: 44px; border-radius: 9px; }
  .history-top-line { gap: 6px; }
  .history-cat { font-size: 10.5px; }
  .history-date { font-size: 10.5px; }
  .history-prompt {
    font-size: 12.5px;
    line-height: 1.3;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .history-row .history-reward {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 3px 9px;
    font-size: 11px;
  }
  .prompt-card { padding: 16px; }
  .prompt-text { font-size: 17.5px; }
  .options-grid[data-count="2"],
  .options-grid[data-count="3"] { grid-template-columns: 1fr; gap: 14px; }
  .complete-card { margin: 20px auto; padding: 26px 18px; }
  .complete-metrics { grid-template-columns: 1fr; }
  .complete-actions .btn-orange-glow,
  .complete-actions .btn-glass { width: 100%; }
}


/* === Polygon Wallet, Cabinet & Cooldown Extensions === */
.wallet-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.16);
  border: 1px solid rgba(255, 90, 31, 0.38);
  color: #ffd3bd;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.btn-orange-glow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
  filter: none;
}

/* Personal Cabinet */
#viewCabinet {
  padding-top: 96px;
}

.cabinet-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.cabinet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cabinet-wallet-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wallet-full-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: #e4e4ea;
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.cabinet-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cabinet-title {
  margin: 0 0 6px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cabinet-subtitle {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.rate-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 19, 25, 0.86);
  border: 1px solid rgba(255, 90, 31, 0.35);
  color: #ffb08a;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.cabinet-card {
  background: linear-gradient(180deg, rgba(20, 19, 25, 0.9) 0%, rgba(12, 11, 15, 0.88) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
}

.cabinet-card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ff9c6e;
  margin-bottom: 12px;
}

.balance-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.balance-main strong {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.balance-main span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.withdraw-progress {
  margin-bottom: 14px;
}

.withdraw-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.withdraw-progress-meta strong {
  color: #ffb08a;
}

.cabinet-note {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.payout-warning {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  font-size: 12.5px;
  margin-bottom: 14px;
}

.payout-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
  font-size: 13px;
  line-height: 1.45;
}

.payout-banner a,
.tx-link {
  color: #ff9c6e;
  text-decoration: underline;
}

.cooldown-status {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.cooldown-timer {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--orange-bright);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.cabinet-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.mini-stat {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.mini-stat span {
  display: block;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.mini-stat strong {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.cabinet-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cabinet-history-card {
  margin-top: 4px;
}

.cabinet-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cabinet-history-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.tx-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tx-empty {
  padding: 20px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  color: var(--text-secondary);
  font-size: 13.5px;
}

.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.tx-row-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tx-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.tx-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.tx-row-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tx-amount {
  font-size: 14.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tx-amount.is-plus { color: #86efac; }
.tx-amount.is-minus { color: #ffb08a; }

.complete-cooldown-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.12);
  border: 1px solid rgba(255, 90, 31, 0.35);
  color: #ffd3bd;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.complete-cooldown-box strong {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

/* Wallet / Deposit / Withdraw Modals (frosted transparent glass — matches mobile clarity on PC) */
.wallet-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  background: rgba(20, 19, 28, 0.42);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 36px rgba(255, 90, 31, 0.14);
}

.withdraw-max-link {
  width: 100%;
  margin: -2px 0 12px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4ea;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.withdraw-max-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.wallet-modal-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
}

.wallet-modal-desc {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.wallet-providers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-provider-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wallet-provider-btn:hover {
  background: rgba(255, 90, 31, 0.14);
  border-color: rgba(255, 90, 31, 0.55);
}

.wallet-provider-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-provider-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #ff9c6e;
  flex-shrink: 0;
}

.wallet-provider-icon-wc {
  background: rgba(59, 153, 252, 0.16);
  color: #3b99fc;
}

.wallet-provider-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}

.wallet-provider-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.wallet-modal-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 12.5px;
}

.wallet-empty-box {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.wallet-empty-box a {
  color: #ff9c6e;
}

@media (max-width: 900px) {
  .cabinet-grid {
    grid-template-columns: 1fr;
  }
}

.balance-usd-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.14);
  border: 1px solid rgba(255, 90, 31, 0.32);
  color: #ffb08a;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Deposit Modal */
.deposit-modal-dialog {
  width: min(480px, 100%);
}

.deposit-stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.deposit-stat-box {
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
}

.deposit-stat-box > span {
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--text-secondary);
}

.deposit-stat-box strong {
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-pol-line {
  white-space: nowrap;
  line-height: 1.2;
}

.stat-usd-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.15;
}

.deposit-contract-box {
  padding: 10px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.deposit-contract-label {
  display: block;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.deposit-contract-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deposit-contract-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #e4e4ea;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deposit-copy-btn {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.deposit-copy-btn:hover {
  background: rgba(255, 90, 31, 0.18);
  border-color: rgba(255, 90, 31, 0.5);
}

.deposit-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #e4e4ea;
  margin-bottom: 7px;
}

.deposit-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.deposit-input {
  width: 100%;
  padding: 12px 76px 12px 14px;
  -moz-appearance: textfield;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.deposit-input::-webkit-outer-spin-button,
.deposit-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.deposit-input:focus {
  border-color: rgba(255, 90, 31, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}

.deposit-input-unit {
  position: absolute;
  right: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  pointer-events: none;
}

.deposit-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.deposit-preset-btn {
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #d4d4dc;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.deposit-preset-btn:hover,
.deposit-preset-btn.is-active {
  background: rgba(255, 90, 31, 0.16);
  border-color: rgba(255, 90, 31, 0.5);
  color: #ffffff;
}

.deposit-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(255, 90, 31, 0.09);
  border: 1px solid rgba(255, 90, 31, 0.28);
  margin-bottom: 16px;
  font-size: 13px;
  color: #ffd3bd;
}

.deposit-preview-row strong {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.deposit-submit-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 640px) {
  .deposit-modal-dialog .lightbox-header {
    gap: 10px;
  }
  .deposit-modal-dialog .lightbox-title {
    font-size: 14.5px;
  }
  .deposit-stat-box strong {
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  #viewCabinet { padding-top: 76px; }
  .cabinet-title { font-size: 25px; }
  .cabinet-card { padding: 20px 18px; }
  .balance-main strong { font-size: 25px; }
  .cabinet-mini-stats { grid-template-columns: 1fr; }
  .header-cta {
    padding: 8px 11px;
    font-size: 12px;
    gap: 5px;
  }
  .header-cta svg {
    width: 13px;
    height: 13px;
  }
}


/* === Deposit Tier Levels === */
.faq-calc-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tier-icon-bg, rgba(255, 90, 31, 0.14));
  border: 1px solid var(--tier-accent, rgba(255, 90, 31, 0.36));
  color: var(--tier-text, #ffb08a);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.tier-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

.tier-pill.is-muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text-secondary);
}

.profile-tier-hint {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #ffb08a;
}

.deposit-tiers-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.deposit-tier-chip {
  padding: 6px 4px;
  border-radius: 11px;
  border: 1px solid var(--tier-border, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.025);
  color: var(--tier-text, #ffffff);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease;
}

.deposit-tier-chip:hover {
  transform: translateY(-1px);
  border-color: var(--tier-accent, rgba(255, 255, 255, 0.35));
  background: var(--tier-glow, rgba(255, 255, 255, 0.06));
}

.deposit-tier-chip.is-current {
  border-color: var(--tier-accent, rgba(255, 255, 255, 0.32));
  background: var(--tier-glow, rgba(255, 255, 255, 0.06));
}

.deposit-tier-chip.is-target {
  border-color: var(--tier-accent, rgba(255, 90, 31, 0.72));
  background: var(--tier-icon-bg, rgba(255, 90, 31, 0.16));
  box-shadow: 0 0 0 1px var(--tier-border, transparent), 0 4px 12px -4px var(--tier-shadow, rgba(0, 0, 0, 0.35));
}

.deposit-tier-chip-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1;
}

.deposit-tier-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.deposit-tier-chip-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.deposit-tier-chip-pct {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--tier-text, #ffffff);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.deposit-tier-chip-name {
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.deposit-tier-preview {
  padding: 8px 11px;
  border-radius: 11px;
  background: rgba(255, 90, 31, 0.09);
  border: 1px solid rgba(255, 90, 31, 0.28);
  color: #ffd3bd;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.reinvest-all-btn {
  width: 100%;
  margin: -2px 0 12px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4ea;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.reinvest-all-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.tier-preview-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--tier-icon-bg, rgba(255, 90, 31, 0.1));
  border-color: var(--tier-accent, rgba(255, 90, 31, 0.36));
  color: var(--tier-text, #ffd3bd);
}

.tier-preview-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--tier-text, #ffd3bd);
  line-height: 1.2;
}

.tier-preview-sub {
  font-size: 12px;
  font-weight: 600;
  color: #e4e4ea;
  line-height: 1.35;
}

.reinvest-tier-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tier-icon-bg, rgba(255, 90, 31, 0.1));
  border-color: var(--tier-accent, rgba(255, 90, 31, 0.34));
  color: var(--tier-text, #ffd3bd);
}

.reinvest-preview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reinvest-preview-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.balance-actions .btn-orange-glow,
.balance-actions .btn-glass {
  white-space: nowrap;
}

.btn-reinvest {
  border-color: rgba(255, 122, 54, 0.34);
  color: #ffc5a8;
}

.btn-reinvest:hover:not(:disabled) {
  border-color: rgba(255, 122, 54, 0.65);
  background: rgba(255, 90, 31, 0.14);
  color: #ffffff;
}

.btn-reinvest:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .balance-actions {
    flex-wrap: wrap;
  }
  .deposit-tiers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
  }
  .deposit-tier-chip {
    flex: 0 0 calc(33.333% - 4px);
    padding: 7px 6px;
    border-radius: 11px;
    gap: 3px;
  }
  .deposit-tier-chip-icon svg {
    width: 13px;
    height: 13px;
  }
  .deposit-tier-chip-pct {
    font-size: 11.5px;
  }
  .deposit-tier-chip-name {
    font-size: 11.5px;
    letter-spacing: 0;
  }
  .wallet-modal-dialog {
    max-height: 94dvh;
    border-radius: 18px;
  }
  .wallet-modal-dialog .lightbox-header {
    padding: 11px 14px;
  }
  .wallet-modal-body {
    padding: 12px 14px 14px;
  }
  .wallet-modal-desc {
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.4;
  }
  .deposit-stats-row {
    gap: 8px;
    margin-bottom: 9px;
  }
  .deposit-stat-box {
    padding: 8px 10px;
    border-radius: 11px;
  }
  .deposit-stat-box > span {
    font-size: 10.5px;
  }
  .deposit-contract-box {
    padding: 8px 10px;
    margin-bottom: 10px;
  }
  .deposit-preview-row {
    padding: 9px 11px;
    margin-bottom: 11px;
  }
  .deposit-tier-preview {
    padding: 7px 10px;
    margin-bottom: 9px;
    font-size: 11.5px;
  }
  .profile-rate-cta {
    width: 100%;
  }
  .tx-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 13px;
  }
  .tx-row-left {
    width: 100%;
    gap: 4px;
  }
  .tx-title-row {
    justify-content: space-between;
    gap: 6px;
  }
  .tx-reason {
    flex-basis: 100%;
    font-size: 11.5px;
  }
  .tx-row-right {
    width: 100%;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* === v28/v29: Rate Pill, Mobile Calc Button, Edit Name, Profile USD, Stable History & My Team === */
.header-rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 110, 42, 0.16), rgba(255, 77, 18, 0.08));
  border: 1px solid rgba(255, 118, 52, 0.42);
  color: #ffd3bd;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(255, 90, 31, 0.14);
}

.header-rate-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff7838;
  box-shadow: 0 0 8px rgba(255, 120, 56, 0.9);
  flex-shrink: 0;
}

.header-rate-tip-btn {
  width: 17px;
  height: 17px;
  font-size: 10.5px;
}

.header-rate-popover {
  top: calc(100% + 10px);
  bottom: auto !important;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: 240px;
  white-space: normal;
  text-align: left;
  z-index: 60;
}

.info-tip-wrap:hover .header-rate-popover,
.info-tip-wrap:focus-within .header-rate-popover,
.info-tip-wrap.is-open .header-rate-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.info-tip-wrap.is-open .info-tip-popover:not(.header-rate-popover):not(.mobile-rate-popover) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 640px) {
  .profile-mini-stat .info-tip-popover {
    left: -16px !important;
    right: auto !important;
    bottom: calc(100% + 10px) !important;
    top: auto !important;
    width: 260px !important;
    max-width: calc(100vw - 32px) !important;
    transform: translateY(0) !important;
  }
}

.mobile-calc-btn {
  display: none;
  padding: 7px 9px;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #ffb08a;
  border-color: rgba(255, 90, 31, 0.34);
  background: rgba(255, 90, 31, 0.1);
}

.mobile-calc-btn:hover {
  background: rgba(255, 90, 31, 0.2);
  color: #ffffff;
}

.mobile-rate-pill {
  position: relative;
  margin: 6px 8px 4px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 90, 31, 0.12);
  border: 1px solid rgba(255, 118, 52, 0.36);
  color: #ffd3bd;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-rate-tip-wrap {
  position: relative;
}

.mobile-rate-popover {
  position: absolute !important;
  bottom: calc(100% + 10px) !important;
  top: auto !important;
  right: -6px !important;
  left: auto !important;
  transform: translateY(4px) !important;
  width: 215px !important;
  max-width: 215px !important;
  white-space: normal;
  text-align: left;
  z-index: 90;
}

.info-tip-wrap.is-open .mobile-rate-popover,
.info-tip-wrap:focus-within .mobile-rate-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) !important;
}

.calc-rate-note {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 110, 42, 0.18), rgba(255, 77, 18, 0.08));
  border: 1px solid rgba(255, 118, 52, 0.42);
  font-size: 12.5px;
  font-weight: 700;
  color: #ffd3bd;
  font-variant-numeric: tabular-nums;
}

.cabinet-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  gap: 4px;
}

.cabinet-switch-btn {
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.cabinet-switch-btn.is-active {
  background: linear-gradient(135deg, #ff7838, #ff4d12);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.34);
}

.profile-menu-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.edit-name-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4dc;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.edit-name-btn:hover {
  background: rgba(255, 90, 31, 0.18);
  border-color: rgba(255, 90, 31, 0.45);
  color: #ffffff;
}

.edit-name-btn-lg {
  width: 26px;
  height: 26px;
}

.profile-mini-usd {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: #9e9eab;
  font-variant-numeric: tabular-nums;
}

/* Prevent vertical jump when switching Profile history tabs */
.history-panel {
  min-height: 440px;
  overflow-anchor: none;
}

.history-body {
  min-height: 310px;
}

/* Uniform 2-line Deposit Tier cards (POL on line 1, USD on line 2) */
.tier-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tier-row-range {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #d4d4dc;
  line-height: 1.25;
}

.tier-row-usd {
  display: block;
  margin-left: 0 !important;
  font-size: 11.5px;
  font-weight: 500;
  color: #8f8f9d;
  line-height: 1.25;
}

/* Referral level colors (REVERSED: L1 = top gold/orange, L2 = mid cyan, L3 = calm muted slate) */
.ref-lvl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ref-lvl-badge.ref-lvl-1 {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fcd34d;
}

.ref-lvl-badge.ref-lvl-2 {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
}

.ref-lvl-badge.ref-lvl-3 {
  background: rgba(148, 163, 184, 0.13);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

/* My Team View (#viewTeam) */
#viewTeam {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 20px 64px;
}

.team-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.team-hero-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.team-hero-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: center;
}

.team-hero-title {
  margin: 6px 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.team-hero-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.team-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.team-kpi-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 15px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 5px;
}

.team-kpi-accent {
  background: rgba(255, 90, 31, 0.09);
  border-color: rgba(255, 90, 31, 0.32);
}

.team-kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #a1a1aa;
  line-height: 1.25;
}

.team-kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.team-kpi-usd {
  font-size: 12px;
  font-weight: 600;
  color: #ffb08a;
}

.team-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.ref-link-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #e4e4ea;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.btn-copy-ref {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 16px;
}

.team-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.team-level-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.team-level-card.ref-lvl-1 {
  border-color: rgba(251, 191, 36, 0.42);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1), rgba(18, 18, 24, 0.9));
}

.team-level-card.ref-lvl-2 {
  border-color: rgba(56, 189, 248, 0.34);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(18, 18, 24, 0.9));
}

.team-level-card.ref-lvl-3 {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.06), rgba(18, 18, 24, 0.9));
}

.team-level-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-level-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.team-level-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.team-level-rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.team-rate-chip {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  gap: 2px;
}

.team-rate-chip span {
  font-size: 11px;
  color: #a1a1aa;
}

.team-rate-chip strong {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.team-level-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: auto;
}

.team-foot-right {
  text-align: right;
}

.team-foot-label {
  display: block;
  font-size: 11px;
  color: #9e9eab;
}

.team-foot-val {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.team-foot-usd {
  display: block;
  font-size: 11px;
  color: #9e9eab;
}

.team-section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.team-howto-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-howto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.team-howto-step {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-step-num {
  font-size: 11px;
  font-weight: 800;
  color: #ff7838;
  letter-spacing: 0.06em;
}

.team-howto-step strong {
  font-size: 14px;
  color: #ffffff;
}

.team-howto-step p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.team-members-panel {
  min-height: 260px;
}

.team-level-filter {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.team-filter-btn {
  padding: 6px 12px;
  font-size: 12.5px;
}

.team-filter-btn.is-active {
  background: linear-gradient(135deg, #ff7838, #ff4d12);
  color: #ffffff;
}

@media (max-width: 1100px) {
  .header-rate-pill {
    display: none;
  }
}

@media (max-width: 960px) {
  .mobile-calc-btn {
    display: inline-flex;
  }
  .team-hero-top {
    grid-template-columns: 1fr;
  }
  .team-levels-grid,
  .team-howto-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-topbar-left {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }
  .cabinet-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cabinet-switch-btn {
    width: 100%;
    text-align: center;
    padding: 8px 10px;
    font-size: 13px;
  }
  #viewTeam {
    padding: 82px 12px 48px;
  }
  .team-hero-title {
    font-size: 20px;
  }
  .team-kpi-label {
    min-height: 2.5em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .team-kpi-val {
    font-size: 18px;
  }
  .team-link-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-copy-ref {
    width: 100%;
  }
  .history-panel {
    min-height: 360px;
  }
  .history-body {
    min-height: 240px;
  }
  .history-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .history-tab {
    padding: 7px 6px;
    font-size: 12px;
    justify-content: center;
  }
}

/* === v31: Complete Screen Earned Box + Mobile Clock Alignment === */
.complete-reward-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 14px;
  padding: 16px 20px;
  max-width: 360px;
  width: 100%;
  min-height: 112px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(74, 222, 128, 0.34);
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.12);
  box-sizing: border-box;
}

.cooldown-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 360px;
  width: 100%;
  min-height: 112px;
  padding: 16px 20px;
  border-radius: 16px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.complete-reward-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #bbf7d0;
  letter-spacing: 0.01em;
}

.complete-reward-pol {
  font-size: 24px;
  font-weight: 800;
  color: #4ade80;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.complete-reward-usd {
  font-size: 13px;
  font-weight: 600;
  color: #d4d4dc;
  font-variant-numeric: tabular-nums;
}

.cooldown-label {
  display: block !important;
  text-align: center;
  line-height: 1.4;
}

.cooldown-label svg {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .complete-reward-box {
    padding: 12px 16px;
    margin-bottom: 14px;
  }
  .complete-reward-pol {
    font-size: 21px;
  }
  .cooldown-label {
    font-size: 12.5px;
  }
}

/* === v32: FAQ Guide Link & Beginner Guide Page (/guide) === */
.faq-panel-inner:has(.faq-guide-link) .faq-a {
  padding-bottom: 14px;
}

.faq-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 24px 20px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 110, 42, 0.2), rgba(255, 77, 18, 0.08));
  border: 1px solid rgba(255, 118, 52, 0.45);
  color: #ffd3bd;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, color 0.16s ease;
}

.faq-guide-link:hover {
  background: linear-gradient(135deg, rgba(255, 110, 42, 0.34), rgba(255, 77, 18, 0.18));
  border-color: rgba(255, 130, 68, 0.72);
  color: #ffffff;
  transform: translateY(-1px);
}

#viewGuide {
  max-width: 1020px;
  margin: 0 auto;
  padding: 96px 20px 72px;
}

.guide-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.guide-hero-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
}

.guide-hero-title {
  margin: 6px 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #ffffff;
}

.guide-hero-sub {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 720px;
}

.guide-device-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-device-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #d4d4dc;
}

.guide-device-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.guide-device-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.guide-device-btn.is-active {
  background: linear-gradient(135deg, #ff7838, #ff4d12);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.32);
}

.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-step-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
}

.guide-step-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guide-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255, 110, 42, 0.2), rgba(255, 77, 18, 0.08));
  border: 1px solid rgba(255, 118, 52, 0.38);
  color: #ff9a62;
}

.guide-step-icon-ok {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.08));
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.guide-step-num {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ff7838;
  margin-bottom: 2px;
}

.guide-step-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.guide-step-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-step-body > p {
  margin: 0;
  font-size: 14px;
  color: #d4d4dc;
  line-height: 1.55;
}

.guide-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #f4f4f6;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.guide-chip-link {
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.guide-chip-link:hover {
  background: rgba(255, 90, 31, 0.18);
  border-color: rgba(255, 118, 52, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
}

.guide-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.guide-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4ea;
  font-size: 12.5px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.guide-done-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #86efac;
  font-size: 12.5px;
  font-weight: 700;
}

.tx-kind-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tx-kind-balance {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.36);
  color: #86efac;
}

.tx-kind-reinvest {
  background: rgba(255, 118, 52, 0.15);
  border: 1px solid rgba(255, 118, 52, 0.4);
  color: #ffb08a;
}

.tx-kind-deposit {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.38);
  color: #c4b5fd;
}

.guide-bullets {
  margin: 0;
  padding-left: 20px;
  list-style-type: decimal;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.8px;
  color: #d4d4dc;
  line-height: 1.52;
}

.guide-bullets li::marker {
  color: #ff7838;
}

.guide-device-panel {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-panel-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.14);
  border: 1px solid rgba(255, 118, 52, 0.34);
  color: #ffb08a;
  font-size: 11.5px;
  font-weight: 700;
}

.guide-alert {
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-alert strong {
  font-size: 13px;
  font-weight: 800;
}

.guide-alert-warn {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.36);
  color: #fde68a;
}

.guide-alert-danger {
  background: rgba(239, 68, 68, 0.11);
  border: 1px solid rgba(248, 113, 113, 0.38);
  color: #fecaca;
}

.guide-tips-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
}

.guide-bottom-cta {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

@media (max-width: 640px) {
  #viewGuide {
    padding: 82px 12px 52px;
  }
  .guide-hero-card {
    padding: 18px 16px;
  }
  .guide-hero-title {
    font-size: 21px;
  }
  .guide-device-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .guide-device-btn {
    justify-content: center;
    padding: 8px 8px;
    font-size: 12px;
  }
  .guide-step-card,
  .guide-tips-card {
    padding: 16px 15px;
  }
  .guide-step-title {
    font-size: 16px;
  }
  .guide-bottom-cta .btn-orange-glow {
    width: 100%;
  }
}

/* Dedicated Categorized Questions Page (/questions) */
#viewQuestions {
  max-width: 1020px;
  margin: 0 auto;
  padding: 96px 20px 72px;
}

.qhub-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qhub-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d4d4dc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.qhub-filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.qhub-filter-pill.is-active {
  background: linear-gradient(135deg, #ff7838, #ff4d12);
  border-color: rgba(255, 134, 72, 0.6);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.34);
}

.qhub-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.qhub-block-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.qhub-block-card .guide-step-head {
  align-items: flex-start;
}

.qhub-block-card .guide-step-icon {
  margin-top: 2px;
}

.qhub-block-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.qhub-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 640px) {
  #viewQuestions {
    padding: 82px 12px 52px;
  }
  .qhub-block-card {
    padding: 18px 15px;
  }
  .qhub-filter-bar {
    gap: 6px;
  }
  .qhub-filter-pill {
    padding: 7px 11px;
    font-size: 12px;
  }
}

/* Accessibility: crisp keyboard focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #ff7a36;
  outline-offset: 2px;
}

/* Ultra-narrow viewports (320px - 359px) polish */
@media (max-width: 359px) {
  .topbar-inner {
    padding: 0 10px;
  }
  .hero-actions {
    gap: 8px;
    padding: 0 4px;
  }
  .hero-actions .btn-orange-glow,
  .hero-actions .btn-glass {
    padding: 12px 14px;
    font-size: 13px;
  }
  .seg-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* === v43: Inviter Manual Bind & Bound Badge in My Team === */
.team-inviter-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 118, 52, 0.34);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-inviter-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.team-inviter-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f4f4f6;
  line-height: 1.3;
}

.team-inviter-hint {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.team-inviter-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-inviter-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 13px;
  border-radius: 11px;
  background: rgba(10, 9, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.team-inviter-input::placeholder {
  color: rgba(161, 161, 173, 0.72);
}

.team-inviter-input:focus {
  outline: none;
  border-color: rgba(255, 118, 52, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.16);
}

.team-inviter-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  border-color: rgba(255, 118, 52, 0.44);
  color: #ffd3bd;
  background: linear-gradient(135deg, rgba(255, 110, 42, 0.2), rgba(255, 77, 18, 0.08));
}

.team-inviter-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 110, 42, 0.34), rgba(255, 77, 18, 0.18));
  border-color: rgba(255, 134, 72, 0.72);
  color: #ffffff;
}

.team-inviter-msg {
  font-size: 12.5px;
  font-weight: 600;
  color: #fca5a5;
  line-height: 1.4;
}

.team-bound-pill {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.36);
  color: #86efac;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.team-bound-pill svg {
  flex-shrink: 0;
}

.team-bound-who {
  color: #dcfce7;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 640px) {
  .team-inviter-box {
    padding: 14px 13px;
  }
  .team-inviter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
  .team-inviter-input {
    flex: none;
    width: 100%;
    height: 42px;
    font-size: 13px;
  }
  .team-inviter-btn {
    width: 100%;
    height: 42px;
    justify-content: center;
  }
  .team-bound-pill {
    font-size: 11px;
    padding: 8px 10px;
    gap: 5px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Anti-bot honeypot & visual SVG slider challenge */
.photo-aux-guard {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hc-modal-dialog {
  width: min(410px, 100%);
}

.hc-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 320 / 80;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  user-select: none;
  background: #111016;
}

.hc-svg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hc-marker-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 176, 138, 0.2), #ff8c42 50%, rgba(255, 176, 138, 0.2));
  box-shadow: 0 0 12px rgba(255, 98, 36, 0.85);
  pointer-events: none;
}

.hc-marker-line::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #ff6224;
  box-shadow: 0 0 10px rgba(255, 98, 36, 0.9);
}

.hc-slider-track {
  position: relative;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: pointer;
}

.hc-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 98, 36, 0.22), rgba(255, 98, 36, 0.42));
  pointer-events: none;
}

.hc-slider-hint {
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  pointer-events: none;
}

.hc-slider-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a36 0%, #ff4c12 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 90, 31, 0.5);
  z-index: 2;
  cursor: grab;
  touch-action: none;
}

.hc-slider-thumb:active {
  cursor: grabbing;
}

/* === v46: VIP Media Partner Pool Cabinet & Free-Entry Tier Badge === */
.tier-pill.is-free-entry {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.42);
  color: #86efac;
  font-weight: 700;
}

.tx-kind-vip-pool {
  background: rgba(245, 184, 46, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.44);
  color: #fde68a;
}

.vip-partner-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 26px;
  border-color: rgba(251, 191, 36, 0.36);
  background:
    radial-gradient(ellipse 75% 65% at 100% 0%, rgba(251, 191, 36, 0.11), transparent 68%),
    radial-gradient(ellipse 65% 60% at 0% 100%, rgba(34, 197, 94, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(22, 20, 28, 0.94) 0%, rgba(12, 11, 16, 0.94) 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(253, 230, 138, 0.12);
}

.vip-partner-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vip-kicker-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(245, 184, 46, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #fde68a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.vip-card-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: #ffffff;
}

.vip-card-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 780px;
}

.vip-perk-pill {
  display: inline-flex;
  align-items: flex-start;
  align-self: flex-start;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.38);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.vip-perk-pill svg {
  color: #4ade80;
  flex-shrink: 0;
  margin-top: 2px;
}

.vip-perk-copy {
  display: inline;
}

.vip-perk-pill strong {
  color: #4ade80;
  font-weight: 800;
  margin-left: 3px;
}

.vip-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.vip-kpi-highlight {
  background: linear-gradient(145deg, rgba(245, 184, 46, 0.13), rgba(255, 90, 31, 0.07));
  border-color: rgba(251, 191, 36, 0.36);
}

.vip-creatives-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(8, 8, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.vip-creatives-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.vip-creatives-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f4f4f6;
}

.vip-post-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
}

.vip-post-tab-btn {
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}

.vip-post-tab-btn.is-active {
  background: linear-gradient(135deg, #ff7838 0%, #ff4d12 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.32);
}

.vip-creative-preview {
  margin: 0;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e4ea;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
}

.vip-creatives-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vip-download-banner {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .vip-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vip-partner-card {
    padding: 18px 15px;
    gap: 14px;
  }
  .vip-kicker-badge {
    font-size: 9.5px;
    letter-spacing: 0.04em;
    padding: 4px 9px;
    border-radius: 8px;
  }
  .vip-card-title {
    font-size: 19px;
  }
  .vip-perk-pill {
    font-size: 12px;
    padding: 9px 11px;
  }
  .vip-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .vip-kpi-grid .team-kpi-box {
    padding: 11px 11px;
  }
  .vip-kpi-grid .team-kpi-val {
    font-size: 16px;
  }
  .vip-creatives-box {
    padding: 13px 12px;
  }
  .vip-post-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .vip-post-tab-btn {
    width: 100%;
    min-width: 0;
    padding: 7px 6px;
    font-size: 11.5px;
    justify-content: center;
    text-align: center;
  }
  .vip-creatives-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .vip-creatives-actions .btn-orange-glow,
  .vip-creatives-actions .btn-glass {
    width: 100%;
    justify-content: center;
  }
}

/* === v48-v50: Official Telegram Channel Links in SOLIS Cosmic-Orange Style === */
.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
}

.header-tg-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255, 114, 52, 0.18), rgba(255, 77, 18, 0.08));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 124, 60, 0.42);
  color: #ffb08a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.header-tg-btn svg {
  color: currentColor;
  transform: translate(-1px, 0.5px);
}

.header-tg-btn:hover {
  background: linear-gradient(135deg, #ff7838 0%, #ff4d12 100%);
  border-color: rgba(255, 168, 122, 0.65);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 90, 31, 0.48);
  transform: translateY(-1px);
}

.dropdown-item-tg {
  text-decoration: none;
  align-items: center;
}

.dropdown-tg-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255, 114, 52, 0.2), rgba(255, 77, 18, 0.1));
  border: 1px solid rgba(255, 124, 60, 0.42);
  color: #ffb08a;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.dropdown-tg-icon svg {
  color: currentColor !important;
  transform: translate(-0.5px, 0.5px);
}

.dropdown-item-tg:hover .dropdown-tg-icon {
  background: linear-gradient(135deg, #ff7838 0%, #ff4d12 100%);
  border-color: rgba(255, 168, 122, 0.65);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 90, 31, 0.42);
}

.dropdown-tg-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.dropdown-tg-handle {
  font-size: 11px;
  font-weight: 600;
  color: #ff9c6e;
  line-height: 1.2;
}

.site-footer {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px 36px;
}

.site-footer-inner {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-tg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 114, 52, 0.18), rgba(255, 77, 18, 0.08));
  border: 1px solid rgba(255, 124, 60, 0.42);
  color: #ffd3bd;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.footer-tg-link svg {
  color: #ff945c;
  flex-shrink: 0;
  transform: translate(-0.5px, 0.5px);
  transition: color 0.18s ease;
}

.footer-tg-link:hover {
  background: linear-gradient(135deg, #ff7838 0%, #ff4d12 100%);
  border-color: rgba(255, 168, 122, 0.65);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 90, 31, 0.44);
  transform: translateY(-1px);
}

.footer-tg-link:hover svg {
  color: #ffffff;
}

@media (max-width: 1120px) {
  .site-footer {
    padding: 0 20px 32px;
  }
}

@media (max-width: 640px) {
  .header-tg-btn {
    display: none;
  }
  .site-footer {
    padding: 0 12px 32px;
  }
  .site-footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
}
