/* ==============================================
   RUST BALKAN — Lobby UI
   ============================================== */

:root {
  --rust-red: #cd412b;
  --rust-red-hover: #e04d34;
  --rust-red-dark: #a8341f;
  --bg-dark: #1a1a1a;
  --text-primary: #f5f0e8;
  --text-muted: #9c958a;
  --text-dim: #6b645a;
  --panel-bg: rgba(20, 18, 16, 0.85);
  --panel-border: rgba(205, 65, 43, 0.3);
  --shadow-strong: 0 4px 24px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Sakriva sadrzaj vizuelno ali ostavlja za screen readere i SEO */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  color: var(--text-primary);
  overflow: hidden;
  user-select: none;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ==============================================
   POZADINA
   ============================================== */

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.65) contrast(1.05) saturate(0.95);
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}
.bg-video.active { opacity: 1; }

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
}

/* ==============================================
   LAYOUT
   ============================================== */

.lobby {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  padding: 24px 32px;
  gap: 24px;
}

/* ==============================================
   LOGO
   ============================================== */

.logo-area {
  grid-column: 1;
  grid-row: 1;
}

.logo {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 16px rgba(205,65,43,0.5));
}

.logo-img {
  width: auto;
  height: 195px;
  max-width: 100%;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7));
}

@media (max-width: 900px) {
  .logo-img { height: 135px; }
}

@media (max-width: 480px) {
  .logo-img { height: 105px; }
}

/* ==============================================
   GLAVNI MENI
   ============================================== */

.main-menu {
  position: absolute;
  left: 32px;
  top: 243px;        /* 24 padding + 195 logo + 24 gap */
  bottom: 100px;     /* 24 padding + ~50 status + ~26 gap */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  max-width: 360px;
  z-index: 2;
}

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 4px 4px 4px 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-align: left;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.menu-item .menu-text {
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.menu-item:hover {
  color: white;
  border-left-color: var(--rust-red);
  padding-left: 24px;
}

.menu-item.primary {
  color: white;
}

.menu-item.primary .menu-text {
  background: linear-gradient(135deg, var(--rust-red) 0%, var(--rust-red-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.menu-item.primary:hover .menu-text {
  background: linear-gradient(135deg, #ff5a3d 0%, #ff7a5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-hint {
  font-family: 'Inter', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  border-radius: 3px;
  margin-left: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.menu-item:hover .menu-hint { opacity: 1; }

.badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--rust-red);
  color: white;
  padding: 3px 8px;
  border-radius: 2px;
  margin-left: 12px;
  text-shadow: none;
  box-shadow: 0 2px 6px rgba(205,65,43,0.5);
}

.menu-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--text-dim), transparent);
  margin: 10px 0;
  width: 80%;
}

/* ==============================================
   MESSAGES PANEL (gore desno)
   ============================================== */

.messages-panel {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 420px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.messages-header {
  background: var(--rust-red);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.messages-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  color: white;
  font-weight: normal;
}

.user-slot {
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-slot button.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  font-size: 11px;
  color: white;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
  letter-spacing: 1px;
  font-weight: 700;
}
.user-slot button.user-chip:has(img) { padding: 3px 10px 3px 4px; }
.user-slot button.user-chip:hover { background: rgba(0,0,0,0.5); }
.user-slot .user-chip-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
}
.user-slot .user-chip-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.messages-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(40, 80, 40, 0.25);
  border: 1px solid rgba(80, 160, 80, 0.4);
  font-size: 13px;
  line-height: 1.4;
}

.message-item.wipe-msg {
  background: rgba(120, 80, 30, 0.25);
  border-color: rgba(200, 140, 50, 0.4);
}

.message-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

.message-icon.ok { background: #4a9a4a; color: white; }
.message-icon.warn { background: #c8853e; color: white; }

.message-content { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.msg-strong { color: #b8e6b8; font-weight: 600; }
.message-item.wipe-msg .msg-strong { color: #f0c894; }
.msg-text { color: var(--text-muted); }

.msg-countdown {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 3px;
  color: white;
  line-height: 1;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(205,65,43,0.4);
}

/* ==============================================
   STATUS BAR (dole)
   ============================================== */

.status-bar {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 12px 16px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  letter-spacing: 1px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.status-item:hover .status-label { color: var(--rust-red); }

.status-label {
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.status-value {
  color: var(--text-primary);
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #888;
}

.status-dot.online {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

#server-ip {
  font-family: 'SF Mono', 'Menlo', monospace;
  background: rgba(0,0,0,0.5);
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
}

#server-ip:hover { background: rgba(205,65,43,0.3); }

.status-controls {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.sound-toggle {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--text-dim);
  color: var(--text-muted);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}

.sound-toggle:hover {
  border-color: var(--rust-red);
  color: var(--rust-red);
}

/* ==============================================
   SIDEBAR IKONE (desno, vertikalno)
   ============================================== */

/* Social ikone — vertikalno, desno, između messages-panel i status-bar */
.sidebar-icons {
  position: absolute;
  right: 32px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  color: var(--text-muted);
  border-radius: 4px;
  transition: all 0.15s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.icon-btn svg { width: 18px; height: 18px; }

.icon-btn:hover {
  background: var(--rust-red);
  color: white;
  transform: scale(1.1);
}

/* ==============================================
   MODAL
   ============================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop[hidden] { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  width: min(640px, 90vw);
  max-height: 80vh;
  overflow: auto;
  background: #14110f;
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  animation: slideUp 0.25s ease;
  /* Custom scrollbar — uklapa se u rust-red theme */
  scrollbar-width: thin;
  scrollbar-color: var(--rust-red) rgba(20, 17, 15, 0.6);
}
.modal::-webkit-scrollbar { width: 8px; height: 8px; }
.modal::-webkit-scrollbar-track {
  background: rgba(20, 17, 15, 0.6);
}
.modal::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rust-red), #8a2c1c);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.3);
}
.modal::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e0532e, var(--rust-red));
}
.modal::-webkit-scrollbar-corner { background: transparent; }

/* Isti stil za bilo koji element u modalu koji scroll-uje (npr. profile-orders, report tekst) */
.modal *::-webkit-scrollbar { width: 8px; height: 8px; }
.modal *::-webkit-scrollbar-track { background: rgba(20, 17, 15, 0.6); }
.modal *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rust-red), #8a2c1c);
  border-radius: 4px;
}
.modal *::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e0532e, var(--rust-red));
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--rust-red); }

.modal-body { padding: 0; }

.modal-header {
  background: var(--rust-red);
  padding: 16px 20px;
}

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  color: white;
  font-weight: normal;
}

.modal-content {
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
}

.modal-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--rust-red);
  margin: 20px 0 8px;
  font-weight: normal;
}

.modal-content h3:first-child { margin-top: 0; }
.modal-content p { margin-bottom: 12px; color: var(--text-muted); }
.modal-content ul { margin: 8px 0 16px 20px; color: var(--text-muted); }
.modal-content li { margin-bottom: 6px; }
.modal-content strong { color: var(--text-primary); }
.modal-content code {
  background: #000;
  color: var(--rust-red);
  padding: 2px 8px;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 13px;
  border-radius: 2px;
}

.connect-box {
  background: #000;
  border: 1px solid var(--rust-red);
  padding: 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.connect-box code {
  background: transparent;
  padding: 0;
  font-size: 16px;
  flex: 1;
  word-break: break-all;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rust-red);
  color: white;
  border: none;
  padding: 10px 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover { background: var(--rust-red-hover); }
.btn.secondary { background: transparent; border: 1px solid var(--rust-red); }
.btn.secondary:hover { background: var(--rust-red); }

/* ==============================================
   SHOP MODAL
   ============================================== */

.shop { padding-bottom: 12px; }

.shop-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
  border: 1px solid #66c0f4;
  padding: 12px 16px;
  margin-bottom: 24px;
}
.shop-auth-text { color: #c7d5e0; font-size: 13px; }
.steam-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #66c0f4 0%, #1a9fff 100%);
  color: white;
  padding: 8px 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.15s;
  border-radius: 2px;
  white-space: nowrap;
}
.steam-login-btn:hover { filter: brightness(1.15); }

.shop-note {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: -4px;
  margin-bottom: 12px;
}

/* VIP grid */
.vip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.vip-card {
  position: relative;
  background: #0a0908;
  border: 1px solid #2a2520;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.vip-card:hover {
  transform: translateY(-2px);
  border-color: var(--rust-red);
  box-shadow: 0 6px 20px rgba(205,65,43,0.25);
}

.vip-card.featured {
  background: linear-gradient(180deg, #1a1411 0%, #0a0908 100%);
  border-color: var(--rust-red);
  box-shadow: 0 0 24px rgba(205,65,43,0.15);
}

.vip-card.best-value {
  background: linear-gradient(180deg, #1c1a10 0%, #0a0908 100%);
  border-color: #ffd700;
  box-shadow: 0 0 28px rgba(255,215,0,0.2);
}

.vip-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--rust-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(205,65,43,0.5);
}
.vip-badge.gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #2a1a00;
  box-shadow: 0 2px 8px rgba(255,215,0,0.5);
}

.vip-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #c8232c;
  color: white;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 2px;
  transform: rotate(-3deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.vip-card.best-value .vip-discount {
  background: #ff4d2d;
  font-size: 18px;
  animation: pulse-discount 1.8s ease-in-out infinite;
}
@keyframes pulse-discount {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50%      { transform: rotate(-3deg) scale(1.08); }
}

.vip-tier {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 4px;
  color: white;
  margin-bottom: 6px;
  margin-top: 4px;
}
.vip-card.best-value .vip-tier { color: #ffd700; }
.vip-card.featured .vip-tier { color: var(--rust-red); }

.vip-price-old {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: var(--rust-red);
  text-decoration-thickness: 2px;
  margin-bottom: 2px;
}

.vip-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.vip-card.best-value .vip-price { color: #ffd700; }

.vip-period {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.vip-card ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  flex: 1;
  text-align: left;
}
.vip-card li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  padding-left: 16px;
}
.vip-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rust-red);
  font-weight: bold;
}

.shop-btn {
  width: 100%;
  background: var(--rust-red);
  color: white;
  border: none;
  padding: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.15s;
}
.shop-btn:hover { background: var(--rust-red-hover); }
.shop-btn.small {
  padding: 6px 8px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* ==============================================
   RUST-STYLE SHOP TABLE (in-game itemi)
   ============================================== */

.rust-shop-table {
  background: rgba(38, 28, 22, 0.55);
  border: 1px solid rgba(120, 85, 60, 0.3);
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.rust-shop-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(20, 14, 10, 0.7);
  border-bottom: 1px solid rgba(120, 85, 60, 0.3);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: #c2b8a9;
  text-transform: uppercase;
}

.rust-shop-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
  border-bottom: 1px solid rgba(60, 45, 35, 0.4);
  transition: background 0.12s ease;
}
.rust-shop-row:last-child { border-bottom: none; }
.rust-shop-row:hover {
  background: rgba(50, 35, 25, 0.4);
}

.rust-col-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rust-item-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(180deg, #4a3a2a 0%, #2a1f15 100%);
  border: 1px solid rgba(120, 85, 60, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  overflow: hidden;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.rust-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.rust-sub-note {
  text-align: center;
  font-size: 10px;
  color: #ffd700;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  padding: 4px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.rust-item-info {
  flex: 1;
  min-width: 0;
}

.rust-item-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 1px;
  color: #f0e8db;
  line-height: 1.1;
  margin-bottom: 2px;
}

.rust-item-desc {
  font-size: 11px;
  color: #9c958a;
  line-height: 1.3;
}

.rust-col-cost {
  display: flex;
  justify-content: center;
  align-items: center;
}

.rust-cost {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
  color: #f0e8db;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.rust-cost-eur {
  font-size: 18px;
  margin-left: 2px;
  color: #c2b8a9;
}

.rust-col-buy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.rust-buy-btn {
  background: linear-gradient(180deg, #7ba832 0%, #5e8526 100%);
  color: white;
  border: 1px solid #4a6a1d;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.12s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.rust-buy-btn:hover {
  background: linear-gradient(180deg, #8fc23a 0%, #6e9a2c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.rust-buy-btn:active {
  transform: translateY(0);
}
.rust-buy-btn:disabled {
  background: linear-gradient(180deg, #555 0%, #333 100%);
  border-color: #222;
  cursor: not-allowed;
  opacity: 0.6;
}

.rust-qty {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 0;
  background: rgba(20, 14, 10, 0.7);
  border: 1px solid rgba(60, 45, 35, 0.6);
}

.rust-qty-btn {
  background: transparent;
  border: none;
  color: #c2b8a9;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 0;
  transition: background 0.12s, color 0.12s;
  user-select: none;
}
.rust-qty-btn:hover {
  background: rgba(205, 65, 43, 0.4);
  color: white;
}
.rust-qty-btn:active {
  background: rgba(205, 65, 43, 0.7);
}

.rust-qty-input {
  background: transparent;
  border: none;
  border-left: 1px solid rgba(60, 45, 35, 0.6);
  border-right: 1px solid rgba(60, 45, 35, 0.6);
  color: #f0e8db;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  width: 100%;
  padding: 4px 0;
  outline: none;
}

@media (max-width: 600px) {
  .rust-shop-header { font-size: 11px; letter-spacing: 1px; padding: 8px 10px; }
  .rust-shop-row { padding: 10px; gap: 8px; }
  .rust-item-icon { width: 44px; height: 44px; font-size: 24px; }
  .rust-item-name { font-size: 14px; }
  .rust-item-desc { font-size: 10px; }
  .rust-cost { font-size: 24px; }
  .rust-buy-btn { font-size: 14px; padding: 6px 8px; letter-spacing: 1px; }
}

/* In-game items grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.item-card {
  background: #0a0908;
  border: 1px solid #2a2520;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.15s ease;
}
.item-card:hover {
  border-color: var(--rust-red);
  transform: translateY(-2px);
  background: linear-gradient(180deg, #14110f 0%, #0a0908 100%);
}

.item-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.item-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: white;
  line-height: 1.1;
  margin-bottom: 4px;
}

.item-desc {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.3;
  margin-bottom: 8px;
  flex: 1;
  min-height: 26px;
}

.item-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--rust-red);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.shop-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #2a2520;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* Logged-in user bar */
.shop-auth.logged-in {
  background: linear-gradient(135deg, #1b2838 0%, #0f1419 100%);
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 2px solid #66c0f4;
}
.user-info { flex: 1; }
.user-name {
  font-weight: 700;
  color: white;
  font-size: 14px;
}
.user-meta {
  font-size: 11px;
  color: #8f98a0;
  font-family: 'SF Mono', 'Menlo', monospace;
}
.vip-tag {
  background: var(--rust-red);
  color: white;
  padding: 1px 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  margin-left: 4px;
}
.logout-btn {
  font-size: 12px;
  color: #66c0f4;
  text-decoration: underline;
}
.logout-btn:hover { color: white; }

/* Checkout */
.checkout-info {
  background: #0a0908;
  border: 1px solid #2a2520;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.checkout-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.checkout-row:last-child { border-bottom: none; }
.checkout-label {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.checkout-value {
  color: white;
  font-weight: 600;
}
.checkout-amount {
  color: var(--rust-red);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
}
.tx-input {
  width: 100%;
  background: #000;
  border: 1px solid #2a2520;
  color: white;
  padding: 12px 16px;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 13px;
  outline: none;
}
.tx-input:focus { border-color: var(--rust-red); }

/* QR sekcija */
.qr-section {
  margin: 16px auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.qr-wrap {
  padding: 14px;
  background: #f0e8db;
  border: 2px solid #2a1f15;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.qr-img {
  display: block;
  width: 220px;
  height: 220px;
  image-rendering: pixelated;
}
.qr-hint {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-dim);
  max-width: 380px;
  line-height: 1.4;
}

/* Checkout polling status */
.checkout-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.3);
  margin-top: 16px;
}
.checkout-status.waiting {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
}
.checkout-status.success {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.4);
  animation: pulseSuccess 1s ease;
}
.checkout-status.error {
  background: rgba(205, 65, 43, 0.1);
  border-color: rgba(205, 65, 43, 0.4);
}
@keyframes pulseSuccess {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.02); box-shadow: 0 0 30px rgba(74, 222, 128, 0.4); }
  100% { transform: scale(1); }
}

.status-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(251, 191, 36, 0.2);
  border-top-color: rgba(251, 191, 36, 1);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}
.checkout-status.success .status-icon {
  background: #4ade80;
  color: white;
}
.checkout-status.error .status-icon {
  background: #cd412b;
  color: white;
}

.status-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.status-text strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: white;
}
.checkout-status.success .status-text strong { color: #4ade80; }
.checkout-status.error .status-text strong { color: #cd412b; }
.status-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  .vip-grid { grid-template-columns: 1fr; }
  .items-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-auth { flex-direction: column; align-items: stretch; }
  .steam-login-btn { justify-content: center; }
}

/* News (dynamic posts) */
.news-wipe-banner {
  background: linear-gradient(135deg, rgba(205,65,43,0.15), rgba(120,30,15,0.2));
  border: 1px solid rgba(205,65,43,0.4);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.news-wipe-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--rust-red);
}
.news-wipe-countdown {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: white;
  font-variant-numeric: tabular-nums;
}

.news-post {
  background: rgba(20, 14, 10, 0.4);
  border-left: 3px solid var(--border);
  padding: 14px 18px;
  margin-bottom: 12px;
}
.news-post.pinned {
  border-left-color: #ffd700;
  background: rgba(40, 30, 10, 0.4);
}
.news-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.news-emoji { font-size: 22px; line-height: 1; }
.news-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: white;
  margin: 0;
  flex: 1;
}
.news-pin { color: #ffd700; font-size: 14px; }
.news-date {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.news-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Map info grid */
.map-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.map-info-grid > div {
  background: #0a0908;
  border: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}
.map-stat-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.map-stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: white;
}

/* Profile modal */
.profile-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-dim);
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  border: 2px solid rgba(255, 215, 0, 0.4);
  flex-shrink: 0;
}
.profile-id { flex: 1; min-width: 0; }
.profile-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
  word-break: break-word;
}
.profile-steam {
  font-size: 11px;
  color: var(--text-dim);
}
.profile-steam a { color: var(--text-muted); }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.profile-stat {
  background: #0a0908;
  border: 1px solid #2a2520;
  padding: 12px 14px;
}
.profile-stat-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.profile-stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: white;
  line-height: 1.1;
}

.profile-orders {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 16px;
}
.profile-orders th, .profile-orders td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.profile-orders th {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.badge-status {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-status.delivered { background: rgba(74,222,128,0.15); color: #4ade80; }
.badge-status.paid { background: rgba(96,165,250,0.15); color: #60a5fa; }
.badge-status.pending { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-status.failed { background: rgba(205,65,43,0.15); color: var(--rust-red); }
.badge-status.expired { background: rgba(107,100,90,0.15); color: var(--text-dim); }

/* Referral */
.referral-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.referral-stat {
  background: linear-gradient(135deg, rgba(255,215,0,0.05), rgba(205,65,43,0.05));
  border: 1px solid rgba(255,215,0,0.2);
  padding: 12px 14px;
  text-align: center;
}
.referral-stat-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.referral-stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: #ffd700;
}

.referral-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
}
.referral-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(20,14,10,0.3);
  font-size: 12px;
}
.referral-item img { width: 24px; height: 24px; border-radius: 50%; }

/* Report form */
.report-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 8px 0 20px;
}
.report-type-btn {
  background: #0a0908;
  border: 1px solid #2a2520;
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  color: var(--text-muted);
}
.report-type-btn:hover {
  border-color: var(--rust-red);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.report-type-btn.active {
  background: linear-gradient(180deg, rgba(205,65,43,0.2) 0%, #0a0908 100%);
  border-color: var(--rust-red);
  color: white;
  box-shadow: 0 0 16px rgba(205,65,43,0.25);
}
.report-icon { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.report-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
}
.report-sub { font-size: 10px; color: var(--text-dim); margin-top: 2px; }

.report-form { margin-top: 12px; }
.report-form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin: 14px 0 4px;
  font-weight: 600;
}
.report-form .required { color: var(--rust-red); }
.report-form input,
.report-form textarea {
  width: 100%;
  background: #000;
  border: 1px solid #2a2520;
  color: white;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  resize: vertical;
}
.report-form input:focus,
.report-form textarea:focus { border-color: var(--rust-red); }
.report-form textarea { min-height: 100px; }

.report-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  font-style: italic;
}

.report-reporter {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 10px 14px;
  margin: 14px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.report-submit {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  font-size: 16px;
}

.report-success {
  text-align: center;
  padding: 32px 16px;
  background: rgba(74,222,128,0.05);
  border: 1px solid rgba(74,222,128,0.3);
}
.report-success-icon {
  width: 56px;
  height: 56px;
  background: var(--green);
  color: white;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-weight: bold;
  animation: pulseSuccess 0.6s ease;
}

/* Legal blocks (Terms, Privacy, Refund, Cookie) */
.legal-block {
  background: rgba(20, 14, 10, 0.5);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 13px;
  transition: border-color 0.15s;
}
.legal-block:hover { border-color: rgba(120, 85, 60, 0.5); }
.legal-block summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
  list-style: none;
  position: relative;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}
.legal-block summary:hover { color: var(--text); }
.legal-block summary::-webkit-details-marker { display: none; }
.legal-block summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-dim);
  transition: transform 0.15s;
}
.legal-block[open] summary::after {
  content: '−';
}
.legal-block[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--rust-red);
}

.legal-content {
  padding: 16px 20px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}
.legal-content h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 6px;
  text-transform: none;
}
.legal-content h4:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 8px; }
.legal-content ul, .legal-content ol {
  margin: 6px 0 8px 18px;
  padding: 0;
}
.legal-content li {
  margin-bottom: 3px;
  font-size: 12px;
}

/* News dynamic posts */
.news-wipe-banner {
  background: linear-gradient(135deg, rgba(205,65,43,0.15), rgba(120,30,15,0.2));
  border: 1px solid rgba(205,65,43,0.4);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.news-wipe-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--rust-red);
}
.news-wipe-cd {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: white;
  font-variant-numeric: tabular-nums;
}

.news-post {
  background: rgba(20,14,10,0.5);
  border-left: 3px solid var(--border);
  padding: 12px 16px;
  margin-bottom: 10px;
}
.news-post.pinned {
  border-left-color: #ffd700;
  background: rgba(40,30,10,0.4);
}
.news-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.news-emoji { font-size: 20px; line-height: 1; }
.news-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 1px;
  color: white;
  margin: 0;
  flex: 1;
}
.news-pin { color: #ffd700; }
.news-date {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.news-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Online list (public, u stats modalu) */
.online-list-public {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  margin: 8px 0 16px;
}
.online-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(20,14,10,0.4);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  transition: all 0.12s;
}
.online-player:hover {
  border-color: var(--rust-red);
  background: rgba(20,14,10,0.6);
  text-decoration: none;
}
.online-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.online-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.online-time {
  font-size: 10px;
  color: var(--text-dim);
  font-family: 'SF Mono', monospace;
}

/* Testimonials (recenzije) */
.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 16px;
}
.testimonial {
  background: rgba(20,14,10,0.5);
  border-left: 3px solid rgba(255, 215, 0, 0.4);
  padding: 12px 16px;
  position: relative;
}
.testimonial.pinned {
  border-left-color: #ffd700;
  background: linear-gradient(135deg, rgba(255,215,0,0.05), rgba(20,14,10,0.5));
}
.testimonial-stars {
  color: #ffd700;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.testimonial-content {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.testimonial-author img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

/* Map LIVE */
.map-modal-content { padding: 0 !important; }
.map-meta {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}
.map-image-wrap {
  width: 100%;
  background: #0b3b4a;
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
  overflow: hidden;
}
.map-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: grab;
  overflow: hidden;
  user-select: none;
}
.map-canvas:active { cursor: grabbing; }
.map-stack {
  width: 100%;
  height: 100%;
  position: relative;
  transform-origin: 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-canvas img.map-layer {
  position: absolute;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
  image-rendering: -webkit-optimize-contrast;
}
.map-canvas .map-base { z-index: 1; }
.map-canvas .map-icons { z-index: 2; }

.map-loading-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 6px 12px;
  font-size: 11px;
  z-index: 4;
  border-radius: 2px;
  pointer-events: none;
}
.map-canvas:fullscreen,
.map-canvas:-webkit-full-screen {
  background: #0b3b4a;
}

.map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}
.map-ctrl {
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.12s;
}
.map-ctrl:hover {
  background: var(--rust-red);
  border-color: var(--rust-red);
}
.map-overlay-info {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-around;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  color: white;
  border-radius: 2px;
  flex-wrap: wrap;
}
.map-overlay-info strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--rust-red);
  margin-right: 4px;
}
.map-loading {
  padding: 60px 16px;
  color: var(--text-dim);
  text-align: center;
  font-size: 14px;
}
#map-monuments {
  padding: 0 20px 20px;
}

.map-monuments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.map-monument {
  background: #0a0908;
  border: 1px solid var(--border);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.map-monument-count {
  color: var(--rust-red);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  margin-right: 4px;
}

/* Referrals list */
.referrals-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  max-height: 240px;
  overflow-y: auto;
}
.referrals-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(20,14,10,0.4);
  font-size: 12px;
}
.referrals-item img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.ref-avatar-placeholder {
  width: 24px;
  height: 24px;
  background: var(--bg-3);
  border-radius: 50%;
}

/* Profile */
.profile-header {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,215,0,0.05);
  border: 1px solid rgba(255,215,0,0.2);
  padding: 14px; margin-bottom: 16px;
}
.profile-avatar { width: 56px; height: 56px; border-radius: 4px; border: 2px solid rgba(255,215,0,0.4); flex-shrink: 0; }
.profile-id { flex: 1; min-width: 0; }
.profile-name { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; color: white; margin-bottom: 2px; word-break: break-word; }
.profile-steam { font-size: 11px; color: var(--text-dim); }
.profile-steam a { color: var(--text-muted); }

.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 18px; }
.profile-stat { background: #0a0908; border: 1px solid #2a2520; padding: 10px 14px; }
.profile-stat-label { font-size: 10px; color: var(--text-dim); letter-spacing: 2px; margin-bottom: 4px; }
.profile-stat-value { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: white; line-height: 1.1; }

.profile-orders { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 16px; }
.profile-orders th, .profile-orders td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.profile-orders th { font-size: 10px; letter-spacing: 1px; color: var(--text-dim); text-transform: uppercase; }

.badge-status { font-size: 10px; padding: 2px 6px; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-status.delivered { background: rgba(74,222,128,0.15); color: #4ade80; }
.badge-status.paid { background: rgba(96,165,250,0.15); color: #60a5fa; }
.badge-status.pending { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-status.failed { background: rgba(205,65,43,0.15); color: var(--rust-red); }
.badge-status.expired { background: rgba(107,100,90,0.15); color: var(--text-dim); }

/* Affiliate progress */
.affiliate-progress-wrap { margin: 12px 0 8px; }
.affiliate-progress {
  height: 18px;
  background: #0a0908;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.affiliate-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #cd412b 0%, #ffd700 100%);
  transition: width 0.5s ease;
}
.affiliate-progress-label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.team-card {
  background: #0a0908;
  border: 1px solid #2a2520;
  padding: 12px;
  text-align: center;
}

.team-name { font-weight: 700; color: white; }
.team-role {
  font-size: 11px;
  color: var(--rust-red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ==============================================
   TOAST
   ============================================== */

.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1612;
  border: 1px solid var(--rust-red);
  color: white;
  padding: 12px 24px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 200;
}

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

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 900px) {
  html, body { overflow: auto; }

  .lobby {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    padding: 16px;
    height: auto;
    min-height: 100vh;
  }

  .messages-panel {
    position: static;       /* override desktop absolute */
    top: auto;
    right: auto;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }

  .main-menu {
    position: static;       /* override desktop absolute */
    top: auto;
    bottom: auto;
    left: auto;
    grid-column: 1;
    grid-row: 3;
    align-self: start;
  }

  .menu-item { font-size: 32px; }

  .logo-rust { font-size: 40px; }

  .sidebar-icons {
    position: static;        /* override desktop fixed */
    right: auto;
    bottom: auto;
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    flex-direction: row;
    justify-content: center;
    margin: 8px 0 16px;
  }

  .status-bar {
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .menu-item { font-size: 26px; letter-spacing: 2px; }
  .menu-hint { display: none; }
  .messages-header h2 { font-size: 18px; }
}


/* ---------- Mobile: sakri ceo glavni meni ---------- */
.mobile-menu-toggle { display: none !important; }

@media (max-width: 900px) {
  .main-menu { display: none !important; }
}

/* ---------- Popup ad ---------- */
.popup-ad {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

.popup-ad[hidden] { display: none !important; }

.popup-ad-content {
  position: relative;
  width: min(560px, 92vw);
  max-height: 92vh;
  animation: slideUp 0.3s ease;
}

.popup-ad-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rust-red);
  color: white;
  border: 2px solid white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
  transition: transform 0.15s ease, background 0.15s ease;
}

.popup-ad-close:hover {
  transform: scale(1.1);
  background: #e85a44;
}

.popup-ad-link {
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: none;
  background: transparent;
}

.popup-ad-link:hover { transform: scale(1.015); }

.popup-ad-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

@media (max-width: 600px) {
  .popup-ad { padding: 12px; }
  .popup-ad-close {
    top: 6px;
    right: 6px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* ---------- Discord widget message item ---------- */
.discord-msg {
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.discord-msg:hover { background: rgba(88, 101, 242, 0.06); }
.message-icon.discord {
  background: #5865f2;
  color: white;
}

/* ---------- Leaderboard modal ---------- */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.leaderboard-table th,
.leaderboard-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
}
.leaderboard-table th {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.leaderboard-table tr:last-child td { border-bottom: none; }
.leaderboard-table tr:hover td { background: rgba(255,255,255,0.02); }
.leaderboard-table .rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  text-align: center;
  color: var(--text-dim);
}
.leaderboard-table tr.top1 { background: linear-gradient(90deg, rgba(255,215,0,0.08), transparent); }
.leaderboard-table tr.top2 { background: linear-gradient(90deg, rgba(192,192,192,0.06), transparent); }
.leaderboard-table tr.top3 { background: linear-gradient(90deg, rgba(205,127,50,0.06), transparent); }
.lb-online {
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
}
.lb-offline {
  color: var(--text-dim);
  font-size: 11px;
}

.lb-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.lb-avatar {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: cover;
}
.lb-avatar-ph {
  background: linear-gradient(135deg, #2a2018 0%, #1a1410 100%);
  border: 1px solid var(--panel-border);
}
.lb-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.lb-vip {
  font-size: 13px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

@media (max-width: 600px) {
  .lb-avatar { width: 22px; height: 22px; }
}

@media (max-width: 600px) {
  .leaderboard-table th,
  .leaderboard-table td { padding: 6px 6px; font-size: 12px; }
  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4) { display: none; } /* sakri SESIJE na mobilnom */
}

/* ---------- Live activity feed (floating toasts top-center) ---------- */
.live-feed {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column-reverse; /* novi se pojavljuje gore, gura starije dole */
  gap: 6px;
  pointer-events: none;
  max-width: min(440px, calc(100vw - 32px));
  width: max-content;
}

.feed-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(20, 17, 15, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--text-dim);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 100%;
}
.feed-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.feed-toast.fade {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}
.feed-toast.paused { box-shadow: 0 6px 24px rgba(205, 65, 43, 0.25); }
.feed-toast .feed-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}
.feed-toast .feed-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-toast.tone-success { border-left-color: var(--green, #4ade80); }
.feed-toast.tone-gold    { border-left-color: #ffd700; color: #fff8d8; }
.feed-toast.tone-warn    { border-left-color: #fbbf24; }
.feed-toast.tone-info    { border-left-color: #60a5fa; }
.feed-toast.tone-muted   { border-left-color: var(--text-dim); opacity: 0.85; }
.feed-toast.tone-muted.show { opacity: 0.85; }

/* Desktop: pozicioniraj malo desno od messages panela kako ne bi pokrivao logo */
@media (min-width: 901px) {
  .live-feed {
    top: 12px;
    left: 50%;
  }
}

@media (max-width: 600px) {
  .live-feed {
    top: 8px;
    left: 8px;
    right: 8px;
    transform: none;
    max-width: none;
    width: auto;
  }
  .feed-toast {
    font-size: 12px;
    padding: 7px 10px;
  }
}

/* ==============================================
   LEADERBOARD V2 (kategorisani)
   ============================================== */
/* Modal je veći za leaderboard — fallback bez :has() je .modal.modal-wide klasa */
.modal:has(.leaderboard-modal),
.modal.modal-wide {
  width: min(1100px, 95vw);
  max-height: 92vh;
  overflow-x: hidden;
}
.leaderboard-modal { padding: 18px 20px 22px; }

/* Tabovi gornji bar — kustom scrollbar u rust-red gradijentu */
.lb-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--rust-red) rgba(20, 17, 15, 0.6);
  padding: 4px 4px 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--panel-border);
}
.lb-tabs::-webkit-scrollbar {
  height: 8px;
}
.lb-tabs::-webkit-scrollbar-track {
  background: rgba(20, 17, 15, 0.6);
  border-radius: 4px;
}
.lb-tabs::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rust-red), #8a2c1c);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.3);
}
.lb-tabs::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e0532e, var(--rust-red));
}

/* Isti scrollbar stil za .lb-table-wrap horizontalni scroll */
.lb-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: var(--rust-red) rgba(20, 17, 15, 0.6);
}
.lb-table-wrap::-webkit-scrollbar { height: 8px; width: 8px; }
.lb-table-wrap::-webkit-scrollbar-track { background: rgba(20, 17, 15, 0.6); }
.lb-table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rust-red), #8a2c1c);
  border-radius: 4px;
}
.lb-table-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e0532e, var(--rust-red));
}

.lb-tab {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.lb-tab:hover { color: var(--text-primary); background: rgba(205,65,43,0.06); }
.lb-tab.active {
  color: white;
  background: linear-gradient(180deg, rgba(205,65,43,0.25), rgba(205,65,43,0.10));
  border-color: rgba(205,65,43,0.5);
}

/* Cards row sa total brojkama */
.lb-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.lb-card {
  background: linear-gradient(180deg, rgba(28,22,18,0.9), rgba(20,17,15,0.9));
  border: 1px solid var(--panel-border);
  padding: 12px 14px;
}
.lb-card-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.lb-card-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: white;
  line-height: 1;
}

/* Search + wipe + count traka */
.lb-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lb-search {
  flex: 1;
  min-width: 200px;
  background: #0d0b0a;
  border: 1px solid var(--panel-border);
  color: white;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.lb-search::placeholder { color: var(--text-dim); }
.lb-search:focus { border-color: var(--rust-red); }
.lb-wipe {
  background: #0d0b0a;
  border: 1px solid var(--panel-border);
  color: white;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.lb-wipe:focus { outline: none; border-color: var(--rust-red); }
.lb-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
}

.lb-refresh {
  background: rgba(20, 17, 15, 0.6);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.6s ease;
}
.lb-refresh:hover,
.lb-refresh:focus {
  border-color: var(--rust-red);
  color: var(--rust-red);
  outline: none;
}
.lb-refresh.spinning {
  transform: rotate(360deg);
  pointer-events: none;
  border-color: var(--rust-red);
  color: var(--rust-red);
}

/* Tabela */
.lb-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  background: rgba(13, 11, 10, 0.6);
}
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}
.lb-table th {
  background: rgba(20, 17, 15, 0.95);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: right;
  padding: 12px 14px;
  border-bottom: 1px solid var(--panel-border);
  white-space: nowrap;
}
.lb-table th.lb-rank-col { width: 50px; text-align: center; }
.lb-table th.lb-player-col { text-align: left; }
.lb-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(42, 37, 32, 0.6);
  text-align: right;
  white-space: nowrap;
}
.lb-table td.lb-player-cell {
  text-align: left;
  color: white;
  font-weight: 500;
}
.lb-table tr:last-child td { border-bottom: none; }
.lb-table tr:hover td { background: rgba(255,255,255,0.02); }
.lb-rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  text-align: center;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.lb-rank.lb-top-1 { color: #ffd700; }
.lb-rank.lb-top-2 { color: #c0c0c0; }
.lb-rank.lb-top-3 { color: #cd7f32; }
.lb-num { font-variant-numeric: tabular-nums; }

.lb-sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.lb-sortable:hover {
  color: var(--rust-red);
  background: rgba(205, 65, 43, 0.08);
}
.lb-sort-arrow {
  display: inline-block;
  font-size: 9px;
  margin-left: 3px;
  color: var(--text-dim);
  opacity: 0.6;
}
.lb-sort-arrow.active {
  color: var(--rust-red);
  opacity: 1;
  font-size: 10px;
}

/* Empty / unavailable state */
.lb-empty {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed var(--panel-border);
  background: rgba(13,11,10,0.5);
  color: var(--text-muted);
}
.lb-empty-icon { font-size: 36px; margin-bottom: 12px; }
.lb-empty h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: white;
  margin-bottom: 8px;
}
.lb-empty p { font-size: 13px; max-width: 480px; margin: 0 auto 6px; }
.lb-empty strong { color: var(--rust-red); }

@media (max-width: 700px) {
  .leaderboard-modal { padding: 14px 12px 16px; }
  .lb-totals { grid-template-columns: repeat(2, 1fr); }
  .lb-card { padding: 10px 12px; }
  .lb-card-value { font-size: 22px; }
  .lb-tab { font-size: 12px; padding: 7px 10px; letter-spacing: 1px; }
  .lb-search { min-width: 0; }
  .lb-count { width: 100%; margin-left: 0; }
  .lb-table { min-width: 460px; font-size: 12px; }
  .lb-table th, .lb-table td { padding: 8px 10px; }
}

/* ---------- Profile stats grid ---------- */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.prof-stat-card {
  background: linear-gradient(180deg, rgba(28,22,18,0.7), rgba(20,17,15,0.7));
  border: 1px solid var(--panel-border);
  padding: 12px 14px;
}
.prof-stat-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--rust-red);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.prof-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
  color: var(--text-muted);
}
.prof-stat-row .prof-stat-key { color: var(--text-dim); }
.prof-stat-row .prof-stat-val { color: white; font-weight: 600; font-variant-numeric: tabular-nums; }
.prof-rank {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  font-size: 9px;
  letter-spacing: 1px;
  background: var(--panel-border);
  border-radius: 2px;
  color: var(--text-dim);
}
.prof-rank.gold   { background: rgba(255,215,0,0.2); color: #ffd700; }
.prof-rank.silver { background: rgba(192,192,192,0.2); color: #c0c0c0; }
.prof-rank.bronze { background: rgba(205,127,50,0.2); color: #cd7f32; }

@media (max-width: 600px) {
  .profile-stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .prof-stat-card { padding: 10px; }
  .prof-stat-row { font-size: 11px; }
}
@media (max-width: 380px) {
  .profile-stats-grid { grid-template-columns: 1fr; }
}

/* Klikabilni player count u status baru — vizuelni indikator */
.status-item:has(#player-count) { font-weight: 600; }

/* ---------- Push notification message-item — primarni CTA stil ---------- */
.push-msg {
  position: relative;
  text-align: left;
  border: 1px solid rgba(205, 65, 43, 0.4);
  background: linear-gradient(90deg, rgba(205, 65, 43, 0.18) 0%, rgba(205, 65, 43, 0.04) 100%);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}
.push-msg:hover {
  background: linear-gradient(90deg, rgba(205, 65, 43, 0.28) 0%, rgba(205, 65, 43, 0.08) 100%);
  border-color: var(--rust-red);
  transform: translateX(2px);
}
.push-msg:active { transform: translateX(0); }

.push-msg .message-icon.push-icon {
  background: var(--rust-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 12px rgba(205, 65, 43, 0.6);
  animation: bell-pulse 2.5s ease-in-out infinite;
}
.push-msg .message-icon.push-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ffd700;
  border-radius: 50%;
  border: 2px solid var(--panel-bg, #14110f);
  animation: bell-ping 2.5s ease-in-out infinite;
}

@keyframes bell-pulse {
  0%, 100% { transform: rotate(0deg) scale(1); box-shadow: 0 0 12px rgba(205, 65, 43, 0.6); }
  10%, 30% { transform: rotate(-12deg) scale(1.05); }
  20%      { transform: rotate(12deg) scale(1.05); }
  50%      { box-shadow: 0 0 18px rgba(205, 65, 43, 0.9); }
}
@keyframes bell-ping {
  0%, 50%, 100% { transform: scale(1); opacity: 1; }
  25%           { transform: scale(1.4); opacity: 0.7; }
}

.push-msg .msg-strong {
  color: white;
  font-weight: 700;
}

.push-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--rust-red);
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: 'Bebas Neue', sans-serif;
}
.push-msg:hover .push-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

/* Aktivno stanje — subscribed (zatamnjeno, manje agresivno) */
.push-msg[data-action="unsubscribe"] {
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.10) 0%, rgba(74, 222, 128, 0.02) 100%);
  border-color: rgba(74, 222, 128, 0.3);
}
.push-msg[data-action="unsubscribe"]:hover {
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.18) 0%, rgba(74, 222, 128, 0.04) 100%);
  border-color: rgba(74, 222, 128, 0.6);
}
.push-msg[data-action="unsubscribe"] .message-icon.push-icon {
  background: var(--green, #4ade80);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
  animation: none;
}
.push-msg[data-action="unsubscribe"] .message-icon.push-icon::after { display: none; }
.push-msg[data-action="unsubscribe"] .push-arrow { color: var(--green, #4ade80); }

/* Online players modal — koristi isti tabela style */
.online-modal { padding: 16px 20px 20px; }

/* ---------- Disabled product cards (shop) — sivi sa X i "nedostupno" ---------- */
.rust-shop-row.is-disabled,
.vip-card.is-disabled {
  position: relative;
  filter: grayscale(0.8) brightness(0.55);
  pointer-events: none;
  user-select: none;
}
/* Re-enable pointer events na dugmićima da disabled tooltip radi */
.rust-shop-row.is-disabled button,
.vip-card.is-disabled button {
  pointer-events: auto;
  cursor: not-allowed !important;
  opacity: 0.6;
}
.rust-shop-row.is-disabled .rust-buy-btn,
.vip-card.is-disabled .shop-btn {
  background: #4a4540 !important;
  color: #999 !important;
  border-color: #555 !important;
  filter: none;
}

.rust-disabled-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  pointer-events: none;
  filter: none !important;
  border: 2px dashed rgba(205, 65, 43, 0.6);
}
.rust-disabled-x {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: var(--rust-red);
  text-shadow:
    0 0 12px rgba(205, 65, 43, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.9);
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 6px rgba(205, 65, 43, 0.6));
}
.rust-disabled-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: white;
  background: var(--rust-red);
  padding: 4px 14px;
  border-radius: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* VIP card overlay je manji jer su kartice manje */
.vip-card.is-disabled .rust-disabled-x { font-size: 48px; }
.vip-card.is-disabled .rust-disabled-label { font-size: 11px; letter-spacing: 2px; padding: 3px 10px; }

@media (max-width: 600px) {
  .rust-disabled-x { font-size: 44px; }
  .rust-disabled-label { font-size: 11px; letter-spacing: 2px; padding: 3px 10px; }
}

/* ---------- Profile collapsible sections (Istorija porudžbina) ---------- */
.profile-section {
  margin: 18px 0 8px;
  background: linear-gradient(180deg, rgba(28,22,18,0.6), rgba(20,17,15,0.6));
  border: 1px solid var(--panel-border);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.profile-section:hover { border-color: rgba(205, 65, 43, 0.4); }
.profile-section.is-open { border-color: rgba(205, 65, 43, 0.5); }

.profile-section-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  transition: background 0.15s ease;
}
.profile-section-toggle:hover {
  background: rgba(205, 65, 43, 0.08);
}
.profile-section-icon {
  font-size: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}
.profile-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  color: white;
  flex: 1;
}
.profile-section-count {
  font-size: 11px;
  font-weight: 600;
  background: var(--rust-red);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 10px;
  min-width: 24px;
  text-align: center;
}
.profile-section.is-empty .profile-section-count {
  background: var(--panel-border);
  color: var(--text-dim);
}
.profile-section-chevron {
  font-size: 16px;
  color: var(--text-dim);
  transition: transform 0.25s ease, color 0.15s ease;
}
.profile-section.is-open .profile-section-chevron {
  transform: rotate(180deg);
  color: var(--rust-red);
}

.profile-section-body {
  border-top: 1px solid var(--panel-border);
  background: rgba(13, 11, 10, 0.6);
  animation: profile-section-fade 0.25s ease;
}
@keyframes profile-section-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.profile-section-body table.profile-orders {
  width: 100%;
  border: none;
}
.profile-section-body[hidden] { display: none; }

/* Stats grid unutar profile-section dobija lagani padding */
.profile-section-body .profile-stats-grid {
  padding: 14px;
  margin: 0;
}
.profile-section-count:has-text("✓"), /* fallback */
.profile-section.is-empty .profile-section-count { background: var(--panel-border); color: var(--text-dim); }
