/* ==========================================================================
   SIGHTQUEST - NOVAPAY DESIGN SYSTEM (TemplateMo TM-623 Adaptation)
   Theme: Dark Slate Base (#0F1319) paired with Sky-Blue Accent (#4A9EE8)
   Typography: Type Light Sans for Title, Outfit for Display, DM Sans for Body
   Motion: --silk cubic-bezier(0.16, 1, 0.3, 1)
   ========================================================================== */

@font-face {
  font-family: 'Type Light Sans';
  src: url('/assets/fonts/type-light-sans.woff') format('woff'),
       url('/assets/fonts/type-light-sans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* NovaPay Palette */
  --bg: #0F1319;
  --bg2: #141920;
  --bg3: #1A2130;
  --bg4: #1E2838;
  --sky: #4A9EE8;
  --sky2: #7EC8F0;
  --sky3: #2A6AAA;
  --sky4: #0D2A44;
  --text: #E4EEF8;
  --text2: #8AAEC8;
  --text3: #506070;
  --border: #1E3050;
  --border2: #2A4060;
  --green: #3DCC8E;
  --red: #E85A5A;
  --gold: #F5B041;
  --purple: #A569BD;

  /* Aliases for SightQuest Components */
  --bg-deep: var(--bg);
  --bg-surface: var(--bg2);
  --bg-elevated: var(--bg3);
  --bg-glass: rgba(15, 19, 25, 0.88);
  --border-subtle: var(--border);
  --border-bright: var(--border2);
  --text-main: var(--text);
  --text-muted: var(--text2);
  --accent-cyan: var(--sky);
  --accent-gold: var(--gold);
  --accent-emerald: var(--green);

  /* Fonts */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-title: 'Type Light Sans', 'Outfit', sans-serif;

  /* Premium Motion Easing */
  --silk: cubic-bezier(0.16, 1, 0.3, 1);
  --silk-fast: cubic-bezier(0.25, 1, 0.4, 1);
  --max-w: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   NOVAPAY MODERN NAVIGATION HEADER
   ========================================================================== */
.sq-header {
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  background: rgba(15, 19, 25, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1500;
  flex-shrink: 0;
  transition: background .4s var(--silk), border-color .4s var(--silk);
}

.sq-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  background: transparent;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(74, 158, 232, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.35);
  transition: transform .4s var(--silk);
  overflow: hidden;
}

.sq-brand:hover .nav-logo-mark {
  transform: scale(1.06);
}

.sq-nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sq-brand-text {
  display: flex;
  flex-direction: column;
}

.sq-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.1;
}

.sq-title span {
  color: var(--sky);
}

.sq-subtitle {
  font-size: 0.68rem;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.sq-hud-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sq-gps-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text2);
  transition: all .3s var(--silk);
}

.sq-gps-pill:hover {
  border-color: var(--border2);
  color: var(--text);
}

.sq-gps-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(61, 204, 142, 0.6);
  animation: pulseDot 2s infinite;
}

.sq-gps-dot.teleport {
  background: var(--sky);
  box-shadow: 0 0 10px rgba(74, 158, 232, 0.75);
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.9); }
}

.sq-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 4px 14px 4px 6px;
  border-radius: 24px;
  font-size: 0.82rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.sq-user-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--sky);
  background: linear-gradient(135deg, var(--sky3), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(74, 158, 232, 0.4);
  transition: all 0.25s var(--silk);
  padding: 0;
}

.sq-user-avatar-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(74, 158, 232, 0.65);
  border-color: #ffffff;
}

.sq-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sq-avatar-initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #0b111e;
  text-transform: uppercase;
  line-height: 1;
}

/* ==========================================================================
   NOVAPAY PROFILE & SETTINGS MODAL
   ========================================================================== */
.sq-profile-modal {
  max-width: 460px;
}

.sq-profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.sq-profile-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--sky), var(--sky3));
}

.sq-avatar-preview-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--sky);
  background: linear-gradient(135deg, var(--sky3), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(74, 158, 232, 0.35);
}

.sq-profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sq-avatar-preview-initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: #0b111e;
  text-transform: uppercase;
  line-height: 1;
}

.sq-avatar-upload-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sky);
  color: #0b111e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--bg3);
  transition: all 0.2s var(--silk);
}

.sq-avatar-upload-badge:hover {
  transform: scale(1.15);
  background: #ffffff;
}

.sq-avatar-upload-badge svg,
.sq-avatar-upload-badge .lucide {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.sq-profile-hero-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.sq-profile-hero-info h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sq-profile-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text2);
}

.sq-profile-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sq-profile-stat-item svg,
.sq-profile-stat-item .lucide {
  width: 13px;
  height: 13px;
  stroke: var(--sky);
}

.sq-profile-stat-item strong {
  color: var(--sky2);
  font-family: var(--font-mono);
  font-weight: 700;
}

.sq-profile-stat-sep {
  color: var(--border2);
}

.sq-btn-file-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(74, 158, 232, 0.12);
  border: 1px solid rgba(74, 158, 232, 0.3);
  border-radius: 6px;
  color: var(--sky);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 2px;
  transition: all 0.25s var(--silk);
}

.sq-btn-file-select:hover {
  background: rgba(74, 158, 232, 0.22);
  border-color: var(--sky);
  color: #ffffff;
}

.sq-btn-file-select svg,
.sq-btn-file-select .lucide {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}

.sq-field-icon {
  width: 14px;
  height: 14px;
  vertical-align: -0.15em;
  margin-right: 4px;
  stroke: var(--sky);
}

.sq-field-hint {
  font-weight: 400;
  color: var(--text3);
  font-size: 0.74rem;
  margin-left: 4px;
}

.sq-user-cp {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--sky2);
  letter-spacing: 0.02em;
}

.sq-user-cards {
  color: var(--text2);
  font-weight: 500;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.sq-user-name {
  font-weight: 600;
  color: var(--text);
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.sq-btn-icon {
  background: var(--bg3);
  color: var(--text2);
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.3s var(--silk);
}

.sq-btn-icon svg,
.sq-btn-icon .lucide {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.sq-btn-icon:hover {
  background: rgba(74, 158, 232, 0.15);
  border-color: var(--sky);
  color: var(--sky);
}

.sq-btn-icon.sq-logout:hover {
  background: rgba(232, 90, 90, 0.15);
  border-color: var(--red);
  color: var(--red);
}

/* Lucide Icon Standard Rules */
.sq-header-icon {
  width: 20px;
  height: 20px;
  vertical-align: -0.15em;
  display: inline-block;
  stroke: currentColor;
}

.sq-th-icon {
  width: 14px;
  height: 14px;
  vertical-align: -0.15em;
  display: inline-block;
  stroke: currentColor;
}

.sq-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.15em;
}

.sq-inline-icon svg,
.sq-inline-icon .lucide {
  stroke: currentColor;
}

/* ==========================================================================
   ADMIN TELEPORT BAR (NovaPay Terminal Style)
   ========================================================================== */
/* ==========================================================================
   HAMBURGER ACTION MENU (NovaPay Modern Dropdown)
   ========================================================================== */
.sq-menu-wrap {
  position: relative;
  display: inline-block;
}

.sq-hamburger-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--silk);
}

.sq-hamburger-btn:hover,
.sq-hamburger-btn.active {
  background: rgba(74, 158, 232, 0.15);
  border-color: var(--sky);
  color: var(--sky);
}

.sq-hamburger-btn svg,
.sq-hamburger-btn .lucide {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.sq-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  background: rgba(18, 24, 38, 0.96);
  border: 1px solid var(--border2);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.15);
  padding: 8px;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform-origin: top right;
  animation: sqMenuDrop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sqMenuDrop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.sq-menu-dropdown.hidden {
  display: none !important;
}

.sq-menu-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sq-menu-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  padding: 6px 10px 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sq-menu-title svg,
.sq-menu-title .lucide {
  width: 13px;
  height: 13px;
}

.sq-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}

.sq-menu-divider.hidden {
  display: none !important;
}

.sq-menu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--silk);
}

.sq-menu-btn svg,
.sq-menu-btn .lucide {
  width: 16px;
  height: 16px;
  color: var(--text2);
  flex-shrink: 0;
  transition: color 0.2s;
}

.sq-menu-btn:hover {
  background: rgba(74, 158, 232, 0.12);
  border-color: rgba(74, 158, 232, 0.25);
  color: var(--sky);
}

.sq-menu-btn:hover svg,
.sq-menu-btn:hover .lucide {
  color: var(--sky);
}

.sq-menu-btn.sq-menu-logout:hover {
  background: rgba(232, 90, 90, 0.12);
  border-color: rgba(232, 90, 90, 0.25);
  color: var(--red);
}

.sq-menu-btn.sq-menu-logout:hover svg,
.sq-menu-btn.sq-menu-logout:hover .lucide {
  color: var(--red);
}

.sq-menu-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.82rem;
  color: var(--text);
  transition: background 0.2s;
}

.sq-menu-switch:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sq-menu-switch-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.sq-menu-switch-text svg,
.sq-menu-switch-text .lucide {
  width: 16px;
  height: 16px;
  color: var(--text2);
}

.sq-menu-switch input {
  display: none;
}

.sq-switch-slider {
  width: 36px;
  height: 20px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 20px;
  position: relative;
  transition: all .35s var(--silk);
  flex-shrink: 0;
}

.sq-switch-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text3);
  transition: all .35s var(--silk);
}

.sq-menu-switch input:checked + .sq-switch-slider,
.sq-switch-label input:checked + .sq-switch-slider {
  background: var(--sky4);
  border-color: var(--sky);
}

.sq-menu-switch input:checked + .sq-switch-slider::after,
.sq-switch-label input:checked + .sq-switch-slider::after {
  transform: translateX(16px);
  background: var(--sky);
}

/* ==========================================================================
   MAIN VIEWS CONTAINER & NOVAPAY BACKGROUND GRID
   ========================================================================== */
.sq-main {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
}

.sq-view {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
}

.sq-view.active {
  display: flex;
  flex-direction: column;
}

#view-map {
  overflow: hidden !important;
  flex: 1;
  min-height: 0;
}

#view-album,
#view-leaderboard {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* NovaPay Ambient Dot Matrix / Mesh Accent Background */
.novapay-mesh-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(74, 158, 232, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(42, 106, 170, 0.07) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   NOVAPAY BOTTOM FLOATING APP NAVIGATION DOCK
   ========================================================================== */
.sq-bottom-nav {
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  background: rgba(15, 19, 25, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  z-index: 1400;
  flex-shrink: 0;
  position: relative;
}

.sq-nav-item {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .35s var(--silk);
  position: relative;
}

.sq-nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.sq-nav-item svg,
.sq-nav-item .lucide {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.25s var(--silk);
}

.sq-nav-item:hover svg,
.sq-nav-item:hover .lucide {
  transform: scale(1.1);
}

.sq-nav-item.active {
  color: #0A1A2C;
  background: var(--sky);
  border-color: var(--sky);
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(74, 158, 232, 0.28);
  transform: translateY(-1px);
}

.sq-nav-item.active svg,
.sq-nav-item.active .lucide {
  stroke: #0A1A2C;
}

.sq-nav-item.active .sq-nav-badge {
  background: #0A1A2C;
  color: var(--sky);
}

.sq-nav-badge {
  background: var(--bg3);
  color: var(--sky2);
  border: 1px solid var(--border2);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  font-family: var(--font-mono);
  transition: all .35s var(--silk);
}

.sq-version-pill {
  position: absolute;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text3);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   BUTTONS (NovaPay Specification: .btn-primary, .btn-ghost, .btn-outline)
   ========================================================================== */
.sq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .5s var(--silk), transform .4s var(--silk), border-color .4s var(--silk), box-shadow .4s var(--silk);
}

.sq-btn svg,
.sq-btn .lucide {
  stroke: currentColor;
  flex-shrink: 0;
}

.sq-btn-primary {
  background: var(--sky);
  border-color: var(--sky);
  color: #0A1A2C;
  box-shadow: 0 4px 18px rgba(74, 158, 232, 0.25);
}

.sq-btn-primary:hover {
  background: var(--sky2);
  border-color: var(--sky2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 158, 232, 0.35);
}

.sq-btn-outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
}

.sq-btn-outline:hover {
  border-color: var(--sky);
  color: var(--sky);
  background: rgba(74, 158, 232, 0.08);
  transform: translateY(-1px);
}

.sq-btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
}

.sq-btn-ghost:hover {
  border-color: var(--sky);
  color: var(--sky);
}

.sq-btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.sq-btn-xs {
  padding: 4px 10px;
  font-size: 0.74rem;
  border-radius: 6px;
}

.sq-btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
  border-radius: 10px;
}

.sq-btn-block {
  width: 100%;
}

/* ==========================================================================
   INPUTS & SELECTS
   ========================================================================== */
.sq-select, .sq-field input {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color .3s var(--silk), box-shadow .3s var(--silk);
}

.sq-select:focus, .sq-field input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(74, 158, 232, 0.18);
}

.sq-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  width: 100%;
}

.sq-field label {
  font-size: 0.8rem;
  color: var(--text2);
  font-weight: 500;
}

.sq-form-row {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */
.sq-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--bg3);
  color: var(--text2);
  border: 1px solid var(--border);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sq-badge-cyan {
  background: rgba(74, 158, 232, 0.12);
  border-color: rgba(74, 158, 232, 0.35);
  color: var(--sky2);
}

.sq-badge-gewoehnlich {
  background: var(--bg3);
  border-color: var(--border2);
  color: var(--text2);
}

.sq-badge-selten {
  background: rgba(74, 158, 232, 0.15);
  border-color: var(--sky);
  color: var(--sky2);
}

.sq-badge-episch {
  background: rgba(165, 105, 189, 0.18);
  border-color: var(--purple);
  color: #D7BDE2;
}

.sq-badge-legendaer {
  background: rgba(245, 176, 65, 0.18);
  border-color: var(--gold);
  color: #FAD7A0;
}

.sq-badge-einzigartig {
  background: linear-gradient(135deg, rgba(232, 90, 90, 0.25), rgba(74, 158, 232, 0.25));
  border-color: var(--sky2);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(74, 158, 232, 0.3);
}

/* ==========================================================================
   NOVAPAY MODALS (Dark Slate Window with Topbar Accent)
   ========================================================================== */
.sq-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 17, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 2000;
}

.sq-modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  position: relative;
}

.sq-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sky), transparent);
}

.sq-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sq-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

.sq-btn-close {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--silk);
}

.sq-btn-close svg,
.sq-btn-close .lucide {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.sq-btn-close:hover {
  background: rgba(232, 90, 90, 0.15);
  border-color: var(--red);
  color: var(--red);
}

/* Auth Modal */
.sq-auth-modal {
  max-width: 360px;
  padding: 18px 22px 18px 22px;
  border-radius: 16px;
  max-height: calc(100vh - 24px);
}

.sq-auth-hero {
  text-align: center;
  margin-bottom: 12px;
}

.sq-auth-logo-wrap {
  width: 56px;
  height: 56px;
  background: transparent;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.35);
  margin-bottom: 0;
  overflow: hidden;
}

.sq-auth-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sq-auth-hero h1 {
  display: none;
}

.sq-auth-hero p {
  display: none;
}

.sq-auth-tabs {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 12px;
}

.sq-auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text2);
  padding: 6px 10px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all .2s var(--silk);
}

.sq-auth-tab.active {
  background: var(--bg3);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.sq-auth-modal .sq-field {
  margin-bottom: 10px;
}

.sq-auth-modal .sq-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 3px;
}

.sq-auth-modal .sq-field input {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.sq-auth-modal .sq-btn-block {
  margin-top: 4px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.sq-auth-error {
  background: rgba(232, 90, 90, 0.12);
  border: 1px solid rgba(232, 90, 90, 0.35);
  color: #FADBD8;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.sq-auth-quick-hint {
  display: none;
}

.sq-auth-version {
  display: none;
}

/* Smartphone & Low-Height optimization to completely avoid scrolling */
@media (max-width: 480px) {
  .sq-auth-modal {
    max-width: min(340px, 92vw);
    padding: 16px 16px 14px 16px;
    border-radius: 14px;
  }
  .sq-auth-hero {
    margin-bottom: 10px;
  }
  .sq-auth-logo-wrap {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }
  .sq-auth-tabs {
    margin-bottom: 10px;
  }
  .sq-auth-tab {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
  .sq-auth-modal .sq-field {
    margin-bottom: 8px;
  }
  .sq-auth-modal .sq-field input {
    padding: 7px 10px;
    font-size: 0.84rem;
  }
  .sq-auth-modal .sq-btn-block {
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  /* Leaderboard in smartphone mode */
  .sq-leaderboard-container {
    padding: 8px 6px;
  }
  .sq-panel {
    padding: 12px 8px;
    border-radius: 10px;
  }
  .sq-leaderboard-title-group h2 {
    font-size: 1.05rem;
  }
  .sq-leaderboard-title-group p {
    font-size: 0.72rem;
    margin-bottom: 2px;
  }
  #btn-open-guide-leaderboard {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  .sq-th-desktop {
    display: none;
  }
  .sq-th-mobile {
    display: inline;
  }
  .sq-table th, .sq-table td {
    padding: 8px 6px;
    font-size: 0.78rem;
  }
  .sq-table th {
    font-size: 0.68rem;
    padding: 8px 6px;
  }
  .sq-col-rank {
    width: 28px;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  .sq-col-user {
    min-width: 95px;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  .sq-table-username {
    max-width: 120px;
  }
  .sq-col-num {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  .sq-col-cp {
    padding-left: 4px !important;
    padding-right: 6px !important;
  }
  .sq-cp-val {
    font-size: 0.84rem;
  }
  .sq-cp-unit {
    font-size: 0.68rem;
  }
  .sq-th-icon {
    width: 12px !important;
    height: 12px !important;
  }

  /* Camera Modal in smartphone mode */
  .sq-camera-modal {
    max-width: min(380px, 94vw);
    padding: 14px 14px 12px 14px;
  }
  .sq-viewfinder-wrap {
    width: 150px;
    height: 225px;
    margin-bottom: 8px;
  }
  .sq-cam-controls {
    margin-bottom: 8px;
    gap: 6px;
  }
  .sq-cam-controls .sq-btn {
    font-size: 0.74rem;
    padding: 5px 8px;
  }
  .sq-camera-modal .sq-field {
    margin-bottom: 8px;
  }
  .sq-camera-modal .sq-field label {
    font-size: 0.72rem;
    margin-bottom: 2px;
  }
  .sq-camera-modal .sq-field input {
    padding: 6px 9px;
    font-size: 0.8rem;
  }
  .sq-camera-modal #btn-submit-claim {
    padding: 9px 12px;
    font-size: 0.84rem;
  }

  /* Friends Modal in smartphone mode */
  .sq-modal-backdrop {
    padding: 10px 8px;
  }
  .sq-friends-modal {
    max-width: min(390px, 94vw);
    padding: 14px 12px !important;
    gap: 12px;
    border-radius: 14px;
    max-height: 88vh;
    overflow-x: hidden;
  }
  .sq-friends-modal .sq-modal-header {
    margin-bottom: 8px;
  }
  .sq-friends-modal .sq-modal-header h3 {
    font-size: 1.15rem;
    margin-top: 2px;
  }
  .sq-friends-search-wrap {
    padding: 10px 10px;
    gap: 8px;
    border-radius: 10px;
  }
  .sq-friends-section-label {
    font-size: 0.74rem;
  }
  .sq-friends-search-row {
    gap: 6px;
  }
  .sq-friends-search-box .sq-search-input {
    padding: 7px 26px 7px 30px;
    font-size: 0.8rem;
    height: 36px;
  }
  .sq-friends-search-row #btn-friends-search-submit {
    padding: 0 12px;
    height: 36px;
    font-size: 0.78rem;
    gap: 4px;
    flex-shrink: 0;
  }
  .sq-friends-subhead {
    font-size: 0.8rem;
    gap: 6px;
  }
  .sq-friends-list {
    max-height: 46vh;
    gap: 8px;
  }
  .sq-friend-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 9px;
  }
  .sq-friend-user {
    width: 100%;
    gap: 8px;
  }
  .sq-friend-meta {
    flex: 1;
    min-width: 0;
  }
  .sq-friend-name-line {
    font-size: 0.84rem;
    gap: 4px 6px;
    flex-wrap: wrap;
  }
  .sq-friend-username {
    max-width: 130px;
  }
  .sq-friend-name-line .sq-badge {
    font-size: 0.62rem;
    padding: 1px 6px;
  }
  .sq-friend-stats-line {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sq-friend-actions {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .sq-friend-actions .sq-btn {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.75rem;
    padding: 6px 8px;
    height: 32px;
  }
  .sq-friend-actions .sq-badge {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 2px 7px;
  }
  .sq-friend-actions.sq-friend-actions-badge-only {
    border-top: none !important;
    padding-top: 0 !important;
  }
}

@media (max-height: 540px) {
  .sq-camera-modal {
    padding: 8px 12px 8px 12px;
  }
  .sq-camera-modal .sq-modal-header {
    margin-bottom: 4px;
  }
  .sq-cam-desc {
    display: none;
  }
  .sq-viewfinder-wrap {
    width: 120px;
    height: 180px;
    margin-bottom: 6px;
  }
  .sq-cam-controls {
    margin-bottom: 6px;
  }
  .sq-camera-modal .sq-field {
    margin-bottom: 6px;
  }
  .sq-camera-modal #btn-submit-claim {
    padding: 6px 10px;
  }
  .sq-auth-modal {
    padding: 8px 14px 8px 14px;
    border-radius: 12px;
  }
  .sq-auth-hero {
    margin-bottom: 5px;
  }
  .sq-auth-logo-wrap {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }
  .sq-auth-tabs {
    margin-bottom: 6px;
    padding: 2px;
  }
  .sq-auth-tab {
    padding: 4px 6px;
    font-size: 0.75rem;
  }
  .sq-auth-modal .sq-field {
    margin-bottom: 5px;
  }
  .sq-auth-modal .sq-field label {
    margin-bottom: 1px;
    font-size: 0.7rem;
  }
  .sq-auth-modal .sq-field input {
    padding: 5px 8px;
    font-size: 0.78rem;
  }
  .sq-auth-modal .sq-btn-block {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   CAMERA & CLAIM MODAL
   ========================================================================== */
.sq-camera-modal {
  max-width: 440px;
  padding: 18px 20px 16px 20px;
}

.sq-camera-modal .sq-modal-header {
  margin-bottom: 8px;
}

.sq-camera-modal .sq-modal-header h3 {
  font-size: 1.15rem;
  margin-top: 2px;
}

.sq-cam-desc {
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 10px;
  line-height: 1.35;
}

.sq-viewfinder-wrap {
  width: 170px;
  height: 255px;
  margin: 0 auto 10px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #080B10;
  border: 2px solid var(--border2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s var(--silk);
}

.sq-viewfinder-wrap:hover {
  border-color: var(--sky);
}

.sq-viewfinder-wrap video,
.sq-viewfinder-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-viewfinder-placeholder {
  text-align: center;
  padding: 12px 10px;
  color: var(--text3);
  font-size: 0.74rem;
  line-height: 1.35;
}

.sq-cam-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}

.sq-viewfinder-frame-overlay {
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(74, 158, 232, 0.35);
  border-radius: 8px;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
}

.sq-viewfinder-frame-overlay span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--sky2);
  background: rgba(15, 19, 25, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.sq-cam-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sq-camera-modal .sq-field {
  margin-bottom: 10px;
}

.sq-camera-modal .sq-field label {
  font-size: 0.74rem;
  margin-bottom: 4px;
}

.sq-camera-modal .sq-field input {
  padding: 7px 10px;
  font-size: 0.82rem;
}

.sq-camera-modal #btn-submit-claim {
  padding: 10px 16px;
  font-size: 0.88rem;
}

/* ==========================================================================
   NOVAPAY LEADERBOARD & STATS PANELS
   ========================================================================== */
.sq-leaderboard-container {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sq-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.sq-panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.sq-panel-header p {
  font-size: 0.84rem;
  color: var(--text2);
  margin-top: 4px;
  margin-bottom: 16px;
}

.sq-leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.sq-leaderboard-title-group h2 {
  margin: 0;
  display: flex;
  align-items: center;
}

.sq-leaderboard-title-group p {
  margin-top: 4px;
  margin-bottom: 0;
}

.sq-leaderboard-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 19, 25, 0.45);
}

.sq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.sq-table th, .sq-table td {
  padding: 12px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.sq-table th {
  color: var(--text3);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  background: rgba(22, 27, 36, 0.85);
  position: sticky;
  top: 0;
  z-index: 2;
}

.sq-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Leaderboard Specific Styling */
.sq-row-self td {
  background: rgba(56, 189, 248, 0.08) !important;
  border-bottom-color: rgba(56, 189, 248, 0.25) !important;
}

.sq-row-self:hover td {
  background: rgba(56, 189, 248, 0.12) !important;
}

.sq-col-rank {
  width: 44px;
  text-align: center !important;
}

.sq-rank-podium {
  font-size: 1.15rem;
  display: inline-block;
  line-height: 1;
}

.sq-col-user {
  min-width: 120px;
}

.sq-table-username {
  font-weight: 700;
  color: var(--text);
}

.sq-user-self {
  color: var(--sky2);
}

.sq-badge-self {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.2);
  color: var(--sky);
  border: 1px solid rgba(56, 189, 248, 0.4);
  margin-left: 6px;
  vertical-align: middle;
}

.sq-badge-mini {
  padding: 1px 5px !important;
  font-size: 0.62rem !important;
  border-radius: 6px !important;
  margin-left: 5px;
  vertical-align: middle;
}

.sq-col-num {
  text-align: center !important;
}

.sq-col-cp {
  text-align: right !important;
  font-family: var(--font-mono);
  font-weight: 700;
}

.sq-cp-val {
  color: #fde047;
  font-size: 0.95rem;
}

.sq-cp-unit {
  color: #ca8a04;
  font-size: 0.76rem;
  margin-left: 2px;
}

.sq-th-desktop {
  display: inline;
}

.sq-th-mobile {
  display: none;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.sq-toast-container {
  position: fixed;
  top: 76px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sq-toast {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-left: 4px solid var(--sky);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s var(--silk);
  white-space: pre-line;
  line-height: 1.45;
  max-width: 460px;
  cursor: pointer;
}

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

@media (max-width: 768px) {
  /* Leaderboard in mobile mode */
  .sq-leaderboard-container {
    padding: 14px 10px;
    gap: 12px;
  }
  .sq-panel {
    padding: 14px 12px;
    border-radius: 12px;
  }
  .sq-leaderboard-header {
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }
  .sq-leaderboard-title-group h2 {
    font-size: 1.15rem;
  }
  .sq-leaderboard-title-group p {
    font-size: 0.78rem;
    line-height: 1.35;
  }
  #btn-open-guide-leaderboard {
    flex-shrink: 0;
    padding: 5px 10px;
    font-size: 0.74rem;
  }
  .sq-table th, .sq-table td {
    padding: 9px 8px;
    font-size: 0.8rem;
  }
  .sq-table th {
    font-size: 0.7rem;
    padding: 8px 8px;
  }
  .sq-table-username {
    max-width: 105px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }
  .sq-col-rank {
    width: 32px;
  }
  .sq-rank-podium {
    font-size: 0.98rem;
  }
  .sq-subtitle, .sq-user-cards, .sq-version-pill {
    display: none;
  }
  .sq-header {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0 12px;
  }
  .sq-brand {
    gap: 8px;
  }
  .nav-logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }
  .sq-title {
    font-size: 1.1rem;
    line-height: 1;
  }
  .sq-hud-status {
    gap: 8px;
  }
  .sq-user-pill {
    gap: 6px;
    padding: 2px 8px 2px 3px;
    border-radius: 18px;
    font-size: 0.72rem;
  }
  .sq-user-avatar-btn {
    width: 24px;
    height: 24px;
  }
  .sq-avatar-initials {
    font-size: 0.68rem;
  }
  .sq-user-name {
    font-size: 0.72rem;
    padding-left: 6px;
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sq-user-cp {
    font-size: 0.72rem;
    padding-left: 2px;
  }
  .sq-hamburger-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .sq-hamburger-btn svg,
  .sq-hamburger-btn .lucide {
    width: 16px;
    height: 16px;
  }
  .sq-bottom-nav {
    padding: 0 16px;
    gap: 12px;
    justify-content: center;
  }
  .sq-bottom-nav .sq-nav-item {
    flex: 1 1 0;
    max-width: 110px;
    height: 44px;
    padding: 0;
    gap: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sq-bottom-nav .sq-nav-label,
  .sq-bottom-nav .sq-nav-badge {
    display: none !important;
  }
  .sq-bottom-nav .sq-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .sq-bottom-nav .sq-nav-icon svg,
  .sq-bottom-nav .sq-nav-icon .lucide {
    width: 22px;
    height: 22px;
  }
  .sq-toast-container {
    top: 56px;
    right: 12px;
    left: 12px;
  }
  .sq-toast {
    max-width: 100%;
    font-size: 0.82rem;
  }
}

@media (max-width: 380px) {
  .sq-header {
    padding: 0 8px;
  }
  .sq-brand {
    gap: 6px;
  }
  .sq-title {
    font-size: 0.98rem;
  }
  .sq-user-pill {
    padding: 2px 5px 2px 3px;
    gap: 4px;
  }
  .sq-user-name {
    max-width: 55px;
  }
}

/* ==========================================================================
   ADMIN-ZENTRALE MODAL (EINSTELLUNGEN, BENUTZER & PROGRAMM-INFOS)
   ========================================================================== */
.sq-admin-modal {
  max-width: 780px;
}

.sq-admin-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 18px;
}

.sq-admin-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text2);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--silk);
}

.sq-admin-tab svg,
.sq-admin-tab .lucide {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.sq-admin-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.sq-admin-tab.active {
  background: rgba(74, 158, 232, 0.16);
  border-color: rgba(74, 158, 232, 0.4);
  color: var(--sky2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.sq-admin-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.sq-admin-pane.active {
  display: flex;
}

.sq-admin-section {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sq-admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sq-admin-section-header h4 {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sq-admin-section-header h4 svg,
.sq-admin-section-header h4 .lucide {
  width: 17px;
  height: 17px;
  stroke: var(--sky);
}

.sq-admin-help {
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.5;
}

.sq-admin-inline-switch {
  padding: 4px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  gap: 10px;
}

.sq-admin-preset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sq-preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--silk);
}

.sq-preset-btn:hover,
.sq-preset-btn.active {
  background: rgba(74, 158, 232, 0.14);
  border-color: var(--sky);
  color: var(--sky2);
}

.sq-preset-badge {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text2);
}

.sq-admin-coord-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr auto;
  gap: 10px;
  align-items: end;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.sq-admin-coord-row .sq-field {
  margin-bottom: 0;
}

.sq-admin-coord-btn {
  height: 38px;
}

.sq-admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sq-admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sq-admin-settings-grid .sq-field {
  margin-bottom: 0;
}

.sq-field-sub {
  font-size: 0.68rem;
  color: var(--text3);
}

.sq-admin-overpass-switch {
  background: var(--bg2);
  border: 1px solid var(--border);
  margin-top: 4px;
}

.sq-admin-hero-info {
  background: linear-gradient(135deg, rgba(14, 24, 42, 0.95), rgba(20, 34, 56, 0.9));
  border-color: rgba(74, 158, 232, 0.35);
}

.sq-admin-app-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sq-admin-app-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(74, 158, 232, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.35);
  object-fit: cover;
  flex-shrink: 0;
}

.sq-admin-app-brand h4 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.sq-admin-app-brand p {
  font-size: 0.8rem;
  color: var(--text2);
  margin-top: 2px;
}

.sq-admin-version-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.sq-admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sq-admin-kpi-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sq-admin-kpi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text3);
  font-weight: 600;
}

.sq-admin-kpi-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sky2);
}

.sq-admin-kpi-sub {
  font-size: 0.7rem;
  color: var(--text2);
}

.sq-admin-breakdown-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.sq-admin-breakdown-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.sq-admin-breakdown-box h5 {
  font-size: 0.74rem;
  color: var(--text2);
  margin-bottom: 8px;
  font-weight: 600;
}

.sq-admin-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sq-admin-kv-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg2);
}

.sq-admin-kv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}

.sq-admin-kv-item:last-child {
  border-bottom: none;
}

.sq-admin-kv-key {
  color: var(--text2);
  font-weight: 600;
  flex-shrink: 0;
}

.sq-admin-kv-val {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-align: right;
  word-break: break-word;
}

.sq-admin-table th,
.sq-admin-table td {
  padding: 9px 8px;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .sq-admin-coord-row,
  .sq-admin-settings-grid,
  .sq-admin-kpi-grid,
  .sq-admin-breakdown-row,
  .sq-admin-actions-grid {
    grid-template-columns: 1fr;
  }
  .sq-admin-tabs {
    flex-direction: column;
  }
  .sq-admin-kv-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .sq-admin-kv-val {
    text-align: left;
  }
}

/* ==========================================================================
   FRIENDS SYSTEM & LIVE 3x3 CARD TRADING OVERLAYS
   ========================================================================== */

.sq-menu-badge {
  margin-left: auto;
  background: var(--green);
  color: #08131d;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  line-height: 1.4;
}

.sq-friends-modal {
  max-width: 560px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-x: hidden;
}

.sq-friends-search-box {
  flex: 1 1 auto;
  min-width: 0 !important;
  max-width: none !important;
}

.sq-friends-search-box .sq-search-input {
  width: 100%;
  min-width: 0;
}

.sq-friends-search-row #btn-friends-search-submit {
  flex-shrink: 0;
  white-space: nowrap;
}

.sq-friend-username {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.sq-badge-befreundet {
  background: rgba(61, 204, 142, 0.16);
  border-color: rgba(61, 204, 142, 0.45);
  color: #3DCC8E;
}

.sq-friends-search-wrap {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sq-friends-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
}

.sq-friends-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sq-friends-search-results {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sq-friends-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sq-friends-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.sq-friends-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
}

.sq-friend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color 0.2s var(--silk);
}

.sq-friend-row:hover {
  border-color: var(--border2);
}

.sq-friend-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.sq-friend-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky3), var(--sky));
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #0b111e;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.sq-friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sq-friend-online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text3);
  display: inline-block;
  flex-shrink: 0;
}

.sq-friend-online-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px rgba(61, 204, 142, 0.8);
}

.sq-friend-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sq-friend-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.sq-friend-stats-line {
  font-size: 0.75rem;
  color: var(--text2);
}

.sq-friend-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Small Trade Wait / Incoming Modals */
.sq-trade-small-modal {
  max-width: 400px;
  text-align: center;
  padding: 26px 22px;
}

.sq-trade-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px auto;
  border-radius: 50%;
  border: 3px solid rgba(74, 158, 232, 0.25);
  border-top-color: var(--sky);
  animation: sqSpin 0.9s linear infinite;
}

@keyframes sqSpin {
  to { transform: rotate(360deg); }
}

.sq-trade-wait-title,
.sq-trade-incoming-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.sq-trade-wait-sub {
  font-size: 0.83rem;
  color: var(--text2);
  margin-bottom: 16px;
}

/* Split 3x3 Trade Board Modal */
.sq-trade-board-modal {
  max-width: 940px;
  width: 95vw;
  max-height: 92vh;
  overflow-y: auto;
}

.sq-trade-split-layout {
  display: grid;
  grid-template-columns: 1fr 165px 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 6px;
}

.sq-trade-half {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sq-trade-half.is-own-side {
  border-color: rgba(74, 158, 232, 0.5);
  box-shadow: 0 0 20px rgba(74, 158, 232, 0.08);
}

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

.sq-trade-player-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.sq-trade-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sq-trade-slot {
  aspect-ratio: 2 / 3;
  background: var(--bg2);
  border: 1.5px dashed var(--border2);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 0.72rem;
  transition: all 0.2s var(--silk);
  padding: 0;
}

.sq-trade-slot.is-interactive {
  cursor: pointer;
}

.sq-trade-slot.is-interactive:hover {
  border-color: var(--sky);
  color: var(--sky);
  background: rgba(74, 158, 232, 0.08);
}

.sq-trade-slot.has-card {
  border-style: solid;
  border-color: var(--border2);
}

.sq-trade-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sq-trade-slot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.55) 0%, transparent 40%, rgba(10, 14, 22, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 6px;
  text-align: left;
}

.sq-trade-slot-cp {
  align-self: flex-start;
  background: rgba(15, 19, 25, 0.88);
  border: 1px solid rgba(245, 176, 65, 0.55);
  color: #fde047;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
}

.sq-trade-slot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(232, 90, 90, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.sq-trade-slot-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sq-trade-half-footer {
  margin-top: auto;
}

.sq-trade-confirm-btn.is-confirmed {
  background: linear-gradient(135deg, #27ae60, var(--green)) !important;
  border-color: #ffffff !important;
  color: #071510 !important;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(61, 204, 142, 0.5);
}

/* Center Container with Left CP, Vertical Arrows (Left & Right), and Right CP */
.sq-trade-center-container {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  align-self: center;
  width: 100%;
}

.sq-trade-center-cp {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sq-trade-cp-left {
  align-items: flex-start;
  text-align: left;
  padding-left: 2px;
}

.sq-trade-cp-right {
  align-items: flex-end;
  text-align: right;
  padding-right: 2px;
}

.sq-trade-cp-caption {
  font-size: 0.68rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sq-trade-center-cp strong {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #fde047;
  font-weight: 800;
}

.sq-trade-arrows-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 0;
}

.sq-trade-arrow-row {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sky);
}

.sq-trade-hint {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text2);
  text-align: center;
}

/* Trade Card Picker Modal */
.sq-trade-picker-modal {
  max-width: 680px;
  width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.sq-trade-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 10px;
  overflow-y: auto;
  max-height: 58vh;
  padding: 4px 2px;
}

@media (max-width: 780px) {
  .sq-trade-split-layout {
    grid-template-columns: 1fr;
  }
  .sq-trade-center-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
  }
  .sq-trade-arrows-box {
    padding: 6px 14px;
  }
}


/* ==========================================================================
   ADMIN KARTENEDITOR & SUB-MODAL
   ========================================================================== */
.sq-card-editor-modal {
  max-width: 820px;
  width: 95vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.sq-card-editor-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  background: rgba(15, 23, 42, 0.6);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.sq-card-editor-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  margin-bottom: 10px;
}

.sq-card-editor-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sq-card-editor-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  max-height: 52vh;
  min-height: 180px;
}

.sq-ce-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  color: var(--text-muted);
  text-align: center;
  gap: 8px;
}

.sq-ce-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.sq-ce-card-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(30, 41, 59, 0.7);
}

.sq-ce-card-thumb-wrap {
  width: 48px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
  border: 2px solid var(--border);
}

.sq-ce-card-thumb-wrap.rarity-gewoehnlich { border-color: #94a3b8; }
.sq-ce-card-thumb-wrap.rarity-selten { border-color: #38bdf8; }
.sq-ce-card-thumb-wrap.rarity-episch { border-color: #c084fc; }
.sq-ce-card-thumb-wrap.rarity-legendaer { border-color: #fbbf24; }
.sq-ce-card-thumb-wrap.rarity-einzigartig { border-color: #f43f5e; }

.sq-ce-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sq-ce-card-info {
  flex: 1;
  min-width: 0;
}

.sq-ce-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sq-ce-card-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sq-ce-card-serial {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--sky);
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  flex-shrink: 0;
}

.sq-ce-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.sq-ce-element-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text);
}

.sq-ce-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sq-ce-meta strong {
  color: var(--text);
}

.sq-ce-meta .sq-ce-cp-val {
  color: #fde047;
  font-weight: 700;
}

.sq-ce-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Edit Dialog */
.sq-card-edit-dialog {
  max-width: 520px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
}

.sq-card-edit-preview-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.sq-card-edit-thumb {
  width: 54px;
  height: 81px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  border: 2px solid var(--sky);
  flex-shrink: 0;
}

.sq-card-edit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-card-edit-preview-info {
  flex: 1;
  min-width: 0;
}

.sq-card-edit-preview-info h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sq-card-edit-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .sq-card-editor-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .sq-ce-card-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .sq-ce-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
  }
}

/* =====================================================================
   INVENTORY & ITEMS
   ===================================================================== */
.sq-inventory-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 16px 90px;
}

.sq-inventory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border1);
  margin-bottom: 16px;
}

.sq-inventory-title-group h2 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  margin: 0 0 4px;
}

.sq-inventory-title-group p {
  font-size: 0.8rem;
  color: var(--text3);
  margin: 0;
}

.sq-inventory-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text2);
}

.sq-inventory-empty .sq-empty-icon {
  font-size: 2.8rem;
  color: var(--text3);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.sq-inventory-empty h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 6px;
}

.sq-inventory-empty p {
  font-size: 0.85rem;
  color: var(--text2);
  margin-bottom: 18px;
}

.sq-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sq-inventory-card {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sq-inventory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.35);
}

.sq-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sq-item-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fde047;
  flex-shrink: 0;
}

.sq-item-title-wrap {
  flex: 1;
  min-width: 0;
}

.sq-item-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.sq-item-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sq-item-desc {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.45;
  margin: 0 0 16px;
  flex: 1;
}

.sq-item-actions {
  display: flex;
  gap: 8px;
}

.sq-item-targets-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sq-targets-box {
  background: rgba(10, 15, 26, 0.6);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.sq-targets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sq-target-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  gap: 8px;
}

.sq-target-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
}

.sq-poi-item-playground {
  border-left: 3px solid #facc15;
}
