/* =========================================================
  Promoraa Partners — single stylesheet
  1  Tokens & reset         9  Dashboard page
  2  Buttons               10  Tables & pills
  3  Forms                 11  Settings
  4  Cards & utilities     12  How it works
  5  Toasts                13  Promo materials
  6  Public pages          14  Reports
  7  App shell             15  Sign in / animations
  8  Modals                16  Dropdown
  17 Error page
  Dark mode: add class "dark" on <html>.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Poppins:wght@400;500;600;700&display=swap');

/* ---------- 1. Tokens & reset ---------- */
:root {
  --promoraa-deep: #2C104A;
  --promoraa-royal: #6360D6;
  --promoraa-lavender: #D2A7FF;
  --promoraa-pale: #F0E7FA;
  --promoraa-gray: #0F141A;
  --promoraa-orange: #FF6B35;

  --bg: #f9fafb;
  --card: #ffffff;
  --card-border: #e5e7eb;
  --text: #000000;
  --text-muted: #4b5563;
  --text-faint: #6b7280;
  --muted-bg: #f3f4f6;
  --input-bg: #ffffff;
  --input-border: #d1d5db;
  --divide: #e5e7eb;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;
  --success: #059669;
  --danger: #dc2626;
}

.dark {
  --bg: #020617;
  --card: #0f172a;
  --card-border: rgba(51, 65, 85, 0.5);
  --text: #ffffff;
  --text-muted: #9ca3af;
  --text-faint: #9ca3af;
  --muted-bg: #27272a;
  --input-bg: rgba(30, 41, 59, 0.5);
  --input-border: rgba(51, 65, 85, 0.5);
  --divide: rgba(51, 65, 85, 0.5);
  --info-bg: rgba(30, 58, 138, 0.2);
  --info-border: rgba(59, 130, 246, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

img {
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---------- 2. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: none;
  border-radius: .5rem;
  font-weight: 600;
  font-size: .9375rem;
  padding: .75rem 1.5rem;
  transition: all .2s ease;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  height: 3.25rem;
}

.btn-md {
  height: 2.75rem;
}

.btn-tall {
  height: 3rem;
}

.btn-sm {
  padding: .4rem .75rem;
  font-size: .8125rem;
  border-radius: .375rem;
}

.btn-dark {
  background: #18181b;
  color: #fff;
}

.btn-dark:hover:not(:disabled) {
  background: #111827;
}

.dark .btn-dark {
  background: linear-gradient(to right, #2563eb, #3b82f6);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, .2);
}

.dark .btn-dark:hover:not(:disabled) {
  background: linear-gradient(to right, #3b82f6, #60a5fa);
}

.btn-primary {
  background: #0A80ED;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(.95);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--input-border);
  color: var(--text);
}

.btn-outline:hover:not(:disabled) {
  background: var(--muted-bg);
}

.btn-outline-royal {
  border-color: var(--promoraa-royal);
  color: var(--promoraa-royal);
}

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

.btn-ghost:hover:not(:disabled) {
  background: var(--muted-bg);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.dark .btn-danger {
  background: rgba(127, 29, 29, .5);
  color: #fca5a5;
}

.dark .btn-danger:hover {
  background: rgba(127, 29, 29, .8);
}

.btn-approve {
  background: #16a34a;
  color: #fff;
}

.btn-reject {
  background: var(--danger);
  color: #fff;
}

.btn-success {
  background: linear-gradient(to right, #10b981, #059669);
  color: #fff;
}

.icon-btn {
  padding: .5rem;
  border-radius: .5rem;
  background: transparent;
  border: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.icon-btn:hover {
  background: var(--muted-bg);
}

.link-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 500;
  font-size: .9375rem;
}

/* ---------- 3. Forms ---------- */
.field-input,
select.field-input {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: .5rem;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: all .2s ease;
}

.field-input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 15%, transparent);
}

.field-input[readonly] {
  background: var(--muted-bg);
}

.field-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: .5rem;
  color: var(--text-muted);
}

.field-error {
  font-size: .75rem;
  color: #ef4444;
  margin: .25rem 0 0;
}

.field-hint {
  font-size: .75rem;
  color: var(--text-faint);
  margin: .375rem 0 0;
}

.field-with-icon {
  position: relative;
}

.field-with-icon>svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}

.field-with-icon input {
  padding-left: 3rem;
}

.field-with-toggle {
  position: relative;
}

.field-with-toggle button {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-faint);
  display: flex;
}

.select-wrap {
  position: relative;
}

.select-wrap>svg {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-faint);
}

.select-wrap select {
  appearance: none;
  padding-right: 2.5rem;
}

.select-sm {
  padding: .25rem .5rem;
  border: 1px solid var(--input-border);
  border-radius: .25rem;
  font-size: .875rem;
  background: var(--input-bg);
  color: var(--text);
}

.currency-input {
  position: relative;
}

.currency-input .symbol {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-weight: 600;
}

.currency-input input {
  padding-left: 2rem;
  height: 3rem;
}

.switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #d1d5db;
  border: none;
  flex-shrink: 0;
  margin-left: 1rem;
}

.dark .switch {
  background: #3f3f46;
}

.switch.on {
  background: #18181b;
}

.dark .switch.on {
  background: #fff;
}

.switch-knob {
  position: absolute;
  top: .125rem;
  left: .125rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #fff;
  transition: transform .2s;
}

.dark .switch-knob {
  background: #71717a;
}

.switch.on .switch-knob {
  transform: translateX(1.25rem);
  background: #fff;
}

.dark .switch.on .switch-knob {
  background: #18181b;
}

/* ---------- 4. Cards & utilities ---------- */
.panel {
  border-radius: .75rem;
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.dark .panel {
  background: linear-gradient(to bottom right, #0f172a, #1e293b);
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, .05);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .stack {
    gap: 2.5rem;
  }
}

.stack-center {
  text-align: center;
}

.max-w-sm {
  max-width: 32rem;
}

.max-w-md {
  max-width: 56rem;
}

.max-w-lg {
  max-width: 64rem;
}

.max-w-xl {
  max-width: 80rem;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 .5rem;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 2.25rem;
  }
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: .9375rem;
}

.page-header-deep h1 {
  color: var(--promoraa-deep);
}

.dark .page-header-deep h1 {
  color: #fff;
}

.info-box {
  display: flex;
  gap: .75rem;
  padding: 1rem;
  border-radius: .5rem;
  border: 1px solid var(--input-border);
  background: var(--muted-bg);
  align-items: flex-start;
}

.info-box p {
  font-size: .8125rem;
  color: var(--text-muted);
  margin: 0;
}

.info-box svg {
  flex-shrink: 0;
  margin-top: .125rem;
}

/* Loading / error states for fetch-and-render pages */
[data-bind] {
  transition: opacity .2s;
}

.is-loading [data-bind] {
  opacity: .4;
}

.info-box.error {
  border-color: #fca5a5;
  background: rgba(220, 38, 38, .08);
}

.info-box.error p {
  color: var(--danger);
}

/* ---------- 5. Toasts ---------- */
#toast-root {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.toast {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: .75rem 1rem;
  border-radius: .5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .15);
  font-size: .875rem;
  min-width: 220px;
  animation: toast-in .2s ease;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

/* ---------- 6. Public pages (terms, footer) ---------- */
.public-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--card) 95%, transparent);
  backdrop-filter: blur(4px);
  transition: all .3s ease;
}

.public-nav.scrolled {
  background: var(--card);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
}

.public-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

@media (min-width: 768px) {
  .public-nav-inner {
    height: 5rem;
  }
}

.public-nav-logo img {
  height: 1.5rem;
}

/* logo.png is dark purple on transparent: render it white in dark mode */
.dark .public-nav-logo img {
  filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
  .public-nav-logo img {
    height: 2rem;
  }
}

/* Terms / legal */
.legal {
  --legal-text: var(--promoraa-gray);
  padding: 6rem 0 3rem;
  background: var(--card);
  color: var(--legal-text);
}

.dark .legal {
  --legal-text: #d1d5db;
}

.legal .container {
  max-width: 56rem;
}

.legal-title {
  font-size: 2.25rem;
  margin: 0 0 1rem;
  color: var(--promoraa-deep);
  font-weight: 700;
  letter-spacing: -.02em;
}

.legal-updated {
  font-size: 1rem;
  color: var(--legal-text);
  margin: 0 0 2.5rem;
}

.legal-sections {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.legal-section h2 {
  font-size: 1.375rem;
  color: var(--promoraa-deep);
  font-weight: 700;
  margin: 0 0 .75rem;
}

.dark .legal-title,
.dark .legal-section h2 {
  color: #fff;
}

.legal-section p {
  font-size: .9375rem;
  color: var(--legal-text);
  line-height: 1.7;
  margin: 0;
}

.legal-section ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--legal-text);
  font-size: .9375rem;
  line-height: 1.8;
}

.legal-section a {
  color: var(--promoraa-royal);
  text-decoration: underline;
}

.dark .legal-section a {
  color: var(--promoraa-lavender);
}

/* Footer */
.site-footer {
  background: #0F172A;
  color: #fff;
  padding: 3rem 0 1.5rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 4rem 0 2rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
  }
}

.footer-brand h3 {
  color: var(--promoraa-lavender);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.footer-brand p {
  color: #9ca3af;
  font-size: .9375rem;
  margin: 0 0 1.25rem;
}

.footer-social {
  display: flex;
  gap: .75rem;
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, .2);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.footer-col ul a {
  color: #9ca3af;
  font-size: .9375rem;
  transition: color .2s;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-col .footer-legal {
  margin-top: 1.5rem;
}

.footer-newsletter p {
  color: #9ca3af;
  font-size: .9375rem;
  margin: 0 0 1rem;
}

.footer-newsletter form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-newsletter input {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  border-radius: .5rem;
  padding: .6rem .9rem;
  font-size: .9375rem;
}

.footer-newsletter input::placeholder {
  color: #9ca3af;
}

.footer-newsletter button {
  width: 100%;
  background: var(--promoraa-royal);
  color: #fff;
  border: none;
  border-radius: .5rem;
  padding: .6rem .9rem;
  font-weight: 500;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 2rem;
  }
}

.footer-bottom p {
  color: #9ca3af;
  font-size: .8125rem;
  margin: 0;
}

.footer-bottom .accent {
  color: var(--promoraa-orange);
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
  font-size: .8125rem;
  color: #9ca3af;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ---------- 7. App shell ---------- */
.dash-shell {
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}

.dark .dash-shell {
  background: linear-gradient(to bottom right, #020617, #0f172a, #020617);
}

.dash-topbar {
  border-bottom: 1px solid var(--card-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
}

.dark .dash-topbar {
  background: rgba(15, 23, 42, .8);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .05);
}

.dash-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .dash-topbar-inner {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .dash-topbar-inner {
    padding: 0 2rem;
  }
}

.dash-topbar-left,
.dash-topbar-right {
  display: flex;
  align-items: center;
}

.dash-topbar-left {
  gap: 1rem;
}

.dash-topbar-right {
  gap: .75rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.sidebar-toggle {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .sidebar-toggle {
    display: none;
  }
}

.theme-toggle {
  padding: .625rem;
  border-radius: .5rem;
  border: none;
  background: var(--muted-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  filter: brightness(.95);
}
/* Icon follows html.dark, which theme-init.js sets before first paint */
html:not(.dark) [data-theme-icon='sun'],
html.dark [data-theme-icon='moon'] {
  display: none;
}

.dark .theme-toggle:hover {
  filter: brightness(1.15);
}

.welcome-chip {
  display: none;
  padding: .5rem 1rem;
  border-radius: .5rem;
  background: var(--muted-bg);
}

@media (min-width: 640px) {
  .welcome-chip {
    display: block;
  }
}

.welcome-chip p {
  margin: 0;
  font-size: .875rem;
  color: var(--text-muted);
}

.welcome-chip span {
  font-weight: 600;
  color: var(--text);
}

.dash-body {
  display: flex;
  padding-top: 4rem;
}

.sidebar {
  position: fixed;
  inset-block: 0;
  left: 0;
  z-index: 40;
  width: 16rem;
  border-right: 1px solid var(--card-border);
  padding-top: 4rem;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  transform: translateX(-100%);
  transition: transform .3s ease;
}

.dark .sidebar {
  background: rgba(15, 23, 42, .8);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .2);
}

.sidebar.open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
  }
}

.sidebar-nav {
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-links {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: .5rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: .875rem;
  transition: all .15s;
}

.sidebar-link:hover {
  background: var(--muted-bg);
  color: var(--text);
}

.sidebar-link.active {
  background: #18181b;
  color: #fff;
}

.dark .sidebar-link.active {
  background: linear-gradient(to right, #2563eb, #3b82f6);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, .2);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .75rem 1rem;
  border-radius: .5rem;
  border: none;
  background: transparent;
  color: var(--danger);
  font-weight: 500;
  font-size: .875rem;
  margin-top: 1rem;
}

.sidebar-logout:hover {
  background: var(--muted-bg);
}

.dark .sidebar-logout {
  color: #f87171;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, .5);
  display: none;
}

.sidebar-overlay.show {
  display: block;
}

@media (min-width: 1024px) {
  .sidebar-overlay {
    display: none !important;
  }
}

.dash-main {
  flex: 1;
  min-width: 0;
  padding: 1rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .dash-main {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .dash-main {
    margin-left: 16rem;
    padding: 2rem;
  }
}

/* ---------- 8. Modals ---------- */
/* Centered confirm modal (logout) */
.confirm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.confirm-modal-backdrop.show {
  display: flex;
}

.confirm-modal {
  padding: 2rem;
  border-radius: .75rem;
  max-width: 28rem;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
}

.confirm-modal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}

.confirm-modal p {
  margin: 0 0 2rem;
  color: var(--text-muted);
}

.confirm-modal-actions {
  display: flex;
  gap: .75rem;
}

.confirm-modal-actions .btn {
  flex: 1;
}

/* Bottom sheet (withdraw). Toggle with .show */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  display: none;
}

.sheet-backdrop.show {
  display: block;
}

.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 51;
  display: none;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.sheet-wrap.show {
  display: flex;
}

.sheet {
  pointer-events: auto;
  background: var(--card);
  color: var(--text);
  border-radius: 1.5rem 1.5rem 0 0;
  width: 100%;
  max-width: 42rem;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .35);
}

.sheet-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-head-left {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sheet-head-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  background: #18181b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.sheet-head p {
  font-size: .8125rem;
  color: var(--text-muted);
  margin: 0;
}

.sheet-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .75rem;
  border: none;
  background: none;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-close:hover {
  background: var(--muted-bg);
}

.sheet-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sheet-foot {
  position: sticky;
  bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--card-border);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.balance-box {
  background: var(--muted-bg);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--card-border);
}

.balance-box .label {
  font-size: .8125rem;
  color: var(--text-muted);
  margin: 0 0 .375rem;
}

.balance-box .amount {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
}

.balance-box .ready {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .625rem;
  font-size: .8125rem;
  color: var(--success);
  font-weight: 500;
}

.bank-option {
  padding: 1rem;
  border-radius: .75rem;
  border: 2px solid #18181b;
  background: var(--muted-bg);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .5rem;
}

.dark .bank-option {
  border-color: #fff;
}

.bank-option .bank-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  background: #18181b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bank-option .grow {
  flex: 1;
}

.bank-option .name {
  font-size: .875rem;
  font-weight: 600;
  margin: 0;
}

.bank-option .meta {
  font-size: .75rem;
  color: var(--text-muted);
  margin: .125rem 0 0;
}

.policy-box {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-radius: .75rem;
  padding: 1rem;
  display: flex;
  gap: .75rem;
  font-size: .8125rem;
}

.policy-box svg {
  flex-shrink: 0;
  margin-top: .125rem;
  color: #2563eb;
}

.policy-box p {
  font-weight: 600;
  margin: 0 0 .375rem;
}

.policy-box ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

/* Success modal */
.success-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
  display: none;
}

.success-backdrop.show {
  display: block;
}

.success-wrap {
  position: fixed;
  inset: 0;
  z-index: 51;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.success-wrap.show {
  display: flex;
}

.success-modal {
  pointer-events: auto;
  background: var(--card);
  color: var(--text);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 28rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .4);
}

.success-modal .bar {
  height: .5rem;
  background: linear-gradient(to right, #34d399, #10b981, #059669);
}

.success-modal .body {
  padding: 2rem;
  text-align: center;
}

.success-modal .check {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #34d399, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-modal h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}

.success-modal .sub {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.success-modal .summary {
  background: var(--muted-bg);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--card-border);
}

.success-modal .summary .label {
  font-size: .8125rem;
  color: var(--text-muted);
  margin: 0 0 .5rem;
  font-weight: 500;
}

.success-modal .summary .amount {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.success-modal .summary .note {
  background: var(--card);
  border-radius: .75rem;
  padding: .75rem;
  color: var(--success);
  font-weight: 600;
  font-size: .875rem;
}

/* ---------- 9. Dashboard page ---------- */
.earnings-card {
  padding: 2rem;
}

@media (min-width: 768px) {
  .earnings-card {
    padding: 3rem;
  }
}

.earnings-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.earnings-label {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text-faint);
  margin: 0 0 .75rem;
  font-weight: 500;
}

.earnings-amount {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
}

@media (min-width: 768px) {
  .earnings-amount {
    font-size: 3.75rem;
  }
}

.earnings-icon {
  padding: 1rem;
  border-radius: .5rem;
  background: var(--muted-bg);
  color: var(--text-muted);
  display: flex;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-tile {
  padding: 1.5rem;
}

.stat-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text-faint);
  margin: 0 0 1rem;
  font-weight: 500;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 2.25rem;
  }
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: .375rem;
  color: var(--success);
  font-size: .75rem;
  font-weight: 500;
}

.stat-note {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

.text-success {
  color: #16a34a;
}

.text-warning {
  color: #ea580c;
}

.referral-card {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .referral-card {
    padding: 2rem;
  }
}

.referral-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 .25rem;
}

@media (min-width: 768px) {
  .referral-card h3 {
    font-size: 1.25rem;
  }
}

.referral-card>p {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.referral-row {
  display: flex;
  gap: .75rem;
}

.referral-input {
  flex: 1;
  min-width: 0;
  padding: .75rem 1rem;
  border-radius: .5rem;
  border: 1px solid var(--input-border);
  background: var(--muted-bg);
  color: var(--text);
  font-family: monospace;
  font-size: .875rem;
}

.referral-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  padding-top: .5rem;
}

.referral-action-btn {
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid var(--input-border);
  background: var(--muted-bg);
  color: var(--text-muted);
}

.referral-action-btn:hover {
  filter: brightness(.97);
}

.tier-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .tier-header {
    flex-direction: row;
    align-items: center;
  }
}

.tier-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .25rem;
}

@media (min-width: 768px) {
  .tier-header h2 {
    font-size: 1.5rem;
  }
}

.tier-header p {
  margin: 0;
  font-size: .875rem;
  color: var(--text-muted);
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: .5rem;
  border: 1px solid var(--input-border);
  background: var(--muted-bg);
  font-size: .875rem;
  font-weight: 600;
  width: fit-content;
}

.tier-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tier-item {
  padding: 1.25rem 1.5rem;
  border-radius: .5rem;
  border: 1px solid var(--input-border);
  background: var(--muted-bg);
}

.tier-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tier-item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tier-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.tier-name {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.tier-req {
  font-size: 1.25rem;
  font-weight: 700;
  margin: .125rem 0 0;
}

@media (min-width: 768px) {
  .tier-req {
    font-size: 1.5rem;
  }
}

.tier-pct {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: right;
  margin: 0;
}

.tier-count {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: right;
  margin: 0;
}

.tier-bar {
  height: .5rem;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: .75rem;
}

.dark .tier-bar {
  background: #3f3f46;
}

.tier-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #18181b;
}

.dark .tier-bar-fill {
  background: #fff;
}

.tier-reward {
  font-size: .75rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- 10. Tables & pills ---------- */
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-title-row .section-title {
  margin: 0;
}

.table-wrap {
  border-radius: .5rem;
  border: 1px solid var(--input-border);
  background: var(--muted-bg);
  overflow: hidden;
}

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

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

.data-table thead {
  background: var(--card);
  border-bottom: 1px solid var(--input-border);
}

.data-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-muted);
  white-space: nowrap;
}

.data-table td {
  padding: 1rem 1.25rem;
  font-size: .875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--divide);
}

.data-table tbody tr:hover {
  background: var(--card);
}

.data-table .empty {
  text-align: center;
  padding: 2rem;
}

.status-pill {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
  background: #dcfce7;
  color: #15803d;
}

.status-pill.pending {
  background: #fef9c3;
  color: #a16207;
}

.status-pill.failed {
  background: #fee2e2;
  color: #b91c1c;
}

.dark .status-pill {
  background: rgba(22, 163, 74, .2);
  color: #86efac;
}

.dark .status-pill.pending {
  background: rgba(202, 138, 4, .2);
  color: #fde047;
}

.dark .status-pill.failed {
  background: rgba(220, 38, 38, .2);
  color: #fca5a5;
}

/* ---------- 11. Settings ---------- */
.settings-tabs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
}

.settings-tab {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: .5rem;
  white-space: nowrap;
  border: 1px solid var(--input-border);
  background: var(--card);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
}

.settings-tab.active {
  background: #18181b;
  color: #fff;
  border-color: #000;
}

.dark .settings-tab {
  background: #18181b;
  border-color: #27272a;
}

.dark .settings-tab.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.settings-panel {
  padding: 1.5rem;
  max-width: 56rem;
}

@media (min-width: 768px) {
  .settings-panel {
    padding: 2rem;
  }
}

.settings-panel h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .25rem;
}

@media (min-width: 768px) {
  .settings-panel h3 {
    font-size: 1.5rem;
  }
}

.settings-panel>p {
  margin: 0 0 1.5rem;
  font-size: .875rem;
  color: var(--text-muted);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 32rem;
}

.settings-form .btn {
  align-self: flex-start;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 32rem;
}

.notif-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem;
  border-radius: .5rem;
  border: 1px solid var(--input-border);
  background: var(--muted-bg);
}

.notif-row h4 {
  font-size: .875rem;
  font-weight: 600;
  margin: 0 0 .25rem;
}

.notif-row p {
  font-size: .75rem;
  color: var(--text-muted);
  margin: 0;
}

.verify-status {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-top: .375rem;
  font-size: .75rem;
}

.verify-status.ok {
  color: var(--success);
  font-weight: 500;
}

.verify-status.loading {
  color: var(--text-faint);
}

.verify-status .spin {
  animation: spin 1s linear infinite;
}

/* ---------- 12. How it works ---------- */
.hero-center {
  text-align: center;
}

.hero-center h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 .75rem;
}

.hero-center p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 48rem;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.step-card {
  padding: 1.75rem;
  border-radius: 1rem;
}

.step-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
}

.step-num {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-faint);
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: .5rem 0;
}

.step-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.tier-system-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
}

@media (min-width: 768px) {
  .tier-system-card {
    padding: 2rem;
  }
}

.tier-system-head {
  text-align: center;
  margin-bottom: 2rem;
}

.tier-system-head .icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #6366f1, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
}

.tier-system-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}

@media (min-width: 768px) {
  .tier-system-head h2 {
    font-size: 1.875rem;
  }
}

.tier-system-head p {
  color: var(--text-muted);
  font-size: .875rem;
  margin: 0;
}

.tiers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tiers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tier-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--muted-bg);
}

.tier-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.tier-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}

.tier-card .threshold {
  font-size: .8125rem;
  color: var(--text-muted);
  margin: 0 0 .75rem;
}

.tier-card .rate-row,
.tier-card .bonus-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
}

.tier-card .rate-row svg {
  color: var(--success);
}

.tier-card .bonus-row {
  color: #9333ea;
  margin-top: .5rem;
}

/* tier gradients (replace inline styles) */
.tier-bronze {
  background: linear-gradient(135deg, #b45309, #f59e0b);
}

.tier-silver {
  background: linear-gradient(135deg, #9ca3af, #d1d5db);
}

.tier-gold {
  background: linear-gradient(135deg, #eab308, #facc15);
}

.tier-platinum {
  background: linear-gradient(135deg, #a855f7, #c084fc);
}

.grad-blue {
  background: linear-gradient(135deg, #3b82f6, #4f46e5);
}

.grad-pink {
  background: linear-gradient(135deg, #a855f7, #db2777);
}

.grad-green {
  background: linear-gradient(135deg, #10b981, #0d9488);
}

.grad-orange {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.benefits-box {
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  background: linear-gradient(135deg, #eff6ff, #eef2ff, #faf5ff);
}

.dark .benefits-box {
  background: linear-gradient(135deg, rgba(30, 58, 138, .2), rgba(49, 46, 129, .2), rgba(88, 28, 135, .2));
  border-color: rgba(59, 130, 246, .2);
}

@media (min-width: 768px) {
  .benefits-box {
    padding: 2rem;
  }
}

.benefits-head {
  text-align: center;
  margin-bottom: 2rem;
}

.benefits-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}

@media (min-width: 768px) {
  .benefits-head h2 {
    font-size: 1.875rem;
  }
}

.benefits-head p {
  color: var(--text-muted);
  font-size: .875rem;
  margin: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit-item {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: .75rem;
  background: var(--card);
  border: 1px solid #dbeafe;
}

.dark .benefit-item {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .1);
}

.benefit-check {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: .5rem;
  background: linear-gradient(135deg, #10b981, #0d9488);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .125rem;
}

.benefit-item p {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.hiw-cta {
  background: linear-gradient(to right, #3b82f6, #4f46e5);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  color: #fff;
}

.hiw-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

@media (min-width: 768px) {
  .hiw-cta h2 {
    font-size: 2.25rem;
  }
}

.hiw-cta>p {
  font-size: 1rem;
  color: #dbeafe;
  margin: 0 auto 2rem;
  max-width: 42rem;
}

.hiw-cta-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .hiw-cta-stats {
    flex-direction: row;
  }
}

.hiw-cta-stats .stat p:first-child {
  font-size: .875rem;
  color: #dbeafe;
  margin: 0 0 .25rem;
}

.hiw-cta-stats .stat p:last-child {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
}

.hiw-divider {
  display: none;
  width: 1px;
  height: 3rem;
  background: #60a5fa;
}

@media (min-width: 640px) {
  .hiw-divider {
    display: block;
  }
}

/* ---------- 13. Promo materials ---------- */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  margin-bottom: 1rem;
  font-size: .8125rem;
  font-weight: 600;
  color: #1d4ed8;
}

.dark .eyebrow-pill {
  background: rgba(30, 58, 138, .3);
  border-color: rgba(59, 130, 246, .3);
  color: #93c5fd;
}

.promo-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 .5rem;
}

.promo-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 48rem;
  margin: 0;
}

.promo-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .promo-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.promo-stat {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card);
}

.promo-stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.promo-stat-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.promo-stat-num {
  font-size: 1.875rem;
  font-weight: 700;
}

.promo-stat p.label {
  font-size: .875rem;
  font-weight: 600;
  margin: 0;
}

.section-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card);
}

@media (min-width: 768px) {
  .section-card {
    padding: 2rem;
  }
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-head {
    align-items: center;
  }
}

.section-head-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-head h2,
.section-head h3 {
  margin: 0 0 .25rem;
  font-weight: 700;
}

.section-head h2 {
  font-size: 1.25rem;
}

.section-head h3 {
  font-size: 1.125rem;
}

.section-head p {
  margin: 0;
  font-size: .875rem;
  color: var(--text-muted);
}

.icon-purple {
  background: #f3e8ff;
  color: #9333ea;
}

.icon-amber {
  background: #fef3c7;
  color: #d97706;
}

.icon-green {
  background: #dcfce7;
  color: #16a34a;
}

.dark .icon-purple {
  background: rgba(147, 51, 234, .2);
}

.dark .icon-amber {
  background: rgba(217, 119, 6, .2);
}

.dark .icon-green {
  background: rgba(22, 163, 74, .2);
}

.messages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .messages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.message-card {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--muted-bg);
}

.message-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .75rem;
}

.message-card h4 {
  font-size: .9375rem;
  font-weight: 600;
  margin: 0 0 .375rem;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  padding: .125rem .5rem;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 500;
}

.message-card p.text {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .8125rem;
  padding: .375rem .625rem;
  border-radius: .375rem;
}

.copy-btn:hover {
  background: var(--card);
  color: #2563eb;
}

.copy-btn.copied {
  color: var(--success);
}

.assets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .assets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.asset-card {
  padding: 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
}

.asset-preview {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: .75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--muted-bg);
}

.asset-preview.dark-bg {
  background: #1f2937;
}

.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
}

.asset-preview.dark-bg img {
  opacity: .5;
}

.asset-preview .badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-preview .badge-circle {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  background: rgba(255, 255, 255, .9);
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-preview .badge-circle.glass {
  background: rgba(255, 255, 255, .2);
  border: 2px solid rgba(255, 255, 255, .4);
  color: #fff;
}

.asset-card h4 {
  font-size: .9375rem;
  font-weight: 600;
  margin: 0 0 .375rem;
}

.asset-card p.meta {
  font-size: .8125rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.asset-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  border: none;
  color: #fff;
}

.asset-btn.amber {
  background: #d97706;
}

.asset-btn.amber:hover {
  background: #b45309;
}

.asset-btn.green {
  background: #16a34a;
}

.asset-btn.green:hover {
  background: #15803d;
}

.guidelines-box {
  border: 2px solid var(--info-border);
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--info-bg);
}

@media (min-width: 768px) {
  .guidelines-box {
    padding: 2rem;
  }
}

.guidelines-head {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.guidelines-head-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.guidelines-head h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 .5rem;
}

.guidelines-head p {
  font-size: .8125rem;
  color: var(--text-muted);
  margin: 0;
}

.guidelines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .875rem;
}

@media (min-width: 768px) {
  .guidelines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.guideline-item {
  display: flex;
  gap: .75rem;
  padding: .875rem 1rem;
  border-radius: .75rem;
  background: var(--card);
}

.guideline-item svg {
  flex-shrink: 0;
  margin-top: .125rem;
  color: #16a34a;
}

.guideline-item p {
  font-size: .8125rem;
  margin: 0;
}

/* ---------- 14. Reports ---------- */
.report-quick-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .report-quick-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.report-stat {
  padding: 1.5rem;
  border-radius: .5rem;
  border: 1px solid var(--card-border);
  background: var(--card);
}

.report-stat p.label {
  font-size: .875rem;
  margin: 0 0 .5rem;
  color: var(--text-muted);
}

.report-stat p.value {
  font-size: 1.875rem;
  margin: 0;
  font-weight: 700;
}

.payout-info-box {
  border: 2px solid var(--info-border);
  background: var(--info-bg);
  padding: 1.5rem;
  border-radius: .5rem;
}

.payout-info-box li::before {
  content: '• ';
}

.payout-info-box h3 {
  margin: 0 0 .75rem;
  font-size: 1.125rem;
}

.payout-info-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .9375rem;
  color: var(--text-muted);
}

/* ---------- 15. Sign in  ---------- */
.signin-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.signin-blob-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(210, 167, 255, .2), transparent 70%);
  border-radius: 999px;
  transform: translate(50%, -50%);
  filter: blur(48px);
  pointer-events: none;
}

.signin-blob-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 96, 214, .1), transparent 70%);
  border-radius: 999px;
  transform: translate(-50%, 50%);
  filter: blur(48px);
  pointer-events: none;
}

.dark .signin-blob-1 {
  background: radial-gradient(circle, rgba(210, 167, 255, .12), transparent 70%);
}

.dark .signin-blob-2 {
  background: radial-gradient(circle, rgba(99, 96, 214, .2), transparent 70%);
}

.signin-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  position: relative;
}

@media (min-width: 1024px) {
  .signin-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.signin-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .signin-left {
    padding: 3rem;
  }
}

.signin-form-wrap {
  width: 100%;
  max-width: 24rem;
}

.signin-card {
  background: var(--card);
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  padding: 2rem;
}

@media (min-width: 768px) {
  .signin-card {
    padding: 2.5rem;
  }
}

.signin-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  background: var(--promoraa-pale);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.dark .signin-pill {
  background: rgba(99, 96, 214, .2);
}

.signin-pill .dot {
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: var(--promoraa-royal);
}

.signin-pill span {
  font-size: .875rem;
  color: var(--promoraa-deep);
}

.dark .signin-pill span {
  color: var(--promoraa-lavender);
}

.signin-card h1 {
  font-size: 1.875rem;
  margin: 0 0 .75rem;
  letter-spacing: -.03em;
  color: var(--promoraa-deep);
}

.dark .signin-card h1 {
  color: #fff;
}

@media (min-width: 768px) {
  .signin-card h1 {
    font-size: 2.25rem;
  }
}

.signin-sub {
  font-size: .875rem;
  color: var(--text-faint);
  margin: 0;
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.signin-field label {
  display: block;
  font-size: .875rem;
  color: var(--text-muted);
  padding-left: .25rem;
  margin-bottom: .5rem;
}

.signin-field .signin-label {
  display: block;
  font-size: .875rem;
  color: var(--text-muted);
  padding-left: .25rem;
  margin-bottom: .5rem;
}

.signin-input-wrap {
  position: relative;
}

.signin-input {
  width: 100%;
  height: 3.5rem;
  padding: 0 1.25rem;
  font-size: 1rem;
  border: 2px solid var(--divide);
  border-radius: 1rem;
  outline: none;
  transition: all .2s;
  background: var(--input-bg);
  color: var(--text);
}

.signin-input:focus {
  border-color: var(--promoraa-royal);
  box-shadow: 0 0 0 4px rgba(99, 96, 214, .1);
}

.dark .signin-input:focus {
  box-shadow: 0 0 0 4px rgba(99, 96, 214, .25);
}

.signin-input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}

.signin-submit {
  width: 100%;
  height: 3.5rem;
  border-radius: 1rem;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(to right, var(--promoraa-royal), #7b78e8);
  box-shadow: 0 10px 15px -3px rgba(99, 96, 214, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: all .3s;
}

.signin-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 25px -5px rgba(99, 96, 214, .4);
}

.signin-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.signin-footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--divide);
}

.signin-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: .875rem;
}

.signin-footer-row span {
  color: var(--text-faint);
}

.signin-footer-row button {
  background: none;
  border: none;
  color: var(--promoraa-royal);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.dark .signin-footer-row button {
  color: var(--promoraa-lavender);
}

.signin-right {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  overflow: hidden;
  color: #fff;
}

@media (min-width: 1024px) {
  .signin-right {
    display: flex;
  }
}

.signin-right-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--promoraa-royal), #8b7de8, var(--promoraa-lavender));
}

.dark .signin-right-bg {
  background: linear-gradient(135deg, var(--promoraa-deep), #4a3fa8, var(--promoraa-royal));
}

.signin-right-shape-1 {
  position: absolute;
  top: 25%;
  left: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
  filter: blur(48px);
}

.signin-right-shape-2 {
  position: absolute;
  bottom: 25%;
  right: 0;
  width: 20rem;
  height: 20rem;
  background: rgba(240, 231, 250, .2);
  border-radius: 999px;
  filter: blur(48px);
}

.signin-right-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 32rem;
}

.signin-icon-wrap {
  position: relative;
  margin: 0 auto 2rem;
  width: 6rem;
  height: 6rem;
}

.signin-icon-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signin-right-content h2 {
  font-size: 3rem;
  margin: 0 0 1.5rem;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.signin-right-content>p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .7);
  line-height: 1.6;
  max-width: 28rem;
  margin: 0 auto;
}

.signin-trust {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .5);
  font-size: .875rem;
}

.signin-section-title {
  font-size: 1.25rem;
  margin: .5rem 0 0;
  letter-spacing: -.02em;
  color: var(--promoraa-deep);
}

.dark .signin-section-title {
  color: #fff;
}

/* ---------- 16. Dropdown ---------- */
.dd {
  position: relative;
}

.dd-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  height: 3.5rem;
  padding: 0 1.25rem;
  font-size: 1rem;
  text-align: left;
  color: var(--text);
  background: var(--input-bg);
  border: 2px solid var(--divide);
  border-radius: 1rem;
  outline: none;
  transition: all .2s;
}

.dd-trigger:focus-visible,
.dd-trigger[aria-expanded='true'] {
  border-color: var(--promoraa-royal);
  box-shadow: 0 0 0 4px rgba(99, 96, 214, .1);
}

.dark .dd-trigger:focus-visible,
.dark .dd-trigger[aria-expanded='true'] {
  box-shadow: 0 0 0 4px rgba(99, 96, 214, .25);
}

.dd-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dd-placeholder {
  color: var(--text-faint);
}

.dd-chevron {
  flex-shrink: 0;
  color: var(--text-faint);
  transition: transform .2s;
}

.dd-trigger[aria-expanded='true'] .dd-chevron {
  transform: rotate(180deg);
}

.dd-list {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: min(18rem, 50vh);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .15);
}

.dd-option {
  padding: .875rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--divide);
}

.dd-option:last-child {
  border-bottom: 0;
}

.dd-option.active {
  background: var(--muted-bg);
}

.dd-opt-title {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.dd-opt-desc {
  display: block;
  margin-top: .125rem;
  font-size: .875rem;
  color: var(--text-muted);
}

.dd-option.selected .dd-opt-title {
  color: var(--promoraa-royal);
  font-weight: 600;
}

.dark .dd-option.selected .dd-opt-title {
  color: var(--promoraa-lavender);
}

/* Inline field errors (register form) */
.signin-field .field-error {
  margin: .375rem 0 0;
  padding-left: .25rem;
  font-size: .8125rem;
  color: var(--danger);
}

.dark .signin-field .field-error {
  color: #f87171;
}

.signin-input[aria-invalid='true'],
.dd-trigger[aria-invalid='true'] {
  border-color: #ef4444;
}

.signin-input[aria-invalid='true']:focus,
.dd-trigger[aria-invalid='true']:focus-visible {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .15);
}

/* Terms checkbox (register) */
.signin-field .signin-check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 0;
  padding-left: 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}

.signin-check input {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin: .125rem 0 0;
  accent-color: var(--promoraa-royal);
  cursor: pointer;
}

.signin-check input:focus-visible {
  outline: 2px solid var(--promoraa-royal);
  outline-offset: 2px;
}

.signin-check input[aria-invalid='true'] {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

.signin-check a {
  color: var(--promoraa-royal);
  text-decoration: underline;
}

.dark .signin-check a {
  color: var(--promoraa-lavender);
}

/* ---------- 17. Error page ---------- */
.error-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* top padding clears the fixed public nav */
  padding: 6rem 1rem 3rem;
  background: var(--card);
  text-align: center;
}

.error-page-inner {
  max-width: 32rem;
}

.error-code {
  margin: 0 0 .75rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.error-title {
  margin: 0 0 .75rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--promoraa-deep);
}

.dark .error-title {
  color: #fff;
}

.error-message {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Animations ---------- */
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

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

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-slide-up {
  animation: slideUp .3s cubic-bezier(.16, 1, .3, 1);
}

.animate-scale-up {
  animation: scaleUp .2s cubic-bezier(.16, 1, .3, 1);
}