@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

/* ==========================================================================
   1. DESIGN SYSTEM TOKENS (Liquid Glass System)
   ========================================================================== */
:root {
  /* ── Glass surface tints ── */
  --glass-white: rgba(255, 255, 255, 0.10);
  --glass-white-md: rgba(255, 255, 255, 0.18);
  --glass-white-lg: rgba(255, 255, 255, 0.28);
  --glass-dark: rgba(0, 0, 0, 0.18);
  --glass-dark-md: rgba(0, 0, 0, 0.28);

  /* ── Borders ── */
  --glass-border: rgba(255, 255, 255, 0.20);
  --glass-border-subtle: rgba(255, 255, 255, 0.10);
  --glass-border-bright: rgba(255, 255, 255, 0.45);

  /* ── Blur values ── */
  --blur-sm: blur(8px);
  --blur-md: blur(18px);
  --blur-lg: blur(32px);
  --blur-xl: blur(60px);

  /* ── Shadows ── */
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px rgba(94, 231, 223, 0.35);

  /* ── Reflections ── */
  --reflection-top: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 50%);
  --reflection-inner: inset 0 1px 1px rgba(255, 255, 255, 0.45), inset 0 -1px 1px rgba(0, 0, 0, 0.1);

  /* ── Colour palette ── */
  --accent-aqua: #5ee7df;
  --accent-violet: #b490f5;
  --accent-rose: #f7a8c4;
  --accent-amber: #ffd27f;
  --accent-lime: #a8f08a;
  --accent-blue: #0284c7;

  /* ── Semantic surface / text ── */
  --color-bg: #0b0e1a;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.65);
  --color-text-subtle: rgba(255, 255, 255, 0.38);

  /* ── Spacing scale ── */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* ── Type scale ── */
  --text-2xs: 0.70rem;
  --text-xs: 0.78rem;
  --text-sm: 0.86rem;
  --text-md: 0.95rem;
  --text-base: 1.05rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.85rem;

  /* ── Radius scale ── */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ── Z-index scale ── */
  --z-base: 1;
  --z-raised: 10;
  --z-overlay: 100;

  /* ── Easing & Duration ── */
  --ease-glass: cubic-bezier(0.22, 0.68, 0, 1.2);
  --ease-liquid: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur-mid: 360ms;
  --dur-slow: 600ms;

  /* ── Typography ── */
  --font-display: "Outfit", "Italiana", sans-serif;
  --font-body: "GMarketSans", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --------------------------------------------------------------------------
   2. LIGHT THEME TOKENS & OVERRIDES
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  --glass-white: rgba(255, 255, 255, 0.75);
  --glass-white-md: rgba(255, 255, 255, 0.88);
  --glass-white-lg: rgba(255, 255, 255, 0.95);
  --glass-dark: rgba(0, 0, 0, 0.05);
  --glass-dark-md: rgba(15, 23, 42, 0.08);

  --glass-border: rgba(15, 23, 42, 0.16);
  --glass-border-subtle: rgba(15, 23, 42, 0.12);
  --glass-border-bright: rgba(15, 23, 42, 0.28);

  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);

  --color-bg: #eef4fb;
  --color-surface: rgba(255, 255, 255, 0.7);
  --color-text: #0f172a;
  --color-text-muted: #334155;
  --color-text-subtle: #64748b;

  --reflection-top: none;
  --reflection-inner: inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 1px rgba(0, 0, 0, 0.04);

  --accent-aqua: #0284c7;
  --accent-violet: #6d28d9;
  --accent-rose: #be185d;
  --accent-amber: #b45309;
  --accent-lime: #15803d;
}

[data-theme="light"] body {
  color: #0f172a;
}

[data-theme="light"] .brand-logo,
[data-theme="light"] .nav-item a,
[data-theme="light"] .hero-banner__sub,
[data-theme="light"] .stat-card__val,
[data-theme="light"] .stat-card__lbl,
[data-theme="light"] .table-toolbar__title,
[data-theme="light"] .table-toolbar__count,
[data-theme="light"] .glass-table thead th,
[data-theme="light"] .glass-table tbody td,
[data-theme="light"] .apt-name,
[data-theme="light"] .glass-btn,
[data-theme="light"] .glass-input,
[data-theme="light"] .glass-select,
[data-theme="light"] .loading-container,
[data-theme="light"] .empty-state {
  color: #0f172a;
}

[data-theme="light"] .nav-item a {
  color: #334155;
}
[data-theme="light"] .nav-item.active a,
[data-theme="light"] .nav-item a:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .hero-banner__sub {
  color: #334155;
}

[data-theme="light"] .stat-card__lbl {
  color: #475569;
}

[data-theme="light"] .glass-input::placeholder {
  color: #64748b;
}

[data-theme="light"] .glass-input-icon {
  color: #475569;
}

[data-theme="light"] .glass-table thead th {
  color: #334155 !important;
  background: #f1f5f9 !important;
  border-bottom: 2px solid #cbd5e1 !important;
}
[data-theme="light"] .glass-table thead th:hover {
  color: #0f172a !important;
  background: #e2e8f0 !important;
}
[data-theme="light"] .glass-table thead th.is-sorted {
  color: #0284c7 !important;
  background: #e0f2fe !important;
}

[data-theme="light"] .table-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .table-toolbar {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .glass-table tbody tr {
  background: #ffffff;
}
[data-theme="light"] .glass-table tbody tr:nth-child(even) {
  background: #f8fafc;
}
[data-theme="light"] .glass-table tbody tr:hover {
  background: #e2e8f0 !important;
}

[data-theme="light"] .glass-table tbody td {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .apt-name {
  color: #0f172a !important;
}

[data-theme="light"] .price-tag {
  color: #059669 !important;
  text-shadow: none !important;
}

[data-theme="light"] .glass-tag--blue {
  background: #e0f2fe !important;
  border-color: #bae6fd !important;
  color: #0284c7 !important;
  font-weight: 600;
}

[data-theme="light"] .glass-tag--purple {
  background: #f3e8ff !important;
  border-color: #e9d5ff !important;
  color: #6d28d9 !important;
  font-weight: 600;
}

[data-theme="light"] .glass-btn--primary {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35) !important;
}
[data-theme="light"] .glass-btn--primary:hover {
  background: #0369a1 !important;
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.45) !important;
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background var(--dur-mid) var(--ease-smooth), color var(--dur-mid) var(--ease-smooth);
}

/* --------------------------------------------------------------------------
   4. ANIMATED BACKGROUND SCENE
   -------------------------------------------------------------------------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: blob-drift var(--dur, 20s) ease-in-out infinite alternate;
}

[data-theme="light"] .scene__blob {
  opacity: 0.28;
}

.scene__blob--1 {
  width: 700px;
  height: 700px;
  background: #3b82f6;
  top: -220px;
  left: -150px;
  --dur: 22s;
}
.scene__blob--2 {
  width: 650px;
  height: 650px;
  background: #b490f5;
  bottom: -220px;
  right: -120px;
  --dur: 18s;
  animation-delay: -8s;
}
.scene__blob--3 {
  width: 450px;
  height: 450px;
  background: #5ee7df;
  top: 35%;
  left: 45%;
  --dur: 26s;
  animation-delay: -14s;
}

@keyframes blob-drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.08); }
  66% { transform: translate(-40px, 60px) scale(0.94); }
  100% { transform: translate(30px, 30px) scale(1.04); }
}

/* --------------------------------------------------------------------------
   5. GLASS UTILITY CLASSES & COMPONENTS
   -------------------------------------------------------------------------- */
.glass {
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

.glass-card {
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: transform var(--dur-mid) var(--ease-glass), box-shadow var(--dur-mid) var(--ease-glass), background var(--dur-mid);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  background: var(--glass-white-md);
}

/* --------------------------------------------------------------------------
   6. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  background: rgba(11, 15, 26, 0.72);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--dur-mid);
}

[data-theme="light"] header {
  background: rgba(237, 242, 249, 0.78);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
[data-theme="light"] .brand-logo {
  color: #0f172a;
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent-aqua);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0e1a;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(94, 231, 223, 0.4);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-item a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--dur-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-item.active a, .nav-item a:hover {
  color: var(--color-text);
  background: var(--glass-white-md);
  border: 1px solid var(--glass-border-subtle);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.glass-badge--aqua {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}
[data-theme="light"] .glass-badge--aqua {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #d97706;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: blink 1.2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.badge-count-pill {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9999px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* Favorite Modal Window Styles */
.fav-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: var(--space-md);
}
.fav-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.fav-modal-overlay {
  position: absolute;
  inset: 0;
}

.fav-modal-dialog {
  position: relative;
  z-index: 10;
  width: min(1060px, 94vw);
  max-height: 85vh;
  background: rgba(16, 20, 40, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  color: #ffffff;
  overflow: hidden;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.fav-modal-dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-aqua) 0%,
    var(--accent-violet) 50%,
    var(--accent-rose) 100%
  );
  z-index: 10;
  pointer-events: none;
}

.fav-modal.is-open .fav-modal-dialog {
  transform: translateY(0) scale(1);
}

[data-theme="light"] .fav-modal {
  background: rgba(15, 23, 42, 0.45);
}
[data-theme="light"] .fav-modal-dialog {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.fav-modal-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
[data-theme="light"] .fav-modal-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);
}

.fav-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fav-modal-body {
  padding: var(--space-xl);
  overflow-y: auto;
  flex: 1;
}

.fav-empty-state {
  text-align: center;
  padding: 40px var(--space-md);
  color: var(--color-text-subtle);
}
.fav-empty-state i {
  font-size: 2.8rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

.fav-modal-footer {
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .fav-modal-footer {
  border-top-color: rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.fav-count-info {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

.fav-remove-btn {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
}
.fav-remove-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Buttons */
.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--glass-white);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-liquid), box-shadow var(--dur-fast), background var(--dur-fast);
  position: relative;
}

.glass-btn:hover {
  transform: translateY(-2px);
  background: var(--glass-white-md);
}
.glass-btn:active {
  transform: scale(0.97);
}

.glass-btn--primary {
  background: #0284c7;
  border: 1px solid #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.35);
}
.glass-btn--primary:hover {
  background: #0369a1;
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.45);
}

.glass-btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   7. MAIN LAYOUT & STATS CARDS (index.html)
   -------------------------------------------------------------------------- */
main {
  max-width: 1320px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 10;
}

.hero-banner {
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--glass-white);
}

.hero-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  background: none;
  -webkit-text-fill-color: initial;
}
[data-theme="light"] .hero-banner__title {
  color: #0f172a;
  background: none;
  -webkit-text-fill-color: initial;
}

.hero-banner__sub {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 650px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(94, 231, 223, 0.15);
  border: 1px solid rgba(94, 231, 223, 0.3);
  color: var(--accent-aqua);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-card:nth-child(2) .stat-card__icon {
  background: rgba(180, 144, 245, 0.15);
  border-color: rgba(180, 144, 245, 0.3);
  color: var(--accent-violet);
}

.stat-card:nth-child(3) .stat-card__icon {
  background: rgba(247, 168, 196, 0.15);
  border-color: rgba(247, 168, 196, 0.3);
  color: var(--accent-rose);
}

.stat-card__val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-card__lbl {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   8. FILTER & CONTROLS PANEL
   -------------------------------------------------------------------------- */
.controls-panel {
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.controls-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.select-wrap {
  flex: 1;
  min-width: 220px;
}

.glass-select {
  width: 100%;
  padding: 12px 42px 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-subtle);
  background: var(--glass-white);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.6)' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}

[data-theme="light"] .glass-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(15,23,42,0.6)' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.glass-select:focus {
  border-color: rgba(94, 231, 223, 0.6);
  background: var(--glass-white-md);
  box-shadow: 0 0 0 3px rgba(94, 231, 223, 0.18), var(--shadow-glass);
}

.glass-select option {
  background: #1a1f35;
  color: #ffffff;
  padding: 8px;
}
[data-theme="light"] .glass-select option {
  background: #e2e8f0;
  color: #0f172a;
}

.glass-input-wrap {
  position: relative;
  flex: 2;
  min-width: 240px;
  display: flex;
  align-items: center;
}

.glass-input-icon {
  position: absolute;
  left: 16px;
  color: var(--color-text-muted);
  pointer-events: none;
  font-size: 0.95rem;
}

.glass-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-subtle);
  background: var(--glass-white);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}

.glass-input::placeholder {
  color: var(--color-text-subtle);
}

.glass-input:focus {
  border-color: rgba(94, 231, 223, 0.6);
  background: var(--glass-white-md);
  box-shadow: 0 0 0 3px rgba(94, 231, 223, 0.18), var(--shadow-glass);
}

/* --------------------------------------------------------------------------
   9. DATA TABLE
   -------------------------------------------------------------------------- */
.table-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-wrap: wrap;
  gap: var(--space-sm);
  color: #0f172a;
}

.table-toolbar__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
}

.table-toolbar__count {
  font-size: var(--text-xs);
  color: #475569;
  font-family: var(--font-body);
  font-weight: 500;
}

.table-container {
  overflow-x: auto;
  width: 100%;
  background: #ffffff;
}

.glass-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
  color: #1e293b;
}

.glass-table thead th {
  padding: var(--space-md);
  text-align: left;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color var(--dur-fast), background var(--dur-fast);
  background: #f1f5f9;
}

.glass-table thead th:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.glass-table thead th.is-sorted {
  color: #0284c7;
  background: #e0f2fe;
}

.sort-icon {
  margin-left: 6px;
  font-size: 0.75rem;
  opacity: 0.6;
}
.glass-table thead th.is-sorted .sort-icon {
  opacity: 1;
  color: #0284c7;
}

.glass-table tbody tr {
  transition: background var(--dur-fast);
  background: #ffffff;
  content-visibility: auto;
  contain-intrinsic-size: 0 45px;
}

.glass-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.glass-table tbody tr:hover {
  background: #e2e8f0;
}

.glass-table tbody td {
  padding: var(--space-md);
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  color: #1e293b;
  font-weight: 500;
}

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

.apt-name {
  font-weight: 700;
  font-size: var(--text-md);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}
.apt-name i {
  color: #0284c7;
}

.price-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  color: #059669;
  text-shadow: none;
}

.glass-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}

.glass-tag--blue {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0284c7;
  font-weight: 600;
}

.glass-tag--purple {
  background: #f3e8ff;
  border-color: #e9d5ff;
  color: #6d28d9;
  font-weight: 600;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px var(--space-lg);
  gap: var(--space-md);
  color: var(--color-text-muted);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--glass-border-subtle);
  border-top-color: var(--accent-aqua);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.empty-state {
  text-align: center;
  padding: 60px var(--space-lg);
  color: var(--color-text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  opacity: 0.4;
}

/* --------------------------------------------------------------------------
   10. PROXIMITY SIDEBAR & MENU STYLES
   -------------------------------------------------------------------------- */
.sidebar-trigger-zone {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 100vh;
  z-index: 997;
  cursor: pointer;
}

.sidebar-trigger-pill {
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  width: 6px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--accent-aqua);
  opacity: 0.5;
  transition: opacity var(--dur-fast), height var(--dur-fast), background var(--dur-fast);
  box-shadow: 0 0 12px var(--accent-aqua);
}
.sidebar-trigger-zone:hover .sidebar-trigger-pill {
  opacity: 1;
  height: 84px;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  z-index: 999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.68, 0, 1.2);
  display: flex;
  flex-direction: column;
  color: #ffffff;
  overflow-y: auto;
}

.sidebar-drawer.is-active {
  transform: translateX(0);
}

[data-theme="light"] .sidebar-drawer {
  background: #ffffff;
  border-right: 1px solid #cbd5e1;
  box-shadow: 12px 0 40px rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.sidebar-header {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .sidebar-header {
  border-bottom-color: #e2e8f0;
}

.sidebar-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--dur-fast);
}
.sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}
[data-theme="light"] .sidebar-close-btn {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
}
[data-theme="light"] .sidebar-close-btn:hover {
  background: #e2e8f0;
}

.sidebar-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  flex: 1;
}

.sidebar-group-title {
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-xs);
}
[data-theme="light"] .sidebar-group-title {
  color: #64748b;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--dur-fast);
}
[data-theme="light"] .sidebar-nav-item a {
  color: #334155;
}

.sidebar-nav-item a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}
[data-theme="light"] .sidebar-nav-item a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sidebar-nav-item.active a {
  color: #ffffff !important;
  background: #0284c7 !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.sidebar-nav-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(94, 231, 223, 0.2);
  color: var(--accent-aqua);
}
[data-theme="light"] .sidebar-badge {
  background: #e0f2fe;
  color: #0284c7;
}

.sidebar-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}
[data-theme="light"] .sidebar-footer {
  border-top-color: #e2e8f0;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
}

.sidebar-user-name {
  font-size: var(--text-sm);
  font-weight: 600;
}

.sidebar-user-role {
  font-size: var(--text-2xs);
  color: var(--color-text-subtle);
}
[data-theme="light"] .sidebar-user-role {
  color: #64748b;
}

/* --------------------------------------------------------------------------
   11. REGION ANALYSIS PAGE COMPONENT STYLES (region_analysis.html)
   -------------------------------------------------------------------------- */
.analysis-container {
  display: flex;
  height: calc(100vh - 70px);
  position: relative;
  overflow: hidden;
}

.analysis-sidebar {
  width: 380px;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  z-index: 10;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
[data-theme="light"] .analysis-sidebar {
  background: #ffffff;
  border-right-color: #cbd5e1;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px 0;
  gap: 4px;
}
[data-theme="light"] .sidebar-tabs {
  border-bottom-color: #e2e8f0;
}

.tab-btn {
  flex: 1;
  padding: 10px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
[data-theme="light"] .tab-btn {
  color: #64748b;
}

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

.sidebar-search-box {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .sidebar-search-box {
  border-bottom-color: #e2e8f0;
}

.search-input-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-inner input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-subtle);
  background: var(--glass-white);
  color: var(--color-text);
  font-size: 0.85rem;
  outline: none;
}
[data-theme="light"] .search-input-inner input {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.search-input-inner i {
  position: absolute;
  left: 12px;
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

.apt-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apt-item-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}
[data-theme="light"] .apt-item-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.apt-item-card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
  border-color: var(--accent-aqua);
}
[data-theme="light"] .apt-item-card:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}

.apt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.apt-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.apt-rank-tag {
  background: rgba(94, 231, 223, 0.18);
  color: var(--accent-aqua);
  font-size: 0.70rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.apt-card-addr {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  margin-bottom: 8px;
}

.apt-card-prices {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.apt-price-val {
  font-weight: 800;
  color: #059669;
}

/* Map container & Naver Map Controls */
.map-container {
  flex: 1;
  height: 100%;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

.naver-control-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}
.naver-control-panel * {
  pointer-events: auto;
}

.naver-btn-group {
  display: flex;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 4px;
  gap: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .naver-btn-group {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.naver-ctrl-btn {
  padding: 7px 13px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
[data-theme="light"] .naver-ctrl-btn {
  color: #475569;
}

.naver-ctrl-btn:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .naver-ctrl-btn:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

.naver-ctrl-btn.active {
  background: #0284c7;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.naver-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(94, 231, 223, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-aqua);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .naver-map-badge {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(2, 132, 199, 0.35);
  color: #0284c7;
}


/* Naver Map Marker Pin HTML */
.naver-map-pin {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}
.naver-map-pin:hover {
  transform: translate(-50%, -108%) scale(1.08);
  z-index: 9999 !important;
}

.naver-pin-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid #0284c7;
  border-radius: 12px;
  padding: 5px 10px;
  color: #ffffff;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
[data-theme="light"] .naver-pin-card {
  background: #ffffff;
  border-color: #0284c7;
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.25);
}

.naver-pin-rank {
  background: rgba(94, 231, 223, 0.2);
  color: #5ee7df;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}
[data-theme="light"] .naver-pin-rank {
  background: #e0f2fe;
  color: #0284c7;
}

.naver-pin-title {
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.naver-pin-price {
  font-size: 12px;
  font-weight: 800;
  color: #059669;
  margin-top: 1px;
}

.naver-pin-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #0284c7;
  margin-top: -1px;
}

/* Detail Drawer Panel */
.detail-drawer {
  position: fixed;
  top: 70px;
  right: -520px;
  width: 480px;
  height: calc(100vh - 70px);
  background: rgba(16, 20, 40, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 990;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.55);
}
.detail-drawer.is-open {
  right: 0;
}

[data-theme="light"] .detail-drawer {
  background: #ffffff;
  border-left-color: #cbd5e1;
  color: #0f172a;
}

.drawer-header {
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
[data-theme="light"] .drawer-header {
  border-bottom-color: #e2e8f0;
}

.drawer-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.drawer-addr {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

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

.metric-box {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .metric-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.metric-lbl {
  font-size: 0.72rem;
  color: var(--color-text-subtle);
}

.metric-val {
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 2px;
}

.chart-box {
  width: 100%;
  height: 200px;
}

.calc-box {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
[data-theme="light"] .calc-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.calc-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--glass-border-subtle);
  background: var(--glass-white);
  color: var(--color-text);
  font-size: 0.85rem;
}
[data-theme="light"] .calc-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   12. DRAWER & COMPONENT UTILITY CLASSES
   -------------------------------------------------------------------------- */
.header-left-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-fav-btn {
  font-size: 0.78rem;
  padding: 6px 12px;
}

.text-deal {
  color: #059669 !important;
}
.text-jeonse {
  color: #0284c7 !important;
}
.text-gap {
  color: #6d28d9 !important;
}
.text-warning-star {
  color: #f59e0b !important;
}
.text-center {
  text-align: center !important;
}
.text-aqua {
  color: var(--accent-aqua) !important;
}

.drawer-section-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-specs-box {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  font-size: 0.8rem;
  line-height: 1.6;
}
[data-theme="light"] .drawer-specs-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.drawer-school-info {
  margin-top: 6px;
  color: var(--accent-aqua);
  font-weight: 700;
}

.drawer-listings-list,
.drawer-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-listing-item {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  font-size: 0.8rem;
}
[data-theme="light"] .drawer-listing-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.drawer-listing-top {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.drawer-listing-sub {
  color: var(--color-text-subtle);
  font-size: 0.75rem;
  margin-top: 2px;
}

.drawer-calc-row {
  display: flex;
  gap: 8px;
}

.drawer-calc-col {
  flex: 1;
}

.drawer-calc-label {
  font-size: 0.75rem;
  margin-bottom: 4px;
  display: block;
}

.drawer-calc-result {
  font-size: 0.82rem;
  padding: 10px;
  background: rgba(2, 132, 199, 0.1);
  border-radius: 6px;
  color: #0284c7;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
[data-theme="light"] .drawer-calc-result {
  background: #e0f2fe;
}

.drawer-review-item {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  font-size: 0.8rem;
}
[data-theme="light"] .drawer-review-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.drawer-review-header {
  font-weight: 700;
  color: #f59e0b;
}

.drawer-review-date {
  font-size: 0.7rem;
  color: var(--color-text-subtle);
  margin-left: 6px;
}

.drawer-review-body {
  margin-top: 4px;
  color: var(--color-text-muted);
}

.domain-guide-box {
  font-size: 0.8rem;
  background: rgba(56, 189, 248, 0.08);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 14px;
}

.domain-guide-title {
  font-weight: 700;
  color: var(--accent-aqua);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.domain-guide-desc {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.domain-code-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .domain-code-box {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.domain-code-text {
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.82rem;
  word-break: break-all;
}
[data-theme="light"] .domain-code-text {
  color: #0284c7;
}

.domain-copy-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  margin-left: auto;
  white-space: nowrap;
  cursor: pointer;
}

.modal-notice-box {
  font-size: 0.78rem;
  color: var(--color-text-subtle);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--glass-border-subtle);
}
[data-theme="light"] .modal-notice-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.modal-form-group {
  margin-bottom: 16px;
}

.modal-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--accent-aqua);
}

.modal-subtext {
  margin-bottom: 12px;
  color: var(--color-text-muted);
}

.modal-dialog--key {
  width: min(540px, 92vw);
}

.modal-body--key {
  padding: 24px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.empty-state-text {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
}

.select-wrap--compact {
  max-width: 180px;
}

.is-hidden {
  display: none !important;
}

.apt-item-jeonse {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
}



