:root {
  color-scheme: light;
  --bg: #f4f8fc;
  --panel: #ffffff;
  --panel-2: #f1f7ff;
  --ink: #07121f;
  --muted: #647286;
  --line: #dce6ef;
  --blue: #1677ff;
  --cyan: #48d8ff;
  --green: #19b47b;
  --purple: #7c3cff;
  --shadow: 0 20px 60px rgba(33, 52, 75, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 88% 8%,
      rgba(72, 216, 255, 0.12),
      transparent 26rem
    ),
    linear-gradient(180deg, #f7fbff, var(--bg));
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.locked {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  padding: clamp(24px, 6vw, 76px);
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(72, 216, 255, 0.28),
      transparent 30rem
    ),
    linear-gradient(135deg, #06131f, #0a2233 54%, #f7fbff 54%);
}

body:not(.locked) .auth-screen {
  display: none;
}

.auth-brand {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 900;
}

.auth-panel {
  max-width: 560px;
  margin-left: auto;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.auth-panel p {
  color: var(--muted);
  font-size: 1.05rem;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin: 26px 0 14px;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 296px;
  padding: 22px 18px;
  border-right: 1px solid rgba(72, 216, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(9, 30, 49, 0.98), rgba(7, 18, 31, 0.98)),
    #07121f;
  color: white;
}

.brand,
.account-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  margin-bottom: 28px;
}

.brand-mark,
.avatar {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(72, 216, 255, 0.55);
  border-radius: 13px;
  color: white;
  background: linear-gradient(145deg, #081d2a, #0e3147);
  font-weight: 900;
  overflow: hidden;
}

.brand-mark::before {
  position: absolute;
  inset: 11px 8px 13px;
  border-top: 2px solid #8fe8ff;
  border-radius: 50%;
  content: "";
  transform: rotate(-12deg);
}

.brand-mark::after {
  position: absolute;
  right: 10px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #8fe8ff;
  box-shadow: -15px 8px 0 rgba(216, 243, 255, 0.72);
  content: "";
}

.brand small,
.account-card small {
  display: block;
  color: var(--muted);
}

.sidebar .brand small,
.sidebar .account-card small {
  color: rgba(255, 255, 255, 0.54);
}

.sidebar .brand strong,
.sidebar .account-card strong {
  color: white;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav button,
.side-nav a {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  text-align: left;
  font-weight: 760;
  text-decoration: none;
}

.side-nav button.active,
.side-nav button:hover,
.side-nav a:hover {
  color: white;
  background: rgba(72, 216, 255, 0.14);
}

.account-card {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.app-shell {
  min-height: 100vh;
  margin-left: 296px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 16px 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 251, 255, 0.86);
  backdrop-filter: blur(16px);
}

.topbar p,
.section-heading p,
.step-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

.menu-button {
  display: none;
}

.view {
  display: none;
  padding: 36px clamp(22px, 4vw, 56px) 64px;
}

.view.active {
  display: block;
}

.action-grid,
.stats-grid,
.campaign-grid,
.platform-grid,
.verify-layout,
.admin-grid {
  display: grid;
  gap: 18px;
}

.action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 48px;
}

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

.ops-kpi-strip article {
  min-height: 136px;
  padding: 22px;
  border: 1px solid rgba(22, 119, 255, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 90% 12%,
      rgba(72, 216, 255, 0.18),
      transparent 9rem
    ),
    linear-gradient(135deg, rgba(22, 119, 255, 0.08), transparent 48%), white;
  box-shadow: var(--shadow);
}

.ops-kpi-strip span,
.mini-kpis span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-kpi-strip strong {
  display: block;
  margin: 10px 0 6px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1;
}

.ops-kpi-strip small {
  color: var(--muted);
}

.action-card,
.campaign-card,
.form-card,
.verify-card,
.stat-card,
.stats-grid article,
.review-item,
.submission-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.action-card {
  min-height: 180px;
  padding: 28px;
  text-align: left;
}

.action-card span {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 36px;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: #eef6ff;
  font-weight: 900;
}

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

.action-card strong {
  margin-bottom: 8px;
  font-size: 1.34rem;
}

.action-card small,
.campaign-card p,
.form-card p,
.verify-card p,
.submission-card p,
.review-item p {
  color: var(--muted);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.campaign-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.campaign-grid.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.campaign-card {
  overflow: hidden;
  position: relative;
  padding: 28px;
}

.campaign-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.campaign-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.campaign-head h3 {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
  line-height: 1.08;
}

.campaign-head p {
  margin: 0;
}

.campaign-logo {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  color: white;
  background: #07121f;
  font-weight: 900;
}

.campaign-logo.image-logo {
  border: 1px solid rgba(36, 116, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.94)),
    #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.campaign-logo.image-logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.status-pill {
  align-self: start;
  justify-self: end;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--green);
  background: #e5f8ef;
  font-size: 0.78rem;
  font-weight: 850;
}

.platform-row,
.campaign-actions,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.campaign-intel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.campaign-intel div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.campaign-intel span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campaign-intel strong {
  font-size: 0.86rem;
}

.mini-kpis span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f9ff;
  text-align: center;
}

.platform-row span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: #f0f3ff;
  font-weight: 850;
}

.bounty {
  margin: 24px 0;
  text-align: right;
}

.bounty strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  letter-spacing: -0.02em;
}

.progress-line {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #ecefff;
}

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

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
}

.stats-grid article {
  min-height: 130px;
  padding: 24px;
}

.stats-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stats-grid strong {
  font-size: 2.4rem;
}

.primary,
.secondary {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 850;
}

.primary {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
}

.small {
  min-height: 40px;
}

.form-card,
.verify-card {
  padding: clamp(24px, 4vw, 42px);
}

.stacked-form {
  display: grid;
  gap: 18px;
  max-width: 880px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 780;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  background: #fbfdff;
  color: var(--ink);
}

.review-lane {
  margin-top: 28px;
}

.submission-list {
  display: grid;
  gap: 12px;
}

.submission-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

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

.submission-card small {
  color: var(--muted);
  word-break: break-all;
}

.review-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: #8a5b00;
  background: #fff5d8;
  font-weight: 850;
  font-size: 0.78rem;
}

.verify-layout,
.admin-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.platform-grid,
.method-grid {
  display: grid;
  gap: 12px;
}

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

.platform-card,
.method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  text-align: left;
}

.platform-card span,
.method-card span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: #f0f3ff;
  color: var(--purple);
  font-weight: 900;
}

.credential-box {
  display: none;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #c8adff;
  border-radius: 16px;
  background: #fbf7ff;
}

.credential-box.active {
  display: block;
}

.credential-row {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.credential-row span {
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.credential-row strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.referral-box {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
}

.referral-box strong {
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  word-break: break-word;
}

dialog {
  width: min(820px, calc(100vw - 32px));
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.35);
}

dialog::backdrop {
  background: rgba(5, 10, 18, 0.72);
}

.close-dialog {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #eef1f7;
  font-size: 1.4rem;
}

.dialog-inner {
  padding: clamp(28px, 5vw, 52px);
}

.dialog-inner ol {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.status {
  min-height: 22px;
  color: var(--green);
  font-weight: 760;
}

@media (max-width: 1100px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

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

  .app-shell {
    margin-left: 0;
  }

  .menu-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
  }
}

@media (max-width: 860px) {
  .auth-screen {
    grid-template-columns: 1fr;
    background:
      radial-gradient(
        circle at 15% 10%,
        rgba(72, 216, 255, 0.22),
        transparent 30rem
      ),
      #f7fbff;
  }

  .auth-brand {
    color: var(--ink);
  }

  .action-grid,
  .ops-kpi-strip,
  .campaign-grid,
  .campaign-grid.wide,
  .stats-grid,
  .verify-layout,
  .admin-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .mini-kpis {
    grid-template-columns: 1fr;
  }
}
