:root {
  --bg-main: #1e1e1e;
  --bg-card: #26282c;
  --bg-input: #17191c;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border: #374151;
  --danger: #ef4444;
  --success: #34d399;
  --info: #38bdf8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none;
}

.hidden {
  display: none !important;
}

.screen {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* --- LAYAR LOGIN --- */
#auth-screen {
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at top, #2c241b 0%, var(--bg-main) 60%);
}

.auth-card {
  width: 100%;
  max-width: 390px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.logo-hero {
  width: 156px;
  height: 156px;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  background-color: var(--bg-main);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.tagline {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--accent);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 10px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--accent);
  color: #111827;
}

.input-group {
  margin-bottom: 14px;
}

.input-group label {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
}

.input-group input:focus {
  border-color: var(--accent);
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  padding-right: 68px;
}

.eye-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 8px;
  cursor: pointer;
}

.form-msg {
  font-size: 0.85rem;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.form-msg.success {
  background: rgba(52, 211, 153, 0.14);
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.4);
}

.btn-primary {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --- LAYOUT GAME MOBILE --- */
.game-layout {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
  background: #111317;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.65);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #17191c;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo-mini {
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: center;
  border-radius: 9px;
  border: 1px solid var(--accent);
  background: var(--bg-main);
}

.brand-title {
  display: block;
  font-size: 0.94rem;
  color: var(--accent);
  line-height: 1.1;
}

.player-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.coin-pill {
  background: #26282c;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  color: #fde68a;
}

.btn-icon-top {
  background: #26282c;
  color: var(--text-main);
  border: 1px solid var(--border);
  width: 32px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.78rem;
  cursor: pointer;
}

/* --- STAGE CANVAS & HUD --- */
.stage-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.hud-top {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.hud-env-row {
  position: absolute;
  top: 42px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.hud-ticker-row {
  position: absolute;
  top: 72px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.hud-chip {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  max-width: 64%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-chip-sm {
  font-size: 0.71rem;
  padding: 4px 9px;
  border-color: rgba(148, 163, 184, 0.28);
}

.hud-chip.full {
  border-color: var(--danger);
  color: #fca5a5;
}

.hud-ticker {
  flex: 1;
  min-width: 0;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-size: 0.71rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mission-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  border-color: rgba(56, 189, 248, 0.5);
  color: #bae6fd;
  overflow: visible;
}

.mission-chip.has-claim {
  border-color: #facc15;
  background: rgba(120, 53, 15, 0.85);
  color: #fef08a;
}

.badge-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
}

.status-pill {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 0.77rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.toast {
  position: absolute;
  top: 104px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 380px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.83rem;
  font-weight: 700;
  background: rgba(17, 24, 39, 0.94);
  border: 1px solid var(--info);
  color: #f8fafc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 15;
  pointer-events: none;
}

.toast.success {
  border-color: var(--success);
  color: #a7f3d0;
}

.toast.record {
  border-color: #facc15;
  color: #fef08a;
  background: rgba(66, 32, 6, 0.94);
}

.toast.danger {
  border-color: var(--danger);
  color: #fecaca;
}

/* --- KONTROL DRAG REEL, JEMPOL & NAVIGASI BAWAH --- */
.control-dock {
  flex-shrink: 0;
  background: #17191c;
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drag-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #202329;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 4px 6px 4px 10px;
}

.drag-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.drag-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  flex: 1;
}

.drag-btn {
  border: 1px solid transparent;
  background: #17191c;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.drag-btn.active[data-drag="low"] {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34d399;
  color: #6ee7b7;
}

.drag-btn.active[data-drag="mid"] {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  color: #fde68a;
}

.drag-btn.active[data-drag="high"] {
  background: rgba(239, 68, 68, 0.22);
  border-color: #f87171;
  color: #fecaca;
}

.action-btn {
  width: 100%;
  padding: 13px 12px;
  border: none;
  border-radius: 14px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.08s ease;
}

.action-btn:active {
  transform: scale(0.98);
}

.action-btn span {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.action-btn small {
  font-size: 0.73rem;
  opacity: 0.92;
}

.action-btn.state-idle {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.action-btn.state-charge {
  background: linear-gradient(135deg, #10b981, #059669);
}

.action-btn.state-wait {
  background: linear-gradient(135deg, #334155, #1e293b);
  border: 1px solid #475569;
}

.action-btn.state-lure {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.action-btn.state-bite {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  animation: pulseStrike 0.45s infinite alternate;
}

.action-btn.state-combo {
  background: linear-gradient(135deg, #facc15, #dc2626);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.55);
  animation: pulseStrike 0.3s infinite alternate;
}

.action-btn.state-fight {
  background: linear-gradient(135deg, #0284c7, #2563eb);
}

.action-btn.state-treasure {
  background: linear-gradient(135deg, #d97706, #eab308);
}

.action-btn.state-danger {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

@keyframes pulseStrike {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.nav-btn {
  background: #23262b;
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 10px;
  padding: 7px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-btn:active {
  background: #2f333a;
}

.nav-icon {
  font-size: 1rem;
}

/* --- MODAL BOTTOM SHEET --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 40;
}

.modal-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 84dvh;
  background: #1d2025;
  border-top: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #17191c;
}

.modal-header h3 {
  font-size: 1.02rem;
  color: var(--accent);
}

.modal-close-btn {
  background: #26282c;
  color: var(--text-main);
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.modal-body {
  padding: 14px 16px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- POP-UP KARTU IKAN, BOSS & PETI HARTA KARUN --- */
.catch-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 24, 0.78);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 60;
}

.catch-card {
  width: 100%;
  max-width: 370px;
  background: linear-gradient(180deg, #13233b 0%, #0f172a 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 22px;
  padding: 18px 18px 20px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: catchPopIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.catch-card.boss-card {
  background: linear-gradient(180deg, #450a0a 0%, #1c1018 100%);
  border-color: #facc15;
  box-shadow: 0 0 38px rgba(250, 204, 21, 0.35), 0 22px 50px rgba(0, 0, 0, 0.75);
}

.catch-card.treasure-card {
  background: linear-gradient(180deg, #422006 0%, #17120c 100%);
  border-color: #facc15;
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.35), 0 22px 50px rgba(0, 0, 0, 0.75);
}

@keyframes catchPopIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.catch-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}

.catch-pill {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.record-pill {
  background: rgba(250, 204, 21, 0.22);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.55);
}

.catch-visual-box {
  width: 100%;
  height: 140px;
  border-radius: 16px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.24) 0%, rgba(15, 23, 42, 0.45) 75%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.treasure-visual-box {
  height: 130px;
  background: radial-gradient(circle at center, rgba(250, 204, 21, 0.28) 0%, rgba(23, 18, 12, 0.55) 75%);
  border-color: rgba(250, 204, 21, 0.35);
}

#catch-fish-canvas {
  width: 260px;
  height: 140px;
  display: block;
}

#treasure-canvas {
  width: 240px;
  height: 130px;
  display: block;
}

.catch-name {
  font-size: 1.28rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 4px;
}

.catch-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 12px;
  max-width: 310px;
}

.boss-bonus-banner {
  width: 100%;
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #fef08a;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.treasure-rewards {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.treasure-reward-pill {
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #fef08a;
  padding: 10px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
}

.treasure-reward-pill.bait-bonus {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
  font-size: 0.88rem;
}

.catch-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.catch-stat-box {
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.stat-value {
  font-size: 0.86rem;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value.coin-val {
  color: #fde047;
}

.catch-cooler-note {
  font-size: 0.76rem;
  color: #7dd3fc;
  margin-bottom: 14px;
}

.catch-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-sell-quick {
  width: 100%;
  padding: 10px;
  border-radius: 11px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-sell-quick:active {
  background: rgba(16, 185, 129, 0.28);
}

/* --- KOLEKSI BERGAMBAR (2 KOLOM) --- */
.collection-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.fish-dex-card {
  background: #232730;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fish-dex-card.locked {
  opacity: 0.7;
  background: #1b1e24;
}

.fish-dex-card.boss-dex {
  border-color: rgba(250, 204, 21, 0.55);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.32), #232730);
}

.fish-thumb-wrap {
  width: 100%;
  height: 62px;
  border-radius: 9px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.72));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fish-thumb-canvas {
  width: 120px;
  height: 62px;
  display: block;
}

.dex-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
}

.dex-meta {
  font-size: 0.71rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* --- BAR PROGRES MISI HARIAN --- */
.mission-progress-bar {
  width: 100%;
  height: 8px;
  background: #17191c;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.mission-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #34d399);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.mission-progress-fill.done {
  background: linear-gradient(90deg, #f59e0b, #facc15);
}

/* --- KARTU ITEM MODAL & TOKO ALAT --- */
.card-item {
  background: #262930;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-item.active-card {
  border-color: var(--accent);
  background: #2b2720;
}

.card-item.sonar-card {
  border-color: rgba(16, 185, 129, 0.55);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.35), rgba(15, 23, 42, 0.65));
}

.upgrade-next {
  background: rgba(15, 23, 42, 0.55);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 0.77rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item-title {
  font-size: 0.94rem;
  font-weight: 700;
}

.item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pill-tag {
  display: inline-block;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #17191c;
}

.trend-hot {
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.5);
}

.trend-up {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
}

.trend-down {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.btn-sm {
  border: none;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: #111827;
}

.btn-success {
  background: #10b981;
  color: #052e16;
}

.btn-muted {
  background: #374151;
  color: #9ca3af;
  cursor: default;
}

.btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.market-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(234, 88, 12, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.world-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.world-stat {
  background: #202329;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px;
}

.world-stat .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.world-stat .val {
  font-size: 0.92rem;
  font-weight: 700;
}

.empty-box {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  background: #202329;
  border-radius: 12px;
  border: 1px dashed var(--border);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.fish-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

/* --- TAB FILTER KOLEKSI 100 IKAN (TAHAP 4C) --- */
.collection-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  position: sticky;
  top: -14px;
  background: #1d2025;
  padding: 6px 0 8px;
  z-index: 5;
}

.col-tab-btn {
  background: #23262b;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 7px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.col-tab-btn span {
  font-size: 0.74rem;
  font-weight: 700;
}

.col-tab-btn small {
  font-size: 0.66rem;
  opacity: 0.85;
}

.col-tab-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent);
  color: #fde68a;
}

/* --- PROFIL LEVEL, XP, GELAR & AKUARIUM (TAHAP 4D) --- */
.profile-btn {
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
  color: inherit;
  min-width: 0;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.level-badge {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.xp-mini-track {
  width: 118px;
  height: 4px;
  background: #262930;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}

.xp-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #34d399);
  transition: width 0.25s ease;
}

.xp-pill {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.aquarium-chip {
  flex-shrink: 0;
  border-color: rgba(45, 212, 191, 0.55);
  color: #99f6e4;
}

.aquarium-chip.has-coins {
  border-color: #facc15;
  background: rgba(19, 78, 74, 0.88);
  color: #fef08a;
}

.catch-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-aqua-quick {
  width: 100%;
  padding: 10px 6px;
  border-radius: 11px;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-aqua-quick:active {
  background: rgba(14, 165, 233, 0.28);
}

/* Tangki Kaca Akuarium Hidup */
.aquarium-tank-wrap {
  width: 100%;
  height: 185px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.55);
  background: #062840;
  box-shadow: inset 0 0 28px rgba(14, 165, 233, 0.28);
  position: relative;
}

#aquarium-live-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-hero-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(37, 99, 235, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}