﻿:root {
  --bg-a: #f5fbff;
  --bg-b: #fff6ea;
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(11, 37, 64, 0.16);
  --line-strong: rgba(11, 37, 64, 0.3);
  --text: #102131;
  --muted: #4a5f73;
  --accent: #0072d8;
  --accent-2: #00aa80;
  --danger: #bf3e28;
  --ok: #1e8a53;
  --shadow: 0 18px 40px rgba(16, 33, 49, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 114, 216, 0.18), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(0, 170, 128, 0.2), transparent 36%),
    linear-gradient(155deg, var(--bg-a), var(--bg-b));
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(20px);
  opacity: 0.34;
}

.orb-a {
  width: 220px;
  height: 220px;
  left: -40px;
  top: 42vh;
  background: #00a5ff;
  animation: floatA 13s ease-in-out infinite;
}

.orb-b {
  width: 280px;
  height: 280px;
  right: -60px;
  top: 12vh;
  background: #17c497;
  animation: floatB 17s ease-in-out infinite;
}

@keyframes floatA {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(8deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes floatB {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(24px) rotate(-9deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.app-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  animation: riseIn 320ms ease-out both;
}

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

.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.control-label {
  color: var(--muted);
  font-size: 13px;
}

.control-input {
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 8px 10px;
  outline: none;
}

.control-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 114, 216, 0.14);
}

.control-input.compact {
  width: auto;
}

.btn {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(130deg, #0072d8, #00aa80);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.94;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.status-banner {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 14px;
  animation: riseIn 420ms ease-out both;
}

.status-info {
  background: rgba(0, 114, 216, 0.1);
}

.status-ok {
  background: rgba(30, 138, 83, 0.14);
}

.status-error {
  background: rgba(191, 62, 40, 0.14);
}

.layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 12px;
}

.main-column,
.side-column {
  display: grid;
  gap: 12px;
}

.hero {
  padding: 18px;
  animation: riseIn 500ms ease-out both;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.hero-kicker {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.hero h1 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 920px;
}

.hero-cta {
  margin-top: 12px;
  flex-wrap: wrap;
}

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

.hero-mini-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 10px;
  min-height: 88px;
  display: grid;
  align-content: space-between;
}

.hero-mini-label {
  color: var(--muted);
  font-size: 12px;
}

.hero-mini-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 10px;
  font-size: 12px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  animation: riseIn 540ms ease-out both;
}

.tab-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  min-height: 36px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.tab-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(130deg, #0072d8, #00aa80);
}

.view {
  display: none;
  padding: 16px;
  animation: riseIn 360ms ease-out both;
}

.view.is-active {
  display: block;
}

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

.section-head h2 {
  margin: 0;
  font-size: 20px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

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

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.stack-form {
  display: grid;
  gap: 8px;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.quick-actions {
  flex-wrap: wrap;
  margin-top: 8px;
}

.control-checklist .metric-value {
  font-size: 16px;
}

.quick-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.menu-filter-wrap {
  margin-bottom: 10px;
}

.menu-group + .menu-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.menu-group h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quick-menu .btn {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.menu-item.is-hidden {
  display: none;
}

.captcha-box {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 8px;
  background: rgba(0, 114, 216, 0.04);
}

.auth-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.auth-details {
  margin-top: 8px;
}

.auth-details > summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(4, 15, 30, 0.52);
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
}

.auth-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.auth-help {
  margin-top: 8px;
}

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

.post-card,
.queue-card,
.short-card,
.panel-sub {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 12px;
}

.post-head,
.short-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.post-title,
.short-title {
  font-size: 14px;
  font-weight: 600;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  background: #fff;
}

.badge.promoted {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(130deg, #ff8a00, #f54e42);
}

.badge.pro {
  color: #052531;
  border-color: rgba(0, 147, 184, 0.35);
  background: linear-gradient(130deg, #b9f3ff, #8ad7ff);
}

.badge.verified {
  color: #113400;
  border-color: rgba(90, 156, 40, 0.5);
  background: linear-gradient(130deg, #d7ffb5, #b6f58a);
}

.name-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.author-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-text,
.short-text {
  margin-top: 8px;
  white-space: pre-wrap;
  line-height: 1.45;
}

.post-meta,
.short-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.post-meta a,
.short-meta a {
  color: var(--accent);
  text-decoration: none;
}

.post-meta a:hover,
.short-meta a:hover {
  text-decoration: underline;
}

.post-actions,
.short-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.small-input {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 6px 8px;
  font: inherit;
}

.small-btn {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

.small-btn.primary {
  background: linear-gradient(130deg, #0072d8, #00aa80);
  color: #fff;
  border-color: transparent;
}

.small-btn.warn {
  background: #fff2f0;
  border-color: rgba(191, 62, 40, 0.4);
  color: #8f2d1e;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

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

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

.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

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

.metric-value {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 700;
}

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

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

.table-wrap {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  overflow: auto;
  max-height: 340px;
}

#media-library {
  max-height: 220px;
}

#media-library .small-btn {
  margin: 2px 6px 2px 0;
}

#media-jobs,
#admin-media-jobs,
#connector-accounts,
#connector-health,
#connector-sync-history,
#admin-connector-top-errors,
#admin-connector-sync-jobs {
  max-height: 240px;
}

#boost-campaigns {
  max-height: 260px;
}

#import-history {
  max-height: 240px;
}

#import-lines {
  resize: vertical;
  min-height: 96px;
}

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

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.short-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shorts-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.roadmap-list {
  display: grid;
  gap: 8px;
}

.control-checklist {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.check-item.done {
  border-color: rgba(30, 138, 83, 0.42);
  background: rgba(30, 138, 83, 0.08);
}

.check-item.pending {
  border-color: rgba(245, 138, 0, 0.42);
  background: rgba(245, 138, 0, 0.08);
}

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

.control-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
}

.control-card h3 {
  margin: 0;
  font-size: 16px;
}

.control-card p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.4;
}

.road-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.road-item .top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.tag-cloud {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.tag-chip-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(130deg, #0072d8, #00aa80);
}

.priority-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.priority-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 2fr) auto;
  gap: 8px;
  align-items: center;
}

.priority-row input[type="range"] {
  width: 100%;
}

.priority-label {
  font-size: 13px;
  font-weight: 600;
}

.priority-weight {
  font-size: 12px;
  color: var(--muted);
  min-width: 64px;
  text-align: right;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  font-size: 11px;
}

.tag.done {
  background: rgba(30, 138, 83, 0.12);
  border-color: rgba(30, 138, 83, 0.4);
}

.tag.progress {
  background: rgba(0, 114, 216, 0.12);
  border-color: rgba(0, 114, 216, 0.4);
}

.tag.next {
  background: rgba(245, 138, 0, 0.14);
  border-color: rgba(245, 138, 0, 0.4);
}

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

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

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

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

  .hero-layout,
  .hero-pulse,
  .auth-block,
  .control-checklist,
  .control-grid,
  .inline-form,
  .inline-form.multi,
  .tables-grid,
  .tops-grid,
  .shorts-wrap,
  .side-column {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 540px) {
  .app-shell {
    padding: 10px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-mini-value {
    font-size: 16px;
  }

  .tab-btn,
  .btn,
  .small-btn {
    width: 100%;
  }

  .row-actions {
    flex-direction: column;
  }
}

/* Homepage Redesign (kinetic + premium visual direction) */
:root {
  --bg-a: #040812;
  --bg-b: #101a2d;
  --panel: rgba(10, 20, 36, 0.74);
  --line: rgba(176, 206, 255, 0.2);
  --line-strong: rgba(176, 206, 255, 0.38);
  --text: #edf5ff;
  --muted: #a7c0de;
  --accent: #20d1ff;
  --accent-2: #5eff8a;
  --shadow: 0 26px 60px rgba(2, 7, 17, 0.55);
}

body {
  font-family: "Manrope", "Noto Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(80rem 80rem at 8% -10%, rgba(94, 255, 138, 0.14), transparent 46%),
    radial-gradient(72rem 72rem at 108% 8%, rgba(32, 209, 255, 0.22), transparent 52%),
    linear-gradient(160deg, #03060f 0%, #0a1425 45%, #0f1f3c 100%);
}

h1,
h2,
h3,
.brand-title {
  font-family: "Syne", "Manrope", sans-serif;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(rgba(111, 152, 212, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 152, 212, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, #000 28%, transparent 84%);
  animation: gridDrift 36s linear infinite;
}

.bg-orb {
  filter: blur(56px);
  opacity: 0.5;
  mix-blend-mode: screen;
}

.orb-a {
  width: 360px;
  height: 360px;
  left: -120px;
  top: 40vh;
  background: #27d8ff;
  animation: orbFloatA 20s ease-in-out infinite;
}

.orb-b {
  width: 320px;
  height: 320px;
  right: -110px;
  top: 4vh;
  background: #6b7eff;
  animation: orbFloatB 24s ease-in-out infinite;
}

.orb-c {
  width: 280px;
  height: 280px;
  left: 42%;
  top: -140px;
  background: #53ff98;
  animation: orbFloatC 18s ease-in-out infinite;
}

.app-shell {
  max-width: 1480px;
  padding: 18px 16px 34px;
}

.panel {
  background: linear-gradient(145deg, rgba(10, 20, 36, 0.9), rgba(9, 18, 34, 0.7));
  border: 1px solid rgba(176, 206, 255, 0.22);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 8;
  padding: 14px 16px;
  border-color: rgba(156, 200, 255, 0.28);
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, #19d2ff, #61ff8a);
  color: #031624;
  font-family: "Syne", "Manrope", sans-serif;
  box-shadow: 0 10px 24px rgba(35, 226, 255, 0.35);
}

.brand-title {
  font-size: 24px;
  letter-spacing: 0.06em;
}

.brand-sub {
  color: #8eb4d7;
}

.control-input {
  border-radius: 12px;
  border-color: rgba(176, 206, 255, 0.24);
  background: rgba(4, 13, 24, 0.62);
  color: #eff6ff;
}

.control-input::placeholder {
  color: #84a4c4;
}

.control-input:focus {
  border-color: rgba(35, 226, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(35, 226, 255, 0.18);
}

.btn {
  border-radius: 12px;
  background: linear-gradient(132deg, #1ec6ff, #5eff8a);
  color: #02111d;
  font-weight: 700;
  transition: transform 170ms ease, box-shadow 170ms ease, opacity 170ms ease;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(45, 229, 187, 0.28);
}

.btn.ghost {
  background: rgba(4, 15, 30, 0.64);
  color: #e8f4ff;
  border-color: rgba(176, 206, 255, 0.28);
}

.status-banner {
  border-color: rgba(171, 208, 255, 0.26);
  background: linear-gradient(130deg, rgba(24, 47, 79, 0.84), rgba(14, 27, 53, 0.84));
}

.hero {
  position: relative;
  overflow: hidden;
  border-color: rgba(126, 204, 255, 0.34);
  background:
    radial-gradient(circle at 2% 0%, rgba(94, 255, 138, 0.22), transparent 44%),
    radial-gradient(circle at 98% 4%, rgba(32, 209, 255, 0.27), transparent 46%),
    linear-gradient(138deg, rgba(6, 18, 34, 0.96), rgba(8, 15, 30, 0.82));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  border: 1px solid rgba(142, 205, 255, 0.16);
  pointer-events: none;
}

.hero-main {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero p {
  color: #d1e6ff;
  font-size: 16px;
  max-width: 68ch;
}

.hero-kicker {
  border-color: rgba(177, 219, 255, 0.32);
  background: rgba(8, 18, 33, 0.72);
  color: #8fd2ff;
}

.hero-motion-strip {
  margin-top: 14px;
  border: 1px solid rgba(176, 206, 255, 0.28);
  border-radius: 999px;
  padding: 8px 0;
  overflow: hidden;
  background: rgba(5, 15, 28, 0.62);
}

.hero-motion-track {
  display: flex;
  gap: 22px;
  white-space: nowrap;
  width: max-content;
  animation: tickerSlide 24s linear infinite;
}

.hero-motion-track span {
  font-size: 12px;
  color: #b7d4f3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-pulse {
  position: relative;
  z-index: 1;
  gap: 10px;
}

.hero-kinetic {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kinetic-pill {
  position: absolute;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 1px solid rgba(177, 219, 255, 0.35);
  padding: 6px 10px;
  background: rgba(3, 18, 33, 0.86);
  color: #c8e8ff;
  animation: pillFloat 12s ease-in-out infinite;
}

.pill-a {
  top: -8px;
  left: 6px;
}

.pill-b {
  top: 38%;
  right: -10px;
  animation-delay: -3s;
}

.pill-c {
  bottom: -8px;
  left: 24px;
  animation-delay: -6s;
}

.hero-mini-card {
  border-color: rgba(176, 206, 255, 0.26);
  background: linear-gradient(155deg, rgba(13, 26, 45, 0.92), rgba(9, 18, 34, 0.86));
  min-height: 94px;
  transform: translateY(0);
  transition: transform 170ms ease, border-color 170ms ease;
}

.hero-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(35, 226, 255, 0.62);
}

.hero-mini-label {
  color: #98bbde;
}

.hero-mini-value {
  color: #f0f8ff;
  font-size: 22px;
}

.chip {
  border-color: rgba(176, 206, 255, 0.32);
  background: rgba(4, 15, 29, 0.64);
  color: #d3e8ff;
}

.tabs {
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
}

.tab-btn {
  border-radius: 12px;
  border-color: rgba(176, 206, 255, 0.25);
  background: rgba(6, 16, 31, 0.64);
  color: #d6ecff;
  transition: border-color 170ms ease, transform 170ms ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 255, 138, 0.5);
}

.tab-btn.is-active {
  color: #02111d;
  background: linear-gradient(132deg, #1ec6ff, #5eff8a);
  box-shadow: 0 8px 22px rgba(45, 229, 187, 0.28);
}

.view,
.panel-sub,
.auth-card,
.metric,
.control-card,
.road-item,
.post-card,
.queue-card,
.short-card,
.check-item,
.table-wrap {
  border-color: rgba(176, 206, 255, 0.2);
  background: linear-gradient(145deg, rgba(11, 23, 41, 0.86), rgba(9, 17, 31, 0.78));
}

.section-head h2 {
  letter-spacing: 0.02em;
}

.metric-value {
  color: #f2f9ff;
}

.tiny,
.metric-label,
.post-meta,
.short-meta,
.control-card p {
  color: #9fc2e4;
}

.small-btn,
.tag-chip-btn {
  background: rgba(4, 15, 29, 0.66);
  color: #e3f3ff;
  border-color: rgba(176, 206, 255, 0.26);
}

.small-btn.primary,
.tag-chip-btn.is-active {
  background: linear-gradient(132deg, #1ec6ff, #5eff8a);
  color: #041421;
}

.small-input {
  background: rgba(4, 14, 28, 0.7);
  color: #eff6ff;
  border-color: rgba(176, 206, 255, 0.24);
}

.table th,
.table td {
  border-bottom-color: rgba(176, 206, 255, 0.16);
}

.dashboard-rails {
  display: grid;
  gap: 12px;
}

.rail-block {
  border: 1px solid rgba(176, 206, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(11, 23, 41, 0.84), rgba(9, 17, 31, 0.78));
  padding: 10px;
}

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

.rail-head h3 {
  margin: 0;
  font-size: 15px;
}

.rail-nav {
  display: flex;
  gap: 6px;
}

.rail-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
}

.rail-track::-webkit-scrollbar {
  height: 8px;
}

.rail-track::-webkit-scrollbar-thumb {
  background: rgba(142, 180, 215, 0.4);
  border-radius: 999px;
}

.rail-card {
  flex: 0 0 min(320px, 86vw);
  border: 1px solid rgba(176, 206, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(16, 33, 58, 0.92), rgba(10, 18, 33, 0.86));
  padding: 10px;
  scroll-snap-align: start;
}

.rail-card-title {
  font-weight: 700;
  font-size: 14px;
}

.rail-card-meta {
  margin-top: 6px;
  color: #cde6ff;
  font-size: 12px;
}

.rail-card-caption {
  margin-top: 8px;
  color: #9fc2e4;
  font-size: 12px;
  line-height: 1.35;
}

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

.reaction-btn.is-active {
  border-color: rgba(94, 255, 138, 0.66);
  box-shadow: 0 0 0 2px rgba(94, 255, 138, 0.14) inset;
}

.site-footer {
  margin-top: 12px;
  padding: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-links a {
  color: #d6ecff;
  text-decoration: none;
  border: 1px solid rgba(176, 206, 255, 0.26);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(4, 15, 30, 0.64);
  font-size: 12px;
}

.footer-links a:hover {
  border-color: rgba(94, 255, 138, 0.52);
}

@keyframes tickerSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes gridDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(48px, 48px, 0);
  }
}

@keyframes orbFloatA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(32px, -26px, 0) rotate(10deg);
  }
}

@keyframes orbFloatB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(-40px, 28px, 0) rotate(-12deg);
  }
}

@keyframes orbFloatC {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, 36px, 0) rotate(8deg);
  }
}

@keyframes pillFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: clamp(28px, 9vw, 44px);
  }

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

  .hero-motion-track {
    animation-duration: 32s;
  }

  .kinetic-pill {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid,
  .bg-orb,
  .hero-motion-track,
  .kinetic-pill {
    animation: none !important;
  }
}
