:root {
  --bg-main: #080A0F;
  --bg-navbar: #0D1018;
  --bg-card: #17191F;
  --bg-card-light: #202228;
  --gold: #EAC85E;
  --gold-soft: #F4D472;
  --gold-dark: #B8860B;
  --text-main: #F7F1DF;
  --text-muted: #8D93A1;
  --border-soft: rgba(255,255,255,0.08);
  --border-gold: rgba(234,200,94,0.35);
  --green: #4ADE80;
  --blue: #60A5FA;
  --red: #F87171;
  --purple: #A78BFA;
  --shadow-card: inset 0 1px 0 rgba(255,255,255,0.035), 0 18px 45px rgba(0,0,0,0.24);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --heading: "Playfair Display", Georgia, serif;
  --body: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text-main);
  background:
    radial-gradient(circle at 20% -10%, rgba(234,200,94,0.05), transparent 32%),
    linear-gradient(180deg, #090B11 0%, var(--bg-main) 45%, #07090D 100%);
  min-height: 100vh;
}

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  background: rgba(13,16,24,0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  width: fit-content;
}

.logo-circle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #F7DC75);
  color: #101014;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 8px 18px rgba(234,200,94,0.16);
}

.brand-text {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.brand-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.nav-link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 15px;
  transition: 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.035);
}

.nav-link.active {
  color: var(--gold);
  border-color: rgba(234,200,94,0.45);
  background: rgba(234,200,94,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.sign-out {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.sign-out:hover {
  color: var(--text-main);
}

.app-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 52px;
}

.app-section {
  display: none;
  animation: sectionFade 0.25s ease both;
}

.app-section.active {
  display: block;
}

@keyframes sectionFade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-kicker {
  color: #8DA0B8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}

.page-title {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(31px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.page-title span {
  color: var(--gold);
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.55;
  font-size: 15px;
}

.page-header-row,
.dashboard-grid,
.summary-grid,
.admin-stats,
.referral-stats {
  display: grid;
  gap: 16px;
}

.page-header-row {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 28px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(234,200,94,0.24);
}

.gold-border {
  border-color: var(--border-gold);
}

.dashboard-grid {
  grid-template-columns: 395px 1fr;
  align-items: start;
  margin-top: 24px;
}

.dashboard-left,
.dashboard-right {
  display: grid;
  gap: 16px;
}

.wallet-card {
  min-height: 264px;
  padding: 38px 36px;
  border-radius: 24px;
}

.wallet-card::after,
.referral-hero::after,
.promo-card::after {
  content: "";
  position: absolute;
  inset: auto -70px -92px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,200,94,0.28), transparent 62%);
  pointer-events: none;
}

.card-label {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.wallet-icon {
  position: absolute;
  right: 24px;
  top: 24px;
  color: var(--gold);
}

.balance-amount {
  margin: 0 0 18px;
  font-family: var(--heading);
  font-size: 38px;
  letter-spacing: -0.04em;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 900;
  font-size: 14px;
  transition: 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  color: #080A0F;
  background: linear-gradient(135deg, var(--gold), #F5D76E);
  box-shadow: 0 10px 24px rgba(234,200,94,0.16);
}

.btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(8,10,15,0.35);
  color: var(--text-main);
  border-color: rgba(255,255,255,0.14);
}

.btn-outline:hover {
  border-color: rgba(234,200,94,0.34);
  color: var(--gold);
}

.btn-danger {
  background: rgba(248,113,113,0.12);
  color: #FFB4B4;
  border-color: rgba(248,113,113,0.24);
}

.btn-success {
  background: rgba(74,222,128,0.12);
  color: #A7F3D0;
  border-color: rgba(74,222,128,0.24);
}

.btn.compact {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.btn.orange {
  color: #fff;
  background: linear-gradient(135deg, #E87900, #C25402);
}

.btn.gold-orange {
  color: #fff;
  background: linear-gradient(135deg, #F9C100, #CE9400);
}

.btn.fire {
  color: #fff;
  background: linear-gradient(135deg, #FF7A1A, #F04B08);
}

.btn.diamond {
  color: #fff;
  background: linear-gradient(135deg, #18BED3, #2469F3);
}

.portfolio-card {
  padding: 22px;
}

.stat-list {
  display: grid;
  gap: 12px;
}

.stat-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-card-light);
  border-radius: 13px;
}

.stat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(234,200,94,0.13);
  color: var(--gold);
  font-size: 18px;
}

.portfolio-card .stat-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 22px;
  align-items: center;
  min-height: 96px;
  padding: 14px 24px;
  border-radius: 16px;
}

.portfolio-card .stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 0;
  flex-shrink: 0;
}

.portfolio-card .stat-row > div:last-child {
  padding-left: 0;
}

.stat-icon .line-icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-icon.gold { background: rgba(245,211,93,0.12); color: #F5D35D; }
.stat-icon.green { background: rgba(74,222,128,0.12); color: var(--green); }
.stat-icon.blue { background: rgba(96,165,250,0.12); color: var(--blue); }
.stat-icon.red { background: rgba(248,113,113,0.13); color: var(--red); }
.stat-icon.purple { background: rgba(167,139,250,0.13); color: var(--purple); }

.stat-label {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.stat-value {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 900;
}

.promo-card {
  min-height: 192px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(23,25,31,0.98), rgba(23,25,31,0.88) 64%, rgba(23,25,31,0.56)),
    url("https://images.unsplash.com/photo-1596733430284-f7437764b1a9?auto=format&fit=crop&w=1000&q=80") center right/cover;
}

.promo-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}

.promo-card h2,
.empty-state h2,
.referral-preview h2,
.referral-hero h2,
.panel-title,
.animal-card h3 {
  font-family: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.promo-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  max-width: 440px;
}

.promo-card h2 span {
  color: var(--gold);
}

.promo-card p {
  color: var(--text-muted);
  margin: 0;
  max-width: 520px;
  line-height: 1.5;
  font-size: 14px;
}

.active-card {
  min-height: 330px;
  padding: 28px;
  display: grid;
  place-items: center;
}

.empty-state {
  max-width: 440px;
  text-align: center;
}

.empty-thumb {
  width: 94px;
  height: 94px;
  margin: 0 auto 20px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.32);
}

.empty-state h2 {
  font-size: 24px;
  margin: 0 0 10px;
}

.empty-state p {
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 24px;
}

.investment-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.active-investment {
  padding: 16px;
  background: var(--bg-card-light);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
}

.active-investment h3 {
  margin: 0 0 10px;
  font-family: var(--heading);
  font-size: 22px;
}

.active-investment p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 7px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.active-investment strong {
  color: var(--text-main);
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  margin-top: 10px;
  color: #B8F7CD;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.2);
  font-size: 12px;
  font-weight: 900;
}

.referral-preview {
  margin-top: 16px;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.referral-preview .gift-box,
.referral-hero .gift-box {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--gold);
  background: rgba(234,200,94,0.12);
  border: 1px solid rgba(234,200,94,0.35);
  font-size: 22px;
}

.referral-preview h2,
.referral-hero h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.referral-preview p,
.referral-hero p {
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.5;
}

.mini-stats {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 12px;
}

.mini-stats strong {
  color: var(--text-main);
}

.mini-stats .gold {
  color: var(--gold);
}

.link-copy {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 380px;
}

.fake-input {
  display: flex;
  align-items: center;
  min-height: 38px;
  border-radius: 11px;
  padding: 0 14px;
  background: var(--bg-card-light);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.balance-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  border: 1px solid var(--border-soft);
  padding: 0 16px;
  color: var(--text-muted);
  background: var(--bg-card);
  font-weight: 700;
}

.balance-pill span {
  color: var(--gold);
}

.balance-pill strong {
  color: var(--text-main);
  letter-spacing: 0.06em;
}

.filter-pills {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--bg-card);
  color: var(--text-muted);
  padding: 0 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.filter-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}

.filter-pill[data-tier="Silver"]::before { background: #AAB0B9; }
.filter-pill[data-tier="Gold"]::before { background: var(--gold); }
.filter-pill[data-tier="Elite"]::before { background: #F59E0B; }
.filter-pill[data-tier="Diamond"]::before { background: #99F6E4; }

.filter-pill:hover,
.filter-pill.active {
  color: var(--text-main);
  border-color: rgba(234,200,94,0.32);
  background: rgba(234,200,94,0.09);
}

.animal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.animal-card {
  border-radius: 17px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  transition: 0.2s ease;
}

.animal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(234,200,94,0.35);
}

.animal-image-wrap {
  position: relative;
  height: 208px;
  overflow: hidden;
}

.animal-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(8,10,15,0.36) 68%, rgba(23,25,31,0.95));
}

.animal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.86);
  transform: scale(1.02);
}

.badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--gold);
  background: rgba(77,51,0,0.66);
  border: 1px solid rgba(234,200,94,0.35);
  font-size: 13px;
  font-weight: 900;
}

.roi-badge { left: 14px; }
.tier-badge { right: 14px; color: #fff; background: rgba(184,134,11,0.65); }
.tier-badge.silver { background: rgba(111,123,142,0.88); }
.tier-badge.elite { background: rgba(178,93,22,0.85); }
.tier-badge.diamond { background: rgba(16,130,151,0.86); color: #BFF9FF; }

.animal-body {
  padding: 22px 20px 20px;
}

.tier-label {
  margin: 0 0 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.animal-card h3 {
  font-size: 25px;
  margin: 0 0 10px;
}

.animal-desc {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  min-height: 66px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 16px;
}

.info-box {
  min-height: 64px;
  padding: 12px;
  background: var(--bg-card-light);
  border: 1px solid rgba(255,255,255,0.065);
  border-radius: 11px;
}

.info-box small {
  display: block;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.info-box strong {
  color: var(--text-main);
  font-size: 17px;
}

.info-box .gold {
  color: #E8BD28;
}

.daily-rate-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.daily-rate-row strong {
  color: #E8BD28;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  margin-bottom: 16px;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #F7D66E);
}

.animal-card .btn {
  width: 100%;
  min-height: 46px;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 30px 0;
}

.summary-card {
  min-height: 116px;
  padding: 24px 22px;
}

.summary-card .stat-icon {
  position: absolute;
  right: 20px;
  top: 20px;
}

.summary-card .stat-label {
  margin: 5px 0 24px;
  font-weight: 800;
}

.summary-card .amount {
  font-family: var(--heading);
  font-size: 28px;
  color: var(--gold);
  letter-spacing: -0.04em;
}

.summary-card .amount.blue { color: var(--blue); }
.summary-card .amount.gold { color: var(--gold); }
.summary-card .amount.purple { color: var(--purple); }
.summary-card .amount.red { color: var(--red); }

.panel-card {
  padding: 0;
}

.panel-header {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.panel-title {
  margin: 0;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-family: var(--body);
  font-weight: 900;
}

.panel-count {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.data-table th,
.data-table td {
  padding: 15px 22px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  vertical-align: middle;
}

.data-table th {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.data-table td {
  color: var(--text-main);
  font-size: 14px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.empty-table {
  min-height: 115px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-align: center;
  padding: 34px;
}

.referral-hero {
  min-height: 170px;
  padding: 34px;
  margin: 30px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  border-color: var(--border-gold);
}

.referral-hero::after {
  inset: auto auto -90px -70px;
}

.referral-hero .link-copy {
  max-width: 578px;
  min-width: 0;
  margin-top: 14px;
  grid-template-columns: 1fr auto;
}

.referral-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 30px;
}

.referral-stat-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  align-items: center;
  padding: 20px;
}

.big-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-align: center;
  padding: 28px;
}

.big-empty .empty-icon {
  font-size: 42px;
  opacity: 0.36;
  margin-bottom: 8px;
}

.big-empty strong {
  display: block;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.admin-grid {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.admin-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stat-card {
  padding: 20px;
  min-height: 100px;
}

.admin-stat-card small {
  color: var(--text-muted);
  font-weight: 800;
}

.admin-stat-card strong {
  display: block;
  margin-top: 12px;
  font-family: var(--heading);
  font-size: 26px;
  color: var(--gold);
}

.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 22px;
}

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}

.status.approved,
.status.active {
  background: rgba(74,222,128,0.13);
  color: #A7F3D0;
}

.status.pending {
  background: rgba(234,200,94,0.13);
  color: var(--gold);
}

.status.rejected {
  background: rgba(248,113,113,0.13);
  color: #FFB4B4;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(10px);
}

.modal-overlay.active {
  display: grid;
}

.modal {
  position: relative;
  width: min(470px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 20px;
  background: #13161D;
  border: 1px solid var(--border-gold);
  box-shadow: 0 28px 88px rgba(0,0,0,0.56);
  padding: 26px;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
}

.modal h2 {
  margin: 0 36px 8px 0;
  font-family: var(--heading);
  font-size: 27px;
  letter-spacing: -0.04em;
}

.modal p {
  color: var(--text-muted);
  line-height: 1.55;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.form-field label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 900;
  margin-bottom: 7px;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0E1118;
  color: var(--text-main);
  outline: none;
}

.form-field input:focus,
.form-field select:focus {
  border-color: rgba(234,200,94,0.5);
  box-shadow: 0 0 0 3px rgba(234,200,94,0.08);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.proof-field {
  display: grid;
}

.upload-box {
  min-height: 104px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.14);
  background: #0E1118;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.upload-box:hover,
.upload-box.drag-over,
.upload-box:focus-within {
  border-color: rgba(234,200,94,0.55);
  background: rgba(234,200,94,0.045);
  box-shadow: 0 0 0 3px rgba(234,200,94,0.08);
}

.upload-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--gold);
  background: rgba(234,200,94,0.13);
  border: 1px solid rgba(234,200,94,0.28);
  font-size: 22px;
  font-weight: 900;
}

.upload-text strong,
.upload-text small {
  display: block;
}

.upload-text strong {
  color: var(--text-main);
  font-size: 14px;
  margin-bottom: 4px;
}

.upload-text small,
.helper-text {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.helper-text {
  margin-top: 7px;
}

.form-error {
  margin: 7px 0 0;
  color: #FFB4B4 !important;
  font-size: 12px;
  font-weight: 800;
}

.proof-preview {
  margin-top: 10px;
}

.proof-preview-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-card-light);
  border: 1px solid rgba(255,255,255,0.08);
}

.proof-thumb,
.proof-file-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.proof-thumb {
  object-fit: cover;
}

.proof-file-icon {
  display: grid;
  place-items: center;
  background: rgba(234,200,94,0.13);
  border: 1px solid rgba(234,200,94,0.25);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.proof-meta {
  min-width: 0;
}

.proof-meta strong,
.proof-meta span {
  display: block;
}

.proof-meta strong {
  color: var(--text-main);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-meta span {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 3px;
}

.proof-remove,
.proof-link {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.proof-remove:hover,
.proof-link:hover {
  color: var(--gold-soft);
}

.btn.is-loading {
  opacity: 0.78;
  pointer-events: none;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.confirm-box {
  padding: 14px;
  border-radius: 13px;
  background: var(--bg-card-light);
  border: 1px solid rgba(255,255,255,0.065);
}

.confirm-box p {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}

.confirm-box strong {
  color: var(--text-main);
}

.toast-container {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 140;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 30px));
}

.toast {
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(18,21,28,0.96);
  border: 1px solid rgba(234,200,94,0.35);
  color: var(--text-main);
  box-shadow: 0 18px 38px rgba(0,0,0,0.4);
  animation: toastIn 0.2s ease both;
  font-size: 14px;
  font-weight: 700;
}

.toast.removing {
  animation: toastOut 0.22s ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(18px); }
}

@media (max-width: 1100px) {
  .dashboard-grid,
  .admin-two-col {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .animal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .navbar {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 14px;
  }

  .brand,
  .sign-out {
    justify-self: center;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-link {
    white-space: nowrap;
  }

  .page-header-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .market-actions {
    justify-content: flex-start;
  }

  .promo-card,
  .referral-preview {
    grid-template-columns: 1fr;
  }

  .referral-preview .gift-box {
    display: none;
  }

  .link-copy {
    min-width: 0;
    width: 100%;
  }

  .admin-stats,
  .referral-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .app-shell {
    width: min(100% - 28px, 1240px);
    padding-top: 24px;
  }

  .page-title {
    font-size: 30px;
  }

  .animal-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .wallet-actions,
  .modal-actions,
  .quick-actions,
  .info-grid,
  .referral-hero,
  .referral-hero .link-copy,
  .link-copy {
    grid-template-columns: 1fr;
  }

  .promo-card,
  .wallet-card,
  .portfolio-card,
  .active-card,
  .referral-preview,
  .referral-hero {
    padding: 22px;
  }

  .animal-image-wrap {
    height: 210px;
  }

  .btn {
    width: 100%;
  }

  .proof-preview-card,
  .upload-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .proof-thumb,
  .proof-file-icon,
  .upload-icon {
    margin: 0 auto;
  }

  .panel-header {
    padding: 0 16px;
  }

  .data-table th,
  .data-table td {
    padding: 13px 16px;
  }

  .toast-container {
    top: 110px;
    right: 14px;
  }
}

/* =========================================================
   WALLET CARD FIX
   Makes wallet card match the cleaner reference layout
========================================================= */

.wallet-card {
  min-height: 264px;
  padding: 38px 36px;
  border-radius: 24px;
}

.wallet-card .card-label {
  margin-bottom: 28px;
  font-size: 18px;
  letter-spacing: 0.18em;
}

.wallet-card .balance-amount {
  margin: 0 0 28px;
  font-size: clamp(46px, 4.8vw, 60px);
  line-height: 1;
}

.wallet-icon {
  position: absolute;
  top: 42px;
  right: 38px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.wallet-actions .btn {
  min-height: 64px;
  border-radius: 16px;
  font-size: 22px;
  font-weight: 900;
}

.wallet-actions .btn-outline {
  background: rgba(8,10,15,0.25);
  border-color: rgba(255,255,255,0.14);
}


/* =========================================================
   REFERRAL PREVIEW CARD FIX
   Makes referral program match the clean reference layout
========================================================= */

.referral-preview {
  margin-top: 24px;
  min-height: 182px;
  padding: 36px 38px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: center;
  border-radius: 22px;
}

.referral-preview .gift-box,
.referral-hero .gift-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(234,200,94,0.12);
  border: 1px solid rgba(234,200,94,0.35);
  flex-shrink: 0;
}

.referral-preview-copy {
  min-width: 0;
}

.referral-preview .card-label {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: 0.18em;
}

.referral-preview h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.05;
}

.referral-preview p {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--text-muted);
}

.referral-preview .mini-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
}

.referral-preview .mini-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-copy {
  display: grid;
  grid-template-columns: minmax(300px, 435px) auto;
  gap: 14px;
  align-items: center;
}

.fake-input {
  min-height: 56px;
  max-width: 435px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-muted);
  background: var(--bg-card-light);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 13px;
  font-size: 18px;
}

.link-copy .btn {
  min-height: 56px;
  border-radius: 14px;
  font-size: 18px;
  padding: 0 26px;
}

.btn-icon,
.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: currentColor;
}

.line-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-icon .line-icon {
  width: 24px;
  height: 24px;
}

.gift-box .line-icon {
  width: 30px;
  height: 30px;
}

.btn-icon .line-icon,
.mini-icon .line-icon {
  width: 18px;
  height: 18px;
}


/* =========================================================
   RESPONSIVE FIXES
========================================================= */

@media (max-width: 991px) {
  .wallet-card {
    min-height: auto;
    padding: 30px;
  }

  .wallet-card .card-label {
    font-size: 15px;
  }

  .wallet-actions .btn {
    min-height: 54px;
    font-size: 17px;
  }

  .referral-preview {
    grid-template-columns: 64px 1fr;
    row-gap: 24px;
  }

  .referral-preview .link-copy {
    grid-column: 1 / -1;
    width: 100%;
  }

  .link-copy {
    grid-template-columns: 1fr auto;
  }

  .fake-input {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .wallet-card {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .wallet-card .balance-amount {
    font-size: 44px;
  }

  .wallet-icon {
    top: 28px;
    right: 24px;
  }

  .wallet-actions {
    grid-template-columns: 1fr;
  }

  .referral-preview {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    text-align: left;
  }

  .referral-preview .gift-box {
    width: 58px;
    height: 58px;
  }

  .referral-preview h2 {
    font-size: 26px;
  }

  .referral-preview p {
    font-size: 16px;
  }

  .referral-preview .mini-stats {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
  }

  .link-copy {
    grid-template-columns: 1fr;
  }

  .link-copy .btn,
  .fake-input {
    width: 100%;
  }
}
/* =========================================================
   COMPACT WALLET CARD FIX
   Paste this at the very bottom of styles.css
========================================================= */

.wallet-card {
  min-height: 134px;
  padding: 20px 24px;
  border-radius: 16px;
}

.wallet-card .card-label {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.wallet-card .balance-amount {
  margin: 0 0 16px;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1;
}

.wallet-icon {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.wallet-icon .line-icon {
  width: 22px;
  height: 22px;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wallet-actions .btn {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.wallet-actions .btn-outline {
  background: rgba(8, 10, 15, 0.22);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Mobile adjustment */
@media (max-width: 767px) {
  .wallet-card {
    min-height: auto;
    padding: 20px;
  }

  .wallet-card .balance-amount {
    font-size: 36px;
  }

  .wallet-actions {
    grid-template-columns: 1fr;
  }

  .wallet-actions .btn {
    min-height: 42px;
    font-size: 15px;
  }

  .wallet-icon {
    top: 22px;
    right: 20px;
  }
}
/* =========================================================
   EARNINGS TAB FIX
   Paste at the very bottom of styles.css
========================================================= */

.earnings-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 50px 0 30px;
}

.summary-card {
  position: relative;
  min-height: 172px;
  padding: 42px 32px 34px;
  border-radius: 22px;
}

.summary-card .stat-label {
  margin: 0 0 34px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 800;
}

.summary-card .amount {
  font-family: var(--heading);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.summary-card .amount.blue {
  color: var(--blue);
}

.summary-card .amount.gold {
  color: var(--gold);
}

.summary-card .amount.purple {
  color: var(--purple);
}

.summary-card .amount.red {
  color: var(--red);
}

.earning-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
}

.earning-icon.blue {
  color: #60A5FA;
  background: rgba(96, 165, 250, 0.12);
}

.earning-icon.gold {
  color: #F5D35D;
  background: rgba(245, 211, 93, 0.12);
}

.earning-icon.purple {
  color: #A78BFA;
  background: rgba(167, 139, 250, 0.13);
}

.earning-icon.red {
  color: #F87171;
  background: rgba(248, 113, 113, 0.13);
}

.line-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.earning-icon .line-icon {
  width: 20px;
  height: 20px;
}

.transaction-card {
  border-radius: 22px;
  overflow: hidden;
}

.transaction-card .panel-header {
  min-height: 72px;
  padding: 0 36px;
}

.transaction-card .panel-title {
  font-size: 15px;
  letter-spacing: 0.18em;
}

.panel-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 800;
}

.panel-count-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  color: var(--gold);
}

.panel-count-icon .line-icon {
  width: 19px;
  height: 19px;
}

.transaction-table th {
  padding: 20px 28px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.transaction-table td {
  padding: 18px 28px;
}

.transaction-empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 36px;
  color: var(--text-muted);
  font-size: 20px;
}


/* Tablet */
@media (max-width: 991px) {
  .earnings-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Mobile */
@media (max-width: 767px) {
  .earnings-summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 28px 0 22px;
  }

  .summary-card {
    min-height: 140px;
    padding: 30px 24px;
  }

  .earning-icon {
    top: 24px;
    right: 24px;
  }

  .transaction-card .panel-header {
    min-height: 64px;
    padding: 0 20px;
  }

  .transaction-card .panel-title {
    font-size: 13px;
  }

  .panel-count {
    font-size: 13px;
  }

  .transaction-empty {
    min-height: 130px;
    font-size: 16px;
  }
}
/* =========================================================
   REFERRALS TAB + NAVBAR SIGN OUT FIX
========================================================= */

.navbar {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  column-gap: 18px;
  padding: 0 20px;
}

.navbar .brand {
  display: inline-flex !important;
  justify-self: start;
  align-items: center;
}

.navbar .nav-links {
  justify-self: center;
}

.sign-out {
  justify-self: end;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  padding: 8px 0;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
}

.signout-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#referrals > .section-kicker,
#referrals > .page-title {
  display: none;
}

#referralsContent {
  padding-top: 34px;
}

.referral-hero {
  position: relative;
  min-height: 204px;
  margin: 0 0 40px;
  padding: 40px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  border-color: rgba(234, 200, 94, 0.34);
  background:
    radial-gradient(circle at 4% 84%, rgba(234, 200, 94, 0.34), transparent 10%),
    linear-gradient(120deg, rgba(234, 200, 94, 0.07), rgba(23, 25, 31, 0.96) 24%, rgba(23, 25, 31, 0.96));
}

.referral-hero .gift-box {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(234, 200, 94, 0.12);
  border: 1px solid rgba(234, 200, 94, 0.35);
}

.referral-hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.referral-hero h2 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.05;
}

.referral-hero p {
  margin: 0 0 22px;
  max-width: 780px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.45;
}

.referral-hero .referral-link-row {
  display: grid;
  grid-template-columns: minmax(280px, 530px) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  max-width: 760px;
}

.copy-link-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.line-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gift-box .line-icon {
  width: 26px;
  height: 26px;
}

.btn-icon {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
}

.btn-icon .line-icon {
  width: 18px;
  height: 18px;
}
/* =========================================================
   MARKETPLACE HEADER ACTIONS FIX
   Fixes Balance icon, Update Earnings button, and spacing
========================================================= */

#marketplace .page-header-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 28px;
}

#marketplace .market-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
}

#marketplace .balance-pill {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.09);
  background: #17191F;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

#marketplace .balance-pill .balance-label {
  color: var(--text-muted);
  font-weight: 600;
}

#marketplace .balance-pill strong {
  color: var(--text-main);
  font-weight: 900;
  letter-spacing: 0.02em;
}

#marketplace .market-action-icon {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

#marketplace .update-earnings-btn {
  min-height: 50px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(8,10,15,0.32);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

#marketplace .update-earnings-btn:hover {
  border-color: rgba(234,200,94,0.35);
  color: var(--gold);
}

#marketplace .update-earnings-btn:hover .market-action-icon {
  stroke: var(--gold);
}


/* Smaller filter pills to match the second reference image */
#marketplace .filter-pills {
  gap: 9px;
  margin: 0 0 24px;
}

#marketplace .filter-pill {
  min-height: 31px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

#marketplace .filter-pill::before {
  width: 8px;
  height: 8px;
}


/* Responsive marketplace header */
@media (max-width: 991px) {
  #marketplace .page-header-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  #marketplace .market-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  #marketplace .market-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  #marketplace .balance-pill,
  #marketplace .update-earnings-btn {
    width: 100%;
    justify-content: center;
  }
}
/* =========================================================
   FULL RESPONSIVE FIX: NAVBAR + MOBILE LAYOUT
   Paste at the very bottom of styles.css
========================================================= */

/* Prevent accidental horizontal scrolling */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Desktop navbar */
.navbar {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 20px;
}

.navbar .brand {
  justify-self: start;
}

.nav-drawer {
  display: contents;
}

.navbar .nav-links {
  justify-self: center;
}

.navbar .sign-out {
  justify-self: end;
}

.mobile-menu-toggle {
  display: none;
}

.signout-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   TABLET AND MOBILE NAVBAR
========================================================= */

@media (max-width: 900px) {
  .navbar {
    position: sticky;
    top: 0;
    z-index: 80;
    min-height: 78px;
    grid-template-columns: 1fr auto;
    padding: 0 24px;
    gap: 12px;
  }

  .navbar .brand {
    justify-self: start;
  }

  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
    justify-self: end;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted);
  }

  .mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: 0.2s ease;
  }

  .navbar.nav-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.nav-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.nav-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-drawer {
    position: fixed;
    top: 78px;
    left: 14px;
    right: 14px;
    z-index: 90;
    display: none;
    padding: 14px;
    border-radius: 18px;
    background: rgba(13, 16, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
  }

  .navbar.nav-open .nav-drawer {
    display: grid;
    gap: 12px;
  }

  .navbar .nav-links {
    width: 100%;
    display: grid;
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  .navbar .nav-link {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    text-align: left;
    border-radius: 13px;
    padding: 0 14px;
  }

  .navbar .sign-out {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    justify-content: flex-start;
    padding: 0 14px;
    border-radius: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.035);
  }

  .navbar .sign-out:hover {
    color: var(--gold);
    background: rgba(234, 200, 94, 0.08);
  }
}


/* =========================================================
   GENERAL MOBILE PAGE FIXES
========================================================= */

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 28px, 760px);
    padding: 28px 0 48px;
  }

  .page-header-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .dashboard-grid,
  .dashboard-left,
  .dashboard-right,
  .admin-two-col {
    grid-template-columns: 1fr;
  }

  .promo-card {
    grid-template-columns: 1fr;
  }

  .promo-card .btn {
    width: fit-content;
  }

  .summary-grid,
  .earnings-summary-grid,
  .admin-stats,
  .referral-stats {
    grid-template-columns: 1fr 1fr;
  }

  .animal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }

  .table-wrap {
    width: 100%;
    overflow-x: auto;
  }
}


/* =========================================================
   PHONE SIZE FIXES
========================================================= */

@media (max-width: 767px) {
  .app-shell {
    width: calc(100% - 28px);
    padding-top: 28px;
  }

  .section-kicker {
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .page-title {
    font-size: clamp(34px, 10vw, 42px);
  }

  .dashboard-grid {
    margin-top: 26px;
  }

  .card {
    border-radius: 18px;
  }

  .wallet-card {
    min-height: auto;
    padding: 30px 28px;
    border-radius: 18px;
  }

  .wallet-card .card-label {
    margin-bottom: 22px;
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .wallet-card .balance-amount {
    margin-bottom: 24px;
    font-size: clamp(42px, 12vw, 52px);
  }

  .wallet-icon {
    top: 30px;
    right: 28px;
  }

  /* Keep wallet buttons side-by-side on normal phones */
  .wallet-actions {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .wallet-actions .btn {
    min-height: 44px;
    font-size: 15px;
    border-radius: 12px;
  }

  .portfolio-card {
    padding: 24px;
  }

  .portfolio-card .stat-row {
    grid-template-columns: 64px 1fr;
    column-gap: 18px;
    min-height: 88px;
    padding: 14px 18px;
  }

  .portfolio-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .promo-card {
    min-height: auto;
    padding: 26px;
    gap: 22px;
  }

  .promo-card h2 {
    font-size: 27px;
  }

  .promo-card .btn {
    width: 100%;
  }

  .active-card {
    min-height: 300px;
    padding: 26px;
  }

  .referral-preview,
  .referral-hero {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .referral-preview .gift-box,
  .referral-hero .gift-box {
    width: 58px;
    height: 58px;
  }

  .link-copy,
  .referral-hero .link-copy,
  .referral-hero .referral-link-row {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .fake-input,
  .link-copy .btn,
  .copy-link-btn {
    width: 100%;
  }

  .summary-grid,
  .earnings-summary-grid,
  .admin-stats,
  .referral-stats,
  .animal-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 140px;
    padding: 30px 24px;
  }

  .earning-icon {
    top: 24px;
    right: 24px;
  }

  #marketplace .market-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  #marketplace .balance-pill,
  #marketplace .update-earnings-btn {
    width: 100%;
    justify-content: center;
  }

  #marketplace .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  #marketplace .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .animal-card {
    border-radius: 18px;
  }

  .animal-image-wrap {
    height: 220px;
  }

  .animal-body {
    padding: 22px;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .modal {
    width: min(100%, 460px);
    max-height: calc(100vh - 28px);
    padding: 24px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}


/* Very small phones */
@media (max-width: 380px) {
  .brand-text {
    font-size: 15px;
  }

  .logo-circle {
    width: 32px;
    height: 32px;
  }

  .wallet-actions,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card .stat-row {
    grid-template-columns: 54px 1fr;
    column-gap: 14px;
    padding: 14px;
  }

  .portfolio-card .stat-icon {
    width: 46px;
    height: 46px;
  }
}
/* =========================================================
   WALLET BUTTON ARROW FIX
========================================================= */

.wallet-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.wallet-btn-arrow {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-actions .btn-primary .wallet-btn-arrow {
  stroke: #080A0F;
}

.wallet-actions .btn-outline .wallet-btn-arrow {
  stroke: var(--text-main);
}
/* =========================================================
   FOOTER - FARMYARDZA
========================================================= */

.site-footer {
  width: 100%;
  margin-top: 60px;
  padding: 52px 28px 44px;
  background: #080A0F;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
}

.footer-top,
.footer-bottom {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: start;
  padding-bottom: 38px;
}

.footer-brand-area {
  max-width: 560px;
}

.footer-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
}

.footer-logo-circle {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #F7DC75);
  color: #101014;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 8px 18px rgba(234,200,94,0.13);
}

.footer-brand-text {
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.footer-brand-text span {
  color: var(--gold);
}

.footer-description {
  margin: 20px 0 0;
  color: #97A3B8;
  font-size: 15px;
  line-height: 1.6;
}

.footer-platform {
  min-width: 360px;
}

.footer-platform h3 {
  margin: 0 0 22px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.footer-nav-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #97A3B8;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: var(--gold);
}

.footer-bottom {
  min-height: 72px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copyright {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  color: #97A3B8;
  font-size: 14px;
  line-height: 1.6;
}

.footer-heart {
  color: var(--gold);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-legal-links a {
  color: #97A3B8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--gold);
}

/* Tablet */
@media (max-width: 900px) {
  .site-footer {
    padding: 42px 22px 34px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-platform {
    min-width: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .footer-nav {
    gap: 12px 18px;
  }

  .footer-bottom {
    gap: 18px;
  }

  .footer-copyright {
    display: block;
  }

  .footer-legal-links {
    gap: 20px;
    flex-wrap: wrap;
  }
}
/* =========================================================
   GLOBAL FADE / SCROLL REVEAL ANIMATION
========================================================= */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(2px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease,
    filter 0.75s ease;
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Slight stagger effect */
.reveal-on-scroll[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}

.reveal-on-scroll[data-reveal-delay="2"] {
  transition-delay: 0.16s;
}

.reveal-on-scroll[data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

.reveal-on-scroll[data-reveal-delay="4"] {
  transition-delay: 0.32s;
}

/* Page/tab fade animation */
.app-section.active {
  animation: sectionFadeIn 0.45s ease both;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Soft navbar entrance */
.navbar {
  animation: navbarFadeDown 0.55s ease both;
}

@keyframes navbarFadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button hover feels smoother */
.btn,
.nav-link,
.filter-pill,
.footer-nav-link,
.footer-legal-links a {
  transition:
    transform 0.22s ease,
    opacity 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.btn:hover,
.filter-pill:hover {
  transform: translateY(-1px);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
/* =========================================================
   AUTH / LOGIN SCREEN
========================================================= */

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(234,200,94,0.10), transparent 28%),
    radial-gradient(circle at 80% 90%, rgba(234,200,94,0.07), transparent 30%),
    linear-gradient(180deg, #090B11 0%, #080A0F 100%);
}

body.is-authenticated .auth-screen {
  display: none;
}

body:not(.is-authenticated) .navbar,
body:not(.is-authenticated) .app-shell,
body:not(.is-authenticated) .site-footer {
  display: none !important;
}

.auth-card {
  width: min(480px, 100%);
  padding: 34px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(234,200,94,0.12), transparent 30%),
    var(--bg-card);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-copy {
  margin-bottom: 26px;
}

.auth-copy h1 {
  margin: 0 0 10px;
  font-family: var(--heading);
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.auth-copy h1 span {
  color: var(--gold);
}

.auth-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin-bottom: 22px;
  border-radius: 15px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 900;
}

.auth-tab.active {
  color: #080A0F;
  background: linear-gradient(135deg, var(--gold), #F5D76E);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: grid;
  gap: 15px;
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
}

.auth-note {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.auth-note strong {
  color: var(--gold);
}

@media (max-width: 600px) {
  .auth-screen {
    padding: 18px;
  }

  .auth-card {
    padding: 26px 22px;
    border-radius: 20px;
  }
}
/* =========================================================
   ANIMAL CARD METRIC ICON FIX
========================================================= */

.metric-label {
  display: flex !important;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}
.metric-label + strong {
  display: block;
}

.metric-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daily-yield-icon {
  color: #E8BD28;
  stroke: #E8BD28;
}
/* =========================================================
   ACTIVE INVESTMENTS AS MARKETPLACE CARDS
========================================================= */

.active-card {
  display: block;
  place-items: unset;
  padding: 28px;
}

.active-investment-btn {
  width: 100%;
  min-height: 46px;
  color: #B8F7CD;
  background: rgba(74, 222, 128, 0.13);
  border: 1px solid rgba(74, 222, 128, 0.25);
  cursor: default;
}

.active-investment-btn:hover {
  transform: none;
  filter: none;
}

@media (max-width: 767px) {
  .active-card {
    padding: 20px;
  }

  .my-investments-grid {
    grid-template-columns: 1fr;
  }

  .active-investment-animal-card {
    max-width: 100%;
  }
}
/* =========================================================
   ACTIVE INVESTMENTS LAYOUT FIX
   Keeps empty state centered and displays investments in a grid
========================================================= */

.active-card {
  width: 100%;
  min-height: 330px;
  padding: 28px;
  display: grid;
  place-items: center;
}

/* Keep the "No Active Investments" state centered */
.active-card .empty-state {
  width: min(460px, 100%);
  margin: 0 auto;
  text-align: center;
}

/* Make active investment cards fill their grid column properly */
.active-card .active-investment-animal-card {
  width: 100%;
  max-width: none;
  height: 100%;
}

/* Prevent the active investment cards from becoming tiny */
.active-card .active-investment-animal-card .animal-image-wrap {
  height: 210px;
}

.active-card .active-investment-animal-card .animal-body {
  padding: 22px 20px 20px;
}

/* Active button styling */
.active-investment-btn {
  width: 100%;
  min-height: 46px;
  color: #B8F7CD;
  background: rgba(74, 222, 128, 0.13);
  border: 1px solid rgba(74, 222, 128, 0.25);
  cursor: default;
}

.active-investment-btn:hover {
  transform: none;
  filter: none;
}

/* Medium screens: 2 cards per row */
@media (max-width: 1180px) {
  .active-card .my-investments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 card per row */
@media (max-width: 767px) {
  .active-card {
    padding: 20px;
  }

  .active-card .my-investments-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .active-card .active-investment-animal-card {
    max-width: 100%;
  }
}
/* =========================================================
   FINAL ACTIVE INVESTMENTS FULL-WIDTH GRID FIX
========================================================= */

.full-width-active-card {
  width: 100%;
  min-height: 330px;
  margin-top: 16px;
  padding: 28px;
  display: block !important;
}

/* Empty state stays centered */
.full-width-active-card .empty-state {
  width: min(460px, 100%);
  min-height: 300px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
}

/* Purchased animals display in 3-column grid */
.full-width-active-card .my-investments-grid {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  justify-content: stretch;
}

/* Active investment cards should not shrink */
.full-width-active-card .active-investment-animal-card {
  width: 100%;
  max-width: none !important;
  min-width: 0;
  height: 100%;
}

/* Match marketplace image size */
.full-width-active-card .active-investment-animal-card .animal-image-wrap {
  height: 208px;
}

/* Match marketplace card body */
.full-width-active-card .active-investment-animal-card .animal-body {
  padding: 22px 20px 20px;
}

/* Active Investment button */
.full-width-active-card .active-investment-btn {
  width: 100%;
  min-height: 46px;
  color: #B8F7CD;
  background: rgba(74, 222, 128, 0.13);
  border: 1px solid rgba(74, 222, 128, 0.25);
  cursor: default;
}

.full-width-active-card .active-investment-btn:hover {
  transform: none;
  filter: none;
}

/* Tablet: 2 columns */
@media (max-width: 1100px) {
  .full-width-active-card .my-investments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
  .full-width-active-card {
    padding: 20px;
  }

  .full-width-active-card .my-investments-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .full-width-active-card .active-investment-animal-card .animal-image-wrap {
    height: 220px;
  }
}
/* =========================================================
   FORCE ACTIVE INVESTMENTS TO SPAN FULL DASHBOARD WIDTH
========================================================= */

.full-width-active-card {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  display: block !important;
}
/* =========================================================
   ACTIVE INVESTMENTS UNDER PROMO BANNER
========================================================= */

.right-active-card {
  width: 100%;
  min-height: 330px;
  padding: 24px;
  display: block !important;
}

/* Empty state centered */
.right-active-card .empty-state {
  width: min(460px, 100%);
  min-height: 280px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
}

/* Investments side by side under the banner */
.right-active-card .my-investments-grid {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

/* Cards fill the right-side space */
.right-active-card .active-investment-animal-card {
  width: 100%;
  max-width: none !important;
  min-width: 0;
}

/* Slightly compact cards so two fit neatly */
.right-active-card .active-investment-animal-card .animal-image-wrap {
  height: 178px;
}

.right-active-card .active-investment-animal-card .animal-body {
  padding: 18px;
}

.right-active-card .active-investment-animal-card .animal-desc {
  min-height: 58px;
  font-size: 13px;
}

.right-active-card .active-investment-animal-card .info-box {
  min-height: 58px;
  padding: 10px;
}

.right-active-card .active-investment-animal-card .info-box strong {
  font-size: 15px;
}

.right-active-card .active-investment-btn {
  width: 100%;
  min-height: 42px;
  color: #B8F7CD;
  background: rgba(74, 222, 128, 0.13);
  border: 1px solid rgba(74, 222, 128, 0.25);
  cursor: default;
}

.right-active-card .active-investment-btn:hover {
  transform: none;
  filter: none;
}

/* Smaller screens */
@media (max-width: 1100px) {
  .right-active-card .my-investments-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .right-active-card {
    padding: 20px;
  }

  .right-active-card .active-investment-animal-card .animal-image-wrap {
    height: 220px;
  }
}
/* =========================================================
   DASHBOARD REFERRAL PREVIEW FULL-WIDTH FIX
========================================================= */

.dashboard-referral-preview {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 220px;
  margin-top: 24px;
  padding: 42px 46px;
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) minmax(360px, auto);
  column-gap: 34px;
  align-items: center;
  border-radius: 22px;
}

.dashboard-referral-preview .gift-box {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.dashboard-referral-preview .referral-preview-copy {
  min-width: 0;
}

.dashboard-referral-preview .card-label {
  margin-bottom: 14px;
  font-size: 15px;
  letter-spacing: 0.2em;
}

.dashboard-referral-preview h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.dashboard-referral-preview p {
  margin: 0 0 18px;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.5;
}

.dashboard-referral-preview .mini-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 16px;
}

.dashboard-referral-preview .link-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.dashboard-referral-preview .fake-input {
  width: 100%;
  max-width: none;
  min-height: 58px;
  font-size: 18px;
}

.dashboard-referral-preview .btn {
  min-height: 58px;
  padding: 0 30px;
  font-size: 18px;
  border-radius: 14px;
  white-space: nowrap;
}

/* Tablet */
@media (max-width: 1100px) {
  .dashboard-referral-preview {
    grid-template-columns: 72px 1fr;
    row-gap: 24px;
  }

  .dashboard-referral-preview .link-copy {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .dashboard-referral-preview {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    text-align: left;
  }

  .dashboard-referral-preview .gift-box {
    width: 58px;
    height: 58px;
  }

  .dashboard-referral-preview h2 {
    font-size: 26px;
  }

  .dashboard-referral-preview p {
    font-size: 16px;
  }

  .dashboard-referral-preview .mini-stats {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
  }

  .dashboard-referral-preview .link-copy {
    grid-template-columns: 1fr;
  }

  .dashboard-referral-preview .fake-input,
  .dashboard-referral-preview .btn {
    width: 100%;
  }
}
.otp-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.otp-actions .btn {
  flex: 1;
}

#otpCode {
  letter-spacing: 0.35rem;
  font-weight: 700;
  text-align: center;
}
