:root {
  --navy: #111a2e;
  --navy-2: #18233c;
  --navy-3: #243252;
  --purple: #7357ff;
  --purple-2: #5b3ff0;
  --purple-soft: #efecff;
  --coral: #ff6b5e;
  --emerald: #19a974;
  --amber: #e8a317;
  --red: #d64555;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --surface-3: #eef1f6;
  --text: #182033;
  --muted: #667085;
  --muted-2: #98a2b3;
  --border: #e6e9f0;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 14px 34px rgba(17, 26, 46, .09);
  --shadow-lg: 0 28px 70px rgba(17, 26, 46, .18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --sidebar: 262px;
  --topbar: 76px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

svg {
  display: block;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  overflow-y: auto;
  background:
    radial-gradient(circle at 18% 8%, rgba(115, 87, 255, .22), transparent 23%),
    linear-gradient(180deg, #111a2e 0%, #10182a 100%);
  color: #d5dbea;
  scrollbar-width: thin;
  scrollbar-color: #33405e transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 82px;
  padding: 0 23px;
}

.brand-mark {
  position: relative;
  width: 35px;
  height: 35px;
  flex: none;
  border-radius: 11px;
  background: linear-gradient(145deg, #846cff, #5a3bea);
  box-shadow: 0 9px 23px rgba(115, 87, 255, .35);
  transform: rotate(-2deg);
}

.brand-mark span {
  position: absolute;
  bottom: 8px;
  width: 4px;
  border-radius: 5px;
  background: #fff;
  transform: skewY(-18deg);
}

.brand-mark span:nth-child(1) {
  left: 9px;
  height: 9px;
  opacity: .78;
}

.brand-mark span:nth-child(2) {
  left: 16px;
  height: 15px;
  opacity: .9;
}

.brand-mark span:nth-child(3) {
  left: 23px;
  height: 21px;
}

.brand strong {
  display: block;
  color: #fff;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -.7px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: #8f9ab3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.workspace-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 14px 17px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .045);
}

.workspace-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #ff8d7e, #ff5e50);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(255, 107, 94, .18);
}

.workspace-card > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.workspace-card strong,
.workspace-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-card strong {
  color: #f6f7fb;
  font-size: 12px;
}

.workspace-card span {
  margin-top: 3px;
  color: #7f8ba7;
  font-size: 10px;
  letter-spacing: .3px;
}

.nav-list {
  padding: 0 12px;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  height: 45px;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #9ca7bd;
  cursor: pointer;
  font-weight: 590;
  text-align: left;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.nav-item:hover {
  background: rgba(255, 255, 255, .055);
  color: #eef1f7;
}

.nav-item:active {
  transform: scale(.99);
}

.nav-item.active {
  background: linear-gradient(100deg, rgba(115, 87, 255, .23), rgba(115, 87, 255, .1));
  color: #fff;
}

.nav-item.active::before {
  position: absolute;
  left: -12px;
  width: 3px;
  height: 24px;
  border-radius: 0 4px 4px 0;
  background: #846cff;
  box-shadow: 0 0 14px rgba(132, 108, 255, .75);
  content: "";
}

.nav-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: none;
  place-items: center;
}

.nav-icon svg {
  width: 19px;
  height: 19px;
}

.nav-item b,
.nav-item em {
  min-width: 22px;
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #aeb8cb;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.nav-item em {
  background: var(--coral);
  color: #fff;
}

.nav-item i {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 163, 23, .14);
}

.nav-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 8px 8px;
  color: #58647d;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.nav-separator::after {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, .07);
  content: "";
}

.admin-only {
  display: none;
}

body.admin-mode .admin-only {
  display: flex;
}

.sidebar-foot {
  margin-top: auto;
  padding: 18px 12px 14px;
}

.help-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(115, 87, 255, .17), rgba(255, 255, 255, .035));
}

.help-card::after {
  position: absolute;
  top: -24px;
  right: -22px;
  width: 80px;
  height: 80px;
  border: 16px solid rgba(255, 255, 255, .025);
  border-radius: 50%;
  content: "";
}

.help-icon {
  display: grid;
  width: 27px;
  height: 27px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 8px;
  background: rgba(132, 108, 255, .24);
  color: #b9aaff;
  font-weight: 800;
}

.help-card strong {
  display: block;
  color: #f1f3f8;
  font-size: 11px;
}

.help-card p {
  margin: 5px 0 12px;
  color: #818ca5;
  font-size: 10px;
  line-height: 1.45;
}

.help-card button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #a997ff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.main-column {
  display: flex;
  width: calc(100% - var(--sidebar));
  min-height: 100vh;
  flex-direction: column;
  margin-left: var(--sidebar);
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  height: var(--topbar);
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid rgba(230, 233, 240, .9);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}

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

.topbar-actions {
  gap: 8px;
}

.search-box {
  display: flex;
  width: min(350px, 31vw);
  height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--surface-2);
  transition: border var(--transition), background var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
  border-color: rgba(115, 87, 255, .36);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(115, 87, 255, .08);
}

.search-box > span {
  color: #99a3b7;
}

.search-box svg {
  width: 17px;
  height: 17px;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.search-box input::placeholder {
  color: #9da6b8;
}

.search-box kbd {
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: #98a2b3;
  font: 9px/1.2 ui-monospace, monospace;
  box-shadow: 0 1px 1px rgba(16, 24, 40, .03);
}

.role-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.role-switch button {
  height: 29px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.role-switch button.active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #6f7990;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border var(--transition);
}

.icon-button:hover {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.icon-button.tiny {
  width: 25px;
  height: 25px;
  color: #79859d;
}

.notification-button {
  position: relative;
}

.notification-button i {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--coral);
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 3px;
  padding: 4px 4px 4px 6px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.profile-button:hover {
  background: var(--surface-2);
}

.profile-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--navy-3), var(--navy));
  color: #fff;
  font-size: 10px;
  font-weight: 750;
}

.profile-text strong,
.profile-text small {
  display: block;
  line-height: 1.25;
}

.profile-text strong {
  font-size: 11px;
}

.profile-text small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
}

.chevron {
  padding: 0 6px 0 2px;
  color: var(--muted-2);
}

.mobile-menu {
  display: none;
  margin-right: 8px;
}

.mobile-menu span {
  width: 18px;
  height: 1.5px;
  margin: 2px;
  border-radius: 2px;
  background: currentColor;
}

.content {
  width: 100%;
  max-width: 1540px;
  flex: 1;
  margin: 0 auto;
  padding: 30px;
  outline: none;
}

.page {
  animation: page-in 340ms cubic-bezier(.2, .75, .25, 1);
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--purple);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(115, 87, 255, .1);
}

.page-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 730;
  letter-spacing: -1.1px;
  line-height: 1.2;
}

.page-subtitle {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 680;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border var(--transition);
}

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

.button:active {
  transform: translateY(0);
}

.button svg {
  width: 16px;
  height: 16px;
}

.button.primary {
  background: linear-gradient(135deg, #8066ff, var(--purple-2));
  color: #fff;
  box-shadow: 0 9px 20px rgba(115, 87, 255, .2);
}

.button.primary:hover {
  box-shadow: 0 12px 25px rgba(115, 87, 255, .28);
}

.button.secondary {
  border-color: var(--border);
  background: #fff;
  color: #3e485d;
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover {
  border-color: #d4d8e2;
}

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

.button.danger {
  border-color: rgba(214, 69, 85, .18);
  background: rgba(214, 69, 85, .07);
  color: var(--red);
}

.button.success {
  background: var(--emerald);
  color: #fff;
}

.button.small {
  min-height: 33px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 10px;
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(.2);
  opacity: .55;
  transform: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 135px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-card.featured {
  border-color: transparent;
  background:
    radial-gradient(circle at 90% 0, rgba(255, 255, 255, .18), transparent 30%),
    linear-gradient(145deg, #1c2946, var(--navy));
  color: #fff;
  box-shadow: 0 18px 35px rgba(17, 26, 46, .15);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 620;
}

.featured .metric-label {
  color: #a9b3c8;
}

.metric-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--purple-soft);
  color: var(--purple);
}

.metric-icon.coral {
  background: #fff0ee;
  color: var(--coral);
}

.metric-icon.green {
  background: #e8f8f2;
  color: var(--emerald);
}

.metric-icon.amber {
  background: #fff6df;
  color: var(--amber);
}

.metric-icon svg {
  width: 15px;
  height: 15px;
}

.featured .metric-icon {
  background: rgba(255, 255, 255, .09);
  color: #a998ff;
}

.metric-value {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: 25px;
  font-weight: 740;
  letter-spacing: -.8px;
}

.featured .metric-value {
  color: #fff;
}

.metric-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 9px;
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 740;
}

.trend.up {
  color: var(--emerald);
}

.trend.down {
  color: var(--red);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
  gap: 18px;
}

.stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  min-height: 63px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 19px;
  border-bottom: 1px solid var(--border);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 690;
  letter-spacing: -.2px;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 9px;
}

.panel-body {
  padding: 19px;
}

.chart-controls,
.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: var(--surface-2);
}

.chart-controls button,
.segmented button {
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  font-size: 9px;
  font-weight: 620;
}

.chart-controls button.active,
.segmented button.active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.chart-wrap {
  position: relative;
  height: 240px;
  padding-top: 6px;
}

.chart-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid-line {
  stroke: #eef0f4;
  stroke-width: 1;
}

.chart-area {
  fill: url(#areaGradient);
}

.chart-line {
  fill: none;
  stroke: var(--purple);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.chart-dot {
  fill: #fff;
  stroke: var(--purple);
  stroke-width: 2.2;
}

.chart-label {
  fill: #9ba4b5;
  font-size: 8px;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  display: none;
  min-width: 110px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 9px;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

.chart-tooltip strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
}

.chart-legend i.coral {
  background: var(--coral);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.quick-action {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
  transition: border var(--transition), transform var(--transition), box-shadow var(--transition);
}

.quick-action:hover {
  transform: translateY(-2px);
  border-color: rgba(115, 87, 255, .28);
  box-shadow: var(--shadow-sm);
}

.quick-action span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--purple-soft);
  color: var(--purple);
}

.quick-action svg {
  width: 14px;
  height: 14px;
}

.quick-action strong {
  font-size: 10px;
}

.balance-box {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, .13), transparent 37%),
    linear-gradient(140deg, #6a4df4, #8b70ff);
  color: #fff;
  box-shadow: 0 15px 30px rgba(115, 87, 255, .2);
}

.balance-box::after {
  position: absolute;
  right: -20px;
  bottom: -60px;
  width: 145px;
  height: 145px;
  border: 24px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  content: "";
}

.balance-box small {
  color: rgba(255, 255, 255, .7);
  font-size: 9px;
}

.balance-box h3 {
  margin: 7px 0 18px;
  font-size: 25px;
  letter-spacing: -.5px;
}

.balance-box button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .21);
  border-radius: 9px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  backdrop-filter: blur(5px);
}

.campaign-list {
  padding: 4px 19px 10px;
}

.campaign-row {
  display: grid;
  grid-template-columns: minmax(175px, 1.35fr) .7fr .8fr .8fr 86px;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.campaign-row:last-child {
  border-bottom: 0;
}

.campaign-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.campaign-thumb {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, #ecedff, #d7d2ff);
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
}

.campaign-thumb.coral {
  background: linear-gradient(145deg, #fff0ee, #ffd8d4);
  color: var(--coral);
}

.campaign-thumb.green {
  background: linear-gradient(145deg, #eaf9f3, #c6eedf);
  color: var(--emerald);
}

.campaign-name strong,
.campaign-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-name strong {
  font-size: 10px;
}

.campaign-name span,
.data-cell small {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 8px;
}

.data-cell strong {
  display: block;
  font-size: 10px;
}

.progress {
  height: 5px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-3);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), #9a87ff);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 8px;
}

.status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #eef1f6;
  color: var(--muted);
  font-size: 8px;
  font-weight: 720;
}

.status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status.active,
.status.approved {
  background: #e8f8f2;
  color: #168760;
}

.status.review,
.status.payment-review,
.status.pending {
  background: #fff6df;
  color: #ad7210;
}

.status.paused {
  background: #eef1f6;
  color: #667085;
}

.status.rejected {
  background: #fff0f1;
  color: var(--red);
}

.status.payment-pending,
.status.draft {
  background: var(--purple-soft);
  color: var(--purple-2);
}

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

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

.data-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: #3d465a;
  font-size: 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

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

.data-table tbody tr:hover {
  background: #fbfbfd;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.more-button {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.filter-search {
  display: flex;
  min-width: 200px;
  height: 35px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
}

.filter-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 10px;
}

.filter-search svg {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

.select {
  height: 35px;
  padding: 0 29px 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: #485166;
  font-size: 10px;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(115, 87, 255, .16);
  border-radius: 13px;
  background: linear-gradient(100deg, rgba(115, 87, 255, .075), rgba(115, 87, 255, .025));
}

.alert.warning {
  border-color: rgba(232, 163, 23, .2);
  background: #fffaf0;
}

.alert.success {
  border-color: rgba(25, 169, 116, .18);
  background: #f2fbf7;
}

.alert-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--purple-soft);
  color: var(--purple);
}

.alert.warning .alert-icon {
  background: #fff0c7;
  color: var(--amber);
}

.alert.success .alert-icon {
  background: #dcf5eb;
  color: var(--emerald);
}

.alert-icon svg {
  width: 15px;
  height: 15px;
}

.alert-content {
  min-width: 0;
  flex: 1;
}

.alert strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
}

.alert p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.wizard-card {
  overflow: hidden;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.wizard-step-tab {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  color: var(--muted-2);
}

.wizard-step-tab:not(:last-child)::after {
  position: absolute;
  top: 22px;
  right: -1px;
  width: 1px;
  height: 24px;
  background: var(--border);
  content: "";
}

.wizard-step-tab .number {
  display: grid;
  width: 25px;
  height: 25px;
  flex: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 9px;
  font-weight: 750;
}

.wizard-step-tab strong,
.wizard-step-tab small {
  display: block;
}

.wizard-step-tab strong {
  color: inherit;
  font-size: 9px;
}

.wizard-step-tab small {
  margin-top: 3px;
  font-size: 8px;
}

.wizard-step-tab.active {
  color: var(--purple);
}

.wizard-step-tab.active .number {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
  box-shadow: 0 7px 15px rgba(115, 87, 255, .2);
}

.wizard-step-tab.done {
  color: var(--emerald);
}

.wizard-step-tab.done .number {
  border-color: rgba(25, 169, 116, .2);
  background: #e8f8f2;
}

.wizard-body {
  min-height: 440px;
  padding: 26px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.4px;
}

.section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

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

.choice-card {
  position: relative;
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(115, 87, 255, .3);
  box-shadow: var(--shadow-sm);
}

.choice-card.selected {
  border-color: var(--purple);
  background: linear-gradient(145deg, #fff, #faf9ff);
  box-shadow: 0 0 0 3px rgba(115, 87, 255, .08);
}

.choice-check {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: transparent;
}

.selected .choice-check {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.choice-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 11px;
  background: var(--purple-soft);
  color: var(--purple);
}

.choice-icon.coral {
  background: #fff0ee;
  color: var(--coral);
}

.choice-icon.green {
  background: #e8f8f2;
  color: var(--emerald);
}

.choice-icon svg {
  width: 18px;
  height: 18px;
}

.choice-card strong {
  font-size: 11px;
}

.choice-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: block;
}

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

.field > span,
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #454e61;
  font-size: 9px;
  font-weight: 690;
}

.field > span small {
  color: var(--muted-2);
  font-weight: 500;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--text);
  font-size: 11px;
  transition: border var(--transition), box-shadow var(--transition);
}

.input {
  height: 42px;
  padding: 0 12px;
}

.textarea {
  min-height: 94px;
  padding: 11px 12px;
  line-height: 1.5;
  resize: vertical;
}

.input:focus,
.textarea:focus {
  border-color: rgba(115, 87, 255, .55);
  box-shadow: 0 0 0 3px rgba(115, 87, 255, .08);
}

.input.invalid,
.textarea.invalid {
  border-color: var(--red);
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.45;
}

.field-error {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-size: 8px;
}

.prefix-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.prefix-input:focus-within {
  border-color: rgba(115, 87, 255, .55);
  box-shadow: 0 0 0 3px rgba(115, 87, 255, .08);
}

.prefix-input span {
  padding-left: 12px;
  color: var(--muted-2);
  font-size: 11px;
}

.prefix-input .input {
  border: 0;
  box-shadow: none;
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-option {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 620;
}

.tag-option.selected {
  border-color: rgba(115, 87, 255, .3);
  background: var(--purple-soft);
  color: var(--purple-2);
}

.tag-option.selected::before {
  content: "✓";
}

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

.format-card {
  position: relative;
  min-height: 105px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.format-card.selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(115, 87, 255, .07);
}

.format-visual {
  display: grid;
  height: 45px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-3);
}

.format-visual span {
  display: block;
  border: 1.5px dashed #b3b9c8;
  border-radius: 3px;
}

.format-visual.leaderboard span {
  width: 75%;
  height: 16px;
}

.format-visual.rectangle span {
  width: 34px;
  height: 31px;
}

.format-visual.mobile span {
  width: 65%;
  height: 19px;
}

.format-card strong,
.format-card small {
  display: block;
}

.format-card strong {
  font-size: 9px;
}

.format-card small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 8px;
}

.dropzone {
  display: grid;
  min-height: 125px;
  place-items: center;
  padding: 18px;
  border: 1.5px dashed #ced3df;
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  text-align: center;
  transition: border var(--transition), background var(--transition);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--purple);
  background: #faf9ff;
}

.dropzone input {
  display: none;
}

.dropzone-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  place-items: center;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple);
}

.dropzone strong {
  display: block;
  font-size: 9px;
}

.dropzone p {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 8px;
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 26px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.wizard-footer-right {
  display: flex;
  gap: 8px;
}

.preview-sticky {
  position: sticky;
  top: calc(var(--topbar) + 18px);
}

.preview-card {
  overflow: hidden;
}

.preview-head {
  padding: 16px 17px;
  border-bottom: 1px solid var(--border);
}

.preview-head strong {
  display: block;
  font-size: 11px;
}

.preview-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 8px;
}

.ad-preview-wrap {
  min-height: 238px;
  padding: 17px;
  background:
    linear-gradient(90deg, rgba(226, 230, 238, .35) 1px, transparent 1px),
    linear-gradient(rgba(226, 230, 238, .35) 1px, transparent 1px),
    #f8f9fb;
  background-size: 18px 18px;
}

.ad-preview {
  position: relative;
  overflow: hidden;
  min-height: 204px;
  padding: 17px;
  border: 1px solid #dde1ea;
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 10%, rgba(115, 87, 255, .18), transparent 30%),
    linear-gradient(145deg, #fff, #f4f2ff);
  box-shadow: 0 12px 28px rgba(17, 26, 46, .09);
}

.ad-preview-label {
  display: inline-flex;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(17, 26, 46, .07);
  color: #6e778b;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.ad-preview-art {
  position: absolute;
  right: -13px;
  bottom: -18px;
  width: 120px;
  height: 120px;
  border-radius: 36% 64% 67% 33% / 40% 42% 58% 60%;
  background: linear-gradient(145deg, #8066ff, #ff8074);
  opacity: .9;
  transform: rotate(-15deg);
}

.ad-preview-art::after {
  position: absolute;
  inset: 25px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: inherit;
  content: "";
}

.ad-preview-copy {
  position: relative;
  z-index: 1;
  max-width: 70%;
  margin-top: 25px;
}

.ad-preview-copy h3 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.12;
  letter-spacing: -.5px;
}

.ad-preview-copy p {
  margin: 8px 0 13px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.ad-preview-copy button {
  height: 29px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
}

.preview-stat {
  padding: 13px 16px;
}

.preview-stat + .preview-stat {
  border-left: 1px solid var(--border);
}

.preview-stat small,
.preview-stat strong {
  display: block;
}

.preview-stat small {
  color: var(--muted-2);
  font-size: 8px;
}

.preview-stat strong {
  margin-top: 4px;
  font-size: 11px;
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
}

.review-item span {
  color: var(--muted);
  font-size: 9px;
}

.review-item strong {
  max-width: 65%;
  font-size: 10px;
  text-align: right;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 13px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.checkbox-line input {
  margin: 1px 0 0;
  accent-color: var(--purple);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr);
  gap: 18px;
  align-items: start;
}

.bank-card {
  position: relative;
  overflow: hidden;
  min-height: 204px;
  padding: 22px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, .13), transparent 28%),
    linear-gradient(145deg, #1e2a48, #10182a);
  color: #fff;
  box-shadow: 0 18px 40px rgba(17, 26, 46, .18);
}

.bank-card::before,
.bank-card::after {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 18px solid rgba(255, 255, 255, .035);
  border-radius: 50%;
  content: "";
}

.bank-card::before {
  top: -80px;
  right: -40px;
}

.bank-card::after {
  right: 15px;
  bottom: -110px;
}

.bank-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9d1e2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.bank-logo span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .09);
  color: #a997ff;
}

.iban {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 29px 0 23px;
}

.iban strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .7px;
}

.copy-button {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
}

.bank-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}

.bank-meta small,
.bank-meta strong {
  display: block;
}

.bank-meta small {
  color: #7f8ba6;
  font-size: 7px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.bank-meta strong {
  margin-top: 5px;
  color: #e9edf5;
  font-size: 9px;
}

.reference-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(232, 163, 23, .2);
  border-radius: 12px;
  background: #fffaf0;
}

.reference-box span,
.reference-box strong {
  display: block;
}

.reference-box span {
  color: var(--muted);
  font-size: 8px;
}

.reference-box strong {
  margin-top: 4px;
  color: #9d6813;
  font: 700 12px ui-monospace, monospace;
  letter-spacing: 1px;
}

.timeline {
  display: grid;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  padding: 13px 0;
}

.timeline-item:not(:last-child)::before {
  position: absolute;
  top: 42px;
  bottom: -3px;
  left: 14px;
  width: 1px;
  background: var(--border);
  content: "";
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--purple);
}

.timeline-dot svg {
  width: 14px;
  height: 14px;
}

.timeline-content strong {
  display: block;
  font-size: 9px;
}

.timeline-content p {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.45;
}

.timeline-time {
  color: var(--muted-2);
  font-size: 8px;
}

.bar-chart {
  display: flex;
  height: 230px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 7px 0;
  border-bottom: 1px solid var(--border);
  background: repeating-linear-gradient(to top, transparent, transparent 44px, #f0f2f6 45px);
}

.bar-group {
  display: flex;
  height: 100%;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.bar {
  position: relative;
  width: min(22px, 38%);
  min-height: 4px;
  border-radius: 5px 5px 1px 1px;
  background: linear-gradient(180deg, #927eff, var(--purple));
  transition: height 550ms cubic-bezier(.2, .8, .2, 1), filter var(--transition);
}

.bar.secondary {
  background: linear-gradient(180deg, #ff998f, var(--coral));
}

.bar:hover {
  filter: brightness(.92);
}

.bar span {
  position: absolute;
  bottom: -21px;
  left: 50%;
  color: var(--muted-2);
  font-size: 7px;
  transform: translateX(-50%);
}

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

.placement-card {
  overflow: hidden;
}

.placement-visual {
  display: grid;
  height: 150px;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(222, 226, 235, .4) 1px, transparent 1px),
    linear-gradient(rgba(222, 226, 235, .4) 1px, transparent 1px),
    var(--surface-2);
  background-size: 20px 20px;
}

.placement-shape {
  display: grid;
  place-items: center;
  border: 2px dashed #b9c0cf;
  border-radius: 8px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
}

.placement-shape.leaderboard {
  width: 76%;
  height: 48px;
}

.placement-shape.rectangle {
  width: 98px;
  height: 98px;
}

.placement-shape.mobile {
  width: 70%;
  height: 55px;
}

.placement-info {
  padding: 16px;
}

.placement-info h3 {
  margin: 0;
  font-size: 12px;
}

.placement-info p {
  margin: 5px 0 14px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.placement-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.placement-metrics small,
.placement-metrics strong {
  display: block;
}

.placement-metrics small {
  color: var(--muted-2);
  font-size: 7px;
}

.placement-metrics strong {
  margin-top: 4px;
  font-size: 9px;
}

.code-block {
  position: relative;
  overflow: auto;
  padding: 17px 53px 17px 17px;
  border-radius: 12px;
  background: #111a2e;
  color: #d8deeb;
  font: 9px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre;
}

.code-block .token-purple {
  color: #a997ff;
}

.code-block .token-coral {
  color: #ff998f;
}

.code-block .copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-bottom: 18px;
}

.summary-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
}

.summary-box-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 11px;
  background: var(--purple-soft);
  color: var(--purple);
}

.summary-box-icon.warning {
  background: #fff6df;
  color: var(--amber);
}

.summary-box-icon.green {
  background: #e8f8f2;
  color: var(--emerald);
}

.summary-box small,
.summary-box strong {
  display: block;
}

.summary-box small {
  color: var(--muted);
  font-size: 8px;
}

.summary-box strong {
  margin-top: 4px;
  font-size: 17px;
}

.moderation-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 17px;
  border-bottom: 1px solid var(--border);
}

.moderation-card:last-child {
  border-bottom: 0;
}

.creative-mini {
  position: relative;
  display: grid;
  height: 76px;
  overflow: hidden;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #f3f0ff, #fff0ee);
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
}

.creative-mini::after {
  position: absolute;
  right: -16px;
  bottom: -27px;
  width: 70px;
  height: 70px;
  border-radius: 46% 54% 63% 37%;
  background: linear-gradient(145deg, rgba(115, 87, 255, .7), rgba(255, 107, 94, .8));
  content: "";
  transform: rotate(-10deg);
}

.moderation-info h3 {
  margin: 0;
  font-size: 11px;
}

.moderation-info p {
  margin: 5px 0 7px;
  color: var(--muted);
  font-size: 9px;
}

.moderation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted-2);
  font-size: 8px;
}

.moderation-actions {
  display: flex;
  gap: 7px;
}

.empty-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 35px;
  text-align: center;
}

.empty-illustration {
  position: relative;
  width: 100px;
  height: 80px;
  margin: 0 auto 18px;
}

.empty-illustration div {
  position: absolute;
  border-radius: 12px;
  background: var(--purple-soft);
}

.empty-illustration div:nth-child(1) {
  inset: 14px 13px 5px;
  border: 1px solid rgba(115, 87, 255, .18);
  transform: rotate(-5deg);
}

.empty-illustration div:nth-child(2) {
  inset: 5px 20px 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  color: var(--purple);
  font-size: 27px;
  transform: rotate(4deg);
}

.empty-state h3 {
  margin: 0;
  font-size: 14px;
}

.empty-state p {
  max-width: 360px;
  margin: 8px auto 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.modal-root {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 17, 30, .56);
  backdrop-filter: blur(6px);
}

.modal-root.open {
  display: flex;
  animation: fade-in 180ms ease;
}

@keyframes fade-in {
  from { opacity: 0; }
}

.modal {
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: modal-in 260ms cubic-bezier(.2, .8, .25, 1);
}

.modal.wide {
  width: min(100%, 760px);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.3px;
}

.modal-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.modal-close {
  display: grid;
  width: 31px;
  height: 31px;
  flex: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.modal-body {
  padding: 20px 22px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 15px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.toast-region {
  position: fixed;
  z-index: 150;
  top: 90px;
  right: 22px;
  display: grid;
  width: min(360px, calc(100vw - 34px));
  gap: 9px;
}

.toast {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-md);
  animation: toast-in 300ms cubic-bezier(.2, .8, .25, 1);
  backdrop-filter: blur(12px);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
}

.toast.leaving {
  opacity: 0;
  transform: translateX(20px);
  transition: 200ms ease;
}

.toast-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: #e8f8f2;
  color: var(--emerald);
}

.toast.warning .toast-icon {
  background: #fff6df;
  color: var(--amber);
}

.toast.error .toast-icon {
  background: #fff0f1;
  color: var(--red);
}

.toast strong {
  display: block;
  margin-top: 1px;
  font-size: 10px;
}

.toast p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.toast button {
  border: 0;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}

.app-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 30px 25px;
  color: var(--muted-2);
  font-size: 8px;
}

.app-footer span {
  margin-right: auto;
}

.app-footer a:hover {
  color: var(--text);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--emerald);
}

.mobile-overlay {
  display: none;
}

body.dark {
  --bg: #0d1423;
  --surface: #151f34;
  --surface-2: #111a2d;
  --surface-3: #202c44;
  --text: #edf0f7;
  --muted: #9aa6bc;
  --muted-2: #6f7d98;
  --border: #26324a;
  --purple-soft: rgba(115, 87, 255, .15);
}

body.dark .topbar {
  border-color: var(--border);
  background: rgba(15, 23, 39, .88);
}

body.dark .button.secondary,
body.dark .input,
body.dark .textarea,
body.dark .select,
body.dark .filter-search,
body.dark .more-button,
body.dark .modal,
body.dark .choice-card,
body.dark .format-card,
body.dark .role-switch button.active,
body.dark .search-box kbd,
body.dark .summary-box,
body.dark .modal-close,
body.dark .prefix-input {
  background: var(--surface);
  color: var(--text);
}

body.dark .data-table tbody tr:hover {
  background: rgba(255, 255, 255, .02);
}

body.dark .chart-grid-line {
  stroke: #253047;
}

body.dark .ad-preview,
body.dark .creative-mini {
  border-color: var(--border);
  background: linear-gradient(145deg, #1b2843, #201f3e);
}

body.dark .ad-preview-copy h3 {
  color: #fff;
}

body.dark .toast {
  border-color: var(--border);
  background: rgba(21, 31, 52, .97);
}

body.dark .wizard-footer,
body.dark .data-table th {
  background: #111a2d;
}

@media (max-width: 1160px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .wizard-layout {
    grid-template-columns: 1fr;
  }

  .preview-sticky {
    position: static;
  }

  .placement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .role-switch {
    display: none;
  }
}

@media (max-width: 860px) {
  .role-switch {
    display: flex;
  }

  .sidebar {
    width: 272px;
    transform: translateX(-102%);
    transition: transform 240ms ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
    box-shadow: 25px 0 60px rgba(8, 13, 24, .35);
  }

  .mobile-overlay {
    position: fixed;
    z-index: 45;
    inset: 0;
    background: rgba(10, 16, 28, .45);
    backdrop-filter: blur(3px);
  }

  body.menu-open .mobile-overlay {
    display: block;
  }

  .main-column {
    width: 100%;
    margin-left: 0;
  }

  .mobile-menu {
    display: grid;
  }

  .topbar {
    padding: 0 18px;
  }

  .search-box {
    width: min(330px, 45vw);
  }

  .profile-text,
  .chevron {
    display: none;
  }

  .content {
    padding: 23px 18px;
  }

  .campaign-row {
    grid-template-columns: minmax(170px, 1.4fr) .8fr .8fr 75px;
  }

  .campaign-row > :nth-child(4) {
    display: none;
  }

  .wizard-progress {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
    overflow-x: auto;
  }

  .wizard-step-tab {
    justify-content: center;
    padding: 0 8px;
  }

  .wizard-step-tab > div:last-child {
    display: none;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    height: 65px;
  }

  :root {
    --topbar: 65px;
  }

  .search-box {
    width: 38px;
    padding: 0;
    justify-content: center;
    border: 0;
    background: transparent;
  }

  .search-box input,
  .search-box kbd {
    display: none;
  }

  .profile-button {
    display: none;
  }

  .topbar-actions {
    gap: 3px;
  }

  .role-switch button {
    padding: 0 7px;
    font-size: 8px;
  }

  .input,
  .textarea,
  .select,
  .filter-search input {
    font-size: 16px;
  }

  .page-header {
    display: block;
  }

  .header-actions {
    margin-top: 15px;
  }

  .header-actions .button {
    flex: 1;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 122px;
  }

  .panel-head {
    padding: 0 14px;
  }

  .panel-body {
    padding: 14px;
  }

  .campaign-list {
    padding-inline: 14px;
  }

  .campaign-row {
    grid-template-columns: 1fr auto;
  }

  .campaign-row > :not(:first-child):not(:last-child) {
    display: none;
  }

  .filter-bar {
    flex-wrap: wrap;
  }

  .filter-search {
    width: 100%;
    flex-basis: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .format-grid,
  .placement-grid,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .wizard-body {
    min-height: 400px;
    padding: 19px 15px;
  }

  .wizard-footer {
    padding: 13px 15px;
  }

  .wizard-footer .button.ghost {
    display: none;
  }

  .moderation-card {
    grid-template-columns: 1fr;
  }

  .moderation-actions {
    justify-content: stretch;
  }

  .moderation-actions .button {
    flex: 1;
  }

  .bank-card {
    padding: 18px;
  }

  .iban strong {
    max-width: 220px;
    font-size: 11px;
  }

  .app-footer {
    flex-wrap: wrap;
    padding-inline: 18px;
  }

  .app-footer span {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
