:root {
  --bg: #090909;
  --bg-soft: #0f0f0f;
  --panel: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  --panel-solid: #121212;
  --panel-muted: #171717;
  --ink: #f5f5f5;
  --muted: #b6b6b6;
  --line: #2a2a2a;
  --brand: #d4af37;
  --brand-2: #f6d365;
  --ok: #30c96e;
  --danger: #d9534f;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -10%, rgba(212, 175, 55, 0.14), transparent 35%),
    radial-gradient(circle at 88% 0%, rgba(193, 18, 31, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.bg-wave {
  position: fixed;
  border-radius: 999px;
  filter: blur(48px);
  pointer-events: none;
  opacity: 0.4;
}

.wave-a {
  width: 340px;
  height: 340px;
  background: rgba(212, 175, 55, 0.18);
  right: -100px;
  top: -80px;
}

.wave-b {
  width: 300px;
  height: 300px;
  background: rgba(120, 82, 25, 0.16);
  left: -80px;
  bottom: -90px;
}

.hub-shell {
  width: min(1240px, 94vw);
  margin: 1.4rem auto 2.4rem;
}

.screen { display: none; }
.screen.is-active {
  display: grid;
  gap: 1rem;
}

.is-hidden {
  display: none !important;
}

.global-back-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 40;
  min-width: 108px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #c1121f;
  color: #ffffff;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.global-back-btn:hover {
  background: #d62839;
}

.global-back-btn-bottom {
  top: auto;
  bottom: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-2);
  text-transform: uppercase;
}

.brand-eyebrow {
  color: var(--brand-2);
}

.brand-tagline {
  margin: 0.18rem 0 0.6rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: #f0d37a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-tagline.compact {
  margin: 0.16rem 0 0.45rem;
  font-size: 0.8rem;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
}

.hero-card {
  max-width: 920px;
  margin: 3rem auto;
  padding: 1.5rem;
}

.hero-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-sub {
  margin: 0.75rem 0;
  color: var(--muted);
  max-width: 760px;
}

.store-trust-strip {
  margin: 0.85rem 0 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 211, 101, 0.26);
  background: rgba(212, 175, 55, 0.08);
  color: #f0ead6;
  font-size: 0.84rem;
  font-weight: 700;
}

.hub-logo-preview {
  margin: 0.7rem 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hub-logo-preview.compact {
  margin: 0.45rem 0 0;
}

.hub-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(246, 211, 101, 0.45);
  background: #0f0f0f;
  object-fit: cover;
}

.benefit-list,
.payment-card ul,
.checklist-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #d7d7d7;
  display: grid;
  gap: 0.42rem;
}

.hero-actions,
.inline-actions,
.top-actions,
.tab-row,
.category-chip-row,
.tile-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-actions,
.inline-actions {
  margin-top: 1rem;
}

.logo-choice-wrap {
  margin-top: 0.85rem;
}

.logo-choice-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.logo-choice-btn {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, #171717, #111111);
  padding: 0.65rem;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-choice-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(246, 211, 101, 0.45);
}

.logo-choice-btn.is-active {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 2px rgba(246, 211, 101, 0.18);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.14), #111111 60%);
}

.logo-choice-img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(246, 211, 101, 0.35);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.field span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ececec;
}

.checkbox-field {
  margin-top: 0.8rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.checkbox-row input[type='checkbox'] {
  min-height: auto;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

input, select, textarea, button {
  font: inherit;
}

input, select, textarea {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0.62rem 0.8rem;
  background: #101010;
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: #8d8d8d;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(246, 211, 101, 0.24);
  border-color: var(--brand);
}

textarea {
  min-height: 108px;
  resize: vertical;
}

.btn {
  min-height: 42px;
  border-radius: 14px;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #090909;
}

.btn.primary:hover {
  box-shadow: 0 10px 22px rgba(212, 175, 55, 0.22);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(246, 211, 101, 0.45);
  color: var(--ink);
}

.btn.ghost:hover {
  background: rgba(212, 175, 55, 0.08);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.hint, .muted, .label, .app-desc, .app-package, .category-head p, .legal-links p {
  color: var(--muted);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: flex-start;
}

.config-grid,
.category-grid,
.stats,
.payment-prep-grid,
.store-content-grid,
.contact-grid {
  display: grid;
  gap: 0.8rem;
}

.field.full {
  grid-column: 1 / -1;
}

.tab-btn {
  border: 1px solid rgba(246, 211, 101, 0.28);
  background: #111111;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #090909;
}

.tab-pane {
  display: none;
  gap: 1rem;
}

.tab-pane.is-active {
  display: grid;
}

.filter-grid,
.payment-prep-grid,
.store-content-grid {
  grid-template-columns: 1.5fr 1fr;
}

.category-chip {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(246, 211, 101, 0.22);
  padding: 0.38rem 0.82rem;
  font-weight: 700;
  color: var(--ink);
  background: #131313;
  cursor: pointer;
}

.category-chip.is-active {
  box-shadow: 0 0 0 2px rgba(246, 211, 101, 0.18);
  border-color: var(--brand-2);
}

.chip-all { background: #141414; }
.chip-hub { background: rgba(82, 90, 105, 0.22); }
.chip-cashflow { background: rgba(33, 110, 74, 0.2); }
.chip-games { background: rgba(30, 75, 144, 0.2); }
.chip-sports { background: rgba(37, 104, 63, 0.2); }
.chip-socials { background: rgba(79, 63, 136, 0.2); }
.chip-finance { background: rgba(24, 94, 156, 0.2); }
.chip-lifecontrol { background: rgba(91, 101, 120, 0.24); }
.chip-tools { background: rgba(111, 111, 111, 0.18); }
.chip-other { background: rgba(107, 90, 51, 0.2); }

.stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-card {
  background: linear-gradient(160deg, #161616, #111111);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.stat-card strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.22rem;
  color: var(--brand-2);
}

.category-card {
  --cat-accent: #6b5a33;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), #101010);
  border: 1px solid color-mix(in srgb, var(--cat-accent) 58%, #d4af37 42%);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.category-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--cat-accent) 20%, #121212 80%), #111111);
  border: 1px solid rgba(246, 211, 101, 0.18);
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.8rem;
}

.category-head-copy {
  display: grid;
  gap: 0.24rem;
}

.category-head h3 {
  font-size: 1.02rem;
}

.category-head-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(246, 211, 101, 0.4);
  object-fit: cover;
  background: #090909;
}

.app-list {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.app-tile {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem;
  background: linear-gradient(160deg, #171717, #101010);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 211, 101, 0.42);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
}

.tile-head {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.8rem;
  align-items: center;
}

.logo-wrap {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(246, 211, 101, 0.35);
  display: grid;
  place-items: center;
  background: #0f0f0f;
}

.app-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  font-size: 0.9rem;
  font-weight: 800;
  color: #090909;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  place-items: center;
}

.app-title {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.app-desc, .app-package {
  margin: 0.16rem 0 0;
  font-size: 0.84rem;
}

.tile-foot {
  margin-top: 0.85rem;
}

.tile-foot .btn {
  flex: 1 1 160px;
}

.app-info-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.app-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}

.app-info-card {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.app-info-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.app-info-promo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #050505;
  object-fit: contain;
}

.app-info-meta {
  display: grid;
  gap: 0.55rem;
}

.app-info-meta-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111111;
  padding: 0.7rem 0.8rem;
}

.app-info-meta-item strong {
  display: block;
  color: var(--brand-2);
  margin-bottom: 0.2rem;
}

.payment-card,
.payment-prep-card,
.store-content-admin-card,
.legal-card,
.checklist-card,
.filters-panel,
.quick-config,
.tab-nav {
  background: linear-gradient(160deg, #151515, #101010);
}

.legal-links {
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111111;
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.4rem;
}

.checklist-card h3 {
  margin-bottom: 0.45rem;
}

.admin-note {
  margin-top: 0.15rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #111111;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
}

.checklist-item input[type='checkbox'] {
  margin-top: 0.2rem;
}

.checklist-item.done {
  background: rgba(48, 201, 110, 0.08);
  border-color: rgba(48, 201, 110, 0.28);
}

.checklist-item-text {
  color: #dedede;
  font-size: 0.9rem;
  display: grid;
  gap: 0.2rem;
}

.checklist-item-text strong {
  font-size: 0.92rem;
}

.checklist-item-text small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.store-content-grid textarea,
.payment-prep-grid textarea {
  min-height: 100px;
}

.store-content-grid input[type='checkbox'] {
  min-height: auto;
  width: 18px;
  height: 18px;
  justify-self: start;
  accent-color: var(--brand);
}

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

  .filter-grid,
  .payment-prep-grid,
  .store-content-grid,
  .logo-choice-grid {
    grid-template-columns: 1fr;
  }

  .hub-shell {
    width: min(96vw, 1240px);
    margin-top: 4rem;
  }
}

@media (max-width: 640px) {
  .panel {
    padding: 0.95rem;
    border-radius: 16px;
  }

  .hero-card {
    margin: 0;
    padding: 1.15rem;
  }

  .tile-head,
  .category-head {
    grid-template-columns: 1fr;
  }

  .tile-foot .btn,
  .inline-actions .btn,
  .top-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }
}
