:root {
  --ink: #071018;
  --ink-2: #0d1a24;
  --panel: rgba(14, 28, 40, 0.82);
  --line: rgba(232, 196, 106, 0.18);
  --text: #e8eef2;
  --muted: #8fa3b0;
  --gold: #e8c46a;
  --gold-deep: #c4922a;
  --teal: #3ecfad;
  --danger: #e85d5d;
  --ok: #3ecfad;
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --radius: 2px;
  --max: 1920px;
  --page-gutter: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 196, 106, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(62, 207, 173, 0.08), transparent 50%),
    linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 45%, #0a1520 100%);
  background-attachment: fixed;
}

/* Brand background lives on a fixed layer so large uploads never
   expand the page — always cover the viewport only. */
body.has-brand-bg {
  background:
    linear-gradient(165deg, rgba(7, 16, 24, 0.78) 0%, rgba(10, 21, 32, 0.82) 55%, rgba(7, 16, 24, 0.86) 100%);
  background-attachment: fixed;
}

body.has-brand-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #071018;
  background-image:
    linear-gradient(165deg, rgba(7, 16, 24, 0.72) 0%, rgba(10, 21, 32, 0.78) 55%, rgba(7, 16, 24, 0.84) 100%),
    var(--brand-bg-image);
  background-position: center, center;
  background-size: auto, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(232, 196, 106, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 196, 106, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: #f2d98a;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--page-gutter);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(7, 16, 24, 0.72);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  max-width: 16rem;
  min-width: 0;
}

.brand--has-logo {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}

.brand__logo,
img.brand__logo {
  display: block;
  height: 36px !important;
  width: auto !important;
  max-height: 36px !important;
  max-width: 140px !important;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
}

.brand__tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-preview__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.25rem;
}

.brand-preview__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.brand-preview__logo {
  height: 48px;
  width: auto;
  max-height: 48px;
  max-width: 160px;
  object-fit: contain;
}

.brand-preview__favicon {
  height: 2rem;
  width: 2rem;
  object-fit: contain;
}

.brand-preview__bg {
  height: 5rem;
  border-radius: 0.4rem;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav__meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
}

.nav__credits {
  color: var(--gold);
  font-size: 0.82rem;
  white-space: nowrap;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  background: rgba(232, 196, 106, 0.06);
}

.nav__credits strong {
  color: var(--text);
}

.nav__badge {
  display: inline-block;
  min-width: 1.1rem;
  padding: 0.05rem 0.35rem;
  margin-left: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
}

.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.notice-modal[hidden] {
  display: none;
}

.notice-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 16, 0.72);
}

.notice-modal__card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 1.35rem 1.4rem 1.25rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.notice-modal__card h2 {
  margin: 0 0 0.75rem;
  padding-right: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
}

.notice-modal__x {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.notice-modal__x:hover {
  color: var(--text);
}

.notice-modal__body {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.1rem;
  max-height: 50vh;
  overflow: auto;
}

.notice-modal__card .btn {
  width: 100%;
}

.info-modal__card {
  width: min(760px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.info-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.info-modal__head h2 {
  margin: 0;
}

.info-modal__close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.info-modal__close:hover {
  color: var(--text);
}

.info-modal__body {
  max-height: 65vh;
}

.info-modal__section + .info-modal__section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.notice-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.notice-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notice-item:first-child {
  padding-top: 0;
}

.notice-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.notice-item__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.notice-item__meta {
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.notice-item--new {
  background: rgba(232, 196, 106, 0.05);
  margin: 0 -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 2px;
}

.notice-item__body {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.filter-panel {
  margin-bottom: 1.25rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
}

.filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.filter-count {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: auto;
}

.pager {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-track {
  width: 100%;
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.progress-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.code-block {
  margin: 0;
  padding: 0.85rem 1rem;
  overflow: auto;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88em;
}

.main {
  flex: 1;
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.messages {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.messages li {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.92rem;
}

.messages .success {
  border-color: rgba(62, 207, 173, 0.35);
  color: var(--ok);
}

.messages .error {
  border-color: rgba(232, 93, 93, 0.4);
  color: var(--danger);
}

.messages .info {
  color: var(--muted);
}

.impersonation-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0.75rem auto 0;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(212, 160, 23, 0.45);
  background: rgba(212, 160, 23, 0.12);
  color: var(--text);
  font-size: 0.92rem;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.page-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 52rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

.btn--solid:hover {
  background: #f2d98a;
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn--solid:disabled:hover,
.btn--solid[disabled]:hover {
  background: var(--gold);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--muted);
}

.btn--sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

.btn--ghost:hover {
  border-color: var(--muted);
  background: transparent;
  color: var(--text);
}

.btn--danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn--danger:hover {
  background: var(--danger);
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat {
  padding: 1.25rem 1.35rem;
  border-top: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(232, 196, 106, 0.08), transparent 60%),
    var(--panel);
}

.stat__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

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

table.data {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.86rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

table.data .cell-keep {
  white-space: nowrap;
  overflow-wrap: normal;
}

table.data .cell-clip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
}

table.data th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

table.data tr:hover td {
  background: rgba(232, 196, 106, 0.04);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  color: var(--muted);
}

.badge--ok {
  border-color: rgba(62, 207, 173, 0.45);
  color: var(--ok);
}

.badge--err {
  border-color: rgba(232, 93, 93, 0.45);
  color: var(--danger);
}

.badge--admin {
  border-color: rgba(232, 196, 106, 0.5);
  color: var(--gold);
}

.badge--warn {
  border-color: rgba(232, 196, 106, 0.5);
  color: var(--gold);
}

.field,
.select {
  width: 100%;
  background: rgba(7, 16, 24, 0.65);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  outline: none;
}

.field:focus {
  border-color: var(--gold);
}

.field--tall {
  min-height: 140px;
  resize: vertical;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.field-checkbox {
  width: 1.2rem;
  height: 1.2rem;
  justify-self: start;
  accent-color: var(--gold);
  cursor: pointer;
}

.form-stack {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

.form-stack label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.form-row .field {
  width: auto;
  min-width: 180px;
  flex: 1;
}

.check {
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
}

.auth-wrap {
  min-height: calc(100vh - 4rem);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-panel {
  width: min(420px, 100%);
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  background: var(--panel);
  animation: rise 0.55s ease both;
}

.auth-panel h1 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.auth-panel .sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-panel .errorlist {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  color: var(--danger);
  font-size: 0.82rem;
}

.auth-contact {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
}

.auth-contact__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-contact__btn {
  width: 100%;
  text-decoration: none;
  font-weight: 600;
}

.auth-contact__btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.auth-contact__btn--wa {
  border-color: #1fa855;
  background: #1fa855;
  color: #fff;
}

.auth-contact__btn--wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.auth-contact__btn--tg {
  border-color: #229ed9;
  background: #229ed9;
  color: #fff;
}

.auth-contact__btn--tg:hover {
  background: #2cb0f0;
  border-color: #2cb0f0;
  color: #fff;
}

.auth-contact__number {
  margin: 0;
  text-align: center;
  color: var(--text);
  font-size: 0.92rem;
}

.auth-contact__number strong {
  letter-spacing: 0.04em;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: 2rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 16, 24, 0.2), rgba(7, 16, 24, 0.85)),
    radial-gradient(circle at 70% 40%, rgba(232, 196, 106, 0.2), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'%3E%3Ccircle cx='520' cy='260' r='90' fill='none' stroke='%23e8c46a' stroke-width='1' opacity='0.35'/%3E%3Ccircle cx='520' cy='260' r='40' fill='none' stroke='%23e8c46a' stroke-width='1.5' opacity='0.55'/%3E%3Ccircle cx='520' cy='260' r='6' fill='%23e8c46a' opacity='0.8'/%3E%3Cpath d='M120 480 Q320 200 520 260 T780 120' fill='none' stroke='%233ecfad' stroke-width='1' opacity='0.25'/%3E%3C/svg%3E")
      right center / cover no-repeat;
  animation: drift 14s ease-in-out infinite alternate;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  animation: rise 0.7s ease both;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 0.35rem;
}

.hero__by {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

.hero__line {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.kv {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.kv span {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kv strong {
  font-weight: 500;
  word-break: break-word;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

td.actions {
  align-content: flex-start;
  gap: 0.35rem;
  max-width: none;
  width: 8rem;
}

td.actions form {
  margin: 0;
  display: contents;
}

.user-row td {
  border-bottom: none;
}

.user-actions-row td {
  padding-top: 0;
}

td.actions--row {
  max-width: none;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding-top: 0.15rem;
  padding-bottom: 0.65rem;
}

td.actions--row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-note {
  margin-top: auto;
  padding: 1rem 1.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

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

@keyframes drift {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.04) translate(-1.5%, 1%);
  }
}

/* Search results */
.results {
  margin: 1.5rem 0 2rem;
  animation: rise 0.45s ease both;
}

.results__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.results__query {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.results__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.results-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.results-pager__btn {
  margin: 0;
  display: inline-flex;
}

.results-pager__arrow {
  min-width: 2.5rem;
  padding: 0.4rem 0.7rem;
  font-size: 1.35rem;
  line-height: 1;
}

.results-pager__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.results-pager__label {
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 4.5rem;
  text-align: center;
}

.results__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.results__count {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results__list {
  display: grid;
  gap: 0.85rem;
}

.result {
  padding: 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: linear-gradient(105deg, rgba(232, 196, 106, 0.06), transparent 40%),
    var(--panel);
  overflow: hidden;
}

.result__topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.55rem 1.2rem;
  background: rgba(232, 196, 106, 0.07);
  border-bottom: 1px solid var(--line);
}

.result__topbar div {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.result__topbar span {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result__topbar strong {
  font-size: 0.82rem;
  font-weight: 500;
}

.result__main {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding: 1rem 1.2rem 1.1rem;
}

.result__media img,
.result__placeholder {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.7);
}

.result__placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.result__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.result__title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.result__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.result__idline {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.result__idline strong {
  color: var(--text);
  font-weight: 500;
}

.result__side {
  text-align: right;
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

.result__platform {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}

.result__platform strong {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: normal;
}

.result__rupee {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--gold);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease;
}

.link-btn:hover {
  text-decoration-color: var(--gold);
}

.result__panel {
  margin: 0.6rem 0;
  padding: 0.75rem 0.9rem;
  background: rgba(7, 16, 24, 0.55);
  border: 1px solid var(--line);
}

.result__panel-title {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.result__timeline li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
}

.result__timeline time {
  color: var(--muted);
  font-size: 0.76rem;
}

.result__breakup {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.result__breakup li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.result__breakup--total {
  margin-top: 0.3rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
  color: var(--text) !important;
  font-weight: 600;
}

.result__moreinfo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem 1rem;
}

.result__moreinfo li {
  min-width: 0;
}

.result__moreinfo li span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.result__moreinfo li strong {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  word-break: break-word;
}

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

.result__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
}

.result__cell {
  min-width: 0;
}

.result__cell span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.result__cell strong {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  word-break: break-word;
}

.result__cell--wide {
  grid-column: span 2;
}

.result__desc {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.result__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.mono {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
}

.search-box {
  margin-bottom: 0.5rem;
}

.search-box__stack {
  display: grid;
  gap: 0.75rem;
}

.search-box__form {
  align-items: end;
  margin-bottom: 0;
}

.result-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  flex-wrap: wrap;
}

.result-tabs__tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.result-tabs__tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1408;
}

.search-field {
  display: grid;
  gap: 0.35rem;
  flex: 1;
  min-width: 180px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-field .field {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  color: var(--text);
}

.results__empty {
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

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

  .result__cell--wide {
    grid-column: span 2;
  }

  .result__topbar {
    gap: 0.6rem 1rem;
  }

  .result__top {
    flex-direction: column;
  }

  .result__side {
    text-align: left;
    justify-items: start;
    flex-direction: row;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
}

@media (max-width: 800px) {
  :root {
    --page-gutter: 0.85rem;
  }

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

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

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

  .nav__meta {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }

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

.helper-banner {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  font-size: 0.92rem;
}
.helper-banner[data-state="off"] {
  background: rgba(200, 60, 60, 0.12);
  color: var(--danger);
}
.helper-banner[data-state="on"] {
  background: rgba(40, 140, 80, 0.14);
  color: #1b7a3a;
}
