:root {
  --ink: #21152f;
  --ink-2: #382647;
  --muted: #756a7e;
  --line: #e8e1eb;
  --paper: #faf8fb;
  --paper-2: #f4eff6;
  --white: #ffffff;
  --accent: #ffb65c;
  --accent-dark: #b76808;
  --accent-soft: #fff2df;
  --violet: #9b73ff;
  --violet-dark: #7046d8;
  --violet-soft: #f1ebff;
  --success: #25806a;
  --success-soft: #e8f7f2;
  --danger: #bd4c63;
  --danger-soft: #fff0f3;
  --warning: #94630b;
  --warning-soft: #fff7df;
  --shadow: 0 22px 65px rgba(48, 27, 58, .11);
  --shadow-sm: 0 8px 28px rgba(48, 27, 58, .07);
  --radius: 22px;
  --radius-sm: 13px;
  --sidebar: #20132c;
  --sidebar-2: #321d3e;
}

* { box-sizing: border-box; }
html {
  font-family: "DM Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--violet-dark); }
.hidden { display: none !important; }

h1, h2, h3, h4, .brand-word, .stat-card strong, .offer-pay strong {
  font-family: Manrope, "DM Sans", sans-serif;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.brand-light { color: var(--white); }
.brand-logo { width: 42px; height: 42px; display: block; flex: 0 0 auto; }
.brand-word { display: inline-flex; align-items: baseline; font-size: 22px; letter-spacing: -1px; }
.brand-word strong { font-weight: 800; }
.brand-word span { font-weight: 600; opacity: .88; }
.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  align-items: end;
  gap: 3px;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 1px solid rgba(155,115,255,.35);
  border-radius: 9px;
}
.brand-mark span { display: block; background: var(--accent); border-radius: 3px; }
.brand-mark span:nth-child(1) { height: 8px; }
.brand-mark span:nth-child(2) { height: 15px; }
.brand-mark span:nth-child(3) { height: 11px; }

/* Login and registration */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(520px, 52%) 1fr; }
.auth-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 48px clamp(44px, 7vw, 112px) 38px clamp(44px, 6vw, 96px);
  color: white;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,182,92,.17), transparent 24%),
    radial-gradient(circle at 78% 52%, rgba(155,115,255,.18), transparent 31%),
    linear-gradient(145deg, #1b1027 0%, #332041 58%, #4a293e 100%);
}
.auth-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 590px;
  height: 590px;
  right: -255px;
  bottom: -315px;
  border: 1px solid rgba(255,182,92,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 78px rgba(255,182,92,.025), 0 0 0 158px rgba(155,115,255,.025);
}
.auth-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom right, black, transparent 76%);
}
.auth-hero > .brand { position: relative; z-index: 2; }
.hero-copy { margin: auto 0; max-width: 690px; position: relative; z-index: 1; padding: 50px 0; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #eadff0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.hero-kicker span { width: 28px; height: 2px; background: var(--accent); border-radius: 999px; }
.hero-copy h1 {
  margin: 21px 0 25px;
  font-size: clamp(54px, 6.1vw, 94px);
  line-height: .94;
  letter-spacing: -5.4px;
}
.hero-copy h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p {
  max-width: 580px;
  margin: 0;
  color: #d9ccdf;
  font-size: 17px;
  line-height: 1.75;
}
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}
.hero-features > div {
  min-height: 140px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(10px);
}
.feature-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255,182,92,.36);
  border-radius: 9px;
  color: var(--accent);
  font: 800 10px/1 Manrope, sans-serif;
}
.hero-features strong { display: block; color: white; font-size: 12px; }
.hero-features small { display: block; margin-top: 8px; color: #bdaec5; font-size: 10px; line-height: 1.55; }
.hero-footer { position: relative; z-index: 2; display: grid; gap: 18px; }
.trust-card {
  display: flex;
  align-items: center;
  gap: 24px;
  width: fit-content;
  max-width: 100%;
  padding: 17px 20px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(12px);
}
.trust-card div:not(.trust-divider) { display: grid; gap: 4px; }
.trust-card strong { color: var(--accent); font-size: 14px; }
.trust-card span { color: #bcaec4; font-size: 9px; letter-spacing: .6px; text-transform: uppercase; }
.trust-divider { width: 1px; height: 35px; background: rgba(255,255,255,.16); }
.powered-lockup { display: inline-flex; align-items: center; gap: 12px; width: fit-content; padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(15,7,23,.12); }
.powered-lockup > span { color: #7d7084; font-size: 8px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.powered-lockup img { width: 168px; max-height: 32px; object-fit: contain; object-position: left center; }
.powered { margin: 0; color: #9d8ea6; font-size: 10px; letter-spacing: .5px; }

.auth-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: 60px clamp(28px, 5vw, 78px);
  background:
    radial-gradient(circle at 100% 0, rgba(155,115,255,.07), transparent 27%),
    var(--white);
}
.auth-utility {
  position: absolute;
  top: 28px;
  left: 34px;
  right: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.auth-utility nav { display: flex; gap: 18px; }
.auth-utility a { color: var(--muted); text-decoration: none; }
.auth-utility a:hover { color: var(--violet-dark); }
.auth-box { width: min(100%, 470px); }
.auth-mobile-brand { display: none; }
.auth-heading { margin-bottom: 28px; }
.auth-heading h2 { margin: 16px 0 9px; font-size: 35px; letter-spacing: -1.6px; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #eadff2;
  border-radius: 999px;
  color: var(--violet-dark);
  background: var(--violet-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}
.portal-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.portal-badge-admin { color: var(--accent-dark); background: var(--accent-soft); border-color: #f3d9b4; }
.portal-badge-admin::before { background: var(--accent); }
.auth-tabs { display: flex; gap: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.auth-tab {
  position: relative;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0 0 13px;
  font-weight: 700;
  cursor: pointer;
}
.auth-tab.active { color: var(--ink); }
.auth-tab.active::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--violet), var(--accent)); }
.auth-form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: var(--ink-2); font-size: 11px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  padding: 13px 14px;
  color: var(--ink);
  background: #fdfcfe;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input:hover, select:hover, textarea:hover { border-color: #d7cadc; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); background: white; box-shadow: 0 0 0 4px rgba(155,115,255,.10); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { grid-template-columns: 18px 1fr; align-items: start; color: var(--muted); font-weight: 500; line-height: 1.5; }
.check-row input { width: 17px; margin-top: 2px; accent-color: var(--violet-dark); }
.btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 13px 17px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { color: white; background: linear-gradient(135deg, var(--violet-dark), #4d2f78); box-shadow: 0 12px 26px rgba(112,70,216,.22); }
.btn-primary:hover { background: linear-gradient(135deg, #7a51df, #563482); }
.btn-accent { color: #3f2504; background: var(--accent); box-shadow: 0 10px 22px rgba(255,182,92,.22); }
.btn-ghost { color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #d7c9dd; background: white; }
.btn-danger { color: var(--danger); background: var(--danger-soft); }
.btn-sm { padding: 8px 11px; font-size: 11px; }
.btn-block { width: 100%; }
.form-note { margin: -7px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.auth-assurance {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.auth-assurance p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.assurance-dot { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.admin-login-card { align-self: center; }
.return-link { text-align: center; text-decoration: none; }

/* Application shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 254px minmax(0, 1fr); }
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 254px;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
  color: white;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,182,92,.11), transparent 24%),
    linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  box-shadow: 18px 0 50px rgba(42,22,51,.08);
}
.sidebar-brand { margin: 0 11px 12px; }
.workspace-label { margin: 0 13px 30px; color: #927f9d; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.main-nav { display: grid; gap: 6px; }
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 12px;
  padding: 12px 13px;
  color: #c0afc8;
  background: transparent;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.nav-item:hover { color: white; background: rgba(255,255,255,.065); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(155,115,255,.22), rgba(255,182,92,.08)); box-shadow: inset 3px 0 var(--accent); }
.nav-icon { width: 22px; color: var(--accent); text-align: center; font-size: 15px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 5px; padding-top: 28px; }
.powered-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.powered-card img { width: 28px; height: 28px; flex: 0 0 auto; }
.powered-card div { min-width: 0; display: grid; gap: 2px; }
.powered-card span { color: #887693; font-size: 8px; letter-spacing: .8px; text-transform: uppercase; }
.powered-card strong { color: #d2c4d8; font-size: 9px; line-height: 1.3; }
.workspace { grid-column: 2; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.topbar h2 { margin: 5px 0 0; font-size: 25px; letter-spacing: -1px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.system-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.system-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px var(--success-soft); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip > div:last-child { display: grid; gap: 3px; font-size: 11px; }
.user-chip span { color: var(--muted); font-size: 9px; }
.avatar { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: var(--violet-dark); background: var(--violet-soft); font-weight: 800; }
.page-content { padding: 34px 38px 60px; }
.demo-banner { padding: 11px 38px; color: #68470d; background: var(--warning-soft); border-bottom: 1px solid #eedca4; font-size: 11px; }
.mobile-menu { display: none; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; cursor: pointer; }
.mini-label { color: var(--violet-dark); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }

/* Dashboard content */
.welcome { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 27px; }
.welcome h1 { margin: 0 0 8px; font-size: clamp(33px, 4vw, 47px); letter-spacing: -2.4px; }
.welcome p { margin: 0; color: var(--muted); line-height: 1.6; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 8px 11px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .65px; white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-active, .status-confirmed, .status-paid, .status-approved { color: var(--success); background: var(--success-soft); }
.status-pending, .status-not_started { color: var(--warning); background: var(--warning-soft); }
.status-reversed, .status-rejected, .status-suspended { color: var(--danger); background: var(--danger-soft); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 28px; }
.stat-card, .panel, .offer-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.stat-card { position: relative; overflow: hidden; padding: 22px; }
.stat-card::after { content: ""; position: absolute; width: 80px; height: 80px; right: -30px; top: -35px; border-radius: 50%; background: var(--violet-soft); opacity: .65; }
.stat-label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.stat-card strong { position: relative; z-index: 1; display: block; margin-top: 14px; font-size: 29px; letter-spacing: -1.5px; }
.stat-card small { position: relative; z-index: 1; display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.stat-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--violet-dark); background: var(--violet-soft); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 20px; }
.panel { padding: 23px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.panel-header h3 { margin: 0; font-size: 16px; letter-spacing: -.35px; }
.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.text-button { border: 0; color: var(--violet-dark); background: none; font-size: 10px; font-weight: 800; cursor: pointer; }
.offer-list { display: grid; gap: 10px; }
.offer-row { display: grid; grid-template-columns: 45px minmax(0,1fr) auto auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.offer-row:hover { border-color: #d8cae0; box-shadow: 0 8px 24px rgba(65,38,77,.05); }
.offer-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; color: var(--accent-dark); background: var(--accent-soft); font-weight: 800; }
.offer-row h4 { margin: 0 0 4px; font-size: 12px; }
.offer-row p { margin: 0; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-pay { text-align: right; }
.offer-pay strong { display: block; font-size: 14px; }
.offer-pay span { color: var(--muted); font-size: 8px; letter-spacing: .5px; }
.reward-policy, .withdraw-card {
  padding: 22px;
  border-radius: var(--radius);
  color: white;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,182,92,.15), transparent 28%),
    linear-gradient(145deg, #251432, #40244d);
  box-shadow: var(--shadow-sm);
}
.reward-policy h3, .withdraw-card h3 { margin: 0 0 10px; font-size: 16px; }
.reward-policy > p, .withdraw-card > p { margin: 0; color: #cdbcce; font-size: 10px; line-height: 1.65; }
.reward-policy-list { display: grid; gap: 10px; margin-top: 16px; }
.reward-policy-item { display: grid; grid-template-columns: 29px 1fr; gap: 10px; align-items: start; padding: 11px; border-radius: 12px; background: rgba(255,255,255,.065); }
.reward-policy-item b { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #4c2c05; background: var(--accent); }
.reward-policy-item span { color: #e0d5e3; font-size: 9px; line-height: 1.55; }
.notice { margin-top: 17px; padding: 14px; border-radius: 13px; color: var(--muted); background: var(--paper); font-size: 9px; line-height: 1.65; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.page-heading h1 { margin: 0 0 7px; font-size: 33px; letter-spacing: -1.5px; }
.page-heading p { margin: 0; color: var(--muted); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 19px; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; color: var(--muted); background: white; font-size: 10px; font-weight: 700; cursor: pointer; }
.filter-chip.active { color: #402508; border-color: var(--accent); background: var(--accent); }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer-card { display: flex; flex-direction: column; min-height: 300px; padding: 20px; }
.offer-card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.provider-badge { padding: 6px 8px; border-radius: 8px; color: var(--muted); background: var(--paper); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.offer-card h3 { margin: 21px 0 9px; font-size: 18px; letter-spacing: -.5px; }
.offer-card > p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.offer-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 15px 0; }
.offer-meta div { padding: 10px; border-radius: 10px; background: var(--paper); }
.offer-meta span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.offer-meta strong { display: block; margin-top: 4px; font-size: 12px; }
.offer-rules { margin-top: auto !important; padding-top: 10px; border-top: 1px solid var(--line); font-size: 9px !important; }
.offer-card .btn { margin-top: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; }
table { width: 100%; border-collapse: collapse; background: white; font-size: 10px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #fbf9fc; font-size: 8px; letter-spacing: .7px; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdfbfe; }
.money-positive { color: var(--success); font-weight: 800; }
.money-negative { color: var(--danger); font-weight: 800; }
.wallet-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 20px; }
.withdraw-card label { margin-top: 14px; color: #eadfee; }
.withdraw-card input, .withdraw-card select { color: white; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.08); }
.withdraw-card select option { color: var(--ink); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-item { padding: 17px; border-radius: 13px; background: var(--paper); }
.profile-item span { display: block; color: var(--muted); font-size: 8px; letter-spacing: .7px; text-transform: uppercase; }
.profile-item strong { display: block; margin-top: 6px; font-size: 12px; }
.empty-state { padding: 48px 20px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 15px; }
.loading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skeleton { height: 170px; border-radius: var(--radius); background: linear-gradient(90deg, #eee8f0, #fbf9fc, #eee8f0); background-size: 200% 100%; animation: pulse 1.3s infinite; }
@keyframes pulse { to { background-position: -200% 0; } }
.toast { position: fixed; z-index: 100; right: 22px; top: 20px; max-width: 390px; transform: translateY(-140%); opacity: 0; padding: 13px 17px; border-radius: 12px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: 11px; font-weight: 600; transition: .3s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--danger); }

/* Legal */
.legal-page { min-height: 100vh; background: white; }
.legal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 6vw; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.legal-content { width: min(850px, 88vw); margin: 50px auto 90px; }
.legal-content h1 { font-size: 42px; letter-spacing: -2px; }
.legal-content h2 { margin-top: 35px; }
.legal-content p, .legal-content li { color: #594d61; line-height: 1.8; font-size: 13px; }
.legal-note { padding: 15px; border-radius: 12px; color: var(--warning) !important; background: var(--warning-soft); }
.legal-powered { display: flex; align-items: center; gap: 10px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-powered span { color: var(--muted); font-size: 9px; letter-spacing: .8px; text-transform: uppercase; }
.legal-powered img { width: 180px; }

@media (max-width: 1180px) {
  .auth-layout { grid-template-columns: minmax(480px, 48%) 1fr; }
  .hero-features { grid-template-columns: 1fr; max-width: 520px; }
  .hero-features > div { min-height: auto; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
  .hero-features .feature-icon { grid-row: 1 / span 2; margin: 0; }
  .hero-features small { margin-top: 4px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid, .wallet-layout { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { min-height: 100vh; padding: 88px 22px 45px; align-content: start; }
  .auth-utility { top: 20px; left: 22px; right: 22px; }
  .auth-mobile-brand { display: block; width: min(100%, 470px); margin: 0 auto 38px; }
  .sidebar { transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); }
  .app-shell { grid-template-columns: 1fr; }
  .workspace { grid-column: 1; }
  .topbar { min-height: 86px; padding: 18px 22px; }
  .page-content { padding: 26px 22px 50px; }
  .demo-banner { padding: 10px 22px; }
  .mobile-menu { display: inline-grid; place-items: center; }
  .topbar > div:nth-child(2) { flex: 1; }
  .system-status { display: none; }
  .user-chip > div:last-child { display: none; }
}
@media (max-width: 620px) {
  .form-grid-2, .profile-grid { grid-template-columns: 1fr; }
  .auth-tabs { margin-bottom: 25px; }
  .auth-heading h2 { font-size: 30px; }
  .stat-grid, .offer-grid, .loading-grid { grid-template-columns: 1fr; }
  .welcome, .page-heading { align-items: start; flex-direction: column; }
  .offer-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .offer-row .btn { grid-column: 1 / -1; }
  .topbar h2 { font-size: 20px; }
  .topbar { padding-inline: 16px; }
  .page-content { padding-inline: 16px; }
  .auth-utility nav { gap: 11px; }
}
