:root {
  --bg-deep: #060913;
  --bg-surface: #0b1020;
  --bg-elevated: rgba(15, 22, 39, 0.9);
  --bg-card: rgba(13, 19, 34, 0.94);
  --glass: rgba(255, 255, 255, 0.04);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.24);

  --text: #f1f5f9;
  --soft: #94a3b8;
  --muted: #64748b;

  --indigo: #6366f1;
  --indigo-bright: #818cf8;
  --indigo-soft: #e0e7ff;
  --indigo-deep: #4f46e5;

  --cyan: #06b6d4;
  --cyan-bright: #38bdf8;
  --cyan-soft: #e0f2fe;

  --crimson: #f43f5e;
  --crimson-deep: #e11d48;
  --emerald: #10b981;
  --emerald-bright: #34d399;

  --vip: #fbbf24;
  --good: #10b981;
  --free: #94a3b8;
  --danger: #f43f5e;
  --ok: #10b981;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --shadow-main: 0 22px 64px rgba(2, 6, 23, 0.65);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  color: var(--text);
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-deep);
  line-height: 1.5;
}

body::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

button, input, select, textarea, a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

button {
  appearance: none;
  -webkit-appearance: none;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* ===== Ambient Indigo & Sapphire Background ===== */
.cyber-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(99, 102, 241, 0.14), transparent 34rem),
    radial-gradient(circle at 86% 14%, rgba(56, 189, 248, 0.11), transparent 32rem),
    radial-gradient(circle at 50% 95%, rgba(16, 185, 129, 0.08), transparent 38rem),
    linear-gradient(180deg, #050811 0%, #0a1020 52%, #060913 100%);
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.65;
}

.cyberGridOverlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 28%, #000 35%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 28%, #000 35%, transparent 82%);
  pointer-events: none;
}

.ambientGlow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(85px);
  opacity: 0.17;
}

.glow-indigo {
  width: 25rem;
  height: 25rem;
  left: -8rem;
  top: 6%;
  background: var(--indigo);
}

.glow-cyan {
  width: 23rem;
  height: 23rem;
  right: -7rem;
  top: 32%;
  background: var(--cyan);
}

.glow-emerald {
  width: 24rem;
  height: 24rem;
  left: 34%;
  bottom: -11rem;
  background: var(--emerald);
}

/* ===== Sticky Navbar & Branch Switcher ===== */
.commandNavbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: 100%;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 11, 22, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navInner {
  width: min(1240px, calc(100% - 28px));
  max-width: 100%;
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  max-width: 100%;
}

.brandText {
  min-width: 0;
  flex: 1 1 auto;
}

.brandMark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.18);
  flex: 0 0 auto;
  overflow: hidden;
}

.brandMark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.brandTitleRow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand strong {
  font-weight: 850;
  font-size: 18.5px;
  letter-spacing: -0.025em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vaultVersion {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2.5px 7px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.32);
  color: var(--indigo-soft);
  white-space: nowrap;
  flex: 0 0 auto;
}

.brand small {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Branch Switcher Pills in Navbar */
.branchSwitchNav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.16);
  max-width: 100%;
}

.branchNavBtn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
  min-width: 0;
}

.branchNavBtn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.branchNavBtn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.branchNavBtn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(56, 189, 248, 0.16));
  border-color: rgba(129, 140, 248, 0.42);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.18);
}

.branchNavBtn.active svg {
  color: var(--cyan-bright);
}

.navHotBadge {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 850;
  padding: 1.5px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.topActions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.topActionsGroup {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

.navActionBtn,
.topGroupBtn,
.adminLoginBtn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.navActionBtn,
.topGroupBtn {
  color: #e2e8f0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.navActionBtn svg,
.topGroupBtn svg {
  width: 16px;
  height: 16px;
  color: var(--cyan-bright);
  stroke: currentColor;
  flex-shrink: 0;
}

.navActionBtn:hover,
.topGroupBtn:hover {
  border-color: rgba(129, 140, 248, 0.42);
  background: rgba(99, 102, 241, 0.11);
  color: #fff;
  transform: translateY(-1px);
}

.adminLoginBtn {
  border: 1px solid rgba(129, 140, 248, 0.32);
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-soft);
}

.adminLoginBtn svg {
  width: 16px;
  height: 16px;
  color: var(--indigo-bright);
  stroke: currentColor;
  flex-shrink: 0;
}

.adminLoginBtn:hover,
.adminLoginBtn.active {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.14);
  color: #d1fae5;
  transform: translateY(-1px);
}

.adminLoginBtn.active svg {
  color: var(--emerald-bright);
}

/* ===== Main Container & Bento Deck ===== */
.wrap {
  width: min(1240px, calc(100% - 28px));
  max-width: 100%;
  margin: 0 auto;
  padding: 22px 0 42px;
}

.bentoDeck {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.heroCard {
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(129, 140, 248, 0.22);
  background:
    radial-gradient(circle at 88% 12%, rgba(99, 102, 241, 0.16), transparent 22rem),
    radial-gradient(circle at 12% 90%, rgba(6, 182, 212, 0.1), transparent 22rem),
    linear-gradient(160deg, rgba(16, 23, 42, 0.95), rgba(9, 13, 25, 0.98));
  box-shadow: var(--shadow-main), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 26px 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.terminalTopBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.terminalDots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.terminalDots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #f43f5e; }
.dot.amber { background: #38bdf8; }
.dot.green { background: #10b981; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 8px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kickerLine {
  color: var(--cyan-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 900;
}

#typingText {
  background: linear-gradient(100deg, #ffffff 0%, #e0e7ff 42%, #38bdf8 80%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#typingCursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  vertical-align: -0.08em;
  margin-left: 4px;
  background: var(--cyan-bright);
  animation: blinkCursor 0.9s steps(2, start) infinite;
}

@keyframes blinkCursor {
  to { visibility: hidden; }
}

.subtitle {
  max-width: 590px;
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.65;
}

.subtitle b {
  color: #fff;
}

.actionRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.randomBtn,
.groupBtn {
  position: relative;
  min-height: 50px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.randomBtn {
  min-width: 210px;
  padding: 0 22px;
  border: 1px solid rgba(165, 180, 252, 0.42);
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 55%, #0284c7 100%);
  color: #fff;
  box-shadow:
    0 12px 30px rgba(79, 70, 229, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.randomBtn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(79, 70, 229, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: brightness(1.06);
}

.randomBtn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.randomIcon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.randomIcon.loading {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.groupBtn {
  padding: 0 18px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.groupBtn svg {
  width: 18px;
  height: 18px;
  color: var(--cyan-bright);
}

.groupBtn:hover {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(99, 102, 241, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.telemetryFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.quickHint {
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
}

.quickHint b {
  color: var(--indigo-soft);
}

.inlineIpaLinkBtn {
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan-soft);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.inlineIpaLinkBtn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(56, 189, 248, 0.55);
  color: #fff;
}

.error {
  display: none;
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 13px;
  border: 1px solid rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.11);
  color: #fecdd3;
  font-size: 13.5px;
  font-weight: 700;
}

/* ===== Right Bento Tier Classification ===== */
.qualityPanel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(16, 23, 42, 0.92), rgba(9, 13, 25, 0.96));
  box-shadow: var(--shadow-main);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.qualityHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.panelKicker {
  display: block;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.14em;
  color: var(--indigo-bright);
  text-transform: uppercase;
}

.qualityTitleBlock b {
  display: block;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.025em;
  margin-top: 3px;
}

.qualityHead small {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.qualityStack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qItem {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 14px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.qItem:hover {
  transform: translateX(3px);
}

.qIconWrap {
  flex: 0 0 auto;
}

.qIcon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.qIcon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qContent {
  min-width: 0;
  flex: 1;
}

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

.qBadge {
  font-weight: 850;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.qRuleTag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
}

.qItem p {
  margin: 0;
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.48;
}

.qItem.vip {
  border-color: rgba(251, 191, 36, 0.34);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.09), rgba(99, 102, 241, 0.05));
}

.qItem.vip .qIcon {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.45);
}

.qItem.vip .qBadge { color: #fde68a; }
.qItem.vip .qRuleTag {
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.qItem.good {
  border-color: rgba(16, 185, 129, 0.32);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(6, 182, 212, 0.04));
}

.qItem.good .qIcon {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.38);
}

.qItem.good .qBadge { color: #6ee7b7; }
.qItem.good .qRuleTag {
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ===== Admin Control Console (2 Tabs: Account & IPA) ===== */
.adminPanel {
  margin-bottom: 22px;
  border: 1px solid rgba(129, 140, 248, 0.32);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(16, 23, 44, 0.96), rgba(9, 13, 25, 0.98));
  box-shadow: var(--shadow-main);
  padding: 22px 24px;
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.adminPanel.show {
  display: block;
  animation: panelFadeIn 0.25s ease forwards;
}

@keyframes panelFadeIn {
  to { opacity: 1; transform: none; }
}

.adminPanelHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.adminKicker {
  display: block;
  color: var(--indigo-bright);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.adminPanelHead h2 {
  margin: 4px 0 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.adminPanelHead p {
  margin: 5px 0 0;
  color: var(--soft);
  font-size: 13px;
}

.adminPanelActions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.adminStatus,
.secureBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.1);
  color: #a7f3d0;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.adminStatus i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 10px var(--emerald-bright);
}

.secureBadge {
  border-color: rgba(129, 140, 248, 0.3);
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.adminGhostBtn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}

.adminGhostBtn:hover {
  border-color: rgba(244, 63, 94, 0.45);
  background: rgba(244, 63, 94, 0.12);
  color: #ffe4e6;
}

/* Admin Sub-Tab Switcher */
.adminModeSwitch {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.adminSwitchBtn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  font-size: 13px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.adminSwitchBtn svg {
  width: 16px;
  height: 16px;
}

.adminSwitchBtn.active {
  border-color: rgba(129, 140, 248, 0.48);
  background: rgba(99, 102, 241, 0.18);
  color: #fff;
}

.adminGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.adminModule {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 18px;
  padding: 18px;
}

.moduleTitle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.moduleTitle b {
  display: block;
  font-size: 16px;
}

.moduleTitle span {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: 12px;
}

.moduleTitle strong {
  color: var(--indigo-soft);
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.28);
  white-space: nowrap;
}

.adminControls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}

.field > span {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 6px;
}

.field input,
.field select,
.field textarea,
.adminLoginForm input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  background: rgba(4, 7, 15, 0.55);
  color: #fff;
  border-radius: 11px;
  padding: 0 12px;
  outline: 0;
  font-weight: 600;
  font-size: 13.5px;
}

.field textarea {
  padding: 10px 12px;
  min-height: 78px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.adminLoginForm input:focus {
  border-color: var(--indigo-bright);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.fieldInline {
  display: flex;
  gap: 6px;
}

.miniBtn,
.miniUploadBtn {
  border: 1px solid rgba(129, 140, 248, 0.32);
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-soft);
  border-radius: 10px;
  padding: 0 12px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.miniBtn:hover,
.miniUploadBtn:hover {
  background: rgba(99, 102, 241, 0.22);
  color: #fff;
}

.adminPrimaryBtn {
  min-height: 42px;
  border: 1px solid rgba(165, 180, 252, 0.35);
  border-radius: 11px;
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  padding: 0 16px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.25);
  transition: 0.18s ease;
  white-space: nowrap;
}

.adminPrimaryBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.adminPrimaryBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.moduleNote {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.dropzone {
  min-height: 118px;
  margin-top: 14px;
  border: 1px dashed rgba(129, 140, 248, 0.35);
  border-radius: 15px;
  background: rgba(99, 102, 241, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  cursor: pointer;
  transition: 0.18s ease;
}

.dropzone:hover {
  border-color: var(--indigo-bright);
  background: rgba(99, 102, 241, 0.08);
}

.dropzone input { display: none; }

.dropIcon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: rgba(99, 102, 241, 0.14);
  color: var(--indigo-bright);
}

.dropIcon svg { width: 19px; height: 19px; }
.dropzone strong { font-size: 13px; }
.dropzone span:not(.dropIcon) { color: var(--soft); font-size: 11.5px; }
.uploadModule .adminPrimaryBtn { width: 100%; margin-top: 10px; }

/* Admin IPA Management Styles */
.ipaAdminFormGrid {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 14px;
}

.ipaAdminRow2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ipaUploadInline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.ipaUploadProgressBox {
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(10, 16, 28, 0.88);
  border: 1px solid rgba(0, 243, 255, 0.28);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.ipaProgressHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  margin-bottom: 7px;
  color: #e2e8f0;
}

.ipaProgressFileName {
  font-weight: 600;
  max-width: 75%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--term-font, monospace);
  color: #38bdf8;
}

.ipaProgressPercent {
  font-weight: 700;
  color: #00f3ff;
  font-family: var(--term-font, monospace);
}

.ipaProgressBarTrack {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.ipaProgressBarFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #00f3ff, #10b981);
  border-radius: 99px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.ipaProgressFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
  font-family: var(--term-font, monospace);
}

.ipaProgressStatus {
  color: #34d399;
}

.ipaAdminImgList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ipaAdminImgItem {
  position: relative;
  width: 78px;
  height: 52px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #090d16;
}

.ipaAdminImgItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ipaAdminImgRemove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: rgba(244, 63, 94, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ipaKeyCreateBox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.ipaKeyListHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 750;
  color: var(--soft);
}

/* ===== REDESIGNED KEY ADMIN VAULT (DESKTOP & MOBILE) ===== */
.akCreateContainer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.akFormGroup {
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(0, 243, 255, 0.14);
  border-radius: 12px;
  padding: 16px 18px;
  backdrop-filter: blur(8px);
}

.akGroupHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.akGroupStep {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(0, 243, 255, 0.12);
  border: 1px solid rgba(0, 243, 255, 0.35);
  color: #00f3ff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--term-font, monospace);
}

.akGroupHeader strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.akGroupHeader small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
}

.akFormGrid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.akFormGrid3 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 820px) {
  .akFormGrid2,
  .akFormGrid3 {
    grid-template-columns: 1fr;
  }
}

.akField {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.akFieldLabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #94a3b8;
  text-transform: uppercase;
}

.akInputIconWrap {
  position: relative;
  display: flex;
  align-items: center;
}

.akInputIconWrap svg {
  position: absolute;
  left: 12px;
  color: #64748b;
  pointer-events: none;
}

.akInputIconWrap input {
  padding-left: 36px !important;
}

.akInput, .akSelect, .akInputIconWrap input {
  width: 100%;
  box-sizing: border-box;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e2e8f0;
  padding: 10px 12px;
  font-size: 13px;
  transition: all 0.2s;
}

.akInput:focus, .akSelect:focus, .akInputIconWrap input:focus {
  border-color: #00f3ff;
  outline: none;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.25);
}

.akDurationGroup {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

.akDurationGroup input {
  box-sizing: border-box;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e2e8f0;
  padding: 10px 12px;
  font-size: 13px;
}

.akFeatureCard {
  background: rgba(0, 243, 255, 0.03);
  border: 1px solid rgba(0, 243, 255, 0.22);
}

.akFeatureToggleLabel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.akFeatureInfo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.akFeatureIcon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: #00f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.akFeatureTitle {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #00f3ff;
}

.akFeatureSub {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.4;
}

.akCheckbox {
  width: 22px;
  height: 22px;
  accent-color: #00f3ff;
  cursor: pointer;
  flex-shrink: 0;
}

.akSubmitBtn {
  background: linear-gradient(135deg, #00f3ff, #0284c7);
  border: none;
  border-radius: 10px;
  color: #020617;
  font-size: 14px;
  font-weight: 800;
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.35);
  transition: all 0.2s ease;
}

.akSubmitBtn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.55);
}

.akSubmitBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== VAULT KEY CARDS LIST ===== */
.ipaKeysList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 4px;
}

.ipaKeyItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(4, 9, 20, 0.65);
  border: 1px solid rgba(0, 243, 255, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}
.ipaKeyItem:hover {
  border-color: rgba(0, 243, 255, 0.4);
  background: rgba(6, 14, 28, 0.85);
}
.ipaKeyCodeBtn {
  font-family: var(--term-font, monospace);
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.25);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.ipaKeyCodeBtn:hover {
  border-color: #00f3ff;
  color: #00f3ff;
}
.ipaKeyMeta {
  flex: 1;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ipaKeyMeta b {
  color: #e2e8f0;
}
.ipaKeyDelBtn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.ipaKeyDelBtn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

.akVaultCard {
  background: rgba(4, 9, 20, 0.65);
  border: 1px solid rgba(0, 243, 255, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.akVaultCard:hover {
  border-color: rgba(0, 243, 255, 0.4);
  box-shadow: 0 6px 24px rgba(0, 243, 255, 0.12);
}

.akVaultCard.expired {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(20, 5, 10, 0.5);
  opacity: 0.75;
}

.akVaultCard.isVipCard {
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.08);
}

.akVaultCard.isVipCard:hover {
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 6px 25px rgba(251, 191, 36, 0.16);
}

.akVaultTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.akCodeArea {
  display: flex;
  align-items: center;
  gap: 8px;
}

.akPulseDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.akPulseDot.green {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.akPulseDot.red {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}
.akPulseDot.amber {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.akCode {
  font-family: var(--term-font, monospace);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  cursor: pointer;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.15s;
}

.akCode:hover {
  border-color: #00f3ff;
  color: #00f3ff;
}

.akCopyIconBtn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.akCopyIconBtn:hover {
  background: rgba(0, 243, 255, 0.2);
  color: #00f3ff;
  border-color: rgba(0, 243, 255, 0.4);
}

.akBadgeTags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.akTag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: var(--term-font, monospace);
  text-transform: uppercase;
}

.akTag.tagDynamic {
  background: rgba(0, 243, 255, 0.12);
  color: #00f3ff;
  border: 1px solid rgba(0, 243, 255, 0.35);
}
.akTag.tagStatic {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.akTag.tagV2On {
  background: rgba(0, 255, 157, 0.14);
  color: #00ff9d;
  border: 1px solid rgba(0, 255, 157, 0.4);
}
.akTag.tagV2Off {
  background: rgba(255, 255, 255, 0.04);
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.akTag.tagActive {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.akTag.tagExpired {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Metrics Grid: 4 clean tiles */
.akMetricsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .akMetricsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.akMetricItem {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.akMetricItem .mLabel {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  font-family: var(--term-font, monospace);
}

.akMetricItem .mVal {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.akMetricItem .mVal small {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

.akMetricItem .mSub {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.akMetricItem .mCyan { color: #00f3ff; }
.akMetricItem .mGreen { color: #00ff9d; }
.akMetricItem .mRed { color: #f87171; }
.akMetricItem .mPlain { color: #cbd5e1; }

.akNoteRow {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.akNoteRow svg { color: #64748b; flex-shrink: 0; }
.akNoteRow b { color: #cbd5e1; }

.akBottomActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.akActionBtn {
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.akActionBtn.akBtnV2 {
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: #00f3ff;
}
.akActionBtn.akBtnV2:hover {
  background: rgba(0, 243, 255, 0.2);
}
.akActionBtn.akBtnV2.active {
  background: rgba(255, 184, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.35);
  color: #ffb800;
}
.akActionBtn.akBtnV2.active:hover {
  background: rgba(255, 184, 0, 0.2);
}

.akActionBtn.akBtnReset {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}
.akActionBtn.akBtnReset:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.akActionBtn.akBtnDel {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  margin-left: auto;
}
.akActionBtn.akBtnDel:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

.akActionBtn.akBtnVip {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}
.akActionBtn.akBtnVip:hover {
  background: rgba(251, 191, 36, 0.2);
}
.akActionBtn.akBtnVip.active {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

/* Key Permissions Breakdown Card in index.html */
.adminKeyPermsBox {
  margin-top: 14px;
}
.keyPermsInner {
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(4, 9, 20, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 243, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.keyPermsInner.vip {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(18, 14, 4, 0.75);
}
.keyPermsInner.standard {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(4, 12, 24, 0.75);
}
.keyPermsInner.root {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(18, 6, 28, 0.75);
}
.keyPermsHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.keyPermsHead .roleBadge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: var(--term-font, monospace);
}
.keyPermsHead .roleBadge.vip {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
}
.keyPermsHead .roleBadge.standard {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.keyPermsHead .roleBadge.root {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.5);
}
.keyPermsCode {
  font-family: var(--term-font, monospace);
  font-size: 11px;
  color: #94a3b8;
}
.keyPermsCode b {
  color: #fff;
  letter-spacing: 0.5px;
}
.keyPermsGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}
@media (max-width: 640px) {
  .keyPermsGrid {
    grid-template-columns: 1fr;
  }
}
.permItem {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #cbd5e1;
}
.permItem .pDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.permItem.ok .pDot {
  background: #00ff9d;
  box-shadow: 0 0 6px #00ff9d;
}
.permItem.denied .pDot {
  background: #f87171;
  box-shadow: 0 0 6px #f87171;
}
.permItem.denied {
  opacity: 0.75;
}
.permItem.info .pDot {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}
.keyPermNote {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.5;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.adminMessage {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  font-weight: 700;
}

.adminMessage.success {
  display: block;
  border-color: rgba(16, 185, 129, 0.32);
  background: rgba(16, 185, 129, 0.1);
  color: #a7f3d0;
}

.adminMessage.error {
  display: block;
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.1);
  color: #fecdd3;
}

.adminMessage.info {
  display: block;
  border-color: rgba(129, 140, 248, 0.32);
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo-soft);
}

/* ===== Results Header & Redesigned Account Cards ===== */
.resultHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 14px;
  padding: 0 4px;
}

.sectionEyebrow {
  display: block;
  color: var(--indigo-bright);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resultHead b {
  display: block;
  margin-top: 3px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.resultHead small {
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
}

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

/* ===== Sleek Redesigned Account Card ===== */
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: linear-gradient(175deg, rgba(16, 23, 41, 0.95), rgba(10, 14, 26, 0.98));
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.5);
  opacity: 0;
  transform: translateY(10px);
  animation: cardIn 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(129, 140, 248, 0.36);
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.card.good {
  border-color: rgba(16, 185, 129, 0.42) !important;
  background:
    radial-gradient(circle at 15% 0%, rgba(16, 185, 129, 0.13), transparent 16rem),
    linear-gradient(175deg, rgba(13, 28, 38, 0.96), rgba(9, 14, 24, 0.99)) !important;
}

.card.vip {
  border-color: rgba(251, 191, 36, 0.52) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(251, 191, 36, 0.16), transparent 16rem),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.12), transparent 16rem),
    linear-gradient(175deg, rgba(26, 23, 38, 0.96), rgba(10, 12, 24, 0.99)) !important;
}

.cardTop {
  position: relative;
  z-index: 2;
  padding: 16px 18px 15px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.cardTopHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 9px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.09);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.badge .tierIcon {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
}

.badge svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge.good {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #a7f3d0 !important;
  border-color: rgba(16, 185, 129, 0.38) !important;
}

.badge.vip {
  background: rgba(251, 191, 36, 0.16) !important;
  color: #fef08a !important;
  border-color: rgba(251, 191, 36, 0.48) !important;
}

.deleteAccBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 9px;
  border: 1px solid rgba(244, 63, 94, 0.32);
  background: rgba(244, 63, 94, 0.1);
  color: #fecdd3;
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  transition: 0.18s ease;
}

.deleteAccBtn:hover {
  border-color: rgba(244, 63, 94, 0.65);
  background: rgba(244, 63, 94, 0.22);
  color: #fff;
}

.game {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.value {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.value.rank {
  font-size: 12.5px;
  color: var(--cyan-soft);
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  white-space: nowrap;
}

/* Credentials Box with Quick Copy */
.login {
  margin-top: 10px;
  border: 1px solid rgba(129, 140, 248, 0.22);
  background: rgba(6, 9, 19, 0.72);
  border-radius: 12px;
  padding: 10px 13px;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.smallBtn {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  padding: 8.5px 11px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12.5px;
  transition: all 0.16s ease;
  text-align: center;
}

.smallBtn:hover {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(99, 102, 241, 0.14);
  color: #fff;
}

.copyBtn {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(6, 182, 212, 0.15));
  border-color: rgba(129, 140, 248, 0.36);
  color: var(--indigo-soft);
}

.banBtn {
  border-color: rgba(56, 189, 248, 0.26);
  background: rgba(6, 182, 212, 0.08);
  color: var(--cyan-soft);
}

.banBtn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(6, 182, 212, 0.16);
}

.banBtn:disabled,
.tcpBtn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.tcpBtn.lockedBtn {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.05);
  color: #94a3b8;
}

.tcpBtn.lockedBtn:hover {
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-soft);
}

.banCheckBox {
  margin-top: 10px;
}

.banCheckBox:empty {
  display: none;
}

.banCheckBox > div {
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.55;
  border: 1px solid var(--line);
  background: rgba(4, 7, 15, 0.5);
}

.banCheckLoading {
  color: var(--cyan-soft);
  border-color: rgba(56, 189, 248, 0.3) !important;
  background: rgba(6, 182, 212, 0.09) !important;
}

.banCheckClear {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #d1fae5;
  border-color: rgba(16, 185, 129, 0.32) !important;
  background: rgba(16, 185, 129, 0.09) !important;
}

.banCheckClear b { font-size: 12.5px; color: #6ee7b7; }
.banCheckClear span { color: #a7f3d0; }

.banCheckBanned {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #ffe4e6;
  border-color: rgba(244, 63, 94, 0.35) !important;
  background: rgba(244, 63, 94, 0.1) !important;
}

.banCheckBanned b { color: #fda4af; }
.banCheckBanned span { color: #fecdd3; }

.banCheckError {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #fecdd3;
  border-color: rgba(244, 63, 94, 0.28) !important;
  background: rgba(244, 63, 94, 0.08) !important;
}

/* ===== Card Body Stats & Skins ===== */
.cardBody {
  position: relative;
  z-index: 2;
  padding: 15px 18px 18px;
}

.cardBody:empty {
  display: none;
}

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

.stat {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(6, 9, 19, 0.45);
  border-radius: 12px;
  padding: 9px 10px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.stat b {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 16.5px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
  padding: 4.5px 9px;
}

.chip.yes {
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.09);
}

.chip.no {
  color: #fecdd3;
  border-color: rgba(244, 63, 94, 0.24);
  background: rgba(244, 63, 94, 0.08);
}

.skinHighlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(6, 9, 19, 0.4);
  border-radius: 13px;
  padding: 11px 12px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
}

.skinHighlights b {
  color: var(--cyan-bright);
}

.allDetails {
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 13px;
  overflow: hidden;
}

.allDetails summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 13px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.allDetails summary::-webkit-details-marker { display: none; }

.detailsSummaryState {
  flex: 0 0 auto;
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-soft);
  border-radius: 7px;
  padding: 3.5px 9px;
  font-size: 10px;
  font-weight: 800;
}

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

.detailField {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(6, 9, 19, 0.42);
  border-radius: 10px;
  padding: 8px 10px 8px 24px;
}

.detailField::before {
  content: "•";
  position: absolute;
  left: 10px;
  top: 7px;
  color: var(--indigo-bright);
  font-size: 14px;
}

.detailLabel {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.detailValue {
  display: block;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.detailValue.yesValue {
  color: #6ee7b7;
}

/* ===== Focused Card Mode ===== */
.results.focusMode {
  display: block;
}

.results.focusMode .card:not(.cardFocused) {
  display: none;
}

.results.focusMode .card.cardFocused {
  width: 100%;
  max-width: none;
}

.results.focusMode .card.cardFocused .detailGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

mark {
  background: rgba(99, 102, 241, 0.38);
  color: #fff;
  border-radius: 4px;
  padding: 0 4px;
}

/* ===== NHÁNH 2: IPA & TESTFLIGHT STORE LAYOUT ===== */
.ipaStoreLayout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.ipaUnlockPortal {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.ipaShowcaseCard,
.ipaPortalCard {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(129, 140, 248, 0.24);
  background: linear-gradient(165deg, rgba(16, 23, 42, 0.95), rgba(9, 13, 25, 0.98));
  box-shadow: var(--shadow-main);
  padding: 24px;
}

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

.ipaPillBadge {
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(6, 182, 212, 0.18));
  border: 1px solid rgba(129, 140, 248, 0.38);
  color: var(--indigo-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.ipaVersionBadge {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 750;
}

.ipaShowcaseHeader h2 {
  margin: 12px 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.ipaShowcaseDesc {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
  word-break: break-word;
}

.ipaGallerySection {
  margin-top: 16px;
  min-width: 0;
  max-width: 100%;
}

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

.ipaGalleryHead .ipaSectionLabel {
  margin-bottom: 0;
}

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

.ipaGalleryCountBadge {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.34);
  color: var(--indigo-soft);
  font-size: 11px;
  font-weight: 800;
}

.ipaGalleryNavBtn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.16s ease;
}

.ipaGalleryNavBtn svg {
  width: 15px;
  height: 15px;
}

.ipaGalleryNavBtn:hover:not(:disabled) {
  border-color: var(--cyan-bright);
  background: rgba(6, 182, 212, 0.16);
  color: #fff;
}

.ipaGalleryNavBtn:disabled {
  opacity: 0.38;
  cursor: default;
}

.ipaDemoStage {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #070b14;
  aspect-ratio: 16 / 9.4;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
}

.ipaDemoStage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.9), #050811);
  will-change: transform, opacity;
}

@keyframes demoSlideNext {
  0% {
    opacity: 0.24;
    transform: translateX(22px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes demoSlidePrev {
  0% {
    opacity: 0.24;
    transform: translateX(-22px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.ipaDemoStage img.slideNextAnim {
  animation: demoSlideNext 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ipaDemoStage img.slidePrevAnim {
  animation: demoSlidePrev 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ipaCarouselProgress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  display: none;
}

.ipaCarouselBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1 0%, #38bdf8 55%, #10b981 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

@keyframes ipaCarouselProgressAnim {
  from { width: 0%; }
  to { width: 100%; }
}

.ipaCarouselBar.running {
  animation-name: ipaCarouselProgressAnim;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.ipaThumbStrip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  width: 100%;
  max-width: 100%;
}

.ipaThumbStrip:empty {
  display: none;
}

.ipaThumbBtn {
  position: relative;
  width: 86px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(148, 163, 184, 0.22);
  background: #090d16;
  padding: 0;
  cursor: pointer;
  opacity: 0.72;
  transition: 0.18s ease;
  flex: 0 0 auto;
}

.ipaThumbBtn.active,
.ipaThumbBtn:hover {
  opacity: 1;
  border-color: var(--cyan-bright);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.28);
}

.ipaThumbBtn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ipaThumbIndex {
  position: absolute;
  bottom: 3px;
  right: 4px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(6, 9, 19, 0.82);
  color: #e2e8f0;
  font-size: 9.5px;
  font-weight: 800;
}

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

.ipaHighlightItem {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.ipaHiIcon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.ipaHiIcon svg {
  width: 14px;
  height: 14px;
}

.ipaHighlightItem b {
  display: block;
  font-size: 12.5px;
  color: #f1f5f9;
}

.ipaHighlightItem small {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.4;
}

.ipaPortalHeader h3 {
  margin: 4px 0 6px;
  font-size: 21px;
  font-weight: 850;
}

.ipaPortalHeader p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

.ipaLinkStatusList {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
}

.ipaLinkStatusRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(4, 7, 15, 0.45);
}

.ipaLinkStatusLeft {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.ipaStatusIcon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(129, 140, 248, 0.32);
  background: rgba(99, 102, 241, 0.14);
  color: var(--cyan-bright);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.ipaStatusIcon svg {
  width: 18px;
  height: 18px;
}

.ipaLinkStatusLeft b {
  display: block;
  font-size: 13px;
  color: #f1f5f9;
}

.ipaLinkStatusLeft small {
  display: block;
  color: var(--soft);
  font-size: 11.5px;
}

.ipaLockPill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4.5px 9px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  flex: 0 0 auto;
}

.ipaLockPill svg {
  width: 13px;
  height: 13px;
}

.ipaLockPill.unlocked {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.ipaRedeemForm {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ipaRedeemForm label {
  display: block;
  font-size: 12.5px;
  font-weight: 750;
  color: #e2e8f0;
  margin-bottom: 7px;
}

.ipaKeyInputRow {
  display: flex;
  gap: 8px;
}

.ipaKeyInputRow input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(129, 140, 248, 0.32);
  background: rgba(4, 7, 15, 0.65);
  color: #fff;
  padding: 0 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 750;
  text-transform: uppercase;
  outline: 0;
}

.ipaKeyInputRow input:focus {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.ipaRedeemSubmitBtn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(165, 180, 252, 0.4);
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
}

.ipaRedeemMsg {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 700;
}

.ipaRedeemMsg.error {
  display: block;
  border: 1px solid rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.1);
  color: #fecdd3;
}

.ipaRedeemMsg.success {
  display: block;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: #a7f3d0;
}

.ipaUnlockedBox {
  margin-top: 14px;
  padding: 15px;
  border-radius: 15px;
  border: 1px solid rgba(16, 185, 129, 0.38);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
}

.ipaUnlockedHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ipaUnlockedTag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 850;
  color: #6ee7b7;
}

.ipaUnlockedTag svg {
  width: 14px;
  height: 14px;
}

.ipaUnlockedHeader small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a7f3d0;
  font-size: 11.5px;
  font-weight: 700;
}

.ipaUnlockedHint {
  margin: 6px 0 12px;
  color: #e2e8f0;
  font-size: 12.5px;
}

.ipaDownloadBtns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.ipaDownloadBtn {
  min-height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 12px;
  transition: 0.18s ease;
}

.ipaDownloadBtn svg {
  width: 17px;
  height: 17px;
}

.primaryIpaBtn {
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.secondaryTfBtn {
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  color: #fff;
}

.ipaBuyKeyCard {
  margin-top: 18px;
  padding: 15px;
  border-radius: 15px;
  border: 1px dashed rgba(129, 140, 248, 0.35);
  background: rgba(99, 102, 241, 0.06);
}

.ipaBuyKeyHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ipaBuyKeyHead b {
  font-size: 14px;
  color: #fff;
}

.ipaPriceTag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.18);
  color: var(--indigo-soft);
}

.ipaBuyKeyCard p {
  margin: 6px 0 12px;
  font-size: 12.5px;
  color: var(--soft);
  line-height: 1.5;
}

.ipaBuyBtn {
  width: 100%;
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  background: rgba(6, 182, 212, 0.14);
  color: var(--cyan-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  transition: 0.18s ease;
}

.ipaBuyBtn:hover {
  background: rgba(6, 182, 212, 0.24);
  color: #fff;
}

/* ===== Welcome Alert Modal (#welcomeModal) — Mobile-Safe Sticky Header/Footer ===== */
.welcomeSheet {
  width: min(660px, 100%);
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: rgba(129, 140, 248, 0.35);
}

.welcomeTopBanner {
  flex: 0 0 auto;
  padding: 18px 22px 15px;
  background:
    radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.2), transparent 18rem),
    linear-gradient(135deg, rgba(49, 46, 129, 0.55), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.welcomeBadgeRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.welcomePulseBadge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: var(--indigo-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.welcomePulseBadge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 8px var(--cyan-bright);
}

.welcomeTopBanner h2 {
  margin: 8px 0 3px;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 850;
}

.welcomeTopBanner p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}

.welcomeBody {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 22px;
}

.welcomeFeatureGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.welcomeFeatureCard {
  padding: 14px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.welcomeFeatureCard.vipCard {
  border-color: rgba(129, 140, 248, 0.4);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.06));
}

.wfHeader {
  margin-bottom: 8px;
}

.wfTag {
  display: inline-block;
  font-size: 10px;
  font-weight: 850;
  padding: 2.5px 7px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.wfTag.freeTag {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.wfTag.adminKeyTag {
  background: rgba(99, 102, 241, 0.24);
  color: var(--indigo-soft);
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.wfTag.ipaTag {
  background: rgba(6, 182, 212, 0.18);
  color: var(--cyan-soft);
}

.wfHeader b {
  display: block;
  font-size: 14.5px;
  color: #fff;
}

.wfList {
  margin: 0;
  padding-left: 16px;
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.65;
}

.wfList b {
  color: #f1f5f9;
}

.welcomeIpaCallout {
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(6, 182, 212, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.welcomeIpaInfo b {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-top: 2px;
}

.welcomeIpaInfo p {
  margin: 3px 0 0;
  color: var(--soft);
  font-size: 12px;
}

.welcomeIpaBtn {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(6, 182, 212, 0.16);
  color: var(--cyan-soft);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.welcomeActions,
.welcomeFooterBar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  padding: 14px 22px 16px;
  margin-top: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(9, 13, 25, 0.98);
}

.welcomePrimaryBtn,
.welcomeSecondaryBtn {
  min-height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.welcomePrimaryBtn {
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  border: 1px solid rgba(165, 180, 252, 0.4);
  color: #fff;
}

.welcomePrimaryBtn svg {
  width: 17px;
  height: 17px;
}

.welcomeSecondaryBtn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

/* ===== Floating Search Button & Modals ===== */
.searchFab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  color: #fff;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.6), 0 0 22px rgba(79, 70, 229, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.searchFab:hover {
  transform: translateY(-2px) scale(1.02);
}

.searchFab svg {
  width: 18px;
  height: 18px;
}

.searchOverlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(3, 6, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.searchOverlay.open {
  opacity: 1;
  pointer-events: auto;
}

.searchSheet {
  width: min(650px, 100%);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(16, 23, 42, 0.98), rgba(9, 13, 25, 0.99));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
  border-radius: 22px;
  padding: 22px;
  transform: translateY(12px) scale(0.98);
  transition: 0.2s ease;
}

.searchSheet.welcomeSheet {
  overflow: hidden;
  padding: 0;
}

.searchOverlay.open .searchSheet {
  transform: translateY(0) scale(1);
}

.modalHeaderBar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.modalTag {
  display: inline-block;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  color: var(--indigo-bright);
  margin-bottom: 3px;
}

.modalHeaderTitle b {
  display: block;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.modalHeaderTitle span:not(.modalTag) {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: 13px;
}

.closePill {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.closePill svg {
  width: 14px;
  height: 14px;
}

.closePill:hover {
  border-color: rgba(244, 63, 94, 0.45);
  background: rgba(244, 63, 94, 0.14);
}

.searchForm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  border: 1px solid rgba(129, 140, 248, 0.32);
  background: rgba(4, 7, 15, 0.55);
  border-radius: 14px;
  padding: 7px 7px 7px 13px;
}

.searchForm svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--cyan-bright);
  stroke-width: 2;
  stroke-linecap: round;
  flex: 0 0 auto;
}

.searchForm input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.searchForm input::placeholder {
  color: var(--muted);
}

.searchForm button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
}

.searchQuickChips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chipHintLabel {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 650;
}

.searchChip {
  border: 1px solid rgba(129, 140, 248, 0.26);
  background: rgba(99, 102, 241, 0.09);
  color: var(--indigo-soft);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.16s ease;
}

.searchChip:hover {
  background: rgba(99, 102, 241, 0.22);
  color: #fff;
}

.modalFootNote {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

/* ===== Punishment Modal & 2-Mode Switcher ===== */
.punishModeTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

.punishModeTab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  border-radius: 13px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  cursor: pointer;
  text-align: left;
  transition: 0.18s ease;
}

.punishModeTab:hover {
  border-color: rgba(129, 140, 248, 0.4);
}

.punishModeTab.active {
  border-color: rgba(129, 140, 248, 0.55);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.16), rgba(6, 182, 212, 0.08));
  color: #fff;
}

.punishTabTitle {
  font-size: 13.5px;
  font-weight: 800;
}

.punishTabBadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.26);
}

.punishTabBadge.lockedBadge {
  background: rgba(129, 140, 248, 0.14);
  color: var(--indigo-soft);
  border-color: rgba(129, 140, 248, 0.3);
}

.punishTabBadge.unlockedBadge {
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.3);
}

.punishTcpContainer {
  margin-top: 14px;
}

.punishLockedBox {
  border: 1px dashed rgba(129, 140, 248, 0.35);
  background: rgba(99, 102, 241, 0.06);
  border-radius: 15px;
  padding: 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.punishLockedIcon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.32);
  font-size: 18px;
}

.punishLockedBox b {
  color: var(--indigo-soft);
  font-size: 14.5px;
}

.punishLockedBox span {
  color: var(--soft);
  font-size: 12.5px;
  max-width: 460px;
}

.punishUnlockBtn {
  margin-top: 4px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(165, 180, 252, 0.4);
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
}

.punishTcpForm {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  background: rgba(4, 7, 15, 0.45);
  border-radius: 14px;
  align-items: center;
}

.punishTcpForm input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0 11px;
  color: #fff;
  font-weight: 600;
  outline: 0;
}

.punishTcpForm input:focus {
  border-color: var(--indigo-bright);
}

.punishTcpForm button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  color: #fff;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.punishTcpHint {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.punishResult {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  max-height: min(52vh, 430px);
  overflow: auto;
}

.punishEmpty,
.punishError {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 13px;
  padding: 12px;
  color: var(--soft);
  font-weight: 650;
  font-size: 13px;
}

.punishError {
  border-color: rgba(244, 63, 94, 0.32);
  background: rgba(244, 63, 94, 0.09);
  color: #fecdd3;
}

.punishItem.success {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(244, 63, 94, 0.35);
  background: linear-gradient(165deg, rgba(32, 16, 28, 0.95), rgba(10, 13, 24, 0.98));
}

.punishCelebrate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(244, 63, 94, 0.32);
  background: rgba(244, 63, 94, 0.12);
  color: #fecdd3;
  font-size: 12px;
  font-weight: 800;
}

.punishCelebrateSpark {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: #fda4af;
}

.punishIdentity {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.punishIdentityRow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.punishIdentityLabel {
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.punishIdentityValue.name {
  font-size: 19px;
  font-weight: 850;
  color: #fff;
}

.punishIdentityValue.uid {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--cyan-soft);
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.punishGrid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 12px;
  font-size: 13px;
}

.punishGrid b {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.punishGrid span {
  color: #f1f5f9;
  font-weight: 700;
}

/* ===== Admin Login & Delete Confirm Modals ===== */
.adminLoginSheet {
  width: min(440px, 100%);
}

.adminLoginForm {
  margin-top: 15px;
}

.adminLoginForm label {
  display: block;
  margin: 0 0 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 750;
}

.adminLoginForm .adminPrimaryBtn {
  width: 100%;
  margin-top: 10px;
}

.adminBuyHint {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--soft);
}

.adminBuyHint a {
  color: var(--cyan-bright);
  font-weight: 750;
  text-decoration: none;
}

.deleteConfirmSheet {
  width: min(430px, 100%);
  text-align: center;
  border-color: rgba(244, 63, 94, 0.38);
}

.deleteConfirmIcon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
}

.deleteConfirmIcon svg { width: 24px; height: 24px; }
.deleteConfirmTitle { display: block; font-size: 19px; font-weight: 850; }
.deleteConfirmDesc { margin: 8px 0 0; color: var(--soft); font-size: 13px; line-height: 1.6; }
.deleteConfirmTarget {
  color: #ffe4e6;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.deleteConfirmDesc code { color: var(--indigo-soft); font-weight: 750; }
.deleteConfirmActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.deleteCancelBtn,
.deleteConfirmBtn {
  min-height: 42px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.deleteCancelBtn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}
.deleteConfirmBtn {
  border: 1px solid rgba(244, 63, 94, 0.5);
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
}

/* ===== Footer & Toast ===== */
.siteFooter {
  width: 100%;
  max-width: 100%;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.footerInner {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footerCopy {
  color: var(--muted);
}

.footerInner b { color: var(--soft); }

.footerLinksGroup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footerLink {
  color: var(--cyan-bright);
  text-decoration: none;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(129, 140, 248, 0.42);
  background: rgba(9, 13, 25, 0.96);
  color: var(--indigo-soft);
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  transition: 0.2s ease;
  font-size: 13px;
  font-weight: 750;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.adminStatusMeta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}

.adminExpiryBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-soft);
  font-size: 11.5px;
  font-weight: 800;
  max-width: 100%;
}

.adminExpiryBadge:empty {
  display: none;
}

.ipaKeyItem.expiredKeyItem {
  opacity: 0.65;
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.06);
}

.ipaKeyItem.expiredKeyItem .ipaKeyMeta b {
  color: #fda4af;
}

/* ===== iOS App Store IPA Card & Shareable URL Box ===== */
.ipaAppStoreHero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.ipaAppIconWrap {
  flex: 0 0 auto;
}

.ipaAppStoreIcon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 14px 32px rgba(2, 6, 23, 0.55),
    0 0 24px rgba(79, 70, 229, 0.22);
  background: #0b1122;
}

.ipaAppStoreIcon.sm {
  width: 68px;
  height: 68px;
  border-radius: 16px;
}

.ipaAppHeroInfo {
  flex: 1;
  min-width: 0;
}

.ipaAppHeroInfo h2 {
  margin: 6px 0 3px;
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.22;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ipaAppSubtitle {
  margin: 0;
  color: var(--soft);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

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

.ipaBundlePill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--soft);
  font-size: 11.5px;
  font-weight: 700;
  max-width: 100%;
}

.ipaBundlePill code {
  color: var(--cyan-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.ipaShareMiniBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(99, 102, 241, 0.14);
  color: var(--indigo-soft);
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  transition: 0.18s ease;
}

.ipaShareMiniBtn svg {
  width: 13px;
  height: 13px;
}

.ipaShareMiniBtn:hover {
  background: rgba(99, 102, 241, 0.26);
  color: #fff;
}

/* Full-Text App Specs Grid (Never truncates App Name, Bundle ID, or Version) */
.ipaAppSpecsStrip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0;
  padding: 13px;
  border-radius: 15px;
  background: rgba(4, 7, 15, 0.5);
  border: 1px solid var(--line);
}

.ipaSpecCell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.ipaSpecLabelRow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.ipaSpecLabelRow svg {
  width: 13px;
  height: 13px;
  color: var(--indigo-bright);
  flex: 0 0 auto;
}

.ipaSpecCell small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.ipaSpecCell b {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.42;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ipaSpecCell b.monoSpec {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--cyan-soft);
  word-break: break-all;
}

.ipaSpecCell b.emeraldSpec {
  color: #6ee7b7;
}

.ipaDescSection {
  margin-bottom: 14px;
}

.ipaSectionLabel {
  display: block;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.12em;
  color: var(--indigo-bright);
  margin-bottom: 5px;
}

/* Inline SVG Icon Helpers */
svg.inlineSvgIcon {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  flex: 0 0 auto;
}

.smallBtn.tcpBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.punishLockedIcon svg.inlineSvgIcon {
  width: 20px;
  height: 20px;
  color: var(--indigo-bright);
}

.ipaAdminImgIdx {
  position: absolute;
  bottom: 3px;
  left: 4px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(6, 9, 19, 0.85);
  color: #e2e8f0;
  font-size: 9.5px;
  font-weight: 800;
}

.ipaAdminImgRemove svg.inlineSvgIcon {
  width: 11px;
  height: 11px;
}

/* Admin Shareable Public URL Box */
.ipaPublicShareBox {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 15px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.11), rgba(79, 70, 229, 0.08));
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.ipaPublicShareBox.savedPulse {
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.ipaPublicShareTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.shareKicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  color: var(--cyan-bright);
}

.shareKicker svg {
  width: 13px;
  height: 13px;
}

.ipaPublicShareTop b {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-top: 2px;
}

.ipaPublicShareDesc {
  margin: 6px 0 10px;
  font-size: 12px;
  color: var(--soft);
  line-height: 1.5;
}

.ipaPublicShareRow {
  display: flex;
  gap: 8px;
}

.ipaPublicShareRow input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(4, 7, 15, 0.65);
  color: var(--cyan-soft);
  padding: 0 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  outline: 0;
}

.ipaShareCopyBtn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.ipaIconConfigRow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(4, 7, 15, 0.4);
}

.ipaIconConfigControls {
  flex: 1;
  min-width: 0;
}

.fieldSubHint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.ipaAntiShareNote {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.06);
  font-size: 12px;
  line-height: 1.5;
  color: var(--soft);
}

.ipaAntiShareTitle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  color: #6ee7b7;
}

.ipaAntiShareTitle svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.ipaAntiShareNote b {
  color: #6ee7b7;
  display: inline;
  margin: 0;
}

.deviceLockBadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 750;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  margin-left: 4px;
}

.deviceLockBadge svg.inlineSvgIcon {
  width: 11px;
  height: 11px;
}

.deviceLockBadge.locked {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
}

.ipaKeyActions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ipaKeyResetBtn {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-soft);
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.ipaKeyResetBtn:hover {
  background: rgba(6, 182, 212, 0.24);
  color: #fff;
}

/* =====================================================================
 * COMPACT EXTRACT PANEL (INDEX.HTML - ONLY SHOWN WHEN ADMIN LOGGED IN)
 * & STANDALONE ADMIN PORTAL (/admin)
 * ===================================================================== */
.compactExtractPanel {
  margin-top: 22px;
  margin-bottom: 6px;
  padding: 22px 26px;
  border-radius: 22px;
  border: 1px solid rgba(129, 140, 248, 0.36);
  background:
    radial-gradient(circle at 90% 10%, rgba(99, 102, 241, 0.16), transparent 22rem),
    radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.12), transparent 22rem),
    linear-gradient(155deg, rgba(16, 23, 44, 0.96), rgba(9, 13, 25, 0.98));
  box-shadow:
    0 20px 52px rgba(2, 6, 23, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.adminPanelHead,
.compactExtractHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.adminHeadInfo,
.compactExtractTitleWrap {
  flex: 1 1 320px;
  min-width: 0;
}

.compactExtractBadgeRow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.compactExtractBadgeRow .adminKicker {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.compactExtractHead h2,
.adminPanelHead h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.025em;
  margin: 2px 0 0;
  color: #fff;
}

.compactExtractHead p,
.adminPanelHead p {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.55;
}

.adminTotalPill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.38);
  color: var(--indigo-soft);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Right-side Structured Control Cluster in Admin Header */
.adminPanelActions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.adminStatusMeta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.adminStatus,
.adminExpiryBadge {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.adminStatus i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  display: inline-block;
  animation: adminLedPulse 2s ease-in-out infinite;
}

@keyframes adminLedPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.adminStatus,
.adminStatus.normal {
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.adminStatus.vip {
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}

.adminStatus.root {
  border: 1px solid rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
}

.adminExpiryBadge,
.adminExpiryBadge.normalBadge {
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: rgba(15, 23, 42, 0.85);
  color: #bae6fd;
}

.adminExpiryBadge.vipBadge {
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(20, 16, 5, 0.88);
  color: #fde68a;
}

.adminExpiryBadge.rootBadge {
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: rgba(24, 12, 38, 0.88);
  color: #e9d5ff;
}

.adminActionBtnsRow {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.adminPortalLinkBtn,
.adminGhostBtn {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.adminPortalLinkBtn {
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.32), rgba(6, 182, 212, 0.24));
  color: #e0f2fe;
  box-shadow:
    0 6px 18px rgba(6, 182, 212, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.adminPortalLinkBtn svg,
.adminGhostBtn svg,
.miniBtn svg,
.adminPrimaryBtn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.adminPortalLinkBtn svg {
  color: var(--cyan-bright);
}

.adminPortalLinkBtn:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.75);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.46), rgba(6, 182, 212, 0.36));
  color: #fff;
  box-shadow:
    0 12px 26px rgba(6, 182, 212, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.adminGhostBtn {
  border: 1px solid rgba(244, 63, 94, 0.32);
  background: rgba(244, 63, 94, 0.09);
  color: #fecdd3;
}

.adminGhostBtn svg {
  color: #fda4af;
}

.adminGhostBtn:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 63, 94, 0.62);
  background: rgba(244, 63, 94, 0.2);
  color: #fff;
}

.miniBtn,
.miniUploadBtn {
  gap: 7px;
  text-decoration: none;
}

.compactExtractControls {
  margin-top: 16px;
  grid-template-columns: minmax(180px, 1fr) minmax(200px, 1.15fr) auto;
  gap: 12px;
}

/* Standalone Admin Page (/admin) Auth Gate */
.adminAuthGate {
  min-height: calc(100vh - 210px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.adminGateCard {
  width: min(510px, 100%);
  padding: 32px 28px;
  border-radius: 26px;
  border: 1px solid rgba(129, 140, 248, 0.34);
  background:
    radial-gradient(circle at 85% 12%, rgba(99, 102, 241, 0.2), transparent 20rem),
    radial-gradient(circle at 15% 88%, rgba(6, 182, 212, 0.12), transparent 20rem),
    linear-gradient(160deg, rgba(16, 23, 44, 0.96), rgba(9, 13, 25, 0.98));
  box-shadow:
    0 26px 68px rgba(2, 6, 23, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: springCardReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.adminGateIconWrap {
  margin-bottom: 12px;
}

.adminGateIcon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(129, 140, 248, 0.42);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.24), rgba(6, 182, 212, 0.14));
  color: var(--cyan-bright);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.24);
}

.adminGateIcon svg {
  width: 28px;
  height: 28px;
}

.adminGateCard h1 {
  font-size: clamp(23px, 4vw, 29px);
  margin: 8px 0 0;
  letter-spacing: -0.025em;
}

.adminGateCard p {
  margin: 10px 0 20px;
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.6;
}

.adminGateForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.adminGateForm label {
  display: block;
  font-size: 12.5px;
  font-weight: 750;
  color: #cbd5e1;
}

.adminGateBtn {
  width: 100%;
  min-height: 48px;
  font-size: 14px;
  gap: 9px;
  margin-top: 2px;
}

.adminGateFooter {
  width: 100%;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  justify-content: center;
}

.adminGateFooter .adminPortalLinkBtn {
  width: 100%;
  min-height: 42px;
}

.standaloneAdminConsole {
  margin-top: 6px;
}

.adminPreviewResultsWrap {
  margin-top: 26px;
}

/* =====================================================================
 * REDESIGNED TACTILE 3D BUTTONS & SPRING ANIMATION SYSTEM (v14)
 * ===================================================================== */
@keyframes springCardReveal {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes paneFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtleBtnPulse {
  0%, 100% {
    box-shadow:
      0 14px 32px rgba(79, 70, 229, 0.34),
      0 0 0 0 rgba(99, 102, 241, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      inset 0 -2px 0 rgba(0, 0, 0, 0.22);
  }
  50% {
    box-shadow:
      0 16px 38px rgba(6, 182, 212, 0.36),
      0 0 0 6px rgba(99, 102, 241, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.42),
      inset 0 -2px 0 rgba(0, 0, 0, 0.22);
  }
}

/* Smooth entrance for Hero & Bento Panels */
.heroCard,
.qualityPanel,
.ipaShowcaseCard,
.ipaPortalCard {
  animation: springCardReveal 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.qualityPanel,
.ipaPortalCard {
  animation-delay: 0.06s;
}

.branchSection.active,
.adminGrid {
  animation: paneFadeSlide 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 1. Primary Luminous 3D CTA Buttons with Shimmer Sweep */
.randomBtn,
.adminPrimaryBtn,
.ipaRedeemSubmitBtn,
.ipaDownloadBtn.primaryIpa,
.welcomePrimaryBtn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 14px;
  border: 1px solid rgba(165, 180, 252, 0.48);
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow:
    0 12px 28px rgba(79, 70, 229, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -2px 0 rgba(0, 0, 0, 0.22);
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    background-position 0.45s ease,
    border-color 0.25s ease,
    filter 0.25s ease;
}

.randomBtn {
  animation: subtleBtnPulse 3.6s ease-in-out infinite;
}

.randomBtn::after,
.adminPrimaryBtn::after,
.ipaRedeemSubmitBtn::after,
.ipaDownloadBtn.primaryIpa::after,
.welcomePrimaryBtn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.26) 50%,
    transparent 100%
  );
  transform: skewX(-22deg);
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
}

.randomBtn:hover::after,
.adminPrimaryBtn:hover::after,
.ipaRedeemSubmitBtn:hover::after,
.ipaDownloadBtn.primaryIpa:hover::after,
.welcomePrimaryBtn:hover::after {
  left: 145%;
}

.randomBtn:hover,
.adminPrimaryBtn:hover,
.ipaRedeemSubmitBtn:hover,
.ipaDownloadBtn.primaryIpa:hover,
.welcomePrimaryBtn:hover {
  transform: translateY(-2.5px) scale(1.01);
  background-position: 100% 50%;
  border-color: rgba(186, 230, 253, 0.72);
  box-shadow:
    0 18px 38px rgba(59, 130, 246, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -2px 0 rgba(0, 0, 0, 0.22);
  filter: brightness(1.05);
}

.randomBtn:active,
.adminPrimaryBtn:active,
.ipaRedeemSubmitBtn:active,
.ipaDownloadBtn.primaryIpa:active,
.welcomePrimaryBtn:active {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    0 6px 16px rgba(79, 70, 229, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.randomBtn:hover .randomIcon:not(.loading) svg {
  transform: rotate(14deg) scale(1.08);
}

.randomIcon svg {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Frosted Glass Secondary & Navigation Buttons */
.groupBtn,
.navActionBtn,
.topGroupBtn,
.adminLoginBtn,
.branchNavBtn,
.adminSwitchBtn,
.miniBtn,
.miniUploadBtn,
.adminGhostBtn,
.inlineIpaLinkBtn,
.ipaBuyBtn,
.ipaShareCopyBtn,
.welcomeSecondaryBtn,
.ipaDownloadBtn.secondaryTf {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 6px 18px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease;
}

.groupBtn:hover,
.navActionBtn:hover,
.topGroupBtn:hover,
.miniBtn:hover,
.miniUploadBtn:hover,
.inlineIpaLinkBtn:hover,
.ipaBuyBtn:hover,
.ipaShareCopyBtn:hover,
.welcomeSecondaryBtn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.45),
    0 0 18px rgba(99, 102, 241, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.groupBtn:active,
.navActionBtn:active,
.topGroupBtn:active,
.adminLoginBtn:active,
.branchNavBtn:active,
.adminSwitchBtn:active,
.miniBtn:active,
.miniUploadBtn:active,
.adminGhostBtn:active,
.inlineIpaLinkBtn:active,
.ipaBuyBtn:active,
.ipaShareCopyBtn:active,
.welcomeSecondaryBtn:active,
.smallBtn:active {
  transform: translateY(1px) scale(0.98);
}

.groupBtn svg,
.navActionBtn svg,
.topGroupBtn svg,
.adminLoginBtn svg,
.branchNavBtn svg,
.adminSwitchBtn svg {
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.groupBtn:hover svg,
.navActionBtn:hover svg,
.topGroupBtn:hover svg,
.adminLoginBtn:hover svg,
.branchNavBtn:hover svg,
.adminSwitchBtn:hover svg {
  transform: scale(1.12) translateY(-0.5px);
}

/* Segmented Admin Sub-Tab Switcher Upgrade */
.adminModeSwitch {
  padding: 6px;
  border-radius: 16px;
  background: rgba(6, 10, 22, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.adminSwitchBtn {
  border-radius: 12px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}

.adminSwitchBtn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

.adminSwitchBtn.active {
  border-color: rgba(129, 140, 248, 0.52);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.34), rgba(6, 182, 212, 0.22));
  color: #ffffff;
  box-shadow:
    0 8px 22px rgba(79, 70, 229, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.adminSwitchBtn.active svg {
  color: var(--cyan-bright);
}

/* 3. Account Card & Card Action Buttons Upgrade */
.card {
  animation: springCardReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 54px rgba(2, 6, 23, 0.68),
    0 0 26px rgba(99, 102, 241, 0.12);
}

.cardActions .smallBtn {
  min-height: 38px;
  border-radius: 11px;
  font-weight: 750;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow:
    0 4px 12px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.cardActions .smallBtn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(2, 6, 23, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cardActions .copyBtn {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.32), rgba(6, 182, 212, 0.22));
  border-color: rgba(129, 140, 248, 0.46);
  color: #ffffff;
}

.cardActions .copyBtn:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.48), rgba(6, 182, 212, 0.36));
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow:
    0 10px 24px rgba(79, 70, 229, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cardActions .banBtn {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(15, 23, 42, 0.65));
  border-color: rgba(56, 189, 248, 0.34);
  color: #bae6fd;
}

.cardActions .banBtn:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.26), rgba(59, 130, 246, 0.2));
  border-color: rgba(56, 189, 248, 0.62);
  color: #ffffff;
}

.cardActions .tcpBtn:not(.lockedBtn) {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.14));
  border-color: rgba(52, 211, 153, 0.38);
  color: #a7f3d0;
}

.cardActions .tcpBtn:not(.lockedBtn):hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.24));
  border-color: rgba(52, 211, 153, 0.65);
  color: #ffffff;
}

/* 4. Floating Search FAB Button Upgrade */
.searchFab {
  border: 1px solid rgba(165, 180, 252, 0.48);
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 52%, #06b6d4 100%);
  box-shadow:
    0 16px 36px rgba(79, 70, 229, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.25s ease;
}

.searchFab:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 22px 44px rgba(6, 182, 212, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
  filter: brightness(1.07);
}

.searchFab:active {
  transform: translateY(1px) scale(0.97);
}

/* ===== Responsive Breakpoints & Mobile Optimization ===== */
@media (max-width: 980px) {
  .bentoDeck,
  .ipaStoreLayout {
    grid-template-columns: minmax(0, 1fr);
  }
  .results {
    grid-template-columns: minmax(0, 1fr);
  }
  .adminGrid,
  .adminGrid.singleCol {
    grid-template-columns: minmax(0, 1fr);
  }
  .adminControls,
  .compactExtractControls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .adminControls .adminPrimaryBtn,
  .compactExtractControls .adminPrimaryBtn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .results.focusMode .card.cardFocused .detailGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* 1. Top Command Navbar — Full-width balanced layout on Mobile */
  .navInner {
    width: calc(100% - 20px);
    min-height: 56px;
    gap: 8px;
    padding: 8px 0;
    align-items: center;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 9px;
  }
  .brandMark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .brand strong {
    font-size: 15.5px;
  }
  .brand small,
  .vaultVersion {
    display: none;
  }
  body:not(.standaloneIpaBody):not(.standaloneAdminBody) .topActions {
    flex: 0 0 auto;
    margin-left: auto;
  }
  body:not(.standaloneIpaBody):not(.standaloneAdminBody) .topActionsGroup {
    flex-wrap: nowrap;
    gap: 5px;
  }
  body:not(.standaloneIpaBody):not(.standaloneAdminBody) #openWelcomeBtn span,
  body:not(.standaloneIpaBody):not(.standaloneAdminBody) #groupLink span {
    display: none;
  }
  body:not(.standaloneIpaBody):not(.standaloneAdminBody) #openWelcomeBtn,
  body:not(.standaloneIpaBody):not(.standaloneAdminBody) #groupLink {
    width: 35px;
    min-height: 35px;
    padding: 0;
  }
  body:not(.standaloneIpaBody):not(.standaloneAdminBody) #adminDirectLink,
  body:not(.standaloneIpaBody):not(.standaloneAdminBody) .adminLoginBtn {
    min-height: 35px;
    padding: 0 9px;
    font-size: 11.5px;
    gap: 5px;
  }
  .branchSwitchNav {
    width: 100%;
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .branchNavBtn {
    width: 100%;
    justify-content: center;
    min-height: 38px;
    padding: 0 8px;
    font-size: 12px;
  }

  /* Standalone IPA Page (/ipa) & Standalone Admin Page (/admin) Header on Mobile */
  .standaloneIpaBody .navInner,
  .standaloneAdminBody .navInner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 9px 0;
  }
  .standaloneIpaBody .brand,
  .standaloneAdminBody .brand {
    width: 100%;
  }
  .standaloneIpaBody .brand small,
  .standaloneAdminBody .brand small {
    display: block;
    font-size: 11px;
  }
  .standaloneIpaBody .topActions,
  .standaloneAdminBody .topActions {
    width: 100%;
  }
  .standaloneIpaBody .topActionsGroup,
  .standaloneAdminBody .topActionsGroup {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  .standaloneAdminBody .topActionsGroup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .standaloneIpaBody .navActionBtn,
  .standaloneIpaBody .topGroupBtn,
  .standaloneAdminBody .navActionBtn,
  .standaloneAdminBody .topGroupBtn,
  .standaloneAdminBody .adminLoginBtn {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 0 6px;
    font-size: 11.5px;
    gap: 5px;
    justify-content: center;
  }
  .standaloneIpaBody .navActionBtn span,
  .standaloneIpaBody .topGroupBtn span,
  .standaloneAdminBody .navActionBtn span,
  .standaloneAdminBody .topGroupBtn span,
  .standaloneAdminBody .adminLoginBtn span {
    display: inline !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 2. Admin Control Console (#adminPanel) & Compact Extract Bar — Full-width Mobile Layout */
  .adminPanel,
  .compactExtractPanel {
    width: 100%;
    max-width: 100%;
    padding: 16px 14px;
    border-radius: 18px;
  }
  .adminGateCard {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .adminPanelHead,
  .compactExtractHead {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
  }
  .adminHeadInfo,
  .compactExtractTitleWrap {
    flex: 1 1 auto;
    width: 100%;
  }
  .adminPanelHead h2,
  .compactExtractHead h2 {
    font-size: clamp(18px, 5vw, 21px);
    line-height: 1.28;
  }
  .adminPanelActions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .adminStatusMeta {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }
  .adminStatus,
  .adminExpiryBadge {
    flex: 1 1 auto;
    justify-content: center;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
    padding: 7px 11px;
    border-radius: 10px;
    text-align: center;
  }
  .adminActionBtnsRow {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
  }
  .adminPortalLinkBtn,
  .adminGhostBtn {
    flex: 1 1 140px;
    min-height: 38px;
    text-align: center;
    justify-content: center;
  }
  .adminModeSwitch {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }
  .adminSwitchBtn {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    text-align: left;
    padding: 9px 12px;
    line-height: 1.35;
  }
  .adminModule {
    padding: 14px;
    border-radius: 16px;
  }
  .moduleTitle {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .moduleTitle > div:first-child {
    flex: 1 1 auto;
    width: 100%;
  }
  .adminControls {
    grid-template-columns: minmax(0, 1fr);
  }
  .ipaPublicShareTop {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  #ipaOpenPublicUrlBtn {
    width: 100%;
  }
  .ipaKeyListHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .adminPrimaryBtn,
  .miniBtn,
  .miniUploadBtn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 8px 12px;
  }
  .adminMessage {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* 3. Main Wrap, Hero, Cards & IPA Store on Mobile */
  .wrap {
    width: calc(100% - 20px);
    padding: 12px 0 28px;
  }
  .heroCard,
  .qualityPanel,
  .ipaShowcaseCard,
  .ipaPortalCard {
    padding: 16px 14px;
    border-radius: 18px;
  }
  h1 {
    font-size: clamp(25px, 6.8vw, 33px);
    min-height: 1.25em;
  }
  .subtitle {
    font-size: 13.5px;
    margin-top: 10px;
  }
  .terminalTopBar {
    flex-wrap: wrap;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  .actionRow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 16px;
  }
  .randomBtn,
  .groupBtn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }
  .telemetryFooter {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .inlineIpaLinkBtn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .resultHead {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 20px 0 12px;
  }
  .resultHead b {
    font-size: 20px;
  }
  .cardTop,
  .cardBody {
    padding: 14px;
  }
  .game {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .game .row[style*="flex-end"] {
    align-items: flex-start !important;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skinHighlights,
  .detailGrid,
  .punishModeTabs,
  .punishTcpForm,
  .welcomeFeatureGrid,
  .welcomeActions,
  .welcomeFooterBar,
  .ipaHighlightsGrid,
  .ipaDownloadBtns,
  .ipaAdminRow2,
  .ipaUploadInline {
    grid-template-columns: minmax(0, 1fr);
  }
  .ipaAppStoreHero {
    align-items: flex-start;
    gap: 12px;
  }
  .ipaAppStoreIcon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
  }
  .ipaAppSpecsStrip {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .ipaIconConfigRow,
  .ipaPublicShareRow,
  .ipaKeyInputRow {
    flex-direction: column;
    align-items: stretch;
  }
  .ipaRedeemSubmitBtn,
  .ipaShareCopyBtn {
    width: 100%;
  }
  .ipaKeyItem {
    flex-direction: column;
    align-items: flex-start;
  }
  .ipaKeyActions {
    width: 100%;
    justify-content: flex-end;
  }

  /* 4. Site Footer — Full-Width Centered Card on Mobile */
  .siteFooter {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    padding: 14px 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(13, 19, 34, 0.78);
  }
  .footerInner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .footerCopy {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.5;
    font-size: 12px;
  }
  .footerSep {
    display: none;
  }
  .footerLinksGroup {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .footerLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: rgba(6, 182, 212, 0.09);
    color: var(--cyan-soft);
    font-size: 11.5px;
    font-weight: 750;
    text-align: center;
    width: 100%;
  }

  /* 5. Mobile Modal Optimization — Guaranteed Reachable Close Buttons */
  .searchOverlay {
    padding: 10px;
    align-items: center;
  }
  .searchSheet {
    padding: 16px 15px;
    border-radius: 18px;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }
  .searchSheet.welcomeSheet {
    padding: 0;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }
  .welcomeTopBanner {
    padding: 14px 15px 12px;
  }
  .welcomeTopBanner h2 {
    font-size: 18px;
  }
  .welcomeTopBanner p {
    font-size: 12px;
  }
  .welcomeBody {
    padding: 12px 15px;
  }
  .welcomeFeatureCard {
    padding: 11px 12px;
  }
  .wfList {
    font-size: 12px;
    line-height: 1.55;
  }
  .welcomeIpaCallout {
    flex-direction: column;
    align-items: stretch;
    padding: 11px 12px;
    gap: 9px;
  }
  .welcomeIpaBtn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .welcomeActions,
  .welcomeFooterBar {
    padding: 11px 15px 13px;
    gap: 8px;
  }
  .welcomePrimaryBtn,
  .welcomeSecondaryBtn {
    min-height: 41px;
    font-size: 13px;
  }
  .searchForm {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 8px;
  }
  .searchForm svg {
    display: none;
  }
  .searchForm button {
    width: 100%;
  }
  /* Prevent iOS Safari zoom on input focus */
  .field input,
  .field select,
  .field textarea,
  .adminLoginForm input,
  .ipaKeyInputRow input,
  .searchForm input,
  .punishTcpForm input {
    font-size: 16px;
  }
  .punishGrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .results.focusMode .card.cardFocused .detailGrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .searchFabLabel {
    display: none;
  }
  .searchFab {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 14px;
    padding: 0;
    justify-content: center;
  }
  .toast {
    width: calc(100% - 28px);
    max-width: 380px;
    text-align: center;
    bottom: 16px;
  }
}

@media (max-width: 400px) {
  body:not(.standaloneIpaBody) #adminDirectLink,
  body:not(.standaloneIpaBody) .adminLoginBtn {
    padding: 0 7px;
    font-size: 11px;
  }
  .footerLinksGroup {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =====================================================================
 * INTRO & TUTORIAL VIDEO PLAYER (IPA STORE)
 * ===================================================================== */
.ipaVideoSection {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ipaVideoHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ipaVideoBadge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  text-transform: uppercase;
}
.ipaVideoStage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #000;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 24px rgba(99, 102, 241, 0.18);
}
.ipaVideoStage iframe,
.ipaVideoStage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

/* =====================================================================
 * PERMANENT DEVTOOLS BLOCK OVERLAY
 * ===================================================================== */
.clzDevBlockedOverlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999999 !important;
  background: #070408 radial-gradient(circle at 50% 40%, rgba(220, 38, 38, 0.36), transparent 70%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  color: #fff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  backdrop-filter: blur(25px) !important;
  user-select: none !important;
}
.clzDevBlockedCard {
  max-width: 540px;
  width: 100%;
  background: rgba(18, 10, 15, 0.94);
  border: 2px solid rgba(239, 68, 68, 0.65);
  border-radius: 22px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 60px rgba(220, 38, 38, 0.4);
}
.clzDevBlockedIcon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.18);
  border: 1.5px solid rgba(239, 68, 68, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  animation: clzPulseIcon 1.8s infinite ease-in-out;
}
@keyframes clzPulseIcon {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { transform: scale(1.06); box-shadow: 0 0 24px 6px rgba(239, 68, 68, 0.35); }
}
.clzDevBlockedTag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.clzDevBlockedTitle {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}
.clzDevBlockedDesc {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 22px;
}
.clzDevBlockedDetails {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: #94a3b8;
  text-align: left;
  line-height: 1.7;
  font-family: monospace;
}

/* =====================================================================
 * TERMINAL AN NINH SOC (SECURITY OPERATIONS CENTER)
 * ===================================================================== */
.adminPaneSoc {
  width: 100%;
  margin-top: 14px;
}

.socTerminalWindow {
  background: #060a14;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.08);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.socTerminalHeader {
  background: #0b1122;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.socTrafficLights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.socLight {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.socLight.socClose { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.5); }
.socLight.socMin { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.5); }
.socLight.socMax { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.5); }

.socTerminalTitle {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.socTerminalStatus {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 1px;
}

.socStatusDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: socPulse 1.8s infinite;
}

@keyframes socPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.socTerminalBody {
  padding: 20px;
}

.socStatsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.socStatCard {
  background: rgba(11, 17, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.socStatLabel {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.socStatValue {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}
.socStatValue.text-danger { color: #f87171; text-shadow: 0 0 16px rgba(239, 68, 68, 0.4); }
.socStatValue.text-success { color: #4ade80; text-shadow: 0 0 16px rgba(74, 222, 128, 0.4); }
.socStatValue.text-cyan { color: #38bdf8; text-shadow: 0 0 16px rgba(56, 189, 248, 0.4); }

.socStatHint {
  font-size: 11px;
  color: #64748b;
}

.socToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.socBtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.socBtn svg { width: 14px; height: 14px; }

.socBtnDefault {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}
.socBtnDefault:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.socBtnDanger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.socBtnDanger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
}

.socBtnSuccess {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}
.socBtnSuccess:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.6);
}

.socSearchInput {
  background: #0b1122;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 14px;
  color: #f1f5f9;
  font-size: 12px;
  font-family: inherit;
  width: 260px;
  max-width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
.socSearchInput:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.socLogPanel {
  background: #080d1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.socLogIntro {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 14px;
  line-height: 1.6;
}
.socPromptText {
  color: #38bdf8;
  font-weight: 800;
}

.socDevicesList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.socEmpty {
  text-align: center;
  padding: 30px 16px;
  color: #64748b;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.socDeviceItem {
  background: linear-gradient(145deg, rgba(20, 10, 14, 0.75), rgba(11, 16, 28, 0.95));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
}
.socDeviceItem:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.12);
}

.socDevMain {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 280px;
  min-width: 0;
}

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

.socDevBadge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.socDevName {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
}

.socDevMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #94a3b8;
}
.socDevMeta b { color: #cbd5e1; }

.socDevReason {
  font-size: 12px;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 2px;
}

.socDevActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.socCliBar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #040711;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
}

.socCliPrompt {
  color: #10b981;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.socCliInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #38bdf8;
  font-size: 12px;
  font-family: inherit;
}

.socCliOutput {
  margin-top: 8px;
  background: #03060f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #94a3b8;
  max-height: 160px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Responsive tweaks for Mobile */
@media (max-width: 640px) {
  .socTerminalBody { padding: 14px 12px; }
  .socToolbar { flex-direction: column; align-items: stretch; }
  .socSearchInput { width: 100%; }
  .socDeviceItem { flex-direction: column; align-items: stretch; gap: 10px; }
  .socDevActions { width: 100%; }
  .socDevActions .socBtn { width: 100%; justify-content: center; }
}

/* =====================================================================
 * CYBERPUNK & HACKER TERMINAL MASTER THEME (cLazy 102 Terminal SOC)
 * High-Tech HUD Styling, Monospace Telemetry, Glowing CRT Accents
 * ===================================================================== */

:root {
  --term-font: 'JetBrains Mono', 'SF Mono', Consolas, Menlo, Monaco, monospace;
  --term-cyan: #00f3ff;
  --term-cyan-glow: rgba(0, 243, 255, 0.35);
  --term-emerald: #00ff9d;
  --term-emerald-glow: rgba(0, 255, 157, 0.35);
  --term-amber: #f59e0b;
  --term-amber-glow: rgba(245, 158, 11, 0.35);
  --term-crimson: #ff3366;
  --term-crimson-glow: rgba(255, 51, 102, 0.35);
  --term-bg-dark: #040711;
  --term-card-bg: rgba(6, 11, 22, 0.92);
  --term-border: rgba(56, 189, 248, 0.22);
}

/* Subtle Phosphor CRT Grid & Scanline Atmosphere */
body {
  background-color: #03060d !important;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Monospace telemetry accents across cards & badges */
.vaultVersion,
.eyebrow,
.modalTag,
.wfTag,
.badge,
.login,
.stat b,
.chips span,
.socHwidPill,
.socPromptText,
.socStatValue,
.socCliPrompt,
.commandNavbar .brandTitleRow small {
  font-family: var(--term-font);
  letter-spacing: 0.5px;
}

/* Top Command Navbar — Cyberpunk Terminal Console Header */
.commandNavbar {
  background: rgba(4, 7, 16, 0.88) !important;
  border-bottom: 1px solid rgba(0, 243, 255, 0.2) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(0, 243, 255, 0.1);
}

.commandNavbar .brandTitleRow strong {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 243, 255, 0.4);
}

.commandNavbar .vaultVersion {
  background: rgba(0, 243, 255, 0.12) !important;
  color: var(--term-cyan) !important;
  border: 1px solid rgba(0, 243, 255, 0.35) !important;
  box-shadow: 0 0 8px rgba(0, 243, 255, 0.2);
}

/* Branch switcher buttons in Terminal style */
.branchNavBtn {
  font-family: var(--term-font);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(11, 18, 32, 0.7);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.branchNavBtn:hover {
  border-color: rgba(0, 243, 255, 0.4);
  background: rgba(0, 243, 255, 0.08);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.2);
}
.branchNavBtn.active {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.22), rgba(16, 185, 129, 0.18)) !important;
  border-color: var(--term-cyan) !important;
  color: #fff !important;
  box-shadow: 0 0 18px rgba(0, 243, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Cyberpunk HUD Frame on Primary Deck Cards */
.heroCard,
.qualityPanel,
.ipaShowcaseCard,
.ipaPortalCard,
.adminGateCard,
.adminCard,
.socTerminalWindow {
  background: var(--term-card-bg) !important;
  border: 1px solid var(--term-border) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 243, 255, 0.06) !important;
  position: relative;
}

/* High-tech HUD Corner Brackets */
.heroCard::before,
.heroCard::after,
.qualityPanel::before,
.qualityPanel::after,
.socTerminalWindow::before,
.socTerminalWindow::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 2;
}
.heroCard::before,
.qualityPanel::before,
.socTerminalWindow::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--term-cyan);
  border-left: 2px solid var(--term-cyan);
  border-top-left-radius: 6px;
}
.heroCard::after,
.qualityPanel::after,
.socTerminalWindow::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--term-cyan);
  border-right: 2px solid var(--term-cyan);
  border-bottom-right-radius: 6px;
}

/* Hero Terminal Top Bar */
.terminalTopBar {
  background: rgba(0, 0, 0, 0.45) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.terminalDots .dot.red { background: #ff3366 !important; box-shadow: 0 0 8px #ff3366 !important; }
.terminalDots .dot.amber { background: #f59e0b !important; box-shadow: 0 0 8px #f59e0b !important; }
.terminalDots .dot.green { background: #00ff9d !important; box-shadow: 0 0 8px #00ff9d !important; }

/* Typing Cursor Neon Pulse */
#typingCursor {
  display: inline-block;
  width: 9px;
  height: 1.15em;
  background: var(--term-cyan);
  margin-left: 5px;
  vertical-align: -2px;
  box-shadow: 0 0 10px var(--term-cyan);
  animation: termCursorBlink 0.9s infinite;
}
@keyframes termCursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Hero Action Buttons in Terminal Command Style */
.randomBtn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0f766e 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  color: #fff !important;
  font-family: var(--term-font) !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35), 0 0 16px rgba(0, 243, 255, 0.25) !important;
  transition: all 0.2s ease !important;
}
.randomBtn:hover {
  transform: translateY(-2px);
  border-color: var(--term-cyan) !important;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.5), 0 0 24px rgba(0, 243, 255, 0.45) !important;
}

.punishBtn,
.inlineIpaLinkBtn {
  background: rgba(11, 19, 36, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #e2e8f0 !important;
  font-family: var(--term-font) !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}
.punishBtn:hover,
.inlineIpaLinkBtn:hover {
  border-color: rgba(0, 243, 255, 0.5) !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(0, 243, 255, 0.2) !important;
}

/* =====================================================================
 * ACCOUNT RESULT CARDS — TERMINAL NODE AESTHETIC
 * ===================================================================== */
.card {
  background: linear-gradient(165deg, rgba(8, 14, 28, 0.95) 0%, rgba(4, 8, 16, 0.98) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 243, 255, 0.5) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 243, 255, 0.15) !important;
}

/* Tier Specific Cyber Neon Accent Borders */
.card.vip {
  border-color: rgba(251, 191, 36, 0.35) !important;
}
.card.vip:hover {
  border-color: #fbbf24 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(251, 191, 36, 0.25) !important;
}
.card.good {
  border-color: rgba(16, 185, 129, 0.35) !important;
}
.card.good:hover {
  border-color: #10b981 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(16, 185, 129, 0.25) !important;
}

/* Secure Credential Vault (TK | MK Box) */
.card .login {
  background: #020409 !important;
  border: 1px solid rgba(0, 243, 255, 0.25) !important;
  color: var(--term-cyan) !important;
  font-family: var(--term-font) !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
  letter-spacing: 1px;
}

/* Card Action Buttons */
.card .cardActions .smallBtn {
  font-family: var(--term-font) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  transition: all 0.18s ease !important;
}
.card .cardActions .smallBtn:hover {
  background: rgba(0, 243, 255, 0.15) !important;
  border-color: var(--term-cyan) !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3) !important;
}
.card .cardActions .copyBtn {
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
}
.card .cardActions .copyBtn:hover {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: var(--term-emerald) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35) !important;
}

/* Terminal Account Stats Grid */
.card .stats .stat {
  background: rgba(2, 6, 14, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
}
.card .stats .stat span {
  font-family: var(--term-font);
  font-size: 10px;
  color: #64748b;
  letter-spacing: 0.5px;
}
.card .stats .stat b {
  color: #f1f5f9;
  font-size: 13px;
}

/* Terminal Floating Action Button (Search FAB) */
.searchFab {
  background: linear-gradient(135deg, #0284c7, #0f766e) !important;
  border: 1px solid rgba(0, 243, 255, 0.5) !important;
  box-shadow: 0 8px 30px rgba(0, 243, 255, 0.35) !important;
  font-family: var(--term-font) !important;
  font-weight: 800 !important;
}
.searchFab:hover {
  box-shadow: 0 10px 36px rgba(0, 243, 255, 0.55) !important;
  transform: translateY(-3px) scale(1.03) !important;
}

/* Modal Consoles in Hacker Terminal Style */
.searchSheet,
.welcomeSheet,
.punishSheet {
  background: linear-gradient(165deg, #090f1d 0%, #040813 100%) !important;
  border: 1px solid rgba(0, 243, 255, 0.3) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 243, 255, 0.12) !important;
}

.searchForm input,
.punishForm input {
  background: #02050c !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #fff !important;
  font-family: var(--term-font) !important;
}
.searchForm input:focus,
.punishForm input:focus {
  border-color: var(--term-cyan) !important;
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.3) !important;
}

/* =====================================================================
 * SOC TERMINAL & HWID PILL STYLING
 * ===================================================================== */
.socHwidPill {
  display: inline-block;
  background: rgba(0, 243, 255, 0.1) !important;
  border: 1px solid rgba(0, 243, 255, 0.4) !important;
  color: var(--term-cyan) !important;
  font-family: var(--term-font) !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 5px !important;
  letter-spacing: 1px !important;
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

.socDevMetaHwid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  padding-bottom: 4px;
}

.socBtnSuccess {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border: 1px solid rgba(52, 211, 153, 0.5) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
  font-family: var(--term-font) !important;
  font-weight: 800 !important;
}
.socBtnSuccess:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
}

/* IPA Page Hacker Aesthetic */
.ipaHeroCard {
  border: 1px solid rgba(0, 243, 255, 0.3) !important;
}
.ipaPrimaryActionBtn {
  background: linear-gradient(135deg, #0284c7 0%, #0f766e 100%) !important;
  border: 1px solid rgba(0, 243, 255, 0.45) !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35) !important;
  font-family: var(--term-font) !important;
  font-weight: 800 !important;
}
.ipaVideoIntroCard {
  border: 1px solid rgba(0, 243, 255, 0.25) !important;
  background: rgba(4, 8, 16, 0.95) !important;
}

/* Responsive Mobile Perfection */
@media (max-width: 640px) {
  .commandNavbar .brandText small { display: none; }
  .card .stats { grid-template-columns: repeat(2, 1fr) !important; }
  .card .cardActions { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 6px !important; }
  .socHwidPill { font-size: 11px !important; word-break: break-all; }
  .socDevMetaHwid { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
 * ADMIN KEY MANAGER: EDIT MODAL, PRESET CHIPS & UID ROW STYLES
 * ===================================================================== */
.akActionBtn.akBtnEdit {
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.3);
  color: #00ff9d;
}
.akActionBtn.akBtnEdit:hover {
  background: rgba(0, 255, 157, 0.22);
  border-color: #00ff9d;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.25);
}

.akSubBox {
  background: rgba(2, 6, 18, 0.55);
  border: 1px solid rgba(0, 243, 255, 0.14);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.akSubBoxTop {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.akQuickPresetRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.akPresetChip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--term-font, monospace);
}
.akPresetChip:hover {
  background: rgba(0, 243, 255, 0.12);
  border-color: rgba(0, 243, 255, 0.4);
  color: #00f3ff;
}
.akPresetChip.active {
  background: rgba(0, 243, 255, 0.22);
  border-color: #00f3ff;
  color: #00f3ff;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.3);
}

/* Edit Key Admin Modal */
.akEditOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.akEditOverlay.open {
  display: flex !important;
}
.akEditSheet {
  max-width: 680px;
  width: 100%;
  background: linear-gradient(180deg, #070d19 0%, #030712 100%);
  border: 1px solid rgba(0, 243, 255, 0.35);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 243, 255, 0.18);
  max-height: 90vh;
  overflow-y: auto;
}
.akEditHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.akEditTitleWrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.akPulseBadge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #00f3ff;
  text-transform: uppercase;
  font-family: var(--term-font, monospace);
}
.akEditTitle {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.akEditCode {
  color: #00ff9d;
  font-family: var(--term-font, monospace);
  font-weight: 800;
}
.akQuickChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.akChipBtn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--term-font, monospace);
}
.akChipBtn:hover {
  background: rgba(0, 243, 255, 0.18);
  border-color: #00f3ff;
  color: #00f3ff;
}

/* Account Card UID Ingame Row */
.uidValRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  margin: 4px 0;
}
.uidText {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--term-font, monospace);
  font-size: 13px;
  font-weight: 800;
  color: #00f3ff;
}
.uidText code {
  color: #00ff9d;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.25);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 12px;
}
.miniCopyUidBtn {
  background: rgba(0, 243, 255, 0.12);
  border: 1px solid rgba(0, 243, 255, 0.35);
  color: #00f3ff;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--term-font, monospace);
}
.miniCopyUidBtn:hover {
  background: rgba(0, 243, 255, 0.28);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* ==========================================================================
   MODERN IPAS-STYLE PORTAL (Tham khảo ipas.cc/4tfl9e - Rộng, Thoáng, Hiện đại)
   ========================================================================== */
.ipaModernWrap {
  max-width: 960px !important;
  margin: 0 auto;
  padding: 30px 20px 80px;
}

.ipaModernContainer {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 1. Hero Card Tổng Quan */
.ipaHeroCard {
  background: rgba(13, 20, 36, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 243, 255, 0.18);
  border-radius: 24px;
  padding: 36px 36px 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.ipaHeroCard::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ipaHeroHeader {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}

.ipaHeroIconBox {
  position: relative;
  flex-shrink: 0;
  width: 116px;
  height: 116px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15);
  background: #000;
}

.ipaHeroIcon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ipaHeroMeta {
  flex: 1;
  min-width: 0;
}

.ipaHeroTitle {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
  line-height: 1.25;
}

.ipaHeroSubtitle {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 16px;
  line-height: 1.5;
}

.ipaPillsRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ipaPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  font-family: var(--term-font, monospace);
}

.ipaPill svg {
  width: 14px;
  height: 14px;
  color: #38bdf8;
}

.ipaPillSuccess {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.ipaPillSuccess svg {
  color: #10b981;
}

/* 2. Action Gateway (Khu vực nhập Key & Nút Cài đặt) */
.ipaActionGateway {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ipaModernKeyForm {
  margin-bottom: 18px;
}

.ipaKeyInputGroup {
  display: flex;
  align-items: center;
  background: rgba(6, 11, 22, 0.85);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 14px;
  padding: 6px 8px 6px 16px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.ipaKeyInputGroup:focus-within {
  border-color: #00f3ff;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.25);
}

.ipaKeyInputPrefix svg {
  width: 20px;
  height: 20px;
  color: #00f3ff;
  margin-right: 12px;
  display: block;
}

.ipaKeyInputGroup input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--term-font, monospace);
  letter-spacing: 0.5px;
}

.ipaKeyInputGroup input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.ipaModernRedeemBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.ipaModernRedeemBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.5);
  filter: brightness(1.08);
}

.ipaModernRedeemBtn svg {
  width: 17px;
  height: 17px;
}

.ipaBuyKeyBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

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

.ipaPriceBadge {
  background: rgba(0, 243, 255, 0.12);
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: #00f3ff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  font-family: var(--term-font, monospace);
}

.ipaBuyKeyNote {
  font-size: 13px;
  color: #94a3b8;
}

.ipaBuyBtnModern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: #38bdf8;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.ipaBuyBtnModern:hover {
  background: rgba(0, 243, 255, 0.2);
  color: #ffffff;
  border-color: #00f3ff;
}

.ipaBuyBtnModern svg {
  width: 16px;
  height: 16px;
}

/* Hộp Đã Mở Khoá Cài Đặt (Unlocked Box) */
.ipaUnlockedBoxModern {
  background: rgba(6, 26, 26, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(16, 185, 129, 0.15);
}

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

.ipaUnlockedBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00ff9d;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  font-family: var(--term-font, monospace);
}

.ipaUnlockedBadge svg {
  width: 18px;
  height: 18px;
}

.ipaRemainingPill {
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--term-font, monospace);
}

.ipaDownloadButtonsModern {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.ipaBigBtnInstall {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #0284c7 0%, #10b981 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.35);
  text-align: left;
}

.ipaBigBtnInstall:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
  filter: brightness(1.08);
}

.ipaBigBtnInstall svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.ipaBtnLabelCol {
  display: flex;
  flex-direction: column;
}

.ipaBtnMainText {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.ipaBtnSubText {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.ipaBigBtnIpa {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.ipaBigBtnIpa:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #00f3ff;
  color: #ffffff;
}

.ipaBigBtnIpa svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #38bdf8;
}

/* 3. Specs Grid Section (Bảng Thông Số Kỹ Thuật) */
.ipaSpecsGridSection,
.ipaGuideSection,
.ipaDescCard,
.ipaMediaSection {
  background: rgba(13, 20, 36, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.ipaSectionTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ipaSectionTitle svg {
  width: 19px;
  height: 19px;
  color: #00f3ff;
}

.ipaModernSpecsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ipaModernSpecItem {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.specItemLabel {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-family: var(--term-font, monospace);
}

.specItemValue {
  font-size: 14px;
  color: #f1f5f9;
  font-weight: 700;
  word-break: break-word;
}

/* 4. Hướng Dẫn Cài Đặt 2 Bước Chuẩn iOS */
.ipaGuideStepsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ipaStepCard {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.ipaStepNumber {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
  border: 1px solid #00f3ff;
  color: #00f3ff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--term-font, monospace);
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.25);
}

.ipaStepContent h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.ipaStepContent p {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.ipaStepContent b {
  color: #e2e8f0;
}

/* 5. Mô Tả Chi Tiết */
.ipaDescText {
  font-size: 14.5px;
  line-height: 1.7;
  color: #cbd5e1;
}

/* Responsive Cho Mobile */
@media (max-width: 768px) {
  .ipaModernWrap {
    padding: 20px 14px 60px;
  }
  .ipaHeroCard {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .ipaHeroHeader {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .ipaPillsRow {
    justify-content: center;
  }
  .ipaKeyInputGroup {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }
  .ipaModernRedeemBtn {
    width: 100%;
    justify-content: center;
  }
  .ipaDownloadButtonsModern {
    grid-template-columns: 1fr;
  }
  .ipaModernSpecsGrid {
    grid-template-columns: 1fr 1fr;
  }
  .ipaGuideStepsGrid {
    grid-template-columns: 1fr;
  }
}

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



