/* ===== CSS VARIABLES FOR EASY THEMING ===== */
:root {
  /* Sizing */
  --avatar-size: 64px;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --padding-sm: 8px;
  --padding-md: 12px;
  --padding-lg: 16px;
  --gap-sm: 4px;
  --gap-md: 8px;
  --gap-lg: 12px;
  --gap-xl: 20px;
  
  /* Colors */
  --bg-primary: #0a0e27;
  --bg-secondary: #0f1429;
  --bg-tertiary: #141b2f;
  --bg-hover: #1a2847;
  --bg-active: #2d5a8c;
  --bg-dark: #1f2937;
  
  --text-primary: #f0f4f8;
  --text-secondary: #a0aec0;
  --text-tertiary: #cbd5e1;
  
  --color-gold: #fcd34d;
  --color-soul: #c084fc;
  --color-cash: #10b981;
  --color-success: #34d399;
  --color-warning: #fb923c;
  --color-danger: #ff6b6b;
  --color-info: #60a5fa;
  --color-epic: #8b5cf6;
  --color-rare: #06b6d4;
  
  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.6);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; height: 100%; }
body { 
  font-family: Arial, Helvetica, sans-serif; 
  background: var(--bg-primary); 
  color: var(--text-primary); 
  margin: 0; 
  padding: 0; 
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.staff-name {
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.25);
  transition: text-shadow var(--transition-fast);
}

.staff-name[data-role="admin"] {
  text-shadow:
    0 0 6px rgba(252, 211, 77, 0.85),
    0 0 12px rgba(250, 204, 21, 0.65),
    0 0 18px rgba(217, 119, 6, 0.55);
}

.staff-name[data-role="moderator"] {
  text-shadow:
    0 0 6px rgba(251, 146, 60, 0.85),
    0 0 12px rgba(249, 115, 22, 0.6),
    0 0 18px rgba(194, 65, 12, 0.5);
}
.container { 
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  overflow: visible;
}

#hud {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  margin: 8px;
  margin-bottom: 0;
}

.actions { 
  display: flex; 
  gap: var(--gap-md); 
  align-items: center; 
  flex-shrink: 0;
  margin: 8px;
  margin-top: 4px;
}
.actions button {
  padding: 10px 18px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  color: #e0f2fe;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  min-width: 120px;
}
.actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
@media (hover: hover) {
  .actions button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  }
}
.actions button:active:not(:disabled) {
  transform: scale(0.98);
}
.avatar-preview-btn {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.avatar-preview-btn img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  border: 2px solid rgba(52, 211, 153, 0.4);
}
@media (hover: hover) {
	.avatar-preview-btn:hover {
	  transform: translateY(-1px);
	  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
	}
}
.save-indicator { margin-left: var(--gap-md); font-size: 12px; color: var(--text-secondary); }
.grid { 
  display: flex; 
  gap: var(--gap-lg); 
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.card { 
  background: linear-gradient(135deg, rgba(20, 27, 47, 0.8), rgba(15, 20, 41, 0.9)); 
  padding: var(--padding-lg); 
  border-radius: var(--border-radius); 
  width: 220px; 
  box-shadow: 0 8px 16px rgba(0,0,0,0.4); 
  transition: all var(--transition-normal) ease;
  border: 1px solid rgba(100, 150, 255, 0.15);
}
.card h3 { 
  margin: 0 0 10px 0; 
  font-size: 16px;
  color: #60a5fa;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card h3.profile-view-title {
  text-transform: none;
  letter-spacing: normal;
}
.card .meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.card button { 
  width: 100%; 
  padding: var(--padding-sm); 
  border-radius: var(--border-radius-sm); 
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: linear-gradient(135deg, #059669, #047857);
  color: #d1fae5;
  cursor: pointer; 
  transition: all var(--transition-fast);
  font-weight: 600;
}

.audit-log-filters {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  background: #0f172a;
  border: 1px solid rgba(76, 29, 149, 0.4);
  border-radius: 8px;
  padding: 10px;
}

.audit-log-filters label {
  display: flex;
  flex-direction: column;
  font-size: 0.8em;
  color: #cbd5f5;
  gap: 4px;
}

.audit-log-filters input,
.audit-log-filters select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #374151;
  background: #111827;
  color: #e5e7eb;
  font-size: 0.85em;
}

.audit-filter-active {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}

.audit-filter-active input {
  width: auto;
}

.moderator-warnings-list {
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 8px;
  padding: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.moderator-warning-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.85em;
}

.moderator-warning-item:last-child {
  border-bottom: none;
}

.moderator-warning-item strong {
  color: #fbbf24;
}

.moderator-warning-meta {
  color: #9ca3af;
  font-size: 0.75em;
  margin-top: 2px;
}

.moderator-warning-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.moderator-warning-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8em;
  color: #cbd5f5;
}

.moderator-warning-form input,
.moderator-warning-form select,
.moderator-warning-form textarea {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #374151;
  background: #111827;
  color: #f3f4f6;
  font-size: 0.85em;
}

.moderator-warning-form button {
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9em;
}

.moderator-warning-status {
  min-height: 18px;
  font-size: 0.8em;
  color: #f87171;
}

.moderator-warning-status.success {
  color: #34d399;
}
.card button:disabled { opacity: 0.45; cursor: default; }
.card button:active:not(:disabled) { transform: scale(0.98); }
@media (hover: hover) {
  .card:hover { 
    box-shadow: 0 12px 24px rgba(96, 165, 250, 0.25); 
    transform: translateY(-4px);
    border-color: rgba(100, 150, 255, 0.3);
  }
  .card button:hover:not(:disabled) { 
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    border-color: #34d399;
  }
}
footer { 
  margin-top: auto; 
  color: var(--text-secondary);
  width: 100%;
  padding: 12px;
  font-size: 11px;
  text-align: center;
  background: rgba(10, 18, 32, 0.95);
  border-top: 1px solid rgba(52, 211, 153, 0.2);
}
footer .footer-content { max-width: 1200px; margin: 0 auto; }
footer .footer-section { margin: 4px 0; }
footer .footer-section p { margin: 2px 0; }
footer .footer-subtitle { color: #34d399; font-size: 11px; opacity: 0.8; }

h2 { 
  font-size: 22px; 
  margin: 24px 0 16px 0;
  color: #fcd34d;
  font-weight: 700;
  border-bottom: 2px solid rgba(252, 211, 77, 0.2);
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Floating numbers */
.float-text {
	position: absolute;
	pointer-events: none;
	font-weight: 700;
	color: #ffd166;
	text-shadow: 0 1px 6px rgba(0,0,0,0.6);
	animation: floatUp 900ms ease-out forwards;
}

@keyframes floatUp {
	from { transform: translateY(0) scale(1); opacity: 1; }
	to { transform: translateY(-60px) scale(1.2); opacity: 0; }
}



/* Button touch targets */
button { touch-action: manipulation; }

/* Mobile-friendly inputs and sliders */
input[type="range"] { 
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  accent-color: #3b82f6;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: none;
}

input[type="text"], input[type="number"], textarea, select {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #e6eef6;
  font-size: 16px;
  transition: all 150ms ease;
  max-width: 100%;
}

input[type="text"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* Responsive / mobile */
@media (max-width: 640px) {
	.container { padding: 12px; }
	.grid { flex-direction: column; }
	.card { width: 100%; }
	.actions { flex-direction: column; align-items: stretch; }
	.actions button { width: 100%; }
	
  /* Mobile HUD adjustments */
  body { padding: 10px; margin: 0; }
  .hud { flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
  .hud .player { flex-wrap: wrap; align-items: center; }
	.currencies { flex-direction: row; gap: 8px; width: 100%; }
	.currency { font-size: 11px; }
	.player-name { width: 100%; }
	
	/* Mobile buttons - larger touch targets */
	button { padding: 12px 16px; font-size: 14px; min-height: 44px; }
	.card button { padding: 12px; font-size: 13px; }
	
	/* Mobile tabs */
	.tabs { display: flex; overflow-x: auto; gap: 4px; margin-bottom: 12px; padding-bottom: 8px; scroll-behavior: smooth; }
	.tab { padding: 10px 12px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
	
	/* Mobile bars */
	.player-bars-wrapper { gap: 8px; margin-top: 8px; }
	.bar { height: 18px; }
	.bar-label { font-size: 10px; }
	.bar-text { font-size: 11px; }
	
	/* Mobile screens */
	.screen { padding: 12px 0; }
	.screen h2 { font-size: 18px; margin: 0 0 12px 0; }
	
	/* Mobile equipment boxes */
	.battle-combatant { flex-direction: column; align-items: center; width: 100%; }
	.battle-combatant-content { flex-direction: row; flex-wrap: wrap; width: 100%; }
	.equipment-box { width: 60px; height: 60px; font-size: 20px; }
	.battle-pfp { width: 80px; height: 80px; }
	.hp-bar-wrapper { width: 100%; margin-top: 12px; }
	
	/* Mobile modals */
	.modal-content { width: 95%; max-width: 400px; }
	.modal-header { padding: 12px; }
	.modal-header h2 { font-size: 18px; }
	.modal-body { padding: 16px; }
	.modal-footer { padding: 12px; }
	.modal-footer button { font-size: 12px; padding: 10px; }
	
	/* Mobile gym sliders */
	.gym-sliders { grid-template-columns: 1fr; }
	.gym-slider-row { flex-direction: column; }
	
  /* Mobile item cards */
  .item-icon { width: 40px; height: 40px; }
  .item-icon--lg { width: 52px; height: 52px; }
  .item-icon-emoji { font-size: 24px; }
	.item-buttons { flex-direction: column; }
	.item-buttons button { flex: 1; }
	
	/* Mobile filter buttons */
	.shop-filters { gap: 4px; }
	.filter-btn { padding: 6px 10px; font-size: 11px; }
	
	/* Mobile stats display */
	.stats { flex-direction: column; gap: 8px; }
	.stat { padding: 8px 10px; font-size: 12px; }
	
	/* Mobile property cards */
	.property-card { width: 100%; }
	.upgrade-item { margin-bottom: 8px; }
	.upgrade-item button { width: 100%; }
	
	/* Mobile inventory */
	.equipment-slots { flex-direction: column; }
	.slot { min-width: 100%; width: 100%; }
}

/* Tablet adjustments (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
	.grid { grid-template-columns: repeat(2, 1fr); }
	.card { width: 100%; }
	.hud { flex-direction: column; }
	.tabs { flex-wrap: wrap; }
	.gym-sliders { grid-template-columns: 1fr 1fr; }
}

/* small pulsing animation for purchase */
.pulse {
	animation: pulse 280ms ease-out;
}
@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.08); }
	100% { transform: scale(1); }
}

/* HUD and Tabs */
.hud { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:20px; flex-wrap:wrap; width:100%; }
.hud > * { min-width: 0; }
.hud .player { display:flex; gap:12px; align-items:flex-start; flex:1 1 520px; min-width:320px; }
.avatar-column { display:flex; flex-direction:column; align-items:center; gap:6px; width:var(--avatar-size); }
.avatar-wrap { position:relative; width:var(--avatar-size); height:var(--avatar-size); flex-shrink:0; }
.avatar-wrap img { width:var(--avatar-size); height:var(--avatar-size); object-fit:cover; border-radius:8px; border:2px solid rgba(255,255,255,0.04); animation: bounce 2s infinite; }
.avatar-wrap input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.avatar-remove-btn { background:transparent; border:1px dashed rgba(255,255,255,0.35); color:#cbd5f5; font-size:12px; padding:4px 10px; border-radius:999px; cursor:pointer; transition:color 150ms ease, border-color 150ms ease, opacity 150ms ease; width:100%; text-align:center; }
.avatar-remove-btn:disabled,
.avatar-remove-btn.is-disabled { opacity:0.45; cursor:not-allowed; border-color:rgba(255,255,255,0.15); }
.avatar-remove-btn:not(:disabled):focus-visible { outline:2px solid #34d399; outline-offset:2px; }
@media (hover: hover) {
  .avatar-remove-btn:not(:disabled):hover { border-color:rgba(52,211,153,0.6); color:#d1fae5; }
}
.player-info { flex:1; display:flex; flex-direction:column; justify-content:flex-start; min-width:0; gap:6px; }
.player-header { display:flex; justify-content:flex-start; align-items:flex-start; gap:16px; margin-bottom:4px; width:100%; flex-wrap:wrap; min-width:0; }
.player-name { background:transparent; border:none; color:inherit; font-size:18px; font-weight:700; flex:0 0 auto; min-width:110px; max-width:180px; width:auto; transition: all 150ms ease; }
.player-name:focus { color: #ffd166; outline: none; }
.player-name-wrapper { display:flex; align-items:center; gap:8px; min-width:0; }
.player-name-wrapper .player-name { flex:1 1 auto; min-width:0; }
.rank-badge {
  display:inline-block;
  width:22px;
  height:22px;
  padding:2px;
  border-radius:8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 6px rgba(15, 23, 42, 0.55);
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
}
.rank-badge--sm {
  width:20px;
  height:20px;
}
.rank-badge--xs {
  width:16px;
  height:16px;
  padding:1px;
  border-radius:6px;
}
.rank-badge--lg {
  width:26px;
  height:26px;
  padding:3px;
}
.rank-badge[data-role="admin"] {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}
.rank-badge[data-role="moderator"] {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.35);
}
.rank-badge[hidden] {
  display: none !important;
}
.name-badge-row {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.chat-name-row {
  display:flex;
  flex:1;
  min-width:0;
}
.chat-name-row .chat-name {
  min-width:0;
  white-space:nowrap;
}
.leaderboard-name-row,
.profile-view-name-row {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.leaderboard-name-row .leaderboard-name,
.profile-view-name-row .profile-view-title,
.chat-name-row .chat-name {
  flex:1;
  min-width:0;
}
.profile-name-row {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.profile-name-row > strong {
  min-width:110px;
}
.profile-name-row .name-badge-row {
  flex:1;
  display:flex;
}
.currencies { display: flex; gap: 12px; align-items: center; justify-content: flex-start; flex: 1 1 auto; margin-left: auto; min-width: 0; flex-wrap: nowrap; }
.currency { font-size: 13px; font-weight: bold; animation: fadeInOut 0.6s ease-in-out; flex: 1 1 auto; text-align: left; min-width: 0; line-height: 1.2; }
.gold-currency { color: var(--color-gold); }
.soul-currency { color: var(--color-soul); }
.cash-currency { color: var(--color-cash); }

.stat-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.stat-icon--leading {
  margin-right: 6px;
}

.stat-icon--trailing {
  margin-left: 6px;
}

@keyframes bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

@keyframes fadeInOut {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.8; }
}

.player-bars-wrapper { display:flex; flex-direction:column; gap:6px; }
.bar-row-horizontal { display:flex; gap:12px; align-items:flex-start; flex-wrap:nowrap; min-width:0; }
.bar-section { flex:1 1 0; min-width:0; }
.bar-label { font-size:9px; font-weight:700; margin-bottom:0px; display:flex; align-items:center; justify-content:center; gap:4px; }
.energy-label { color: #3b82f6; text-align: center; }
.courage-label { color: #34d399; text-align: center; }
.morality-label { color: #f97316; text-align: center; }
.health-label { color: #ef4444; text-align: center; }
.bar { position:relative; height:14px; background: rgba(255,255,255,0.08); border-radius:6px; overflow:hidden; display:flex; align-items:center; justify-content:center; transition: all 150ms ease; }
@media (hover: hover) {
  .bar:hover { box-shadow: 0 0 8px rgba(255,255,255,0.1); }
}
.bar.energy-bar .bar-fill { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.bar.courage-bar .bar-fill { background: linear-gradient(90deg, #34d399, #10b981); }
.bar.morality-bar .bar-fill { background: linear-gradient(90deg, #f97316, #ea580c); }
.bar.health-bar .bar-fill { background: linear-gradient(90deg, #ef4444, #dc2626); }
.bar-fill { position:absolute; height:100%; width:0%; left:0; top:0; transition: width var(--transition-normal) cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 0 12px rgba(255,255,255,0.3), inset 0 0 6px rgba(255,255,255,0.15); }
.bar-text { position:relative; z-index:1; font-size:9px; color:#ffffff; font-weight:bold; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.bar-timer { display:block; font-size:9px; color:var(--color-gold); font-weight:bold; text-align:right; margin-top:1px; }
.bar-timer.hud-timer-hidden { opacity:0; }

.xp-bar-wrapper { margin-top:8px; }
.xp-bar { position:relative; height:18px; background: rgba(255,255,255,0.08); border-radius:6px; overflow:hidden; display:flex; align-items:center; justify-content:center; width:100%; }
.xp-bar .bar-fill { background: linear-gradient(90deg, #60a5fa, #3b82f6); position:absolute; height:100%; width:0%; left:0; top:0; transition: width var(--transition-normal) cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 0 12px rgba(96, 165, 250, 0.4), inset 0 0 6px rgba(255,255,255,0.15); }
.xp-level { position:absolute; left:8px; font-size:10px; color:#ffffff; z-index:2; font-weight:bold; }
.xp-progress-text { position:absolute; left:50%; transform:translateX(-50%); font-size:9px; color:#ffffff; z-index:2; font-weight:bold; }

/* Modern Navigation: Sidebar + Hamburger */
.game-container {
  display: flex;
  gap: 8px;
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: visible;
}

/* Desktop: Sidebar Layout */
.tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 8px;
  padding: 8px;
  margin-left: 8px;
  width: 140px;
  height: fit-content;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tabs .tab {
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(51, 65, 85, 0.4);
  border: 1px solid rgba(100, 116, 139, 0.2);
  cursor: pointer;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.85em;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: left;
  min-height: auto;
}

@media (hover: hover) {
  .tabs .tab:hover {
    background: rgba(71, 85, 105, 0.6);
    border-color: rgba(100, 116, 139, 0.4);
    color: #e2e8f0;
  }
}

.tabs .tab.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  border-color: #1e40af;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
  font-weight: 600;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1001;
}

@media (hover: hover) {
  .hamburger-menu:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
  }
}

.hamburger-menu.menu-open {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Mobile: Hamburger Dropdown */
@media (max-width: 1024px) {
  .game-container {
    flex-direction: column;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: visible;
  }
  
  .hamburger-menu { 
    display: block !important;
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1001;
  }
  
  .tabs {
    display: none !important;
    position: fixed;
    top: 55px;
    left: 8px;
    width: 200px;
    flex-direction: column;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    border-radius: 8px;
  }
  
  .tabs.mobile-menu-open {
    display: flex !important;
  }
  
  .tabs .tab {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Main content area */
main {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 0;
}

.screen { display:none; padding: 12px; width: 100%; box-sizing: border-box; }
.screen.active { display:block; animation: fadeIn var(--transition-slow) ease-in; }

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Battle area */
#battleArea { display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap; }
.enemy { transition: all var(--transition-normal) ease; }
@media (hover: hover) {
  .enemy:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 209, 102, 0.2); }
}
.enemy .hp { color:var(--color-gold); }
.enemy .reward { color:#a7f3d0; }
.enemy .cost { color:#fca5a5; }

/* battle log */
#battleLog { max-height:300px; overflow:auto; padding:10px; }

/* Gym Section */
.gym-container { display: flex; gap: 12px; flex-wrap: wrap; }
.gym-card { background:var(--bg-tertiary); padding:12px; border-radius:var(--border-radius); width:200px; box-shadow: var(--shadow-sm); border: 2px solid rgba(52, 211, 153, 0.2); }
.gym-card h3 { margin:0 0 8px 0; font-size:15px; color:#34d399; }
.gym-card .meta { font-size:12px; color:#9fb0c5; margin-bottom:6px; }
.gym-btn { width:100%; padding:8px; border-radius:var(--border-radius-sm); border:none; background: linear-gradient(90deg, #34d399, #10b981); color:#000; cursor:pointer; font-weight:bold; transition: all var(--transition-fast) ease; }
@media (hover: hover) {
  .gym-btn:hover { background: linear-gradient(90deg, #6ee7b7, #34d399); box-shadow: 0 4px 8px rgba(52, 211, 153, 0.3); }
}
.gym-btn:disabled { opacity:0.5; cursor:not-allowed; background: #6b7280; }

/* Gym Sliders */
.gym-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.gym-slider-group { background: rgba(31, 41, 55, 0.5); padding: 16px; border-radius: var(--border-radius); border-left: 4px solid #34d399; }
.gym-slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.gym-slider-header h3 { margin: 0; color: #34d399; font-size: 16px; }
.gym-value { font-size: 12px; color: #9fb0c5; display: none; }
.gym-slider { width: 100%; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.1); outline: none; -webkit-appearance: none; appearance: none; }
.gym-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(90deg, #34d399, #10b981); cursor: pointer; box-shadow: 0 0 8px rgba(52, 211, 153, 0.4); transition: all var(--transition-fast) ease; }
.gym-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(90deg, #34d399, #10b981); cursor: pointer; border: none; box-shadow: 0 0 8px rgba(52, 211, 153, 0.4); transition: all var(--transition-fast) ease; }
@media (hover: hover) {
  .gym-slider::-webkit-slider-thumb:hover { transform: scale(1.2); box-shadow: 0 0 12px rgba(52, 211, 153, 0.6); }
  .gym-slider::-moz-range-thumb:hover { transform: scale(1.2); box-shadow: 0 0 12px rgba(52, 211, 153, 0.6); }
}
.gym-slider-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.gym-slider-fill { height: 100%; background: linear-gradient(90deg, #34d399, #10b981); width: 0%; transition: width 100ms ease; box-shadow: 0 0 8px rgba(52, 211, 153, 0.4); }
.gym-button-group { display: flex; gap: 12px; margin-top: 20px; }
.gym-apply-button, .gym-reset-button { flex: 1; padding: 12px; border-radius: var(--border-radius-sm); border: none; font-weight: bold; cursor: pointer; transition: all var(--transition-normal) ease; }
.gym-apply-button { background: linear-gradient(90deg, #34d399, #10b981); color: #000; }
.gym-reset-button { background: #475569; color: #e6eef6; }
@media (hover: hover) {
  .gym-apply-button:hover { background: linear-gradient(90deg, #6ee7b7, #34d399); transform: scale(1.05); box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3); }
  .gym-reset-button:hover { background: var(--bg-active); }
}
.gym-info-card { background: rgba(52, 211, 153, 0.1); border-left: 4px solid #34d399; margin-bottom: 20px; }
.gym-info-card p { margin: 8px 0; color: #d1d5db; }

/* Battle Arena Layout */
.battle-arena { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 500px; }
.battle-menu { text-align: center; }
.battle-menu h3 { margin-bottom: 20px; font-size: 20px; }
.battle-result { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 48px; font-weight: bold; z-index: 10; animation: popIn 0.5s ease-out forwards; }
@keyframes popIn { from { transform: translate(-50%, -50%) scale(0); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.battle-controls { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.speed-btn { padding: 8px 12px; border: 2px solid #3b82f6; background: transparent; color: #3b82f6; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 200ms ease; }
.speed-btn.active { background: #3b82f6; color: #fff; }
@media (hover: hover) {
  .speed-btn:hover { background: #3b82f6; color: #fff; }
}
.battle-combatant { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; position: relative; }
.battle-player { flex: 0 0 auto; }
.battle-center { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 300px; }
.battle-enemy { flex: 0 0 auto; }
.combatant-name { font-size: 18px; font-weight: bold; color: var(--color-gold); margin: 8px 0; }
.battle-pfp { width: 100px; height: 100px; border-radius: var(--border-radius); border: 3px solid var(--color-gold); object-fit: cover; box-shadow: 0 4px 12px rgba(255, 209, 102, 0.3); }
.player-container { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.enemy-container { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.battle-combatant-content { display: flex; gap: 12px; align-items: flex-start; justify-content: center; }
.equipment-boxes { display: flex; flex-direction: column; gap: 10px; }
.equipment-box { background: rgba(52, 211, 153, 0.15); border: 2px solid rgba(52, 211, 153, 0.4); border-radius: var(--border-radius-sm); padding: 12px; min-width: 120px; text-align: center; transition: all var(--transition-normal) ease; }
@media (hover: hover) {
  .equipment-box:hover { background: rgba(52, 211, 153, 0.25); border-color: rgba(52, 211, 153, 0.8); }
}
.equipment-icon { font-size: 24px; margin-bottom: 6px; }
.equipment-name { font-size: 12px; color: #d1d5db; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-bar-container { display: flex; flex-direction: column; gap: 6px; width: 40px; height: auto; }
.hp-bar { position: relative; height: 280px; background: rgba(0,0,0,0.3); border: 2px solid #ef4444; border-radius: var(--border-radius-sm); overflow: hidden; display: flex; flex-direction: column-reverse; }
.hp-bar-fill { background: linear-gradient(0deg, #ef4444, #dc2626); width: 100%; height: 0%; transition: height var(--transition-normal) cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 0 12px rgba(239, 68, 68, 0.4), inset 0 0 6px rgba(255,255,255,0.1); }
.hp-text { font-size: 11px; font-weight: bold; color: var(--color-gold); text-align: center; white-space: nowrap; }

@media (max-width: 900px) {
  .battle-arena { flex-direction: column; min-height: auto; gap: 12px; }
  .battle-combatant { padding: 12px; }
  .battle-pfp { width: 80px; height: 80px; }
  .combatant-name { font-size: 16px; }
  .player-container { flex-direction: column; gap: 8px; width: 100%; align-items: center; }
  .enemy-container { flex-direction: column; gap: 8px; width: 100%; align-items: center; }
  .equipment-boxes { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 8px; }
  .equipment-box { min-width: 80px; padding: 8px; font-size: 11px; }
  .equipment-icon { font-size: 18px; margin-bottom: 4px; }
  .hp-bar-container { width: 100%; min-height: 50px; display: flex; flex-direction: column; gap: 4px; }
  .hp-bar { height: 30px; width: 100%; }
  .hp-text { font-size: 11px; }
  .battle-center { min-width: 100%; gap: 10px; }
}

/* Milestone System Styling */
.milestone-section { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.1); }
.milestone-label { font-size: 12px; font-weight: bold; color: #ffd166; margin-bottom: 4px; }
.milestone-bar { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; position: relative; }
.milestone-fill { height: 100%; background: linear-gradient(90deg, #ffd166, #ffb347); width: 0%; transition: width 300ms ease; box-shadow: 0 0 6px rgba(255,209,102,0.4); }
.milestone-info { font-size: 11px; color: #a7f3d0; margin-top: 3px; font-weight: bold; }

@media (max-width:640px){
	.gym-container { flex-direction: column; }
	.gym-card { width: 100%; }
}

@media (max-width:640px){
  .hud { flex-wrap:wrap; align-items:flex-start; width:100%; gap:12px; margin-bottom:16px; }
  #hud { margin: 8px 0 0; }
  .hud .player { flex-direction:row; flex-wrap:nowrap; gap:12px; width:100%; min-width:0; align-items:flex-start; }
  .avatar-column { width:56px; align-items:flex-start; }
  .avatar-wrap { width:56px; height:56px; flex-shrink:0; }
  .avatar-wrap img { width:56px; height:56px; }
  .player-info { flex:1 1 calc(100% - 56px); min-width:0; }
  .player-header { flex-wrap:wrap; align-items:flex-start; gap:6px; margin-bottom:6px; }
  .player-name { font-size:16px; flex:0 1 140px; min-width:96px; max-width:40%; }
  .currencies { flex-direction:row; flex-wrap:nowrap; gap:6px; width:auto; justify-content:flex-start; min-width:0; }
  .currency { flex:1 1 auto; min-width:0; font-size:clamp(9px, 2.8vw, 11px); text-align:left; }
  .player-bars-wrapper { gap:6px; width:100%; }
  .bar-row-horizontal { flex-wrap:nowrap; flex-direction:row; gap:6px; }
  .bar-section { flex:1 1 0; min-width:0; }
  .bar-label { font-size:10px; margin-bottom:2px; text-align:left; }
  .bar { height:12px; }
  .bar-text { font-size:9px; }
  .bar-timer { font-size:9px; margin-top:2px; }
  .xp-bar-wrapper { margin-top:6px; }
  .xp-bar { height:16px; }
  .xp-bar .bar-text { font-size:9px; }
  .account-upgrade-banner { width:100%; align-items:flex-start; }
  .account-upgrade-actions { width:100%; justify-content:flex-start; }
}

/* Compact HUD */
.global-stats { display:flex; gap:8px; align-items:center; justify-content:flex-end; flex:0 1 260px; margin-left:auto; }

@media (max-width: 640px) {
  .global-stats {
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 0;
  }
}
.stat.compact { padding:6px 10px; border-radius:8px; background:#081022; }

/* bars and stats */
.bar-wrap { display:flex; align-items:center; gap:8px; margin:8px 0; }
.bar { flex:1; height:14px; background: rgba(255,255,255,0.04); border-radius:8px; overflow:hidden; }
.bar.xp-bar { height:18px; border-radius:10px; }
.bar-fill { height:100%; width:0%; background: linear-gradient(90deg,#34d399,#60a5fa); transition: width 400ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.attr-row { margin:6px 0; color:#9fb0c5; }

/* stats screen layout */
#statsCard { max-width:520px; }

/* Skill Cards */
.card.skill { position: relative; overflow: hidden; }
.card.skill .use-skill { background: linear-gradient(90deg, #34d399, #10b981); transition: all 200ms ease; }
@media (hover: hover) {
  .card.skill .use-skill:hover:not(:disabled) { background: linear-gradient(90deg, #6ee7b7, #34d399); transform: scale(1.05); }
}
.card.skill .use-skill:active:not(:disabled) { transform: scale(0.95); }
.card.skill .use-skill:disabled { background: #6b7280; cursor: not-allowed; }

/* Cooldown Bar */
.cooldown-bar-wrap {
  position: relative;
  height: 24px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  margin: 8px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cooldown-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  width: 0%;
  transition: width 100ms linear;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.cooldown-text {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: bold;
  color: #ffd166;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Scrollable Screens */
#idleScreen, #battleScreen, #gymScreen, #shopScreen, #inventoryScreen, #enchantScreen, #propertiesScreen, #statsScreen, #leaderboardScreen, #adminScreen, #profileScreen, #guideScreen { scrollbar-width: none; }
#idleScreen::-webkit-scrollbar, #battleScreen::-webkit-scrollbar, #gymScreen::-webkit-scrollbar, #shopScreen::-webkit-scrollbar, #inventoryScreen::-webkit-scrollbar, #enchantScreen::-webkit-scrollbar, #propertiesScreen::-webkit-scrollbar, #statsScreen::-webkit-scrollbar, #leaderboardScreen::-webkit-scrollbar, #adminScreen::-webkit-scrollbar, #profileScreen::-webkit-scrollbar, #guideScreen::-webkit-scrollbar { display: none; }

/* Guide Section */
#guideScreen .card { background: rgba(31, 41, 55, 0.8); margin-bottom: 12px; }
#guideScreen h3 { color: #ffd166; margin-top: 0; }
#guideScreen ul { margin: 8px 0; padding-left: 20px; color: #d1d5db; }
#guideScreen li { margin: 6px 0; }
#guideScreen strong { color: #a7f3d0; }
#guideScreen p { color: #d1d5db; margin: 8px 0; }

/* Shop & Inventory */
.shop-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn { padding: 8px 14px; border-radius: 6px; border: 1px solid #334155; background: #0b1220; color: #9fb0c5; cursor: pointer; transition: all 200ms ease; }
.filter-btn.active { background: #34d399; color: #000; font-weight: bold; transform: scale(1.05); }
@media (hover: hover) {
  .filter-btn:hover { background: #1f2937; }
}
.shop-sorts { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.shop-sorts .sort-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9fb0c5; font-weight: 600; margin-right: 4px; }
.sort-btn { padding: 6px 12px; border-radius: 999px; border: 1px solid #1f2937; background: #0a101c; color: #cbd5f5; cursor: pointer; font-size: 0.85rem; transition: background 150ms ease, color 150ms ease, transform 150ms ease; }
.sort-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; transform: translateY(-1px); }
@media (hover: hover) {
  .sort-btn:hover { background: #111b2d; }
}

/* Item Cards */
.card.item { position: relative; transition: all var(--transition-normal) ease; }
@media (hover: hover) {
  .card.item:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.4); }
}
.item-header { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--transition-normal) ease;
  flex-shrink: 0;
}
.item-icon--lg { width: 60px; height: 60px; }
.item-icon--inline {
  width: 26px;
  height: 26px;
  margin-right: 6px;
  background: transparent;
  border: none;
}
.item-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.item-icon-emoji {
  font-size: 28px;
  line-height: 1;
}
.item-icon--inline .item-icon-emoji { font-size: 20px; }
@media (hover: hover) {
  .card.item:hover .item-icon { transform: scale(1.15) rotate(5deg); }
}
.card.item h3 { margin: 0; font-size: 15px; }
.card.item .stats { color: #a7f3d0; font-weight: bold; }
.card.item .equipped { background: #10b981; color: white; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; animation: glow 1.5s ease-in-out infinite; }
.item-buttons { display: flex; gap: 6px; margin-top: 8px; }
.item-buttons button { flex: 1; padding: 6px; border-radius: 4px; border: none; background: #334155; color: #e6eef6; cursor: pointer; font-size: 12px; transition: all var(--transition-fast) ease; }
@media (hover: hover) {
  .item-buttons button:hover:not(:disabled) { background: #475569; transform: translateY(-1px); }
}
.item-buttons .buy-item { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.item-buttons .equip-item { background: linear-gradient(90deg, #34d399, #10b981); }

.player-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.16);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

/* Inventory Section */
.inventory-section { margin-bottom: 20px; }
.inventory-section h3 { color: #ffd166; margin: 12px 0 8px 0; }
.equipment-slots { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.slot { background: rgba(31, 41, 55, 0.6); padding: 12px; border-radius: 8px; min-width: 140px; text-align: center; border: 2px solid rgba(255, 209, 102, 0.2); transition: all var(--transition-normal) ease; }
@media (hover: hover) {
  .slot:hover { border-color: rgba(255, 209, 102, 0.5); box-shadow: 0 0 12px rgba(255, 209, 102, 0.2); transform: translateY(-2px); }
}
.slot-label { font-size: 14px; color: #ffd166; font-weight: bold; margin-bottom: 8px; }
.slot-item { background: #0b1220; padding: 8px; border-radius: 6px; font-size: 14px; color: #d1d5db; min-height: 30px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all var(--transition-normal) ease; }
.slot-item.equipped { background: #10b981; color: white; font-weight: bold; animation: glow 1.5s ease-in-out infinite; }

/* Property Cards */
.property-card { background: linear-gradient(135deg, rgba(15, 23, 36, 0.9), rgba(11, 18, 32, 0.95)); border: 2px solid rgba(52, 211, 153, 0.3); border-radius: var(--border-radius); padding: 20px; margin-bottom: 16px; transition: all var(--transition-normal) ease; }
@media (hover: hover) {
  .property-card:hover { border-color: rgba(52, 211, 153, 0.6); box-shadow: 0 0 20px rgba(52, 211, 153, 0.2); }
}
.property-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.property-icon { font-size: 32px; }
.property-header h3 { margin: 0; font-size: 20px; color: #ffffff; }
.property-header span { color: var(--color-soul); font-size: 14px; font-weight: bold; }
.property-meta { background: rgba(52, 211, 153, 0.1); padding: 8px 12px; border-radius: var(--border-radius-sm); margin: 12px 0; font-size: 14px; color: #d1d5db; }
.property-buttons { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.property-buttons button { flex: 1; min-width: 120px; padding: 10px; border-radius: var(--border-radius-sm); border: none; font-weight: bold; cursor: pointer; transition: all var(--transition-fast) ease; }
.switch-property { background: linear-gradient(90deg, #34d399, #10b981); color: #000; }
.buy-property { background: #3b82f6; color: #ffffff; }
.rent-property { background: linear-gradient(90deg, #fbbf24, #f59e0b); color: #000; }
@media (hover: hover) {
	.switch-property:hover { background: linear-gradient(90deg, #6ee7b7, #34d399); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(52, 211, 153, 0.3); }
	.buy-property:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3); }
	.rent-property:hover { background: linear-gradient(90deg, #fcd34d, #fbbf24); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3); }
}

/* Upgrades List */
.upgrades-list { background: rgba(0, 0, 0, 0.3); border-radius: var(--border-radius-sm); padding: 12px; margin-top: 12px; border-left: 4px solid #34d399; }
.upgrade-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: rgba(31, 41, 55, 0.5); border-radius: var(--border-radius-sm); margin-bottom: 8px; border-left: 3px solid rgba(52, 211, 153, 0.3); transition: all var(--transition-fast) ease; }
.upgrade-item button { background: #3b82f6; color: white; border: none; padding: 6px 12px; border-radius: var(--border-radius-sm); cursor: pointer; font-weight: bold; transition: all var(--transition-fast) ease; white-space: nowrap; }
@media (hover: hover) {
  .upgrade-item:hover { background: rgba(31, 41, 55, 0.8); border-left-color: rgba(52, 211, 153, 0.6); }
  .upgrade-item button:hover:not(:disabled) { background: #2563eb; transform: scale(1.05); }
}
.upgrade-item span:first-child { color: #d1d5db; font-size: 13px; flex: 1; }
.upgrade-item.bought span:first-child { color: #34d399; font-weight: 500; }
.upgrade-item button:disabled { background: #6b7280; opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.upgrade-item button:disabled::after { content: ' (Need more cash)'; font-size: 0.9em; }
.upgrade-item span:last-child { color: #34d399; font-weight: bold; font-size: 12px; min-width: 140px; text-align: right; }

.properties-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; }
.properties-info { flex: 1; min-width: 300px; }
#newspaperBtn { align-self: flex-start; }

@keyframes glow {
	0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.3); }
	50% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.6); }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .equipment-slots { flex-direction: column; }
  .slot { min-width: 100%; }
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1000;
  animation: fadeIn 200ms ease;
}

.modal-overlay.is-hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #0b1220;
  border: 2px solid #ffd166;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  animation: slideIn 250ms ease;
}

@media (max-width: 640px) {
  .modal-overlay {
    align-items: flex-start;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
  }
}

.policy-modal .modal-content {
  max-width: 640px;
  border-color: #38bdf8;
}

.policy-modal-content {
  max-height: 90vh;
  overflow: hidden;
}

.policy-body {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 6px;
}

.policy-body p {
  color: #cbd5f5;
  line-height: 1.45;
}

.policy-section {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.policy-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.policy-section h3 {
  margin: 0 0 8px;
  color: #e0f2fe;
  font-size: 1.05em;
}

.policy-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #cbd5f5;
}

.policy-list li {
  line-height: 1.4;
}

.policy-list li strong {
  color: #f0f9ff;
}

@keyframes slideIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 209, 102, 0.2);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #ffd166;
}

.modal-close {
  font-size: 28px;
  color: #9fb0c5;
  cursor: pointer;
  transition: all 150ms ease;
  line-height: 1;
  border: none;
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (hover: hover) {
	.modal-close:hover {
	  color: #e6eef6;
	  transform: rotate(90deg);
	  background: rgba(148, 163, 184, 0.15);
	}
}

.modal-body {
  padding: 20px;
}

.sell-info {
  background: rgba(31, 41, 55, 0.6);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.sell-info p {
  margin: 8px 0;
  font-size: 14px;
  color: #d1d5db;
}

.sell-info strong {
  color: #a7f3d0;
}

.sell-slider-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sell-slider-section label {
  color: #9fb0c5;
  font-weight: bold;
  font-size: 14px;
}

.sell-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1f2937;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.sell-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  cursor: pointer;
  transition: all 150ms ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.sell-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  cursor: pointer;
  border: none;
  transition: all 150ms ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

@media (hover: hover) {
	.sell-slider::-webkit-slider-thumb:hover {
	  transform: scale(1.2);
	  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.6);
	}
	.sell-slider::-moz-range-thumb:hover {
	  transform: scale(1.2);
	  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.6);
	}
}

.sell-quantity-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(31, 41, 55, 0.4);
  border-radius: 6px;
  font-size: 13px;
  color: #9fb0c5;
}

.qty-value {
  font-weight: bold;
  color: #a7f3d0;
  font-size: 16px;
}

.sell-total-display {
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 6px;
  border-left: 3px solid #10b981;
  font-size: 14px;
  color: #d1d5db;
}

.sell-total-display strong {
  color: #10b981;
  font-size: 16px;
}

.profile-setup-screen {
  display: none;
  min-height: 100vh;
  padding: 40px 20px;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.15), transparent 55%), #020617;
  align-items: center;
  justify-content: center;
}

.profile-setup-screen.is-visible {
  display: flex;
}

.profile-setup-card {
  width: 100%;
  max-width: 460px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.profile-setup-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.profile-setup-card h2 {
  margin: 0;
  color: #f9fafb;
  font-size: 24px;
}

.profile-setup-subtitle {
  color: #94a3b8;
  margin: 8px 0 24px;
}

.profile-setup-form {
  text-align: left;
}

.gender-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.gender-choice {
  position: relative;
  display: block;
}

.gender-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-choice-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.6);
  color: #f8fafc;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.gender-choice-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.65));
}

.gender-choice input:checked + .gender-choice-card {
  border-color: rgba(52, 211, 153, 0.85);
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.25);
}

.gender-choice input:focus-visible + .gender-choice-card {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.gender-choice input:disabled + .gender-choice-card {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (hover: hover) {
  .gender-choice-card:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.65);
  }
}

@media (max-width: 520px) {
  .gender-toggle {
    grid-template-columns: 1fr;
  }
}

.profile-setup-submit {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #34d399, #06b6d4);
  color: #042f2e;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
@media (hover: hover) {
	.profile-setup-submit:hover {
	  transform: translateY(-1px);
	  box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
	}
}

@media (max-width: 640px) {
  .profile-setup-card {
    padding: 24px;
  }
}

.account-upgrade-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0 0;
  align-items: center;
  border-left: 4px solid #facc15;
  box-shadow: 0 12px 32px rgba(8, 47, 73, 0.55);
  position: relative;
  flex: 1 1 100%;
  order: 3;
}

.account-upgrade-message { flex: 1 1 260px; min-width: 0; }

.account-upgrade-banner h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #f8fafc;
}

.account-upgrade-banner p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

.account-upgrade-note {
  font-size: 0.85rem;
  color: #bfdbfe;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.account-upgrade-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #fcd34d;
  margin-bottom: 6px;
}

.account-upgrade-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.account-upgrade-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.account-upgrade-btn.primary {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #041b0f;
}

.account-upgrade-btn.secondary {
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.account-upgrade-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (hover: hover) {
  .account-upgrade-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.25);
  }
}

body.account-secured #accountUpgradeBanner {
  display: none !important;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-pill.success {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}

.status-pill.warning {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}

.card-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.card-inline-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.card-inline-btn.secondary {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
}

.card-inline-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (hover: hover) {
  .card-inline-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  }
}

.account-security-hint {
  font-size: 0.85em;
  color: var(--text-secondary);
  margin: 4px 0 0;
}

.account-upgrade-modal .modal-body {
  padding-bottom: 10px;
}

.account-upgrade-description {
  color: #9fb0c5;
  margin-bottom: 14px;
}

.account-upgrade-form .modal-footer {
  padding: 0;
  border-top: none;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.profile-policy-field {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.45);
  gap: 10px;
}

.policy-field-title {
  margin: 0 0 6px;
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.policy-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9em;
  color: #e2e8f0;
}

.policy-checkbox input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
}

.policy-checkbox label {
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.4;
}

.policy-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #38bdf8;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  display: inline;
  cursor: pointer;
}

.policy-link:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.policy-hint {
  margin: 6px 0 0;
  font-size: 0.78em;
  color: #fbbf24;
}

.form-field label {
  font-weight: 600;
  color: #e5e7eb;
  font-size: 0.9em;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 10px;
  color: #f3f4f6;
  font-size: 0.95em;
}

.form-field textarea {
  resize: vertical;
}

.profile-bio-counter {
  text-align: right;
  font-size: 0.8em;
  color: #9ca3af;
}

.profile-form-status {
  margin-top: 10px;
  font-size: 0.85em;
  color: #34d399;
  min-height: 18px;
}

.profile-form-status.error {
  color: #f87171;
}

.profile-form-status.info {
  color: #fbbf24;
}

.profile-view-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-view-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-view-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 6px;
  border: 1px solid rgba(96, 165, 250, 0.45);
}

.profile-view-avatar-large.profile-avatar-actionable {
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.profile-view-avatar-large.profile-avatar-actionable:focus-visible,
.profile-view-avatar-large.profile-avatar-actionable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.35);
  border-color: rgba(59, 130, 246, 0.9);
}

.profile-view-name {
  font-weight: 600;
  color: #f9fafb;
  font-size: 1.1em;
}

.profile-view-card {
  border: 2px solid #60a5fa;
  margin-bottom: 20px;
}

.profile-moderation-card {
  margin-top: 20px;
  border: 2px solid rgba(96, 165, 250, 0.4);
  background: rgba(15, 23, 42, 0.8);
}

.profile-warnings-card {
  margin-top: 20px;
  border: 2px solid rgba(248, 113, 113, 0.35);
  background: rgba(15, 23, 42, 0.85);
}

.profile-warnings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-warning-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72em;
  color: #fecaca;
  margin: 0 0 4px 0;
}

.profile-warnings-count {
  font-size: 0.8em;
  color: #fecdd3;
  border: 1px solid rgba(248, 113, 113, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.1);
  font-weight: 600;
}

.profile-warning-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.profile-warning-entry {
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(248, 113, 113, 0.08);
}

.profile-warning-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-warning-context {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #fecdd3;
  background: rgba(248, 113, 113, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
}

.profile-warning-time {
  font-size: 0.8em;
  color: #cbd5f5;
  font-weight: 600;
}

.profile-warning-summary {
  margin: 8px 0 6px;
  font-weight: 600;
  color: #f9fafb;
}

.profile-warning-details {
  margin: 0 0 8px 0;
  color: #cbd5f5;
  font-size: 0.9em;
  line-height: 1.4;
}

.profile-warning-entry-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8em;
  color: #94a3b8;
}

.profile-warning-author {
  font-weight: 600;
  color: #e0e7ff;
}

.profile-warning-dot {
  opacity: 0.6;
}

.profile-warning-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed rgba(248, 113, 113, 0.4);
  border-radius: 6px;
  font-size: 0.9em;
  color: #fecaca;
  background: rgba(15, 23, 42, 0.6);
}

.profile-moderation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.profile-moderation-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72em;
  color: #a5b4fc;
  margin: 0 0 4px 0;
}

.profile-moderation-set-target {
  border: 1px solid rgba(96, 165, 250, 0.5);
  background: transparent;
  color: #cbd5f5;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
@media (hover: hover) {
	.profile-moderation-set-target:hover {
    background: rgba(96, 165, 250, 0.15);
  }
}

.profile-moderation-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.82em;
}

.profile-moderation-meta span {
  display: block;
  color: #94a3b8;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.profile-moderation-meta code,
.profile-moderation-meta strong {
  color: #f3f4f6;
  font-weight: 600;
}

.profile-moderation-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-moderation-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-moderation-field label {
  font-size: 0.85em;
  color: #cbd5f5;
  font-weight: 600;
}

.profile-duration-controls {
  display: flex;
  gap: 8px;
}

#profileModerationDurationValue {
  flex: 1;
  padding: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 6px;
  color: #f3f4f6;
}

#profileModerationDurationUnit,
#profileModerationAction {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #f3f4f6;
}

#profileModerationReason {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.5);
  color: #f8fafc;
  resize: vertical;
}

.profile-moderation-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-moderation-actions .primary {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}
@media (hover: hover) {
	.profile-moderation-actions .primary:hover {
    opacity: 0.9;
  }
}

.profile-moderation-status {
  min-height: 18px;
  font-size: 0.85em;
  color: #f87171;
}

.profile-moderation-status.error {
  color: #f87171;
}

.profile-moderation-status.success {
  color: #34d399;
}

.profile-moderation-status.info {
  color: #fbbf24;
}

.profile-view-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-view-hero-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.profile-view-hero-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-view-title {
  margin: 0;
  color: #60a5fa;
  text-transform: none;
  letter-spacing: normal;
}

.profile-view-level {
  color: #a0aec0;
  font-size: 0.95em;
}

.profile-view-status {
  font-size: 0.85em;
}

.profile-view-location,
.profile-view-gender {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9em;
}

.profile-view-bio {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.profile-view-bio-label {
  font-size: 0.75em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8em;
  color: #cbd5f5;
}

.status-indicator--compact {
  gap: 4px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #52525b;
  display: inline-block;
}

.status-dot.is-online {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.65);
}

.status-dot.is-offline {
  background: #6b7280;
  opacity: 0.75;
}

.status-text {
  font-weight: 600;
  color: #e2e8f0;
}

.profile-edit-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-edit-form button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 150ms ease;
}
@media (hover: hover) {
	.profile-edit-form button:hover {
	  background: #3b82f6;
	}
}

.profile-bio-display {
  margin-top: 6px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95em;
  color: #e5e7eb;
  line-height: 1.4;
  white-space: pre-wrap;
}

.profile-field-readonly {
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(148, 163, 184, 0.5);
  color: #f1f5f9;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-field-hint {
  margin: 6px 0 0;
  font-size: 0.8em;
  color: #94a3b8;
}

.gender-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.9em;
}

.gender-badge--md {
  padding: 4px 12px;
}

.gender-badge--sm {
  padding: 2px 10px;
  font-size: 0.8em;
}

.gender-badge__icon {
  width: 18px;
  height: 18px;
}

.gender-badge--md .gender-badge__icon {
  width: 22px;
  height: 22px;
}

.gender-badge--unknown {
  border-style: dashed;
  color: #94a3b8;
}

.meta.profile-gender-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta.profile-gender-row strong {
  min-width: 70px;
}

/* Rental Modal Styles */
.rental-slider-section, .rental-price-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.rental-slider-section label, .rental-price-section label {
  color: #9fb0c5;
  font-weight: bold;
  font-size: 14px;
}

.rental-days-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1f2937;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.rental-days-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  cursor: pointer;
  transition: all 150ms ease;
  box-shadow: 0 2px 8px rgba(249, 158, 11, 0.4);
}

.rental-days-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  cursor: pointer;
  border: none;
  transition: all 150ms ease;
  box-shadow: 0 2px 8px rgba(249, 158, 11, 0.4);
}

@media (hover: hover) {
	.rental-days-slider::-webkit-slider-thumb:hover {
	  transform: scale(1.2);
	  box-shadow: 0 4px 12px rgba(249, 158, 11, 0.6);
	}
	.rental-days-slider::-moz-range-thumb:hover {
	  transform: scale(1.2);
	  box-shadow: 0 4px 12px rgba(249, 158, 11, 0.6);
	}
}

.rental-display {
  padding: 12px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 6px;
  border-left: 3px solid #f59e0b;
  font-size: 14px;
  color: #d1d5db;
}

.rental-display strong {
  color: #f59e0b;
  font-size: 16px;
}

.rental-price-input {
  padding: 10px;
  background: #1f2937;
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  color: #d1d5db;
  font-size: 14px;
  font-weight: bold;
}

.rental-price-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.rental-info {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  color: #d1d5db;
  font-size: 13px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid rgba(255, 209, 102, 0.2);
}

.modal-footer button {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: all 150ms ease;
}

.modal-cancel {
  background: #334155;
  color: #e6eef6;
}

.modal-confirm {
  background: linear-gradient(90deg, #10b981, #059669);
  color: white;
}

.logout-modal .modal-confirm {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.logout-modal .modal-body p {
  color: #cbd5f5;
  margin-bottom: 12px;
}

.modal-status {
  min-height: 20px;
  font-size: 0.85rem;
  color: #fda4af;
}

.avatar-modal .modal-content,
#avatarPreviewModal .modal-content {
  max-width: 400px;
}

.avatar-modal-body {
  display: flex;
  justify-content: center;
  padding: 30px 20px;
}

#avatarModalImage {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid rgba(52, 211, 153, 0.6);
  background: rgba(15, 23, 42, 0.6);
}

.avatar-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 20px;
}

.avatar-modal-btn {
  flex: 1;
  min-width: 120px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.avatar-modal-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.avatar-modal-btn.secondary {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.avatar-modal-btn.danger {
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

@media (hover: hover) {
	.avatar-modal-btn:hover:not(:disabled) {
	  transform: translateY(-1px);
	  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
	}
}
@media (hover: hover) {
	.modal-cancel:hover {
	  background: #475569;
	  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	}
	.modal-confirm:hover {
	  transform: translateY(-2px);
	  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
	}
}

/* Activity Log Styling */
.activity-item {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(15, 23, 36, 0.6);
  border-left: 3px solid #34d399;
  border-radius: 4px;
  font-size: 12px;
  animation: slideIn 300ms ease;
}

.activity-time {
  color: #9fb0c5;
  min-width: 80px;
  font-weight: bold;
}

.activity-text {
  color: #e6eef6;
  flex: 1;
  word-break: break-word;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enchanting Styles */
.enchant-section {
  margin: 20px 0;
}

.enchant-weapon-card {
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.enchant-weapon-card.selected {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.enchantment-card {
  transition: all 0.2s ease;
}
@media (hover: hover) {
  .enchant-weapon-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #a78bfa;
  }
  .enchantment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

.enchantment-card button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.enchant-btn {
  background: #c084fc;
  color: #000;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.enchant-btn[disabled] {
  background: #6b7280;
  cursor: not-allowed;
}

.select-weapon-btn {
  background: #8b5cf6;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  margin-top: 8px;
  transition: all 0.2s ease;
}
@media (hover: hover) {
  .enchant-btn:hover:not([disabled]) {
    background: #a855f7;
    transform: scale(1.02);
  }
  .select-weapon-btn:hover {
    background: #7c3aed;
    transform: scale(1.02);
  }
}

/* ===== CHAT PANEL STYLES ===== */
.chat-panel {
  display: none;
  flex-direction: column;
  width: 280px;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 27, 47, 0.95), rgba(15, 20, 41, 0.98));
  border-left: 2px solid rgba(6, 182, 212, 0.3);
  padding: 0;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.5);
}

.chat-panel.visible {
  display: flex;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.1);
  flex-shrink: 0;
}

.chat-header h3 {
  margin: 0;
  color: #06b6d4;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

.chat-header-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.chat-channel-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-channel-picker label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(226, 232, 240, 0.7);
}

.chat-channel-picker select {
  background: rgba(15, 23, 42, 0.9);
  color: #f3f4f6;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.chat-channel-picker select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-channel-info {
  font-size: 12px;
  color: #a5b4fc;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
  background: rgba(6, 182, 212, 0.05);
}

.chat-close {
  background: none;
  border: none;
  color: #9fb0c5;
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  transition: all 0.2s ease;
  display: none;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-message {
  display: flex;
  justify-content: flex-start;
  animation: slideIn 0.3s ease;
  font-size: 13px;
}

.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.chat-bubble {
  flex: 0 1 auto;
  background: rgba(31, 41, 55, 0.75);
  border-left: 3px solid #06b6d4;
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  max-width: calc(100% - 48px);
}

.chat-message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #06b6d4;
}
.chat-avatar.is-clickable {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.chat-avatar.is-clickable:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.65);
}
@media (hover: hover) {
  .chat-avatar.is-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.45);
  }
}

.chat-message.own-message {
  justify-content: flex-end;
}

.chat-message.own-message .chat-row {
  flex-direction: row-reverse;
}

.chat-message.own-message .chat-bubble {
  border-left: none;
  border-right: 3px solid #34d399;
  background: rgba(16, 185, 129, 0.2);
  text-align: right;
}

.chat-message.own-message .chat-message-header {
  justify-content: flex-end;
}

.chat-message.own-message .chat-avatar {
  margin-left: 0;
  margin-right: 0;
}

.chat-message.own-message .chat-text {
  text-align: right;
}

.chat-name {
  color: #06b6d4;
  font-weight: bold;
  font-size: 12px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-time {
  color: #9fb0c5;
  font-size: 11px;
  white-space: nowrap;
}

.chat-mute-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  margin-left: 4px;
}

.chat-mute-btn.is-active {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.chat-delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  margin-left: 4px;
}
.chat-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-controls button {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: rgba(59, 130, 246, 0.15);
  color: #cbd5f5;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
	.chat-close:hover {
	  color: #06b6d4;
	  transform: scale(1.2);
	}
	.chat-mute-btn:hover {
	  background: rgba(245, 158, 11, 0.25);
	  border-color: rgba(245, 158, 11, 0.6);
	}
	.chat-delete-btn:hover {
	  opacity: 1;
	}
	.chat-controls button:hover {
	  background: rgba(59, 130, 246, 0.3);
	  transform: translateY(-1px);
	}
}

.chat-text {
  color: #e6eef6;
  word-wrap: break-word;
  word-break: break-word;
}

.chat-mute-notice {
  display: none;
  margin: 8px 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  font-size: 12px;
  line-height: 1.4;
  gap: 8px;
  flex-direction: column;
}

.chat-mute-notice.visible {
  display: flex;
}

.chat-mute-notice strong {
  color: #f87171;
  font-size: 13px;
}

.chat-mute-notice__meta {
  color: #fca5a5;
  font-size: 11px;
}

.chat-mute-notice.pulse {
  animation: chatNoticePulse 0.65s ease;
}

.chat-moderation-notice {
  display: none;
  margin: 8px 12px 0;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  color: #fecdd3;
  font-size: 12px;
}

.chat-moderation-notice.success {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
  color: #bbf7d0;
}

.chat-moderation-notice.visible {
  display: block;
}

@keyframes chatNoticePulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.01); }
  70% { transform: scale(0.99); }
  100% { transform: scale(1); }
}

.chat-mute-dialog {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 25, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 4000;
}

.chat-mute-dialog.visible {
  display: flex;
}

.chat-mute-dialog__content {
  width: min(420px, 92vw);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: #0f172a;
  padding: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}

.chat-mute-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.chat-mute-dialog__eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #38bdf8;
}

.chat-mute-dialog__header h4 {
  margin: 2px 0 0;
  color: #f1f5f9;
}

.chat-mute-dialog__close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
}
@media (hover: hover) {
	.chat-mute-dialog__close:hover {
	  color: #38bdf8;
	}
}

.chat-mute-dialog__target {
  margin-bottom: 12px;
  color: #cbd5f5;
  font-size: 13px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
}

.chat-mute-dialog__context {
  margin-top: -6px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  font-size: 12px;
  color: #fecaca;
}

.chat-mute-dialog__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.chat-mute-dialog__field label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5f5;
}

.chat-mute-dialog__field select,
.chat-mute-dialog__field input,
.chat-mute-dialog__field textarea {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  color: #e2e8f0;
  padding: 8px 10px;
  font-size: 13px;
}

.chat-mute-dialog__field textarea {
  resize: vertical;
}

.chat-mute-dialog__status {
  min-height: 18px;
  font-size: 12px;
  color: #fca5a5;
  margin-bottom: 12px;
}

.chat-mute-dialog__status.success {
  color: #86efac;
}

.chat-mute-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.chat-mute-dialog__actions button {
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #f1f5f9;
  cursor: pointer;
}

.chat-mute-dialog__actions button.primary {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  border-color: rgba(14, 165, 233, 0.6);
}

.chat-mute-dialog__actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-input-area {
  display: flex;
  gap: 6px;
  padding: 12px;
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.05);
  flex-shrink: 0;
  min-height: 50px;
}

#chatInput {
  flex: 1;
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #f0f4f8;
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
}

#chatInput:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

#chatSendBtn {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

#chatSendBtn:active {
  transform: scale(0.98);
}

@media (hover: hover) {
	#chatSendBtn:hover {
	  background: linear-gradient(135deg, #0891b2, #0e7490);
	  transform: scale(1.05);
	}
}

.chat-report-section {
  padding: 12px;
  border-top: 1px solid rgba(6, 182, 212, 0.18);
  background: rgba(15, 23, 42, 0.72);
  flex-shrink: 0;
}

.chat-report-toggle {
  width: 100%;
  border: 1px dashed rgba(224, 231, 255, 0.35);
  background: rgba(6, 182, 212, 0.12);
  color: #e0f2fe;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .chat-report-toggle:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-1px);
  }
}

.chat-report-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: rgba(2, 6, 23, 0.85);
}

.chat-report-form[hidden] {
  display: none;
}

.chat-report-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-report-grid label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(226, 232, 240, 0.8);
}

.chat-report-grid input,
.chat-report-grid select,
.chat-report-grid textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
}

.chat-report-grid textarea {
  resize: vertical;
  min-height: 80px;
}

.chat-report-status {
  min-height: 18px;
  font-size: 12px;
  color: #e5e7eb;
}

.chat-report-status.success {
  color: #34d399;
}

.chat-report-status.error {
  color: #f87171;
}

.chat-report-status.muted {
  color: #fbbf24;
}

.chat-report-cooldown {
  margin: 0;
  font-size: 12px;
  color: #facc15;
}

.chat-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.chat-report-cancel,
.chat-report-submit {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.chat-report-cancel {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: #cbd5f5;
}

.chat-report-submit {
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.4);
}

.chat-report-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (hover: hover) {
  .chat-report-actions button:not(:disabled):hover {
    transform: translateY(-1px);
  }
}

/* Desktop: Chat panel always visible */
@media (min-width: 1024px) {
  .chat-panel {
    display: flex;
  }
  
  #chatTabBtn {
    display: none;
  }
}

/* Mobile: Chat panel as modal, chat button in menu */
@media (max-width: 1023px) {
  .chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    z-index: 999;
    border-left: none;
    border-radius: 0;
  }
  
  .chat-close {
    display: block;
  }
  
  .chat-panel.visible {
    display: flex;
  }
  
  .chat-close {
    display: block;
  }
  
  #chatTabBtn {
    display: block;
  }
}

/* Achievement Card Styling */
#achievementsCard {
  margin-top: 20px;
}

#achievementsCard h4 {
  font-size: 0.95em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px !important;
}

#achievementsCard .achievement-item {
  padding: 8px;
  border-radius: 4px;
  background: rgba(107, 114, 128, 0.1);
  border-left: 3px solid #6b7280;
  transition: all 0.2s ease;
}

#achievementsCard .achievement-item.unlocked {
  background: rgba(16, 185, 129, 0.15);
  border-left-color: #10b981;
}

#achievementsCard .progress-bar {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  height: 6px;
  overflow: hidden;
  margin: 6px 0 3px 0;
}

#achievementsCard .progress-fill {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  height: 100%;
  transition: width 0.3s ease;
}

/* Leaderboard Styles */
.leaderboard-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.leaderboard-filter { padding: 10px 16px; border: 2px solid #34d399; background: transparent; color: #34d399; border-radius: var(--border-radius-sm); cursor: pointer; font-weight: bold; transition: all var(--transition-normal) ease; }
.leaderboard-entry { transition: all var(--transition-normal) ease; }
@media (hover: hover) {
  .leaderboard-filter:hover { background: rgba(52, 211, 153, 0.2); }
  .leaderboard-entry:hover { transform: translateX(4px); box-shadow: 0 4px 12px rgba(52, 211, 153, 0.2); }
}
.leaderboard-filter.active { background: linear-gradient(90deg, #34d399, #10b981); color: #000; border-color: #34d399; }

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop (default styles above) */
@media (min-width: 1024px) {
  .container { width: 100%; }
  
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap-lg); max-width: 1200px; }
  
  .card { width: auto; max-width: 100%; }
  
  .stats { display: flex; gap: var(--gap-xl); justify-content: space-around; }
  
  .tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
  
  .tab { padding: 12px 20px; font-size: 16px; }
  
  h2 { font-size: 28px; margin-bottom: 20px; }
  
  main { height: auto; overflow-y: visible; overflow-x: hidden; }
  
  .leaderboard-filters { flex-wrap: wrap; gap: 12px; }
}

/* Tablet (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .container { width: 100%; margin: 0 auto; }
  
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gap-md); }
  
  .card { width: auto; padding: var(--padding-md); }
  
  .stats { display: flex; gap: var(--gap-lg); justify-content: space-around; flex-wrap: wrap; }
  
  .stat { flex: 1; min-width: 150px; }
  
  .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
  
  .tab { padding: 10px 16px; font-size: 14px; }
  
  h2 { font-size: 24px; margin-bottom: 16px; }
  
  .actions { flex-wrap: wrap; gap: var(--gap-md); }
  
  .actions button { flex: 1; min-width: 120px; }
  
  main { height: auto; overflow-y: visible; overflow-x: hidden; }
  
  .leaderboard-filters { gap: 8px; }
  
  .leaderboard-filter { padding: 8px 12px; font-size: 13px; }
}

/* Mobile (less than 768px) */
@media (max-width: 767px) {
  :root {
    --padding-lg: 12px;
    --padding-md: 8px;
    --gap-lg: 8px;
    --gap-xl: 12px;
  }
  
  body { padding: 12px; }
  
  .container { width: 100%; margin: 0 auto; }
  
  .grid { display: grid; grid-template-columns: 1fr; gap: var(--gap-md); }
  
  .card { width: 100%; padding: var(--padding-md); }
  
  .card h3 { font-size: 15px; }
  
  .card .meta { font-size: 12px; }
  
  .card button { padding: 10px; font-size: 14px; }
  
  .stats { display: flex; flex-direction: column; gap: var(--gap-md); }
  
  .stat { padding: var(--padding-md); font-size: 13px; }
  
  .tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; overflow-x: auto; }
  
  .tab { padding: 10px 12px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  
  h1 { font-size: 24px; margin-bottom: 12px; }
  
  h2 { font-size: 20px; margin-bottom: 12px; }
  
  h3 { font-size: 15px; }
  
  h4 { font-size: 13px; }
  
  .actions { flex-direction: column; gap: var(--gap-md); }
  
  .actions button { width: 100%; padding: 12px; font-size: 14px; }
  
  .save-indicator { margin-left: 0; margin-top: 4px; text-align: center; }
  
  main { height: auto; overflow-y: visible; overflow-x: hidden; padding: 0; }
  
  .screen { padding: var(--padding-md) 0; }
  
  .leaderboard-filters { gap: 6px; }
  
  .leaderboard-filter { padding: 8px 10px; font-size: 12px; border-width: 1px; }
  
  .leaderboard-entry { padding: 12px; }
  
  .prestige-perm-card { width: 100% !important; }
  
  /* Touch-friendly buttons */
  button { min-height: 44px; min-width: 44px; }
  
  input, select, textarea { font-size: 16px; }
}

  /* Hospital Screen */
  #hospitalScreen {
    flex-direction: column;
    gap: 20px;
  }

  #hospitalScreen.screen.active {
    display: flex;
  }

  #flightScreen {
    flex-direction: column;
    gap: 20px;
  }

  #flightScreen.screen.active {
    display: flex;
  }

  #hospitalActiveState[hidden],
  #hospitalHealthyState[hidden],
  #flightActiveState[hidden],
  #flightIdleState[hidden] {
    display: none !important;
  }

  .hospital-state {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .flight-state {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hospital-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }

  .flight-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }

  .hospital-header-meta {
    margin: 6px 0 0;
    color: #9ca3af;
    font-size: 0.95em;
  }

  .flight-header-meta {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 0.95em;
  }

  .hospital-status-pill {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.6);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85em;
  }

  .flight-status-pill {
    background: rgba(14, 165, 233, 0.15);
    color: #67e8f9;
    border: 1px solid rgba(14, 165, 233, 0.5);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85em;
  }

  .hospital-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .flight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .hospital-card {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
  }

  .flight-card {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
  }

  .hospital-countdown-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #fcd34d;
    margin: 8px 0;
  }

  .flight-countdown-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #67e8f9;
    margin: 8px 0;
  }

  .hospital-countdown-label {
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 0.12em;
    color: #9ca3af;
  }

  .flight-countdown-label {
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 0.12em;
    color: #94a3b8;
  }

  .hospital-progress,
  .condition-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
    margin: 10px 0;
  }

  .flight-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
    margin: 10px 0;
  }

  .hospital-progress-fill,
  .condition-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    transition: width 0.3s ease;
  }

  .hospital-progress-fill {
    background: linear-gradient(90deg, #fcd34d, #f97316);
  }

  .condition-progress-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
  }

  .flight-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #38bdf8, #2563eb);
  }

  .flight-route-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5f5;
    font-size: 0.95em;
    margin: 6px 0;
  }

  .flight-route-arrow {
    opacity: 0.6;
  }

  .flight-route-eta {
    color: #94a3b8;
    font-size: 0.9em;
  }

  .flight-context {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    flex-wrap: wrap;
  }

  .flight-context-label {
    text-transform: uppercase;
    font-size: 0.7em;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin-bottom: 4px;
  }

  .flight-context-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #f9fafb;
  }

  .flight-restriction {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(8, 47, 73, 0.4);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: #bae6fd;
    font-size: 0.95em;
  }

  .flight-briefing-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .flight-briefing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .flight-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #e2e8f0;
  }

  .flight-tips-list li::before {
    content: '•';
    margin-right: 6px;
    color: #38bdf8;
  }

  .flight-tips-footer {
    padding: 12px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.65);
    color: #cbd5f5;
    font-size: 0.9em;
  }

  .flight-view-map-btn {
    background: rgba(14, 165, 233, 0.15);
    color: #67e8f9;
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  @media (hover: hover) {
   	.flight-view-map-btn:hover {
      background: rgba(14, 165, 233, 0.3);
      color: #bae6fd;
    }
  }

  .flight-idle-state {
    width: 100%;
  }

  .flight-idle-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 12px;
  }

  .hospital-release-eta {
    color: #9ca3af;
    font-size: 0.9em;
  }

  .hospital-conditions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
  }

  .hospital-condition {
    padding: 14px;
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.2);
  }

  .condition-label {
    text-transform: uppercase;
    font-size: 0.75em;
    color: #94a3b8;
    letter-spacing: 0.08em;
  }

  .condition-value {
    font-size: 1.2em;
    font-weight: 600;
    color: #f9fafb;
    margin: 6px 0;
  }

  .condition-value.requirement-met {
    color: #10b981;
  }

  .condition-subtext {
    margin: 0;
    font-size: 0.85em;
    color: #cbd5f5;
  }

  .hospital-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
  }

  .hospital-primary-btn {
    background: linear-gradient(120deg, #fcd34d, #f97316);
    color: #0f172a;
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    min-width: 200px;
  }

  .hospital-primary-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
  }

  @media (hover: hover) {
  	.hospital-primary-btn:not(:disabled):hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 24px rgba(249, 115, 22, 0.35);
    }
  }

  .hospital-meds-header h3 {
    margin-bottom: 4px;
  }

  .hospital-med-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hospital-med-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(59, 130, 246, 0.25);
  }

  .hospital-med-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .hospital-med-icon .item-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
  }

  .hospital-med-info {
    flex: 1;
  }

  .hospital-med-name {
    font-weight: 600;
    color: #f9fafb;
  }

  .hospital-med-meta {
    font-size: 0.85em;
    color: #94a3b8;
  }

  .hospital-med-empty {
    text-align: center;
    padding: 8px 0;
    color: #cbd5f5;
  }

  .hospital-med-btn {
    background: rgba(14, 165, 233, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(14, 165, 233, 0.4);
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .hospital-med-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  @media (hover: hover) {
  	.hospital-med-btn:not(:disabled):hover {
      background: rgba(14, 165, 233, 0.3);
      color: #67e8f9;
    }
  }

  .hospital-notice {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
    font-weight: 600;
    display: none;
  }

  .hospital-notice.visible {
    display: block;
  }

  .hospital-healthy-state {
    width: 100%;
  }

  .hospital-healthy-state .hospital-grid {
    width: 100%;
  }

  .hospital-healthy-state .hospital-card {
    text-align: left;
  }

  .hospital-visitor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 10px;
  }

  .hospital-secondary-btn {
    background: rgba(148, 163, 184, 0.2);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  }

  .hospital-secondary-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
  }

  @media (hover: hover) {
    .hospital-secondary-btn:not(:disabled):hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 20px rgba(148, 163, 184, 0.25);
      background: rgba(148, 163, 184, 0.35);
    }
  }

  .hospital-heal-footnote {
    margin: 0;
    font-size: 0.85em;
    color: #9ca3af;
  }

  .hospital-status-pill--healthy {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.6);
  }

  .hospital-patient-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .hospital-patient-count {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 600;
    font-size: 0.9em;
  }

  .hospital-patient-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 120px;
  }

  .hospital-patient-card {
    display: flex;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    align-items: center;
  }

  .hospital-patient-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
  }

  .hospital-patient-info {
    flex: 1;
  }

  .hospital-patient-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #f8fafc;
  }

  .hospital-patient-level {
    font-size: 0.85em;
    color: #a5b4fc;
  }

  .hospital-patient-meta {
    font-size: 0.9em;
    color: #cbd5f5;
  }

  .hospital-patient-health {
    font-weight: 600;
    color: #fcd34d;
  }

  .hospital-patient-reason {
    font-size: 0.85em;
    color: #93c5fd;
    margin: 2px 0 0;
  }

  .hospital-patient-empty {
    text-align: center;
    color: #94a3b8;
  }

  .hospital-patient-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
  }

  .hospital-patient-dot.is-offline {
    background: #6b7280;
    box-shadow: none;
  }

  body.is-hospitalized .tab.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }

  body.is-hospitalized .tab[data-tab="hospital"] {
    box-shadow: 0 0 0 2px rgba(252, 211, 77, 0.6);
  }

  body.is-flying .tab.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }

  body.is-flying .tab[data-tab="flight"] {
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.6);
  }

  @media (max-width: 768px) {
    .hospital-grid {
      grid-template-columns: 1fr;
    }
    .hospital-card {
      padding: 16px;
    }
    .hospital-countdown-value {
      font-size: 2em;
    }
  }


/* ===== ADMIN PANELS & LAYOUT ===== */
.admin-grid-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.admin-grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.admin-grid-two-col .card,
.admin-grid-wide .card {
  width: 100%;
}

.admin-card-span-2 {
  grid-column: span 2;
}

@media (max-width: 960px) {
  .admin-card-span-2 {
    grid-column: span 1;
  }
}

#adminScreen .admin-ops-card {
  background: radial-gradient(circle at 10% -20%, rgba(79, 70, 229, 0.35), rgba(8, 11, 23, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.55);
  padding: 22px;
}

#adminScreen .admin-ops-card h3 {
  margin-top: 0;
  font-size: 1.15em;
  letter-spacing: 0.02em;
  color: #e0e7ff;
}

#adminScreen .admin-ops-card p,
#adminScreen .admin-ops-card label,
#adminScreen .admin-ops-card span,
#adminScreen .admin-ops-card textarea,
#adminScreen .admin-ops-card input,
#adminScreen .admin-ops-card select {
  color: #dbeafe;
}

#adminScreen .admin-ops-card button {
  border-radius: 12px;
  font-weight: 600;
}

#adminScreen .admin-ops-card textarea,
#adminScreen .admin-ops-card input,
#adminScreen .admin-ops-card select {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
}

#adminScreen .admin-ops-card textarea:focus,
#adminScreen .admin-ops-card input:focus,
#adminScreen .admin-ops-card select:focus {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* ===== MODERATOR INTELLIGENCE HUD ===== */
.admin-target-hud {
  width: 100%;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.35), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 25px 45px rgba(2, 6, 23, 0.65);
  gap: 20px;
}

.admin-target-hud__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-target-hud__subtitle {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 0.9em;
}

.admin-target-hud__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-chip-btn {
  border: 1px solid rgba(96, 165, 250, 0.5);
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.admin-chip-btn.danger {
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}

.admin-chip-btn.secondary {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.admin-chip-btn:active {
  transform: translateY(1px);
}

.admin-target-hud__grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.admin-target-hud__identity {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-target-hud__selector label,
.admin-target-input-group label,
.admin-target-label {
  font-size: 0.82em;
  color: #94a3b8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-target-hud__selector select,
.admin-target-input-row input,
.admin-target-hud__meta textarea {
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95em;
}

.admin-target-hud__selector select {
  margin-top: 6px;
}

.admin-target-hud__selector-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.admin-target-input-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.admin-target-input-row button,
.admin-target-hud__selector-actions button {
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.admin-target-hud__selector-actions button.secondary {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.admin-target-hud__meta textarea {
  min-height: 70px;
  resize: vertical;
}

.admin-target-uid-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.admin-target-uid {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-target-pill {
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.5);
  font-size: 0.78em;
  color: #bfdbfe;
}

.admin-target-hud__preview {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  padding: 22px;
  display: flex;
  gap: 20px;
}

.admin-target-avatar {
  position: relative;
  width: 160px;
  flex-shrink: 0;
}

.admin-target-avatar img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.ghost-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(2, 6, 23, 0.55);
  color: #e2e8f0;
  font-size: 0.85em;
  cursor: pointer;
}

.admin-target-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-target-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-status-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-status-badge.online {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.admin-status-badge.offline {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5f5;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.admin-target-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-chip {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.35);
  font-size: 0.8em;
  color: #dbeafe;
}

.admin-target-currencies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.admin-target-currency {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-target-currency img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.admin-target-currency p {
  margin: 0;
  font-size: 0.85em;
  color: #94a3b8;
}

.admin-target-currency strong {
  font-size: 1.1em;
}

.admin-target-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.admin-target-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.admin-target-progress .value {
  height: 100%;
  background: linear-gradient(90deg, #34d399, #10b981);
  border-radius: inherit;
}

.admin-target-progress-label {
  font-size: 0.8em;
  color: #cbd5f5;
}

.admin-target-intel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.intel-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.intel-card strong {
  font-size: 1.15em;
  color: #f8fafc;
}

.intel-meta {
  font-size: 0.8em;
  color: #94a3b8;
}

@media (max-width: 1100px) {
  .admin-target-hud__grid {
    grid-template-columns: 1fr;
  }

  .admin-target-hud__preview {
    flex-direction: column;
  }

  .admin-target-avatar {
    width: 140px;
  }
}

@media (max-width: 640px) {
  .admin-target-hud {
    padding: 18px;
  }

  .admin-target-input-row {
    flex-direction: column;
  }

  .admin-target-input-row button,
  .admin-target-hud__selector-actions button {
    width: 100%;
  }

  .admin-target-hud__actions {
    width: 100%;
    flex-direction: column;
  }
}

/* ===== Travel & Airport ===== */
.travel-summary-card {
  min-width: 260px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 15, 35, 0.9));
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.travel-summary-card[data-travel-state="enRoute"] {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}
.travel-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.travel-summary-label {
  margin: 0;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.travel-summary-city {
  margin: 2px 0 0;
  font-size: 1.15em;
  font-weight: 700;
}
.travel-summary-status {
  margin: 0;
  font-size: 0.95em;
  color: var(--text-secondary);
}
.travel-summary-btn {
  border: none;
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  color: #e0f2fe;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.travel-summary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (hover: hover) {
  .travel-summary-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
  }
}

.shop-city-meta {
  margin: 4px 0 12px;
  color: var(--text-secondary);
  font-size: 0.9em;
}

.modal-secondary {
  border: 1px solid rgba(96, 165, 250, 0.4);
  background: transparent;
  color: #bfdbfe;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.modal-secondary:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #e0f2fe;
}

.airport-modal {
  max-width: 640px;
  width: 100%;
  background: #0f172a;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}
.airport-modal .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: 12px;
}
.airport-modal .modal-footer {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.airport-status-card {
  background: rgba(30, 64, 175, 0.25);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(191, 219, 254, 0.2);
  margin-bottom: 16px;
}
.airport-status-card p {
  margin: 4px 0;
  color: var(--text-secondary);
}
.airport-status-card strong {
  font-size: 1.05em;
}
.airport-routes-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.airport-routes-header h3 {
  margin: 0;
  font-size: 1em;
  color: #93c5fd;
}
.airport-routes-header span {
  font-size: 0.85em;
  color: var(--text-secondary);
}
.airport-route-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.airport-route-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.airport-route-card h4 {
  margin: 0 0 4px;
  font-size: 1.05em;
}
.airport-route-card p {
  margin: 0;
  font-size: 0.9em;
  color: var(--text-secondary);
}
.airport-route-card .route-meta {
  display: flex;
  flex-direction: column;
}
.airport-route-card .route-fare {
  font-size: 0.85em;
  color: var(--text-secondary);
}
.airport-route-btn {
  align-self: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ecfdf5;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.airport-route-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.airport-route-card[data-flight-state="active"] {
  border-color: rgba(16, 185, 129, 0.6);
}

.travel-map-modal {
  max-width: 720px;
  width: 100%;
  background: #020617;
  border-radius: 18px;
  border: 1px solid rgba(6, 182, 212, 0.35);
}
.travel-map-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#travelMapSvg {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 50%, rgba(7, 89, 133, 0.3), rgba(2, 6, 23, 0.85));
  border: 1px solid rgba(6, 182, 212, 0.25);
}
.travel-map-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9em;
  color: var(--text-secondary);
}
.legend-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.legend-dot.current { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.6); }
.legend-dot.reachable { background: #facc15; }
.legend-dot.locked { background: rgba(148, 163, 184, 0.6); }

#travelMapSvg .map-edge {
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 0.6;
}
#travelMapSvg .map-edge-active {
  stroke: rgba(34, 197, 94, 0.8);
  stroke-width: 1;
}
#travelMapSvg .map-edge-flight {
  stroke: rgba(250, 204, 21, 0.9);
  stroke-dasharray: 2;
  stroke-width: 1.2;
}
#travelMapSvg .map-node {
  fill: rgba(148, 163, 184, 0.9);
  stroke: rgba(15, 23, 42, 0.8);
  stroke-width: 0.6;
}
#travelMapSvg .map-node.current {
  fill: #10b981;
  stroke: rgba(8, 145, 178, 0.8);
  stroke-width: 1.2;
}
#travelMapSvg .map-node.reachable {
  fill: #facc15;
  cursor: pointer;
}
#travelMapSvg .map-node.destination {
  fill: #f97316;
}
#travelMapSvg .map-node.locked {
  fill: rgba(71, 85, 105, 0.7);
}
#travelMapSvg .map-label {
  fill: #e2e8f0;
  font-size: 3px;
  text-anchor: middle;
  pointer-events: none;
}

@media (max-width: 768px) {
  .airport-route-card {
    grid-template-columns: 1fr;
  }
  .travel-summary-card {
    width: 100%;
  }
  #travelMapSvg {
    height: 300px;
  }
}


