@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:              #080808;
  --surface:         #131313;
  --surface-hover:   #191919;
  --border:          rgba(255, 255, 255, 0.07);
  --border-hover:    rgba(255, 255, 255, 0.13);
  --border-focus:    rgba(255, 255, 255, 0.24);
  --text:            #ffffff;
  --text-2:          rgba(255, 255, 255, 0.52);
  --text-3:          rgba(255, 255, 255, 0.24);
  --error:           #e05050;
  --r-sm:            6px;
  --r:               8px;
  --r-lg:            12px;
  --r-xl:            16px;
  --t:               200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:          360ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:        cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t: 0.01ms;
    --t-slow: 0.01ms;
  }
}

html {
  height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar        { width: 4px; height: 4px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ── Layout ───────────────────────────────────── */
.page { min-height: 100vh; display: flex; flex-direction: column; }

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ───────────────────────────────────── */
.header {
  height: 52px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    opacity var(--t-slow),
    transform var(--t-slow);
}

.header .container {
  height: 100%;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.wordmark {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  display: inline-block;
  transform: translateY(1.5px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  transition:
    color var(--t-slow),
    background var(--t-slow),
    transform var(--t);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  line-height: inherit;
  position: relative;
}

.nav-link:hover  {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

.nav-link:active {
  transform: scale(0.97);
}

.nav-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  margin: 0 6px;
}

#navAdmin.hidden {
  display: inline-flex !important;
  visibility: hidden;
  pointer-events: none;
}

/* ── Main ─────────────────────────────────────── */
.main {
  flex: 1;
  padding: 40px 0 64px;
  animation: pageFadeIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition:
    opacity 180ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 180ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 180ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
}

body.page-transition-in .main {
  opacity: 0;
  transform: translateY(7px);
  filter: blur(2px);
}

body.page-transition-out .main {
  opacity: 0;
  transform: translateY(-5px);
  filter: blur(2px);
}

body.page-transition-out a,
body.page-transition-out button {
  pointer-events: none;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--t);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  outline: none;
  -webkit-appearance: none;
}

.btn:focus-visible {
  outline: 2px solid rgba(255,255,255,0.25);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover  { background: rgba(255,255,255,0.88); border-color: rgba(255,255,255,0.88); }
.btn-primary:active { transform: scale(0.97); }

.plan-text-status,
.plan-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  text-align: center;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-2);
  text-decoration: none;
  padding: 0 12px;
  margin-top: auto;
  cursor: default;
  outline: none;
}

.plan-text-link {
  color: var(--text-2);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--t);
}

.plan-text-link:hover {
  color: var(--text);
}

.plan-text-link:active {
  transform: scale(0.98);
}


.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-focus);
}
.btn-outline:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.32); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  height: 30px;
  padding: 0 10px;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.btn-danger {
  background: transparent;
  color: rgba(220, 80, 80, 0.8);
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--r);
  transition: all var(--t);
}
.btn-danger:hover { color: #e05050; background: rgba(220,50,50,0.07); }

.btn-danger-outline {
  background: rgba(224,80,80,0.045);
  border: 1px solid rgba(224,80,80,0.36);
  color: #e06060;
}
.btn-danger-outline:hover {
  background: rgba(224,80,80,0.08);
  border-color: rgba(224,80,80,0.52);
  color: #ff7777;
}

.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn:disabled { opacity: 0.28; cursor: not-allowed; pointer-events: none; }
.w-full { width: 100%; }

/* Cleaner home */
.cleaner-home {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 0 96px;
}

.cleaner-home-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-xl);
  background: rgba(255,255,255,0.018);
  padding: 42px 40px;
  box-shadow: none;
}

.cleaner-home-kicker {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cleaner-home h1 {
  margin-top: 14px;
  color: var(--text);
  font-size: clamp(48px, 8vw, 78px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.cleaner-home-hero p {
  max-width: 520px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.cleaner-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.075);
  border-bottom: 1px solid rgba(255,255,255,0.075);
}

.cleaner-home-item {
  min-height: 126px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,0.075);
  border-radius: 0;
  background: transparent;
  padding: 18px 20px 18px 0;
}

.cleaner-home-item + .cleaner-home-item {
  padding-left: 20px;
}

.cleaner-home-item:last-child {
  border-right: 0;
}

.cleaner-home-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  color: var(--text-3);
  background: rgba(255,255,255,0.018);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.cleaner-home-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.cleaner-home-item p {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.55;
}

.discord-support-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.01)),
    rgba(255,255,255,0.014);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--t), background var(--t), transform var(--t);
}

.discord-support-card:hover {
  border-color: rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.048), rgba(255,255,255,0.014)),
    rgba(255,255,255,0.018);
  transform: translateY(-1px);
}

.discord-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  background: rgba(88,101,242,0.13);
  color: rgba(255,255,255,0.78);
}

.discord-support-card strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.discord-support-card small {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.45;
}

.referral-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    rgba(255,255,255,0.012);
}

.referral-copy h2 {
  margin-top: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
}

.referral-copy p {
  max-width: 520px;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.55;
}

.referral-action {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r);
  background: rgba(0,0,0,0.16);
}

.referral-code-box span {
  display: block;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.referral-code-box strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.referral-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.about-operations {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.01);
}

.about-section-label,
.about-workflow-head span {
  display: block;
  margin-bottom: 2px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.about-flow-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.065);
  border-radius: var(--r);
  background: rgba(255,255,255,0.012);
}

.about-flow-row > span,
.about-workflow-steps > article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 24px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 7px;
  color: var(--text-3);
  background: rgba(255,255,255,0.018);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.about-flow-row strong,
.about-workflow-steps strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.about-flow-row p,
.about-workflow-steps p {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.45;
}

.about-workflow {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.006)),
    rgba(255,255,255,0.012);
}

.about-workflow-head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.about-workflow-head strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.about-workflow-head small {
  flex-shrink: 0;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 7px;
  color: var(--text-3);
  background: rgba(255,255,255,0.02);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-workflow-steps {
  display: flex;
  flex-direction: column;
}

.about-workflow-steps article {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.055);
}

.about-workflow-steps article:last-child {
  border-bottom: 0;
}

.about-workflow-steps article::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 40px;
  bottom: -8px;
  width: 1px;
  background: rgba(255,255,255,0.07);
}

.about-workflow-steps article:last-child::before {
  display: none;
}

.safe-workflow {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.006)),
    rgba(255,255,255,0.01);
}

.safe-workflow-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.safe-workflow-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255,255,255,0.075);
}

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

.safe-workflow-card {
  position: relative;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 22px 2px 44px;
  box-shadow: none;
}

.safe-workflow-card::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 3px;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 5px rgba(255,255,255,0.025);
}

.safe-workflow-card::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 25px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.025));
}

.safe-workflow-card span {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.safe-workflow-card strong {
  display: block;
  margin-top: 24px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.safe-workflow-card p {
  margin-top: 9px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.55;
}

/* ── Form ─────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.form-label-row {
  min-height: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.inline-field-error {
  max-width: 58%;
  color: #e05050;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: right;
  text-transform: none;
}

.form-input,
.form-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  height: 40px;
  padding: 0 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--t);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus { border-color: var(--border-focus); }
.form-input::placeholder { color: var(--text-3); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.32)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.form-select option { background: #1b1b1b; color: #fff; }

.form-error { font-size: 12px; color: var(--error); }
.form-hint  { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* ── Segmented control ────────────────────────── */
.segmented {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 3px;
  gap: 2px;
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: calc(var(--r) - 2px);
  cursor: pointer;
  transition: all var(--t);
  line-height: 1;
}
.seg-btn:hover  { color: var(--text); }
.seg-btn.active { background: rgba(255,255,255,0.1); color: var(--text); }

/* ── Drop zone ────────────────────────────────── */
.drop-zone {
  position: relative;
  isolation: isolate;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: var(--r-xl);
  padding: 80px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-slow), background var(--t-slow);
}

.drop-zone:hover,
.drop-zone.drag-active {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.015);
}

.drop-zone.drag-active {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.025);
}

.drop-zone.drag-active::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0.86) 0deg 8deg,
      transparent 8deg 17deg
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: dropZoneAnts 1.05s linear infinite;
}

.drop-zone > * {
  position: relative;
  z-index: 1;
}

@keyframes dropZoneAnts {
  to { transform: rotate(1turn); }
}

.drop-icon      { width: 32px; height: 32px; opacity: 0.28; margin-bottom: 16px; }
.drop-title     { font-size: 15px; font-weight: 500; margin-bottom: 5px; }
.drop-sub       { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.browse-label   { color: var(--text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.drop-meta      { font-size: 11px; color: var(--text-3); letter-spacing: 0.02em; }
#fileInput, #fileInputPhoto { display: none; }

/* ── Mode bar ─────────────────────────────────── */
.mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  flex-wrap: wrap;
}

.mode-tabs {
  display: flex;
  gap: 2px;
}

.mode-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 14px;
  border-radius: var(--r);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background var(--t-slow), transform var(--t);
  font-family: inherit;
  text-align: left;
}
.mode-tab:hover { background: rgba(255,255,255,0.04); }
.mode-tab.active { background: rgba(255,255,255,0.08); }
.mode-tab:active { transform: scale(0.98); }

.mode-tab-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t-slow);
}
.mode-tab.active .mode-tab-title { color: var(--text); }

.mode-tab-desc {
  font-size: 11px;
  color: var(--text-3);
}

/* ── Copies control ───────────────────────────── */
.copies-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copies-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.copies-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg);
}

.copies-btn {
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  color: var(--text-2);
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t), background var(--t);
  flex-shrink: 0;
}
.copies-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.copies-input {
  width: 44px;
  height: 30px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.copies-input::-webkit-inner-spin-button,
.copies-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.copies-range {
  font-size: 11px;
  color: var(--text-3);
}

/* ── Job copies badge ─────────────────────────── */
.job-copies {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  margin-top: 3px;
  display: inline-block;
}

/* ── Workspace profile picker (Video / Photo) ─── */
.workspace-profiles-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workspace-profile-picker {
  position: relative;
  width: 100%;
}

.workspace-profile-trigger,
.workspace-profile-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
  transition: border-color var(--t), background var(--t);
}

.workspace-profile-trigger:hover,
.workspace-profile-option:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.workspace-profile-picker.open .workspace-profile-trigger {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.workspace-profile-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  margin-left: auto;
  color: var(--text-3);
  pointer-events: none;
  transition: transform var(--t), color var(--t);
}

.workspace-profile-trigger:hover .workspace-profile-chevron,
.workspace-profile-picker.open .workspace-profile-chevron {
  color: var(--text-2);
}

.workspace-profile-picker.open .workspace-profile-trigger .workspace-profile-chevron {
  transform: rotate(180deg);
}

.workspace-profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  max-height: 240px;
  overflow-y: auto;
}

.workspace-profile-picker.open .workspace-profile-menu {
  display: flex;
}

.workspace-profile-option {
  border-color: transparent;
  background: transparent;
}

.workspace-profile-option.active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.workspace-profile-add-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  margin-top: 2px;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: var(--r);
  background: rgba(255,255,255,0.018);
  color: var(--text-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), color var(--t);
}

.workspace-profile-add-option:hover {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.workspace-profile-add-option svg {
  flex-shrink: 0;
}

.workspace-profile-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.02em;
}

.workspace-profile-trigger .workspace-profile-avatar,
.workspace-profile-option.active .workspace-profile-avatar {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.workspace-profile-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.workspace-profile-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-profile-name-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-name-edit {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--text-3);
  opacity: 0.72;
  transition:
    color var(--t),
    background var(--t),
    opacity var(--t);
}

.profile-name-edit:hover {
  opacity: 1;
  color: var(--text-2);
  background: rgba(255,255,255,0.045);
}

.workspace-profile-meta {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-profile-edit {
  display: none;
  align-self: flex-start;
  font-size: 11px;
  color: var(--text-3);
  text-decoration: none;
  padding: 4px 2px;
  margin-top: 2px;
  transition: color var(--t);
}

.workspace-profile-edit:hover {
  color: var(--text-2);
}

/* ── Profile page — stacked plaques ───────────── */
.profiles-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.profile-plaque {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  position: relative;
  transition:
    border-color var(--t-slow),
    background var(--t-slow),
    box-shadow var(--t-slow);
}

.profile-plaque.active.expanded {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

.profile-plaque.pending.expanded {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.profile-plaque-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
  transition: background var(--t-slow);
}

.profile-plaque-head:hover {
  background: rgba(255, 255, 255, 0.02);
}

.profile-plaque-body {
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: plaqueExpand 0.32s var(--ease-out);
}

.profile-plaque.active > .profile-plaque-body {
  cursor: pointer;
}

@keyframes plaqueExpand {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.profile-plaque-summary {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
}

.profile-selected-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-select-confirm {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition:
    background var(--t),
    border-color var(--t),
    transform var(--t);
}

.profile-select-confirm:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
}

.profile-select-confirm:active {
  transform: scale(0.97);
}

.profile-plaque-delete-action {
  align-self: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 24px;
  min-height: 24px;
  margin-left: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}

.profile-plaque-delete-action:hover {
  border-color: rgba(224, 80, 80, 0.28);
  background: rgba(224, 80, 80, 0.07);
  color: rgba(255, 150, 150, 0.9);
}

.profile-plaque-delete-action:active {
  transform: scale(0.98);
}

.profile-plaque-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  cursor: pointer;
  transition: color var(--t-slow);
}

.profile-plaque-toggle:hover {
  color: var(--text-2);
}

.toggle-chevron.open {
  transform: rotate(180deg);
}

.profile-plaque-settings {
  border-top: 1px solid var(--border);
  padding: 0 16px 16px;
}

.profile-plaque-settings #profileFormContainer {
  margin-top: 0;
  padding-top: 14px;
}

.profile-plaque-settings #profileFormContainer.collapsed {
  padding-top: 0;
  border-top: none;
}

.profile-plaque-settings .profile-block:first-child {
  padding-top: 2px;
}

.profile-actions-minimal {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 9px;
  margin-top: -12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.profile-save-btn {
  order: 1;
  height: 32px;
  padding: 0 18px;
  width: 100%;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
  -webkit-appearance: none;
}

.profile-save-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

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

.profile-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-delete-btn {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  width: auto;
  align-self: flex-end;
  border: 1px solid rgba(255, 120, 120, 0.14);
  border-radius: 6px;
  background: rgba(255, 80, 80, 0.045);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 120, 120, 0.72);
  cursor: pointer;
  transition:
    color var(--t),
    background var(--t),
    border-color var(--t),
    transform var(--t);
  text-align: right;
  -webkit-appearance: none;
}

.profile-delete-btn:hover {
  color: rgba(255, 150, 150, 0.95);
  background: rgba(255, 80, 80, 0.075);
  border-color: rgba(255, 120, 120, 0.22);
}

.profile-delete-btn.armed {
  color: rgba(255, 190, 190, 0.98);
  background: rgba(255, 80, 80, 0.12);
  border-color: rgba(255, 120, 120, 0.34);
}

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

.profile-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow);
}

.profile-delete-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.profile-delete-dialog {
  width: min(100%, 380px);
  padding: 24px;
  border: 1px solid rgba(255, 120, 120, 0.16);
  border-radius: var(--r-xl);
  background: rgba(18, 18, 18, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform var(--t-slow);
}

.profile-delete-modal.open .profile-delete-dialog {
  transform: translateY(0) scale(1);
}

.profile-delete-kicker {
  margin-bottom: 10px;
  color: rgba(255, 120, 120, 0.78);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-delete-title {
  margin-bottom: 9px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

.profile-delete-copy {
  margin: 0 auto 22px;
  max-width: 300px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}

.profile-delete-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-delete-cancel,
.profile-delete-confirm {
  height: 34px;
  border-radius: var(--r);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition:
    color var(--t),
    background var(--t),
    border-color var(--t),
    transform var(--t);
  -webkit-appearance: none;
}

.profile-delete-cancel {
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.profile-delete-cancel:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.profile-delete-confirm {
  border: 1px solid rgba(255, 120, 120, 0.28);
  background: rgba(255, 80, 80, 0.11);
  color: rgba(255, 190, 190, 0.98);
}

.profile-delete-confirm:hover {
  border-color: rgba(255, 120, 120, 0.42);
  background: rgba(255, 80, 80, 0.16);
}

.profile-delete-cancel:active,
.profile-delete-confirm:active {
  transform: scale(0.98);
}


/* ── Section ──────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── Job list ─────────────────────────────────── */
.job-list { display: flex; flex-direction: column; gap: 2px; }

.job-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1px;
  gap: 10px 16px;
  align-items: center;
  transition: border-color var(--t);
}
.job-item:hover { border-color: rgba(255,255,255,0.11); }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.job-left { display: flex; align-items: center; gap: 11px; min-width: 0; }

.job-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  flex-shrink: 0;
}
.job-dot.queued     { background: rgba(255,255,255,0.14); }
.job-dot.processing { background: rgba(255,255,255,0.5); }
.job-dot.done       { background: rgba(255,255,255,0.28); }
.job-dot.error      { background: #e05050; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.job-info   { min-width: 0; }

.job-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.job-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.job-status {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.job-status.processing { color: rgba(255,255,255,0.55); }
.job-status.done       { color: var(--text-3); }
.job-status.error      { color: #e05050; }

/* progress bar */
.job-progress {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(255,255,255,0.05);
  border-radius: 1px;
  overflow: hidden;
}

.job-bar {
  height: 100%;
  background: rgba(255,255,255,0.45);
  border-radius: 1px;
  transition: width 0.45s ease;
}

.job-bar.shimmer {
  background: rgba(255,255,255,0.45);
}

.job-bar.complete { background: rgba(255,255,255,0.18); }

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ── Download bar ─────────────────────────────── */
.download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  background: var(--surface);
  animation: slideIn 0.2s ease;
}
.download-bar-text { font-size: 13px; color: var(--text-2); }

/* ── Empty state ──────────────────────────────── */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* ── Table ────────────────────────────────────── */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }

thead tr { background: rgba(255,255,255,0.018); }

thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 13px 16px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--t); }
tbody tr:hover { background: rgba(255,255,255,0.018); }

/* ── Badge ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-admin  { background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.88); }
.badge-member { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.4);  }
.badge-pro,
.badge-active {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.08);
}
.badge-free {
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.05);
}
.badge-paused,
.badge-disabled {
  background: rgba(224,80,80,0.12);
  color: #ff7777;
  border: 1px solid rgba(224,80,80,0.28);
}

/* ── Admin console ────────────────────────────────────── */
.admin-console {
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 0 92px;
}

body[data-page="admin"] .container {
  max-width: 1120px;
}

.admin-hero-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    var(--surface);
  box-shadow: 0 22px 60px rgba(0,0,0,0.34);
}

.admin-kicker,
.admin-section .section-label {
  display: block;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-hero-panel h1 {
  margin-top: 18px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.admin-hero-panel p {
  max-width: 540px;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

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

.admin-revenue-panel {
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    rgba(255,255,255,0.012);
}

.admin-revenue-panel span {
  display: block;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-revenue-panel p {
  max-width: 520px;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 13px;
}

.admin-revenue-panel strong {
  color: var(--text);
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.admin-stat-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
}

.admin-stat-card span,
.admin-stat-card small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

.admin-stat-card strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  font-weight: 650;
}

.admin-section { margin-top: 30px; }

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

.admin-section-head.compact { align-items: center; }

.admin-section-sub {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 13px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-search {
  width: 178px;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.admin-filter-row {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}

.admin-filter {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}

.admin-filter:hover,
.admin-filter.active {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.admin-table-card,
.admin-list-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.018);
}

.admin-table-card {
  overflow-x: auto;
  overflow-y: hidden;
}

.admin-list-card { overflow: hidden; }

.admin-table-card table {
  min-width: 1060px;
  table-layout: fixed;
}

.admin-table-card th:nth-child(1),
.admin-table-card td:nth-child(1) { width: 180px; }
.admin-table-card th:nth-child(2),
.admin-table-card td:nth-child(2) { width: 230px; }
.admin-table-card th:nth-child(3),
.admin-table-card td:nth-child(3) { width: 95px; }
.admin-table-card th:nth-child(4),
.admin-table-card td:nth-child(4) { width: 95px; }
.admin-table-card th:nth-child(5),
.admin-table-card td:nth-child(5) { width: 110px; }
.admin-table-card th:nth-child(6),
.admin-table-card td:nth-child(6) { width: 110px; }
.admin-table-card th:nth-child(7),
.admin-table-card td:nth-child(7) {
  width: 180px;
  min-width: 180px;
}

.admin-table-card tbody td { height: 66px; }

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 700;
}

.admin-user-cell strong,
.admin-list-row strong {
  display: block;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 650;
}

.admin-user-cell small,
.admin-list-row small {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12px;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 154px;
  white-space: nowrap;
}

.admin-empty-table {
  height: 88px;
  text-align: center;
  color: var(--text-3);
}

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

.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

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

.admin-user-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-modal-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.account-control-modal .modal-actions {
  justify-content: stretch;
}

.account-control-modal .modal-actions .btn {
  width: 100%;
}

.account-code-panel {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    rgba(255,255,255,0.012);
  padding: 14px;
}

.account-code-kicker {
  display: block;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-code-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.account-code-panel p {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.45;
}

.account-code-inputs {
  justify-content: flex-start;
}

.account-resend-code {
  align-self: flex-start;
  margin-top: 2px;
}

/* ── Modal ────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

#pricingModal {
  background: rgba(0, 0, 0, 0.74);
  overflow: hidden;
}

#pricingModal::before {
  content: '';
  position: absolute;
  inset: -18%;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0) 38%),
    radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.032) 34%, rgba(255,255,255,0) 64%);
  filter: blur(22px);
  opacity: 0.82;
}

#pricingModal .modal-box-large {
  position: relative;
  z-index: 1;
}

.modal-box {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  padding: 28px;
  width: 100%;
  max-width: 400px;
  transform: translateY(10px);
  transition: transform 0.22s ease;
}
.modal-backdrop.open .modal-box { transform: translateY(0); }

.modal-title   { font-size: 15px; font-weight: 600; margin-bottom: 24px; }
.modal-fields  { display: flex; flex-direction: column; gap: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }

/* ── Toast ────────────────────────────────────── */
#toastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text);
  min-width: 220px;
  max-width: 320px;
  animation: toastIn 0.18s ease;
  pointer-events: all;
}
.toast.toast-error { border-color: rgba(220,60,60,0.3); color: #e07070; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ── Auth page ────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-wrap {
  width: 100%;
  max-width: 360px;
}

.login-wordmark {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 48px;
  transition: opacity var(--t);
}
.login-wordmark:hover { opacity: 0.7; }

/* Auth views (sign-in / register / verify) */
.auth-view {
  animation: authFadeIn 0.22s ease;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.auth-header {
  margin-bottom: 28px;
  text-align: center;
}

.auth-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}

.auth-sub {
  font-size: 13px;
  color: var(--text-2);
}
.auth-sub strong { color: var(--text); font-weight: 500; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-form .form-group {
  position: relative;
}

/* Label row with forgot link */
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
/* Password visibility toggle */
.input-password-wrap {
  position: relative;
}
.input-password-wrap .form-input {
  padding-right: 42px;
}
.input-eye {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t);
}
.input-eye:hover { color: var(--text-2); }

/* Text link buttons */
.auth-text-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t);
}
.auth-text-link:hover { color: var(--text); }

/* Remember me */
.remember-row {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-focus);
  border-radius: 4px;
  background: transparent;
  transition: background var(--t), border-color var(--t);
  flex-shrink: 0;
}
.checkbox-box svg { opacity: 0; transition: opacity var(--t); }

.custom-checkbox input:checked + .checkbox-box {
  background: var(--text);
  border-color: var(--text);
}
.custom-checkbox input:checked + .checkbox-box svg { opacity: 1; color: var(--bg); }

.remember-label { font-size: 13px; color: var(--text-2); }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--text-3);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Switch row */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
}

/* Password strength */
.password-strength {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 42px;
  min-height: 13px;
  margin: 0;
  pointer-events: none;
}
.strength-bar {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 1px;
  transition: width 0.3s ease, background 0.3s ease;
}
.strength-fill.weak   { width: 33%; background: #e05050; }
.strength-fill.fair   { width: 66%; background: #c8a020; }
.strength-fill.strong { width: 100%; background: rgba(255,255,255,0.4); }

.strength-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: right;
  min-height: 9px;
  line-height: 9px;
  opacity: 0;
  transition: color var(--t), opacity var(--t);
}
.strength-label.weak,
.strength-label.fair,
.strength-label.strong { opacity: 1; }
.strength-label.weak   { color: #e05050; }
.strength-label.fair   { color: #c8a020; }
.strength-label.strong { color: #50e050; }

/* Code input (6-digit) */
.code-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-input {
  width: 44px;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: border-color var(--t), background var(--t);
  -moz-appearance: textfield;
}
.code-input::-webkit-inner-spin-button,
.code-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.code-input:focus { border-color: var(--border-focus); background: var(--surface-hover); }
.code-input.filled { border-color: rgba(255,255,255,0.22); }

.code-sep {
  width: 10px;
  height: 1px;
  background: var(--border-hover);
  flex-shrink: 0;
}

/* Verify timer / resend */
.verify-footer {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-3);
  min-height: 20px;
}
.verify-timer { color: var(--text-3); font-size: 13px; }
.verify-timer strong { color: var(--text-2); }

/* ── Profile page ─────────────────────────────── */
.page-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.profile-block { display: flex; flex-direction: column; gap: 16px; }

.profile-block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.profile-block-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.profile-block-desc {
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.profile-actions { display: flex; justify-content: flex-end; padding-top: 8px; }

/* ── GPS options ──────────────────────────────── */
.gps-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.015);
  animation: slideIn 0.18s ease;
}

/* GPS toggle row — more prominent */
.gps-toggle-group {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.02);
  transition: border-color var(--t);
}
.gps-toggle-group:has(input:checked) {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
}

/* Timezone picker */
.timezone-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.timezone-picker {
  position: relative;
  width: min(100%, 420px);
}

.timezone-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  padding: 9px 12px 9px 14px;
  border: 1px solid var(--border-hover);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--t),
    background var(--t),
    box-shadow var(--t);
  -webkit-appearance: none;
}

.timezone-trigger:hover,
.timezone-picker.open .timezone-trigger {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.timezone-picker.open .timezone-trigger {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.timezone-trigger-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timezone-trigger-main,
.timezone-option-title,
.timezone-option-meta {
  font-variant-numeric: tabular-nums;
}

.timezone-trigger-main {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timezone-trigger-sub {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timezone-trigger-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform var(--t-slow),
    color var(--t),
    background var(--t);
}

.timezone-trigger:hover .timezone-trigger-chevron,
.timezone-picker.open .timezone-trigger-chevron {
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.06);
}

.timezone-picker.open .timezone-trigger-chevron {
  transform: rotate(180deg);
}

.timezone-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 330px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-lg);
  background: #101010;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.52);
}

.timezone-picker.open .timezone-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timezone-option {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--t),
    border-color var(--t),
    transform var(--t);
  -webkit-appearance: none;
}

.timezone-option:hover,
.timezone-option.active {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.08);
}

.timezone-option:active {
  transform: scale(0.99);
}

.timezone-option-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.timezone-option-title {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timezone-option-meta {
  flex-shrink: 0;
  color: var(--text-2);
  font-size: 12px;
}

.timezone-option-scope {
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ── GPS map ──────────────────────────────────── */
.gps-map {
  height: 260px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 8px;
  /* Darken Leaflet tiles to match dark UI */
  filter: brightness(0.72) contrast(1.08) saturate(0.6);
  transition: filter var(--t-slow);
}
.gps-map:hover { filter: brightness(0.82) contrast(1.06) saturate(0.7); }

/* Override Leaflet UI colors */
.leaflet-container { background: #0d0d0d; font-family: inherit; }
.leaflet-control-zoom a {
  background: #1a1a1a !important;
  color: rgba(255,255,255,0.7) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
.leaflet-control-zoom a:hover {
  background: #242424 !important;
  color: #fff !important;
}
.leaflet-control-attribution {
  background: rgba(0,0,0,0.55) !important;
  color: rgba(255,255,255,0.28) !important;
  font-size: 9px !important;
}
.leaflet-control-attribution a { color: rgba(255,255,255,0.4) !important; }

/* ── Toggle switch ────────────────────────────── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: background var(--t), border-color var(--t);
}

.toggle-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: left var(--t), background var(--t);
}

.toggle-switch input:checked + .toggle-track {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.24);
}

.toggle-switch input:checked + .toggle-track::after {
  left: 19px;
  background: rgba(255,255,255,0.9);
}

/* ── Code inline ──────────────────────────────── */
code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 4px;
  color: var(--text-2);
}

/* ── Stack ────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: 32px; }

/* ── Spinner ──────────────────────────────────── */
.spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.65);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Utility ──────────────────────────────────── */
.hidden         { display: none !important; }
.text-muted     { color: var(--text-3); }
.text-secondary { color: var(--text-2); }
.text-sm        { font-size: 12px; }
.flex           { display: flex; }
.items-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.gap-2          { gap: 8px; }
.mb-6           { margin-bottom: 24px; }

/* ── Pricing page ─────────────────────────────── */
.pricing-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.pricing-heading {
  text-align: center;
  margin-bottom: 44px;
}

.pricing-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin-bottom: 12px;
}

.pricing-sub {
  font-size: 14px;
  color: var(--text-2);
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

/* Plan card */
.plan-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  padding: 32px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.plan-card.current {
  border-color: rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    var(--surface);
}

.pro-plan {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%), var(--surface);
}

.pro-plan .plan-cta {
  margin-top: auto;
}

.free-plan .plan-cta {
  margin-top: auto;
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.plan-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.plan-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

.plan-price-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 24px;
}

.plan-currency {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-2);
  padding-bottom: 5px;
}

.plan-price {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-price-note {
  font-size: 12px;
  color: var(--text-3);
  padding-bottom: 8px;
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.plan-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  margin-top: 1px;
  flex-shrink: 0;
}

.plan-cta {
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.plan-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 12px;
}

/* Pricing FAQ */
.pricing-faq {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.faq-q {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.faq-a {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* User Profile Header */
.user-profile-header {
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.user-profile-handle {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.48) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Forgot Password under Password Field */
.forgot-pass-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}
.forgot-pass-small {
  font-size: 11px !important;
  color: var(--text-3) !important;
}
.forgot-pass-small:hover {
  color: var(--text-2) !important;
}

/* Account Display Page Card */
.account-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 96px;
}

.archive-page {
  max-width: 760px;
}

.archive-page .archive-top-section {
  margin-top: 0;
}

.account-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-xl);
  padding: 38px 40px 36px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.34);
}

.account-hero::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.09), rgba(255,255,255,0));
  filter: blur(30px);
  opacity: 0.7;
  pointer-events: none;
}

.account-hero > * {
  position: relative;
  z-index: 1;
}

.account-gradient-id {
  display: inline-block;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.08;
  margin: -8px 0 6px;
  padding: 3px 0 8px;
  letter-spacing: -0.055em;
}

.account-hero-meta {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 12px;
}

.account-hero-meta span {
  display: block;
  line-height: 1.35;
}

.account-hero-meta strong {
  color: rgba(255,255,255,0.68);
  font-weight: 500;
}

.account-hero-text {
  max-width: 430px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}

.account-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.account-status-chip,
.account-muted-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.035);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-2);
}

.account-section {
  margin-top: 28px;
}

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

.account-section-sub {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12px;
}

.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.account-stat-card {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.018);
  padding: 16px;
}

.account-stat-card.primary {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.014)),
    var(--surface);
  border-color: rgba(255,255,255,0.12);
}

.account-stat-label,
.account-setting-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.account-stat-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.account-stat-note,
.account-setting-row p {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.45;
}

.account-settings-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: rgba(255,255,255,0.014);
  overflow: hidden;
}

.account-setting-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.account-setting-row:last-child {
  border-bottom: none;
}

.account-setting-row:hover {
  background: rgba(255,255,255,0.014);
}

.billing-plan-row {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.006)),
    rgba(255,255,255,0.012);
}

.billing-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.billing-status-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.48);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.payment-method-row {
  min-height: 94px;
}

.payment-method-copy {
  min-width: 0;
}

.payment-card-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  color: var(--text-2);
}

.payment-card-icon {
  width: 34px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  color: rgba(255,255,255,0.42);
  flex-shrink: 0;
}

.payment-card-mini strong {
  display: block;
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.payment-card-mini small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.3;
}

.account-segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, 54px);
  gap: 6px;
}

.account-segmented button {
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.account-segmented button.active {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.danger-zone {
  border-color: rgba(224,80,80,0.11);
}

.danger-row {
  background: rgba(224,80,80,0.018);
}

.modal-copy {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
  margin-top: -12px;
  margin-bottom: 24px;
}

.account-control-modal {
  max-width: 480px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
    var(--surface);
  box-shadow: 0 26px 90px rgba(0,0,0,0.48);
}

.account-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-modal-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.012);
}

.account-modal-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

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

.account-modal-row strong,
.account-plan-option strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.account-modal-row span,
.account-plan-option span {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.35;
}

.account-invoice-amount {
  color: rgba(255,255,255,0.62) !important;
  font-weight: 600;
  margin-top: 0 !important;
}

.account-plan-current {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 75% 0%, rgba(255,255,255,0.07), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.014)),
    rgba(255,255,255,0.012);
  padding: 18px;
}

.account-plan-current-top,
.account-plan-current-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-plan-current-top strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.account-plan-kicker {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-plan-current-body {
  margin: 24px 0 20px;
}

.account-plan-price {
  color: var(--text);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.account-plan-period {
  color: var(--text-3);
  font-size: 13px;
}

.account-plan-current-body p {
  max-width: 360px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.6;
}

.account-plan-current-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.account-plan-current-footer span {
  color: var(--text-3);
  font-size: 12px;
}

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

.account-folder-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.006)),
    rgba(255,255,255,0.012);
  padding: 14px;
  cursor: pointer;
  transition:
    border-color var(--t),
    background var(--t),
    transform var(--t);
}

.account-folder-card:hover {
  border-color: rgba(255,255,255,0.13);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.01)),
    rgba(255,255,255,0.016);
  transform: translateY(-1px);
}

.account-folder-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.account-folder-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,0.028);
  color: var(--text-2);
}

.account-expired-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(224,80,80,0.18);
  border-radius: var(--r-sm);
  background: rgba(224,80,80,0.055);
  color: rgba(224,80,80,0.82);
  font-size: 10px;
  font-weight: 600;
}

.account-ready-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.62);
  font-size: 10px;
  font-weight: 600;
}

.account-folder-card h3 {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 3px;
}

.account-folder-card p,
.account-folder-card > span {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.45;
}

.account-folder-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.archive-detail-hero {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 78% 4%, rgba(255,255,255,0.07), rgba(255,255,255,0) 44%),
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.014)),
    var(--surface);
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.36);
}

.archive-detail-topbar,
.archive-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.archive-detail-icon {
  width: 42px;
  height: 42px;
  margin-top: 24px;
}

.archive-detail-hero h1 {
  margin: 16px 0 8px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.archive-detail-hero p {
  max-width: 520px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.archive-detail-actions {
  justify-content: flex-start;
  margin-top: 22px;
}

.archive-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.archive-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.archive-media-card {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.006)),
    rgba(255,255,255,0.012);
  padding: 14px;
}

.archive-media-thumb {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.44);
}

.archive-media-thumb.video {
  color: rgba(255,255,255,0.62);
}

.archive-media-card strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.archive-media-card span {
  color: var(--text-3);
  font-size: 11px;
}

.archive-media-more {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.archive-media-more strong {
  font-size: 30px;
  line-height: 1;
}

/* ── Spy page ───────────────────────────────────── */
.spy-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 0 96px;
}

.spy-hero {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 72% 0%, rgba(255,255,255,0.075), rgba(255,255,255,0) 44%),
    linear-gradient(180deg, rgba(255,255,255,0.046), rgba(255,255,255,0.012)),
    var(--surface);
  padding: 34px;
  box-shadow: 0 24px 72px rgba(0,0,0,0.34);
}

.spy-hero h1 {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.spy-hero p {
  max-width: 560px;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

.spy-section {
  margin-top: 26px;
}

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

.spy-add-card {
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.008)),
    rgba(255,255,255,0.012);
  padding: 18px;
}

.spy-toggle-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.014);
  cursor: pointer;
}

.spy-toggle-row strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.spy-toggle-row small {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.4;
}

.spy-telegram-grid {
  display: grid;
  grid-template-columns: 1fr 116px;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

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

.spy-monitor-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) 110px minmax(130px, 0.9fr) minmax(180px, 1.1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.006)),
    rgba(255,255,255,0.012);
  padding: 12px 14px;
  animation: spyItemIn 0.28s ease-out both;
}

.spy-monitor-row strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.spy-monitor-row span,
.spy-monitor-row small {
  color: var(--text-3);
  font-size: 12px;
}

.spy-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 600;
}

.spy-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(80, 224, 130, 0.85);
  box-shadow: 0 0 14px rgba(80, 224, 130, 0.28);
}

.spy-remove-btn {
  width: 34px;
  height: 30px;
  padding: 0;
}

.spy-empty-state {
  border: 1px dashed rgba(255,255,255,0.13);
  border-radius: var(--r-lg);
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
  padding: 18px;
  text-align: center;
}

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

.spy-idea-card {
  min-height: 182px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.008)),
    rgba(255,255,255,0.012);
  padding: 15px;
}

.spy-idea-card span {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spy-idea-card strong {
  display: block;
  margin-top: 22px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.spy-idea-card p {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.45;
}

.spy-idea-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

@keyframes spyItemIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spy intelligence page */
.spy-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 0 96px;
}

.spy-intel-top {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  gap: 16px;
}

.spy-intel-hero,
.spy-live-card,
.spy-metric-card,
.spy-filter-panel,
.spy-model-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 70% 0%, rgba(70, 220, 150, 0.075), rgba(70, 220, 150, 0) 46%),
    linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.009)),
    rgba(255,255,255,0.012);
  box-shadow: 0 22px 70px rgba(0,0,0,0.27);
}

.spy-intel-hero {
  min-height: 332px;
  padding: 34px;
}

.spy-kicker {
  color: rgba(93, 232, 165, 0.74);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.spy-intel-hero h1 {
  max-width: 690px;
  margin-top: 18px;
  color: var(--text);
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 650;
  line-height: 1.03;
}

.spy-intel-hero h1 span {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(73, 227, 151, 0.22);
}

.spy-intel-hero p {
  max-width: 680px;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.72;
}

.spy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.spy-hero-actions .btn,
.spy-action-primary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}

.spy-action-primary {
  border: 1px solid rgba(86, 230, 157, 0.64);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(89, 240, 166, 0.92), rgba(61, 202, 132, 0.86));
  color: #03100a;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 0 34px rgba(72, 225, 151, 0.2);
  cursor: pointer;
  transition: transform var(--t), filter var(--t), box-shadow var(--t);
}

.spy-action-primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 0 44px rgba(72, 225, 151, 0.3);
}

.spy-action-primary:active {
  transform: scale(0.98);
}

.spy-live-card {
  min-height: 332px;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.spy-live-head,
.spy-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.spy-live-head > span:first-child {
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.spy-running {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(106, 237, 174, 0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.spy-running i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(94, 235, 164, 0.92);
  box-shadow: 0 0 15px rgba(94, 235, 164, 0.46);
  animation: spyPulse 1.15s ease-in-out infinite;
}

.spy-current-line {
  min-height: 44px;
  margin-top: 30px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.spy-progress {
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
}

.spy-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(53, 220, 185, 0.95), rgba(83, 236, 157, 0.98));
  box-shadow: 0 0 22px rgba(67, 229, 181, 0.36);
  transition: width 2.35s linear;
}

.spy-progress.fast span {
  transition-duration: 0.95s;
}

.spy-live-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.spy-live-stats div {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.018);
  padding: 13px;
}

.spy-live-stats strong {
  color: var(--text);
  font-size: 30px;
  font-weight: 650;
  line-height: 1;
}

.spy-live-stats span,
.spy-metric-card span,
.spy-filter-group > span {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.spy-metric-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.spy-metric-card strong {
  color: var(--text);
  font-size: 36px;
  font-weight: 650;
  line-height: 1;
}

.spy-metric-card small {
  font-size: 12px;
  font-weight: 650;
}

.spy-account-search-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.012);
}

.spy-account-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.spy-account-search-head span {
  display: block;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spy-account-search-head strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.spy-account-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 10px;
}

.spy-account-search-row .btn {
  height: 44px;
}

.spy-search-input-wrap {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  background: rgba(0,0,0,0.18);
  color: var(--text-3);
}

.spy-search-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.spy-search-input-wrap input::placeholder {
  color: var(--text-3);
}

.spy-account-result {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r);
  background: rgba(255,255,255,0.012);
  animation: spyCardIn 0.22s ease-out both;
}

.spy-account-result-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.spy-account-result-main strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
}

.spy-account-result-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.spy-account-result-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.022);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spy-account-result-main p {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 12px;
}

.spy-account-result-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.spy-account-result-metrics div {
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-sm);
  background: rgba(0,0,0,0.14);
}

.spy-account-result-metrics span {
  display: block;
  min-height: 18px;
  color: var(--text-3);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spy-account-result-metrics strong {
  display: block;
  margin-top: 11px;
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
}

.spy-account-result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.spy-account-result-actions.hidden {
  display: none;
}

.trend-green { color: rgba(91, 232, 157, 0.86); }
.trend-gold { color: rgba(231, 194, 97, 0.9); }
.trend-cyan { color: rgba(78, 219, 218, 0.88); }

.spy-filter-panel {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
}

.spy-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.spy-filter-group > span {
  min-width: 134px;
}

.spy-pill {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.018);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
}

.spy-pill:hover {
  color: var(--text-2);
  border-color: rgba(255,255,255,0.2);
}

.spy-pill.active {
  color: rgba(226, 255, 238, 0.96);
  border-color: rgba(83, 230, 155, 0.5);
  background: rgba(67, 220, 143, 0.12);
  box-shadow: inset 0 0 0 1px rgba(83, 230, 155, 0.04), 0 0 22px rgba(69, 220, 145, 0.08);
}

.spy-results-section {
  margin-top: 28px;
}

.spy-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color var(--t);
}

.spy-all-link:hover {
  color: var(--text);
}

.spy-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  transition: opacity var(--t), transform var(--t);
}

.spy-model-grid.is-updating {
  opacity: 0.48;
  transform: translateY(4px);
}

.spy-model-card {
  position: relative;
  min-height: 236px;
  padding: 17px;
  animation: spyCardIn 0.24s ease-out both;
}

.spy-model-card.is-featured {
  border-color: rgba(74, 232, 177, 0.64);
  box-shadow: 0 0 0 1px rgba(74, 232, 177, 0.11), 0 26px 80px rgba(46, 216, 173, 0.12);
}

.spy-model-top {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
}

.spy-avatar {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
}

.spy-avatar.purple { background: linear-gradient(135deg, #7c55ff, #c65cff); }
.spy-avatar.orange { background: linear-gradient(135deg, #f07543, #f0b15a); }
.spy-avatar.blue { background: linear-gradient(135deg, #4b8cff, #4dd7e9); }
.spy-avatar.green { background: linear-gradient(135deg, #44cc88, #51d9c8); }

.spy-model-id strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.spy-model-id span {
  display: inline-flex;
  margin-top: 7px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.spy-hot-badge {
  align-self: start;
  padding: 5px 8px;
  border: 1px solid rgba(234, 141, 82, 0.35);
  border-radius: 7px;
  background: rgba(234, 112, 62, 0.1);
  color: rgba(255, 159, 91, 0.96);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  box-shadow: 0 0 22px rgba(234, 112, 62, 0.08);
}

.spy-model-meta {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

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

.spy-model-metrics div {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r);
  background: rgba(255,255,255,0.018);
  padding: 10px;
}

.spy-model-metrics span {
  color: var(--text-3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.spy-model-metrics strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
}

.spy-empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(255,255,255,0.13);
  border-radius: var(--r-lg);
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
  padding: 22px;
  text-align: center;
}

.spy-alert-modal p {
  margin: 10px 0 18px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}

@keyframes spyPulse {
  0%, 100% { opacity: 0.38; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes spyCardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spy visual refinement: restrained monochrome system */
.spy-page {
  max-width: 1220px;
  padding-top: 8px;
}

.spy-container {
  max-width: 1240px;
}

.spy-intel-top {
  grid-template-columns: minmax(0, 1.06fr) minmax(430px, 0.94fr);
  gap: 14px;
}

.spy-intel-hero,
.spy-live-card,
.spy-metric-card,
.spy-filter-panel,
.spy-model-card {
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.034), rgba(255,255,255,0.007)),
    rgba(255,255,255,0.011);
  box-shadow: 0 20px 58px rgba(0,0,0,0.28);
}

.spy-intel-hero {
  min-height: 300px;
  padding: 32px;
}

.spy-live-card {
  min-height: 300px;
  padding: 24px;
}

.spy-kicker {
  color: var(--text-2);
}

.spy-intel-hero h1 {
  max-width: 780px;
  margin-top: 16px;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.01;
}

.spy-intel-hero h1 span {
  color: var(--text);
  text-shadow: 0 0 34px rgba(255,255,255,0.08);
}

.spy-intel-hero p {
  max-width: 760px;
  margin-top: 16px;
}

.spy-action-primary {
  border-color: rgba(255,255,255,0.28);
  border-radius: var(--r);
  background: rgba(255,255,255,0.94);
  color: #050505;
  box-shadow: 0 10px 26px rgba(255,255,255,0.08);
}

.spy-action-primary:hover {
  background: rgba(255,255,255,0.88);
  box-shadow: 0 12px 30px rgba(255,255,255,0.1);
}

.spy-running {
  color: var(--text-2);
}

.spy-running i {
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 0 16px rgba(255,255,255,0.22);
}

.spy-current-line {
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-2);
}

.spy-progress span {
  background: linear-gradient(90deg, rgba(255,255,255,0.38), rgba(255,255,255,0.9));
  box-shadow: 0 0 20px rgba(255,255,255,0.14);
}

.spy-live-stats div,
.spy-model-metrics div {
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.006)),
    rgba(255,255,255,0.01);
}

.spy-live-stats div {
  min-height: 92px;
}

.spy-live-stats strong {
  font-size: 31px;
}

.trend-green,
.trend-gold,
.trend-cyan,
.trend-muted {
  color: var(--text-2);
}

.spy-filter-panel {
  padding: 18px;
}

.spy-filter-group {
  gap: 9px;
}

.spy-filter-group > span {
  min-width: 126px;
}

.spy-pill {
  border-radius: var(--r);
  background: rgba(255,255,255,0.012);
}

.spy-pill.active {
  color: var(--text);
  border-color: rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.07);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.spy-results-head {
  align-items: flex-start;
}

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

.spy-model-card {
  min-height: 232px;
  padding: 16px;
}

.spy-model-card.is-featured {
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 24px 64px rgba(0,0,0,0.24);
}

.spy-model-top {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
}

.spy-avatar,
.spy-avatar.purple,
.spy-avatar.orange,
.spy-avatar.blue,
.spy-avatar.green {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.045);
  color: var(--text);
}

.spy-model-id strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spy-model-id span,
.spy-hot-badge {
  border-radius: var(--r-sm);
}

.spy-hot-badge {
  border-color: rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.035);
  color: var(--text-2);
  box-shadow: none;
}

.spy-model-meta {
  margin-top: 16px;
}

.spy-model-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin-top: 18px;
}

.spy-model-metrics div {
  min-height: 76px;
  justify-content: space-between;
  padding: 11px;
}

.spy-model-metrics span {
  min-height: 22px;
  line-height: 1.2;
}

.spy-model-metrics strong {
  font-size: 17px;
  line-height: 1;
}

/* Layout polish: consistent top rhythm and quieter supporting panels */
.cleaner-home,
.account-page,
.pricing-page,
.admin-console,
.spy-page {
  padding-top: 0;
}

.cleaner-home-hero,
.account-hero,
.admin-hero-panel,
.spy-intel-hero {
  min-height: 292px;
}

.admin-hero-panel {
  min-height: 232px;
  align-items: flex-end;
  padding: 28px 34px;
}

.admin-hero-panel h1 {
  margin-top: 12px;
  font-size: 34px;
}

.admin-hero-panel p {
  margin-top: 12px;
}

.plan-card,
.account-stat-card,
.account-settings-card,
.spy-metric-card,
.spy-filter-panel,
.spy-model-card {
  background: rgba(255,255,255,0.012);
  box-shadow: none;
}

.plan-card.current,
.pro-plan,
.account-stat-card.primary,
.billing-plan-row,
.payment-card-icon,
.spy-model-card.is-featured {
  background: rgba(255,255,255,0.018);
  box-shadow: none;
}

.spy-container {
  max-width: 1180px;
}

.spy-intel-top {
  display: block;
}

.spy-intel-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 258px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255,255,255,0.06), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)),
    var(--surface);
}

.spy-intel-hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 5vw, 66px);
}

.spy-intel-hero p {
  max-width: 780px;
}

.spy-intel-hero .spy-kicker,
.spy-intel-hero h1,
.spy-intel-hero p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.spy-hero-actions {
  margin-top: 24px;
}

.spy-action-primary {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
}

.spy-action-primary:hover {
  box-shadow: none;
}

.spy-metric-grid {
  margin-top: 14px;
}

.spy-metric-card,
.spy-model-card {
  border-radius: var(--r-lg);
}

.spy-metric-card {
  min-height: 118px;
}

.spy-filter-panel {
  border-radius: var(--r-lg);
}

.spy-model-metrics div {
  justify-content: space-between;
}

.spy-model-metrics span {
  min-height: 22px;
  align-items: flex-start;
}

.spy-model-metrics strong {
  margin-top: auto;
}

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

@media (max-width: 820px) {
  .cleaner-home-grid {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .cleaner-home-item,
  .cleaner-home-item + .cleaner-home-item {
    min-height: auto;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.075);
  }

  .about-operations {
    grid-template-columns: 1fr;
  }

  .safe-workflow-grid,
  .spy-ideas-grid,
  .spy-intel-top,
  .spy-metric-grid,
  .spy-account-search-row,
  .spy-account-result,
  .spy-account-result-metrics,
  .spy-model-grid {
    grid-template-columns: 1fr;
  }

  .safe-workflow {
    padding: 18px 16px;
  }

  .safe-workflow-card {
    min-height: auto;
    padding: 0 0 22px 38px;
  }

  .safe-workflow-card + .safe-workflow-card {
    padding-top: 6px;
  }

  .safe-workflow-card strong {
    margin-top: 18px;
  }

  .cleaner-home-hero {
    padding: 32px 24px;
  }

  .spy-intel-hero,
  .spy-live-card {
    min-height: auto;
  }

  .spy-intel-hero {
    padding: 28px 24px;
  }

  .spy-live-stats {
    margin-top: 28px;
  }

  .spy-hero {
    padding: 28px 24px;
  }

  .spy-telegram-grid,
  .spy-monitor-row {
    grid-template-columns: 1fr;
  }

  .account-page {
    padding-top: 0;
  }

  .account-hero {
    padding: 30px 24px;
  }

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

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

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

  .account-setting-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .billing-row-action {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .account-stats-grid {
    grid-template-columns: 1fr;
  }

  .account-archive-grid {
    grid-template-columns: 1fr;
  }

  .archive-detail-stats,
  .archive-media-grid {
    grid-template-columns: 1fr;
  }

  .archive-detail-topbar {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
}

/* ================================================================
   PHOTO PAGE & SAFETY SHIELD STYLES
   ================================================================ */

.photo-layout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .photo-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.safety-column {
  position: sticky;
  top: 76px;
}

.safety-shield-card {
  background: rgba(19, 19, 19, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.safety-shield-card.unsafe {
  border-color: rgba(224, 80, 80, 0.16);
  box-shadow: 0 12px 40px rgba(224, 80, 80, 0.04);
}

.safety-shield-card.warning {
  border-color: rgba(223, 168, 55, 0.16);
  box-shadow: 0 12px 40px rgba(223, 168, 55, 0.04);
}

.safety-shield-card.secure {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.safety-card-header {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 24px;
  text-align: center;
}

.safety-gauge-container {
  position: relative;
  width: 156px;
  height: 156px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.safety-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.safety-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1px;
}

.safety-gauge-fill {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

.safety-shield-card.unsafe .safety-gauge-fill {
  stroke: #e05050;
}

.safety-shield-card.warning .safety-gauge-fill {
  stroke: #dfa837;
}

.safety-shield-card.secure .safety-gauge-fill {
  stroke: #4dcf82;
}

.safety-score-wrap {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.safety-score-number {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  transition: color 0.3s ease;
}

.safety-score-status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
  transition: color 0.3s ease;
}

.safety-shield-card.unsafe .safety-score-status {
  color: #e05050;
}

.safety-shield-card.warning .safety-score-status {
  color: #dfa837;
}

.safety-shield-card.secure .safety-score-status {
  color: #4dcf82;
}

.safety-message {
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.safety-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.safety-detail-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  font-size: 12px;
  color: var(--text-2);
  padding: 4px 0;
}

.detail-status-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-hover);
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.4s ease;
}

.status-dot.red {
  background: rgba(224, 80, 80, 0.55);
}

.status-dot.yellow {
  background: rgba(223, 168, 55, 0.55);
}

.status-dot.green {
  background: #4dcf82;
  box-shadow: 0 0 4px rgba(77, 207, 130, 0.25);
}

.detail-value {
  color: var(--text-3);
  transition: color 0.4s ease;
}

.detail-value.red {
  color: #e05050;
}

.detail-value.yellow {
  color: #dfa837;
}

.detail-value.green {
  color: #4dcf82;
}

@keyframes scan-glow {
  0% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0)); }
  50% { transform: scale(1.02); filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.05)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0)); }
}

.safety-gauge-container.scanning {
  animation: scan-glow 2s infinite ease-in-out;
}

/* ── Safety Card Glossary ────────────────────── */
.safety-info-footer {
  margin-top: 24px;
  border-top: 1px dashed var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.safety-info-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.safety-info-row {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.36);
}

.safety-info-row strong {
  color: var(--text-2);
  font-weight: 500;
}

.toggle-chevron {
  transition: transform var(--t-slow);
  flex-shrink: 0;
}

/* Centered new profile elements */
.new-profile-center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  width: 100%;
  text-align: center;
}
.new-profile-tab-btn {
  border-radius: 20px;
  height: 34px;
  padding: 0 18px;
  font-size: 12px;
  background: transparent;
  border-color: var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t);
}
.new-profile-tab-btn:hover {
  border-color: var(--border-focus);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.new-profile-form-wrap-centered {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 440px;
  animation: authFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
}

/* Collapsible profile settings form container */
#profileFormContainer {
  max-height: 3200px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.28s ease,
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#profileFormContainer.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .admin-console { padding-top: 28px; }
  .admin-hero-panel,
  .admin-section-head,
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .admin-search { width: 100%; }
  .admin-table-card { overflow-x: auto; }
}

@media (max-width: 560px) {
  .admin-hero-panel { padding: 24px; }
  .admin-hero-panel h1 { font-size: 30px; }
  .admin-stat-grid,
  .admin-user-modal-grid,
  .admin-modal-actions-grid {
    grid-template-columns: 1fr;
  }
  .admin-filter-row { flex-wrap: wrap; }
  .admin-list-row {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-row-actions { justify-content: flex-start; }
}

/* Beta access states and final UI polish */
.smart-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.smart-select-picker {
  width: 100%;
}

.pro-gate-panel {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.018);
}

.pro-gated-surface {
  position: relative;
  min-height: 420px;
}

main .stack.pro-gated-surface,
.spy-page.pro-gated-surface {
  min-height: calc(100vh - 96px);
}

.pro-gated-surface > :not(.pro-gate-panel) {
  filter: blur(9px);
  opacity: 0.24;
  pointer-events: none;
  user-select: none;
}

.pro-gated-surface .pro-gate-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, 640px);
  transform: translate(-50%, -50%);
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.014)),
    rgba(16,16,16,0.92);
  box-shadow: 0 22px 70px rgba(0,0,0,0.48);
}

.pro-gate-panel span {
  display: block;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pro-gate-panel strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.pro-gate-panel p {
  max-width: 680px;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.45;
}

.is-locked,
.pro-disabled-row,
.pro-disabled-control,
.pro-locked-seg {
  opacity: 0.52;
}

.is-locked,
.pro-disabled-control,
.pro-locked-seg {
  cursor: not-allowed !important;
}

.profile-plaque-soft-action {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  color: rgba(255,255,255,0.46);
  background: rgba(255,255,255,0.03);
}

.spy-page {
  padding-top: 18px;
}

.spy-intel-hero {
  min-height: 252px;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.01)),
    rgba(255,255,255,0.012);
}

.spy-intel-hero h1 {
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.04;
}

.spy-intel-hero h1 span {
  color: var(--text);
  text-shadow: none;
}

.spy-kicker {
  color: var(--text-3);
}

.spy-action-primary {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: var(--text);
  color: #050505;
  box-shadow: none;
}

.spy-action-primary:hover {
  filter: none;
  box-shadow: none;
  background: rgba(255,255,255,0.9);
}

.spy-pill,
.spy-pill.active {
  border-color: var(--border);
  background: rgba(255,255,255,0.012);
  box-shadow: none;
}

.spy-pill.active {
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.032);
}

.spy-avatar,
.spy-avatar.purple,
.spy-avatar.orange,
.spy-avatar.blue,
.spy-avatar.green {
  border-radius: var(--r);
  background: rgba(255,255,255,0.055);
  box-shadow: none;
}

.spy-hot-badge {
  border-color: rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.035);
  color: var(--text-2);
}

.spy-model-card {
  cursor: pointer;
}

.spy-model-card,
.spy-model-card.is-featured,
.spy-model-metrics div,
.spy-metric-card,
.spy-filter-panel {
  background: rgba(255,255,255,0.012) !important;
  box-shadow: none;
}

.spy-model-card.is-featured {
  border-color: var(--border);
}

.spy-model-card:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.018);
}

.spy-model-metrics div {
  min-width: 0;
  align-items: flex-start;
}

.spy-model-metrics span {
  width: 100%;
  min-height: 24px;
  display: flex;
  align-items: flex-start;
}

.spy-profile-page {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 34px;
}

.spy-profile-back {
  margin-bottom: 16px;
}

.spy-profile-hero {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.014);
}

.spy-profile-avatar {
  width: 62px;
  height: 62px;
  font-size: 22px;
}

.spy-profile-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.spy-profile-title-row h1 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  font-weight: 650;
  letter-spacing: 0;
}

.spy-profile-hero p {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 13px;
}

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

.spy-profile-stats article,
.spy-profile-panel {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.012);
}

.spy-profile-stats span,
.spy-profile-panel span {
  display: block;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spy-profile-stats strong {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-size: 28px;
  font-weight: 650;
}

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

.spy-profile-panel p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .about-flow-list,
  .spy-profile-stats,
  .spy-profile-grid {
    grid-template-columns: 1fr;
  }

  .spy-profile-hero {
    grid-template-columns: 1fr;
  }

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

.admin-grid-2 > .admin-section:only-child {
  grid-column: 1 / -1;
}
