:root {
  --ink: #151b2d;
  --muted: #737b8c;
  --line: #e2e6ee;
  --surface: #ffffff;
  --soft: #f6f8fb;
  --brand: #2563eb;
  --brand-purple: #5b3bff;
  --green: #00b875;
  --vixa-green: #00e676;
  --deep-navy: #0b0f2c;
  --cashback-gold: #ffc107;
  --shadow: 0 22px 70px rgba(17, 24, 39, 0.14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header, .member-header {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 54px;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.translucent {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}
.logo { display: inline-flex; align-items: center; height: 54px; }
.logo img { width: 54px; height: 54px; object-fit: contain; object-position: left center; }
.site-header nav { display: flex; gap: 22px; color: var(--muted); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; font-weight: 850; }
.text-link { color: #111; }
.dark-pill, .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  color: white;
  background: #111827;
  font-weight: 900;
}
.secondary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-weight: 850;
}

.home-header { justify-content: flex-start; }
.home-header .logo { position: static; transform: none; }
.home-header .header-actions {
  margin-left: auto;
}
.brand-wordmark {
  width: auto;
  min-width: 188px;
  gap: 10px;
  align-items: center;
}
.brand-wordmark img {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
}
.brand-wordmark span {
  color: var(--deep-navy);
  font-size: 21px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}
.brand-wordmark span::after {
  content: "BACK";
  display: block;
  color: var(--vixa-green);
  font-size: 0.68em;
  letter-spacing: 0.18em;
  margin-top: 2px;
}
.globe {
  width: 42px;
  height: 42px;
  border: 1px solid #111;
  border-radius: 50%;
  background: white;
  font-size: 18px;
}
.logout-home {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #111;
  border-radius: 999px;
  background: white;
  font-weight: 850;
}

.theme-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: linear-gradient(120deg, #ff3028 0%, #ff6748 52%, #ffb27c 100%);
}
.theme-copy {
  position: relative;
  z-index: 2;
  width: min(520px, 42vw);
  margin-left: 22vw;
  padding-top: 86px;
}
.theme-copy h1 {
  margin: 0 0 16px;
  color: white;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.02;
}
.theme-copy p {
  color: white;
  font-weight: 750;
  line-height: 1.45;
}
.black-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 22px;
  border-radius: 999px;
  color: white;
  background: #050505;
  font-weight: 900;
}
.coin {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff0a8, #ffc238 48%, #e18300);
  box-shadow: 0 4px 0 #c57100;
}
.coin-a { left: 11%; top: 48%; transform: rotate(-20deg); }
.coin-b { left: 44%; top: 32%; }
.coin-c { right: 12%; top: 17%; }
.sparkle { position: absolute; color: #fff25b; font-size: 22px; font-weight: 900; }
.sparkle-a { left: 15%; top: 18%; }
.sparkle-b { right: 23%; top: 32%; }
.hero-cards {
  position: absolute;
  right: 16vw;
  bottom: 34px;
  width: 430px;
  height: 310px;
}
.hero-cards > div {
  position: absolute;
  padding: 14px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 18px 50px rgba(30, 20, 12, 0.18);
  transform: rotate(8deg);
}
.hero-cards span { display: block; margin-bottom: 10px; font-weight: 900; }
.travel-card { left: 60px; top: 20px; width: 210px; height: 250px; }
.shop-card { left: 210px; top: 98px; width: 210px; height: 172px; }
.food-card { left: 280px; top: 175px; width: 170px; height: 118px; }
.sea, .bags, .noodles { height: calc(100% - 30px); border-radius: 10px; }
.sea { background: linear-gradient(135deg, #3ed9e8, #f7ffff 58%, #0a78a0); }
.bags { background: linear-gradient(135deg, #f1f5ff, #d4f0ff 48%, #ffc2a7); }
.noodles { background: linear-gradient(135deg, #ffbe47, #ff5d2e); }

.stat-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(1060px, calc(100vw - 48px));
  margin: -54px auto 0;
  padding: 28px 30px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 16px 40px rgba(18, 24, 40, 0.12);
}
.stat-strip div { text-align: center; }
.stat-strip strong { display: block; font-size: 24px; }
.stat-strip span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.at-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(960px, calc(100% - 48px));
  margin: -54px auto 54px;
  position: relative;
  z-index: 4;
}
.at-promo-card {
  min-height: 240px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid #ffe3bf;
  border-radius: 8px;
  background: #fff8f0;
  box-shadow: 0 18px 46px rgba(255, 139, 42, 0.16);
}
.at-promo-card.primary-promo { background: linear-gradient(135deg, #ff7a1a, #ffb046); color: white; }
.at-promo-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #ff7a1a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.at-promo-card.primary-promo span,
.at-promo-card.primary-promo p { color: rgba(255,255,255,0.88); }
.at-promo-card h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.08; }
.at-promo-card p { margin: 0 0 18px; color: #5b6475; line-height: 1.5; font-weight: 700; }
.at-promo-card a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: white;
  background: #111827;
  font-weight: 900;
}
.at-promo-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.tenant-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 18px;
  padding: 28px;
  border-radius: 14px;
  color: white;
  background:
    linear-gradient(135deg, rgba(91, 59, 255, 0.92), rgba(0, 230, 118, 0.18) 56%, rgba(11, 15, 44, 0.98)),
    #0b0f2c;
  box-shadow: 0 24px 70px rgba(11, 15, 44, 0.22);
}
.tenant-showcase[hidden] { display: none; }
.tenant-showcase-copy {
  align-self: center;
}
.tenant-showcase-copy .section-kicker { color: #00e676; }
.tenant-showcase-copy h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}
.tenant-showcase-copy p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.58;
  font-weight: 700;
}
.tenant-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tenant-card a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 118px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
.tenant-logo {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  color: #0b0f2c;
  background-color: white;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  font-size: 24px;
  font-weight: 950;
}
.tenant-card span {
  color: #ffc107;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.tenant-card h3 {
  margin: 5px 0 5px;
  font-size: 17px;
  line-height: 1.2;
}
.tenant-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tenant-card strong {
  display: inline-flex;
  min-width: 70px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0b0f2c;
  background: #ffc107;
  font-size: 12px;
  font-weight: 950;
}
.ecosystem-section { padding: 58px 24px 70px; text-align: center; background: #fff; }
.section-kicker {
  margin: 0 0 8px;
  color: #ff7a1a;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}
.ecosystem-section h2,
.theme-section-head.centered h2 { margin: 0; font-size: 28px; line-height: 1.16; }
.growth-orbit {
  position: relative;
  width: 330px;
  height: 330px;
  margin: 38px auto 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(37,99,235,0.12) 0 34%, transparent 35%),
    conic-gradient(from 20deg, #2563eb, #00e676, #ffc107, #5b3bff, #2563eb);
  box-shadow: inset 0 0 0 18px white, 0 24px 70px rgba(15, 23, 42, 0.1);
}
.growth-orbit::after {
  content: "";
  position: absolute;
  inset: 36px;
  border: 2px dashed rgba(11, 15, 44, 0.18);
  border-radius: 50%;
}
.orbit-core {
  position: absolute;
  inset: 108px;
  z-index: 2;
  display: grid;
  place-content: center;
  border-radius: 50%;
  color: white;
  background: #0b0f2c;
}
.orbit-core strong { display: block; font-size: 32px; }
.orbit-core span { display: block; font-size: 12px; color: rgba(255,255,255,0.78); }
.growth-orbit > span {
  --angle: calc(var(--i) * 60deg);
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: rotate(var(--angle)) translate(138px) rotate(calc(-1 * var(--angle))) translate(-50%, -50%);
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  color: #0b0f2c;
  background: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  font-size: 12px;
  font-weight: 900;
}
.ecosystem-grid,
.audience-section {
  display: grid;
  gap: 14px;
  width: min(960px, 100%);
  margin: 0 auto;
}
.ecosystem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ecosystem-card,
.audience-card,
.industry-card,
.article-card { border: 1px solid var(--line); border-radius: 8px; background: white; }
.ecosystem-card { padding: 22px; text-align: left; }
.ecosystem-card span { color: #ff7a1a; font-size: 12px; font-weight: 900; }
.ecosystem-card h3 { margin: 8px 0; }
.ecosystem-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.ecosystem-card a { display: inline-block; margin-top: 14px; color: var(--brand); font-weight: 900; }
.audience-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(960px, calc(100% - 48px));
  margin-bottom: 58px;
}
.audience-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 250px;
  padding: 28px;
  border-color: #ffd7a8;
}
.audience-card span { color: #ff7a1a; font-weight: 950; text-transform: uppercase; font-size: 12px; }
.audience-card h2 { margin: 12px 0 8px; font-size: 24px; }
.audience-card strong { display: block; margin-bottom: 14px; color: #0b0f2c; }
.audience-card p { color: var(--muted); line-height: 1.58; }
.audience-card a {
  align-self: flex-end;
  white-space: nowrap;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: white;
  background: #ff7a1a;
  font-weight: 900;
}
.merchant-audience a { background: #111827; }
.compact-section { padding-top: 36px; }
.theme-section-head.centered { justify-content: center; text-align: center; }
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px auto;
  max-width: 900px;
}
.industry-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  text-align: center;
}
.industry-card span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid #ffd7a8;
  border-radius: 50%;
  color: #ff7a1a;
  background: #fff8f0;
  font-size: 22px;
  font-weight: 950;
}
.industry-card small { color: var(--muted); line-height: 1.4; }
.partner-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin: 20px auto 0;
  background: var(--line);
}
.partner-logo {
  display: grid;
  min-height: 86px;
  place-items: center;
  background: #fafafa;
  color: #697084;
  font-weight: 950;
}
.partner-logo img { max-width: 140px; max-height: 52px; object-fit: contain; }
.testimonial-band {
  min-height: 290px;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  color: white;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.78), rgba(11,15,44,0.78)),
    radial-gradient(circle at 80% 10%, rgba(0,230,118,0.3), transparent 34%),
    #111827;
}
.testimonial-band > div { width: min(760px, 100%); }
.testimonial-band h2 { margin: 8px 0 16px; font-size: 30px; line-height: 1.24; }
.testimonial-band p:not(.section-kicker) { color: rgba(255,255,255,0.78); line-height: 1.62; font-size: 16px; }
.testimonial-band strong { color: #ffc107; }
.content-hub { display: grid; gap: 54px; padding: 56px 48px 72px; background: #fff; }
.hub-block { width: min(960px, 100%); margin: 0 auto; }
.article-grid,
.article-feature { display: grid; gap: 18px; }
.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; margin: 0 auto; }
.article-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-card { overflow: hidden; }
.article-card img,
.article-image-fallback { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(135deg, #ff7a1a, #ffcf7d); }
.article-card span,
.article-card h3,
.article-card p,
.article-card a { margin-left: 16px; margin-right: 16px; }
.article-card span { display: block; margin-top: 14px; color: #ff7a1a; font-size: 12px; font-weight: 900; }
.article-card h3 { font-size: 17px; line-height: 1.35; }
.article-card p { color: var(--muted); line-height: 1.5; }
.article-card a { display: inline-block; margin-bottom: 16px; color: var(--brand); font-weight: 900; }

.theme-section {
  width: min(1060px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 38px 0;
}
.theme-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.theme-section-head h2 { margin: 0; font-size: 26px; }
.theme-section-head a { color: var(--brand); font-weight: 850; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.brand-card { position: relative; min-width: 0; }
.boost {
  position: absolute;
  top: -8px;
  left: 0;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 999px;
  color: white;
  background: #6157ff;
  font-size: 11px;
  font-weight: 900;
}
.brand-logo {
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}
.brand-card h3 { margin: 10px 0 2px; font-size: 13px; color: #4b5565; }
.brand-card strong { display: block; font-size: 13px; }
.brand-card small { display: block; margin-top: 3px; color: var(--muted); }

.split-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 26px;
}
.split-story article {
  min-height: 390px;
  padding: 70px 10vw;
  text-align: center;
}
.split-story article:first-child { background: #e7f8ff; }
.split-story article:last-child { background: #e9faef; }
.split-story h2 { margin: 28px auto 12px; max-width: 430px; font-size: 28px; line-height: 1.15; }
.split-story p { max-width: 520px; margin: 0 auto; color: var(--muted); line-height: 1.55; }
.floating-tags { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.floating-tags span {
  padding: 9px 18px;
  border-radius: 999px;
  background: white;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(18,24,40,0.08);
}
.phone-reward {
  display: grid;
  place-items: center;
  width: 150px;
  height: 190px;
  margin: 0 auto;
  border-radius: 28px;
  color: white;
  background: linear-gradient(180deg, #ff522f, #151b2d);
  box-shadow: var(--shadow);
}
.phone-reward span { padding: 6px 10px; border-radius: 999px; color: #111; background: white; font-weight: 900; }
.phone-reward strong { max-width: 120px; font-size: 14px; }

.process-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 420px;
}
.process-art { position: relative; min-height: 260px; }
.reward-bubble {
  position: absolute;
  left: 38%;
  top: 30px;
  padding: 18px;
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
  font-size: 24px;
  font-weight: 900;
}
.reward-bubble span { display: block; color: var(--muted); font-size: 13px; }
.reward-bubble.second { left: 26%; top: 132px; }
.process-list { display: grid; gap: 28px; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 16px; color: #a0a7b5; font-weight: 750; }
.process-list li:nth-child(2) { color: var(--ink); font-weight: 900; }
.process-list span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f0f2f6; }
.process-list li:nth-child(2) span { color: white; background: #050505; }

.app-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 380px;
  padding: 60px 18vw;
  background: #ffd8d2;
}
.app-band h2 { max-width: 430px; font-size: 30px; line-height: 1.18; }
.app-band p { max-width: 430px; color: #374151; line-height: 1.55; font-weight: 750; }
.store-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.store-buttons span { display: grid; place-items: center; min-width: 92px; min-height: 42px; padding: 0 12px; border-radius: 8px; color: white; background: #050505; font-weight: 900; }
.phone-stack { width: 190px; height: 260px; margin: 0 auto; border-radius: 34px; background: linear-gradient(180deg, #ff5130, #fff); box-shadow: var(--shadow); }

.coupon-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.coupon-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.coupon-card span { display: inline-block; padding: 6px 10px; border: 1px dashed var(--green); border-radius: 8px; color: var(--green); font-weight: 900; }
.coupon-card h3 { font-size: 15px; }
.coupon-card p { color: var(--muted); font-size: 13px; line-height: 1.45; }

.theme-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 44px 18vw;
  color: white;
  background: #050505;
}
.theme-footer h3 { margin-top: 0; font-size: 14px; }
.theme-footer a { display: block; margin: 10px 0; color: rgba(255,255,255,0.72); font-size: 13px; }
.cloud { display: inline-flex; padding: 8px 12px; border-radius: 6px; color: #333; background: #ddd; font-size: 12px; font-weight: 900; }
.theme-footer select { display: block; margin-top: 18px; width: 160px; height: 38px; border-radius: 8px; padding: 0 10px; }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 72px 12vw;
  background: linear-gradient(135deg, #ff3829 0%, #ff9063 56%, #ffe0ba 100%);
}
.home-hero h1 {
  max-width: 620px;
  margin: 0 0 18px;
  color: white;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.98;
}
.home-hero p { max-width: 580px; color: rgba(255,255,255,0.86); font-size: 18px; line-height: 1.55; }
.eyebrow { margin: 0 0 12px; color: #ffe680; font-size: 13px; text-transform: uppercase; font-weight: 900; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.hero-card {
  padding: 22px;
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}
.hero-card img { display: block; width: 100%; border-radius: 10px; margin-bottom: 18px; }
.hero-card span { color: var(--muted); }
.hero-card strong { display: block; margin-top: 8px; font-size: 34px; }

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(12, 16, 26, 0.42), rgba(12, 16, 26, 0.42)),
    linear-gradient(135deg, #ffd4cb 0%, #fff1ef 48%, #ffd4cb 100%);
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 440px) auto;
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 44px 12vw;
}
.auth-copy h1 { font-size: 38px; line-height: 1.15; margin: 0 0 18px; }
.auth-copy p { color: #303747; font-weight: 750; line-height: 1.55; }
.auth-card {
  position: relative;
  display: grid;
  grid-template-columns: 292px 370px;
  min-height: 500px;
  overflow: hidden;
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
}
.close {
  position: absolute;
  z-index: 4;
  right: 14px;
  top: 10px;
  color: white;
  font-size: 30px;
}
.auth-side {
  display: grid;
  grid-template-rows: 108px 1fr auto;
  background: white;
}
.auth-side.faded { opacity: 0.45; }
.side-head { padding: 26px 32px; color: white; background: #030303; }
.side-head span { display: block; margin-bottom: 7px; font-weight: 750; }
.side-head img { width: 142px; height: 56px; object-fit: contain; object-position: left center; }
.cash-art { position: relative; min-height: 210px; background: linear-gradient(90deg, white 0 72%, #f8fbff 72%); }
.art-hand {
  position: absolute;
  left: 48px;
  top: 82px;
  width: 112px;
  height: 72px;
  border: 4px solid #111;
  border-right: 0;
  border-bottom: 0;
  border-radius: 70% 0 0 0;
  transform: skewX(-18deg) rotate(-8deg);
}
.art-bill {
  position: absolute;
  left: 145px;
  top: 82px;
  display: grid;
  place-items: center;
  width: 90px;
  height: 62px;
  color: #31518a;
  border: 4px solid #657ab2;
  background: #dce5ff;
  font-size: 28px;
  font-weight: 900;
  transform: rotate(13deg);
}
.art-check {
  position: absolute;
  left: 200px;
  top: 64px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  background: #ff623f;
  font-weight: 900;
}
.auth-side p { padding: 0 32px 34px; color: #7b8496; line-height: 1.55; }
.auth-form { padding: 46px 50px 34px; position: relative; }
.auth-form h2 { margin: 4px 0 18px; color: #4d5568; text-align: center; font-size: 25px; line-height: 1.08; }
.country { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 18px; color: #778091; font-size: 13px; }
.country select { height: 31px; min-width: 116px; padding: 0 14px; border: 1px solid #111; border-radius: 999px; background: white; font-weight: 850; }
.auth-form form { display: grid; gap: 12px; }
.auth-form input {
  height: 38px;
  padding: 0 14px;
  border: 1px solid #ccd3df;
  border-radius: 999px;
  outline: 0;
}
.auth-form form button {
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #050505;
  font-weight: 900;
}
.referral {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44px;
  border: 1px solid #7aafff;
  color: #1574ee;
  background: #f7fbff;
  font-weight: 850;
}
.register-card .auth-form { padding-top: 66px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #999; font-weight: 850; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #eceff3; }
.social-row { display: flex; justify-content: center; gap: 34px; margin-bottom: 22px; }
.social {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #111;
  border-radius: 50%;
  font-size: 27px;
  font-weight: 950;
}
.facebook { color: #1877f2; }
.google { color: #4285f4; }
.social-stack { display: grid; gap: 10px; margin-top: 14px; }
.social-option {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  border: 1px solid #111;
  border-radius: 999px;
  font-weight: 850;
}
.social-option::before { margin-right: 12px; font-weight: 950; }
.social-option.google::before { content: "G"; }
.social-option.facebook::before { content: "f"; font-size: 20px; }
.social-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.35);
}
.terms { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin-top: 16px; color: #6f788c; font-size: 13px; line-height: 1.45; }
.switch { margin: 12px 0 0; text-align: center; color: #697184; font-weight: 750; }
.switch a { color: #1476ed; font-weight: 900; }
.form-error { min-height: 18px; margin: 0; color: #dc2626; text-align: center; font-size: 13px; }

.member-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}
.member-header .brand-wordmark { min-width: 188px; }
.member-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  width: min(520px, 42vw);
  height: 48px;
  padding-left: 22px;
  border-radius: 999px;
  background: #f0f1f4;
}
.member-search input { min-width: 0; border: 0; outline: 0; background: transparent; }
.member-search button { border: 0; border-radius: 50%; color: white; background: #050505; }
.member-right { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 850; }
.member-right button { height: 36px; padding: 0 14px; border: 1px solid #111; border-radius: 999px; background: white; font-weight: 850; }
.member-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #4b5565;
  background: #f5f7fb;
}
.member-pill.active {
  color: white;
  background: #111827;
}
.account-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: calc(100vh - 64px); background: var(--soft); }
.sidebar { padding: 26px 22px; border-right: 1px solid var(--line); background: white; }
.sidebar h2 { margin: 0 0 18px; }
.wallet-mini {
  min-height: 164px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, #5f61ff, #25336d);
  box-shadow: 0 8px 20px rgba(38, 51, 109, 0.25);
}
.wallet-mini span, .wallet-mini small { display: block; color: rgba(255,255,255,0.82); }
.wallet-mini strong { display: block; margin: 14px 0 36px; font-size: 28px; }
.sidebar nav { display: grid; }
.sidebar nav a { min-height: 38px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; color: #202633; font-size: 14px; }
.sidebar nav a:hover, .sidebar nav a.active { background: #f0f5ff; color: #155eef; font-weight: 850; }
.account-content { padding: 28px; display: grid; gap: 18px; align-content: start; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); }
.panel h1 { margin: 0 0 20px; font-size: 32px; }
.panel h2 { margin: 0 0 10px; }
.profile-list { display: grid; gap: 12px; margin: 0; }
.profile-list div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.profile-list dt { color: var(--muted); }
.profile-list dd { margin: 0; font-weight: 850; }
.profile-list a { color: var(--brand); overflow-wrap: anywhere; }
.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.profile-summary div, .status-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbff;
}
.profile-summary span, .status-card span, .status-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.profile-summary strong, .status-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}
.profile-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}
.profile-form-wide { max-width: 680px; }
.profile-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}
.profile-form input {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
}
.profile-form button {
  justify-self: start;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #111827;
  font-weight: 900;
}
.form-error.success { color: var(--green); }
.activity-hero p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.activity-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.activity-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbff;
}
.activity-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.activity-stats strong {
  display: block;
  font-size: 20px;
}
.activity-list { display: grid; gap: 12px; margin-top: 16px; }
.status-grid, .challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.activity-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.activity-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}
.activity-item b {
  display: block;
  text-align: right;
  color: var(--green);
  font-size: 18px;
}
.activity-item em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  text-align: right;
}
.empty { color: var(--muted); }
.muted-text { color: var(--muted); line-height: 1.55; }
.source-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 70px;
}
.source-hero {
  padding: 44px 0 26px;
}
.source-hero h1 {
  max-width: 780px;
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.05;
}
.source-hero p:not(.section-kicker) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}
.source-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
  margin-bottom: 18px;
}
.source-tools label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.source-tools input,
.source-tools select {
  height: 44px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: 0;
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.account-source-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.account-source-tools {
  margin-bottom: 18px;
}
.source-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.source-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
.source-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.source-meta,
.source-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.source-meta span,
.source-footer span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.source-meta b {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0f7a42;
  background: #dcfce7;
  font-size: 12px;
}
.source-card h2 {
  margin: 8px 0;
  font-size: 20px;
}
.source-card p {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}
.source-footer strong {
  color: var(--green);
}
.source-card button,
.mini-action,
.mini-copy {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #111827;
  font-weight: 900;
}
.source-card button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.point-product-logo span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: white;
  background: linear-gradient(135deg, var(--brand-purple), var(--green));
  font-weight: 950;
}
.point-product-card .source-meta b {
  color: #6b3b00;
  background: #fff3c4;
}
.point-plus { color: var(--green); }
.point-minus { color: #ef4444; }
.generated-link-item {
  align-items: flex-start;
}
.generated-link-item > div:last-child {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.tracking-url {
  max-width: 720px;
  overflow-wrap: anywhere;
}
.mini-copy {
  border: 1px solid var(--line);
  color: #111827;
  background: white;
}
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.notice-box {
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #eff6ff;
}
.notice-box h3 { margin-top: 0; }
.notice-box p { color: #38506f; line-height: 1.55; }
.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 18px 0 8px;
}
.copy-row input {
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.copy-row button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #111827;
  font-weight: 900;
}
.challenge-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.challenge-card span {
  display: inline-block;
  padding: 6px 10px;
  border: 1px dashed var(--green);
  border-radius: 8px;
  color: var(--green);
  font-weight: 900;
}
.challenge-card h3 { margin-bottom: 8px; font-size: 16px; }
.challenge-card p, .challenge-card small { color: var(--muted); line-height: 1.45; }
.settings-list { display: grid; gap: 12px; max-width: 620px; margin: 18px 0; }
.settings-list label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.settings-list input { width: 20px; height: 20px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.faq-list summary { cursor: pointer; font-weight: 900; }
.faq-list p { color: var(--muted); line-height: 1.55; }
.admin-console .admin-section { display: none; }
.admin-console .admin-section.active { display: block; }
.admin-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.mini-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.mini-list span {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-table-wrap { overflow-x: auto; margin-top: 18px; }
.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 850;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  vertical-align: top;
}
.admin-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.admin-table select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: white;
}
.admin-table button {
  min-height: 32px;
  margin: 0 4px 4px 0;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #111827;
  font-weight: 850;
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}
.admin-form.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-form input,
.admin-form select,
.admin-form textarea {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}
.admin-form textarea {
  grid-column: span 2;
  min-height: 86px;
  padding-top: 10px;
  resize: vertical;
}
.admin-form button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #111827;
  font-weight: 900;
}
.admin-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.admin-actions-row button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: white;
  background: #111827;
  font-weight: 900;
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}
.inline-check input { width: 18px; min-height: 18px; }
.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.admin-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.admin-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f3f4f6;
}
.admin-card span,
.admin-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.admin-card h3 { margin: 8px 0; font-size: 16px; }
.admin-card p { color: #4b5565; line-height: 1.45; }
.admin-card a { display: inline-block; margin-top: 10px; color: var(--brand); font-weight: 850; }
.admin-member-table { min-width: 1180px; }
.admin-member-table td:first-child strong {
  display: block;
  margin-bottom: 4px;
}
.affiliate-link-table { min-width: 1080px; }
.homepage-content-table { min-width: 1120px; }
.link-title-cell {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.link-title-cell img,
.link-title-cell .image-placeholder {
  width: 74px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}
.link-title-cell strong,
.link-title-cell a {
  display: block;
}
.link-title-cell small {
  max-width: 520px;
  max-height: 38px;
  overflow: hidden;
}
.link-title-cell a {
  margin-top: 5px;
  color: var(--brand);
  font-weight: 850;
}
.admin-dialog {
  width: min(720px, calc(100vw - 32px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow);
}
.admin-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.admin-dialog-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  background: white;
}
.admin-dialog-card h2,
.admin-dialog-card .form-error,
.dialog-actions {
  grid-column: 1 / -1;
}
.admin-dialog-card h2 { margin: 0 0 4px; }
.admin-dialog-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 750;
}
.admin-dialog-card input,
.admin-dialog-card select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
}
.admin-dialog-card select[multiple] {
  min-height: 112px;
  padding: 8px 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.dialog-actions button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #111827;
  font-weight: 900;
}
.dialog-actions button:first-child {
  color: #111827;
  background: #eef2f7;
}
.media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.compact-copy {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 12px;
}
.compact-copy input { font-size: 12px; }

@media (max-width: 900px) {
  .site-header, .member-header { padding: 0 20px; }
  .site-header nav, .member-right { display: none; }
  .brand-wordmark { min-width: 158px; }
  .brand-wordmark img { width: 46px; height: 46px; }
  .brand-wordmark span { font-size: 18px; }
  .theme-copy { width: auto; margin: 0; padding: 58px 24px 24px; }
  .theme-hero { min-height: 620px; }
  .hero-cards { left: 20px; right: auto; bottom: 26px; transform: scale(0.82); transform-origin: left bottom; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; margin-top: -36px; }
  .brand-grid, .coupon-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-story, .app-band, .theme-footer { grid-template-columns: 1fr; }
  .split-story article { padding: 54px 24px; }
  .app-band { padding: 48px 24px; }
  .theme-footer { padding: 36px 24px; }
  .at-hero-grid,
  .ecosystem-grid,
  .audience-section,
  .industry-grid,
  .article-grid,
  .article-grid.small,
  .article-feature { grid-template-columns: 1fr; }
  .at-promo-card { grid-template-columns: 1fr; }
  .at-promo-card img { max-width: 160px; }
  .growth-orbit { transform: scale(0.86); margin-top: 18px; margin-bottom: 12px; }
  .partner-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero, .auth-layout { grid-template-columns: 1fr; padding: 44px 20px; }
  .hero-card { display: none; }
  .auth-copy { display: none; }
  .auth-card { grid-template-columns: 1fr; width: 100%; }
  .auth-side { display: none; }
  .close { color: #111; }
  .account-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; border-right: 0; border-bottom: 1px solid var(--line); }
  .member-search { width: min(100%, 420px); }
  .activity-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-summary, .status-grid, .challenge-grid, .split-panel { grid-template-columns: 1fr; }
  .source-grid, .account-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-tools { grid-template-columns: 1fr; }
  .admin-grid-two, .admin-form, .admin-form.compact, .admin-card-grid { grid-template-columns: 1fr; }
  .admin-form textarea { grid-column: auto; }
}

@media (max-width: 560px) {
  .header-actions { gap: 10px; }
  .text-link { display: none; }
  .theme-copy h1 { font-size: 40px; }
  .theme-hero { min-height: 560px; }
  .hero-cards { transform: scale(0.66); }
  .stat-strip, .brand-grid, .coupon-row { grid-template-columns: 1fr; }
  .at-hero-grid { margin-top: -24px; }
  .audience-card { flex-direction: column; }
  .growth-orbit { width: 292px; height: 292px; }
  .growth-orbit > span { transform: rotate(var(--angle)) translate(120px) rotate(calc(-1 * var(--angle))) translate(-50%, -50%); }
  .orbit-core { inset: 94px; }
  .activity-stats { grid-template-columns: 1fr; }
  .activity-item { align-items: flex-start; flex-direction: column; }
  .activity-item b, .activity-item em { text-align: left; }
  .source-page { width: min(100% - 28px, 1180px); }
  .source-hero h1 { font-size: 34px; }
  .source-grid, .account-source-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body { overflow-x: hidden; }
  *,
  *::before,
  *::after {
    min-width: 0;
  }
  .site-header,
  .member-header {
    min-height: auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 10px 16px;
  }
  .home-header .header-actions {
    order: 2;
    width: 100%;
    margin-left: 0;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .home-header .header-actions::-webkit-scrollbar,
  .sidebar nav::-webkit-scrollbar { display: none; }
  .home-header .header-actions > * {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .member-header .brand-wordmark {
    min-width: 132px;
  }
  .member-search {
    order: 3;
    width: 100%;
    height: 44px;
    padding-left: 16px;
  }
  .account-layout {
    min-height: auto;
  }
  .sidebar {
    padding: 14px 16px 12px;
  }
  .sidebar h2 {
    margin-bottom: 10px;
    font-size: 20px;
  }
  .wallet-mini {
    min-height: 112px;
    margin-bottom: 12px;
    padding: 14px;
  }
  .wallet-mini strong {
    margin: 8px 0 18px;
    font-size: 23px;
  }
  .sidebar nav {
    display: flex;
    gap: 8px;
    margin: 0 -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sidebar nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    white-space: nowrap;
  }
  .account-content {
    padding: 16px;
    gap: 14px;
  }
  .panel {
    padding: 18px;
    border-radius: 8px;
  }
  .panel h1 {
    margin-bottom: 14px;
    font-size: 28px;
    line-height: 1.12;
  }
  .panel h2 {
    font-size: 20px;
    line-height: 1.2;
  }
  .profile-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .profile-list dd,
  .tracking-url {
    overflow-wrap: anywhere;
  }
  .source-page {
    width: min(100% - 32px, 1180px);
    padding: 18px 0 48px;
  }
  .source-hero {
    padding: 22px 0 18px;
  }
  .source-hero h1 {
    font-size: 36px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .source-card {
    padding: 16px;
    gap: 12px;
    overflow: hidden;
  }
  .at-promo-card > div,
  .ecosystem-card,
  .audience-card,
  .article-card,
  .source-card,
  .auth-card,
  .auth-form {
    max-width: 100%;
  }
  .source-card h2,
  .source-card p {
    overflow-wrap: anywhere;
  }
  .source-card p {
    min-height: 0;
  }
  .source-card button,
  .mini-action,
  .mini-copy {
    min-height: 42px;
  }
  .generated-link-item > div:last-child {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }
}

@media (max-width: 560px) {
  .site-header,
  .member-header {
    padding: 8px 12px;
  }
  .brand-wordmark {
    min-width: 124px;
  }
  .brand-wordmark img {
    width: 42px;
    height: 42px;
  }
  .brand-wordmark span {
    font-size: 16px;
  }
  .home-header .header-actions {
    gap: 8px;
  }
  .member-pill,
  .dark-pill,
  .logout-home,
  .secondary,
  .primary {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
  .globe {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }
  .theme-copy {
    padding: 42px 18px 18px;
  }
  .theme-copy h1 {
    max-width: 12ch;
    font-size: 38px;
    line-height: 1.04;
  }
  .theme-copy p {
    max-width: 320px;
    font-size: 15px;
  }
  .theme-hero {
    min-height: 500px;
  }
  .hero-cards {
    left: 12px;
    bottom: 18px;
    transform: scale(0.58);
  }
  .stat-strip {
    width: min(100% - 24px, 1060px);
    padding: 18px;
    border-radius: 12px;
  }
  .stat-strip strong {
    font-size: 21px;
  }
  .theme-section,
  .compact-section,
  .ecosystem-section {
    padding-left: 14px;
    padding-right: 14px;
  }
  .theme-section-head {
    align-items: flex-start;
    gap: 10px;
  }
  .theme-section-head h2,
  .ecosystem-section h2 {
    font-size: 26px;
    line-height: 1.15;
  }
  .at-hero-grid {
    width: min(100% - 24px, 960px);
    gap: 12px;
    margin-bottom: 36px;
  }
  .at-promo-card {
    min-height: auto;
    padding: 18px;
  }
  .at-promo-card {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .at-promo-card img {
    display: none;
  }
  .at-promo-card h2 {
    font-size: 22px;
    line-height: 1.14;
  }
  .at-promo-card p {
    font-size: 14px;
  }
  .at-promo-card a,
  .black-cta {
    justify-content: center;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .growth-orbit {
    width: 280px;
    height: 280px;
    transform: none;
  }
  .growth-orbit > span {
    transform: rotate(var(--angle)) translate(114px) rotate(calc(-1 * var(--angle))) translate(-50%, -50%);
    font-size: 11px;
  }
  .orbit-core {
    inset: 88px;
  }
  .app-band,
  .split-story article,
  .theme-footer {
    padding: 34px 16px;
  }
  .source-page {
    width: min(100% - 24px, 1180px);
    padding-top: 12px;
  }
  .source-hero h1 {
    font-size: 28px;
    max-width: 100%;
  }
  .source-hero p:not(.section-kicker) {
    font-size: 15px;
  }
  .source-tools input,
  .source-tools select {
    height: 42px;
  }
  .source-meta,
  .source-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .source-logo {
    width: 52px;
    height: 52px;
  }
  .source-card h2 {
    font-size: 17px;
    line-height: 1.25;
  }
  .source-card button {
    width: 100%;
  }
  .account-content {
    padding: 12px;
  }
  .panel {
    padding: 16px;
  }
  .panel h1 {
    font-size: 25px;
  }
  .activity-stats div,
  .profile-summary div,
  .status-card {
    padding: 14px;
  }
  .activity-stats strong,
  .profile-summary strong,
  .status-card strong {
    font-size: 18px;
  }
  .copy-row,
  .compact-copy,
  .generated-link-item > div:last-child {
    grid-template-columns: 1fr;
  }
  .copy-row button,
  .profile-form button {
    width: 100%;
    justify-self: stretch;
  }
  .admin-dialog-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .home-hero {
    min-height: auto;
    padding: 42px 18px 34px;
  }
  .home-hero h1 {
    max-width: 10ch;
    font-size: 38px;
    line-height: 1.05;
  }
  .home-hero p {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions a {
    justify-content: center;
    width: 100%;
  }
  .ecosystem-card h3,
  .at-promo-card h2,
  .at-promo-card p {
    overflow-wrap: anywhere;
  }
  .auth-layout {
    min-height: calc(100vh - 58px);
    padding: 140px 12px 42px;
  }
  .auth-card {
    width: 100%;
    max-width: calc(100vw - 24px);
    min-height: auto;
    border-radius: 10px;
  }
  .auth-form {
    padding: 38px 18px 34px;
  }
  .auth-form h2 {
    font-size: 22px;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }
  .country {
    flex-wrap: wrap;
    gap: 8px;
    text-align: center;
  }
  .auth-form input,
  .auth-form form button {
    width: 100%;
    max-width: 100%;
  }
  .divider {
    gap: 12px;
  }
}

@media (max-width: 390px) {
  .theme-copy h1 {
    font-size: 34px;
  }
  .hero-cards {
    transform: scale(0.52);
  }
  .source-hero h1,
  .panel h1 {
    font-size: 24px;
  }
  .member-pill,
  .dark-pill,
  .logout-home {
    font-size: 12px;
  }
  .home-hero h1 {
    font-size: 34px;
  }
  .source-hero h1 {
    font-size: 24px;
  }
  .auth-form {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (min-width: 901px) {
  .mobile-menu-toggle,
  .mobile-menu-backdrop {
    display: none !important;
  }
}

@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }
  .mobile-menu-toggle {
    position: fixed;
    left: 14px;
    bottom: 16px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: #111827;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.28);
    font-weight: 900;
  }
  .mobile-menu-toggle span,
  .mobile-menu-toggle span::before,
  .mobile-menu-toggle span::after {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }
  .mobile-menu-toggle span {
    position: relative;
  }
  .mobile-menu-toggle span::before,
  .mobile-menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .mobile-menu-toggle span::before {
    top: -6px;
  }
  .mobile-menu-toggle span::after {
    top: 6px;
  }
  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    border: 0;
    background: rgba(15, 23, 42, 0.44);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }
  body.menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .account-layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    width: min(86vw, 330px);
    max-width: calc(100vw - 28px);
    padding: 20px 18px 24px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 24px 0 70px rgba(15, 23, 42, 0.22);
    transform: translateX(calc(-100% - 8px));
    transition: transform 180ms ease;
  }
  body.menu-open .sidebar {
    transform: translateX(0);
  }
  .sidebar h2 {
    margin-bottom: 12px;
    padding-right: 48px;
  }
  .wallet-mini {
    min-height: 116px;
    margin-bottom: 14px;
  }
  .sidebar nav {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .sidebar nav a {
    width: 100%;
    min-height: 42px;
    flex: initial;
    justify-content: flex-start;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    white-space: normal;
  }
  .activity-hero .activity-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .activity-hero .activity-stats div {
    padding: 13px;
  }
  .activity-hero .activity-stats span {
    margin-bottom: 5px;
    font-size: 12px;
  }
  .activity-hero .activity-stats strong {
    font-size: 18px;
  }
}

@media (max-width: 390px) {
  .activity-hero .activity-stats {
    gap: 8px;
  }
  .activity-hero .activity-stats div {
    padding: 11px 10px;
  }
  .activity-hero .activity-stats strong {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .home-page .home-header {
    position: sticky;
    top: 0;
    z-index: 30;
    gap: 8px 10px;
    padding: 8px 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }
  .home-page .brand-wordmark {
    min-width: 112px;
  }
  .home-page .brand-wordmark img {
    width: 40px;
    height: 40px;
  }
  .home-page .brand-wordmark span {
    font-size: 15px;
  }
  .home-page .home-header .header-actions {
    order: 0;
    width: auto;
    flex: 1 1 0;
    justify-content: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
  }
  .home-page .home-header .header-actions > * {
    flex: 0 1 auto;
  }
  .home-page .member-pill,
  .home-page .dark-pill,
  .home-page .logout-home {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
  .home-page .globe {
    display: none;
  }
  .home-page .theme-hero {
    min-height: 374px;
    display: grid;
    align-items: start;
  }
  .home-page .theme-copy {
    width: 100%;
    padding: 28px 16px 0;
  }
  .home-page .theme-copy h1 {
    max-width: 12ch;
    margin-bottom: 12px;
    font-size: 32px;
    line-height: 1.03;
  }
  .home-page .theme-copy p {
    max-width: 320px;
    font-size: 13px;
    line-height: 1.38;
  }
  .home-page .black-cta {
    min-height: 38px;
    margin-top: 10px;
    padding: 0 16px;
    font-size: 13px;
  }
  .home-page .coin,
  .home-page .sparkle {
    opacity: 0.42;
  }
  .home-page .hero-cards {
    left: 14px;
    bottom: 6px;
    transform: scale(0.36);
    transform-origin: left bottom;
  }
  .home-page .at-hero-grid,
  .home-page .audience-section,
  .home-page .theme-section {
    width: calc(100% - 24px);
  }
  .home-page .at-hero-grid {
    gap: 10px;
    margin-top: -10px;
    margin-bottom: 28px;
  }
  .home-page .at-promo-card {
    min-height: auto;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(255, 139, 42, 0.12);
  }
  .home-page .at-promo-card span,
  .home-page .section-kicker {
    font-size: 11px;
  }
  .home-page .at-promo-card h2 {
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 1.18;
  }
  .home-page .at-promo-card p {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.42;
  }
  .home-page .ecosystem-section {
    padding: 34px 12px 38px;
  }
  .home-page .ecosystem-section h2,
  .home-page .theme-section-head h2,
  .home-page .theme-section-head.centered h2,
  .home-page .split-story h2,
  .home-page .app-band h2,
  .home-page .testimonial-band h2 {
    font-size: 22px;
    line-height: 1.18;
  }
  .home-page .growth-orbit {
    width: 228px;
    height: 228px;
    margin: 24px auto 22px;
    box-shadow: inset 0 0 0 12px white, 0 16px 42px rgba(15, 23, 42, 0.1);
  }
  .home-page .growth-orbit::after {
    inset: 26px;
  }
  .home-page .growth-orbit > span {
    min-width: 58px;
    padding: 6px 7px;
    transform: rotate(var(--angle)) translate(94px) rotate(calc(-1 * var(--angle))) translate(-50%, -50%);
    font-size: 10px;
  }
  .home-page .orbit-core {
    inset: 72px;
  }
  .home-page .orbit-core strong {
    font-size: 24px;
  }
  .home-page .orbit-core span {
    font-size: 10px;
  }
  .home-page .ecosystem-grid,
  .home-page .audience-section {
    gap: 10px;
  }
  .home-page .ecosystem-card,
  .home-page .audience-card,
  .home-page .industry-card,
  .home-page .coupon-card,
  .home-page .article-card {
    padding: 14px;
  }
  .home-page .ecosystem-card h3,
  .home-page .audience-card h2 {
    font-size: 17px;
    line-height: 1.25;
  }
  .home-page .ecosystem-card p,
  .home-page .audience-card p,
  .home-page .split-story p,
  .home-page .app-band p,
  .home-page .testimonial-band p:not(.section-kicker),
  .home-page .article-card p {
    font-size: 13px;
    line-height: 1.45;
  }
  .home-page .audience-section {
    margin-bottom: 26px;
  }
  .home-page .audience-card {
    min-height: auto;
    gap: 12px;
  }
  .home-page .audience-card a {
    align-self: stretch;
    justify-content: center;
    min-height: 36px;
    white-space: normal;
    text-align: center;
  }
  .home-page .stat-strip {
    width: calc(100% - 24px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
    padding: 16px;
    border-radius: 12px;
  }
  .home-page .stat-strip div {
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
  }
  .home-page .stat-strip strong {
    font-size: 18px;
  }
  .home-page .stat-strip span {
    font-size: 11px;
  }
  .home-page .theme-section {
    padding: 28px 0;
  }
  .home-page .theme-section-head {
    margin-bottom: 12px;
  }
  .home-page .industry-grid,
  .home-page .brand-grid,
  .home-page .coupon-row,
  .home-page .partner-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-page .industry-card {
    min-height: 112px;
  }
  .home-page .industry-card span {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .home-page .partner-strip {
    margin-top: 14px;
    background: transparent;
  }
  .home-page .partner-logo {
    min-height: 64px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .home-page .brand-grid {
    gap: 14px 10px;
  }
  .home-page .brand-logo {
    height: 68px;
    font-size: 16px;
  }
  .home-page .brand-card h3,
  .home-page .brand-card strong,
  .home-page .brand-card small {
    font-size: 12px;
  }
  .home-page .split-story {
    margin-top: 4px;
  }
  .home-page .split-story article {
    min-height: auto;
    padding: 34px 16px;
  }
  .home-page .split-story h2 {
    margin: 18px auto 10px;
  }
  .home-page .floating-tags span {
    padding: 7px 12px;
    font-size: 12px;
  }
  .home-page .phone-reward {
    width: 118px;
    height: 150px;
    border-radius: 22px;
  }
  .home-page .app-band {
    min-height: auto;
    padding: 34px 16px;
  }
  .home-page .phone-stack {
    display: none;
  }
  .home-page .store-buttons {
    gap: 8px;
  }
  .home-page .store-buttons span {
    min-width: 0;
    min-height: 38px;
    flex: 1 1 calc(50% - 8px);
    font-size: 12px;
  }
  .home-page .testimonial-band {
    min-height: auto;
    padding: 34px 16px;
  }
  .home-page .content-hub {
    gap: 30px;
    padding: 34px 12px 46px;
  }
  .home-page .article-grid,
  .home-page .article-grid.small,
  .home-page .article-feature {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .home-page .article-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 0;
  }
  .home-page .article-card img,
  .home-page .article-image-fallback {
    width: 96px;
    height: 96px;
    aspect-ratio: auto;
    grid-row: span 4;
  }
  .home-page .article-card span,
  .home-page .article-card h3,
  .home-page .article-card p,
  .home-page .article-card a {
    margin-left: 0;
    margin-right: 12px;
  }
  .home-page .article-card span {
    margin-top: 12px;
  }
  .home-page .article-card h3 {
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 14px;
  }
  .home-page .article-card p {
    margin-top: 0;
    margin-bottom: 8px;
  }
  .home-page .article-card a {
    margin-bottom: 12px;
    font-size: 13px;
  }
  .home-page .theme-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 30px 16px;
  }
}

@media (max-width: 390px) {
  .home-page .theme-copy h1 {
    font-size: 32px;
  }
  .home-page .theme-copy p {
    max-width: 300px;
  }
  .home-page .hero-cards {
    transform: scale(0.44);
  }
  .home-page .ecosystem-section h2,
  .home-page .theme-section-head h2,
  .home-page .theme-section-head.centered h2,
  .home-page .split-story h2,
  .home-page .app-band h2,
  .home-page .testimonial-band h2 {
    font-size: 20px;
  }
  .home-page .brand-logo {
    height: 62px;
  }
}

@media (max-width: 900px) {
  .home-page .tenant-showcase {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    margin-top: 18px;
    padding: 18px;
    border-radius: 12px;
  }
  .home-page .tenant-showcase-copy h2 {
    font-size: 24px;
    line-height: 1.14;
  }
  .home-page .tenant-showcase-copy p {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .home-page .tenant-showcase {
    gap: 14px;
    margin-bottom: 12px;
    padding: 16px;
  }
  .home-page .tenant-showcase-grid {
    grid-template-columns: 1fr;
  }
  .home-page .tenant-card a {
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 96px;
    padding: 12px;
  }
  .home-page .tenant-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }
  .home-page .tenant-card strong {
    grid-column: 2;
    width: max-content;
    min-height: 28px;
    margin-top: 4px;
    padding: 0 12px;
  }
  .home-page .tenant-card h3 {
    font-size: 15px;
  }
  .home-page .tenant-card p {
    font-size: 12px;
  }
}
