/* =========================================================
   STARS TIKTOK PRO — LIME STAR COIN + TIKTOK DARK UI
   ========================================================= */
:root {
  --bg: #07080c;
  --surface: #11131b;
  --surface-2: #171a25;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --star-lime: #a3ff12;
  --star-green: #22c55e;
  --star-deep: #15803d;
  --tt-pink: #fe2c55;
  --tt-cyan: #25f4ee;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Ambient Glow */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}

.glow-green {
  width: 480px;
  height: 480px;
  background: var(--star-lime);
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-pink {
  width: 360px;
  height: 360px;
  background: var(--tt-pink);
  bottom: -140px;
  left: -100px;
}

.glow-cyan {
  width: 360px;
  height: 360px;
  background: var(--tt-cyan);
  bottom: -140px;
  right: -100px;
}

.celebration-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

/* =========================================================
   FIRST SCREEN — LA FICHE (USERNAME + TIKTOK PROFILE)
   ========================================================= */
.entry-screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.fiche-shell {
  width: 100%;
  max-width: 440px;
}

.entry-brand {
  text-align: center;
  margin-bottom: 22px;
}

.coin-hero-wrap {
  width: 82px;
  height: 82px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 24px rgba(163, 255, 18, 0.38));
  animation: coinFloat 3.4s ease-in-out infinite;
}

.coin-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes coinFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.entry-brand h1 {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.entry-brand h1 span {
  color: var(--star-lime);
}

.entry-brand h1 em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tt-pink), #ff0050);
  color: #fff;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.06em;
}

.entry-brand p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* La Fiche Card */
.fiche-card {
  background: rgba(17, 19, 27, 0.92);
  border: 1px solid rgba(163, 255, 18, 0.22);
  border-radius: 24px;
  padding: 26px;
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(163, 255, 18, 0.08);
}

.fiche-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fiche-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: -4px;
}

.username-input-box {
  display: flex;
  align-items: center;
  background: #0a0b11;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.username-input-box:focus-within {
  border-color: var(--star-lime);
  box-shadow: 0 0 0 3px rgba(163, 255, 18, 0.14);
}

.at-prefix {
  padding: 0 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--star-lime);
}

.username-input-box input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 15px 14px 15px 6px;
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
}

.simple-input {
  width: 100%;
  border: 1.5px solid var(--border-strong);
  background: #0a0b11;
  color: var(--text);
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 0.96rem;
  outline: none;
}

.simple-input:focus {
  border-color: var(--star-lime);
}

.fiche-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(254, 44, 85, 0.14);
  border: 1px solid rgba(254, 44, 85, 0.35);
  color: #fda4af;
  font-size: 0.84rem;
}

/* Primary Green Star Button */
.btn-star-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #b8ff29 0%, #52d619 55%, #16a34a 100%);
  color: #051b07;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(132, 240, 26, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.btn-star-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(132, 240, 26, 0.4);
}

.btn-star-primary:active {
  transform: scale(0.98);
}

.btn-star-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

.btn-coin-mini {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.btn-ghost-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
  text-align: center;
}

.btn-ghost-link:hover {
  color: var(--text);
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(5, 27, 7, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fetched TikTok Profile Card inside Fiche */
.tiktok-found-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(163, 255, 18, 0.32);
  color: var(--star-lime);
  font-size: 0.76rem;
  font-weight: 700;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--star-lime);
  box-shadow: 0 0 8px var(--star-lime);
}

.tiktok-profile-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 18px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

.tt-avatar-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--star-lime), var(--tt-cyan), var(--tt-pink));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.tt-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #141722;
  display: block;
}

.tt-profile-meta h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 3px;
}

.tt-handle {
  display: block;
  font-size: 0.88rem;
  color: var(--tt-cyan);
  font-weight: 600;
  margin-bottom: 10px;
}

.tt-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tt-stat {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 10px;
  border-radius: 999px;
}

.tt-stat strong {
  color: var(--text);
}

.fallback-name-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* =========================================================
   DASHBOARD VIEW
   ========================================================= */
.dashboard-view {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 8, 12, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.topbar-brand strong {
  color: var(--star-lime);
}

.topbar-brand em {
  font-style: normal;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--tt-pink);
  color: #fff;
}

.topbar-coin {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.topbar-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 12px;
}

.dash-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.16s, color 0.16s;
}

.dash-tab.active {
  background: var(--surface-2);
  color: var(--text);
}

.tab-pill-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(163, 255, 18, 0.16);
  color: var(--star-lime);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(163, 255, 18, 0.38);
  color: var(--star-lime);
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.96rem;
}

.wallet-pill.bump {
  animation: coinBump 0.55s ease;
}

@keyframes coinBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); box-shadow: 0 0 28px rgba(163, 255, 18, 0.55); }
  100% { transform: scale(1); }
}

.wallet-pill-coin {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}

.user-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #1b1f2e;
}

.user-pill-handle {
  font-size: 0.82rem;
  font-weight: 600;
}

/* Dashboard Body */
.dash-body {
  padding-top: 24px;
  padding-bottom: 72px;
}

/* Wallet Hero Strip */
.wallet-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.wallet-profile-card,
.wallet-balance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.wallet-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wp-left {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.wp-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--star-lime), var(--tt-cyan));
  flex-shrink: 0;
}

.wp-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #181c28;
}

.wp-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--star-lime);
  border: 2.5px solid var(--surface);
}

.wp-info {
  min-width: 0;
}

.wp-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wp-name-line h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wp-verified {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--tt-cyan);
  color: #06181a;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.wp-handle-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.wp-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.wp-tt-stats {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.wp-stat-pill {
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.045);
  padding: 3px 9px;
  border-radius: 999px;
}

.btn-switch-acc {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-switch-acc:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* Balance Card */
.wallet-balance-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(17, 19, 27, 0.96));
  border-color: rgba(163, 255, 18, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.wb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wb-coin-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.wb-coin-big {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(163, 255, 18, 0.35));
}

.wb-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.wb-number-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.wb-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--star-lime);
  line-height: 1.05;
}

.wb-unit {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-withdraw-mini {
  border: none;
  border-radius: 10px;
  padding: 9px 15px;
  background: var(--star-lime);
  color: #062109;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

.wb-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.wb-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.wb-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--star-green), var(--star-lime));
  transition: width 0.45s ease;
}

/* Verification Bar */
.verify-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(37, 244, 238, 0.08);
  border: 1px solid rgba(37, 244, 238, 0.3);
  margin-bottom: 22px;
}

.verify-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tt-cyan);
}

.verify-bar-left strong {
  color: var(--text);
  display: block;
  font-size: 0.94rem;
}

.verify-bar-left p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.verify-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.verify-status-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--tt-cyan);
}

.btn-check-now {
  border: 1px solid rgba(37, 244, 238, 0.4);
  background: rgba(37, 244, 238, 0.16);
  color: var(--tt-cyan);
  padding: 7px 12px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

/* Toolbar & Offers */
.section-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-toolbar h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 3px;
}

.section-toolbar p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-select,
.btn-refresh {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.btn-refresh {
  cursor: pointer;
  font-weight: 600;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.offer-skel {
  height: 156px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  animation: pulseSkel 1.2s ease-in-out infinite alternate;
}

@keyframes pulseSkel {
  from { opacity: 0.5; }
  to { opacity: 0.9; }
}

.offer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.16s ease, border-color 0.18s ease;
}

.offer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(163, 255, 18, 0.35);
}

.offer-card.is-completed {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(16, 36, 23, 0.55);
}

.offer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.offer-id-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.offer-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.offer-titles {
  min-width: 0;
}

.offer-titles h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-req {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.offer-coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(163, 255, 18, 0.4);
  color: var(--star-lime);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.offer-coin-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.offer-anchor {
  margin: 0;
  font-size: 0.9rem;
  color: #dbe3ee;
  line-height: 1.4;
}

.offer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.offer-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.offer-tag.top {
  background: rgba(254, 44, 85, 0.16);
  color: #ff7c97;
}

.offer-btn {
  border: none;
  border-radius: 11px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.offer-btn.earn {
  background: linear-gradient(135deg, #b8ff29, #22c55e);
  color: #051b07;
}

.offer-btn.verifying {
  background: rgba(37, 244, 238, 0.16);
  border: 1px solid rgba(37, 244, 238, 0.4);
  color: var(--tt-cyan);
}

.offer-btn.done {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  cursor: default;
}

/* Redeem Grid */
.redeem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.redeem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.redeem-card.popular {
  border-color: rgba(163, 255, 18, 0.45);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), var(--surface));
}

.popular-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--star-lime);
  color: #062109;
}

.redeem-coin-img {
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  object-fit: contain;
  display: block;
}

.redeem-stars {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--star-lime);
}

.redeem-title {
  font-weight: 600;
  margin-top: 3px;
}

.redeem-sub {
  font-size: 0.78rem;
  color: var(--tt-cyan);
  margin-top: 4px;
}

/* History */
.history-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 20px;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.history-row:last-child {
  border-bottom: none;
}

.history-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-left img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.history-left strong {
  display: block;
  font-size: 0.94rem;
}

.history-left small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.history-amt {
  font-family: var(--font-mono);
  font-weight: 700;
}

.history-amt.plus {
  color: var(--star-lime);
}

.history-amt.minus {
  color: #fb7185;
}

/* Empty Box */
.empty-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
}

.empty-coin {
  width: 54px;
  height: 54px;
  opacity: 0.8;
  margin-bottom: 10px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 5, 10, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-sheet {
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 24px;
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-reward-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(163, 255, 18, 0.4);
  color: var(--star-lime);
  font-family: var(--font-mono);
  font-weight: 700;
}

.chip-coin {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.modal-x {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.modal-center {
  text-align: center;
}

.modal-offer-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 10px;
  border: 1px solid var(--border-strong);
}

.modal-center h2 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 1.28rem;
}

.modal-anchor {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.modal-req-box {
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(163, 255, 18, 0.08);
  border: 1px solid rgba(163, 255, 18, 0.25);
  margin-bottom: 12px;
}

.modal-req-box span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--star-lime);
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.modal-req-box p {
  margin: 0;
  font-size: 0.9rem;
}

.modal-tracking-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.45;
}

.btn-demo {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 11px;
  border: 1px solid rgba(37, 244, 238, 0.35);
  background: rgba(37, 244, 238, 0.12);
  color: var(--tt-cyan);
  font-weight: 700;
  cursor: pointer;
}

/* Toasts */
.toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 330px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid rgba(163, 255, 18, 0.4);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  font-size: 0.86rem;
}

.toast img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .wallet-hero,
  .offers-grid,
  .redeem-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topbar-tabs {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .wallet-profile-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
