/* ═══════════════════════════════════════════
   STEAM CABINET - FULL STANDALONE STYLES
   ═══════════════════════════════════════════ */

/* === BODY === */
.steam-body {
  margin: 0; padding: 0;
  background: #0a0e14;
  color: #c7d5e0;
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100vh;
}

/* === TOP NAV === */
.steam-nav {
  background: #171a21;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky; top: 0; z-index: 100;
}
.steam-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 24px; height: 56px;
}
.steam-nav-logo img { height: 32px; }
.steam-nav-links {
  display: flex; gap: 4px; margin-left: 32px;
}
.steam-nav-links a {
  color: #8f98a0; text-decoration: none;
  padding: 8px 14px; border-radius: 4px;
  font-size: 13px; font-weight: 500;
  transition: all 0.2s;
}
.steam-nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.steam-nav-user { margin-left: auto; }
.steam-nav-avatar {
  width: 36px; height: 36px;
  border-radius: 4px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  display: flex; align-items: center; justify-content: center;
  color: #000; font-weight: 700; font-size: 14px;
  text-decoration: none;
}

/* === ALERTS === */
.steam-alerts { max-width: 1200px; margin: 16px auto 0; padding: 0 24px; }

/* === STEAM PROFILE === */
.steam-profile {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* === BANNER === */
.sp-banner {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #1b2838 0%, #0e1621 50%, #1a1e2e 100%);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.sp-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 20% 50%, rgba(74,222,128,0.08), transparent),
    radial-gradient(ellipse 500px 250px at 80% 30%, rgba(168,85,247,0.06), transparent);
}
.sp-banner-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 200px;
  background: radial-gradient(ellipse, rgba(74,222,128,0.12), transparent 70%);
}
.sp-banner-logo {
  position: absolute; top: 24px; right: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px; font-weight: 700;
  color: rgba(74,222,128,0.15);
  letter-spacing: 8px;
}

/* === PROFILE HEADER === */
.sp-header {
  background: #1b2838;
  border-left: 1px solid rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.04);
}
.sp-header-inner {
  display: flex; align-items: center;
  padding: 20px 28px; gap: 18px;
}
.sp-avatar {
  width: 64px; height: 64px;
  border-radius: 6px;
  background: #2a475e;
  border: 2px solid #4ade80;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.sp-info { flex: 1; min-width: 0; }
.sp-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-username {
  font-size: 22px; font-weight: 700; color: #fff;
  font-family: 'Inter', sans-serif;
}
.sp-status-badge {
  font-size: 11px; font-weight: 600;
  color: #4ade80; letter-spacing: 0.5px;
}
.sp-admin-badge {
  font-size: 11px; font-weight: 600;
  color: #a855f7; background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.3);
  padding: 3px 10px; border-radius: 4px;
  text-decoration: none;
}
.sp-admin-badge:hover { background: rgba(168,85,247,0.2); color: #c084fc; }
.sp-meta {
  font-size: 13px; color: #8f98a0;
  margin-top: 4px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.sp-settings-btn {
  color: #8f98a0; font-size: 13px;
  text-decoration: none; white-space: nowrap;
  padding: 8px 16px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s;
}
.sp-settings-btn:hover { color: #fff; border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }

/* === STATS BAR === */
.sp-stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
}
.sp-stat-card {
  background: #1b2838;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.sp-stat-card:hover { background: #1e2d40; }
.sp-stat-icon { font-size: 18px; margin-bottom: 6px; }
.sp-stat-value { font-size: 26px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.sp-stat-label { font-size: 11px; color: #8f98a0; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.sp-color-gold { color: #fbbf24; }
.sp-color-blue { color: #60a5fa; }
.sp-color-green { color: #4ade80; }
.sp-color-amber { color: #fb923c; }

/* === MAIN CONTENT GRID === */
.sp-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  margin-top: 20px;
}
.sp-main { min-width: 0; }

/* === PANELS === */
.sp-panel {
  background: #1b2838;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
}
.sp-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px; font-weight: 600; color: #fff;
  text-transform: uppercase; letter-spacing: 1px;
}
.sp-panel-hint { font-size: 11px; color: #8f98a0; font-weight: 400; text-transform: none; letter-spacing: 0; }
.sp-panel-header-sm {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 11px; font-weight: 600; color: #8f98a0;
  text-transform: uppercase; letter-spacing: 1.5px;
}

/* === CHARACTER SHOWCASE === */
.sp-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.04); }
.sp-showcase-card {
  background: #1b2838; padding: 24px 16px;
  text-align: center; position: relative;
  transition: background 0.2s;
}
.sp-showcase-card:hover { background: #1e2d40; }
.sp-showcase-crown { position: absolute; top: 8px; right: 12px; font-size: 18px; }
.sp-showcase-online {
  position: absolute; top: 10px; left: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
}
.sp-showcase-icon { margin-bottom: 10px; }
.sp-class-img { width: 42px; height: 42px; border-radius: 6px; }
.sp-showcase-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.sp-showcase-details { font-size: 12px; color: #8f98a0; }
.sp-showcase-faction { font-size: 12px; color: #8f98a0; margin-top: 2px; }
.sp-showcase-ilvl {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.sp-ilvl-label { font-size: 9px; color: #556b7e; text-transform: uppercase; letter-spacing: 2px; }
.sp-ilvl-value { font-size: 28px; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }

/* === ILVL QUALITY COLORS === */
.ilvl-legendary { color: #ff8000; text-shadow: 0 0 12px rgba(255,128,0,0.3); }
.ilvl-epic { color: #a335ee; text-shadow: 0 0 12px rgba(163,53,238,0.3); }
.ilvl-rare { color: #0070dd; text-shadow: 0 0 12px rgba(0,112,221,0.3); }
.ilvl-uncommon { color: #1eff00; }
.ilvl-common { color: #9d9d9d; }

/* === CHARACTERS TABLE === */
.sp-chars-table { }
.sp-chars-head {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.5fr 0.6fr 1fr 0.7fr;
  padding: 10px 20px;
  font-size: 11px; color: #556b7e;
  text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sp-chars-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.5fr 0.6fr 1fr 0.7fr;
  padding: 12px 20px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  transition: background 0.15s;
}
.sp-chars-row:hover { background: rgba(255,255,255,0.02); }
.sp-char-info { display: flex; align-items: center; gap: 10px; }
.sp-char-icon { width: 28px; height: 28px; border-radius: 4px; }
.sp-char-name { font-size: 14px; font-weight: 600; }
.sp-char-race { font-size: 11px; color: #8f98a0; }
.sp-chars-col { font-size: 13px; color: #c7d5e0; }
.sp-chars-col-class { color: #8f98a0; }
.sp-chars-col-lvl { text-align: center; font-weight: 600; }
.sp-chars-col-ilvl { text-align: center; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.sp-chars-col-time { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #8f98a0; }
.sp-online-tag { color: #4ade80; font-size: 12px; font-weight: 600; }
.sp-offline-tag { color: #556b7e; font-size: 12px; }
.sp-empty-chars { padding: 40px; text-align: center; color: #556b7e; }

/* === SIDEBAR ACTIONS === */
.sp-actions { padding: 8px; }
.sp-action-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 4px;
  color: #c7d5e0; text-decoration: none;
  font-size: 13px; transition: all 0.15s;
}
.sp-action-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.sp-action-icon { font-size: 16px; width: 24px; text-align: center; }

/* === SERVER STATUS === */
.sp-server-status { padding: 16px; }
.sp-server-online-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sp-server-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.5);
  animation: spPulse 2s infinite;
}
@keyframes spPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.sp-server-online-text { color: #4ade80; font-size: 14px; font-weight: 600; }
.sp-server-details { display: flex; flex-direction: column; gap: 8px; }
.sp-server-detail {
  display: flex; justify-content: space-between;
  font-size: 13px; color: #8f98a0;
}
.sp-server-detail span:last-child { color: #c7d5e0; font-weight: 500; }

/* === ILVL LEGEND === */
.sp-ilvl-legend { padding: 12px 16px; }
.sp-legend-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-size: 13px; color: #8f98a0;
}
.sp-legend-val { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12px; min-width: 40px; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .sp-content { grid-template-columns: 1fr; }
  .sp-showcase { grid-template-columns: repeat(2, 1fr); }
  .sp-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .sp-chars-head, .sp-chars-row {
    grid-template-columns: 2fr 1fr 0.5fr 0.6fr;
  }
  .sp-chars-col-time, .sp-chars-col-status { display: none; }
}
@media (max-width: 600px) {
  .steam-profile { padding: 12px; }
  .sp-banner { height: 120px; }
  .sp-banner-logo { font-size: 28px; top: 16px; right: 16px; }
  .sp-header-inner { flex-wrap: wrap; padding: 16px; }
  .sp-settings-btn { display: none; }
  .sp-showcase { grid-template-columns: 1fr; }
  .sp-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .steam-nav-links { display: none; }
}

/* === SUB-PAGES WRAPPER === */
.steam-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 56px);
}

/* Active nav link */
.steam-nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* === DASHLITE OVERRIDES FOR STEAM BODY === */
.steam-body .nk-block { padding: 0; }
.steam-body .card {
  background: #1b2838 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 6px !important;
  color: #c7d5e0 !important;
}
.steam-body .card-inner { padding: 20px !important; }
.steam-body .card-title,
.steam-body .nk-block-head-content h5,
.steam-body .nk-block-head-content h4,
.steam-body .nk-block-head-content h3,
.steam-body .nk-block-title {
  color: #fff !important;
}
.steam-body .form-label { color: #8f98a0 !important; }
.steam-body .form-control {
  background: #0e1621 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #c7d5e0 !important;
  border-radius: 4px !important;
}
.steam-body .form-control:focus {
  border-color: rgba(74,222,128,0.4) !important;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.1) !important;
}
.steam-body .btn-primary {
  background: #4ade80 !important;
  border-color: #4ade80 !important;
  color: #000 !important;
  font-weight: 600 !important;
}
.steam-body .btn-primary:hover {
  background: #22c55e !important;
  border-color: #22c55e !important;
}
.steam-body .table { color: #c7d5e0 !important; }
.steam-body .table th { color: #8f98a0 !important; border-color: rgba(255,255,255,0.04) !important; }
.steam-body .table td { border-color: rgba(255,255,255,0.04) !important; }
.steam-body .table-striped tbody tr:nth-of-type(odd) { background: rgba(255,255,255,0.02) !important; }
.steam-body .modal-content {
  background: #1b2838 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #c7d5e0 !important;
}
.steam-body .modal-header { border-color: rgba(255,255,255,0.06) !important; }
.steam-body .modal-footer { border-color: rgba(255,255,255,0.06) !important; background: rgba(0,0,0,0.15) !important; }
.steam-body .modal-title { color: #fff !important; }
.steam-body a:not(.btn):not(.steam-nav-links a):not(.steam-nav-logo):not(.sp-action-item):not(.sp-stat-card):not(.sp-admin-badge) {
  color: #4ade80;
}
.steam-body .text-muted { color: #556b7e !important; }
.steam-body .badge { border-radius: 4px; }

/* Prefix refresh icon */
#prefix_refresh {
  margin-left: -26px; z-index: 9; position: absolute;
  margin-top: 7px; transition: all 0.5s linear;
  width: 23px; height: 23px;
}
.transform { transform: rotate(180deg); }

/* Logout button */
.steam-nav-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: #8f98a0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s;
    text-decoration: none;
}
.steam-nav-logout:hover {
    color: #ef4444;
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.2);
}
.steam-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
