@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #060B0A;
  --surface: #0E1613;
  --surface-raised: #131F1B;
  --border: #1C2B26;
  --text: #ECF7F3;
  --text-muted: #8FA39C;
  --amber: #2DD4B8;
  --amber-dim: #145F52;
  --mint: #34D399;
  --blue: #2F8FFF;
  --blue-light: #6FD8FF;
  --danger: #E8604C;
  --radius: 10px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 15%, rgba(45, 212, 184, 0.10), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(47, 143, 255, 0.10), transparent 42%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Nav */
nav.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.menu-wrap { position: relative; }

.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 14px 9px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.menu-trigger svg { flex: none; }
.menu-trigger:hover { border-color: var(--amber-dim); }
.menu-trigger .chev { transition: transform 0.15s ease; color: var(--text-muted); }
.menu-wrap.open .menu-trigger .chev,
.menu-wrap.open .menu-trigger svg:last-child { transform: rotate(180deg); }

.menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 80;
}

.menu-wrap.open .menu-panel { display: flex; flex-direction: column; gap: 4px; }

.menu-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--text);
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--amber);
  transition: background 0.15s ease, color 0.15s ease;
}

.menu-panel a svg { flex: none; }
.menu-panel a:hover { background: var(--surface); }
.menu-panel a:hover .menu-icon { background: var(--amber-dim); }

.menu-panel a.active { background: var(--amber); color: var(--bg); }
.menu-panel a.active .menu-icon { background: rgba(6, 11, 10, 0.18); color: var(--bg); }

.menu-panel-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

/* Account icon dropdown */
.account-wrap { position: relative; }

.account-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.account-trigger:hover { border-color: var(--amber-dim); }
.account-wrap.open .account-trigger { border-color: var(--amber-dim); background: var(--surface-raised); }

.account-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 80;
}

.account-wrap.open .account-panel { display: block; }

.account-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 4px 12px;
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--amber);
}

.account-details { min-width: 0; }
.account-username { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--text); }
.account-email {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-logout svg { flex: none; }
.account-logout:hover { background: var(--surface); color: var(--danger); }

.account-history-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-history-link svg { flex: none; }
.account-history-link:hover { background: var(--surface); color: var(--amber); }

/* Notification bell dropdown */
.notif-wrap { position: relative; }

.notif-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.notif-trigger:hover { border-color: var(--amber-dim); }
.notif-wrap.open .notif-trigger { border-color: var(--amber-dim); background: var(--surface-raised); }

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--danger);
  border: 1.5px solid var(--surface);
}

.notif-dot::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 999px;
  background: var(--danger);
  animation: notif-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes notif-ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  75%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .notif-dot::after { animation: none; }
}

.notif-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: 88vw;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 80;
}

.notif-wrap.open .notif-panel { display: block; }

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 10px;
  font-family: var(--font-head);
  font-size: 14px;
}

.notif-mark-all {
  border: none;
  background: transparent;
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}
.notif-mark-all:hover { text-decoration: underline; }

.notif-list { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }

.notif-empty { color: var(--text-muted); font-size: 13px; padding: 16px 8px; text-align: center; }

.notif-item {
  display: block;
  text-align: left;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}
.notif-item:hover { background: var(--surface); }
.notif-item.unread { background: var(--amber-dim); }
.notif-item.unread:hover { background: var(--amber-dim); }

.notif-item-title { font-size: 13.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.notif-item-title .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--amber); flex: none; }
.notif-item-msg { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
.notif-item-time { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--amber), #12857A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #17120a;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

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

.nav-balance {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--amber);
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #051222;
  box-shadow: 0 0 0 rgba(47, 143, 255, 0);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary:hover { box-shadow: 0 4px 22px rgba(47, 143, 255, 0.35); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); }

.btn-full { width: 100%; justify-content: center; }

/* Hero */
.hero {
  padding: 96px 32px 80px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 52px;
  line-height: 1.08;
  margin: 20px 0 20px;
  font-weight: 700;
}

.hero h1 span { color: var(--amber); }

.hero p.lede {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--amber);
}

.hero-actions { display: flex; gap: 14px; }

/* Widget card */
.widget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 3px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--amber);
}

.widget-card h3 { font-family: var(--font-head); margin: 0 0 8px; }
.widget-card p { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13.5px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); display: inline-block; margin-right: 6px; }

/* Hero balances card (logged-in state) */
.balances-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color 0.2s ease;
}
.balance-row:hover { border-color: var(--amber-dim); }

.balance-row-info { display: flex; flex-direction: row; align-items: baseline; gap: 10px; min-width: 0; text-align: center; }
.balance-row-label { font-size: 13px; color: var(--text-muted); width: 130px; text-align: right; flex-shrink: 0; }
.balance-row-amount {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  margin-left: 6px;
}
.balance-row-amount small { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-left: 2px; }

.balance-row .btn { flex-shrink: 0; }
.balance-note { margin: 4px 2px 0; padding: 0 4px; font-size: 12.5px; color: var(--text-muted); text-align: center; }
.balance-btn { width: 128px; justify-content: center; }

@media (max-width: 560px) {
  .balance-row { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; }
  .balance-row .btn, .balance-btn { width: 100%; justify-content: center; }
}

/* Section */
.section { padding: 64px 32px; border-top: 1px solid var(--border); }
.section h2 { font-family: var(--font-head); font-size: 30px; margin: 0 0 8px; }
.section .sub { color: var(--text-muted); margin: 0 0 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card .icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface-raised);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 16px;
}

.card h4 { font-family: var(--font-head); margin: 0 0 8px; }
.card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--text-muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
td { padding: 14px 12px; border-bottom: 1px solid var(--border); }
.amt { color: var(--mint); font-weight: 600; }
.method-tag { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; font-size: 12.5px; }
.time-cell { color: var(--text-muted); text-align: right; }

/* Auth forms */
.auth-shell {
  max-width: 400px;
  margin: 90px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.auth-shell h2 { font-family: var(--font-head); margin: 0 0 6px; }
.auth-shell p.sub { color: var(--text-muted); font-size: 14px; margin: 0 0 26px; }

label { display: block; font-size: 13.5px; margin: 0 0 6px; color: var(--text-muted); }
input {
  width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  margin-bottom: 18px;
}
input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }

.form-msg { font-size: 13.5px; margin-top: 14px; min-height: 18px; }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--mint); }

.switch-line { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.switch-line a { color: var(--amber); font-weight: 600; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-muted); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.btn-google { gap: 10px; }
.btn-google svg { flex-shrink: 0; }

/* Claim page */
.claim-shell { max-width: 480px; margin: 70px auto; text-align: center; }
.balance-figure { font-family: var(--font-head); font-size: 48px; margin: 6px 0 2px; }
.balance-label { color: var(--text-muted); font-size: 14px; }

.claim-btn {
  width: 100%;
  justify-content: center; /* .btn is inline-flex, so without this the label hugs one side */
  text-align: center;
  padding: 18px;
  font-size: 17px;
  border-radius: 14px;
  margin-top: 28px;
}
.claim-btn:disabled { background: var(--surface-raised); color: var(--text-muted); cursor: not-allowed; }

footer { border-top: 1px solid var(--border); padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 13.5px; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--text); }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  padding: 20px 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--text-muted);
  font-size: 20px;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-answer { padding: 0 4px 22px; color: var(--text-muted); font-size: 14.5px; max-width: 640px; }

/* Offerwall page */
.offerwall-frame-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px;
  min-height: 420px;
}
.offerwall-placeholder {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  font-size: 14.5px;
}
.offerwall-placeholder code {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--amber);
  font-size: 13px;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }

  .navcta { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .menu-trigger span { display: none; }
  .menu-trigger { padding: 9px; }
  .menu-panel { right: 0; left: auto; min-width: 220px; max-height: 70vh; overflow-y: auto; }
}

/* Header tabs: Earn / Offerwalls / Advertise (hover on desktop, tap on touch) */
/* Three-column header: logo left, tabs centered, balance/login/menu right */
nav.topbar:has(.nav-tabs) {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
nav.topbar:has(.nav-tabs) > .brand-link { justify-self: start; }
nav.topbar:has(.nav-tabs) > .navcta { justify-self: end; }

.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
}

.nav-tab-wrap { position: relative; }

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: var(--text);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-tab svg { flex: none; color: var(--amber); }
.nav-tab .chev { color: var(--text-muted); transition: transform 0.15s ease; }
.nav-tab:hover,
.nav-tab-wrap.open > .nav-tab { background: var(--surface); }
.nav-tab.active,
.nav-tab-wrap.active > .nav-tab { background: var(--surface); box-shadow: inset 0 -2px 0 var(--amber); }
.nav-tab-wrap.open > .nav-tab .chev { transform: rotate(180deg); }

.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  margin-top: 10px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 80;
}

/* invisible bridge so the panel doesn't close while the mouse crosses the gap */
.nav-panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-tab-wrap.open > .nav-panel { display: flex; flex-direction: column; gap: 4px; }
@media (hover: hover) {
  .nav-tab-wrap:hover > .nav-panel { display: flex; flex-direction: column; gap: 4px; }
  .nav-tab-wrap:hover > .nav-tab .chev { transform: rotate(180deg); }
}

/* The Earn dropdown has grown long enough to need two columns instead of
   one tall list — everything else (Offerwalls, Contests) stays single-column. */
.nav-panel.nav-panel-grid { min-width: 460px; }
.nav-tab-wrap.open > .nav-panel.nav-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
@media (hover: hover) {
  .nav-tab-wrap:hover > .nav-panel.nav-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .nav-panel.nav-panel-grid { min-width: 0; grid-template-columns: 1fr; }
  .nav-tab-wrap.open > .nav-panel.nav-panel-grid,
  .nav-tab-wrap:hover > .nav-panel.nav-panel-grid { grid-template-columns: 1fr; }
}

.nav-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s ease;
}
.nav-panel a:hover { background: var(--surface); }
.nav-panel a:hover .menu-icon { background: var(--amber-dim); }
.nav-panel a.active { background: var(--amber); color: var(--bg); }
.nav-panel a.active .menu-icon { background: rgba(6, 11, 10, 0.18); color: var(--bg); }
.nav-panel small { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.nav-panel a.active small { color: rgba(6, 11, 10, 0.7); }

/* Live status badges (Ready / counts) injected by js/nav.js into the Earn
   dropdown — empty until populated, and hidden entirely while empty so
   logged-out visitors and slow loads never show an awkward blank pill. */
.nav-item-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.nav-item-badge:empty { display: none; }
.nav-item-badge.badge-ready { background: var(--mint); border-color: var(--mint); color: var(--bg); }
.nav-panel a.active .nav-item-badge { background: rgba(6, 11, 10, 0.18); border-color: transparent; color: rgba(6, 11, 10, 0.75); }
.nav-panel a.active .nav-item-badge.badge-ready { background: var(--bg); color: var(--mint); }

/* Static "LIVE" tag next to running contests in the Contests dropdown */
.nav-item-badge.badge-live {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--mint);
  letter-spacing: 0.06em;
}
.nav-item-badge.badge-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  animation: liveDotPulse 1.6s ease-in-out infinite;
}
@keyframes liveDotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.nav-panel a.active .nav-item-badge.badge-live { background: var(--bg); border-color: transparent; color: var(--mint); }

/* Not enough room for logo + centered tabs + login/menu on one row */
@media (max-width: 1180px) {
  nav.topbar, nav.topbar:has(.nav-tabs) { display: flex; flex-wrap: wrap; row-gap: 10px; }
  .nav-tabs { order: 3; width: 100%; margin: 0; justify-content: center; flex-wrap: wrap; row-gap: 6px; }
  .nav-tab { padding: 8px 10px; font-size: 14px; }
  .nav-tab-wrap { position: static; }
  .nav-panel { left: 16px; right: 16px; min-width: 0; }
}

@media (max-width: 480px) {
  nav.topbar, nav.topbar:has(.nav-tabs) { padding: 16px 14px; }
  .nav-tabs { gap: 4px; }
  .nav-tab { padding: 7px 8px; font-size: 12.5px; gap: 5px; }
  .nav-tab svg:not(.chev) { width: 15px; height: 15px; }
}

/* Claim page: progress card under the claim button (same width as the button) */
.progress-card {
  margin-top: 24px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
}
.progress-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--amber-dim), var(--surface-raised));
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  text-align: left;
}
.progress-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}
.progress-tile {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 10px 14px;
}
.progress-tile svg { color: var(--amber); margin-bottom: 8px; }
.progress-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.progress-value { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-top: 4px; }

/* Landing page: earning methods */
.methods { text-align: center; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45,212,184,0.08), transparent 70%); }
.methods-head { max-width: 640px; margin: 0 auto 44px; }
.methods-eyebrow { display: block; margin-bottom: 12px; color: var(--amber); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.methods .methods-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 0 0 12px; }
.methods .methods-head .sub { margin: 0; }
.methods-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.method-card { display: block; padding: 24px; background: linear-gradient(160deg, rgba(19,31,27,0.9), rgba(14,22,19,0.7)); border: 1px solid var(--border); border-radius: 18px; color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s, background 0.2s; }
.method-card:hover, .method-card:focus-visible { border-color: var(--amber); transform: translateY(-3px); background: linear-gradient(160deg, rgba(20,95,82,0.35), rgba(14,22,19,0.8)); outline: none; }
.method-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; background: rgba(45,212,184,0.14); color: var(--amber); }
.method-card h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 18px; color: var(--text); }
.method-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 1000px) { .methods-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .methods-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .method-card { padding: 18px; } }
@media (max-width: 460px) { .methods-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .method-card { transition: none; } .method-card:hover { transform: none; } }

/* Contests dropdown: wide enough that each contest's label, subtitle and
   LIVE tag sit on a single row. */
.nav-panel.nav-panel-contests { min-width: 360px; }
.nav-panel.nav-panel-contests a > span:not(.menu-icon):not(.nav-item-badge) { white-space: nowrap; }
@media (max-width: 560px) {
  .nav-panel.nav-panel-contests a > span:not(.menu-icon):not(.nav-item-badge) { white-space: normal; }
}

/* SEO content blocks */
.seo-prose { max-width: 780px; color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.seo-prose h3 { color: var(--text); font-size: 18px; margin: 22px 0 8px; }
.seo-prose p { margin: 0 0 14px; }
.seo-prose a { color: var(--amber); }
.seo-prose a:hover { text-decoration: underline; }
.seo-breadcrumb { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; }
.seo-breadcrumb a { color: var(--text-muted); }
.seo-breadcrumb a:hover { color: var(--amber); }
.seo-page h1 { font-family: var(--font-head); font-size: 40px; line-height: 1.15; margin: 0 0 16px; }
.seo-page .lead { color: var(--text-muted); font-size: 17px; max-width: 720px; margin: 0 0 26px; }

/* page-title h1 (was h2) keeps the original look */
.section:not(.seo-page) h1 { font-family: var(--font-head); font-size: 30px; margin: 0 0 8px; }
.auth-shell h1 { font-family: var(--font-head); font-size: 1.5em; margin: 0 0 6px; }

/* About section: fill the full width in two columns */
.about-cols { column-count: 2; column-gap: 56px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.about-cols p { margin: 0 0 16px; break-inside: avoid-column; }
.about-cols a { color: var(--amber); }
@media (max-width: 860px) { .about-cols { column-count: 1; } }

/* Mobile only: a wide ad banner must never make the page scroll sideways */
@media (max-width: 768px) {
  html, body { overflow-x: clip; max-width: 100%; }
  [id^="adslab-banner-"] { max-width: none; }
}

/* Mobile: SEO / language pages (ar.html, hi.html, how-to-earn..., etc.) */
@media (max-width: 768px) {
  .section { padding: 40px 18px; }
  .seo-page { padding-top: 28px !important; }
  .seo-page h1 { font-size: 28px; }
  .seo-page h2 { font-size: 22px; }
  .seo-page .lead { font-size: 16px; }
  .seo-prose { font-size: 15px; max-width: 100%; }
  .seo-page .hero-actions { flex-wrap: wrap; gap: 10px; }
  .seo-page .hero-actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  footer { padding: 22px 18px; flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 10px 18px; }
}
