/* SAMURAI // CHANGER — isolated administration console */
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% -8%, rgba(154, 25, 43, .2), transparent 31%),
    radial-gradient(circle at 6% 48%, rgba(239, 191, 88, .055), transparent 26%),
    #080706;
}

.admin-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .014) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 84%);
}

.admin-body.admin-dialog-open { overflow: hidden; }

.admin-header { width: min(1440px, calc(100% - 38px)); }
.admin-brand { gap: 9px; }
.admin-brand > em {
  margin-left: 5px;
  padding: 6px 7px;
  border: 1px solid rgba(239, 191, 88, .22);
  border-radius: 5px;
  background: rgba(239, 191, 88, .07);
  color: #c99c49;
  font: 800 6px/1 Arial, sans-serif;
  letter-spacing: .14em;
}
.admin-main-nav a { padding-inline: 12px; }

.admin-head-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 220px;
  min-height: 45px;
  padding: 5px 6px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .03);
}
.admin-head-identity > span { display: grid; min-width: 0; gap: 3px; }
.admin-head-identity small {
  color: #5d5852;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.admin-head-identity b {
  overflow: hidden;
  color: #aaa49c;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-head-identity > i {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(239, 191, 88, .24);
  border-radius: 7px;
  background: rgba(239, 191, 88, .075);
  color: #e3bd70;
  font-style: normal;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-page {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 38px));
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 110px 0 45px;
  background: transparent;
}

.admin-boot,
.admin-gate {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: calc(100vh - 170px);
  text-align: center;
}
.admin-boot { grid-template-columns: auto auto; gap: 26px; }
.admin-boot > div { text-align: left; }
.admin-boot h1 {
  max-width: 650px;
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: .94;
  letter-spacing: -.045em;
}
.admin-boot p,
.admin-gate > p {
  margin: 0;
  color: #817b74;
  font-size: 10px;
  line-height: 1.7;
}
.admin-loader {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.admin-loader::before,
.admin-loader::after,
.admin-loader i {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.admin-loader::before { inset: 7px; border: 1px solid rgba(239, 191, 88, .23); }
.admin-loader::after {
  inset: -1px;
  border: 1px solid transparent;
  border-top-color: var(--gold);
  border-right-color: rgba(239, 191, 88, .18);
  animation: adminSpin 1.1s linear infinite;
}
.admin-loader i { inset: 23px; background: var(--red); box-shadow: 0 0 12px rgba(212, 47, 63, .65); }
@keyframes adminSpin { to { transform: rotate(360deg); } }

.admin-gate {
  max-width: 750px;
  margin: 0 auto;
}
.admin-gate-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-bottom: 31px;
  border: 1px solid rgba(239, 191, 88, .16);
  transform: rotate(45deg);
}
.admin-gate-mark::before { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(255, 255, 255, .075); }
.admin-gate-mark span { color: #d7b164; font: 40px/1 Georgia, serif; transform: rotate(-45deg); }
.admin-gate-mark i { position: absolute; right: -3px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px rgba(212, 47, 63, .8); }
.admin-gate h1 {
  margin: 18px 0 20px;
  font-size: clamp(45px, 6.5vw, 82px);
  line-height: .84;
  letter-spacing: -.06em;
}
.admin-gate h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(242, 239, 232, .67); }
.admin-gate > p { max-width: 530px; }
.admin-gate-actions { display: flex; gap: 9px; margin-top: 28px; }
.admin-gate > small { margin-top: 22px; color: #534f4a; font-size: 7px; }
.admin-gate.is-error .admin-gate-mark { border-color: rgba(212, 47, 63, .27); }
.admin-gate.is-error .admin-gate-mark span { color: #e47f8b; font-family: inherit; font-size: 28px; font-weight: 800; }
.admin-gate.is-error > .admin-button { margin-top: 27px; }

.admin-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #756f68;
  font: 800 7px/1 Arial, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.admin-eyebrow > i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 9px rgba(239, 191, 88, .6); }

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 43px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 820;
  letter-spacing: .045em;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s, opacity .2s;
}
.admin-button i { font-style: normal; font-size: 12px; }
.admin-button:hover:not(:disabled) { transform: translateY(-1px); }
.admin-button.is-primary { background: linear-gradient(180deg, #f5f1e8, #d9d2c6); color: #0d0b09; box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 10px 28px rgba(0, 0, 0, .23); }
.admin-button.is-primary:hover:not(:disabled) { background: linear-gradient(180deg, #ffe19c, #e9b646); }
.admin-button.is-quiet { border-color: var(--line); background: rgba(255, 255, 255, .025); color: #9b958d; }
.admin-button.is-quiet:hover:not(:disabled) { border-color: rgba(239, 191, 88, .3); background: rgba(239, 191, 88, .06); color: #e3c17c; }
.admin-button.is-danger { border-color: rgba(221, 69, 84, .22); background: rgba(221, 69, 84, .055); color: #d3848e; }
.admin-button.is-danger:hover:not(:disabled) { border-color: rgba(221, 69, 84, .42); background: rgba(221, 69, 84, .1); color: #f0a0aa; }
.admin-button:disabled { cursor: not-allowed; opacity: .42; }

.admin-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-rail {
  position: sticky;
  top: 93px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 119px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(21, 19, 17, .95), rgba(12, 11, 10, .95));
  box-shadow: 0 22px 65px rgba(0, 0, 0, .2);
}
.admin-workspace { display: grid; grid-template-columns: 41px 1fr auto; align-items: center; gap: 11px; padding: 17px 15px; border-bottom: 1px solid var(--line); }
.admin-workspace-mark { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid rgba(239, 191, 88, .2); border-radius: 9px; background: rgba(239, 191, 88, .055); color: #d4ab5e; font: 17px/1 Georgia, serif; }
.admin-workspace > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.admin-workspace small { color: #5c5751; font-size: 6px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.admin-workspace b { overflow: hidden; color: #b8b2a9; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-workspace > i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(185, 233, 109, .55); }

.admin-side-nav { display: grid; gap: 4px; padding: 13px 10px; }
.admin-side-nav a { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 8px; min-height: 44px; padding: 0 11px; border: 1px solid transparent; border-radius: 8px; color: #746e67; transition: border-color .18s, background .18s, color .18s, transform .18s; }
.admin-side-nav a:hover { color: #c4beb5; transform: translateX(2px); }
.admin-side-nav a.active { border-color: rgba(239, 191, 88, .14); background: linear-gradient(90deg, rgba(239, 191, 88, .08), rgba(239, 191, 88, .02)); color: #eee8de; }
.admin-side-nav a > span { color: #4d4944; font: 700 6px/1 monospace; }
.admin-side-nav a.active > span { color: #c99c49; }
.admin-side-nav b { font-size: 8px; }

.admin-rail-security { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 10px; margin: auto 10px 10px; padding: 12px; border: 1px solid rgba(185, 233, 109, .1); border-radius: 8px; background: rgba(185, 233, 109, .025); }
.admin-rail-security > i { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(185, 233, 109, .16); border-radius: 50%; color: #9bc66b; font-style: normal; font-size: 7px; }
.admin-rail-security > span { display: grid; gap: 4px; }
.admin-rail-security b { color: #aab999; font-size: 7px; }
.admin-rail-security small { color: #5f6659; font-size: 6px; line-height: 1.45; }
.admin-signout { display: flex; align-items: center; justify-content: space-between; min-height: 45px; margin: 0 10px 10px; padding: 0 12px; border: 1px solid rgba(221, 69, 84, .12); border-radius: 8px; background: rgba(221, 69, 84, .03); color: #9d626a; font-size: 7px; font-weight: 760; cursor: pointer; }
.admin-signout:hover { border-color: rgba(221, 69, 84, .3); background: rgba(221, 69, 84, .075); color: #e09aa3; }
.admin-signout i { font-style: normal; }

.admin-content { min-width: 0; }
.admin-view { min-width: 0; animation: adminViewIn .32s var(--ease) both; }
@keyframes adminViewIn { from { opacity: 0; transform: translateY(8px); } }

.admin-page-head,
.admin-section-head {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  min-height: 258px;
  padding: 38px 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(105deg, rgba(20, 18, 16, .98), rgba(12, 11, 10, .88)),
    #11100f;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .17);
}
.admin-page-head::before,
.admin-section-head::before { content: "侍"; position: absolute; right: 23px; top: -45px; color: rgba(239, 191, 88, .027); font: 245px/1 Georgia, serif; }
.admin-page-head::after,
.admin-section-head::after { content: ""; position: absolute; right: 6%; top: -110px; width: 315px; height: 315px; border: 1px solid rgba(239, 191, 88, .07); border-radius: 50%; box-shadow: 0 0 0 52px rgba(239, 191, 88, .018), 0 0 0 104px rgba(255, 255, 255, .009); }
.admin-page-head > *,
.admin-section-head > * { position: relative; z-index: 2; }
.admin-page-head h1,
.admin-section-head h1 { margin: 15px 0 14px; font-size: clamp(42px, 5.2vw, 72px); line-height: .84; letter-spacing: -.06em; }
.admin-page-head h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(242, 239, 232, .69); }
.admin-page-head p,
.admin-section-head p { max-width: 610px; margin: 0; color: #817b74; font-size: 10px; line-height: 1.65; }
.admin-head-tools { display: flex; align-items: center; gap: 10px; }
.admin-sync { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .2); }
.admin-sync > i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(185, 233, 109, .55); }
.admin-sync > span { display: grid; gap: 3px; min-width: 87px; }
.admin-sync small { color: #5c5752; font-size: 6px; letter-spacing: .1em; text-transform: uppercase; }
.admin-sync time { color: #989188; font-size: 7px; }
.admin-icon-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .025); color: #8d867e; cursor: pointer; }
.admin-icon-button:hover { border-color: rgba(239, 191, 88, .3); color: var(--gold); }
.admin-icon-button.is-spinning { animation: adminSpin .8s linear infinite; }

.admin-section-head { min-height: 220px; }
.admin-section-head h1 { margin-bottom: 13px; font-size: clamp(40px, 4.8vw, 66px); }

.admin-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; margin-top: 12px; }
.admin-metrics article { position: relative; display: flex; flex-direction: column; min-height: 188px; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #151311, #0e0d0c); transition: border-color .2s, transform .2s; }
.admin-metrics article::after { content: ""; position: absolute; right: -35px; bottom: -52px; width: 110px; height: 110px; border: 1px solid rgba(255, 255, 255, .03); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255, 255, 255, .012); }
.admin-metrics article:hover { border-color: rgba(255, 255, 255, .17); transform: translateY(-2px); }
.admin-metrics article > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #6b655f; font-size: 7px; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.admin-metrics article > div i { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 6px; color: #726c65; font-style: normal; font-size: 6px; }
.admin-metrics article > div i.is-live,
.admin-metrics article > div i.is-good { width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(185, 233, 109, .55); }
.admin-metrics strong { margin-top: 27px; color: #eee9e0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; letter-spacing: -.05em; }
.admin-metrics small { position: relative; z-index: 1; margin-top: auto; color: #625d57; font-size: 7px; line-height: 1.45; }
.admin-metrics small b { color: #a69f96; }

.admin-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.admin-quick-action {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  min-height: 138px;
  overflow: hidden;
  padding: 21px 23px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(21, 19, 17, .98), rgba(13, 12, 11, .98));
  color: #aaa39a;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .14);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.admin-quick-action::after { content: ""; position: absolute; right: -47px; bottom: -73px; width: 170px; height: 170px; border: 1px solid rgba(255, 255, 255, .035); border-radius: 50%; box-shadow: 0 0 0 31px rgba(255, 255, 255, .012); pointer-events: none; }
.admin-quick-action.is-support { background: radial-gradient(circle at 100% 0, rgba(151, 28, 42, .13), transparent 47%), linear-gradient(145deg, #151210, #0e0d0c); }
.admin-quick-action.is-promo { background: radial-gradient(circle at 100% 0, rgba(239, 191, 88, .12), transparent 47%), linear-gradient(145deg, #17140f, #0e0d0c); }
.admin-quick-action:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .18); box-shadow: 0 25px 58px rgba(0, 0, 0, .23); }
.admin-quick-action.is-support:hover { border-color: rgba(201, 54, 70, .3); }
.admin-quick-action.is-promo:hover { border-color: rgba(239, 191, 88, .3); }
.admin-quick-index { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; color: #777068; font: 780 8px/1 monospace; }
.is-support .admin-quick-index { border-color: rgba(201, 54, 70, .2); background: rgba(151, 28, 42, .07); color: #b55e68; }
.is-promo .admin-quick-index { border-color: rgba(239, 191, 88, .2); background: rgba(239, 191, 88, .06); color: #c69a4e; }
.admin-quick-copy { position: relative; z-index: 1; display: grid; min-width: 0; gap: 6px; }
.admin-quick-copy small { color: #5f5953; font-size: 6px; font-weight: 830; letter-spacing: .16em; }
.admin-quick-copy b { color: #d1cac0; font-size: clamp(16px, 1.8vw, 23px); letter-spacing: -.025em; }
.admin-quick-copy em { max-width: 430px; color: #6e6861; font-style: normal; font-size: 7px; line-height: 1.5; }
.admin-quick-open { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 11px; color: #817a72; font-size: 7px; font-weight: 780; }
.admin-quick-open i { color: #a78a52; font-style: normal; font-size: 14px; transition: transform .2s; }
.admin-quick-action:hover .admin-quick-open i { transform: translateX(3px); }
.admin-quick-action:focus-visible { outline: 2px solid rgba(239, 191, 88, .82); outline-offset: 3px; }

.admin-overview-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; margin-top: 12px; }
.admin-card,
.admin-table-card { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(150deg, rgba(20, 18, 16, .97), rgba(13, 12, 11, .98)); }
.admin-card { padding: 22px; }
.admin-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-card-head > div { display: grid; gap: 5px; }
.admin-card-head > div > span { color: #5c5650; font-size: 6px; font-weight: 830; letter-spacing: .16em; }
.admin-card-head > div > b { color: #aaa49b; font-size: 10px; }
.admin-card-head > a { display: flex; align-items: center; gap: 12px; color: #857e76; font-size: 7px; }
.admin-card-head > a:hover { color: var(--gold); }
.admin-card-head > a i { font-style: normal; font-size: 11px; }
.admin-state-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 8px; border: 1px solid rgba(185, 233, 109, .1); border-radius: 999px; background: rgba(185, 233, 109, .025); color: #7d9266; font-size: 5px; font-weight: 840; letter-spacing: .1em; }
.admin-state-chip > i { width: 4px; height: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px rgba(185, 233, 109, .5); }
.admin-state-chip.is-pending { border-color: rgba(239, 191, 88, .13); background: rgba(239, 191, 88, .035); color: #9c7a3e; }
.admin-state-chip.is-pending > i { background: var(--gold); box-shadow: 0 0 7px rgba(239, 191, 88, .4); }

.admin-traffic { display: grid; gap: 10px; margin-top: 27px; }
.admin-traffic-row { display: grid; grid-template-columns: 72px 1fr 48px; align-items: center; gap: 11px; }
.admin-traffic-row time { color: #65605a; font: 700 7px/1 monospace; }
.admin-traffic-row > i { position: relative; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .045); }
.admin-traffic-row > i > b { display: block; width: var(--admin-bar, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8e2632, var(--gold)); box-shadow: 0 0 13px rgba(239, 191, 88, .13); }
.admin-traffic-row > b { color: #aaa39a; font: 750 8px/1 monospace; text-align: right; }
.admin-country-list { display: grid; gap: 8px; max-height: 315px; margin-top: 21px; padding-right: 3px; overflow: auto; scrollbar-width: thin; scrollbar-color: #352f29 transparent; }
.admin-country-row { display: grid; grid-template-columns: minmax(185px, .85fr) minmax(120px, 1fr) 55px; align-items: center; gap: 13px; min-height: 46px; padding: 7px 9px; border: 1px solid rgba(255, 255, 255, .04); border-radius: 8px; background: rgba(255, 255, 255, .012); }
.admin-country-identity { display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
.admin-country-identity > i { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, .018); font-style: normal; font-size: 15px; }
.admin-country-identity > span { display: grid; min-width: 0; gap: 4px; }
.admin-country-identity b { overflow: hidden; color: #aaa39a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-country-identity small { overflow: hidden; color: #59544f; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.admin-country-row > i { position: relative; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .045); }
.admin-country-row > i > b { display: block; width: var(--admin-bar, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8e2632, var(--gold)); box-shadow: 0 0 13px rgba(239, 191, 88, .13); }
.admin-country-row > b { color: #b0a89f; font: 760 8px/1 monospace; text-align: right; }
.admin-geo-attribution { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--soft); color: #57524d; font-size: 6px; line-height: 1.45; }
.admin-geo-attribution a { flex: 0 0 auto; color: #8c7447; text-decoration: underline; text-underline-offset: 3px; }
.admin-geo-attribution a:hover { color: var(--gold); }
.admin-visitor-history { margin-top: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(150deg, rgba(20, 18, 16, .97), rgba(13, 12, 11, .98)); }
.admin-visitor-history > p { max-width: 680px; margin: 10px 0 0; color: #635e58; font-size: 7px; line-height: 1.5; }
.admin-visitor-history .admin-card-head .admin-button { min-height: 36px; }
.admin-visitor-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 17px; }
.admin-visitor-summary > span { display: grid; min-height: 76px; padding: 12px 14px; border: 1px solid var(--soft); border-radius: 8px; background: rgba(255, 255, 255, .014); }
.admin-visitor-summary small { color: #5d5852; font-size: 6px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.admin-visitor-summary b { align-self: end; color: #c4bdb4; font-size: 22px; line-height: 1; letter-spacing: -.035em; }
.admin-visitor-toolbar { grid-template-columns: minmax(170px, 1fr) 145px 145px auto; margin-top: 8px; }
.admin-visitor-table-card { min-height: 300px; margin-top: 8px; }
.admin-visitor-table { min-width: 760px; }
.admin-visitor-table th:first-child,
.admin-visitor-table td:first-child { width: 20%; }
.admin-visitor-table th:nth-child(2),
.admin-visitor-table td:nth-child(2) { width: 30%; }
.admin-visitor-table th:nth-child(3),
.admin-visitor-table td:nth-child(3),
.admin-visitor-table th:nth-child(4),
.admin-visitor-table td:nth-child(4) { width: 15%; }
.admin-visitor-table th:last-child,
.admin-visitor-table td:last-child { width: 180px; padding-right: 18px; text-align: left; }
.admin-visitor-day,
.admin-visitor-updated { color: #777068 !important; font: 700 7px/1.4 Consolas, monospace; }
.admin-visitor-value { color: #b7b0a7 !important; font: 760 10px/1 Consolas, monospace; }
.admin-visitor-country { display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: center; gap: 10px; }
.admin-visitor-country > i { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 7px; font-style: normal; font-size: 15px; }
.admin-visitor-country > span { display: grid; min-width: 0; gap: 4px; }
.admin-visitor-country b { overflow: hidden; color: #aaa39a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-visitor-country small { color: #59544f; font: 700 6px/1 Consolas, monospace; }
.admin-inline-state { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 125px; color: #5d5852; font-size: 7px; text-align: center; }
.admin-inline-state > i { color: #71675a; font-style: normal; font-size: 15px; }

.admin-check-list { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.admin-check-list li { display: grid; grid-template-columns: 27px 1fr; gap: 10px; align-items: center; padding: 10px; border: 1px solid rgba(255, 255, 255, .045); border-radius: 8px; background: rgba(255, 255, 255, .016); }
.admin-check-list li > i { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(185, 233, 109, .13); border-radius: 50%; color: #9bc86c; font-style: normal; font-size: 8px; }
.admin-check-list li > span { display: grid; gap: 4px; }
.admin-check-list b { color: #979188; font-size: 7px; }
.admin-check-list small { color: #57534e; font-size: 6px; line-height: 1.4; }

.admin-recent-card { margin-top: 12px; }
.admin-event-list { display: grid; margin-top: 18px; border-top: 1px solid var(--line); }
.admin-event { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 62px; border-bottom: 1px solid var(--soft); }
.admin-event > i { width: 6px; height: 6px; border-radius: 50%; background: #817a72; }
.admin-event.is-security > i { background: var(--red); box-shadow: 0 0 8px rgba(212, 47, 63, .45); }
.admin-event.is-success > i { background: var(--green); box-shadow: 0 0 8px rgba(185, 233, 109, .4); }
.admin-event > span { display: grid; min-width: 0; gap: 5px; }
.admin-event b { overflow: hidden; color: #a9a299; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-event small { overflow: hidden; color: #5d5852; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.admin-event time { color: #625d57; font: 700 7px/1 monospace; }

.admin-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 180px auto; gap: 8px; margin-top: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(17, 16, 15, .92); }
.admin-user-toolbar { grid-template-columns: minmax(240px, 1fr) auto; }
.admin-search-field,
.admin-select-field { position: relative; display: block; }
.admin-date-field { position: relative; display: block; }
.admin-date-field > span { position: absolute; z-index: 1; top: 7px; left: 11px; color: #5d5852; font-size: 5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.admin-search-field > i { position: absolute; top: 50%; left: 13px; color: #625d57; font-style: normal; font-size: 11px; transform: translateY(-50%); }
.admin-search-field input,
.admin-select-field select,
.admin-date-field input,
.admin-form-grid input,
.admin-form-grid select { width: 100%; height: 43px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #12110f; color: #c8c2b9; font-size: 9px; transition: border-color .2s, box-shadow .2s; }
.admin-search-field input { padding: 0 13px 0 39px; }
.admin-select-field select { padding: 0 31px 0 12px; }
.admin-date-field input { padding: 14px 10px 0; color-scheme: dark; }
.admin-search-field input::placeholder,
.admin-form-grid input::placeholder { color: #55504a; }
.admin-search-field input:focus,
.admin-select-field select:focus,
.admin-date-field input:focus,
.admin-form-grid input:focus,
.admin-form-grid select:focus { border-color: rgba(239, 191, 88, .38); box-shadow: 0 0 0 4px rgba(239, 191, 88, .05); }

.admin-table-card { position: relative; min-height: 330px; margin-top: 12px; overflow: hidden; }
.admin-table-meta { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 17px; border-bottom: 1px solid var(--line); color: #68625c; font-size: 7px; }
.admin-table-meta b { color: #aaa39a; }
.admin-table-meta small { color: #6c665f; }
.admin-table-scroll { overflow-x: auto; scrollbar-width: thin; }
.admin-table { width: 100%; min-width: 820px; border-collapse: collapse; table-layout: fixed; }
.admin-table th { height: 39px; padding: 0 13px; border-bottom: 1px solid var(--line); color: #514d48; font-size: 6px; font-weight: 820; letter-spacing: .11em; text-align: left; text-transform: uppercase; }
.admin-table td { height: 67px; padding: 10px 13px; border-bottom: 1px solid var(--soft); color: #8d877f; font-size: 8px; vertical-align: middle; }
.admin-table tbody tr { transition: background .18s; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, .018); }
.admin-table th:first-child,
.admin-table td:first-child { width: 26%; padding-left: 18px; }
.admin-table th:last-child,
.admin-table td:last-child { width: 70px; padding-right: 18px; text-align: right; }
.admin-table-identity { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; }
.admin-table-avatar { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(239, 191, 88, .16); border-radius: 8px; background: rgba(239, 191, 88, .045); color: #c99d50; font-size: 9px; font-weight: 830; text-transform: uppercase; }
.admin-table-identity > span { display: grid; min-width: 0; gap: 4px; }
.admin-table-identity b { overflow: hidden; color: #b5aea5; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-table-identity small,
.admin-cell-stack small { overflow: hidden; color: #58534e; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.admin-cell-stack { display: grid; gap: 4px; }
.admin-cell-stack b { color: #969087; font-size: 8px; }
.admin-cell-stack .admin-code-audience { justify-self: start; min-height: 19px; padding-inline: 6px; font-size: 5px; }
.admin-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 999px; background: rgba(255, 255, 255, .02); color: #817b74; font-size: 6px; font-weight: 780; text-transform: uppercase; }
.admin-pill > i { width: 4px; height: 4px; border-radius: 50%; background: #746e67; }
.admin-pill.is-active { border-color: rgba(185, 233, 109, .12); background: rgba(185, 233, 109, .025); color: #8da76f; }
.admin-pill.is-active > i { background: var(--green); box-shadow: 0 0 7px rgba(185, 233, 109, .45); }
.admin-pill.is-warn { border-color: rgba(239, 191, 88, .14); background: rgba(239, 191, 88, .035); color: #a68142; }
.admin-pill.is-warn > i { background: var(--gold); }
.admin-pill.is-danger { border-color: rgba(221, 69, 84, .16); background: rgba(221, 69, 84, .035); color: #b96d77; }
.admin-pill.is-danger > i { background: #dd4554; }
.admin-row-action { display: grid; place-items: center; width: 31px; height: 31px; margin-left: auto; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, .02); color: #7d766f; cursor: pointer; }
.admin-row-action:hover:not(:disabled) { border-color: rgba(239, 191, 88, .28); color: var(--gold); }
.admin-row-action.is-danger:hover:not(:disabled) { border-color: rgba(221, 69, 84, .35); color: #e38893; }
.admin-row-action:disabled { cursor: not-allowed; opacity: .38; }

.admin-table-state { position: absolute; z-index: 3; inset: 49px 0 49px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 25px; background: rgba(13, 12, 11, .94); text-align: center; }
.admin-table-state > i { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: #706a63; font-style: normal; font-size: 14px; }
.admin-table-state > b { color: #918b83; font-size: 9px; }
.admin-table-state > span { max-width: 370px; color: #5e5953; font-size: 7px; line-height: 1.45; }
.admin-table-state > button { border: 0; background: transparent; color: var(--gold); font-size: 7px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.admin-table-state.is-error > i { border-color: rgba(221, 69, 84, .2); color: #d87682; }
.admin-mini-loader { width: 27px; height: 27px; border: 1px solid rgba(255, 255, 255, .09); border-top-color: var(--gold); border-radius: 50%; animation: adminSpin .9s linear infinite; }
.admin-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 11px; min-height: 49px; padding: 0 15px; }
.admin-pagination button { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .02); color: #807a72; cursor: pointer; }
.admin-pagination button:hover:not(:disabled) { border-color: rgba(239, 191, 88, .3); color: var(--gold); }
.admin-pagination button:disabled { cursor: default; opacity: .3; }
.admin-pagination > span { color: #625d57; font-size: 6px; }
.admin-pagination b { color: #918a82; }

.admin-code-layout { display: grid; grid-template-columns: 1fr 310px; gap: 12px; margin-top: 12px; }
.admin-generator { display: grid; gap: 17px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form-grid label { display: grid; gap: 7px; color: #6c665f; font-size: 7px; font-weight: 730; }
.admin-form-grid label.is-wide { grid-column: 1 / -1; }
.admin-form-grid input,
.admin-form-grid select { padding: 0 12px; }
.admin-checkbox { grid-template-columns: 17px 1fr !important; align-items: center; cursor: pointer; }
.admin-checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.admin-checkbox > i { width: 17px; height: 17px; border: 1px solid var(--line); border-radius: 4px; background: #12110f; }
.admin-checkbox input:checked + i { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 4px #12110f; }
.admin-generator-warning,
.admin-dialog-warning { display: grid; grid-template-columns: 27px 1fr; gap: 10px; align-items: center; padding: 11px; border: 1px solid rgba(239, 191, 88, .1); border-radius: 8px; background: rgba(239, 191, 88, .025); }
.admin-generator-warning > i,
.admin-dialog-warning > i { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(239, 191, 88, .17); border-radius: 50%; color: var(--gold); font-style: normal; font-size: 8px; }
.admin-generator-warning p { display: grid; gap: 4px; margin: 0; }
.admin-generator-warning b { color: #a68a55; font-size: 7px; }
.admin-generator-warning span,
.admin-dialog-warning span { color: #665c4a; font-size: 6px; line-height: 1.45; }
.admin-generator > .admin-button { justify-self: start; min-width: 165px; }
.admin-generator-help { margin: -3px 0 0; color: #706a62; font-size: 7px; line-height: 1.55; }
.admin-form-status { min-height: 15px; margin: 0; color: #8bae67; font-size: 7px; line-height: 1.45; }
.admin-form-status.is-error { color: #dc828d; }

.admin-promo-generator { margin-top: 12px; }
.admin-promo-plans { margin: 0; padding: 13px 14px 15px; border: 1px solid var(--line); border-radius: 9px; }
.admin-promo-plans legend { padding: 0 6px; color: #6c665f; font-size: 7px; font-weight: 730; }
.admin-promo-plan-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.admin-promo-plan-options .admin-checkbox { display: grid; min-height: 42px; padding: 0 11px; border: 1px solid var(--soft); border-radius: 7px; background: rgba(255, 255, 255, .014); color: #8c857d; font-size: 7px; }
.admin-promo-toolbar { grid-template-columns: 190px minmax(240px, 1fr) auto; }
.admin-promo-table { min-width: 1080px; }
.admin-promo-table th:first-child,
.admin-promo-table td:first-child { width: 20%; }
.admin-promo-table th:nth-child(2),
.admin-promo-table td:nth-child(2) { width: 9%; }
.admin-promo-table th:nth-child(3),
.admin-promo-table td:nth-child(3) { width: 14%; }
.admin-promo-table th:nth-child(4),
.admin-promo-table td:nth-child(4) { width: 15%; }
.admin-promo-table th:nth-child(5),
.admin-promo-table td:nth-child(5) { width: 19%; }
.admin-promo-table th:nth-child(6),
.admin-promo-table td:nth-child(6) { width: 16%; }
.admin-promo-identity b { color: #c6ad78; font-family: Consolas, monospace; letter-spacing: .045em; }
.admin-promo-discount { color: #a8c57f; font-size: 17px; letter-spacing: -.03em; }
.admin-promo-plan-list { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-promo-plan-list span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .018); color: #858078; font-size: 6px; white-space: nowrap; }
.admin-promo-usage { display: grid; gap: 6px; }
.admin-promo-usage b { color: #a7a097; font-size: 8px; }
.admin-promo-usage small { color: #56514c; font-size: 6px; }
.admin-promo-usage progress { width: 100%; height: 4px; overflow: hidden; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .055); color: var(--gold); }
.admin-promo-usage progress::-webkit-progress-bar { border-radius: inherit; background: rgba(255, 255, 255, .055); }
.admin-promo-usage progress::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, #8d2632, var(--gold)); }
.admin-promo-usage progress::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, #8d2632, var(--gold)); }
.admin-promo-window .admin-pill { justify-self: start; margin-bottom: 2px; }
.admin-promo-dialog .admin-secret code { font-size: clamp(10px, 2.1vw, 15px); }

.admin-code-summary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 25px 0 0; }
.admin-code-summary dl > div { min-height: 91px; padding: 14px; border: 1px solid var(--soft); border-radius: 8px; background: rgba(255, 255, 255, .015); }
.admin-code-summary dt { color: #5e5953; font-size: 6px; text-transform: uppercase; }
.admin-code-summary dd { margin: 14px 0 0; color: #c5beb4; font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.admin-codes-table-card { margin-top: 12px; }

.admin-content-loading { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 260px; margin-top: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(17, 16, 14, .92); }
.admin-content-loading > div { display: grid; gap: 5px; }
.admin-content-loading b { color: #9d968d; font-size: 9px; }
.admin-content-loading span:not(.admin-mini-loader) { color: #5e5953; font-size: 7px; }
.admin-content-lock { position: relative; display: grid; grid-template-columns: 310px 1fr; min-height: 460px; overflow: hidden; margin-top: 12px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(135deg, #11100e, #0d0c0b); }
.admin-content-lock-art { position: relative; display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(circle, rgba(154, 25, 43, .16), transparent 55%), #0b0a09; }
.admin-content-lock-art::before,
.admin-content-lock-art::after { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(239, 191, 88, .1); transform: rotate(45deg); }
.admin-content-lock-art::after { width: 150px; height: 150px; border-color: rgba(255, 255, 255, .055); }
.admin-content-lock-art span { position: relative; z-index: 2; color: rgba(239, 191, 88, .6); font: 74px/1 Georgia, serif; }
.admin-content-lock-art i { position: absolute; z-index: 2; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 19px rgba(212, 47, 63, .8); transform: translate(78px, 80px); }
.admin-content-lock > div:last-child { align-self: center; padding: 48px; }
.admin-content-lock h2 { max-width: 640px; margin: 20px 0 15px; font-size: clamp(31px, 4vw, 52px); line-height: .9; letter-spacing: -.05em; }
.admin-content-lock p { max-width: 650px; margin: 0; color: #7c766f; font-size: 9px; line-height: 1.65; }
.admin-content-lock ul { display: grid; margin: 27px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.admin-content-lock li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 67px; border-bottom: 1px solid var(--soft); }
.admin-content-lock li > i { color: #544f4a; font: 700 6px/1 monospace; }
.admin-content-lock li > span { display: grid; gap: 5px; }
.admin-content-lock li b { color: #989188; font-size: 8px; }
.admin-content-lock li small { color: #5d5852; font-size: 6px; }
.admin-content-lock li em { color: #806941; font-style: normal; font-size: 6px; font-weight: 800; text-transform: uppercase; }
.admin-content-lock .admin-button { margin-top: 24px; }

.admin-site-editor { display: grid; gap: 12px; margin-top: 12px; }
.admin-editor-banner { display: flex; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid rgba(185, 233, 109, .11); border-radius: 10px; background: rgba(185, 233, 109, .023); }
.admin-editor-banner > div { display: grid; gap: 4px; }
.admin-editor-banner b { color: #9da990; font-size: 7px; letter-spacing: .08em; }
.admin-editor-banner > div > span { color: #626b5b; font-size: 6px; line-height: 1.45; }
.admin-site-editor fieldset { min-width: 0; margin: 0; padding: 21px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(145deg, rgba(20, 18, 16, .98), rgba(13, 12, 11, .98)); }
.admin-site-editor fieldset:disabled { opacity: .58; }
.admin-site-editor legend { padding: 0 9px; color: #777068; font-size: 7px; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
.admin-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-editor-grid label { display: grid; gap: 8px; color: #69635c; font-size: 7px; font-weight: 730; }
.admin-editor-grid input,
.admin-editor-grid textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #12110f; color: #c7c0b7; font-size: 9px; line-height: 1.55; transition: border-color .2s, box-shadow .2s; }
.admin-editor-grid input { height: 44px; padding: 0 12px; }
.admin-editor-grid textarea { min-height: 106px; padding: 11px 12px; resize: vertical; }
.admin-editor-grid input::placeholder,
.admin-editor-grid textarea::placeholder { color: #514d48; }
.admin-editor-grid input:focus,
.admin-editor-grid textarea:focus { border-color: rgba(239, 191, 88, .38); box-shadow: 0 0 0 4px rgba(239, 191, 88, .05); }
.admin-editor-toggle { display: inline-grid !important; margin: 0 0 17px; color: #8d867e !important; }
.admin-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 9px 0 2px; }
.admin-editor-actions .admin-form-status { flex: 1; }
.admin-editor-grid input:focus-visible,
.admin-editor-grid textarea:focus-visible { outline: 2px solid rgba(239, 191, 88, .82); outline-offset: 3px; }

.admin-payment-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 12px; }
.admin-payment-summary article { display: grid; min-height: 126px; padding: 17px 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(145deg, rgba(20, 18, 16, .98), rgba(13, 12, 11, .98)); }
.admin-payment-summary span { color: #625c56; font-size: 6px; font-weight: 820; letter-spacing: .11em; text-transform: uppercase; }
.admin-payment-summary strong { align-self: center; color: #e7e1d8; font-size: clamp(24px, 2.7vw, 37px); line-height: 1; letter-spacing: -.045em; }
.admin-payment-summary small { align-self: end; color: #5d5852; font-size: 6px; line-height: 1.4; }
.admin-payment-toolbar { grid-template-columns: 150px 185px minmax(190px, 1fr) 135px 135px auto; }
.admin-payment-table { min-width: 1180px; }
.admin-payment-table th:first-child,
.admin-payment-table td:first-child { width: 18%; }
.admin-payment-table th:nth-child(2),
.admin-payment-table td:nth-child(2) { width: 18%; }
.admin-payment-table th:nth-child(3),
.admin-payment-table td:nth-child(3) { width: 11%; }
.admin-payment-table th:nth-child(4),
.admin-payment-table td:nth-child(4) { width: 12%; }
.admin-payment-table th:nth-child(5),
.admin-payment-table td:nth-child(5) { width: 10%; }
.admin-payment-table th:nth-child(6),
.admin-payment-table td:nth-child(6) { width: 22%; }
.admin-payment-table th:last-child,
.admin-payment-table td:last-child { width: 170px; padding-right: 18px; text-align: left; }
.admin-payment-record b,
.admin-payment-time b { overflow: hidden; font-family: Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.admin-payment-amount b { color: #b8ca91; font-size: 11px; }
.admin-payment-network { color: #b2a477 !important; font: 700 7px/1.45 Consolas, monospace; }
.admin-payment-reference { display: grid; min-width: 0; gap: 5px; }
.admin-payment-reference b,
.admin-payment-reference small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-payment-reference b { color: #aaa299; font: 700 7px/1.4 Consolas, monospace; }
.admin-payment-reference small { color: #59544f; font: 650 6px/1.4 Consolas, monospace; }

.admin-audit-toolbar { grid-template-columns: 220px minmax(220px, 1fr) auto; }
.admin-audit-table th:first-child,
.admin-audit-table td:first-child { width: 160px; }
.admin-audit-table th:nth-child(2) { width: 29%; }
.admin-audit-table th:last-child,
.admin-audit-table td:last-child { width: 120px; text-align: left; }
.admin-audit-detail { display: grid; gap: 4px; }
.admin-audit-detail b { overflow: hidden; color: #a8a198; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-audit-detail small { overflow: hidden; color: #57524d; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.admin-source { color: #65605a; font: 700 7px/1 monospace; }

/* Registered-user support queue */
.admin-ticket-toolbar { grid-template-columns: 180px minmax(240px, 1fr) auto; }
.admin-ticket-table th:first-child,
.admin-ticket-table td:first-child { width: 29%; }
.admin-ticket-table th:nth-child(2),
.admin-ticket-table td:nth-child(2) { width: 24%; }
.admin-ticket-table th:nth-child(3),
.admin-ticket-table td:nth-child(3) { width: 14%; }
.admin-ticket-table th:nth-child(4),
.admin-ticket-table td:nth-child(4) { width: 110px; }
.admin-ticket-table th:nth-child(5),
.admin-ticket-table td:nth-child(5) { width: 145px; }
.admin-dialog.admin-ticket-dialog { width: min(780px, calc(100% - 24px)); }
.admin-dialog-identity.admin-ticket-identity { grid-template-columns: 44px minmax(0, 1fr) auto; }
.admin-ticket-identity > span:last-child {
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: none;
}
.admin-ticket-detail-state {
  position: static;
  inset: auto;
  min-height: 260px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 9, 8, .72);
}
[data-ticket-detail-content] { display: grid; min-width: 0; gap: 14px; }
.admin-ticket-conversation {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 235px;
  max-height: min(390px, 48svh);
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: radial-gradient(circle at 100% 0, rgba(151, 28, 42, .07), transparent 38%), #0b0a09;
  scrollbar-width: thin;
  scrollbar-color: #352f29 transparent;
}
.admin-ticket-message {
  width: min(87%, 610px);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #141210;
}
.admin-ticket-message.is-user { align-self: flex-start; border-color: rgba(151, 28, 42, .2); background: linear-gradient(145deg, rgba(151, 28, 42, .1), rgba(20, 16, 16, .97)); }
.admin-ticket-message.is-admin { align-self: flex-end; border-color: rgba(239, 191, 88, .16); background: linear-gradient(145deg, rgba(239, 191, 88, .065), rgba(20, 18, 16, .97)); }
.admin-ticket-message-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-ticket-message-meta b { color: #a69e94; font-size: 8px; letter-spacing: .07em; }
.admin-ticket-message.is-admin .admin-ticket-message-meta b { color: #d0aa5d; }
.admin-ticket-message-meta time { color: #5e5852; font: 700 7px/1 monospace; }
.admin-ticket-message-body { margin: 9px 0 0; color: #aca59c; font-size: 10px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.admin-ticket-reply { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-ticket-reply > label { display: grid; gap: 8px; color: #6d665f; font-size: 7px; font-weight: 760; }
.admin-ticket-reply textarea {
  width: 100%;
  min-height: 112px;
  padding: 12px 13px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #12110f;
  color: #c8c2b9;
  font-size: 9px;
  line-height: 1.55;
  transition: border-color .2s, box-shadow .2s;
}
.admin-ticket-reply textarea:focus { border-color: rgba(239, 191, 88, .38); box-shadow: 0 0 0 4px rgba(239, 191, 88, .05); }
.admin-ticket-reply .admin-dialog-actions { justify-content: space-between; }

.admin-dialog { width: min(650px, calc(100% - 24px)); max-height: calc(100svh - 28px); padding: 0; overflow: auto; border: 1px solid rgba(255, 255, 255, .14); border-radius: 13px; background: #0e0d0c; color: #eee; box-shadow: 0 55px 130px rgba(0, 0, 0, .82); }
.admin-dialog::backdrop { background: rgba(3, 3, 2, .84); backdrop-filter: blur(12px); }
.admin-dialog[open] { animation: adminDialogIn .25s var(--ease) both; }
@keyframes adminDialogIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.admin-dialog-card { position: relative; display: grid; gap: 18px; margin: 0; padding: 38px 38px 29px; background: radial-gradient(circle at 100% 0, rgba(239, 191, 88, .055), transparent 34%), #0f0e0d; }
.admin-dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .02); color: #7d7770; font-size: 17px; cursor: pointer; }
.admin-dialog-close:hover { border-color: rgba(255, 255, 255, .24); color: #eee; }
.admin-dialog h2 { margin: 0; font-size: 39px; line-height: .9; letter-spacing: -.05em; }
.admin-dialog-card > p:not(.admin-form-status) { margin: -6px 0 0; color: #777169; font-size: 8px; line-height: 1.6; }
.admin-dialog-identity { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .018); }
.admin-dialog-identity > span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(239, 191, 88, .19); border-radius: 8px; background: rgba(239, 191, 88, .055); color: #d1a85a; font-size: 12px; font-weight: 830; }
.admin-dialog-identity > div { display: grid; min-width: 0; gap: 5px; }
.admin-dialog-identity b { overflow: hidden; color: #b7b0a7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-dialog-identity small { color: #5f5a54; font-size: 6px; }
.admin-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 3px; }
.admin-dialog-warning { grid-template-columns: 27px 1fr; }
.admin-user-dialog { width: min(790px, calc(100% - 24px)); }
.admin-device-access { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(239, 191, 88, .12); border-radius: 10px; background: linear-gradient(145deg, rgba(239, 191, 88, .028), rgba(255, 255, 255, .012)); }
.admin-device-access > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.admin-device-access > header > div { display: grid; gap: 5px; }
.admin-device-access > header > div > span { color: #8a7144; font-size: 6px; font-weight: 820; letter-spacing: .14em; }
.admin-device-access h3 { margin: 0; color: #c3bbb1; font-size: 15px; letter-spacing: -.02em; }
.admin-device-state { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 84px; padding: 15px; border: 1px solid var(--soft); border-radius: 8px; color: #716b64; font-size: 7px; }
.admin-device-state.is-error { justify-content: space-between; border-color: rgba(221, 69, 84, .14); color: #bd737d; }
.admin-device-state button { border: 0; background: transparent; color: #d4ae64; font: inherit; cursor: pointer; }
.admin-device-content { display: grid; gap: 13px; }
.admin-device-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; }
.admin-device-facts > div { min-width: 0; padding: 11px; border: 1px solid var(--soft); border-radius: 7px; background: rgba(0, 0, 0, .11); }
.admin-device-facts dt { color: #5e5852; font-size: 6px; text-transform: uppercase; }
.admin-device-facts dd { overflow: hidden; margin: 8px 0 0; color: #a49d94; font: 700 7px/1.35 Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.admin-device-list-block { display: grid; gap: 8px; }
.admin-device-list-head { display: flex; align-items: center; justify-content: space-between; color: #777068; font-size: 7px; }
.admin-device-list-head span { display: grid; place-items: center; min-width: 24px; height: 20px; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; color: #9b948b; font-size: 6px; }
.admin-device-list { display: grid; gap: 6px; max-height: 190px; overflow: auto; }
.admin-device-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 11px; border: 1px solid var(--soft); border-radius: 7px; background: rgba(0, 0, 0, .12); }
.admin-device-item > div { display: grid; min-width: 0; gap: 5px; }
.admin-device-item b { overflow: hidden; color: #aaa39a; font: 700 7px/1.35 Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.admin-device-item small { color: #5f5953; font-size: 6px; line-height: 1.45; }
.admin-device-empty { padding: 13px; border: 1px dashed var(--line); border-radius: 7px; color: #68625c; font-size: 7px; text-align: center; }
.admin-device-policy { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.admin-device-policy > span { display: grid; gap: 5px; padding: 10px 11px; border: 1px solid var(--soft); border-radius: 7px; }
.admin-device-policy b { color: #716a63; font-size: 6px; }
.admin-device-policy small { color: #9d958b; font-size: 7px; }
.admin-device-content > .admin-button { justify-self: end; }
.admin-secrets-dialog { width: min(590px, calc(100% - 24px)); }
.admin-secret-list { display: grid; gap: 7px; max-height: 310px; overflow: auto; }
.admin-secret { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: 51px; padding: 7px 8px 7px 14px; border: 1px solid rgba(239, 191, 88, .13); border-radius: 8px; background: rgba(239, 191, 88, .035); }
.admin-secret code { color: #efd18e; font: 750 10px/1.4 Consolas, monospace; letter-spacing: .08em; overflow-wrap: anywhere; }
.admin-secret button { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .025); color: #817a72; cursor: pointer; }
.admin-secret button:hover { border-color: rgba(239, 191, 88, .28); color: var(--gold); }
.admin-desktop-secret { grid-template-columns: minmax(0, 1fr); min-height: 66px; }
.admin-desktop-secret code { font-size: 11px; text-align: center; user-select: all; }

.admin-toast { position: fixed; z-index: 220; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 9px; max-width: min(390px, calc(100% - 28px)); padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: rgba(14, 13, 12, .94); color: #d8d2c9; font-size: 8px; font-weight: 730; opacity: 0; pointer-events: none; transform: translateY(15px); backdrop-filter: blur(13px); transition: opacity .22s, transform .25s; }
.admin-toast.show { opacity: 1; transform: none; }
.admin-toast > i { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.admin-toast.is-error > i { background: #dd4554; }

.admin-button:focus-visible,
.admin-icon-button:focus-visible,
.admin-signout:focus-visible,
.admin-side-nav a:focus-visible,
.admin-row-action:focus-visible,
.admin-pagination button:focus-visible,
.admin-dialog-close:focus-visible,
.admin-secret button:focus-visible,
.admin-search-field input:focus-visible,
.admin-select-field select:focus-visible,
.admin-date-field input:focus-visible,
.admin-form-grid input:focus-visible,
.admin-form-grid select:focus-visible,
.admin-ticket-reply textarea:focus-visible,
.admin-checkbox input:focus-visible + i {
  outline: 2px solid rgba(239, 191, 88, .82);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .admin-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .admin-page-head,
  .admin-section-head { padding: 33px; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-payment-summary { grid-template-columns: 1fr 1fr; }
  .admin-payment-toolbar { grid-template-columns: 1fr 1fr 1fr; }
  .admin-code-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .admin-main-nav a { padding-inline: 9px; }
}

@media (max-width: 900px) {
  .admin-header { width: calc(100% - 26px); }
  .admin-head-identity { display: none; }
  .admin-page { width: calc(100% - 26px); padding-top: 99px; }
  .admin-shell { display: block; }
  .admin-rail { position: sticky; z-index: 12; top: 75px; display: block; min-height: 0; margin-bottom: 12px; padding: 8px; border-radius: 11px; }
  .admin-workspace,
  .admin-rail-security,
  .admin-signout { display: none; }
  .admin-side-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 0; overflow: visible; }
  .admin-side-nav a { grid-template-columns: 1fr; justify-items: center; gap: 4px; min-height: 48px; padding: 5px; text-align: center; }
  .admin-page-head,
  .admin-section-head { min-height: 240px; }
  .admin-overview-grid { grid-template-columns: 1fr; }
  .admin-payment-toolbar { grid-template-columns: 1fr 1fr; }
  .admin-visitor-toolbar { grid-template-columns: 1fr 1fr; }
  .admin-code-layout { grid-template-columns: 1fr; }
  .admin-code-summary dl { grid-template-columns: repeat(4, 1fr); }
  .admin-code-summary dl > div { min-height: 80px; }
  .admin-content-lock { grid-template-columns: 220px 1fr; }
  .admin-content-lock > div:last-child { padding: 34px; }
}

@media (max-width: 650px) {
  .admin-brand > em { display: none; }
  .admin-page { width: calc(100% - 18px); padding-top: 91px; }
  .admin-boot { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .admin-boot > div { text-align: center; }
  .admin-gate { min-height: calc(100vh - 135px); }
  .admin-gate-mark { width: 88px; height: 88px; }
  .admin-gate-mark span { font-size: 32px; }
  .admin-gate h1 { font-size: 45px; }
  .admin-gate-actions { display: grid; width: 100%; max-width: 310px; }
  .admin-rail { top: 69px; margin-bottom: 9px; }
  .admin-side-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-side-nav a { min-height: 48px; }
  .admin-side-nav a:last-child { grid-column: 2; }
  .admin-side-nav b { font-size: 9px; line-height: 1.2; }
  .admin-page-head,
  .admin-section-head { display: grid; min-height: 295px; padding: 26px 20px; }
  .admin-page-head::before,
  .admin-section-head::before { right: -20px; top: -5px; font-size: 155px; }
  .admin-page-head::after,
  .admin-section-head::after { right: -90px; top: -70px; width: 220px; height: 220px; }
  .admin-page-head h1,
  .admin-section-head h1 { font-size: 44px; }
  .admin-page-head p,
  .admin-section-head p { max-width: 420px; }
  .admin-head-tools { align-self: end; }
  .admin-metrics { grid-template-columns: 1fr; gap: 8px; margin-top: 9px; }
  .admin-metrics article { min-height: 166px; }
  .admin-overview-grid,
  .admin-recent-card,
  .admin-toolbar,
  .admin-table-card,
  .admin-code-layout,
  .admin-codes-table-card,
  .admin-content-lock { margin-top: 9px; }
  .admin-card { padding: 18px 15px; }
  .admin-card-head { align-items: flex-start; }
  .admin-toolbar,
  .admin-audit-toolbar { grid-template-columns: 1fr; padding: 9px; }
  .admin-payment-summary,
  .admin-payment-toolbar,
  .admin-visitor-summary,
  .admin-visitor-toolbar { grid-template-columns: 1fr; }
  .admin-visitor-history { margin-top: 9px; padding: 18px 14px; }
  .admin-country-row { grid-template-columns: minmax(0, 1fr) 52px; }
  .admin-country-row > i { display: none; }
  .admin-geo-attribution { align-items: flex-start; flex-direction: column; }
  .admin-toolbar .admin-button { width: 100%; }
  .admin-code-summary dl { grid-template-columns: 1fr 1fr; }
  .admin-quick-actions { grid-template-columns: 1fr; gap: 9px; margin-top: 9px; }
  .admin-quick-action { min-height: 124px; padding: 18px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid label.is-wide { grid-column: auto; }
  .admin-promo-plan-options { grid-template-columns: 1fr 1fr; }
  .admin-content-lock { display: block; }
  .admin-content-lock-art { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-content-lock > div:last-child { padding: 28px 19px; }
  .admin-content-lock h2 { font-size: 34px; }
  .admin-content-lock li { grid-template-columns: 24px minmax(0, 1fr); padding: 10px 0; }
  .admin-content-lock li em { grid-column: 2; }
  .admin-content-loading { min-height: 220px; padding: 24px; }
  .admin-site-editor fieldset { padding: 18px 14px; }
  .admin-editor-grid { grid-template-columns: 1fr; }
  .admin-editor-banner { align-items: flex-start; }
  .admin-editor-actions { display: grid; }
  .admin-editor-actions .admin-button { width: 100%; }
  .admin-dialog-card { padding: 38px 19px 23px; }
  .admin-dialog h2 { font-size: 34px; }
  .admin-dialog-identity.admin-ticket-identity { grid-template-columns: 44px minmax(0, 1fr); }
  .admin-ticket-identity > span:last-child { grid-column: 2; justify-self: start; }
  .admin-ticket-conversation { max-height: 55svh; padding: 12px; }
  .admin-ticket-message { width: 95%; padding: 12px; }
  .admin-ticket-reply .admin-dialog-actions { justify-content: stretch; }
  .admin-device-access { padding: 14px; }
  .admin-device-facts { grid-template-columns: 1fr 1fr; }
  .admin-device-policy { grid-template-columns: 1fr; }
  .admin-device-content > .admin-button { justify-self: stretch; width: 100%; }
  .admin-dialog-actions { display: grid; }
  .admin-dialog-actions .admin-button { width: 100%; }
  .admin-toast { right: 9px; bottom: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-loader::after,
  .admin-mini-loader,
  .admin-icon-button.is-spinning { animation: none; }
  .admin-view,
  .admin-dialog[open] { animation: none; }
}
