:root {
  --blue: #0099e5;
  --bg: #07090d;
  --panel: #10151d;
  --line: #232d3b;
  --muted: #8995a9;
  --text: #edf4ff;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #182130;
  color: var(--text);
  padding: 11px 17px;
  border-radius: 9px;
  transition: 0.18s;
}
button:hover {
  border-color: var(--blue);
  background: #173148;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.primary:hover {
  background: #0787c1;
}
.ghost {
  background: transparent;
}
.danger {
  color: #ff9595;
}
a {
  color: #69cdff;
  text-decoration: none;
}
input,
select,
textarea {
  width: 100%;
  background: #0b1018;
  border: 1px solid #2a3647;
  border-radius: 8px;
  color: white;
  padding: 12px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #0099e518;
}
label {
  display: block;
  font-size: 13px;
  color: #bcc9da;
  margin: 16px 0 7px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  line-height: 1.5;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.9;
}
.muted,
small {
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #0c1017;
  border-left: 1px solid var(--line);
  padding: 27px 17px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 7px 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.brand img {
  width: 46px;
  height: 52px;
  object-fit: contain;
}
.brand strong {
  font-size: 17px;
  display: block;
}
.brand small {
  font-size: 9px;
  letter-spacing: 3px;
  color: #7b8ba0;
  display: block;
  margin-top: 7px;
}
.nav-label {
  color: #57667c;
  font-size: 10px;
  letter-spacing: 1px;
  margin: 14px 12px 10px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  text-align: right;
  background: none;
  border: 1px solid transparent;
  color: #91a0b5;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px;
}
.nav button.active {
  background: #0099e51a;
  border-color: #0099e536;
  color: #63d0ff;
}
.icon {
  width: 21px;
  font-size: 19px;
  text-align: center;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 24px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.avatar {
  width: 34px;
  height: 34px;
  background: #123b50;
  color: #6ed3ff;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.workspace {
  min-width: 0;
}
.topbar {
  padding: 17px 35px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #0b0f16;
}
.connection {
  display: flex;
  align-items: center;
  gap: 10px;
}
.connection input {
  width: 190px;
  font-size: 12px;
}
.connection button {
  font-size: 12px;
}
.status {
  font-size: 11px;
  color: #8f9db0;
  white-space: nowrap;
}
.status:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #637186;
  margin-left: 7px;
}
.status.online:before {
  background: #35d5a0;
}
.top-note {
  font-size: 11px;
  color: #6c819c;
}
.content {
  padding: 33px 36px;
  max-width: 1700px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 2px;
  font-weight: bold;
  margin-bottom: 8px;
}
.heading h1 {
  margin-bottom: 7px;
}
.heading p {
  font-size: 12px;
  margin: 0;
  color: #8392a8;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.hero {
  border: 1px solid #194b69;
  border-radius: 17px;
  padding: 30px 34px;
  background:
    radial-gradient(ellipse at 10% 0%, #064a6a 0, transparent 57%),
    linear-gradient(110deg, #0e202e, #111923);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  overflow: hidden;
  min-height: 165px;
}
.hero h2 {
  font-size: 23px;
  margin: 12px 0;
}
.hero p {
  font-size: 12px;
  color: #9db2c8;
  max-width: 550px;
  margin: 0;
}
.hero-art {
  font-size: 73px;
  color: #45caff;
  transform: rotate(-12deg);
  padding: 0 45px;
  text-shadow: 0 0 50px #0099e5;
}
.pill {
  display: inline-block;
  border-radius: 6px;
  background: #0099e51a;
  color: #73d2ff;
  padding: 6px 9px;
  font-size: 10px;
}
.pill.green {
  background: #0da57220;
  color: #58d9a6;
}
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filters button {
  font-size: 12px;
  background: #0f151e;
  color: #9cabc0;
  padding: 9px 15px;
}
.filters button.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.search {
  margin-right: auto;
  width: 230px;
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: #10151d;
}
.card:hover {
  border-color: #36506b;
}
.art {
  height: 195px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at center, #073859, transparent 70%), #090e17;
}
.art:before {
  content: "";
  position: absolute;
  width: 145px;
  height: 145px;
  border: 1px solid #0099e559;
  border-radius: 50%;
  box-shadow:
    0 0 0 18px #0099e507,
    0 0 0 37px #0099e507;
  transform: rotate(25deg);
}
.art.orbit:before {
  border-radius: 30%;
  transform: rotate(45deg);
  border-color: #8e84ff77;
  box-shadow: 0 0 40px #7563ff30;
}
.art.gift {
  background: radial-gradient(ellipse, #143e5b, #070e18);
}
.art.welcome {
  background: radial-gradient(ellipse, #144438, #080e15);
}
.art.coins {
  background: radial-gradient(ellipse, #47402a, #0b1017);
}
.art.spark {
  background: radial-gradient(ellipse, #322452, #090f19);
}
.art .big {
  z-index: 1;
  font-size: 42px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #d6f5ff;
  text-shadow: 0 0 25px #00aaff;
}
.art .watermark {
  position: absolute;
  bottom: 15px;
  letter-spacing: 4px;
  font-size: 8px;
  color: #7bacc1;
}
.art .badge {
  position: absolute;
  top: 13px;
  right: 13px;
  font-size: 10px;
  background: #041019b0;
  border: 1px solid #294858;
  padding: 5px 8px;
  border-radius: 6px;
  color: #71d4fd;
}
.art video,
.art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
}
.card-body {
  padding: 17px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.card h3 {
  margin: 0;
  font-size: 14px;
}
.card small {
  font-size: 10px;
}
.card-footer {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.card-footer .primary {
  flex: 1;
  font-size: 12px;
}
.card-footer button {
  padding: 9px 12px;
}
.price {
  font-size: 11px;
  color: #5cdda9;
}
.info-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #879aaf;
  font-size: 11px;
  line-height: 1.8;
  margin: 24px 0;
}
.panel {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  margin-bottom: 20px;
}
.panel p {
  font-size: 13px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat strong {
  font-size: 29px;
  display: block;
  margin-top: 12px;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  line-height: 2;
  font-size: 13px;
}
.empty .icon {
  font-size: 35px;
  width: auto;
  color: #397899;
  display: block;
  margin-bottom: 16px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: right;
}
th {
  color: #8395ad;
  font-weight: normal;
  background: #0b1018;
}
td,
th {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td button {
  padding: 7px 11px;
  font-size: 11px;
}
.url {
  direction: ltr;
  text-align: left;
  font-size: 11px;
}
.widget-preview {
  height: 170px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse, #093a54, #090f17);
  border-radius: 10px;
  margin: 17px 0;
  color: #8cdeff;
  font-size: 23px;
}
.progress {
  background: #192b3f;
  height: 9px;
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--blue);
}
dialog {
  background: #101722;
  color: var(--text);
  border: 1px solid #30465b;
  border-radius: 16px;
  padding: 28px;
  width: min(620px, 94vw);
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.modal-head h2 {
  margin: 0;
}
.modal-head button {
  padding: 5px 10px;
  background: transparent;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.notice {
  padding: 13px;
  border-radius: 8px;
  background: #0099e50d;
  border: 1px solid #0099e525;
  font-size: 12px;
  color: #a6c7dc;
  line-height: 1.9;
  margin-top: 15px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 1000;
  max-width: 450px;
  padding: 16px 24px;
  border-radius: 10px;
  background: #183247;
  border: 1px solid #34789c;
  color: white;
  box-shadow: 0 8px 30px #0006;
  display: none;
  line-height: 1.8;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: radial-gradient(ellipse at top right, #063754, transparent 55%);
}
.auth-story {
  padding: 10vw 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-story h1 {
  font-size: 47px;
  line-height: 1.6;
}
.auth-story p {
  color: #9eb1c9;
}
.auth-box {
  max-width: 450px;
  margin: auto;
  padding: 40px;
  width: 100%;
  background: #0e151f;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.auth-logo {
  width: 64px;
  max-height: 75px;
  object-fit: contain;
  margin-bottom: 25px;
}
.auth-box button {
  width: 100%;
  margin-top: 17px;
}
.auth-box .ghost {
  font-size: 12px;
}
.live-feed {
  max-height: 430px;
  overflow: auto;
}
.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 12px;
}
.feed-item small {
  margin-right: auto;
}
.split-label {
  display: flex;
  justify-content: space-between;
}
.mobile-brand {
  display: none;
}
.admin-tabs {
  margin-bottom: 20px;
}
.screen {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.check input {
  width: 16px;
}
.footer {
  margin-top: 30px;
  color: #485b74;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}
.overlay-body {
  background: transparent !important;
  overflow: hidden;
}
.overlay-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  direction: rtl;
  background: transparent;
}
.alert-box {
  min-width: 350px;
  padding: 35px 55px;
  border: 1px solid var(--blue);
  background: linear-gradient(130deg, #031624ee, #051019ee);
  box-shadow: 0 0 55px #0099e53b;
  border-radius: 22px;
  text-align: center;
  animation: enter 0.6s both;
  color: white;
}
.alert-box h1 {
  font-size: 42px;
  margin: 12px;
}
.alert-box p {
  font-size: 22px;
  margin: 12px;
}
.alert-box .symbol {
  font-size: 60px;
  color: #52d1ff;
}
.overlay-media {
  max-width: 100vw;
  max-height: 100vh;
}
.overlay-widget {
  color: #fff;
  background: #061521dc;
  border: 1px solid #0099e57a;
  border-radius: 16px;
  padding: 24px;
  min-width: 340px;
  text-align: center;
}
.overlay-widget h1 {
  color: #5bd5ff;
}
.ranking-row {
  display: flex;
  justify-content: space-between;
  gap: 45px;
  padding: 12px;
  border-bottom: 1px solid #ffffff20;
}
.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.demo-label {
  font-size: 10px;
  color: #73bedd;
  letter-spacing: 2px;
}
.test-marker {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0b304a;
  color: #99deff;
  padding: 7px;
  border-radius: 5px;
  font-size: 12px;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1600px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 195px 1fr;
  }
  .content {
    padding: 25px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar {
    padding: 15px 20px;
  }
  .top-note {
    display: none;
  }
  .hero-art {
    padding: 15px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding-bottom: 12px;
    margin-bottom: 10px;
  }
  .brand img {
    width: 30px;
    height: 35px;
  }
  .sidebar .nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .nav button {
    white-space: nowrap;
    font-size: 11px;
  }
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  .topbar {
    padding: 12px;
  }
  .connection {
    flex-wrap: wrap;
    width: 100%;
  }
  .connection input {
    width: 140px;
    flex: 1;
  }
  .content {
    padding: 20px 14px;
  }
  .heading {
    align-items: flex-start;
  }
  .heading h1 {
    font-size: 23px;
  }
  .heading .row {
    justify-content: flex-end;
  }
  .hero {
    padding: 23px;
  }
  .hero-art {
    display: none;
  }
  .grid {
    gap: 12px;
  }
  .art {
    height: 145px;
  }
  .art .big {
    font-size: 27px;
  }
  .card-body {
    padding: 12px;
  }
  .card-title {
    flex-wrap: wrap;
  }
  .card h3 {
    font-size: 12px;
  }
  .search {
    width: 100%;
    margin-top: 8px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auth {
    display: block;
    padding: 25px 15px;
  }
  .auth-story {
    padding: 25px;
  }
  .auth-story h1 {
    font-size: 29px;
  }
  .auth-box {
    padding: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .heading > button {
    font-size: 11px;
  }
  .card-footer button {
    font-size: 11px;
  }
  .hero h2 {
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.overlay-html {
  background: transparent !important;
  color-scheme: normal;
}
.overlay-body {
  background: transparent !important;
}
.overlay-stage .overlay-widget {
  animation: enter 0.4s both;
}
.overlay-widget {
  font-size: var(--widget-font, 24px);
}
.overlay-widget h1 {
  font-size: calc(var(--widget-font, 24px) * 1.6);
}
body[data-theme="neon"] .overlay-widget {
  box-shadow: 0 0 32px #0099e577;
  border-width: 2px;
  background: #06101aef;
}
body[data-theme="minimal"] .overlay-widget {
  background: #0009;
  border-color: transparent;
  box-shadow: none;
  border-radius: 4px;
}
.overlay-widget {
  border-color: var(--blue);
}
.overlay-widget h1 {
  color: var(--blue);
}

.alert-identity{position:fixed;bottom:5%;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;background:rgba(0,0,0,.78);color:white;border:2px solid var(--blue);border-radius:48px;padding:10px 22px;font-size:28px;z-index:5}.alert-identity img{width:64px;height:64px;border-radius:50%;object-fit:cover}.alert-identity small{font-size:18px}
