/* ---------------------------------------------------------------------
   Vaultline — design tokens (matched to reference screenshots)
--------------------------------------------------------------------- */
:root {
  --bg: #07080C;
  --header-bg: #0A0C12;
  --card-bg: #171B26;
  --card-border: #262B3A;
  --contract-bg: #232838;
  --track-bg: #2B3040;
  --avatar-bg: #E8E9ED;
  --dropdown-bg: #171B26;

  --white: #FFFFFF;
  --ink: #12141A;
  --ink-white: #F5F6FA;
  --ink-muted: #9AA1B4;
  --ink-faint: #6B7280;

  --blue: #4C5FFF;
  --blue-dark: #3B4CE0;
  --blue-chip-bg: rgba(76,95,255,0.16);
  --blue-chip-border: rgba(76,95,255,0.55);
  --blue-chip-text: #93A4FF;

  --green: #22C55E;
  --green-light: #4ADE80;
  --orange: #FF9F43;
  --amber-bg: #2B1D0E;
  --amber-border: #6B4A1E;
  --amber-text: #F0B45E;
  --danger: #E0473F;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-card: 20px;
  --radius-chip: 999px;
  --radius-input: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-white);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-display); margin: 0 0 8px; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------------
   Header
--------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--card-border);
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(155deg, #F2994A, #E0782B);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: none; background: none;
  display: flex; align-items: center; justify-content: center; color: #C7CCDA;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: #171B26; color: #fff; }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn.is-active { background: #171B26; border: 1.5px solid #3B4258; color: #fff; }

.mobile-nav { background: var(--header-bg); border-bottom: 1px solid var(--card-border); }
.mobile-nav[hidden] { display: none; }
.mobile-nav-inner { display: flex; flex-direction: column; padding: 22px 0 30px; gap: 28px; }
.mobile-nav-inner a { font-size: 1.3rem; font-weight: 700; color: #C7CCDA; transition: color .15s; }
.mobile-nav-inner a:hover { color: #fff; }
.follow-link { display: flex; align-items: center; gap: 10px; color: var(--orange) !important; }
.follow-link svg { width: 20px; height: 20px; fill: var(--orange); stroke: none; }

.main-nav { display: flex; align-items: center; gap: 20px; font-size: 0.92rem; font-weight: 500; }
.main-nav a { color: #C7CCDA; transition: color .15s; }
.main-nav a:hover { color: #fff; }
.nav-ghost { border: 1px solid var(--card-border); padding: 8px 14px; border-radius: var(--radius-chip); color: #fff !important; }

.site-footer { border-top: 1px solid var(--card-border); margin-top: 56px; padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.83rem; color: #676D80; }
.footer-muted { color: #4B5163; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9AA1B4;
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------------
   Flash messages
--------------------------------------------------------------------- */
.flash-stack { padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius-input); font-size: 0.9rem; font-weight: 500; }
.flash-success { background: rgba(34,197,94,0.12); color: #4ADE80; }
.flash-error { background: rgba(224,71,63,0.12); color: #F87171; }

/* ---------------------------------------------------------------------
   Hero (homepage)
--------------------------------------------------------------------- */
.hero { padding: 56px 0 28px; text-align: center; }
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 800; color: #fff;
  max-width: 18ch; margin: 0 auto 18px;
}
.hero-tagline { color: #C7CCDA; font-size: 1.05rem; font-weight: 600; margin: 0 0 16px; }
.hero-sub { max-width: 58ch; color: #9AA1B4; font-size: 0.98rem; margin: 0 auto; }

.gradient-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, #4C5FFF, #22C55E);
  color: #fff; border: none; font-weight: 700; font-size: 1rem;
  padding: 15px 34px; border-radius: var(--radius-chip);
  margin-top: 26px; transition: filter .15s, transform .1s;
}
.gradient-btn:hover { filter: brightness(1.08); }
.gradient-btn:active { transform: scale(0.99); }
.create-campaign-row { text-align: center; padding: 28px 0 24px; }

/* ---------------------------------------------------------------------
   Tabs: Active / Successful / Expired
--------------------------------------------------------------------- */
.status-tabs {
  display: flex; gap: 4px; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 5px; max-width: 640px; margin: 0 auto 18px;
}
.status-tab {
  flex: 1; text-align: center; padding: 11px 10px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 700; color: #9AA1B4; background: none; border: none;
  transition: background .15s, color .15s;
}
.status-tab.is-active { background: var(--blue); color: #fff; }
.status-tab:not(.is-active):hover { color: #fff; }

/* ---------------------------------------------------------------------
   Filter / sort dropdowns
--------------------------------------------------------------------- */
.control-row { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin: 0 auto 18px; }
.control-select {
  display: flex; align-items: center; gap: 10px;
  background: var(--dropdown-bg); border: 1px solid var(--card-border); border-radius: 12px;
  padding: 13px 16px; color: #C7CCDA; font-size: 0.95rem; font-weight: 500;
  position: relative;
}
.control-select svg.control-icon { width: 17px; height: 17px; flex-shrink: 0; stroke: #9AA1B4; fill: none; stroke-width: 1.8; }
.control-select select {
  appearance: none; background: none; border: none; color: inherit; font: inherit;
  flex: 1; cursor: pointer;
}
.control-select svg.chevron { width: 16px; height: 16px; stroke: #676D80; fill: none; stroke-width: 2; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   Warning banner
--------------------------------------------------------------------- */
.warning-banner {
  max-width: 640px; margin: 0 auto 24px;
  background: var(--amber-bg); border: 1px solid var(--amber-border);
  border-radius: 14px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start;
  color: var(--amber-text); font-size: 0.9rem; line-height: 1.5;
}
.warning-banner svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 2; }
.warning-banner strong { color: #FFC876; }

/* ---------------------------------------------------------------------
   Campaign grid + card  (matches reference screenshot)
--------------------------------------------------------------------- */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 64px;
}
.campaign-grid.is-wide { max-width: 1160px; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--ink-white);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-head { display: flex; align-items: flex-start; gap: 16px; }
.token-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--avatar-bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.token-avatar img { width: 100%; height: 100%; object-fit: cover; }
.token-avatar-fallback { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: #B7BBC7; }
.token-id { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.token-name { font-size: 1.35rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.token-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ticker { color: var(--ink-muted); font-size: 1rem; font-weight: 500; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-chip);
  font-size: 0.85rem; font-weight: 700;
  white-space: nowrap;
}
.chip-chain { background: var(--blue-chip-bg); border: 1px solid var(--blue-chip-border); color: var(--blue-chip-text); }

.card-tags { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.chip-dark { background: var(--white); color: var(--ink); letter-spacing: 0.01em; }
.chip-time {
  background: transparent; color: var(--orange); border: 1.5px solid var(--orange);
  font-variant-numeric: tabular-nums;
}
.chip-done { background: rgba(34,197,94,0.12); color: var(--green-light); border: 1.5px solid rgba(34,197,94,0.4); }
.chip-expired { background: rgba(107,114,128,0.14); color: #9AA1B4; border: 1.5px solid rgba(107,114,128,0.35); }
.icon-clock, .icon-users { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.progress-block { display: flex; flex-direction: column; gap: 10px; }
.progress-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.95rem; }
.progress-label { color: #fff; font-weight: 700; }
.progress-needed { color: var(--ink-muted); }
.progress-track { height: 8px; border-radius: 999px; background: var(--track-bg); overflow: visible; position: relative; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--green); transition: width .4s ease; position: relative; overflow: hidden; }
.progress-track::after {
  content: "";
  position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px var(--card-bg);
}
.progress-pct { color: var(--ink-muted); font-weight: 500; }
.progress-tip { color: var(--green-light); font-weight: 700; }
.progress-totals { padding-top: 2px; align-items: center; }
.raised-amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: #fff; }
.goal-amount { color: var(--ink-muted); }

.stat-row { display: flex; gap: 24px; padding: 4px 0; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; text-align: center; color: var(--ink-muted); font-size: 0.82rem; }
.stat strong { font-size: 1.25rem; color: #fff; font-family: var(--font-display); font-weight: 700; }
.stat .icon-users { color: var(--blue-chip-text); width: 18px; height: 18px; }
.stat .icon-clock { color: var(--orange); width: 18px; height: 18px; }

.contract-box { background: var(--contract-bg); border-radius: 14px; padding: 15px 16px; }
.contract-box-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--ink-muted); font-weight: 500; margin-bottom: 8px; }
.contract-address { font-family: var(--font-mono); font-size: 0.98rem; color: #fff; word-break: break-all; }
.copy-btn { background: none; border: none; padding: 4px; color: #C7CCDA; display: inline-flex; border-radius: 6px; transition: color .15s, background .15s; }
.copy-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.copy-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn.is-copied { color: var(--green-light); }

.fund-btn {
  background: var(--blue); color: #fff; border: none;
  padding: 17px; border-radius: 14px;
  font-size: 1.05rem; font-weight: 700;
  transition: background .15s, transform .1s;
}
.fund-btn:hover { background: var(--blue-dark); }
.fund-btn:active { transform: scale(0.99); }

/* ---------------------------------------------------------------------
   Empty / loading states
--------------------------------------------------------------------- */
.empty-state { text-align: center; padding: 56px 24px; color: #9AA1B4; max-width: 640px; margin: 0 auto; }
.empty-state h3 { color: #fff; }
.loading-text { text-align: center; padding: 56px 24px; color: #676D80; }

.seed-banner {
  background: var(--card-bg); border: 1px dashed var(--card-border);
  border-radius: 14px; padding: 18px 20px; margin: 0 auto 24px; max-width: 640px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.seed-banner p { margin: 0; color: #9AA1B4; font-size: 0.9rem; }

/* ---------------------------------------------------------------------
   Fund modal
--------------------------------------------------------------------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(4,5,8,0.7); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.modal-backdrop[hidden] { display: none; }
.modal { background: var(--card-bg); border: 1px solid var(--card-border); color: #fff; border-radius: 20px; padding: 32px; max-width: 420px; width: 100%; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.4rem; color: var(--ink-faint); line-height: 1; }
.modal-eyebrow { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); margin: 0 0 6px; }
.modal-token-name { font-size: 1.4rem; color: #fff; }
.modal-chain { color: var(--ink-muted); margin: 0 0 18px; font-size: 0.92rem; }
.wallet-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--contract-bg); border-radius: 12px; padding: 14px 16px; }
.wallet-box code { font-family: var(--font-mono); font-size: 0.92rem; word-break: break-all; color: #fff; }
.copy-btn-inline { flex-shrink: 0; }
.modal-note { font-size: 0.85rem; color: var(--ink-muted); margin-top: 18px; margin-bottom: 0; }

/* ---------------------------------------------------------------------
   Detail page
--------------------------------------------------------------------- */
.detail-wrap { padding: 36px 20px 72px; }
.back-link { display: inline-block; color: #9AA1B4; font-size: 0.9rem; margin-bottom: 22px; }
.back-link:hover { color: #fff; }
.detail-grid { display: grid; grid-template-columns: minmax(340px, 460px) 1fr; gap: 28px; align-items: start; max-width: 1160px; margin: 0 auto; }
.maker-panel { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 26px; }
.maker-panel h2 { color: #fff; font-size: 1.15rem; }
.maker-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin: 18px 0; }
.maker-facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: #676D80; margin-bottom: 4px; }
.maker-facts dd { margin: 0; font-weight: 600; color: #EEF0F5; }
.maker-note { color: #9AA1B4; font-size: 0.88rem; }
.status-active { color: var(--green-light); }
.status-successful { color: var(--blue-chip-text); }
.status-expired { color: var(--ink-faint); }

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Admin: auth
--------------------------------------------------------------------- */
.auth-wrap { padding: 64px 20px; display: flex; justify-content: center; }
.auth-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 34px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 1.4rem; color: #fff; }
.auth-hint { color: #676D80; font-size: 0.84rem; margin: 4px 0 0; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 600; color: #C7CCDA; }
.field em { font-weight: 400; font-style: normal; color: #676D80; }
.field input, .field select { font-family: inherit; font-size: 0.95rem; font-weight: 500; background: #10131C; border: 1px solid var(--card-border); color: #fff; border-radius: var(--radius-input); padding: 11px 14px; }
.field input.mono-input { font-family: var(--font-mono); }
.field input:focus, .field select:focus { border-color: var(--blue); }

.primary-btn { background: var(--blue); color: #fff; border: none; padding: 13px 22px; border-radius: var(--radius-input); font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; transition: background .15s; }
.primary-btn:hover { background: var(--blue-dark); }
.ghost-btn { border: 1px solid var(--card-border); color: #C7CCDA; padding: 13px 22px; border-radius: var(--radius-input); font-weight: 600; font-size: 0.95rem; }
.ghost-btn:hover { color: #fff; border-color: #3B4258; }

/* ---------------------------------------------------------------------
   Admin: dashboard + form
--------------------------------------------------------------------- */
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding: 44px 20px 26px; max-width: 1160px; margin: 0 auto; }
.admin-head h1 { color: #fff; font-size: 1.8rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--card-border); border-radius: 16px; margin: 0 auto 64px; max-width: 1160px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; padding: 14px 18px; background: var(--card-bg); color: #676D80; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.admin-table td { padding: 16px 18px; border-top: 1px solid var(--card-border); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.table-sub { display: block; color: #676D80; font-size: 0.8rem; margin-top: 2px; }
.table-wallet { font-family: var(--font-mono); color: #C7CCDA; }
.table-actions { display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.table-actions a { color: var(--blue-chip-text); font-weight: 600; }
.table-actions a:hover { text-decoration: underline; }
.link-danger { background: none; border: none; color: var(--danger); font-weight: 600; font-size: 0.9rem; padding: 0; }
.link-danger:hover { text-decoration: underline; }

.form-wrap { padding: 36px 20px 72px; max-width: 780px; margin: 0 auto; }
.form-wrap h1 { color: #fff; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field-wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; margin-top: 26px; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .header-inner { height: 60px; }
  .campaign-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   DexVault-accurate campaign page
--------------------------------------------------------------------- */
.campaign-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 64px;
}
@media (min-width: 960px) {
  .campaign-columns { grid-template-columns: minmax(360px, 640px) 1fr; }
}
.col-main, .col-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.cover-card { padding: 0; overflow: hidden; }
.cover-banner { width: 100%; aspect-ratio: 21 / 9; position: relative; overflow: hidden; background: var(--card-bg); }
.cover-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-gradient { width: 100%; height: 100%; background: linear-gradient(135deg, #3B4CE0 0%, #7B4FE0 35%, #4C5FFF 55%, #22C55E 100%); }

.hero-info { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; flex-wrap: wrap; }
.hero-avatar {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  background: var(--avatar-bg); border: 4px solid var(--card-bg);
  margin-top: -46px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 10px; }
.hero-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hero-name { font-size: 1.7rem; color: #fff; margin: 0; }
.hero-chip-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hero-countdown { text-align: right; display: flex; flex-direction: column; gap: 2px; margin-left: auto; }
.countdown-line { color: var(--orange); font-weight: 700; font-size: 1.15rem; }
.duration-line { color: var(--ink-muted); font-size: 0.85rem; }

.progress-card { gap: 16px; }
.progress-title-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.progress-card-title { font-size: 1.25rem; color: #fff; margin: 0; }
.progress-title-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-live { background: rgba(34,197,94,0.14); color: var(--green-light); border: 1px solid rgba(34,197,94,0.4); }
.big-amount { text-align: center; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: #fff; margin: 6px 0 0; }
.sol-equivalent { text-align: center; color: var(--ink-muted); margin: 0 0 6px; }

.history-card { gap: 16px; }
.history-head { display: flex; justify-content: space-between; align-items: center; }
.history-head h2 { font-size: 1.15rem; color: #fff; margin: 0; }
.refresh-link, .check-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; color: var(--blue-chip-text); font-weight: 600; font-size: 0.9rem;
}
.refresh-link svg, .check-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.history-empty { text-align: center; padding: 20px 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.history-empty-title { color: var(--ink-muted); font-size: 1.05rem; margin: 0; }
.history-empty-sub { color: var(--ink-faint); font-size: 0.85rem; margin: -8px 0 0; }
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--card-border); font-size: 0.9rem; }
.history-row:first-child { border-top: none; }
.history-sender { color: #fff; font-weight: 600; }
.history-amount { color: var(--green-light); font-weight: 600; }
.history-time { color: var(--ink-faint); }

.link-card h2, .fund-card h2, .stats-card h2 { font-size: 1.15rem; color: #fff; }
.fund-card h2 { display: flex; align-items: center; gap: 8px; }
.shield-icon { width: 18px; height: 18px; fill: none; stroke: var(--green-light); stroke-width: 2; }
.external-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; padding: 11px; border-radius: 10px; border: 1px solid var(--card-border);
  color: var(--blue-chip-text); font-weight: 600; font-size: 0.9rem;
}
.external-btn:hover { border-color: #3B4258; }
.external-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.link-section-title { font-size: 0.95rem; color: #fff; margin: 18px 0 2px; }
.muted-line { color: var(--ink-faint); font-size: 0.85rem; margin: 0 0 10px; }
.muted-line.small { margin-bottom: 12px; }
.social-list { display: flex; flex-direction: column; gap: 4px; }
.social-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; color: #C7CCDA; font-weight: 500; }
.social-row:hover { color: #fff; }
.social-row svg:first-child { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ext-icon { width: 14px; height: 14px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2; }

.qr-wrap { background: #fff; border-radius: 16px; padding: 18px; display: flex; align-items: center; justify-content: center; margin: 18px 0 12px; }
.qr-wrap img { width: 100%; max-width: 220px; height: auto; display: block; }
.qr-caption { text-align: center; color: var(--ink-faint); font-size: 0.82rem; margin: 0 0 10px; }
.wallet-pill { background: #fff; color: var(--ink); font-family: var(--font-mono); text-align: center; padding: 12px; border-radius: 12px; font-size: 0.95rem; margin-bottom: 12px; }
.wallet-actions { display: flex; gap: 10px; }
.wallet-action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #10131C; border: 1px solid var(--card-border); color: #fff;
  font-weight: 600; font-size: 0.88rem; padding: 11px; border-radius: 10px;
}
.wallet-action-btn:hover { border-color: #3B4258; }
.wallet-action-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wallet-hint { text-align: center; color: var(--ink-faint); font-size: 0.82rem; margin: 12px 0 0; }

.stats-list { display: flex; flex-direction: column; }
.stats-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--card-border); font-size: 0.92rem; color: var(--ink-muted); }
.stats-row:first-child { border-top: none; }
.stats-row strong { color: #fff; font-weight: 700; }
.status-paid, .status-unpaid { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.status-paid { color: var(--green-light); }
.status-unpaid { color: var(--danger); }
.status-paid svg, .status-unpaid svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }

.info-card { background: var(--amber-bg); border-color: var(--amber-border); }
.info-title { display: flex; align-items: center; gap: 10px; color: var(--amber-text); font-size: 1.2rem; }
.info-title svg { width: 22px; height: 22px; fill: none; stroke: var(--amber-text); stroke-width: 2; flex-shrink: 0; }
.info-para { color: #E8CFA0; font-size: 0.92rem; line-height: 1.6; margin: 0 0 14px; }
.info-para:last-child { margin-bottom: 0; }
.info-para strong { color: var(--amber-text); }
.info-warning strong { color: #FFC876; }

.clock-text { font-family: var(--font-mono); color: #676D80; font-size: 0.82rem; }

@media (max-width: 640px) {
  .hero-info { flex-direction: column; }
  .hero-countdown { text-align: left; margin-left: 0; }
  .big-amount { font-size: 2.1rem; }
}
