/* ============================================================
   imargeçermi.com — MVP Redesign
   Theme: Liquid Glass, gradient tones, glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Dark mode (default) — deep gradient tones */
  --bg-primary: #0a0c0a;
  --bg-secondary: #111411;
  --bg-card: rgba(255,255,255,0.05);
  --bg-card-hover: rgba(255,255,255,0.07);
  --bg-input: rgba(255,255,255,0.06);
  --border-color: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.05);
  --text-primary: #f4f4fc;
  --text-secondary: #c8c8e0;
  --text-muted: #a0a0be;
  --accent: #ffffff;
  --accent-dim: rgba(255,255,255,0.08);
  --accent-glow: rgba(255,255,255,0.03);
  --primary-green: #4a7c59;
  --primary-brown: #8b6b4a;
  --primary-green-glow: rgba(74,124,89,0.3);
  --primary-brown-glow: rgba(139,107,74,0.3);
  --success: #4a7c59;
  --danger: #c0392b;
  --warning: #d4a03c;
  --info: #5b8a72;
  --glass-bg: rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.08);
  --glass-blur: blur(20px);
  --gradient-primary: linear-gradient(135deg, rgba(20,20,30,0.9) 0%, rgba(6,6,8,0.95) 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --sidebar-width: 260px;
  --navbar-height: 80px;
}

[data-theme="light"] {
  --bg-primary: #f2f4f0;
  --bg-secondary: #e8ece6;
  --bg-card: rgba(255,255,255,0.6);
  --bg-card-hover: rgba(255,255,255,0.8);
  --bg-input: rgba(255,255,255,0.7);
  --border-color: rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.04);
  --text-primary: #0a0a0f;
  --text-secondary: #4a4a5a;
  --text-muted: #8888a0;
  --accent: #0a0a0f;
  --accent-dim: rgba(0,0,0,0.04);
  --accent-glow: rgba(0,0,0,0.02);
  --glass-bg: rgba(255,255,255,0.5);
  --glass-border: rgba(255,255,255,0.6);
  --glass-blur: blur(24px);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.4) 100%);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ---- Global ---- */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

a { color: var(--text-primary); text-decoration: none; }
a:hover { color: var(--text-secondary); }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.35); }
[data-theme="light"] input::placeholder, [data-theme="light"] textarea::placeholder { color: rgba(0,0,0,0.35); }

/* Global select/option dark theme fix */
select, select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

select.form-select, select.form-input, .form-select-styled {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
}

select.form-select option, select.form-input option {
  background: #1a1a24;
  color: #f0f0f5;
}

[data-theme="light"] select option,
[data-theme="light"] select.form-select option,
[data-theme="light"] select.form-input option {
  background: #fff;
  color: #111;
}

.hidden { display: none !important; }

/* Cross-dissolve view transitions — handled via inline styles in landing.js */

/* Page load fade */
body {
  animation: pageLoad 0.4s ease;
}

@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Welcome Page (Landing) ---- */
.landing-welcome {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.welcome-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #0a0f0a 0%, #1a1a0e 25%, #0d1a12 50%, #0f0d08 100%);
  z-index: 0;
}

[data-theme="light"] .welcome-bg {
  background: linear-gradient(135deg, #eef2e8 0%, #f5f0e6 25%, #e8f0ea 50%, #f2ede4 100%);
}

/* Animated wave blobs */
.wave {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: waveFloat 8s ease-in-out infinite;
}

[data-theme="light"] .wave {
  opacity: 0.5;
}

.wave1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #3d6b4f 0%, transparent 70%);
  top: -10%; left: -5%;
  animation-delay: 0s;
  animation-duration: 10s;
}

[data-theme="light"] .wave1 {
  background: radial-gradient(circle, #6aad7a 0%, transparent 70%);
}

.wave2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #8b6b4a 0%, transparent 70%);
  bottom: -10%; right: -5%;
  animation-delay: -3s;
  animation-duration: 12s;
}

[data-theme="light"] .wave2 {
  background: radial-gradient(circle, #c4a67a 0%, transparent 70%);
}

.wave3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #5a8a6a 0%, transparent 70%);
  top: 40%; left: 50%;
  transform: translateX(-50%);
  animation-delay: -5s;
  animation-duration: 14s;
}

[data-theme="light"] .wave3 {
  background: radial-gradient(circle, #7ab88a 0%, transparent 70%);
}

#cityPlanBg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background: url('../img/city-plan-bg.png') center center / cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: screen;
}

[data-theme="light"] #cityPlanBg {
  opacity: 0.22;
  mix-blend-mode: multiply;
}

#rippleCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

@keyframes waveFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.03); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Welcome center content */
.welcome-center {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
  padding: 0 2rem;
}

.welcome-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 22px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

[data-theme="light"] .welcome-badge {
  color: rgba(0,0,0,0.7);
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
  text-shadow: none;
}

/* Floating brand name — large centered logo+text */
.welcome-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 1.75rem;
}

.welcome-brand-logo {
  height: 52px;
  width: auto;
  display: none;
}

.welcome-brand-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.welcome-brand-name span {
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

[data-theme="light"] .welcome-brand-name { color: #111; }
[data-theme="light"] .welcome-brand-name span { color: rgba(0,0,0,0.35); }

.welcome-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 1.25rem;
}

[data-theme="light"] .welcome-title {
  color: #111;
}

@media (max-width: 767.98px) {
  .welcome-title { font-size: 2rem; }
}

.welcome-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0 0 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="light"] .welcome-desc {
  color: rgba(0,0,0,0.45);
}

/* Two big CTA buttons */
.welcome-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

@media (max-width: 575.98px) {
  .welcome-buttons { flex-direction: column; align-items: center; }
}

.welcome-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
  min-width: 240px;
}

.welcome-btn i {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.welcome-btn strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.welcome-btn span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Pastel welcome buttons — dark mode */
.welcome-btn-pastel.welcome-btn-primary {
  background: linear-gradient(135deg, #7fa88d 0%, #95bea2 50%, #6d9479 100%);
  backdrop-filter: blur(24px);
  color: #1a2e1a;
  border-color: rgba(127,168,141,0.4);
  box-shadow: 0 8px 32px rgba(127,168,141,0.3), 0 2px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

.welcome-btn-pastel.welcome-btn-primary:hover {
  background: linear-gradient(135deg, #8fb89d 0%, #a5ceb2 50%, #7da489 100%);
  border-color: rgba(127,168,141,0.6);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 60px rgba(127,168,141,0.4), 0 6px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.25);
}

.welcome-btn-primary {
  background: linear-gradient(135deg, #4a7c59 0%, #5d9a6e 50%, #3d6b4a 100%);
  backdrop-filter: blur(24px);
  color: #fff;
  border-color: rgba(90,180,110,0.5);
  box-shadow: 0 8px 32px rgba(74,124,89,0.45), 0 2px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
}

.welcome-btn-primary:hover {
  background: linear-gradient(135deg, #5a8c69 0%, #6daa7e 50%, #4d7b5a 100%);
  border-color: rgba(90,180,110,0.7);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 60px rgba(74,124,89,0.55), 0 6px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}

[data-theme="light"] .welcome-btn-pastel.welcome-btn-primary {
  background: linear-gradient(135deg, #a0c4ab 0%, #b5d4be 50%, #8db69a 100%);
  border-color: rgba(127,168,141,0.35);
  color: #1a2e1a;
  box-shadow: 0 8px 32px rgba(127,168,141,0.25), 0 2px 12px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.3);
}

[data-theme="light"] .welcome-btn-pastel.welcome-btn-primary:hover {
  background: linear-gradient(135deg, #b0d4bb 0%, #c5e4ce 50%, #9dc6aa 100%);
  border-color: rgba(127,168,141,0.5);
  box-shadow: 0 20px 60px rgba(127,168,141,0.3), 0 6px 20px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.35);
}

[data-theme="light"] .welcome-btn-primary {
  background: linear-gradient(135deg, #4a7c59 0%, #5d9a6e 50%, #3d6b4a 100%);
  border-color: rgba(74,124,89,0.4);
  color: #fff;
  box-shadow: 0 8px 32px rgba(74,124,89,0.35), 0 2px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.15);
}

[data-theme="light"] .welcome-btn-primary:hover {
  background: linear-gradient(135deg, #5a8c69 0%, #6daa7e 50%, #4d7b5a 100%);
  border-color: rgba(74,124,89,0.6);
  box-shadow: 0 20px 60px rgba(74,124,89,0.4), 0 6px 20px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Pastel welcome buttons — secondary (brown) */
.welcome-btn-pastel.welcome-btn-secondary {
  background: linear-gradient(135deg, #b8a088 0%, #c4ad96 50%, #a8927a 100%);
  backdrop-filter: blur(24px);
  color: #1a1410;
  border-color: rgba(184,160,136,0.4);
  box-shadow: 0 8px 32px rgba(184,160,136,0.3), 0 2px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

.welcome-btn-pastel.welcome-btn-secondary:hover {
  background: linear-gradient(135deg, #c4ad96 0%, #d0baa4 50%, #b49e88 100%);
  border-color: rgba(184,160,136,0.6);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 60px rgba(184,160,136,0.4), 0 6px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.25);
}

.welcome-btn-secondary {
  background: linear-gradient(135deg, #8b6b4a 0%, #a68460 50%, #7a5a3a 100%);
  backdrop-filter: blur(24px);
  color: #fff;
  border-color: rgba(180,140,100,0.5);
  box-shadow: 0 8px 32px rgba(139,107,74,0.4), 0 2px 12px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.12);
}

.welcome-btn-secondary:hover {
  background: linear-gradient(135deg, #9b7b5a 0%, #b69470 50%, #8a6a4a 100%);
  border-color: rgba(180,140,100,0.7);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 60px rgba(139,107,74,0.5), 0 6px 20px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.15);
}

[data-theme="light"] .welcome-btn-pastel.welcome-btn-secondary {
  background: linear-gradient(135deg, #c8b8a4 0%, #d4c4b2 50%, #bca894 100%);
  border-color: rgba(184,160,136,0.3);
  color: #1a1410;
  box-shadow: 0 8px 32px rgba(184,160,136,0.2), 0 2px 12px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.3);
}

[data-theme="light"] .welcome-btn-pastel.welcome-btn-secondary:hover {
  background: linear-gradient(135deg, #d4c4b2 0%, #e0d0be 50%, #c8b4a0 100%);
  border-color: rgba(184,160,136,0.5);
  box-shadow: 0 20px 60px rgba(184,160,136,0.3), 0 6px 20px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.35);
}

[data-theme="light"] .welcome-btn-secondary {
  background: linear-gradient(135deg, #8b6b4a 0%, #a68460 50%, #7a5a3a 100%);
  border-color: rgba(139,107,74,0.35);
  color: #fff;
  box-shadow: 0 8px 32px rgba(139,107,74,0.3), 0 2px 12px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.12);
}

[data-theme="light"] .welcome-btn-secondary:hover {
  background: linear-gradient(135deg, #9b7b5a 0%, #b69470 50%, #8a6a4a 100%);
  border-color: rgba(139,107,74,0.5);
  box-shadow: 0 20px 60px rgba(139,107,74,0.35), 0 6px 20px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Stats row */
.welcome-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

.welcome-stats strong {
  color: rgba(255,255,255,0.5);
}

[data-theme="light"] .welcome-stats {
  color: rgba(0,0,0,0.45);
}

[data-theme="light"] .welcome-stats strong {
  color: rgba(0,0,0,0.7);
}

/* Top nav links */
.nav-link-top {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
  padding: 6px 0;
}

.nav-link-top:hover {
  color: #fff;
}

[data-theme="light"] .nav-link-top {
  color: rgba(0,0,0,0.5);
}

[data-theme="light"] .nav-link-top:hover {
  color: #111;
}

/* Investment sidebar */
.investment-sidebar {
  position: fixed;
  top: calc(var(--navbar-height) + 20px);
  left: 20px;
  width: 360px;
  height: auto;
  max-height: calc(100% - var(--navbar-height) - 40px);
  z-index: 20;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(10,10,14,0.6) 0%, rgba(6,6,10,0.7) 100%);
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

[data-theme="light"] .investment-sidebar {
  background: linear-gradient(180deg, rgba(245,248,243,0.78) 0%, rgba(240,244,238,0.85) 100%);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

@media (max-width: 767.98px) {
  .investment-sidebar { width: 100%; }
}

/* ---- Globe/Parsel Page ---- */
.landing-page {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(135deg, #0a0f0a 0%, #1a1a0e 25%, #0d1a12 50%, #0f0d08 100%);
}

[data-theme="light"] .landing-page {
  background: linear-gradient(135deg, #eef2e8 0%, #f5f0e6 25%, #e8f0ea 50%, #f2ede4 100%);
}

.landing-navbar {
  position: fixed;
  top: 12px;
  left: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  border-radius: 16px;
  /* Dark mode — frosted dark glass (more transparent) */
  background: rgba(12,12,18,0.28);
  backdrop-filter: blur(40px) saturate(1.5);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Light mode — frosted glass */
[data-theme="light"] .landing-navbar {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(40px) saturate(2);
  -webkit-backdrop-filter: blur(40px) saturate(2);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

[data-theme="light"] .landing-navbar .logo-text {
  color: #222;
}

[data-theme="light"] .landing-navbar .logo-text span {
  color: rgba(0,0,0,0.4);
}

.landing-navbar .logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logo ikon + wordmark */
.logo-icon-img { transition: opacity 0.3s, transform 0.3s; }
.logo-icon-light { display: none !important; }
.logo-icon-dark { display: inline-block !important; }
[data-theme="light"] .logo-icon-light { display: inline-block !important; }
[data-theme="light"] .logo-icon-dark { display: none !important; }

.logo-wordmark {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.5px;
  color: #e8e6dd;
  transition: color 0.3s, opacity 0.3s;
}
[data-theme="light"] .logo-wordmark {
  color: #1d1d1b;
}
.logo-dot {
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.3px;
  color: #5f5e5a;
  margin-left: 1px;
  position: relative;
  top: 1px;
}
[data-theme="light"] .logo-dot {
  color: #a8a6a0;
}

[data-theme="light"] .logo-icon {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: #111;
}

.landing-navbar .logo img {
  height: 42px;
  width: auto;
}

.landing-navbar .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.landing-navbar .logo-text span {
  font-weight: 400;
  opacity: 0.5;
}

.landing-navbar .nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 7px 18px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}

[data-theme="light"] .btn-ghost {
  background: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.6);
  color: #222;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.05);
}

.btn-white {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,240,245,0.9) 100%);
  color: #0a0a0f;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 24px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: linear-gradient(135deg, #fff 0%, #f0f0f5 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-dark {
  background: linear-gradient(135deg, #4a7c59 0%, #5d9a6e 100%);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-dark:hover {
  background: linear-gradient(135deg, #5a8c69 0%, #6daa7e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74,124,89,0.35);
}

.btn-outline {
  background: rgba(74,124,89,0.06);
  border: 1px solid rgba(74,124,89,0.15);
  color: var(--text-primary);
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: rgba(74,124,89,0.3);
  background: rgba(74,124,89,0.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74,124,89,0.15);
}

.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.08);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0,0,0,0.15);
  color: #111;
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0,0,0,0.06);
}

/* Globe container — centered in the right portion of screen (next to search panel) */
#globeContainer {
  position: fixed;
  top: 80px;
  left: 420px;
  width: calc(100% - 420px);
  height: calc(100% - 80px);
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  #globeContainer {
    padding-left: 0;
  }
}

/* Landing content overlay — pointer-events:none lets globe receive clicks through empty areas */
.landing-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  pointer-events: none;
}

.landing-left {
  position: fixed;
  top: calc(12px + 60px + 8px);
  left: 16px;
  bottom: 16px;
  width: 380px;
  padding: 1.25rem 1.75rem;
  pointer-events: auto;
  z-index: 15;
  overflow-y: auto;
  /* Liquid glass panel — like investment sidebar */
  background: rgba(12,12,18,0.5);
  backdrop-filter: blur(40px) saturate(1.5);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}

[data-theme="light"] .landing-left {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(40px) saturate(2);
  -webkit-backdrop-filter: blur(40px) saturate(2);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}

.landing-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  color: #fff;
}

[data-theme="light"] .landing-hero h1 {
  color: #111;
}

.landing-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0 0 2rem;
}

[data-theme="light"] .landing-hero p {
  color: rgba(0,0,0,0.5);
}

/* Search Panel on Landing */
.search-panel {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  box-shadow: none;
}

[data-theme="light"] .search-panel {
  background: none;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
}

.search-panel .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.4rem;
}

[data-theme="light"] .search-panel .form-label {
  color: #333;
}

.search-panel .form-control,
.search-panel .form-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}

[data-theme="light"] .search-panel .form-control,
[data-theme="light"] .search-panel .form-select {
  background: rgba(74,124,89,0.06);
  border: 1px solid rgba(74,124,89,0.25);
  color: #1a2e1a;
}

.search-panel .form-control:focus,
.search-panel .form-select:focus {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
  outline: none;
  color: #fff;
}

[data-theme="light"] .search-panel .form-control:focus,
[data-theme="light"] .search-panel .form-select:focus {
  background: rgba(255,255,255,0.9);
  border-color: rgba(74,124,89,0.4);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.08);
  color: #1a2e1a;
}

.search-panel .form-control::placeholder {
  color: rgba(255,255,255,0.25);
}

[data-theme="light"] .search-panel .form-control::placeholder {
  color: rgba(74,124,89,0.4);
}

.search-panel .form-select option {
  background: #1a1a1a;
  color: #fff;
}

[data-theme="light"] .search-panel .form-select option {
  background: #fff;
  color: #111;
}

.search-panel .btn-analyze {
  width: 100%;
  background: linear-gradient(135deg, #b8a088 0%, #c4ad96 50%, #a8927a 100%);
  color: #1a1410;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(184,160,136,0.2);
}

.search-panel .btn-analyze:hover {
  background: linear-gradient(135deg, #c4ad96 0%, #d0baa4 50%, #b8a088 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(184,160,136,0.3);
}

[data-theme="light"] .search-panel .btn-analyze {
  background: linear-gradient(135deg, #c4ad96 0%, #d4bfa8 50%, #b8a088 100%);
  color: #2a1f15;
  box-shadow: 0 4px 16px rgba(184,160,136,0.2);
}

[data-theme="light"] .search-panel .btn-analyze:hover {
  background: linear-gradient(135deg, #b8a088 0%, #c4ad96 50%, #a8927a 100%);
  box-shadow: 0 6px 24px rgba(184,160,136,0.3);
}

.search-panel .btn-analyze:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.search-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

[data-theme="light"] .search-divider {
  color: rgba(74,124,89,0.4);
}

.search-divider::before,
.search-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

[data-theme="light"] .search-divider::before,
[data-theme="light"] .search-divider::after {
  background: rgba(74,124,89,0.12);
}

/* ---- App Layout (After login/analysis) ---- */

/* App pages — earthy toned background with subtle static glows */
body.app-page {
  background: #0e100e;
  background-image:
    radial-gradient(ellipse 600px 400px at 85% 15%, rgba(74,124,89,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 10% 80%, rgba(139,107,74,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(74,124,89,0.05) 0%, transparent 70%);
  background-attachment: fixed;
}

[data-theme="light"] body.app-page {
  background: #f2f4f0;
  background-image:
    radial-gradient(ellipse 600px 400px at 85% 15%, rgba(74,124,89,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 10% 80%, rgba(139,107,74,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(74,124,89,0.04) 0%, transparent 70%);
  background-attachment: fixed;
}

/* Wave container hidden on app pages — kept for landing page only */
.app-waves { display: none; }

.app-navbar {
  position: fixed;
  top: 12px;
  left: 20px;
  right: 20px;
  height: 56px;
  border-radius: 16px;
  background: rgba(12,12,18,0.28);
  backdrop-filter: blur(40px) saturate(1.5);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1030;
  transition: background 0.3s;
}

[data-theme="light"] .app-navbar {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 32px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.7);
}

.app-navbar .logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-navbar .logo-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.app-navbar .logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-app {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.theme-toggle-app:hover {
  background: var(--accent-dim);
  color: var(--text-primary);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--accent-dim);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Sidebar — liquid glass */
.sidebar {
  position: fixed;
  top: calc(var(--navbar-height) + 8px);
  left: 14px;
  bottom: 14px;
  width: var(--sidebar-width);
  background: rgba(14,16,20,0.5);
  backdrop-filter: blur(40px) saturate(1.5);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow-y: auto;
  z-index: 1020;
  padding: 1rem 0;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
}

[data-theme="light"] .sidebar {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}

.cancel-sub-card {
  backdrop-filter: blur(40px) saturate(1.5);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  background: rgba(14,16,20,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  color: var(--text-primary);
}

[data-theme="light"] .cancel-sub-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
}

.sidebar .nav-section {
  padding: 0.75rem 1.25rem 0.4rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar .nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
  border-left-color: rgba(255,255,255,0.3);
}

.sidebar .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
  border-left-color: var(--primary-green);
  font-weight: 600;
}

.sidebar .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  opacity: 0.7;
}

.sidebar .nav-link.active i { opacity: 1; }

/* Main content area */
.main-content {
  position: relative;
  z-index: 1;
  margin-left: var(--sidebar-width);
  margin-top: var(--navbar-height);
  padding: 2rem 2.5rem;
  min-height: calc(100vh - var(--navbar-height));
  transition: margin 0.3s;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
  letter-spacing: -0.03em;
  color: #f5f5ff;
}

[data-theme="light"] .page-title { color: #111; }

.page-subtitle {
  font-size: 0.9rem;
  color: #c0c0d8;
  margin: 0 0 2rem;
}

[data-theme="light"] .page-subtitle { color: #666; }

/* Cards — glassmorphism */
.card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.04);
}

[data-theme="light"] .card {
  background: linear-gradient(135deg, rgba(120,190,140,0.06) 0%, rgba(200,175,140,0.04) 50%, rgba(255,255,255,0.6) 100%);
  border-color: rgba(74,124,89,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.7);
}

.card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

[data-theme="light"] .card:hover {
  border-color: rgba(74,124,89,0.18);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}

.card-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 600;
  font-size: 0.9rem;
  color: #f0f0f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

[data-theme="light"] .card-head {
  border-bottom-color: rgba(74,124,89,0.06);
  color: #222;
}

[data-theme="light"] .tkgm-detail-label { color: #555; }

.card-body {
  padding: 1.25rem;
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.25s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
}

[data-theme="light"] .stat-item {
  background: linear-gradient(135deg, rgba(120,190,140,0.06) 0%, rgba(200,175,140,0.04) 100%);
  border-color: rgba(74,124,89,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.6);
}

.stat-item:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}

[data-theme="light"] .stat-item:hover {
  border-color: rgba(74,124,89,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8);
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

.stat-change {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* Score bars */
.score-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.score-row .score-label {
  width: 180px;
  font-size: 0.85rem;
  font-weight: 500;
  flex-shrink: 0;
  color: rgba(255,255,255,0.85);
}

[data-theme="light"] .score-row .score-label {
  color: rgba(0,0,0,0.75);
}

.score-row .score-bar {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.score-row .score-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.score-row .score-val {
  width: 50px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  color: rgba(255,255,255,0.9);
}

[data-theme="light"] .score-row .score-val {
  color: rgba(0,0,0,0.8);
}

.fill-planning { background: linear-gradient(90deg, #4CAF50, #8BC34A); }
.fill-risk { background: linear-gradient(90deg, #f44336, #ff5722); }
.fill-commercial { background: linear-gradient(90deg, #2196F3, #03A9F4); }
.fill-imar { background: linear-gradient(90deg, #00c853, #69f0ae); }
.fill-priority { background: linear-gradient(90deg, #FF9800, #FFC107); }

/* Parcel result card */
.parcel-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.parcel-info-item {
  padding: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
}

[data-theme="light"] .parcel-info-item {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.06);
}

.parcel-info-item .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.25rem;
}

[data-theme="light"] .parcel-info-item .label {
  color: rgba(0,0,0,0.45);
}

.parcel-info-item .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8e8e8;
}

[data-theme="light"] .parcel-info-item .value {
  color: #222;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b0b0c8;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .data-table th { color: #666; }

.data-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-primary);
}

.data-table tbody tr {
  transition: background 0.1s;
}

.data-table tbody tr:hover {
  background: var(--accent-dim);
}

/* Badge system */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-success { background: rgba(0,200,83,0.15); color: var(--success); }
.badge-danger { background: rgba(255,23,68,0.15); color: var(--danger); }
.badge-warning { background: rgba(255,171,0,0.15); color: var(--warning); }
.badge-info { background: rgba(33,150,243,0.15); color: var(--info); }
.badge-neutral { background: var(--accent-dim); color: var(--text-secondary); }
.badge-white { background: rgba(255,255,255,0.15); color: #fff; }

/* Color swatches */
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}

.color-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
}

.color-item .zone-code {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-primary);
}

.color-item .zone-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Forms in app */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select-styled {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select-styled {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
}

.form-input:focus,
.form-select-styled:focus {
  border-color: rgba(255,255,255,0.25);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select-styled:focus {
  border-color: rgba(74,124,89,0.3);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.08);
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-box {
  text-align: center;
  color: #fff;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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

/* Toast */
.toast-container {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast-item {
  min-width: 300px;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.toast-item.success { background: #1b5e20; }
.toast-item.error { background: #b71c1c; }
.toast-item.warning { background: #e65100; }
.toast-item.info { background: #1a1a1a; border: 1px solid #333; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal override */
.modal-content {
  background: linear-gradient(135deg, rgba(15,20,15,0.95) 0%, rgba(10,12,8,0.98) 100%);
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  border: 1px solid rgba(74,124,89,0.15);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

[data-theme="light"] .modal-content {
  background: linear-gradient(135deg, rgba(248,252,248,0.95) 0%, rgba(255,255,255,0.98) 100%);
  border-color: rgba(74,124,89,0.1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.08);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}

.modal-header .modal-title {
  color: var(--text-primary);
}

.modal-body { padding: 1.25rem; }

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
}

/* Analysis Result Section */
.result-section {
  animation: fadeUp 0.4s ease;
}

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

.imar-score-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

[data-theme="light"] .imar-score-card {
  background: linear-gradient(135deg, rgba(120,190,140,0.08) 0%, rgba(200,175,140,0.05) 50%, rgba(255,255,255,0.6) 100%);
  border-color: rgba(74,124,89,0.1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.7);
}

.imar-score-value {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.imar-score-label {
  font-size: 0.85rem;
  color: #9898a8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

[data-theme="light"] .imar-score-label {
  color: #666;
}

.imar-score-desc {
  font-size: 0.9rem;
  color: #b0b0c0;
  margin-top: 0.75rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="light"] .imar-score-desc {
  color: #555;
}

/* Investment signal */
.investment-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.25rem;
}

[data-theme="light"] .investment-card {
  background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
  border-color: var(--border-color);
}

/* Login Modal */
.login-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

[data-theme="light"] .login-overlay {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
}

.login-card {
  background: linear-gradient(135deg, rgba(15,20,15,0.92) 0%, rgba(10,12,8,0.96) 100%);
  backdrop-filter: blur(30px) saturate(1.3);
  border: 1px solid rgba(74,124,89,0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), inset 0 1px 0 rgba(74,124,89,0.08);
}

[data-theme="light"] .login-card {
  background: rgba(255,255,255,0.95);
  border-color: rgba(74,124,89,0.12);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.login-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

[data-theme="light"] .login-card h3 { color: #111; }

.auth-toggle-text {
  color: rgba(255,255,255,0.4);
}
.auth-toggle-link {
  color: #fff;
  text-decoration: underline;
}
[data-theme="light"] .auth-toggle-text {
  color: rgba(0,0,0,0.45);
}
[data-theme="light"] .auth-toggle-link {
  color: #222;
}

.login-card p {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
}

[data-theme="light"] .login-card p { color: rgba(0,0,0,0.5); }

.login-card .form-control {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
}

[data-theme="light"] .login-card .form-control {
  background: #f5f5f5;
  border-color: rgba(0,0,0,0.12);
  color: #111;
}

.login-card .form-control:focus {
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

[data-theme="light"] .login-card .form-control:focus {
  border-color: rgba(0,0,0,0.3);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.login-card .form-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-weight: 500;
}

[data-theme="light"] .login-card .form-label { color: rgba(0,0,0,0.5); }

/* Responsive */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .landing-left { width: 100%; min-height: auto; padding: 2rem; }
}

@media (max-width: 575.98px) {
  .landing-left { padding: 1.5rem; }
  .landing-hero h1 { font-size: 1.6rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Autocomplete dropdown */
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.autocomplete-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  transition: background 0.1s;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Sidebar toggle mobile */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 991.98px) {
  .sidebar-toggle { display: block; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Parcel Detail TKGM Style */
.tkgm-detail-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.tkgm-detail-header {
  padding: 1rem 1.25rem;
  background: var(--accent-dim);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.tkgm-detail-row {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.tkgm-detail-row:last-child { border-bottom: none; }

.tkgm-detail-label {
  width: 160px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #c0c0d8;
  background: var(--accent-dim);
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
}

.tkgm-detail-value {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Premium / PRO button — earthy green gradient */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2e1a;
  background: linear-gradient(135deg, #8cbf9a 0%, #a3d1af 50%, #78b088 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(140,191,154,0.3);
  letter-spacing: 0.01em;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(140,191,154,0.45);
  background: linear-gradient(135deg, #9ccfaa 0%, #b3e1bf 50%, #88c098 100%);
}

.btn-premium:active {
  transform: translateY(0);
}

.premium-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0,0,0,0.2);
  color: #fff;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 2px;
}

[data-theme="light"] .btn-premium {
  color: #1a2e1a;
  background: linear-gradient(135deg, #a3d1af 0%, #b8dfc3 50%, #90c49e 100%);
  box-shadow: 0 4px 20px rgba(140,191,154,0.2);
}

[data-theme="light"] .btn-premium:hover {
  background: linear-gradient(135deg, #b3e1bf 0%, #c8efd3 50%, #a0d4ae 100%);
}

/* İncelemeye Gönder button — pastel brown */
.btn-review-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1410;
  background: linear-gradient(135deg, #c8b49e 0%, #d4c2ae 50%, #bca690 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(200,180,158,0.3);
  letter-spacing: 0.01em;
}
.btn-review-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,180,158,0.45);
  background: linear-gradient(135deg, #d4c2ae 0%, #e0ceba 50%, #c8b09c 100%);
}
.btn-review-send:active { transform: translateY(0); }
.btn-review-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ─── Detail Popup / PDF Viewer ─── */
.detail-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.detail-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}
.detail-popup-container {
  width: 90%;
  max-width: 720px;
  max-height: 90vh;
  background: rgba(14,14,20,0.65);
  backdrop-filter: blur(40px) saturate(1.5);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.detail-popup-overlay.active .detail-popup-container {
  transform: scale(1);
}
.detail-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}
.detail-popup-close {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.detail-popup-close:hover { background: rgba(255,255,255,0.15); }
.detail-popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.detail-report-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.detail-section {
  margin-bottom: 1.25rem;
}
.detail-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 0.75rem;
}
.detail-info-grid {
  display: grid;
  gap: 0.5rem;
}
.detail-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  font-size: 0.85rem;
}
.detail-info-row span { color: rgba(255,255,255,0.5); }
.detail-info-row strong { color: #e0e0e0; }
.detail-score-grid { display: grid; gap: 0.75rem; }
.detail-score-item { display: flex; align-items: center; gap: 0.75rem; }
.detail-score-label { font-size: 0.8rem; color: rgba(255,255,255,0.85); min-width: 140px; }
.detail-score-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.detail-score-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.detail-score-fill.fill-planning { background: linear-gradient(90deg, #4a7c59, #5d9a6e); }
.detail-score-fill.fill-risk { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.detail-score-fill.fill-commercial { background: linear-gradient(90deg, #8b6b4a, #a68460); }
.detail-score-fill.fill-imar { background: linear-gradient(90deg, #2980b9, #3498db); }
.detail-score-val { font-size: 0.8rem; font-weight: 600; color: #e0e0e0; min-width: 50px; text-align: right; }
.detail-popup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

[data-theme="light"] .detail-popup-container {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(40px) saturate(2);
  -webkit-backdrop-filter: blur(40px) saturate(2);
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 24px 80px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
}
[data-theme="light"] .detail-popup-header {
  background: rgba(0,0,0,0.02);
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .detail-popup-header div[style*="font-weight:700"] { color: #111 !important; }
[data-theme="light"] .detail-popup-header div[style*="font-size:0.7rem"] { color: rgba(0,0,0,0.5) !important; }
[data-theme="light"] .detail-popup-close {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: #333;
}
[data-theme="light"] .detail-report-title { color: #222; border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .detail-section-title { color: #555; }
[data-theme="light"] .detail-info-row { background: rgba(0,0,0,0.03); }
[data-theme="light"] .detail-info-row span { color: #777; }
[data-theme="light"] .detail-info-row strong { color: #222; }
[data-theme="light"] .detail-score-label { color: #666; }
[data-theme="light"] .detail-score-bar { background: rgba(0,0,0,0.06); }
[data-theme="light"] .detail-score-val { color: #333; }
[data-theme="light"] .detail-popup-footer {
  border-top-color: rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
}

/* CTA button — earthy brown-green */
.btn-analyze-imar {
  background: linear-gradient(135deg, #8cbf9a 0%, #a3d1af 50%, #78b088 100%);
  color: #1a2e1a;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(140,191,154,0.3);
  letter-spacing: -0.01em;
}

.btn-analyze-imar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(140,191,154,0.45);
  background: linear-gradient(135deg, #9ccfaa 0%, #b3e1bf 50%, #88c098 100%);
}

.btn-analyze-imar:active {
  transform: translateY(0);
}

[data-theme="light"] .btn-analyze-imar {
  color: #1a2e1a;
  background: linear-gradient(135deg, #a3d1af 0%, #b8dfc3 50%, #90c49e 100%);
  box-shadow: 0 4px 20px rgba(140,191,154,0.2);
}

/* Result side panel — liquid glass */
#resultOverlay {
  position: fixed;
  top: calc(12px + 60px + 8px);
  left: 16px;
  bottom: 16px;
  width: 420px;
  z-index: 90;
  background: rgba(12,12,18,0.5);
  backdrop-filter: blur(40px) saturate(1.5);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.06);
}

#resultOverlay .result-section {
  color: #d0d0e0;
}

#resultOverlay .result-section .card-head {
  color: #e0e0f0;
}

[data-theme="light"] #resultOverlay .result-section {
  color: #333;
}

[data-theme="light"] #resultOverlay .result-section .card-head {
  color: #222;
}

#resultOverlay.hidden {
  display: none !important;
}

[data-theme="light"] #resultOverlay {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}

@media (max-width: 767.98px) {
  #resultOverlay {
    width: 100%;
  }
}

/* Coordinate toggle (collapsible) */
.coord-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
  margin-top: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.coord-toggle:hover {
  color: rgba(255,255,255,0.6);
}

[data-theme="light"] .coord-toggle {
  color: rgba(0,0,0,0.3);
}

[data-theme="light"] .coord-toggle:hover {
  color: rgba(0,0,0,0.6);
}

.coord-chevron {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.coord-chevron.rotated {
  transform: rotate(180deg);
}

.coord-section {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Satellite Map — must be above landing-content (z-index:10) when active */
#satelliteMap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  transition: opacity 0.4s ease;
}

#globeContainer {
  transition: opacity 0.4s ease;
}

.map-back-btn {
  position: relative;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.map-back-btn:hover {
  background: rgba(0,0,0,0.85);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.leaflet-coord-display {
  pointer-events: none;
}

/* Modal close button */
.modal-close-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.modal-close-btn:hover {
  background: rgba(255,70,70,0.3);
  border-color: rgba(255,70,70,0.5);
  color: #ff6666;
  transform: scale(1.1);
}

[data-theme="light"] .modal-close-btn {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
  color: #333;
}

[data-theme="light"] .modal-close-btn:hover {
  background: rgba(255,70,70,0.15);
  border-color: rgba(255,70,70,0.3);
  color: #cc0000;
}

/* Pricing Modal */
.pricing-card {
  background: linear-gradient(135deg, rgba(15,20,15,0.93) 0%, rgba(10,12,8,0.96) 100%);
  backdrop-filter: blur(30px) saturate(1.3);
  border: 1px solid rgba(74,124,89,0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  width: 96vw;
  max-width: 1200px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), inset 0 1px 0 rgba(74,124,89,0.06);
}

[data-theme="light"] .pricing-card {
  background: linear-gradient(135deg, rgba(248,252,248,0.92) 0%, rgba(245,242,238,0.95) 100%);
  border-color: rgba(74,124,89,0.1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

@media (max-width: 991.98px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card { padding: 1.5rem; }
}

@media (max-width: 575.98px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card { padding: 1rem; }
  .login-card { padding: 1.5rem; max-width: 95vw; }
}

.pricing-plan-current {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.pricing-plan-current::after {
  content: 'Mevcut Paketiniz';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--success);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.pricing-plan {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem 1.15rem;
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pricing-plan-popular {
  border-color: #4a7c59;
  box-shadow: 0 0 30px rgba(74,124,89,0.2);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4a7c59, #5d9a6e);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.pricing-plan-price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.pricing-plan-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-plan-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  text-align: left;
}

.pricing-plan .btn-premium,
.pricing-plan .btn-premium.w-100 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100%;
}

.pricing-features li {
  padding: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pricing-features li i {
  color: var(--success);
  font-size: 0.95rem;
}

/* Hero CTA buttons */
.hero-cta-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.hero-stats strong {
  color: rgba(255,255,255,0.6);
}

[data-theme="light"] .hero-stats {
  color: rgba(0,0,0,0.3);
}

[data-theme="light"] .hero-stats strong {
  color: rgba(0,0,0,0.6);
}

/* Search panel back button */
.search-panel-back {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.search-panel-back:hover {
  color: rgba(255,255,255,0.8);
}

[data-theme="light"] .search-panel-back {
  color: rgba(74,124,89,0.6);
}

[data-theme="light"] .search-panel-back:hover {
  color: #4a7c59;
}

[data-theme="light"] .search-panel-back:hover {
  color: rgba(0,0,0,0.8);
}

/* Landing in-page sections */
.landing-sections {
  position: relative;
  z-index: 15;
  background: var(--bg-primary);
  pointer-events: auto;
}

.landing-section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 3rem;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 767.98px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--glass-border);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Landing footer */
.landing-footer {
  padding: 2rem;
  border-top: 1px solid var(--border-color);
}

/* Map info button active state */
.map-info-btn {
  transition: background 0.2s, border-color 0.2s;
}

.map-info-btn:hover {
  border-color: rgba(255,255,255,0.3);
}

/* Map pointer cursor for clickable areas */
#satelliteMap .leaflet-container,
#investmentMap .leaflet-container,
#satelliteMap,
#investmentMap {
  cursor: pointer !important;
}

#satelliteMap .leaflet-grab,
#investmentMap .leaflet-grab {
  cursor: pointer !important;
}

#satelliteMap .leaflet-dragging .leaflet-grab,
#investmentMap .leaflet-dragging .leaflet-grab {
  cursor: grabbing !important;
}

/* Hide Leaflet zoom controls */
#investmentMap .leaflet-control-zoom,
#investmentMap .leaflet-control-attribution,
#satelliteMap .leaflet-control-zoom,
#satelliteMap .leaflet-control-attribution {
  display: none !important;
}

/* Footer copyright */
/* ─── Analysis Mode Toggle ─── */
.analysis-mode-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s;
}
.analysis-mode-btn.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.analysis-mode-btn:hover:not(.active) {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
}
[data-theme="light"] .analysis-mode-toggle {
  border-color: rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .analysis-mode-btn {
  color: rgba(0,0,0,0.35);
}
[data-theme="light"] .analysis-mode-btn.active {
  background: rgba(0,0,0,0.06);
  color: #222;
}
[data-theme="light"] .analysis-mode-btn:hover:not(.active) {
  background: rgba(0,0,0,0.03);
  color: rgba(0,0,0,0.6);
}
.multi-parcel-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-primary);
}
[data-theme="light"] .multi-parcel-chip {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
.multi-parcel-chip .remove-chip {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0 0 0 8px;
  font-size: 0.9rem;
}
[data-theme="light"] .multi-parcel-chip .remove-chip { color: rgba(0,0,0,0.4); }

/* ─── Profile Balance Card — Liquid Glass ─── */
.profile-balance-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}
[data-theme="light"] .profile-balance-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(245,248,243,0.9) 100%);
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}
.profile-balance-left { display: flex; flex-direction: column; gap: 2px; }
.profile-balance-tier {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.profile-balance-email {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.profile-balance-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.profile-balance-credits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.profile-balance-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1;
}
.profile-balance-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media (max-width: 575.98px) {
  .profile-balance-card { flex-direction: column; gap: 1rem; text-align: center; }
  .profile-balance-right { flex-direction: column; }
}

.site-footer {
  position: relative;
  z-index: 20;
  padding: 0.4rem 2rem;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(10,10,12,0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

[data-theme="light"] .site-footer {
  background: rgba(255,255,255,0.3);
  border-top-color: rgba(0,0,0,0.04);
}

.site-footer img {
  height: 20px;
  width: auto;
  opacity: 0.5;
}

.site-footer a,
.footer-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  position: relative;
  z-index: 102;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.2s;
}
.site-footer a:hover,
.footer-links a:hover {
  color: rgba(255,255,255,0.8);
}
[data-theme="light"] .site-footer a,
[data-theme="light"] .footer-links a {
  color: rgba(0,0,0,0.5) !important;
}
[data-theme="light"] .site-footer a:hover,
[data-theme="light"] .footer-links a:hover {
  color: rgba(0,0,0,0.8) !important;
}

/* Fixed footer on landing page */
.landing-welcome .site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  pointer-events: auto;
  background: rgba(10,10,12,0.35);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid rgba(255,255,255,0.04);
}

[data-theme="light"] .landing-welcome .site-footer,
[data-theme="light"] .site-footer#globalFooter {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Investment map overlay title */
.inv-map-title {
  color: rgba(255,255,255,0.07);
}

[data-theme="light"] .inv-map-title {
  color: rgba(0,0,0,0.06);
}

@media (max-width: 767.98px) {
  .inv-map-title { display: none !important; }
}

/* Subtle watermark on parsel/yatırım views */
.view-watermark {
  position: fixed;
  bottom: 12px;
  left: 16px;
  z-index: 40;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.02em;
  pointer-events: none;
  font-weight: 400;
}

[data-theme="light"] .view-watermark {
  color: rgba(0,0,0,0.12);
}

/* ---- AdSense Ads ---- */
.ad-side {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  z-index: 90;
  pointer-events: auto;
}

.ad-left { left: 0; }
.ad-right { right: 0; }

.ad-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.ad-bottom { bottom: 0; }
.ad-top { top: 60px; }

.ad-placeholder {
  width: 160px;
  min-height: 600px;
  background: rgba(0,0,0,0.08);
  border: 1px dashed rgba(255,255,255,0.06);
  border-radius: 4px;
}

.ad-placeholder-hz {
  width: 728px;
  max-width: 100%;
  min-height: 90px;
  height: 90px;
}

[data-theme="light"] .ad-placeholder {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.06);
}

@media (max-width: 1400px) {
  .ad-side { display: none !important; }
}

@media (max-width: 768px) {
  .ad-placeholder-hz { width: 320px; min-height: 50px; height: 50px; }
}

/* ─── Navbar glass text links (no box, just text + glow) ─── */
.nav-link-glass {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 2px;
  cursor: pointer;
  transition: all 0.3s;
  text-shadow: 0 0 18px rgba(255,255,255,0.15), 0 1px 3px rgba(0,0,0,0.3);
  letter-spacing: 0.01em;
}

.nav-link-glass:hover {
  color: #fff;
  text-shadow: 0 0 28px rgba(255,255,255,0.35), 0 0 8px rgba(255,255,255,0.2), 0 1px 3px rgba(0,0,0,0.4);
}

[data-theme="light"] .nav-link-glass {
  color: rgba(0,0,0,0.55);
  text-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

[data-theme="light"] .nav-link-glass:hover {
  color: rgba(0,0,0,0.9);
  text-shadow: 0 0 12px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

/* On parsel/yatırım pages in light mode, dark text on frosted glass header */
[data-theme="light"] .landing-page .landing-navbar .nav-link-glass {
  color: rgba(0,0,0,0.6);
  text-shadow: none;
}
[data-theme="light"] .landing-page .landing-navbar .nav-link-glass:hover {
  color: #000;
}
[data-theme="light"] .landing-page .landing-navbar .logo-text {
  color: #222;
}
[data-theme="light"] .landing-page .landing-navbar .logo-text span {
  color: rgba(0,0,0,0.35);
}
[data-theme="light"] .landing-page .landing-navbar .btn-ghost {
  color: #333;
  border-color: rgba(0,0,0,0.15);
}
[data-theme="light"] .landing-page .landing-navbar .nav-profile-email,
[data-theme="light"] .landing-page .landing-navbar .nav-profile-btn {
  color: #333;
}

/* ─── Unified Profile + Bakiye Button ─── */
.nav-profile-wrap {
  position: relative;
}

.nav-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-profile-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.nav-profile-btn i.bi-person-circle {
  font-size: 1.1rem;
}

.nav-profile-email {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-profile-divider {
  opacity: 0.25;
  font-weight: 300;
}

.nav-profile-credits {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.78rem;
}

.nav-profile-credits i {
  font-size: 0.85rem;
  opacity: 0.7;
}

[data-theme="light"] .nav-profile-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.75);
}

[data-theme="light"] .nav-profile-btn:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.18);
  color: #111;
}

/* ─── Navbar Bakiye Hover Popup ─── */

.nav-bakiye-popup {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 240px;
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(14,14,16,0.85);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s ease;
  z-index: 99;
  pointer-events: none;
}

/* Invisible bridge — hover gap only, not over content */
.nav-bakiye-popup::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -12px;
  right: -12px;
  height: 18px;
  pointer-events: auto;
  z-index: -1;
}

.nav-profile-wrap:hover .nav-bakiye-popup,
.nav-bakiye-popup:hover,
.nav-bakiye-popup.force-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-bakiye-tier {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: #e8e8e8;
}

.nav-bakiye-credits {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.25rem;
}

.nav-bakiye-credits span {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-right: 4px;
}

.nav-bakiye-email {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
}

.nav-bakiye-upgrade {
  display: block;
  text-align: center;
  padding: 6px 14px;
  font-size: 0.78rem;
  text-decoration: none;
  border-radius: 8px;
}

[data-theme="light"] .nav-bakiye-popup {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.5);
}

[data-theme="light"] .nav-bakiye-tier { color: #222; }
[data-theme="light"] .nav-bakiye-credits { color: rgba(0,0,0,0.6); }
[data-theme="light"] .nav-bakiye-credits span { color: #111; }
[data-theme="light"] .nav-bakiye-email { color: rgba(0,0,0,0.35); }

/* ─── Bildirim Panel (Liquid Glass) ─── */
.notif-panel {
  background: rgba(14,14,16,0.88) !important;
  backdrop-filter: blur(32px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.5) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}
[data-theme="light"] .notif-panel {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(32px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) !important;
  border-color: rgba(0,0,0,0.1) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.5) !important;
}
.notif-bell-global { transition: opacity 0.2s, transform 0.15s; }
.notif-bell-global:hover { opacity: 0.6; }
.notif-bell-global:active { transform: scale(0.8); }
.notif-bell-shake .bi-bell {
  animation: bellShake 0.6s ease-in-out;
}
@keyframes bellShake {
  0% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-8deg); }
  75% { transform: rotate(4deg); }
  90% { transform: rotate(-2deg); }
  100% { transform: rotate(0); }
}
.notif-count-badge {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(192,57,43,0.4);
}

/* Tema geçiş animasyonu — logo ve tema toggle */
.theme-toggle, .theme-toggle-app {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle:active, .theme-toggle-app:active {
  transform: rotate(180deg) scale(0.85);
}
.logo, .logo-text {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Typewriter efekti — tema degisiminde */
@keyframes typewriter {
  from { max-width: 0; }
  to { max-width: 300px; }
}
@keyframes blinkCaret {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--text-muted); }
}
.logo-wordmark.typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  animation: typewriter 0.6s steps(12) forwards;
  border-right: 2px solid var(--text-muted);
}
.logo-wordmark.typing-done {
  border-right: none;
}


/* ─── Liquid Glass Overlay Popup (durum/inceleme sonucu) ─── */
.glass-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.glass-card {
  background: rgba(14,14,16,0.9);
  backdrop-filter: blur(40px) saturate(1.5);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 1.75rem;
  max-width: 420px;
  width: 100%;
  position: relative;
}
[data-theme="light"] .glass-card {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.5);
}
.glass-card-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}
.glass-card-close:hover { opacity: 0.6; }

/* ─── Profile Table Tooltip ─── */
.profile-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: default;
}
.profile-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,30,20,0.92);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 10;
}
.profile-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(20,30,20,0.92);
}
.profile-tooltip-wrap:hover .profile-tooltip {
  visibility: visible;
  opacity: 1;
}
[data-theme="light"] .profile-tooltip {
  background: rgba(30,30,30,0.88);
}

/* ─── Sıfırla button on map area ─── */
.map-reset-btn {
  position: fixed;
  top: calc(var(--navbar-height) + 220px);
  right: 20px;
  z-index: 10010;
  background: rgba(14,14,16,0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  color: #e0e0e0;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
}

.map-reset-btn:hover {
  background: rgba(14,14,16,0.9);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

[data-theme="light"] .map-reset-btn {
  background: rgba(255,255,255,0.8);
  color: #333;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

[data-theme="light"] .map-reset-btn:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.2);
}

/* ─── Parsel Seç fixed button ─── */
.map-parsel-btn {
  position: fixed;
  top: calc(var(--navbar-height) + 270px);
  right: 20px;
  z-index: 10010;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  transition: all 0.25s;
}

.map-parsel-btn:hover {
  background: rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.5);
}

.map-parsel-btn.active {
  background: rgba(0,200,83,0.85);
  border-color: #00c853;
  box-shadow: 0 0 20px rgba(0,200,83,0.4);
}

[data-theme="light"] .map-parsel-btn {
  background: rgba(255,255,255,0.7);
  color: #333;
  border-color: rgba(0,0,0,0.15);
}

[data-theme="light"] .map-parsel-btn.active {
  background: rgba(0,180,70,0.9);
  color: #fff;
  border-color: rgba(0,180,70,0.8);
}

/* ─── Multi-parcel checkbox toggle ─── */
.multi-parcel-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.multi-parcel-checkbox:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.multi-parcel-checkbox.active {
  background: rgba(74,124,89,0.1);
  border-color: rgba(74,124,89,0.3);
}

.mp-check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.multi-parcel-checkbox.active .mp-check-box {
  background: #4a7c59;
  border-color: #4a7c59;
}

.multi-parcel-checkbox.active .mp-check-box::after {
  content: '\2713';
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.mp-check-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.2;
}

.multi-parcel-checkbox.active .mp-check-text {
  color: var(--text-primary);
}

[data-theme="light"] .multi-parcel-checkbox {
  background: rgba(74,124,89,0.04);
  border-color: rgba(74,124,89,0.15);
}

[data-theme="light"] .multi-parcel-checkbox:hover {
  background: rgba(74,124,89,0.08);
  border-color: rgba(74,124,89,0.25);
}

[data-theme="light"] .multi-parcel-checkbox.active {
  background: rgba(74,124,89,0.1);
  border-color: rgba(74,124,89,0.3);
}

[data-theme="light"] .mp-check-box {
  border-color: rgba(74,124,89,0.3);
}

/* ─── Multi-parcel second input area ─── */
.multi-parcel-fields {
  display: none;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}

.multi-parcel-fields.active {
  display: block;
}

[data-theme="light"] .multi-parcel-fields {
  background: rgba(74,124,89,0.03);
  border-color: rgba(74,124,89,0.1);
}

/* ─── Parcel page navigation (multi-parcel results) ─── */
.parcel-page-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}

.parcel-page-nav .page-nav-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.parcel-page-nav .page-nav-scroll::-webkit-scrollbar { display: none; }

.parcel-page-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.parcel-page-arrow:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

[data-theme="light"] .parcel-page-arrow {
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .parcel-page-arrow:hover {
  background: rgba(0,0,0,0.08);
}

.parcel-page-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.parcel-page-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.parcel-page-btn.active {
  background: var(--primary-green);
  color: #fff;
  border-color: var(--primary-green);
  font-weight: 600;
}

.parcel-page-num {
  font-weight: 700;
  font-size: 0.72rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.parcel-page-btn.active .parcel-page-num {
  background: rgba(255,255,255,0.25);
}

.parcel-page-label {
  font-size: 0.75rem;
}

[data-theme="light"] .parcel-page-nav {
  background: rgba(74,124,89,0.04);
  border-color: rgba(74,124,89,0.12);
}

[data-theme="light"] .parcel-page-btn {
  border-color: rgba(74,124,89,0.12);
  background: rgba(74,124,89,0.03);
}

[data-theme="light"] .parcel-page-btn:hover {
  background: rgba(74,124,89,0.08);
}

[data-theme="light"] .parcel-page-num {
  background: rgba(0,0,0,0.06);
}

/* ─── MOBIL RESPONSIVE ─── */
@media (max-width: 768px) {
  /* Navbar */
  .landing-navbar { padding: 0.5rem 0.75rem; flex-wrap: wrap; gap: 0.4rem; }
  .landing-navbar .nav-actions { gap: 0.3rem; flex-wrap: wrap; justify-content: flex-end; }
  .nav-link-glass { font-size: 0.65rem !important; padding: 3px 6px !important; display: none !important; }
  .logo-wordmark { font-size: 0.9rem !important; }
  .logo-icon-img { height: 32px !important; }

  /* Welcome / Hero */
  .landing-welcome { overflow: visible !important; }
  .welcome-center { padding: 0 1rem; }
  .welcome-title { font-size: 1.5rem !important; line-height: 1.3; }
  .welcome-desc { font-size: 0.78rem !important; padding: 0 0.5rem; }
  .welcome-badge { font-size: 0.55rem !important; padding: 6px 14px !important; }
  .welcome-buttons { flex-direction: column; gap: 0.5rem; padding: 0 0.5rem; }
  .welcome-btn { padding: 14px 16px !important; font-size: 0.85rem; min-height: 54px; }
  .welcome-stats { gap: 0.8rem; font-size: 0.68rem; }

  /* Footer */
  .site-footer, #globalFooter {
    font-size: 0.5rem !important;
    padding: 0.25rem 0.5rem !important;
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 0.2rem !important;
  }
  .footer-links { gap: 0.4rem !important; font-size: 0.55rem !important; justify-content: center !important; justify-self: center !important; }
  #globalFooter span:first-child { display: none; } /* iyzico gizle mobilde */

  /* Modals */
  .pricing-card { width: 98vw; padding: 0.75rem; max-width: 100vw; max-height: 95vh; }
  .pricing-grid { grid-template-columns: 1fr !important; gap: 0.5rem; }
  .pricing-plan { padding: 1rem 0.8rem; }
  .login-card { max-width: 95vw; padding: 1.25rem; }
  .detail-popup-container { width: 98vw; max-width: 100vw; padding: 0.75rem; margin: 0.5rem; }
  .detail-popup-body { padding: 0.75rem; }
  .detail-popup-header { padding: 0.75rem; }
  .detail-popup-footer { padding: 0.75rem; }
  .search-panel { width: 92vw !important; max-width: 100vw !important; left: 4vw !important; right: 4vw !important; }
  .glass-card { max-width: 95vw !important; padding: 1.25rem !important; }

  /* Chat */
  #chatPanel { width: 92vw !important; right: 4vw !important; bottom: 80px !important; }
  #chatBubble { bottom: 16px !important; right: 16px !important; }

  /* Buttons */
  .nav-profile-wrap { display: none; }
  .notif-bell-global { display: none !important; }
  .btn-ghost, .btn-white { font-size: 0.72rem; padding: 5px 10px; }
  .theme-toggle { font-size: 0.85rem !important; padding: 4px 8px !important; }

  /* Score grid */
  .detail-score-grid { gap: 0.4rem; }
  .detail-score-item { padding: 0.4rem 0; }

  /* Sidebar (app pages) */
  .sidebar { display: none !important; }
  .main-content { margin-left: 0 !important; padding: 1rem !important; }
}

@media (max-width: 480px) {
  .welcome-title { font-size: 1.2rem !important; }
  .welcome-desc { font-size: 0.72rem !important; }
  .pricing-plan-price { font-size: 1.4rem; }
  .pricing-plan-name { font-size: 0.85rem; }
  .btn-ghost, .btn-white { font-size: 0.68rem; padding: 4px 8px; }
  .detail-section-title { font-size: 0.85rem; }
}
