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

@font-face {
  font-family: 'Dihjau S Bold';
  src: url('/assets/fonts/dihjau-s-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@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;
}

/* Self-hosted Variable Fonts (SIL OFL 1.1 – see /assets/fonts/LICENSES.txt) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin-ext-opsz-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin-opsz-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin-ext-opsz-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin-opsz-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Theme Chrome Palette (Default: NovaPay Slate & Sky-Blue) */
  --bg: #0F1319;
  --bg2: #141920;
  --bg3: #1A2130;
  --bg4: #1E2838;
  --bg-rgb: 15, 19, 25;
  --bg-panel-rgb: 15, 23, 42;
  --bg-elevated-rgb: 30, 41, 59;
  --bg-backdrop: rgba(8, 12, 17, 0.88);
  --bg-header: rgba(15, 19, 25, 0.96);
  --bg-dropdown: rgba(18, 24, 38, 0.96);
  --bg-nav: rgba(15, 19, 25, 0.98);

  --sky: #4A9EE8;
  --sky2: #7EC8F0;
  --sky3: #2A6AAA;
  --sky4: #0D2A44;
  --accent-vivid: #38BDF8;
  --accent-deep: #0284C7;
  --accent-rgb: 74, 158, 232;
  --accent-vivid-rgb: 56, 189, 248;
  --accent-deep-rgb: 14, 165, 233;
  --text-on-accent: #0A1A2C;

  --text: #E4EEF8;
  --text2: #8AAEC8;
  --text3: #506070;
  --text-bright: #F8FAFC;
  --text-soft: #CBD5E1;
  --text-muted-rgb: 148, 163, 184;

  --border: #1E3050;
  --border2: #2A4060;

  /* Map & Arena Theme Tokens */
  --map-bg: #0B0E14;
  --map-tile-filter: invert(100%) hue-rotate(195deg) brightness(88%) contrast(96%) saturate(60%);
  --map-accent: #38BDF8;
  --map-accent-fill: #0284C7;
  --arena-tint-overlay: linear-gradient(180deg, rgba(5, 8, 16, 0.55) 0%, rgba(5, 8, 16, 0.15) 30%, rgba(5, 8, 16, 0.15) 70%, rgba(5, 8, 16, 0.75) 100%);

  /* Semantic Game Colors (theme-independent) */
  --rarity-selten: #4A9EE8;
  --rarity-selten-bright: #7EC8F0;
  --rarity-selten-deep: #2A6AAA;
  --rarity-selten-vivid: #38BDF8;
  --rarity-selten-rgb: 56, 189, 248;
  --green: #3DCC8E;
  --red: #E85A5A;
  --gold: #F5B041;
  --purple: #A569BD;

  /* Aliases for SightDeck Components */
  --bg-deep: var(--bg);
  --bg-surface: var(--bg2);
  --bg-elevated: var(--bg3);
  --bg-glass: rgba(var(--bg-rgb), 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: 'Dihjau S Bold', '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;
}

html[data-theme="fantasy_tavern"] {
  --bg: #120D09;
  --bg2: #1A130D;
  --bg3: #241A12;
  --bg4: #2F2217;
  --bg-rgb: 18, 13, 9;
  --bg-panel-rgb: 26, 19, 13;
  --bg-elevated-rgb: 42, 31, 22;
  --bg-backdrop: rgba(12, 8, 5, 0.89);
  --bg-header: rgba(18, 13, 9, 0.96);
  --bg-dropdown: rgba(24, 17, 12, 0.97);
  --bg-nav: rgba(18, 13, 9, 0.98);
  --bg-glass: rgba(18, 13, 9, 0.90);

  --sky: #E07A38;
  --sky2: #F3A868;
  --sky3: #9C4B1E;
  --sky4: #381B0B;
  --accent-vivid: #E6823F;
  --accent-deep: #B5541C;
  --accent-rgb: 224, 122, 56;
  --accent-vivid-rgb: 230, 130, 63;
  --accent-deep-rgb: 181, 84, 28;
  --text-on-accent: #1B0E05;

  --text: #F4E9D8;
  --text2: #C8B294;
  --text3: #7A6752;
  --text-bright: #FFF7EB;
  --text-soft: #DFCFB8;
  --text-muted-rgb: 186, 160, 128;

  --border: #3D2B1D;
  --border2: #593F2A;

  --map-accent: #E6823F;
  --map-accent-fill: #B5541C;
  --arena-tint-overlay: linear-gradient(180deg, rgba(24, 14, 7, 0.62) 0%, rgba(30, 17, 8, 0.18) 30%, rgba(28, 16, 8, 0.18) 70%, rgba(18, 11, 6, 0.82) 100%);
}

html[data-theme="fantasy_forest"] {
  --bg: #0E110C;
  --bg2: #151A12;
  --bg3: #1D2419;
  --bg4: #273022;
  --bg-rgb: 14, 17, 12;
  --bg-panel-rgb: 21, 26, 18;
  --bg-elevated-rgb: 34, 42, 30;
  --bg-backdrop: rgba(9, 12, 8, 0.89);
  --bg-header: rgba(14, 17, 12, 0.96);
  --bg-dropdown: rgba(19, 24, 17, 0.97);
  --bg-nav: rgba(14, 17, 12, 0.98);
  --bg-glass: rgba(14, 17, 12, 0.90);

  --sky: #5BB974;
  --sky2: #8FD9A2;
  --sky3: #2E6F44;
  --sky4: #102B1A;
  --accent-vivid: #62C47C;
  --accent-deep: #2D7346;
  --accent-rgb: 91, 185, 116;
  --accent-vivid-rgb: 98, 196, 124;
  --accent-deep-rgb: 45, 115, 70;
  --text-on-accent: #09180D;

  --text: #EAEFE5;
  --text2: #B2C2A8;
  --text3: #687860;
  --text-bright: #F4F8F0;
  --text-soft: #CBD7C3;
  --text-muted-rgb: 162, 180, 152;

  --border: #383B28;
  --border2: #52563A;

  --map-accent: #62C47C;
  --map-accent-fill: #2D7346;
  --arena-tint-overlay: linear-gradient(180deg, rgba(10, 18, 11, 0.62) 0%, rgba(14, 24, 15, 0.16) 30%, rgba(14, 24, 15, 0.16) 70%, rgba(9, 15, 10, 0.82) 100%);
}

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

/* ==========================================================================
   GLOBAL CUSTOM SCROLLBARS (SightDeck Theme)
   ========================================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--sky);
}

*::-webkit-scrollbar-corner {
  background: 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;
}

button,
a,
select,
input,
label,
[role="button"] {
  touch-action: manipulation;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   NOVAPAY MODERN NAVIGATION HEADER
   ========================================================================== */
.sq-header {
  height: calc(64px + env(safe-area-inset-top, 0px));
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  max-height: calc(64px + env(safe-area-inset-top, 0px));
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 0px) max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px));
  z-index: 1500;
  flex-shrink: 0;
  transition: background-color .25s var(--silk), border-color .25s 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(var(--accent-rgb), 0.35);
  border: 1px solid rgba(var(--accent-vivid-rgb), 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(var(--accent-rgb), 0.75);
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.9);
  }
}

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

.sq-hud-stats {
  order: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
  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(var(--accent-rgb), 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(var(--accent-rgb), 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: var(--text-on-accent);
  text-transform: uppercase;
  line-height: 1;
}

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

.sq-profile-header-title h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.sq-profile-header-title h3 svg,
.sq-profile-header-title h3 .lucide {
  width: 20px;
  height: 20px;
  stroke: var(--accent-vivid);
  flex-shrink: 0;
}

.sq-profile-header-sub {
  margin: 4px 0 0 0;
  font-size: 0.82rem;
  color: var(--text2);
}

.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(var(--accent-rgb), 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: var(--text-on-accent);
  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: var(--text-on-accent);
  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(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 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(var(--accent-rgb), 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-kp {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.02em;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

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

.sq-user-identity-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding-right: 8px;
  border-right: 1px solid var(--border);
  line-height: 1.15;
  min-width: 0;
}

.sq-user-name {
  font-weight: 600;
  color: var(--text);
  padding-left: 0;
  border-left: none;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.sq-user-name-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.sq-user-name-btn:hover,
.sq-user-name-btn:focus-visible {
  color: var(--accent-vivid);
  outline: none;
}

.sq-user-rank {
  font-size: 0.62rem;
  color: var(--accent-vivid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.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(var(--accent-rgb), 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 {
  order: 3;
  position: relative;
  display: inline-block;
}

.sq-hamburger-btn {
  position: relative;
  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: background-color 0.14s var(--silk), border-color 0.14s var(--silk), color 0.14s var(--silk);
}

.sq-hamburger-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--green);
  color: var(--text-on-accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(61, 204, 142, 0.65);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.sq-hamburger-btn:hover,
.sq-hamburger-btn.active {
  background: rgba(var(--accent-rgb), 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: var(--bg-dropdown);
  border: 1px solid var(--border2);
  border-radius: 14px;
  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.14s 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: background-color 0.12s var(--silk), border-color 0.12s var(--silk), color 0.12s 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(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 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-inventory,
#view-leaderboard,
#view-licenses,
#view-creature-index,
#view-badges {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* NovaPay Ambient Dot Matrix / Mesh Accent Background */
.novapay-mesh-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(var(--accent-rgb), 0.07) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(var(--accent-deep-rgb), 0.08) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   NOVAPAY BOTTOM FLOATING APP NAVIGATION DOCK
   ========================================================================== */
.sq-bottom-nav {
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  min-height: calc(64px + env(safe-area-inset-bottom, 0px));
  max-height: calc(64px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 max(24px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(24px, env(safe-area-inset-left, 0px));
  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: background-color 0.15s var(--silk), border-color 0.15s var(--silk), color 0.15s var(--silk), transform 0.15s 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: var(--text-on-accent);
  background: var(--sky);
  border-color: var(--sky);
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.28);
  transform: translateY(-1px);
}

.sq-nav-item.active svg,
.sq-nav-item.active .lucide {
  stroke: var(--text-on-accent);
}

.sq-nav-item.active .sq-nav-badge {
  background: var(--text-on-accent);
  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-color 0.16s var(--silk), transform 0.16s var(--silk), border-color 0.16s var(--silk), box-shadow 0.16s var(--silk);
}

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

.sq-btn-primary {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--text-on-accent);
  box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.25);
}

.sq-btn-primary:hover {
  background: var(--sky2);
  border-color: var(--sky2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 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(var(--accent-rgb), 0.08);
  transform: translateY(-1px);
}

.sq-btn-inverse {
  background: var(--bg);
  border: 1.5px solid var(--sky);
  color: var(--sky);
}

.sq-btn-inverse:hover {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: var(--sky2);
  color: var(--sky2);
  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%;
}

.sq-btn-upgrade-action {
  background: linear-gradient(135deg, rgba(var(--accent-vivid-rgb), 0.95) 0%, rgba(var(--accent-deep-rgb), 0.95) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.7);
  color: var(--text-on-accent) !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(var(--accent-vivid-rgb), 0.35);
  transition: all 0.2s var(--silk);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sq-btn-upgrade-action:hover {
  background: linear-gradient(135deg, var(--sky2) 0%, var(--accent-vivid) 100%);
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(var(--accent-vivid-rgb), 0.5);
}

/* ==========================================================================
   INPUTS & SELECTS
   ========================================================================== */
.sq-select,
.sq-input,
.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;
  color-scheme: dark;
  transition: border-color .3s var(--silk), box-shadow .3s var(--silk);
}

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

.sq-admin-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sq-admin-qty-input {
  width: 96px;
  text-align: center;
  font-family: var(--font-mono) !important;
  font-weight: 700;
  font-size: 0.92rem !important;
  color: var(--sky2) !important;
  background: var(--bg3) !important;
  border: 1px solid var(--border2) !important;
  padding: 7px 10px !important;
}

.sq-admin-qty-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.sq-admin-qty-presets .btn-admin-gen-quick-qty {
  flex: 1;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 7px 10px;
}

.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(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--sky2);
}

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

.sq-badge-selten {
  background: rgba(var(--rarity-selten-rgb), 0.15);
  border-color: var(--rarity-selten);
  color: var(--rarity-selten-bright);
}

.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(var(--rarity-selten-rgb), 0.25));
  border-color: var(--rarity-selten-bright);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(var(--rarity-selten-rgb), 0.3);
}

.sq-badge-playground {
  background: rgba(61, 204, 142, 0.15);
  border-color: var(--green);
  color: #86efac;
}

.sq-badge-transit-stop {
  background: rgba(129, 140, 248, 0.16);
  border-color: #818cf8;
  color: #c7d2fe;
}

.sq-badge-supermarket {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #7dd3fc;
}

/* ==========================================================================
   NOVAPAY MODALS (Dark Slate Window with Topbar Accent)
   ========================================================================== */
.sq-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-backdrop);
  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(var(--accent-vivid-rgb), 0.35);
  border: 1px solid rgba(var(--accent-vivid-rgb), 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-success {
  background: rgba(61, 204, 142, 0.12);
  border: 1px solid rgba(61, 204, 142, 0.38);
  color: #d1fae5;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.79rem;
  line-height: 1.45;
  margin-bottom: 10px;
}

.sq-auth-forgot-wrap {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 10px;
}

.sq-auth-back-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.sq-auth-forgot-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--sky);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.sq-auth-forgot-link:hover {
  text-decoration: underline;
}

.sq-auth-forgot-hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text2);
}

.sq-auth-progress {
  margin: 2px 0 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
}

.sq-auth-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}

#auth-progress-pct {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--sky2);
}

.sq-auth-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.sq-auth-progress-bar {
  height: 100%;
  width: 15%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky3), var(--sky), var(--sky2), var(--sky));
  background-size: 200% 100%;
  transition: width 0.45s var(--silk);
  animation: sqAuthProgressShimmer 1.4s linear infinite;
}

@keyframes sqAuthProgressShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.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 & Inventory in smartphone mode */
  .sq-leaderboard-container,
  .sq-inventory-container {
    padding: 8px 6px 100px;
  }

  .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: 0;
  }

  .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-tab-panel {
    gap: 10px;
  }

  .sq-friends-invite-wrap {
    padding: 10px;
    gap: 8px;
    border-radius: 10px;
  }

  .sq-friends-invite-help {
    font-size: 0.74rem;
  }

  .sq-friends-invite-create-row {
    gap: 6px;
  }

  .sq-friends-invite-create-row .sq-input {
    height: 36px;
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .sq-friends-invite-create-row #btn-friends-create-invite {
    padding: 0 10px;
    height: 36px;
    font-size: 0.78rem;
    gap: 4px;
  }

  .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: var(--bg);
  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(var(--accent-rgb), 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(var(--bg-rgb), 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(var(--bg-rgb), 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(var(--bg-panel-rgb), 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(var(--accent-vivid-rgb), 0.08) !important;
  border-bottom-color: rgba(var(--accent-vivid-rgb), 0.25) !important;
}

.sq-row-self:hover td {
  background: rgba(var(--accent-vivid-rgb), 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(var(--accent-vivid-rgb), 0.2);
  color: var(--sky);
  border: 1px solid rgba(var(--accent-vivid-rgb), 0.4);
  margin-left: 6px;
  vertical-align: middle;
}

.sq-lb-user-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.sq-lb-user-top {
  display: flex;
  align-items: center;
}

.sq-lb-user-rank {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text2);
}

.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 & Inventory in mobile mode */
  .sq-leaderboard-container,
  .sq-inventory-container {
    padding: 14px 10px 100px;
    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: 180px;
    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 !important;
  }

  /* ==========================================================================
     SMARTPHONE HEADER LAYOUT
     User Requirement: Links oben Profilbanner, dann Name und Rang,
     mittig CP & KP, rechts oben das Hamburger-Menü
     ========================================================================== */
  .sq-brand {
    display: none !important;
  }

  .sq-header {
    height: calc(52px + env(safe-area-inset-top, 0px));
    min-height: calc(52px + env(safe-area-inset-top, 0px));
    max-height: calc(52px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) max(10px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .sq-hud-status {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    position: relative;
  }

  /* 1. Linksbündig: Profilbanner, dann Name & Rang */
  .sq-user-pill {
    order: 1 !important;
    display: flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-left: 0;
    margin-right: auto;
    flex-shrink: 0;
  }

  .sq-user-avatar-btn {
    order: 1 !important;
    width: 32px;
    height: 32px;
    margin: 0;
    flex-shrink: 0;
  }

  .sq-avatar-initials {
    font-size: 0.76rem;
  }

  .sq-user-identity-col {
    order: 2 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 !important;
    border: none !important;
    line-height: 1.15;
    min-width: 0;
  }

  .sq-user-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text);
    padding: 0 !important;
    border: none !important;
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
  }

  .sq-user-rank {
    font-size: 0.54rem;
    font-weight: 600;
    color: var(--sky);
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    text-align: left;
    letter-spacing: 0.01em;
  }

  /* 2. Mittig: CP und KP */
  .sq-hud-stats {
    order: 2 !important;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0 auto;
    min-width: 0;
  }

  .sq-hud-stats .sq-user-cp {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--sky2);
    background: rgba(var(--accent-vivid-rgb), 0.12);
    border: 1px solid rgba(var(--accent-vivid-rgb), 0.28);
    padding: 3px 8px;
    border-radius: 12px;
    line-height: 1.2;
    white-space: nowrap;
    border-left: 1px solid rgba(var(--accent-vivid-rgb), 0.28);
  }

  .sq-hud-stats .sq-user-kp {
    font-size: 0.76rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.28);
    padding: 3px 8px;
    border-radius: 12px;
    line-height: 1.2;
    white-space: nowrap;
    border-left: 1px solid rgba(52, 211, 153, 0.28);
  }

  /* 3. Rechtsbündig: Hamburger-Menü */
  .sq-menu-wrap {
    order: 3 !important;
    margin: 0 0 0 auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .sq-hamburger-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

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

  /* Hamburger Dropdown im Smartphone-Modus: rechtsbündig unter dem Button & scrollbar */
  .sq-menu-dropdown {
    right: 0 !important;
    left: auto !important;
    width: 270px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform-origin: top right;
  }

  .sq-bottom-nav {
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    min-height: calc(56px + env(safe-area-inset-bottom, 0px));
    max-height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding: 0 max(16px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(16px, env(safe-area-inset-left, 0px));
    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 6px;
  }

  .sq-hud-status {
    gap: 4px;
  }

  .sq-hamburger-btn {
    width: 32px;
    height: 32px;
  }

  .sq-hud-stats {
    gap: 4px;
  }

  .sq-hud-stats .sq-user-cp,
  .sq-hud-stats .sq-user-kp {
    font-size: 0.70rem;
    padding: 2px 5px;
  }

  .sq-user-pill {
    gap: 5px;
  }

  .sq-user-name {
    max-width: 68px;
  }

  .sq-user-rank {
    font-size: 0.48rem;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    letter-spacing: 0;
  }

  .sq-user-avatar-btn {
    width: 28px;
    height: 28px;
  }

  .sq-avatar-initials {
    font-size: 0.70rem;
  }
}


/* ==========================================================================
   SMARTPHONE COMPATIBILITY OPTIMIZATIONS FOR ALL MENUS & MODALS
   ========================================================================== */
.sq-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin: 6px 0;
}


@media (max-width: 520px) {

  /* CP Guide 3-column box stacks vertically */
  .sq-guide-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {

  /* Responsive form rows in all modals (Custom POI, etc.) */
  .sq-form-row {
    flex-direction: column;
    gap: 8px;
  }

  /* Profile Modal responsiveness */
  .sq-profile-modal {
    width: 95vw;
    max-width: 440px;
    padding: 16px 14px !important;
  }

  .sq-profile-hero {
    padding: 12px 14px;
    gap: 12px;
  }

  .sq-avatar-preview-wrap {
    width: 62px;
    height: 62px;
  }

  .sq-guide-modal {
    width: 95vw;
    max-width: 580px;
    padding: 16px 14px !important;
  }
}

@media (max-width: 420px) {

  /* Profile Modal buttons stack nicely */
  .sq-profile-modal .sq-form-row {
    flex-direction: column;
    gap: 8px;
  }

  .sq-profile-modal .sq-form-row .sq-btn {
    width: 100%;
    flex: unset !important;
  }

  /* Bank exchange direction tabs stack gracefully */
  .sq-bank-tabs {
    flex-direction: column;
    gap: 6px !important;
  }
}

/* ==========================================================================
   PROFILE UI THEME PICKER CARDS
   ========================================================================== */
.sq-theme-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.sq-theme-option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(var(--bg-elevated-rgb), 0.45);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color 0.22s var(--silk), background 0.22s var(--silk), box-shadow 0.22s var(--silk);
}

.sq-theme-option-card:hover {
  border-color: var(--border2);
  background: rgba(var(--bg-elevated-rgb), 0.75);
}

.sq-theme-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.sq-theme-option-card:has(input[type="radio"]:checked),
.sq-theme-option-card.is-selected {
  border-color: var(--sky);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.sq-theme-swatch {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
}

.sq-theme-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.28);
}

.sq-theme-swatch.theme-default {
  background: linear-gradient(135deg, #0F1319 0%, #1E2838 100%);
  border-color: #2A4060;
}

.sq-theme-swatch.theme-default .sq-theme-swatch-dot {
  background: #4A9EE8;
}

.sq-theme-swatch.theme-tavern {
  background: linear-gradient(135deg, #120D09 0%, #2F2217 100%);
  border-color: #593F2A;
}

.sq-theme-swatch.theme-tavern .sq-theme-swatch-dot {
  background: #E07A38;
}

.sq-theme-swatch.theme-forest {
  background: linear-gradient(135deg, #0E110C 0%, #273022 100%);
  border-color: #52563A;
}

.sq-theme-swatch.theme-forest .sq-theme-swatch-dot {
  background: #5BB974;
}

.sq-theme-option-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sq-theme-option-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.sq-theme-option-desc {
  font-size: 0.73rem;
  color: var(--text2);
  line-height: 1.3;
}

.sq-theme-option-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: all 0.2s var(--silk);
}

.sq-theme-option-card:has(input[type="radio"]:checked) .sq-theme-option-check,
.sq-theme-option-card.is-selected .sq-theme-option-check {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--text-on-accent);
}

.sq-theme-option-check svg,
.sq-theme-option-check .lucide {
  width: 11px;
  height: 11px;
  stroke: currentColor;
}

@media (max-width: 768px),
(hover: none),
(pointer: coarse) {
  .sq-modal-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(var(--bg-rgb), 0.92);
  }

  .sq-btn-primary:hover,
  .sq-btn-outline:hover,
  .sq-user-avatar-btn:hover,
  .sq-nav-item:hover svg,
  .sq-nav-item:hover .lucide,
  .sq-brand:hover .nav-logo-mark {
    transform: none;
  }
}

/* ==========================================================================
   DEMO USER BADGE, UPGRADE ROW & INFO OVERLAY
   ========================================================================== */
.sq-user-name-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}

.sq-demo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 7px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fde047;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.58);
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.22);
  transition: all 0.2s var(--silk);
}

.sq-demo-badge:hover {
  background: rgba(245, 158, 11, 0.34);
  border-color: #fde047;
  color: #fef08a;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

.sq-demo-badge.hidden {
  display: none !important;
}

.sq-demo-badge-static {
  cursor: default;
  margin-bottom: 4px;
}

.sq-demo-badge-lg {
  font-size: 0.74rem;
  padding: 6px 11px;
  border-radius: 8px;
}

.sq-demo-badge svg,
.sq-demo-badge .lucide {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

.sq-demo-upgrade-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}

.sq-demo-upgrade-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.sq-demo-upgrade-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.sq-demo-token-input {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.80rem !important;
  padding: 7px 10px !important;
}

.sq-demo-upgrade-error {
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

.sq-demo-redeem-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 8px 12px !important;
  font-weight: 700;
}

.sq-demo-upgrade-hint {
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--text2);
  line-height: 1.35;
}

.sq-demo-info-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text);
}

.sq-demo-info-lead {
  margin: 0;
  color: var(--text2);
  line-height: 1.45;
}

.sq-demo-limits-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.sq-demo-limit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

.sq-demo-limit-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.sq-demo-limit-left svg,
.sq-demo-limit-left .lucide {
  width: 15px;
  height: 15px;
  stroke: var(--sky);
  flex-shrink: 0;
}

.sq-demo-limit-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fde047;
  flex-shrink: 0;
}

.sq-demo-limit-val.is-locked {
  color: #fda4af;
  font-family: var(--font-sans);
  font-size: 0.76rem;
}

.sq-demo-info-upgrade-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 10px;
  font-size: 0.79rem;
  color: #fef3c7;
  line-height: 1.4;
}

.sq-demo-info-upgrade-note svg,
.sq-demo-info-upgrade-note .lucide {
  width: 16px;
  height: 16px;
  stroke: #fde047;
  flex-shrink: 0;
  margin-top: 1px;
}

.sq-friends-invite-demo-locked {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 10px;
  font-size: 0.80rem;
  color: var(--text);
  line-height: 1.4;
}

.sq-friends-invite-demo-locked svg,
.sq-friends-invite-demo-locked .lucide {
  width: 18px;
  height: 18px;
  stroke: #fde047;
  flex-shrink: 0;
  margin-top: 2px;
}

.sq-friends-invite-demo-locked strong {
  display: block;
  color: #fde047;
  margin-bottom: 3px;
}

.sq-friends-invite-demo-locked p {
  margin: 0;
  color: var(--text2);
}

@media (max-width: 480px) {
  .sq-demo-badge {
    font-size: 0.56rem;
    padding: 1px 5px;
  }

  .sq-demo-badge-lg {
    font-size: 0.68rem;
    padding: 5px 8px;
  }

  .sq-demo-upgrade-row {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   EMAIL VERIFICATION BADGES & FULL-VERSION PURCHASE FLOW
   ========================================================================== */
.sq-demo-status-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sq-verify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sq-verify-badge svg,
.sq-verify-badge .lucide {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  flex-shrink: 0;
}

.sq-verify-badge.is-unverified {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.48);
  color: #fda4af;
}

.sq-verify-badge.is-unverified:hover {
  background: rgba(244, 63, 94, 0.26);
  border-color: #fb7185;
  color: #ffe4e6;
}

.sq-verify-badge.is-verified {
  background: rgba(61, 204, 142, 0.16);
  border-color: rgba(61, 204, 142, 0.5);
  color: #3DCC8E;
}

.sq-verify-badge.is-verified:hover {
  background: rgba(61, 204, 142, 0.24);
}

.sq-verify-badge-static {
  cursor: default;
  margin-bottom: 4px;
}

.sq-btn-purchase-full {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(253, 224, 71, 0.65);
  color: #161005 !important;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
}

.sq-btn-purchase-full:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.42);
}

.sq-btn-purchase-full:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sq-demo-buy-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 8px 12px !important;
  font-weight: 800;
}

.sq-input-readonly {
  opacity: 0.85;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Verify Required Modal */
.sq-verify-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sq-verify-modal-text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.5;
}

.sq-verify-email-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--sky);
  word-break: break-all;
}

.sq-verify-modal-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.45;
}

.sq-verify-modal-actions {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

/* Dummy Checkout Modal */
.sq-purchase-modal {
  max-width: 560px;
}

.sq-purchase-header-title h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.sq-purchase-header-title h3 svg,
.sq-purchase-header-title h3 .lucide {
  width: 20px;
  height: 20px;
  stroke: var(--accent-vivid);
  flex-shrink: 0;
}

.sq-purchase-header-sub {
  margin: 4px 0 0 0;
  font-size: 0.82rem;
  color: var(--text2);
}

.sq-purchase-summary-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.sq-purchase-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sq-purchase-summary-sub {
  font-size: 0.75rem;
  color: var(--text2);
  margin-top: 2px;
}

.sq-purchase-price-tag {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fde047;
  white-space: nowrap;
}

.sq-purchase-dummy-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.32);
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.4;
}

.sq-purchase-dummy-banner svg,
.sq-purchase-dummy-banner .lucide {
  width: 15px;
  height: 15px;
  stroke: #fde047;
  flex-shrink: 0;
  margin-top: 1px;
}

.sq-purchase-existing-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(61, 204, 142, 0.12);
  border: 1px solid rgba(61, 204, 142, 0.45);
  font-size: 0.8rem;
}

.sq-purchase-existing-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text);
}

.sq-purchase-existing-text span {
  font-size: 0.74rem;
  color: var(--text2);
}

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

.sq-payment-method-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  cursor: pointer;
}

.sq-payment-method-card.is-selected {
  border-color: var(--sky);
  background: rgba(var(--accent-rgb), 0.1);
}

.sq-payment-method-card.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sq-payment-method-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.sq-payment-method-meta strong {
  font-size: 0.84rem;
  color: var(--text);
}

.sq-payment-method-meta span {
  font-size: 0.72rem;
  color: var(--text2);
}

.sq-payment-soon-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text2);
  white-space: nowrap;
}

/* Thank-You Modal */
.sq-thankyou-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sq-thankyou-lead {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
}

.sq-thankyou-token-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid rgba(61, 204, 142, 0.5);
  text-align: center;
}

.sq-thankyou-token-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text2);
}

.sq-thankyou-token-code {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #3DCC8E;
  user-select: all;
  word-break: break-all;
}

.sq-thankyou-mail-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.09);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  font-size: 0.77rem;
  color: var(--text2);
}

.sq-thankyou-mail-note svg,
.sq-thankyou-mail-note .lucide {
  width: 15px;
  height: 15px;
  stroke: var(--sky);
  flex-shrink: 0;
}

.sq-thankyou-actions {
  display: flex;
  flex-direction: column;
}

/* Access Request Modal ("Zugang erfragen") */
.sq-access-request-modal {
  max-width: 540px;
  padding: 22px 22px 20px;
}

.sq-access-intro {
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.81rem;
  line-height: 1.55;
  color: var(--text2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sq-access-intro p {
  margin: 0;
}

.sq-ar-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.sq-ar-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

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

.sq-access-request-modal .sq-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 62px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  padding: 8px 11px;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.2s var(--silk);
}

.sq-access-request-modal .sq-field textarea:focus {
  border-color: var(--sky);
}

.sq-ar-req {
  color: var(--sky);
}

.sq-ar-opt {
  font-weight: 400;
  color: var(--text3);
  font-size: 0.72rem;
}

.sq-ar-field-hint {
  margin: 4px 0 0;
  font-size: 0.74rem;
  color: var(--text2);
  line-height: 1.4;
}

.sq-ar-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.sq-ar-actions .sq-btn {
  flex: 1;
}

@media (max-width: 520px) {
  .sq-ar-name-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}