/* Achilles Bank — 100% Idle Bank Tycoon: Money Empire Visual Theme & Layout (`styles.css`) */

:root {
  --ibt-navy-dark: #131c29;
  --ibt-navy-panel: #1b2838;
  --ibt-navy-card: #24344d;
  --ibt-navy-border: #334b6e;
  --ibt-blue-btn: #2589f5;
  --ibt-blue-btn-dark: #1864c4;
  --ibt-green-btn: #16d162;
  --ibt-green-btn-dark: #0e9f47;
  --ibt-gold: #fbbf24;
  --ibt-gold-dark: #d97706;
  --ibt-purple-rep: #a855f7;
  --ibt-red-close: #f43f5e;
  --ibt-text: #f8fafc;
  --ibt-muted: #94a3b8;
}

* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0f172a;
  color: var(--ibt-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Trebuchet MS", "Segoe UI", Roboto, sans-serif;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.hidden {
  display: none !important;
}

/* ======================== 3D VIEWPORT & WORLD OVERLAYS ======================== */
.game-viewport {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.bank-canvas-3d {
  width: 100%;
  height: 100%;
  display: block;
}

.world-labels-container,
.floating-text-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.world-dept-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  background: rgba(19, 28, 41, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 4px 10px 4px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease, border-color 0.12s ease;
  cursor: pointer;
}

.world-dept-tag:hover,
.world-dept-tag.selected {
  border-color: var(--ibt-green-btn);
  transform: translate(-50%, -105%) scale(1.06);
}

.world-dept-tag.locked {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-color: var(--ibt-gold);
}

.wdt-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ibt-gold);
  background: #0f172a;
}

.wdt-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wdt-name {
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.wdt-sub {
  font-size: 10px;
  font-weight: 800;
  color: #4ade80;
}

.world-dept-tag.locked .wdt-sub {
  color: var(--ibt-gold);
}

/* Circular Yellow Progress Ring (`ref_4.png`) */
.wdt-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(#facc15 var(--prog, 65%), rgba(255, 255, 255, 0.16) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.wdt-ring-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1b2838;
}

.floating-cash-pop {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 900;
  color: #4ade80;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
  animation: floatUpFade 1.2s ease-out forwards;
  white-space: nowrap;
}

@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -44px) scale(1.1);
  }
}

/* ======================== TOP HUD BAR (`aq_12_.jpg`) ======================== */
.ibt-top-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: max(8px, env(safe-area-inset-top)) 10px 6px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.72) 82%, transparent 100%);
  pointer-events: none;
  max-width: 780px;
  margin: 0 auto;
}

.ibt-top-hud > * {
  pointer-events: auto;
}

.ibt-currency-row {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 0.95fr 0.9fr;
  gap: 6px;
  align-items: center;
}

.ibt-rep-pill {
  display: flex;
  align-items: center;
  background: var(--ibt-navy-dark);
  border: 2px solid #475569;
  border-radius: 12px;
  padding: 3px 6px 3px 4px;
  gap: 6px;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.ibt-rep-star {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #c084fc 0%, #7e22ce 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 0.95;
  box-shadow: 0 2px 6px rgba(168, 85, 247, 0.5);
  flex-shrink: 0;
}

.ibt-rep-star span {
  font-size: 9px;
  color: #fde047;
}

.ibt-rep-star strong {
  font-size: 13px;
  font-weight: 900;
}

.ibt-rep-bar-wrap {
  position: relative;
  flex: 1;
  height: 18px;
  background: #0f172a;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ibt-rep-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #9333ea 0%, #c084fc 100%);
  transition: width 0.25s ease;
}

.ibt-rep-bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}

.ibt-resource-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ibt-navy-dark);
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 3px 5px 3px 7px;
  gap: 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.res-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.res-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  min-width: 0;
  flex: 1;
}

.res-text-col strong {
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
}

.res-text-col small {
  font-size: 9.5px;
  font-weight: 800;
  color: #4ade80;
  white-space: nowrap;
}

.ingots-pill .res-text-col small {
  color: #fbbf24;
}

.bulbs-pill .res-text-col small {
  color: #fde047;
}

.res-plus-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ======================== MILESTONE BAR & 3 QUEST CARDS (`aq_5.jpg`, `aq_12_.jpg`) ======================== */
.ibt-milestone-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.ibt-milestone-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--ibt-navy-dark);
  border: 2px solid #334155;
  border-radius: 11px;
  padding: 3px 6px;
  gap: 8px;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.ibt-milestone-track {
  position: relative;
  flex: 1;
  height: 20px;
  background: #0b1120;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ibt-milestone-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
  transition: width 0.25s ease;
}

.milestone-tick {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.ibt-milestone-branch-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #f8fafc;
  text-shadow: 0 1px 3px #000;
}

.ibt-milestone-gift-badge {
  width: 28px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  border: 1.5px solid #fde047;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.ibt-map-pin-btn {
  width: 36px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border: 2px solid #64748b;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* 3 Quest Cards Row (`aq_5.jpg`, `aq_12_.jpg`) */
.ibt-quest-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.ibt-quest-card {
  background: rgba(21, 32, 48, 0.95);
  border: 2px solid #334b6e;
  border-radius: 11px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease;
}

.ibt-quest-card:active {
  transform: scale(0.97);
}

.ibt-quest-card.ready {
  background: linear-gradient(180deg, #15803d 0%, #166534 100%);
  border-color: #4ade80;
  animation: pulseQuestGreen 1.4s infinite;
}

@keyframes pulseQuestGreen {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0);
  }
}

.qc-top {
  display: flex;
  align-items: center;
  gap: 5px;
}

.qc-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.qc-title {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  color: #e2e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qc-bar {
  position: relative;
  height: 13px;
  background: #0f172a;
  border-radius: 5px;
  overflow: hidden;
}

.qc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
}

.ibt-quest-card.ready .qc-bar-fill {
  background: linear-gradient(90deg, #22c55e 0%, #86efac 100%);
}

.qc-bar-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}

/* Quick Camera Strip */
.ibt-dept-quick-strip {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.ibt-dept-quick-strip::-webkit-scrollbar {
  display: none;
}

.dept-quick-pill {
  background: rgba(19, 28, 41, 0.88);
  border: 1.5px solid #334155;
  color: #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dept-quick-pill.active {
  border-color: var(--ibt-green-btn);
  background: rgba(22, 209, 98, 0.22);
  color: #fff;
}

/* Round 1 Pipeline Diagnostics Bar & Round 2 Onboarding Strip */
.ibt-pipeline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 5px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  border-radius: 9px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
}

.pipeline-status {
  color: #4ade80;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipeline-vault-cap {
  color: #93c5fd;
  white-space: nowrap;
}

.webapp-mode-pill {
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 9.5px;
  font-weight: 900;
  flex-shrink: 0;
}

.ibt-onboarding-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  background: linear-gradient(90deg, rgba(21, 128, 61, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid #4ade80;
  border-radius: 11px;
  padding: 5px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.onb-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid #fde047;
  object-fit: cover;
  flex-shrink: 0;
}

.onb-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.15;
}

.onb-copy strong {
  font-size: 10.5px;
  color: #fde047;
}

.onb-copy span {
  font-size: 10px;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.onb-cta-btn {
  background: #fde047;
  color: #0f172a;
  font-size: 10.5px;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 8px;
  flex-shrink: 0;
  animation: pulseQuestGreen 1.2s infinite;
}

/* Round 5 Widescreen Desktop WebApp Mode (`body.webapp-widescreen`) */
@media (min-width: 960px) {
  body.webapp-widescreen .ibt-top-hud {
    max-width: 920px;
  }
  body.webapp-widescreen .ibt-dept-drawer {
    left: auto;
    right: 16px;
    top: 170px;
    bottom: 86px;
    transform: none;
    width: 380px;
    overflow-y: auto;
  }
  body.webapp-widescreen .ibt-right-floating-stack {
    left: 16px;
    right: auto;
    top: 170px;
  }
}

/* ======================== RIGHT & CORNER FLOATING BUTTONS (`aq_12_.jpg`) ======================== */
.ibt-right-floating-stack {
  position: fixed;
  right: 10px;
  top: 168px;
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.ibt-float-circle-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(27, 40, 56, 0.94);
  border: 2px solid #475569;
  color: #fff;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.ibt-float-circle-btn.bulb-float {
  border-color: #facc15;
}

.float-mini-pill {
  position: absolute;
  bottom: -5px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 999px;
}

.ibt-float-cash-ad-btn {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  border: 2px solid #86efac;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.5);
}

.cash-ad-icon {
  font-size: 18px;
  line-height: 1;
}

.cash-ad-sub {
  font-size: 8.5px;
  font-weight: 900;
}

.ibt-corner-event-btn {
  position: fixed;
  bottom: 84px;
  z-index: 18;
  width: 58px;
  height: 62px;
  border-radius: 15px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #f43f5e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}

.ibt-corner-event-btn.left-offer {
  left: 10px;
}

.ibt-corner-right-group {
  position: fixed;
  right: 10px;
  bottom: 84px;
  z-index: 18;
  display: flex;
  gap: 8px;
}

.ibt-corner-right-group .ibt-corner-event-btn {
  position: static;
}

.ibt-corner-event-btn.wheel-event {
  border-color: #c084fc;
  background: linear-gradient(180deg, #581c87 0%, #2e1065 100%);
}

.ibt-corner-event-btn.right-lte {
  border-color: #38bdf8;
  background: linear-gradient(180deg, #0369a1 0%, #0c4a6e 100%);
}

.corner-badge {
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
}

.corner-icon {
  font-size: 22px;
  line-height: 1;
}

.corner-timer {
  font-size: 9px;
  font-weight: 800;
  color: #fde047;
}

/* ======================== DEPARTMENT UPGRADE DRAWER (`ref_5.png`) ======================== */
.ibt-dept-drawer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 76px;
  width: min(96vw, 680px);
  z-index: 25;
  background: var(--ibt-navy-panel);
  border: 2px solid var(--ibt-navy-border);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.65);
}

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

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

.drawer-dept-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ibt-navy-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.drawer-dept-name {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.drawer-dept-sub {
  font-size: 11px;
  color: #4ade80;
  font-weight: 800;
}

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

.buy-mult-group {
  display: flex;
  background: #0f172a;
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}

.buy-mult-btn {
  background: transparent;
  color: var(--ibt-muted);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 7px;
}

.buy-mult-btn.active {
  background: var(--ibt-blue-btn);
  color: #fff;
}

.ibt-close-x {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ibt-red-close);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.drawer-milestone-strip {
  margin-top: 8px;
  background: #131c29;
  border-radius: 10px;
  padding: 6px 10px;
}

.dms-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.dms-badge {
  background: #f59e0b;
  color: #0f172a;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 900;
}

.dms-next {
  color: #cbd5e1;
}

.dms-bar {
  height: 8px;
  background: #0b1120;
  border-radius: 999px;
  overflow: hidden;
}

.dms-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #fde047 100%);
}

.drawer-manager-slot {
  margin-top: 8px;
  background: var(--ibt-navy-card);
  border: 1.5px solid var(--ibt-navy-border);
  border-radius: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dms-mgr-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dms-mgr-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--ibt-gold);
  background: #0f172a;
}

.dms-mgr-title {
  font-size: 13px;
  font-weight: 900;
}

.dms-mgr-meta {
  font-size: 11px;
  color: #4ade80;
  font-weight: 800;
}

.drawer-upgrades-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upgrade-row-card {
  background: var(--ibt-navy-card);
  border: 1.5px solid var(--ibt-navy-border);
  border-radius: 12px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.urc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.urc-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.urc-name {
  font-size: 13px;
  font-weight: 900;
}

.urc-sub {
  font-size: 11px;
  color: var(--ibt-muted);
  font-weight: 700;
}

.ibt-upgrade-green-btn {
  min-width: 124px;
  padding: 8px 14px;
  border-radius: 11px;
  background: linear-gradient(180deg, #16d162 0%, #0e9f47 100%);
  border-bottom: 3px solid #065f46;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(22, 209, 98, 0.35);
}

.ibt-upgrade-green-btn.disabled {
  background: #334155;
  border-bottom-color: #1e293b;
  color: #94a3b8;
  box-shadow: none;
}

.ugb-top {
  font-size: 11px;
  letter-spacing: 0.03em;
}

.ugb-cost {
  font-size: 13px;
}

/* ======================== BOTTOM 5-BUTTON DOCK (`aq_12_.jpg`) ======================== */
.ibt-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 22;
  padding: 6px 10px max(8px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(19, 28, 41, 0.85) 0%, #131c29 45%);
  border-top: 2px solid #24344d;
  display: grid;
  grid-template-columns: 1fr 1fr 1.45fr 1fr 1fr;
  gap: 7px;
  max-width: 780px;
  margin: 0 auto;
}

.ibt-dock-btn {
  position: relative;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2b8ff7 0%, #1d64c9 100%);
  border-bottom: 4px solid #13448f;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.ibt-dock-btn:active,
.ibt-dock-boost-btn:active {
  transform: translateY(2px);
}

.dock-free-tag {
  position: absolute;
  top: -7px;
  background: #22c55e;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1.5px solid #fff;
}

.dock-notify-dot {
  position: absolute;
  top: -6px;
  right: -4px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1.5px solid #fff;
}

.dock-notify-dot.red {
  background: #ef4444;
  color: #fff;
}

.dock-icon {
  font-size: 22px;
  line-height: 1;
}

.dock-rep-star {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c084fc 0%, #7e22ce 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 12px;
  font-weight: 900;
}

.dock-label {
  font-size: 10.5px;
  font-weight: 900;
}

/* Center Wide Green `x2 BOOST` Button (`aq_12_.jpg`) */
.ibt-dock-boost-btn {
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  border-bottom: 4px solid #065f46;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.45);
}

.boost-btn-top {
  display: flex;
  align-items: center;
  gap: 4px;
}

.boost-cash-icon {
  font-size: 18px;
}

.boost-x2-text {
  font-size: 20px;
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.55);
}

.boost-btn-sub {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* ======================== MODALS (`ref_6.png`, `aq_5.jpg`, `aq_6.jpg`, `aq_7.jpg`, `aq_13.jpg`) ======================== */
.ibt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(9, 14, 23, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.ibt-modal-host {
  width: min(96vw, 680px);
  max-height: 90vh;
  background: var(--ibt-navy-panel);
  border: 2.5px solid var(--ibt-navy-border);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

.modal-topbar {
  background: var(--ibt-navy-dark);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ibt-navy-border);
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #7dd3fc;
  text-transform: uppercase;
}

.modal-body {
  padding: 14px;
  overflow-y: auto;
  flex: 1;
}

/* ======================== MANAGER COLLECTION & `ref_6.png` INSPECTOR ======================== */
.mgr-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mgr-filter-pill {
  background: var(--ibt-navy-dark);
  color: var(--ibt-muted);
  border: 1.5px solid var(--ibt-navy-border);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.mgr-filter-pill.active {
  background: var(--ibt-blue-btn);
  color: #fff;
  border-color: #93c5fd;
}

.mgr-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
}

.ibt-mgr-card {
  position: relative;
  border-radius: 16px;
  padding: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.ibt-mgr-card:hover {
  transform: translateY(-3px);
}

.ibt-mgr-card.locked {
  filter: grayscale(0.55) brightness(0.78);
}

.mc-rarity-tag {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.mc-portrait {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
}

.mc-name {
  font-size: 12.5px;
  font-weight: 900;
  margin-top: 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.mc-meta-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 900;
  margin-top: 3px;
}

.mc-stars {
  color: #fde047;
  letter-spacing: -1px;
}

/* Exact `ref_6.png` UNCLE AKUNNA / PANTHEON HERO Detail View */
.mgr-detail-card {
  background: #152232;
  border: 2px solid #334b6e;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
}

.mgr-detail-grid {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 10px;
  align-items: stretch;
}

.mgr-hero-showcase {
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 3px solid #fde68a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.mhs-rarity {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.mhs-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
}

.mhs-stars {
  font-size: 18px;
  color: #fde047;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

.mgr-stats-box,
.mgr-abilities-box {
  background: #243854;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.box-pill-header {
  display: inline-block;
  background: #476285;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.stat-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-line:last-child {
  border-bottom: none;
}

.stat-line-icon {
  font-size: 18px;
}

.stat-line-label {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 700;
}

.stat-line-val {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
}

.abilities-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ability-tile {
  flex: 1;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.ab-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* ======================== SHOP (`aq_13.jpg`, `aq_14.jpg`) ======================== */
.shop-section-title {
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #93c5fd;
  background: #131c29;
  padding: 6px;
  border-radius: 8px;
  margin: 12px 0 8px;
}

.shop-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
}

.shop-item-card {
  background: var(--ibt-navy-card);
  border: 2px solid var(--ibt-navy-border);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}

.sic-badge {
  background: #ef4444;
  color: #fff;
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
}

.sic-title {
  font-size: 12px;
  font-weight: 900;
}

.sic-icon {
  font-size: 32px;
  margin: 4px 0;
}

.ibt-gold-buy-btn {
  width: 100%;
  padding: 7px 10px;
  border-radius: 9px;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  border-bottom: 3px solid #92400e;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

/* ======================== AUDIT MADNESS 7x5 MATCH-3 BATTLER (`aq_6.jpg`) ======================== */
.audit-stage-wrap {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #334b6e;
  border-radius: 18px;
  padding: 10px;
}

.audit-goal-bar {
  position: relative;
  height: 24px;
  background: #0b1120;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #475569;
  margin-bottom: 8px;
}

.audit-goal-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a 0%, #4ade80 100%);
  transition: width 0.25s ease;
}

.audit-goal-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.audit-boardroom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 70%, #b45309 70%, #92400e 100%);
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 8px;
  color: #0f172a;
}

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

.auditor-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 2px solid #0f172a;
}

.auditor-speech {
  background: #e0f2fe;
  border: 2px solid #0284c7;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  max-width: 260px;
}

.match3-clipboard {
  background: #60a5fa;
  border: 3px solid #2563eb;
  border-radius: 14px;
  padding: 6px;
}

.match3-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.m3-tile {
  aspect-ratio: 1;
  border-radius: 10px;
  background: #e2e8f0;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.m3-tile.selected {
  transform: scale(1.12);
  border-color: #ffffff;
  box-shadow: 0 0 12px #fde047;
}

.m3-tile.tile-blue {
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  border-color: #bfdbfe;
}
.m3-tile.tile-green {
  background: linear-gradient(145deg, #4ade80, #16a34a);
  border-color: #bbf7d0;
}
.m3-tile.tile-yellow {
  background: linear-gradient(145deg, #fde047, #ca8a04);
  border-color: #fef08a;
}
.m3-tile.tile-pink {
  background: linear-gradient(145deg, #f472b6, #db2777);
  border-color: #fbcfe8;
}
.m3-tile.tile-red {
  background: linear-gradient(145deg, #fb923c, #ea580c);
  border-color: #fed7aa;
}

.audit-hp-bar {
  margin: 8px 0;
  height: 18px;
  background: #334155;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.audit-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #e11d48 0%, #fb7185 100%);
}

.audit-hp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
}

.audit-squad-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.squad-Battle-card {
  background: var(--ibt-navy-card);
  border: 2px solid var(--ibt-navy-border);
  border-radius: 11px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.squad-Battle-card.charged {
  border-color: #fde047;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.65);
  animation: pulseQuestGreen 1.1s infinite;
}

.sbc-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* ======================== TOAST ======================== */
.bank-toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: rgba(15, 23, 42, 0.96);
  border: 2px solid #4ade80;
  border-radius: 14px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.bank-toast-icon {
  font-size: 22px;
}

.bank-toast-title {
  font-size: 13px;
  font-weight: 900;
}

.bank-toast-sub {
  font-size: 11px;
  color: #4ade80;
  font-weight: 800;
}
