:root {
  --bg: #070709;
  --panel: #111114;
  --panel2: #17171c;
  --line: #27272f;
  --text: #f5f5f7;
  --muted: #8d8d99;
  --coral: #ff4763;
  --violet: #8b5cf6;
  --gold: #f2b94b;
  --cyan: #34d3c7;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at 78% -10%,
      rgba(139, 92, 246, 0.12),
      transparent 28%
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.admin-auth {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 25px;
  background: radial-gradient(circle at 25% 10%, rgba(255, 71, 99, 0.14), transparent 32%), radial-gradient(circle at 82% 80%, rgba(139, 92, 246, 0.13), transparent 28%), rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(22px);
}
.admin-auth[hidden] { display: none; }
.admin-auth-card {
  width: min(410px, 100%);
  padding: 34px;
  border: 1px solid #2c2c34;
  border-radius: 20px;
  background: linear-gradient(145deg, #141419, #0d0d11);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.5);
}
.admin-auth .auth-brand { padding: 0 0 34px; }
.admin-auth h2 { margin: 12px 0 8px; font-size: 25px; }
.admin-auth-card > p:not(.eyebrow) { margin: 0 0 26px; color: #7f7f8a; font-size: 11px; }
.admin-auth label { display: block; margin: 0 0 16px; color: #92929c; font-size: 9px; font-weight: 700; }
.admin-auth input { width: 100%; height: 49px; margin-top: 8px; padding: 0 14px; border: 1px solid #2b2b33; border-radius: 10px; outline: 0; background: #0c0c10; color: white; }
.admin-auth input:focus { border-color: #9d3c58; box-shadow: 0 0 0 3px rgba(255, 71, 99, 0.07); }
.admin-auth form button { width: 100%; height: 49px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border: 0; border-radius: 10px; background: linear-gradient(90deg, #ff4763, #bd2b58); color: white; font-size: 10px; font-weight: 800; }
#admin-login-error { display: block; min-height: 18px; margin-top: 10px; color: #ff778b; font-size: 9px; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 258px;
  padding: 28px 18px 22px;
  background: rgba(10, 10, 12, 0.94);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(22px);
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 28px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.13em;
}
.brand b {
  font-weight: 500;
  color: #777783;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: linear-gradient(145deg, #ff6c7e, #9e1748 55%, #4a0b24);
  box-shadow: 0 8px 25px rgba(255, 71, 99, 0.28);
  font-size: 19px;
  font-weight: 900;
}
.nav-label {
  margin: 24px 12px 8px;
  color: #51515c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 43px;
  padding: 0 13px;
  border-radius: 10px;
  color: #92929e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  transition: 0.2s;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  color: white;
  background: linear-gradient(
    90deg,
    rgba(255, 71, 99, 0.16),
    rgba(255, 71, 99, 0.02)
  );
  box-shadow: inset 2px 0 var(--coral);
}
.sidebar nav i {
  width: 19px;
  text-align: center;
  font-style: normal;
  color: #73737d;
}
.sidebar-foot {
  position: absolute;
  bottom: 20px;
  left: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101013;
}
.sidebar-foot div {
  display: flex;
  flex-direction: column;
}
.sidebar-foot strong {
  font-size: 11px;
}
.sidebar-foot small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.status-dot,
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ee69a;
  box-shadow:
    0 0 0 5px rgba(62, 230, 154, 0.1),
    0 0 15px #3ee69a;
}
main {
  margin-left: 258px;
  padding: 28px 34px 60px;
  max-width: 1720px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
header h1 {
  margin: 3px 0 0;
  font-size: 24px;
}
.eyebrow {
  margin: 0;
  color: #686874;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.icon-btn,
.profile,
.mobile-menu {
  border: 1px solid var(--line);
  background: #111114;
  color: #aaaab4;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 18px;
}
.notify {
  position: relative;
}
.notify:after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.profile {
  height: 45px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 4px 10px 4px 5px;
  text-align: left;
}
.profile > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, #52243c, #1d1420);
  color: #ffc3cd;
  font-size: 11px;
  font-weight: 800;
}
.profile div {
  display: flex;
  flex-direction: column;
}
.profile b {
  font-size: 11px;
}
.profile small {
  color: var(--muted);
  font-size: 9px;
}
.profile i {
  font-style: normal;
  color: #666;
}
.mobile-menu {
  display: none;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 225px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 44px;
  margin-bottom: 20px;
  border: 1px solid #2e2430;
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 78% 45%,
      rgba(255, 71, 99, 0.25),
      transparent 18%
    ),
    linear-gradient(120deg, #151116 0%, #0c0b0e 54%, #21111a 100%);
}
.hero-panel:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.hero-panel > div {
  position: relative;
  z-index: 2;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 71, 99, 0.28);
  border-radius: 99px;
  color: #ff96a5;
  background: rgba(255, 71, 99, 0.07);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 12px var(--coral);
}
.hero-panel h2 {
  margin: 16px 0 10px;
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.hero-panel h2 em {
  font-style: normal;
  background: linear-gradient(90deg, #ff647a, #a77af8);
  -webkit-background-clip: text;
  color: transparent;
}
.hero-panel p {
  max-width: 590px;
  margin: 0;
  color: #92929c;
  font-size: 12px;
  line-height: 1.7;
}
.hero-orbit {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  margin-right: 7%;
}
.orbit-ring {
  position: absolute;
  width: 165px;
  height: 165px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(255, 71, 99, 0.16);
  animation: spin 12s linear infinite;
}
.orbit-ring:before,
.orbit-ring:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 22px var(--coral);
}
.orbit-ring:before {
  width: 7px;
  height: 7px;
  top: 13px;
  left: 27px;
}
.orbit-ring:after {
  width: 4px;
  height: 4px;
  right: 10px;
  bottom: 42px;
  background: var(--violet);
}
.orbit-core {
  display: grid;
  place-items: center;
  width: 83px;
  height: 83px;
  border-radius: 25px;
  transform: rotate(45deg);
  background: linear-gradient(145deg, #ff5d73, #7e143d 58%, #250916);
  box-shadow: 0 18px 60px rgba(255, 71, 99, 0.35);
  font-size: 23px;
  font-weight: 900;
}
.orbit-core::first-line {
  transform: rotate(-45deg);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.metrics article,
.panel {
  background: linear-gradient(
    145deg,
    rgba(19, 19, 23, 0.96),
    rgba(13, 13, 16, 0.98)
  );
  border: 1px solid var(--line);
  border-radius: 16px;
}
.metrics article {
  padding: 18px 19px;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 13px;
}
.coral {
  background: rgba(255, 71, 99, 0.12);
  color: #ff6d82;
}
.violet {
  background: rgba(139, 92, 246, 0.13);
  color: #aa85ff;
}
.gold {
  background: rgba(242, 185, 75, 0.13);
  color: #f4c45f;
}
.cyan {
  background: rgba(52, 211, 199, 0.12);
  color: #51e1d6;
}
.positive,
.neutral {
  font-size: 9px;
  font-weight: 800;
}
.positive {
  color: #49d798;
}
.neutral {
  color: #9595a0;
}
.metrics p {
  margin: 17px 0 5px;
  color: #85858f;
  font-size: 10px;
}
.metrics h3 {
  margin: 0 0 6px;
  font-size: 22px;
}
.metrics small {
  color: #555560;
  font-size: 9px;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 0.72fr);
  gap: 14px;
  margin-bottom: 14px;
}
.grid-bottom {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
}
.panel {
  padding: 20px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head h3 {
  margin: 4px 0 0;
  font-size: 15px;
}
.panel select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d0d10;
  color: #8f8f99;
  font-size: 9px;
}
.performance {
  min-height: 340px;
}
.chart {
  position: relative;
  height: 245px;
  margin: 22px 0 0 35px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 54px,
    #24242b 55px
  );
}
.chart svg {
  width: 100%;
  height: 210px;
  overflow: visible;
}
.area {
  fill: url(#fill);
}
.line {
  fill: none;
  stroke: var(--coral);
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(255, 71, 99, 0.55));
}
.chart-labels {
  position: absolute;
  margin-top: 31px;
  display: flex;
  height: 205px;
  flex-direction: column;
  justify-content: space-between;
  color: #54545e;
  font-size: 8px;
}
.chart-days {
  display: flex;
  justify-content: space-between;
  color: #555560;
  font-size: 8px;
}
.live-count {
  margin: 28px 0 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.muted {
  color: var(--muted);
  font-size: 10px;
}
.device {
  display: flex;
  justify-content: space-between;
  margin: 21px 0 7px;
  font-size: 9px;
  color: #92929d;
}
.bar {
  height: 4px;
  border-radius: 4px;
  background: #24242a;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--coral), var(--violet));
}
.title-list {
  margin-top: 17px;
}
.title-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #202025;
}
.rank {
  font-size: 18px;
  font-weight: 800;
  color: #494953;
}
.title-row b {
  display: block;
  font-size: 11px;
}
.title-row small {
  color: #696974;
  font-size: 9px;
}
.title-row > span:last-child {
  font-size: 9px;
  color: #9a9aa5;
}
.text-btn {
  border: 0;
  background: none;
  color: #ff7186;
  font-size: 9px;
}
.activity ul {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
}
.activity li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
}
.activity-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 11px;
}
.activity li div {
  display: flex;
  flex-direction: column;
}
.activity li b {
  font-size: 10px;
}
.activity li small {
  margin-top: 4px;
  color: #666671;
  font-size: 8px;
}
.catalog-manager {
  margin-top: 18px;
}
.catalog-status {
  color: #73737e;
  font-size: 9px;
}
.catalog-form {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1fr .65fr .65fr 1fr;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid #24242b;
  border-bottom: 1px solid #24242b;
}
.catalog-form label {
  color: #73737e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .05em;
}
.catalog-form input,
.catalog-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #2c2c35;
  border-radius: 8px;
  outline: 0;
  background: #101016;
  color: #f6f6f8;
  font: inherit;
}
.catalog-form input:focus,
.catalog-form textarea:focus {
  border-color: #d84268;
}
.catalog-form .featured-check {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 19px;
}
.catalog-form .featured-check input {
  width: auto;
  margin: 0;
}
.catalog-synopsis {
  grid-column: 1 / -2;
}
.catalog-submit {
  align-self: end;
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff5e75, #b52561);
  color: white;
  font-size: 9px;
  font-weight: 800;
}
.catalog-table {
  padding-top: 10px;
}
.catalog-entry {
  display: grid;
  grid-template-columns: 1.6fr 1fr .7fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #202027;
}
.catalog-entry strong,
.catalog-entry span {
  font-size: 9px;
}
.catalog-entry small {
  display: block;
  margin-top: 4px;
  color: #6f6f79;
  font-size: 8px;
}
.catalog-delete {
  border: 1px solid #4b2630;
  border-radius: 7px;
  padding: 7px 10px;
  background: #1a1115;
  color: #ff7b8f;
  font-size: 8px;
}
.ops-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  margin-top: 18px;
}
.ops-panel { margin-top: 18px; }
.ops-grid .ops-panel { margin-top: 0; }
.ops-table { display: grid; gap: 7px; }
.ops-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(90px, .7fr) minmax(90px, .7fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid #202027;
}
.ops-entry b,
.ops-entry span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ops-entry small { display: block; margin-top: 4px; color: #6f6f79; font-size: 8px; }
.status-chip {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 20px;
  background: #15362b;
  color: #65d49e;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}
.status-chip.suspended,
.status-chip.failed { background: #3b1822; color: #ff778d; }
.account-toggle {
  border: 1px solid #35353e;
  border-radius: 7px;
  padding: 7px 9px;
  background: #15151b;
  color: #dddde3;
  font-size: 8px;
}
.invoice-entry { grid-template-columns: minmax(0, 1.4fr) .55fr .65fr auto minmax(120px, auto); }
.invoice-actions { display: flex; justify-content: flex-end; gap: 6px; }
.invoice-actions button {
  border: 1px solid #35353e;
  border-radius: 7px;
  padding: 7px 9px;
  background: #15151b;
  color: #dddde3;
  font-size: 8px;
  cursor: pointer;
}
.invoice-actions .invoice-refund { border-color: #663240; color: #ff879a; }
.invoice-actions button:disabled { cursor: wait; opacity: .5; }
.audit-entry { grid-template-columns: minmax(0, 1fr) 1fr .8fr; }
@media (max-width: 1100px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-orbit {
    margin-right: 0;
  }
  .grid-main,
  .grid-bottom {
    grid-template-columns: 1fr;
  }
  .ops-grid { grid-template-columns: 1fr; }
  .catalog-form {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-synopsis {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
  }
  main {
    margin-left: 0;
    padding: 20px;
  }
  .mobile-menu {
    display: inline-block;
    margin-right: 8px;
  }
  .header-actions .icon-btn {
    display: none;
  }
  .profile div,
  .profile i {
    display: none;
  }
  .hero-panel {
    padding: 28px;
  }
  .hero-orbit {
    display: none;
  }
  .hero-panel h2 {
    font-size: 26px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .grid-main,
  .grid-bottom {
    grid-template-columns: 1fr;
  }
  .chart {
    margin-left: 28px;
  }
  header h1 {
    font-size: 19px;
  }
  .catalog-form,
  .catalog-entry,
  .ops-entry,
  .audit-entry {
    grid-template-columns: 1fr;
  }
  .catalog-submit {
    min-height: 42px;
  }
}
