:root {
  --bg: #f4f7f3;
  --panel: #ffffff;
  --ink: #10261e;
  --muted: #6b7a73;
  --green: #0d2d22;
  --green-soft: #194c38;
  --lime: #dafa42;
  --line: #dfe7e2;
  --soft: #eef3f0;
  --danger: #d34040;
  --shadow: 0 12px 32px rgba(13, 45, 34, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  max-width: 1500px;
  margin: 0 auto;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 14px 18px;

  color: white;
  background: rgba(13, 45, 34, 0.97);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 31px;
  height: 31px;
  flex: none;

  border-radius: 50%;
  background: var(--lime);

  box-shadow:
    inset -5px -5px 10px rgba(0, 0, 0, 0.08),
    0 0 0 4px rgba(218, 250, 66, 0.08);
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.brand span {
  display: block;
  margin-top: 2px;

  color: #c8d7d0;
  font-size: 11px;
}

.navigation {
  position: sticky;
  top: 59px;
  z-index: 19;

  display: flex;
  gap: 6px;
  overflow-x: auto;

  padding: 8px 18px 9px;

  background: var(--green);

  scrollbar-width: none;
}

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

.nav-item {
  flex: none;

  padding: 8px 11px;

  color: #bed0c7;
  background: transparent;

  border: 0;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 800;
}

.nav-item.active {
  color: var(--green);
  background: white;
}

.main {
  padding: 20px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;

  padding: 24px;
  margin-bottom: 16px;

  color: white;
  background:
    linear-gradient(
      135deg,
      var(--green),
      var(--green-soft)
    );

  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";

  position: absolute;
  top: -95px;
  right: -70px;

  width: 220px;
  height: 220px;

  border-radius: 50%;
  background: var(--lime);
  opacity: 0.15;
}

.hero h1,
.page-heading h1 {
  margin: 7px 0 8px;

  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -1.2px;
  line-height: 1.05;
}

.hero p {
  max-width: 720px;
  margin: 0;

  color: #d5e2dc;
  line-height: 1.5;
}

.page-heading {
  margin-bottom: 18px;
}

.page-heading p {
  max-width: 720px;
  margin: 0;

  color: var(--muted);
  line-height: 1.5;
}

.eyebrow {
  display: inline-block;

  color: #8aa296;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.hero .eyebrow {
  color: #adc2b8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;

  margin-bottom: 16px;
}

.stat-card {
  padding: 15px;

  background: var(--panel);

  border: 1px solid var(--line);
  border-radius: 15px;

  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;

  color: var(--green);
  font-size: 25px;
  letter-spacing: -0.5px;
}

.stat-card span {
  display: block;
  margin-top: 4px;

  color: var(--muted);
  font-size: 12px;
}

.focus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
}

.panel {
  padding: 18px;

  background: var(--panel);

  border: 1px solid var(--line);
  border-radius: 18px;

  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 5px 0 12px;

  font-size: 20px;
  letter-spacing: -0.4px;
}

.panel p {
  color: var(--muted);
  line-height: 1.5;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 12px;
}

.counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 31px;
  height: 31px;

  color: var(--green);
  background: var(--lime);

  border-radius: 999px;

  font-size: 12px;
  font-weight: 900;
}

.empty-state {
  padding: 28px 12px;

  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 10px 14px;

  color: var(--ink);
  background: #edf2ef;

  border: 0;
  border-radius: 12px;

  font-weight: 800;
}

.button:hover {
  filter: brightness(0.98);
}

.button-primary {
  color: #132a20;
  background: var(--lime);
}

.button-secondary {
  color: var(--ink);
  background: #edf2ef;
}

.input,
.select,
.textarea {
  width: 100%;

  padding: 11px 12px;

  color: var(--ink);
  background: white;

  border: 1px solid var(--line);
  border-radius: 11px;

  outline: none;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #9ebf2b;
  box-shadow: 0 0 0 3px rgba(218, 250, 66, 0.18);
}

.textarea {
  resize: vertical;
  line-height: 1.5;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;

  margin-bottom: 14px;
}

.import-grid,
.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 180px;
  padding: 20px;
  margin-top: 14px;

  color: var(--green);
  background: #f8faf8;

  border: 2px dashed #cddbd2;
  border-radius: 15px;

  text-align: center;
}

.file-drop strong {
  font-size: 16px;
}

.file-drop span {
  margin-top: 4px;

  color: var(--muted);
  font-size: 12px;
}

.file-drop input {
  display: none;
}

.import-preview {
  margin-top: 14px;
}

.import-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;

  margin: 16px 0;
}

.import-stats article {
  padding: 14px;

  background: #f5f8f6;

  border: 1px solid var(--line);
  border-radius: 13px;
}

.import-stats strong {
  display: block;

  color: var(--green);
  font-size: 23px;
}

.import-stats span {
  color: var(--muted);
  font-size: 11px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 14px;
}

.pipeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 12px;

  overflow-x: auto;
  padding-bottom: 8px;
}

.queue {
  display: flex;
  flex-direction: column;
  gap: 8px;

  max-height: 570px;
  overflow-y: auto;
}

.queue-item,
.contact-row,
.pipeline-card,
.preview-row {
  background: white;

  border: 1px solid var(--line);
  border-radius: 13px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 11px;

  cursor: pointer;
}

.queue-item:hover {
  border-color: #b5c9bd;
}

.queue-item.active {
  background: #fbffed;
  border-color: #aacb29;
}

.avatar {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;
  flex: none;

  color: var(--green);
  background: #eaf0ec;

  border-radius: 12px;

  font-size: 13px;
  font-weight: 900;
}

.queue-main {
  min-width: 0;
  flex: 1;
}

.queue-main strong,
.queue-main span {
  display: block;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-main span {
  margin-top: 2px;

  color: var(--muted);
  font-size: 11px;
}

.focus-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 12px;
}

.focus-person {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
}

.focus-person .avatar {
  width: 54px;
  height: 54px;

  color: var(--lime);
  background: var(--green);

  border-radius: 16px;

  font-size: 17px;
}

.focus-person h3 {
  margin: 0;

  font-size: 22px;
  letter-spacing: -0.4px;
}

.meta {
  margin-top: 3px;

  color: var(--muted);
  font-size: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;

  padding: 6px 9px;

  color: #385247;
  background: #eff4f1;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 900;
}

.chip.lead {
  color: #6c5200;
  background: #fbf4d7;
}

.hook {
  margin: 14px 0;
  padding: 13px 14px;

  background: #f5f8f6;

  border-left: 4px solid var(--lime);
  border-radius: 13px;

  line-height: 1.45;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;

  padding: 12px;
}

.contact-main {
  min-width: 0;
}

.contact-main strong,
.contact-main span {
  display: block;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-main span {
  margin-top: 3px;

  color: var(--muted);
  font-size: 11px;
}

.contact-actions {
  display: flex;
  gap: 6px;
}

.small-button {
  padding: 8px 10px;

  background: #edf2ef;

  border: 0;
  border-radius: 9px;

  font-size: 11px;
  font-weight: 800;
}

.pipeline-column {
  min-height: 490px;
  padding: 11px;

  background: #eef3f0;

  border: 1px solid var(--line);
  border-radius: 16px;
}

.pipeline-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 4px 4px 11px;

  font-size: 13px;
  font-weight: 900;
}

.pipeline-column-count {
  padding: 4px 8px;

  color: var(--muted);
  background: white;

  border-radius: 999px;

  font-size: 11px;
}

.pipeline-card {
  padding: 12px;
  margin-bottom: 9px;
}

.pipeline-card strong {
  display: block;
}

.pipeline-card p {
  margin: 7px 0 10px;

  color: #43564d;
  font-size: 12px;
}

.preview-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;

  padding: 10px 12px;
  margin-bottom: 7px;
}

.preview-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-status {
  font-size: 11px;
  font-weight: 800;
}

.preview-status.new {
  color: #416000;
}

.preview-status.duplicate {
  color: #8b6b00;
}

.preview-status.invalid {
  color: var(--danger);
}

.dialog {
  width: min(620px, calc(100% - 24px));
  padding: 0;

  color: var(--ink);
  background: transparent;

  border: 0;
  border-radius: 18px;
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.dialog form {
  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: 20px;

  background: white;

  border-radius: 18px;
}

.dialog label {
  display: flex;
  flex-direction: column;
  gap: 5px;

  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.dialog h2 {
  margin: 0 0 2px;

  color: var(--ink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;

  padding: 11px 14px;

  color: white;
  background: var(--ink);

  border-radius: 12px;

  box-shadow: var(--shadow);

  font-size: 13px;

  opacity: 0;
  pointer-events: none;

  transform: translateX(-50%) translateY(18px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .main {
    padding: 14px;
  }

  .focus-layout,
  .import-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 620px) {
  .app-header {
    padding: 12px 13px;
  }

  .navigation {
    top: 57px;
    padding-left: 13px;
    padding-right: 13px;
  }

  .brand strong {
    font-size: 16px;
  }

  .hero {
    padding: 18px;
  }

  .hero h1,
  .page-heading h1 {
    font-size: 27px;
  }

  .panel {
    padding: 15px;
  }

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

  .contact-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .contact-actions {
    grid-column: 1 / -1;
  }

  .button {
    min-height: 44px;
  }
}


.preview-row {
  grid-template-columns: 28px auto minmax(0, 1fr) auto;
}

.preview-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.preview-checkbox-placeholder {
  width: 18px;
  height: 18px;
}

.preview-row.needs-review {
  background: #fffaf0;
  border-color: #e8c96b;
}

.preview-status.review {
  color: #9a6900;
}

#confirmImportButton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* === AKQUISE CLOUD AUTH === */

[hidden] {
  display: none !important;
}

.auth-gate {
  min-height: 100vh;
  padding: 32px 20px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top right, rgba(205, 255, 36, 0.10), transparent 30%),
    #0d2d22;
}

.auth-card {
  width: min(100%, 460px);
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.auth-brand {
  margin-bottom: 34px;
  color: #0d2d22;
}

.auth-copy h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1;
}

.auth-copy p {
  margin: 0 0 24px;
  color: #617068;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #718078;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-form input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d9e1dd;
  border-radius: 14px;
  background: #f8faf9;
  color: #10261e;
  font: inherit;
  letter-spacing: normal;
}

.auth-form input:focus {
  outline: 2px solid rgba(205, 255, 36, 0.55);
  border-color: #9ec71d;
}

.auth-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff0f0;
  color: #9c2525;
  font-size: 0.88rem;
  line-height: 1.4;
}

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

.cloud-status {
  font-size: 0.78rem;
  color: #abc0b7;
  white-space: nowrap;
}

.cloud-status[data-mode="ok"] {
  color: #d4ff31;
}

.cloud-status[data-mode="error"] {
  color: #ff9a9a;
}

.button-small {
  padding: 10px 13px;
  font-size: 0.8rem;
}

.cloud-banner {
  margin: 18px 28px 0;
  padding: 18px 20px;
  border: 1px solid rgba(163, 199, 29, 0.35);
  border-radius: 18px;
  background: #f8fde9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cloud-banner strong {
  display: block;
  margin: 5px 0 3px;
  color: #15392b;
  font-size: 1.05rem;
}

.cloud-banner p {
  margin: 0;
  color: #617068;
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .cloud-status {
    width: 100%;
    text-align: right;
  }

  .cloud-banner {
    margin: 14px 16px 0;
    align-items: stretch;
    flex-direction: column;
  }
}


/* === FOLLOWER RECONCILIATION === */

.follower-reconciliation {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #d9e1dd;
  border-radius: 18px;
  background: #ffffff;
}

.follower-reconciliation > strong {
  display: block;
  margin: 6px 0;
  color: #15392b;
  font-size: 1.05rem;
}

.follower-reconciliation > p {
  margin: 0;
  color: #617068;
  line-height: 1.45;
}

.follower-reconciliation-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.follower-reconciliation-row {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f8f6;
  font-weight: 700;
  color: #15392b;
}


/* === DELETE CONTACT === */

.button-danger {
  background: #fff0f0;
  color: #9c2525;
  border: 1px solid #efcaca;
}

.button-danger:hover {
  background: #ffe4e4;
}

/* =========================================================
   PLATFORM ADMIN WEB
========================================================= */

.nav-divider {
  display: block;
  width: 1px;
  height: 22px;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.14);
}

.nav-item-admin {
  color: var(--lime, #d5ff28);
}

.admin-view {
  padding-bottom: 72px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 18px;
  padding: 30px 32px;
  color: #fff;
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(213, 255, 40, 0.18),
      transparent 28%
    ),
    #0d2d22;
  border-radius: 24px;
}

.admin-hero h1 {
  max-width: 760px;
  margin: 8px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.admin-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-width: 260px;
}

.admin-toolbar label {
  flex: 1;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.admin-period {
  width: 100%;
  margin-top: 6px;
  background: #fff;
}

.admin-status-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.admin-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  overflow-x: auto;
  background: #edf2ef;
  border-radius: 16px;
}

.admin-subnav-item {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: #617069;
  background: transparent;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.admin-subnav-item.active {
  color: #0d2d22;
  background: #fff;
  box-shadow: 0 1px 5px rgba(13, 45, 34, 0.08);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

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

.admin-metric-card {
  min-height: 118px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e1e8e4;
  border-radius: 18px;
}

.admin-metric-card > span {
  display: block;
  margin-bottom: 12px;
  color: #78847f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-metric-card > strong {
  display: block;
  color: #0d2d22;
  font-size: 30px;
  line-height: 1;
}

.admin-metric-card > small {
  display: block;
  margin-top: 9px;
  color: #78847f;
  font-size: 11px;
}

.admin-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.admin-panel {
  margin-bottom: 16px;
}

.admin-two-column .admin-panel {
  margin-bottom: 0;
}

.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-panel-heading h2 {
  margin: 5px 0 0;
}

.admin-panel-heading p {
  margin: 7px 0 0;
  color: #78847f;
  font-size: 13px;
}

.admin-growth-chart {
  min-height: 210px;
}

.admin-growth-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 180px;
  padding-top: 22px;
}

.admin-growth-bar-wrap {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-width: 4px;
}

.admin-growth-bar {
  width: 100%;
  max-width: 18px;
  min-height: 4px;
  background: #d5ff28;
  border-radius: 5px 5px 2px 2px;
}

.admin-growth-value {
  position: absolute;
  top: -18px;
  color: #819089;
  font-size: 9px;
  opacity: 0;
}

.admin-growth-bar-wrap:hover .admin-growth-value {
  opacity: 1;
}

.admin-growth-axis {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  color: #8a9690;
  font-size: 10px;
}

.admin-source-row,
.admin-ranking-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1ef;
}

.admin-source-row:last-child,
.admin-ranking-row:last-child {
  border-bottom: 0;
}

.admin-source-row > div:first-child,
.admin-ranking-main {
  min-width: 0;
  flex: 1;
}

.admin-source-row strong,
.admin-ranking-main strong {
  display: block;
  color: #0d2d22;
}

.admin-source-row span,
.admin-ranking-main small {
  display: block;
  margin-top: 3px;
  color: #7d8a84;
  font-size: 11px;
}

.admin-source-rate,
.admin-region-rate {
  font-size: 18px;
  font-weight: 850;
  color: #0d2d22;
}

.admin-ranking-position {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: #0d2d22;
  background: #eff5f1;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}

.admin-ranking-stats {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 6px;
  text-align: right;
}

.admin-ranking-stats strong {
  color: #0d2d22;
  font-size: 13px;
}

.admin-ranking-stats span {
  color: #8a9690;
  font-size: 9px;
  text-transform: uppercase;
}

.admin-queue-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.admin-queue-card {
  padding: 16px;
  text-align: left;
  color: #0d2d22;
  background: #f3f7f4;
  border: 1px solid #e3eae6;
  border-radius: 15px;
  cursor: pointer;
}

.admin-queue-card:hover {
  border-color: #bddb28;
}

.admin-queue-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 24px;
}

.admin-queue-card span {
  color: #6c7973;
  font-size: 11px;
  font-weight: 750;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th {
  padding: 10px 12px;
  color: #829089;
  text-align: left;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid #dde5e1;
  white-space: nowrap;
}

.admin-table td {
  padding: 13px 12px;
  color: #31463e;
  vertical-align: top;
  border-bottom: 1px solid #edf1ef;
}

.admin-table tbody tr:hover {
  background: #fbfdfb;
}

.admin-muted {
  display: block;
  margin-top: 3px;
  color: #8b9791;
  font-size: 10px;
  font-weight: 500;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  color: #0d2d22;
  background: #d5ff28;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.admin-pill-neutral {
  background: #edf2ef;
}

.admin-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  color: #0d2d22;
  background: #d5ff28;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

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

.admin-operation-card {
  padding: 16px;
  background: #fbfdfb;
  border: 1px solid #e2e9e5;
  border-radius: 15px;
}

.admin-operation-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-operation-card-head strong {
  display: block;
  color: #0d2d22;
}

.admin-operation-card-head span {
  display: block;
  margin-top: 4px;
  color: #84918b;
  font-size: 10px;
}

.admin-operation-card > p {
  margin: 11px 0 0;
  color: #56655f;
  font-size: 12px;
  line-height: 1.55;
}

.admin-operation-meta,
.admin-coordinate-grid {
  margin-top: 12px;
  padding-top: 10px;
  color: #84918b;
  font-size: 10px;
  border-top: 1px solid #e9eeeb;
}

.admin-coordinate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-content-preview,
.admin-warning-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
}

.admin-content-preview {
  background: #f0f5f2;
}

.admin-content-preview p {
  margin: 5px 0 0;
  color: #5b6963;
  font-size: 11px;
}

.admin-warning-box {
  color: #7a5200;
  background: #fff5d8;
  font-size: 10px;
  font-weight: 750;
}

.admin-empty {
  padding: 18px;
  color: #87938d;
  text-align: center;
  background: #f7faf8;
  border-radius: 12px;
  font-size: 12px;
}

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

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

@media (max-width: 760px) {
  .nav-divider {
    display: none;
  }

  .admin-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 20px;
  }

  .admin-toolbar {
    width: 100%;
    min-width: 0;
  }

  .admin-two-column {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 480px) {
  .admin-metric-grid,
  .admin-queue-grid {
    grid-template-columns: 1fr;
  }
}


/* === PLATFORM ADMIN ACTIONS PHASE 2A === */

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e7ece9;
}

.admin-action-button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 850;
}

.admin-action-button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.admin-action-warning {
  color: #705100;
  background: #fff5c9;
  border-color: #e8d27c;
}

.admin-action-danger-soft {
  color: #8f302b;
  background: #fff3f1;
  border-color: #eccac6;
}

.admin-action-danger {
  color: #fff;
  background: #9d302b;
  border-color: #9d302b;
}

.admin-action-hint {
  align-self: center;
  color: #89958f;
  font-size: 10px;
  font-weight: 700;
}

.admin-operation-card:has(.admin-action-row) {
  background: #fff;
}


/* === PLATFORM ADMIN CLUB REVIEW PHASE 2B === */

.admin-suggestion-editor {
  padding: 20px;
}

.admin-edit-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-edit-field {
  display: block;
  min-width: 0;
}

.admin-edit-field > span {
  display: block;
  margin-bottom: 6px;
  color: #75837c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-edit-field-wide {
  grid-column: span 2;
}

.admin-edit-field .input,
.admin-edit-field .textarea {
  width: 100%;
}

.admin-rejection-field {
  margin-top: 14px;
}

.admin-duplicate-box,
.admin-success-box {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 12px;
}

.admin-duplicate-box {
  color: #765500;
  background: #fff5d8;
  border: 1px solid #ead69a;
}

.admin-success-box {
  color: #2f5b49;
  background: #eef7f1;
  border: 1px solid #d5e9db;
  font-size: 11px;
  font-weight: 750;
}

.admin-duplicate-box > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
}

.admin-duplicate-list {
  display: grid;
  gap: 7px;
}

.admin-duplicate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 9px;
}

.admin-duplicate-item strong {
  display: block;
  color: #513c08;
  font-size: 11px;
}

.admin-duplicate-item span {
  display: block;
  margin-top: 2px;
  color: #826c34;
  font-size: 9px;
}

.admin-duplicate-item code {
  color: #826c34;
  font-size: 9px;
}

@media (max-width: 1050px) {
  .admin-edit-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .admin-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-edit-field-wide {
    grid-column: span 1;
  }
}


/* === ADMIN FINAL UI PASS === */

.admin-hero {
  align-items: center;
  min-height: 0;
  padding: 22px 28px;
}

.admin-hero h1 {
  max-width: 720px;
  margin: 6px 0 6px;
  font-size: clamp(26px, 3vw, 38px);
}

.admin-hero p {
  font-size: 13px;
  line-height: 1.45;
}

.admin-toolbar {
  min-width: 245px;
}

.admin-status-row {
  margin-top: -4px;
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  .admin-hero {
    padding: 20px;
  }
}


/* === TENNIS LOCATION REPORT QUEUE === */

.admin-location-queue-divider {
  margin: 28px 0 14px;
  padding-top: 22px;
  border-top: 1px solid #dfe6e2;
}

.admin-location-queue-divider h3 {
  margin: 5px 0 4px;
  font-size: 20px;
}

.admin-location-queue-divider p {
  margin: 0;
  color: #718078;
  font-size: 11px;
}

.admin-location-issue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.admin-location-issue-list span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef4f0;
  color: #315445;
  font-size: 9px;
  font-weight: 800;
}

.tennis-location-report-details {
  margin-top: 12px;
}

.tennis-location-detail-list {
  display: grid;
  gap: 10px;
}

.tennis-location-detail-card {
  padding: 13px;
  border: 1px solid #e1e7e3;
  border-radius: 12px;
  background: #fafcfb;
}

.tennis-location-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tennis-location-detail-head strong {
  font-size: 11px;
}

.tennis-location-detail-head span {
  color: #849089;
  font-size: 9px;
}

.tennis-location-detail-text {
  margin: 10px 0 0;
  color: #4c5c54;
  font-size: 11px;
  line-height: 1.45;
}


/* === TENNIS LOCATION MODERATION === */

.admin-location-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-map-button,
.admin-inline-map-link {
  text-decoration: none;
}

.admin-map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-inline-map-link {
  display: inline-block;
  margin-left: 8px;
  color: #174d3b;
  font-weight: 800;
}

.tennis-location-review-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.tennis-location-review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid #dde5e0;
  border-radius: 12px;
  background: #fff;
}

.tennis-location-review-item > div:first-child {
  display: grid;
  gap: 3px;
}

.tennis-location-review-item > div:first-child strong {
  font-size: 11px;
}

.tennis-location-review-item > div:first-child span {
  color: #819087;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tn-review-accept {
  background: #d6ff31;
  border-color: #d6ff31;
  color: #102b21;
}

.tn-review-reject {
  background: #fff;
  border-color: #d7ded9;
  color: #87423c;
}

@media (max-width: 720px) {
  .tennis-location-review-item {
    align-items: stretch;
    flex-direction: column;
  }
}


/* === PROMOTION ADMIN PHASE 2C === */

.admin-promo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #dfe6e2;
  border-radius: 16px;
  background: #fff;
}

.admin-promo-toolbar > div {
  display: grid;
  gap: 3px;
}

.admin-promo-toolbar strong {
  font-size: 13px;
}

.admin-promo-toolbar span {
  color: #78867e;
  font-size: 10px;
}

.admin-promo-create,
.admin-promo-save {
  background: #d6ff31;
  border-color: #d6ff31;
  color: #102b21;
}

.admin-promo-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
}

.admin-promo-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #225a46;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-modal-open {
  overflow: hidden;
}

.admin-promo-modal[hidden] {
  display: none !important;
}

.admin-promo-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-promo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 22, 0.56);
  backdrop-filter: blur(5px);
}

.admin-promo-modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(14, 38, 30, 0.24);
}

.admin-promo-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef3f0;
  color: #18392d;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.admin-promo-modal-header {
  padding-right: 44px;
  margin-bottom: 22px;
}

.admin-promo-modal-header h2 {
  margin: 5px 0 4px;
  font-size: 26px;
}

.admin-promo-modal-header p {
  margin: 0;
  color: #77857d;
  font-size: 11px;
}

.admin-promo-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.admin-promo-form label {
  display: grid;
  gap: 7px;
  color: #5b6c63;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-promo-form input,
.admin-promo-form textarea,
.admin-promo-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #dce4df;
  border-radius: 11px;
  outline: none;
  background: #fbfcfb;
  color: #18372c;
  font: inherit;
  font-size: 12px;
  text-transform: none;
  letter-spacing: normal;
}

.admin-promo-form input:focus,
.admin-promo-form textarea:focus,
.admin-promo-form select:focus {
  border-color: #376b56;
}

.admin-promo-form small {
  color: #8a978f;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.admin-promo-form-wide,
.admin-promo-form-actions {
  grid-column: 1 / -1;
}

.admin-promo-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 5px;
}

.admin-promo-detail-code {
  margin-top: 8px;
  color: #245a45;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

.admin-promo-detail-grid > div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #e2e8e4;
  border-radius: 12px;
  background: #fafcfb;
}

.admin-promo-detail-grid span {
  color: #849188;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.admin-promo-detail-grid strong {
  font-size: 12px;
}

.admin-promo-description {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #f6f8f7;
  color: #56675e;
  font-size: 11px;
  line-height: 1.5;
}

.admin-promo-public-link {
  display: grid;
  gap: 5px;
  margin-top: 16px;
}

.admin-promo-public-link span {
  color: #849188;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-promo-public-link a {
  color: #225a46;
  font-size: 11px;
  font-weight: 750;
  word-break: break-all;
}

.admin-promo-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.admin-promo-danger {
  border-color: #e1c3c0;
  background: #fff5f4;
  color: #93473f;
}

.admin-promo-users {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e2e8e4;
}

.admin-promo-users-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-promo-users-head h3 {
  margin: 0;
  font-size: 15px;
}

.admin-promo-users-head > span {
  min-width: 27px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3f0;
  text-align: center;
  font-size: 10px;
  font-weight: 850;
}

.admin-promo-user-card {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #e1e7e3;
  border-radius: 12px;
  background: #fafcfb;
}

.admin-promo-user-card > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.admin-promo-user-card > div:first-child span {
  color: #849188;
  font-size: 10px;
}

.admin-promo-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 9px;
  color: #718077;
  font-size: 9px;
}

.admin-promo-loading {
  padding: 40px 10px;
  color: #66776e;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 720px) {
  .admin-promo-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .admin-promo-form-wide,
  .admin-promo-form-actions {
    grid-column: auto;
  }

  .admin-promo-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-promo-modal {
    align-items: flex-end;
    padding: 0;
  }

  .admin-promo-modal-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
  }
}
