/* [project]/src/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-font-weight: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --spacing: .25rem;
    --text-xs: .75rem;
    --text-xs--line-height: calc(1 / .75);
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --font-weight-bold: 700;
    --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .start {
    inset-inline-start: var(--spacing);
  }

  .end {
    inset-inline-end: var(--spacing);
  }

  .z-3 {
    z-index: 3;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }

  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .table {
    display: table;
  }

  .shrink {
    flex-shrink: 1;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .animate-pulse {
    animation: var(--animate-pulse);
  }

  .resize {
    resize: both;
  }

  .truncate {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .text-center {
    text-align: center;
  }

  .font-mono {
    font-family: var(--font-mono);
  }

  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }

  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }

  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }

  .lowercase {
    text-transform: lowercase;
  }

  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-hover: #1e1e2a;
  --border: #2a2a3a;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #555570;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: #6366f14d;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gold: #fbbf24;
  --pixel-free: #1f2937;
  --pixel-sale: #fbbf24;
}

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

html, body {
  background: var(--bg-primary);
  height: 100%;
  color: var(--text-primary);
  font-family: Inter, Segoe UI, system-ui, -apple-system, sans-serif;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.app-layout {
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  flex-direction: column;
  flex-shrink: 0;
  width: 260px;
  display: flex;
}

.sidebar-header {
  border-bottom: 1px solid var(--border);
  padding: 20px;
}

.sidebar-logo {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.25rem;
  font-weight: 700;
}

.sidebar-logo span {
  opacity: .7;
  font-weight: 400;
}

.sidebar-nav {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  padding: 12px;
  display: flex;
}

.nav-section {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 0 12px;
  font-size: .65rem;
  font-weight: 600;
}

.nav-link {
  color: var(--text-secondary);
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
  display: flex;
}

.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.main-content {
  flex-direction: column;
  flex: 1;
  display: flex;
  overflow-y: auto;
}

.page-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  display: flex;
}

.page-title {
  letter-spacing: -.02em;
  font-size: 1.5rem;
  font-weight: 700;
}

.page-body {
  flex: 1;
  padding: 24px 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color .2s;
}

.card:hover {
  border-color: var(--accent);
}

.card-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: .75rem;
  font-weight: 600;
}

.card-value {
  letter-spacing: -.03em;
  font-size: 2rem;
  font-weight: 800;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  display: grid;
}

.btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 600;
  transition: all .15s;
  display: inline-flex;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  opacity: .9;
}

.btn-sm {
  padding: 6px 12px;
  font-size: .75rem;
}

.btn-icon {
  border-radius: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
}

.input {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  width: 100%;
  color: var(--text-primary);
  border-radius: 8px;
  outline: none;
  padding: 10px 14px;
  font-size: .875rem;
  transition: border-color .2s;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
  font-size: .75rem;
  font-weight: 600;
  display: block;
}

.select {
  appearance: none;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  width: 100%;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 8px;
  outline: none;
  padding: 10px 14px;
  font-size: .875rem;
  transition: border-color .2s;
}

.select:focus {
  border-color: var(--accent);
}

.table-wrapper {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}

.table {
  border-collapse: collapse;
  width: 100%;
}

.table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  font-size: .7rem;
  font-weight: 600;
}

.table td {
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 12px 16px;
  font-size: .875rem;
}

.table tr:hover td {
  background: var(--bg-hover);
}

.table tr:last-child td {
  border-bottom: none;
}

.badge {
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 100px;
  align-items: center;
  padding: 3px 10px;
  font-size: .7rem;
  font-weight: 600;
  display: inline-flex;
}

.badge-free {
  color: var(--success);
  background: #22c55e26;
}

.badge-owned {
  color: var(--accent);
  background: #6366f126;
}

.badge-sale {
  color: var(--gold);
  background: #fbbf2426;
}

.badge-offline {
  color: var(--danger);
  background: #ef444426;
}

.map-container {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  height: calc(100vh - 80px);
  position: relative;
  overflow: hidden;
}

.map-canvas {
  cursor: grab;
  image-rendering: pixelated;
}

.map-canvas:active {
  cursor: grabbing;
}

.map-controls {
  flex-direction: column;
  gap: 4px;
  display: flex;
  position: absolute;
  bottom: 16px;
  right: 16px;
}

.map-tooltip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  pointer-events: none;
  z-index: 100;
  border-radius: 10px;
  min-width: 180px;
  padding: 12px 16px;
  font-size: .8rem;
  position: absolute;
  box-shadow: 0 8px 32px #00000080;
}

.map-tooltip-header {
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 700;
}

.map-tooltip-row {
  color: var(--text-secondary);
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2px;
  display: flex;
}

.playback-controls {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px 20px;
  display: flex;
}

.playback-progress {
  background: var(--bg-primary);
  cursor: pointer;
  border-radius: 3px;
  flex: 1;
  height: 6px;
  overflow: hidden;
}

.playback-progress-bar {
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  border-radius: 3px;
  height: 100%;
  transition: width .1s linear;
}

.speed-badge {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .7rem;
  font-weight: 700;
  transition: all .15s;
}

.speed-badge:hover, .speed-badge.active {
  border-color: var(--accent);
  color: var(--accent);
}

.color-grid {
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  display: grid;
}

.color-swatch {
  cursor: pointer;
  border: 2px solid #0000;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  transition: all .15s;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.selected {
  box-shadow: 0 0 8px var(--accent-glow);
  border-color: #fff;
}

.modal-overlay {
  z-index: 1000;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #000000b3;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  padding: 28px;
  box-shadow: 0 24px 64px #0009;
}

.modal-title {
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}

.animate-fade-in {
  animation: .3s fadeIn;
}

.animate-pulse {
  animation: 2s infinite pulse;
}

.text-warning {
  color: var(--warning);
}

.text-danger {
  color: var(--danger);
}

.text-gold {
  color: var(--gold);
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-4 {
  margin-top: 16px;
}

.ml-auto {
  margin-left: auto;
}

.font-bold {
  font-weight: 700;
}

.font-mono {
  font-family: JetBrains Mono, monospace;
}

.text-sm {
  font-size: .875rem;
}

.text-xs {
  font-size: .75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.w-full {
  width: 100%;
}

.truncate {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.text-center {
  text-align: center;
}

.app-container {
  background: var(--bg-primary);
  min-height: 100vh;
}

.app-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  z-index: 50;
  position: sticky;
  top: 0;
}

.header-content {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
}

.header-brand {
  align-items: center;
  gap: 12px;
  display: flex;
}

.brand-icon {
  font-size: 2rem;
}

.brand-title {
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 800;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: .75rem;
}

.header-stats {
  gap: 32px;
  display: flex;
}

.stat {
  flex-direction: column;
  align-items: flex-end;
  display: flex;
}

.stat-value {
  letter-spacing: -.02em;
  font-size: 1.25rem;
  font-weight: 800;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 600;
}

.main-content {
  padding: 0;
}

.content-grid {
  grid-template-columns: 1fr 380px;
  align-items: start;
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 32px;
  display: grid;
}

.map-section {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.sidebar-section {
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 100px);
  display: flex;
  overflow-y: auto;
}

.card-title {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
}

.table-container {
  max-height: 300px;
  overflow-y: auto;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: .8rem;
}

.data-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  font-size: .65rem;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.data-table td {
  color: var(--text-secondary);
  border-bottom: 1px solid #2a2a3a80;
  padding: 6px 10px;
}

.data-table tr:hover td {
  background: var(--bg-hover);
}

.data-table tr.row-selected td {
  background: #6366f11a;
  border-color: #6366f133;
}

.region-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.region-detail-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  display: flex;
}

.region-detail-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.region-detail-stats {
  gap: 20px;
  margin-bottom: 12px;
  display: flex;
}

.mini-stat {
  flex-direction: column;
  display: flex;
}

.mini-stat-value {
  letter-spacing: -.02em;
  font-size: 1.1rem;
  font-weight: 800;
}

.mini-stat-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-size: .6rem;
}

.region-users h4 {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: .75rem;
  font-weight: 600;
}

.user-row {
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  display: flex;
}

.user-color {
  border-radius: 50%;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
}

.user-name {
  flex: 1;
  font-size: .8rem;
}

.user-pixels {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
}

.user-color-dot {
  border-radius: 50%;
  width: 8px;
  height: 8px;
  display: inline-block;
}

.loading-container {
  min-height: 60vh;
  color: var(--text-muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  display: flex;
}

.loading-spinner {
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: .8s linear infinite spin;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: .3s slideUp;
}

.map-wrapper {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  resize: vertical;
  background: #0a0a0f;
  border-radius: 12px;
  width: 100%;
  height: 65vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.map-wrapper:after {
  content: "";
  pointer-events: none;
  z-index: 5;
  background: #ffffff26;
  border-radius: 2px;
  width: 40px;
  height: 4px;
  margin-bottom: 6px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.map-svg {
  background: #0a0a0f;
  width: 100%;
  height: 100%;
  display: block;
}

.map-controls {
  z-index: 10;
  flex-direction: column;
  gap: 4px;
  display: flex;
  position: absolute;
  top: 12px;
  right: 12px;
}

.map-ctrl-btn {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  width: 36px;
  height: 36px;
  color: var(--text-primary);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  transition: background .15s, border-color .15s;
  display: flex;
}

.map-ctrl-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
}

.map-ctrl-btn:active {
  transform: scale(.92);
}

.map-zoom-level {
  text-align: center;
  color: var(--text-muted);
  padding: 4px 0;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
  font-weight: 700;
}

.map-loading {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  z-index: 10;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  position: absolute;
  top: 12px;
  left: 12px;
}

.pixel-info-panel {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  z-index: 20;
  border-radius: 16px 16px 0 0;
  padding: 16px 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -4px 24px #0006;
}

.pixel-info-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  display: flex;
}

.pixel-info-title {
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
}

.pixel-info-close {
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 18px;
}

.pixel-info-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.pixel-info-body {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.pixel-info-row {
  color: var(--text-secondary);
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  display: flex;
}

.pixel-info-value {
  color: var(--text-primary);
  font-weight: 600;
}

.pixel-color-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.text-accent {
  color: var(--accent) !important;
}

.text-success {
  color: var(--success) !important;
}

@keyframes pixelPulse {
  0% {
    r: 3;
    opacity: 1;
  }

  100% {
    r: 8;
    opacity: 0;
  }
}

.pixel-pulse {
  animation: 1.5s ease-out infinite pixelPulse;
}

.pixel-hover-tooltip {
  border: 1px solid var(--border);
  z-index: 15;
  color: var(--text-primary);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
  white-space: nowrap;
  background: #14141eeb;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: .78rem;
  display: flex;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 16px #00000080;
}

.pixel-hover-dot {
  border-radius: 2px;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.pixel-hover-coords {
  color: var(--text-muted);
  font-family: JetBrains Mono, monospace;
  font-size: .7rem;
}

.map-tooltip-desktop {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  z-index: 10;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
  border-radius: 8px;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  font-size: .8rem;
  display: flex;
  position: absolute;
  bottom: 12px;
  left: 12px;
}

.map-tooltip-desktop strong {
  color: var(--text-primary);
  font-weight: 700;
}

.map-tooltip-desktop span {
  color: var(--text-muted);
  font-size: .75rem;
}

.mobile-tabs {
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  -webkit-overflow-scrolling: touch;
  display: none;
  overflow-x: auto;
}

.mobile-tab {
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  flex: 1;
  padding: 10px 12px;
  font-size: .8rem;
  font-weight: 600;
  transition: color .2s, border-color .2s;
}

.mobile-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.show-mobile {
  display: none !important;
}

.hide-mobile {
  display: initial;
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .header-content {
    padding: 10px 16px;
  }
}

@media (max-width: 768px) {
  .show-mobile {
    display: flex !important;
  }

  .hide-mobile {
    display: none !important;
  }

  .header-content {
    padding: 8px 12px;
  }

  .brand-icon {
    font-size: 1.4rem;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: .55rem;
  }

  .header-stats {
    gap: 16px;
    display: flex;
  }

  .content-grid {
    gap: 0;
    padding: 0;
  }

  .map-section, .map-wrapper {
    border-radius: 0;
  }

  .sidebar-section {
    padding: 8px;
  }

  .card {
    border-radius: 8px;
  }

  .data-table td, .data-table th {
    padding: 10px 8px;
  }

  .data-table {
    font-size: .8rem;
  }

  .pixel-info-panel {
    padding: 20px 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .pixel-info-panel:before {
    content: "";
    background: var(--border);
    border-radius: 2px;
    width: 36px;
    height: 4px;
    margin: 0 auto 12px;
    display: block;
  }

  .map-controls {
    top: 8px;
    right: 8px;
  }

  .map-ctrl-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .region-detail {
    border-radius: 0;
    margin: 0;
  }
}

.legal-page {
  background: var(--bg-primary);
  min-height: 100vh;
  color: var(--text-primary);
  padding: 2rem 1rem;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-back {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: .9rem;
  text-decoration: none;
  display: inline-block;
}

.legal-back:hover {
  color: var(--accent-hover);
}

.legal-page h1 {
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 800;
}

.legal-loading {
  color: var(--text-muted);
  font-style: italic;
}

.legal-content {
  color: #d0d0e0;
  font-size: .95rem;
  line-height: 1.8;
}

.legal-content h2 {
  color: var(--text-primary);
  margin: 2rem 0 .75rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.legal-content h3 {
  color: var(--text-primary);
  margin: 1.5rem 0 .5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.legal-content p {
  margin-bottom: .75rem;
}

.legal-content ul, .legal-content ol {
  margin-bottom: .75rem;
  margin-left: 1.5rem;
}

.legal-content li {
  margin-bottom: .35rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-updated {
  color: var(--text-muted);
  margin-top: 2rem;
  font-size: .8rem;
}

.legal-footer-links {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1rem;
}

.legal-footer-links a {
  color: var(--accent);
  font-size: .9rem;
  text-decoration: none;
}

.legal-footer-links a:hover {
  color: var(--accent-hover);
}

.app-footer {
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 1rem 1.5rem;
  font-size: .8rem;
}

.app-footer a {
  color: var(--text-secondary);
  margin: 0 .75rem;
  text-decoration: none;
  transition: color .2s;
}

.app-footer a:hover {
  color: var(--accent);
}

.header-auth {
  flex-shrink: 0;
  align-items: center;
  margin-left: auto;
  display: flex;
}

.auth-loading {
  font-size: 1.2rem;
  animation: 1.5s infinite pulse;
}

.auth-buttons {
  gap: .5rem;
  display: flex;
}

.btn-auth {
  cursor: pointer;
  color: #fff;
  border: none;
  border-radius: 8px;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  transition: all .2s;
  display: flex;
}

.btn-tiktok {
  background: #000;
  border: 1px solid #333;
}

.btn-tiktok:hover {
  background: #1a1a1a;
  border-color: #555;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #0006;
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.btn-instagram:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #e1306c66;
}

.auth-profile {
  align-items: center;
  gap: .6rem;
  display: flex;
}

.auth-avatar {
  border: 2px solid var(--accent);
  object-fit: cover;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.auth-info {
  flex-direction: column;
  line-height: 1.2;
  display: flex;
}

.auth-name {
  color: var(--text-primary);
  font-size: .85rem;
  font-weight: 600;
}

.auth-pixels {
  color: var(--accent);
  font-size: .7rem;
  font-weight: 500;
}

.btn-logout {
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border-radius: 6px;
  padding: .35rem .7rem;
  font-family: inherit;
  font-size: .75rem;
  transition: all .2s;
}

.btn-logout:hover {
  color: #ef4444;
  background: #ef44441a;
  border-color: #ef4444;
}

@media (max-width: 768px) {
  .btn-auth {
    padding: .4rem .6rem;
  }

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

  .auth-avatar {
    width: 28px;
    height: 28px;
  }

  .btn-logout {
    padding: .3rem .5rem;
    font-size: .7rem;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-font-weight {
  syntax: "*";
  inherits: false
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

/*# sourceMappingURL=src_app_globals_91e4631d.css.map*/