:root {
  --green: #47d18c;
  --green-deep: #1f8f59;
  --purple: #401669;
  --purple-900: #2a0e46;
  --purple-050: #f6f1fa;
  --ink: #18151d;
  --muted: #6c6674;
  --subtle: #8a8393;
  --line: #e8e3ee;
  --surface: #ffffff;
  --surface-soft: #faf9fb;
  --danger: #b42333;
  --danger-soft: #fff4f5;
  --warning: #9a6700;
  --warning-soft: #fff8e6;
  --success: #157347;
  --success-soft: #effcf5;
  --shadow: 0 16px 40px rgba(28, 18, 43, 0.09);
  --shadow-soft: 0 8px 24px rgba(28, 18, 43, 0.07);
  --radius: 8px;
  --radius-sm: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 200;
  transform: translateY(-140%);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

main:focus {
  outline: none;
}

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

h1 + p,
h2 + p,
h3 + p,
.panel-title + p,
.workspace-head p,
.form-section-head p,
.auth-copy p,
.section-copy {
  margin-top: 6px;
}

p:last-child {
  margin-bottom: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--purple-050);
}

::-webkit-scrollbar-thumb {
  background: rgba(64, 22, 105, 0.32);
  border: 2px solid var(--purple-050);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(64, 22, 105, 0.52);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 227, 238, 0.86);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 30px;
  width: auto;
}

.nav-links,
.nav-actions,
.inline-list,
.card-row,
.campaign-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links {
  gap: 20px;
}

.nav-links a,
.nav-actions > a:not(.btn),
.footer a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 560;
  transition: color 150ms ease;
}

.nav-links a:hover,
.nav-actions > a:not(.btn):hover,
.footer a:hover {
  color: var(--purple);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 680;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn i,
.btn svg,
.flash i,
.flash svg,
.section-kicker i,
.section-kicker svg,
.eyebrow i,
.eyebrow svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.1;
  display: block;
  flex: 0 0 auto;
}

.btn i,
.btn svg,
.badge i,
.badge svg,
.campaign-meta i,
.campaign-meta svg {
  width: 12px;
  height: 12px;
}

.icon-button i,
.icon-button svg,
.icon-link i,
.icon-link svg {
  width: 17px;
  height: 17px;
}

.metric-icon i,
.metric-icon svg {
  width: 18px;
  height: 18px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 22px rgba(64, 22, 105, 0.16);
}

.btn-primary:hover {
  background: var(--purple-900);
  transform: translateY(-1px);
}

.btn-green {
  background: var(--green);
  color: #0d2d1d;
  box-shadow: 0 10px 22px rgba(71, 209, 140, 0.16);
}

.btn-green:hover {
  background: #58d997;
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--purple);
}

.btn-outline:hover {
  border-color: var(--purple);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger-soft);
  border-color: rgba(180, 35, 51, 0.18);
  color: var(--danger);
}

.btn-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.icon-button,
.drawer-close,
.icon-link {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--purple);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.icon-button:hover,
.drawer-close:hover,
.icon-link:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
}

.hero {
  padding: 52px 0 44px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--purple-050) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  align-items: center;
  gap: 44px;
}

.hero h1,
.page-hero h1 {
  margin: 10px 0 8px;
  max-width: 760px;
  font-size: 3.1rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy,
.page-hero p,
.section-copy,
.muted {
  color: var(--muted);
}

.hero-copy {
  max-width: 590px;
  font-size: 1.02rem;
  margin-bottom: 0;
}

.hero-actions,
.section-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
}

.hero-search {
  width: min(100%, 610px);
  min-height: 54px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 7px 7px 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hero-search i {
  width: 18px;
  height: 18px;
  color: var(--purple);
}

.hero-search input {
  border: 0;
  padding: 0;
  background: transparent;
}

.hero-search input:focus {
  box-shadow: none;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--purple);
  background: rgba(64, 22, 105, 0.07);
  border: 1px solid rgba(64, 22, 105, 0.10);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0;
}

.hero-visual,
.image-panel {
  position: relative;
}

.image-stack {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  grid-template-rows: 190px 190px;
  gap: 14px;
}

.image-stack img,
.image-band img,
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-stack figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: var(--surface-soft);
}

.image-stack figure:first-child {
  grid-row: span 2;
}

.trust-mini {
  position: absolute;
  left: -18px;
  bottom: 18px;
  width: min(260px, 70%);
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section {
  padding: 62px 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-brand {
  background: var(--purple);
  color: #fff;
}

.section-brand .muted,
.section-brand .section-copy {
  color: rgba(255, 255, 255, 0.72);
}

.section-brand .panel:not(.brand-panel) {
  color: var(--ink);
}

.section-brand .panel:not(.brand-panel) .muted {
  color: var(--muted);
}

.section-brand .eyebrow,
.section-brand .section-kicker {
  background: rgba(71, 209, 140, 0.14);
  border-color: rgba(71, 209, 140, 0.22);
  color: #dfffee;
}

.panel.brand-panel,
.brand-panel {
  background: rgba(42, 14, 70, 0.72);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.brand-panel .muted {
  color: rgba(255, 255, 255, 0.72);
}

.brand-panel .check-item {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.76);
}

.brand-panel .check-item strong {
  color: #fff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 18px;
}

.section-head.center {
  display: block;
  text-align: center;
}

.section h2,
.panel-title,
.workspace h1 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

.section h2 {
  font-size: 2.05rem;
}

.page-hero {
  padding: 44px 0;
  background: var(--purple-050);
}

.page-hero.compact {
  padding: 32px 0;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: center;
}

.page-hero-visual {
  aspect-ratio: 1.25 / 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.page-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.campaign-card,
.panel,
.stat-card,
.auth-card,
.admin-panel,
.update-card,
.trust-card,
.form-card,
.empty-state,
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.campaign-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.campaign-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(64, 22, 105, 0.20);
}

.campaign-image {
  position: relative;
  display: block;
  aspect-ratio: 1.65 / 1;
  max-height: 170px;
  overflow: hidden;
  background: var(--purple-050);
}

.campaign-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.campaign-body {
  padding: 15px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.campaign-title {
  margin: 8px 0 5px;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 740;
}

.campaign-meta {
  color: var(--muted);
  font-size: 0.84rem;
  row-gap: 6px;
}

.campaign-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.campaign-body p {
  margin: 8px 0;
  font-size: 0.92rem;
}

.campaign-card-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.campaign-card-footer .btn {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1;
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-purple {
  background: var(--purple-050);
  color: var(--purple);
}

.badge-dark {
  background: var(--purple);
  color: #fff;
}

.progress {
  height: 7px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(64, 22, 105, 0.10);
  margin: 12px 0 7px;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.stat-row strong {
  color: var(--ink);
  font-weight: 680;
}

.metric-card,
.stat-card {
  padding: 16px;
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.update-card,
.update-card > div {
  height: 100%;
}

.update-card > div {
  display: flex;
  flex-direction: column;
}

.update-card .btn {
  margin-top: auto;
  width: fit-content;
}

.metric-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--purple-050);
  color: var(--purple);
}

.stat-card strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  margin-top: 4px;
}

.steps {
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 16px 0 16px 46px;
  border-bottom: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 0;
}

.step::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 760;
}

.trust-checklist {
  display: grid;
  gap: 9px;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.toggle-field {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.toggle-field:hover {
  border-color: rgba(64, 22, 105, 0.22);
  background: #fff;
}

.toggle-copy {
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-control {
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 44px;
  border-radius: 999px;
  background: #dcd6e5;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.toggle-control::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(24, 21, 29, 0.18);
  transition: transform 160ms ease;
}

.toggle-input:checked + .toggle-control {
  background: var(--purple);
}

.toggle-input:checked + .toggle-control::after {
  transform: translateX(18px);
}

.toggle-input:focus-visible + .toggle-control {
  box-shadow: 0 0 0 4px rgba(64, 22, 105, 0.12);
}

.check-item strong {
  color: var(--ink);
  font-weight: 650;
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.field,
.form-row {
  display: grid;
  gap: 6px;
}

label {
  color: var(--ink);
  font-weight: 650;
  font-size: 0.86rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dcd6e5;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(64, 22, 105, 0.10);
}

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

.span-2 {
  grid-column: span 2;
}

.form-card,
.auth-card,
.panel,
.admin-panel,
.trust-card {
  padding: 20px;
}

.form-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.purpose-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(64, 22, 105, 0.12);
  border-radius: 16px;
  background: var(--purple-050);
}

.purpose-panel[hidden] {
  display: none;
}

.purpose-panel h3 {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

.form-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.form-section-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 720;
}

.form-section-index i {
  width: 16px;
  height: 16px;
}

.error-list {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--danger);
  font-size: 0.84rem;
}

.flash-stack {
  position: fixed;
  top: 82px;
  right: 20px;
  z-index: 90;
  display: grid;
  gap: 10px;
  max-width: 380px;
}

.flash {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 560;
}

.flash.success {
  border-color: rgba(21, 115, 71, 0.18);
}

.flash.danger {
  border-color: rgba(180, 35, 51, 0.18);
}

.flash.warning {
  border-color: rgba(154, 103, 0, 0.18);
}

.detail-hero {
  padding: 32px 0;
  background: var(--purple-050);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.64fr);
  gap: 22px;
  align-items: start;
}

.detail-media {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1.58 / 1;
  max-height: 420px;
  box-shadow: var(--shadow);
  background: #fff;
}

.detail-media img {
  object-position: center center;
}

.warning-banner {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 12px 0;
  border: 1px solid rgba(180, 35, 51, 0.14);
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 580;
}

.warning-banner.neutral {
  border-color: rgba(64, 22, 105, 0.16);
  background: var(--purple-050);
  color: var(--purple);
}

.payment-panel {
  position: sticky;
  top: 86px;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  position: relative;
  padding-left: 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 5px rgba(64, 22, 105, 0.08);
}

.table-wrap {
  width: 100%;
  overflow: auto;
  scrollbar-color: rgba(64, 22, 105, 0.4) var(--purple-050);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.table th,
.table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.9rem;
}

.table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-weight: 650;
}

.pagination .active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 21, 29, 0.48);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 80;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(390px, 88vw);
  background: #fff;
  z-index: 91;
  padding: 22px;
  transform: translateX(105%);
  transition: transform 220ms ease;
  box-shadow: -18px 0 42px rgba(24, 21, 29, 0.18);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-backdrop.is-open,
.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.drawer-title {
  font-size: 1.15rem;
  font-weight: 740;
}

.drawer nav {
  display: grid;
  gap: 8px;
}

.drawer nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 590;
}

.drawer nav a:hover {
  background: var(--purple-050);
  color: var(--purple);
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(540px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 92;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -45%) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.payment-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.payment-method {
  padding: 13px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.copy-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.copy-row code {
  flex: 1;
  padding: 8px 9px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.footer {
  padding: 44px 0 26px;
  background: var(--purple-900);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
}

.footer .muted,
.footer a {
  color: rgba(255, 255, 255, 0.68);
}

.footer a:hover {
  color: #fff;
}

.footer strong {
  display: block;
  margin-bottom: 10px;
}

.footer a {
  display: block;
  margin: 7px 0;
  font-weight: 500;
}

.footer-powered {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .footer-logo {
  display: inline-flex;
  margin: 0 0 8px;
}

.footer .footer-logo img {
  height: 34px;
  width: auto;
}

.footer-inline-link {
  display: inline !important;
  margin: 0 !important;
  font-weight: 700 !important;
  color: #fff !important;
}

.footer-inline-link:hover {
  color: var(--green) !important;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.footer-icons .icon-link {
  display: inline-grid;
  place-items: center;
  margin: 0;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.74);
}

.footer-icons .icon-link:hover {
  color: var(--green);
  border-color: rgba(71, 209, 140, 0.45);
  background: rgba(71, 209, 140, 0.10);
}

.dashboard-shell,
.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-shell {
  grid-template-columns: 268px minmax(0, 1fr);
}

.sidebar,
.admin-sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(64, 22, 105, 0.26) transparent;
}

.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-sidebar-backdrop {
  display: none;
}

.admin-sidebar-close {
  display: none;
}

.sidebar::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(64, 22, 105, 0.24);
  border: 0;
}

.sidebar nav,
.admin-sidebar nav {
  margin-top: 24px;
  display: grid;
  gap: 6px;
}

.sidebar nav a,
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 560;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 11px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 720;
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.sidebar nav a i,
.sidebar nav a svg,
.admin-sidebar nav a i,
.admin-sidebar nav a svg,
.nav-group summary i,
.nav-group summary svg,
.drawer nav a i,
.drawer nav a svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.nav-group summary > i:last-child {
  width: 15px;
  height: 15px;
  transition: transform 150ms ease;
}

.nav-group:not([open]) summary > i:last-child {
  transform: rotate(-90deg);
}

.admin-sidebar .nav-group a {
  margin-left: 28px;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.sidebar nav a:hover,
.admin-sidebar nav a:hover,
.sidebar nav a.active,
.admin-sidebar nav a.active {
  color: var(--purple);
  background: var(--purple-050);
}

.dashboard-main,
.admin-main {
  background: var(--surface-soft);
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(260px, 520px) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 24px;
  background: rgba(250, 249, 251, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.admin-topbar-left,
.admin-topbar-actions,
.admin-topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-menu-button {
  display: none;
}

.topbar-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 680;
}

.admin-topbar-search {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.admin-topbar-search i {
  width: 16px;
  height: 16px;
  color: var(--purple);
}

.admin-topbar-search input {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.admin-topbar-search input:focus {
  box-shadow: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.workspace {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.empty-state {
  padding: 30px;
  text-align: center;
}

.support-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: center;
}

.partner-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--purple-050);
  color: var(--purple);
  font-weight: 760;
  font-size: 1.15rem;
}

.image-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.image-band figure {
  margin: 0;
  height: 210px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.auth-section {
  padding: 58px 0;
  background: linear-gradient(180deg, #fff 0%, var(--purple-050) 100%);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: 34px;
  align-items: center;
}

.auth-shell-wide {
  grid-template-columns: minmax(0, 0.7fr) minmax(520px, 1fr);
}

.auth-copy h1 {
  margin: 10px 0 8px;
  max-width: 600px;
  font-size: 2.7rem;
  line-height: 1.04;
}

.auth-visual {
  margin-top: 24px;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1.45 / 1;
  box-shadow: var(--shadow);
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.auth-card-elevated {
  padding: 24px;
  box-shadow: 0 24px 60px rgba(64, 22, 105, 0.14);
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-links a {
  color: var(--purple);
  font-weight: 680;
}

.auth-links a:hover {
  color: var(--purple-900);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(180, 35, 51, 0.08);
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
  }

  .hero-grid,
  .page-hero-grid,
  .detail-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .dashboard-shell,
  .admin-shell,
  .support-strip {
    grid-template-columns: 1fr;
  }

  .auth-shell,
  .auth-shell-wide {
    grid-template-columns: 1fr;
  }

  .image-stack {
    grid-template-rows: 160px 160px;
  }

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

  .span-2 {
    grid-column: span 1;
  }

  .payment-panel {
    position: static;
  }

  .sidebar,
  .admin-sidebar {
    position: static;
    height: auto;
  }

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

@media (max-width: 980px) {
  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 92;
    width: min(320px, 86vw);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 18px 0 42px rgba(24, 21, 29, 0.18);
  }

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

  .admin-sidebar-close,
  .admin-menu-button {
    display: inline-grid;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 91;
    background: rgba(24, 21, 29, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .admin-sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-topbar {
    grid-template-columns: 1fr auto;
  }

  .admin-topbar-search {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .public-shell {
    padding-bottom: 76px;
  }

  .container,
  .workspace {
    width: min(100% - 24px, var(--max));
  }

  .hero,
  .section,
  .page-hero {
    padding: 40px 0;
  }

  .hero-visual,
  .page-hero-visual,
  .auth-visual {
    display: none;
  }

  .auth-section {
    padding: 38px 0;
  }

  .auth-shell,
  .auth-shell-wide {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    padding: 12px;
  }

  .admin-topbar-actions {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.3rem;
  }

  .hero-search {
    grid-template-columns: 20px minmax(0, 1fr);
    border-radius: 8px;
    padding: 12px;
  }

  .hero-search .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .section-head,
  .workspace-head {
    display: grid;
    align-items: start;
  }

  .image-stack,
  .image-band {
    grid-template-columns: 1fr;
  }

  .image-stack figure,
  .image-band figure {
    height: 180px;
  }

  .trust-mini {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .flash-stack {
    left: 12px;
    right: 12px;
    top: 78px;
    max-width: none;
  }

  .mobile-action-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(232, 227, 238, 0.96);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(28, 18, 43, 0.14);
    backdrop-filter: blur(16px);
  }

  .mobile-action-bar a {
    min-height: 50px;
    display: grid;
    place-items: center;
    gap: 2px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 720;
  }

  .mobile-action-bar a.primary {
    background: var(--purple);
    color: #fff;
  }

  .mobile-action-bar i,
  .mobile-action-bar svg {
    width: 17px;
    height: 17px;
  }
}
