/* ==========================================================================
   GeoIP Pulse — Master Stylesheet & Design System
   Modern, Glassmorphic, Fluid Responsive & Mobile-Native Styling
   ========================================================================== */

/* --- CSS Variables & Theme Tokens --- */
:root {
  /* Dark Cyber Theme Tokens (Default) */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-surface: rgba(18, 26, 44, 0.72);
  --bg-surface-solid: #131d31;
  --bg-surface-hover: rgba(30, 41, 67, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.25);
  --border-focus: #38bdf8;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --glow-primary: rgba(59, 130, 246, 0.35);
  --glow-cyan: rgba(6, 182, 212, 0.3);
  --glow-emerald: rgba(16, 185, 129, 0.25);

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  --grad-accent: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --grad-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-dark-mesh: radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.15) 0px, transparent 50%),
                    radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.15) 0px, transparent 50%);

  /* Shadows & Glass */
  --glass-blur: blur(16px);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.25);

  /* Typography & Sizing */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Eye-Friendly Nordic Slate & Soft Porcelain Light Mode */
[data-theme="light"] {
  --bg-primary: #eef2f6; /* Soothing neutral slate, zero eye glare */
  --bg-secondary: #e2e8f0;
  --bg-surface: #ffffff;
  --bg-surface-solid: #ffffff;
  --bg-surface-hover: #f8fafc;
  
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-glow: rgba(37, 99, 235, 0.25);
  --border-focus: #2563eb;
  
  --text-primary: #090e17; /* Deep midnight navy - crystal clear reading */
  --text-secondary: #334155; /* Slate-700 - rich and readable */
  --text-muted: #64748b; /* Slate-500 */
  --text-dim: #94a3b8;

  /* Rich high-contrast accents */
  --accent-cyan: #0284c7; /* Vivid oceanic blue (WCAG 4.5:1+) */
  --accent-blue: #2563eb; /* Royal blue */
  --accent-indigo: #4f46e5;
  --accent-emerald: #059669; /* Rich forest emerald */
  --accent-amber: #d97706; /* Warm amber */
  --accent-rose: #e11d48; /* Ruby rose */

  --glow-primary: rgba(37, 99, 235, 0.08);
  --glow-cyan: rgba(2, 132, 199, 0.08);
  --glow-emerald: rgba(5, 150, 105, 0.08);

  --grad-hero: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  --grad-accent: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  --grad-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --grad-dark-mesh: none;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 4px 20px rgba(2, 132, 199, 0.15);
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Scroll margin offset for sticky headers on anchors */
#heroSection, #searchSection, #mapCard, #securityCard, #geoCard, #networkCard, #clientCard, #faqSection {
  scroll-margin-top: 85px;
}

/* Background Ambient Glow */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.glow-1 {
  top: -10vw;
  left: 10vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 70%);
}
.glow-2 {
  top: 35vh;
  right: -10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
}
.glow-3 {
  bottom: -15vw;
  left: 25vw;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 70%);
}

/* --- Container & Layout --- */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 32px);
  padding-bottom: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Glassmorphism Base --- */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.glass-panel:hover {
  border-color: var(--border-glow);
}

/* --- Header / Navbar --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: clamp(10px, 1.8vh, 16px) 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9, 13, 22, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: clamp(14px, 2.5vh, 24px);
}
[data-theme="light"] .app-header {
  background: rgba(241, 245, 249, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.pulse-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  animation: pulse-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse-ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.brand-title {
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}
.brand-title span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.brand-badge i {
  color: var(--accent-cyan);
}

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

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
  transition: all var(--transition-fast);
}
.action-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}
.action-btn:active {
  transform: scale(0.96);
}

.theme-toggle {
  padding: 8px 10px;
  font-size: 1rem;
}
.theme-icon-light { display: none; }
.theme-icon-dark { display: inline-block; color: var(--accent-amber); }

[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: inline-block; color: var(--accent-amber); }

/* --- Hero Section: Big IP Display --- */
.hero-section {
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.hero-card {
  padding: clamp(16px, 3vw, 32px);
  position: relative;
  overflow: hidden;
  background: var(--grad-card), var(--bg-surface);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pulse {
  width: 9px;
  height: 9px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.status-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ip-version-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.25);
}

.badge-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

/* IP Display Center Row */
.ip-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.ip-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 240px;
  min-width: 0;
}

.ip-address {
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.18;
  word-break: break-all;
  overflow-wrap: break-word;
  user-select: all;
  text-shadow: 0 0 24px var(--glow-primary);
}

.ip-hostname {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  color: var(--text-secondary);
  word-break: break-all;
  overflow-wrap: break-word;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: var(--grad-hero);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px -4px rgba(14, 165, 233, 0.45);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-primary-glow:hover {
  box-shadow: 0 10px 28px -4px rgba(14, 165, 233, 0.65);
  transform: translateY(-2px);
}
.btn-primary-glow:active {
  transform: scale(0.97);
}

/* Hero Micro Meta Grid */
.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  min-width: 0;
}

.meta-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.meta-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.meta-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.text-accent {
  color: var(--accent-cyan) !important;
}

/* --- Search & Universal Lookup Section --- */
.search-section {
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.search-container {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  gap: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all var(--transition-normal);
  flex-wrap: nowrap;
}
.search-container:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.search-icon {
  color: var(--text-muted);
  font-size: 1rem;
  padding-left: 6px;
  flex-shrink: 0;
}

#searchInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: var(--text-primary);
  padding: 8px 4px;
  min-width: 0;
}
#searchInput::placeholder {
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.search-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.search-submit-btn:hover {
  background: var(--accent-cyan);
}

.reset-ip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  flex-shrink: 0;
}
.reset-ip-btn:hover {
  background: rgba(16, 185, 129, 0.25);
}

.recent-chips-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 0 4px;
}

.chips-title {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chips-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 4px 9px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.chip:hover {
  background: var(--bg-surface-hover);
  color: var(--accent-cyan);
  border-color: var(--border-glow);
}

/* --- Two-Column Layout Grid --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(14px, 2.5vw, 22px);
  margin-bottom: clamp(20px, 3vh, 32px);
}

.grid-column {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.5vw, 22px);
  min-width: 0;
}

/* --- Card Headers & Common Styles --- */
.info-card, .map-card {
  padding: clamp(16px, 2.5vw, 22px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}
.card-title h2 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.card-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.coordinates-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.coordinates-pill:hover {
  background: var(--bg-surface-hover);
  color: var(--accent-cyan);
  border-color: var(--border-glow);
}

.icon-tool-btn, .copy-card-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.icon-tool-btn:hover, .copy-card-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
  background: var(--bg-surface-hover);
}

/* --- Leaflet Map Styling --- */
.map-viewport-wrapper {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-solid);
}

.map-viewport {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 1;
}

.leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background: var(--bg-surface-solid) !important;
  font-family: var(--font-sans) !important;
}

/* Clean Leaflet Tile rendering */
.leaflet-tile-pane {
  filter: none;
}

.map-overlay-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-surface-solid);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="light"] .map-overlay-badge {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .map-overlay-badge {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.flag-icon {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.map-type-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 500;
  display: flex;
  gap: 4px;
  background: var(--bg-surface-solid);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .map-type-controls {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .map-type-controls {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.map-type-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

[data-theme="light"] .map-type-btn {
  color: #475569;
}
[data-theme="light"] .map-type-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
[data-theme="light"] .map-type-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
}

[data-theme="dark"] .map-type-btn {
  color: #94a3b8;
}
[data-theme="dark"] .map-type-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}
[data-theme="dark"] .map-type-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
}

/* Leaflet Popup Theme-Adaptive Styling */
.leaflet-popup-content-wrapper {
  background: var(--bg-surface-solid) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 4px !important;
}

[data-theme="light"] .leaflet-popup-content-wrapper {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] .leaflet-popup-content-wrapper {
  background: #131d31 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
  background: var(--bg-surface-solid) !important;
}
[data-theme="light"] .leaflet-popup-tip {
  background: #ffffff !important;
}
[data-theme="dark"] .leaflet-popup-tip {
  background: #131d31 !important;
}

.map-popup-card {
  font-family: var(--font-sans);
  padding: 4px 6px;
}
.map-popup-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.map-popup-ip {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.card-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.footer-stat {
  display: flex;
  flex-direction: column;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Custom Radar Map Marker */
.radar-marker {
  position: relative;
  width: 24px;
  height: 24px;
}
.radar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #38bdf8;
  border: 2px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px #38bdf8;
}
.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: rgba(56, 189, 248, 0.35);
  border: 1px solid #38bdf8;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: radar-expand 2s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
}
@keyframes radar-expand {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* --- Details Table Styling --- */
.details-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
  gap: 8px;
}
.table-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}
.row-label i {
  color: var(--accent-cyan);
  width: 14px;
  text-align: center;
  font-size: 0.9rem;
}

.row-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
  max-width: 62%;
}
.row-value.copyable {
  cursor: pointer;
}
.row-value.copyable:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* Timezone Clocks */
.timezone-clocks-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.clock-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}
.clock-box.highlight {
  background: rgba(56, 189, 248, 0.06);
  border-color: var(--border-glow);
}

.clock-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.clock-digits {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

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

.clock-divider {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* --- Security Matrix --- */
.security-matrix {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 10px;
}

.sec-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sec-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sec-title i {
  color: var(--accent-cyan);
}
.sec-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sec-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.status-pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-safe {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.status-info {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.mini-tool-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}
.mini-tool-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
}

/* --- FAQ Section & SEO Accordion --- */
.faq-section {
  padding: clamp(18px, 2.5vw, 24px);
  margin-bottom: clamp(20px, 3vh, 32px);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}
.faq-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glow);
}
.faq-item[open] {
  background: rgba(56, 189, 248, 0.04);
  border-color: var(--border-glow);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  gap: 12px;
}
.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-q-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-q-title i {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.faq-chevron {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-body {
  padding: 0 16px 16px 42px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.faq-body strong {
  color: var(--text-primary);
}
.faq-body code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-cyan);
  font-size: 0.82rem;
}

/* --- Tools & Actions Bar --- */
.tools-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: clamp(12px, 2.5vw, 18px) clamp(16px, 3vw, 24px);
  margin-bottom: 28px;
}

.tools-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.tools-label i {
  color: var(--accent-cyan);
}

.tools-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tool-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

.btn-accent-outline {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* --- Modern Pro Master Footer Styling --- */
.app-footer {
  margin-top: clamp(20px, 3vh, 36px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(16px, 2.5vw, 28px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-about {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.2);
  width: fit-content;
}

.footer-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-heading i {
  color: var(--accent-cyan);
  font-size: 0.85rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links-list li {
  display: flex;
  align-items: center;
}

.footer-links-list a,
.footer-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: var(--font-sans);
}
.footer-links-list a i,
.footer-modal-link i {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  transition: transform var(--transition-fast);
}

.footer-links-list a:hover,
.footer-modal-link:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.copyright-text {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.copyright-text strong {
  color: var(--text-primary);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.back-to-top-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--accent-cyan);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

/* Light mode footer refinements */
[data-theme="light"] .privacy-badge {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.2);
  color: #059669;
}
[data-theme="light"] .footer-links-list a,
[data-theme="light"] .footer-modal-link {
  color: #475569;
}
[data-theme="light"] .footer-links-list a:hover,
[data-theme="light"] .footer-modal-link:hover {
  color: #0284c7;
}
[data-theme="light"] .back-to-top-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}
[data-theme="light"] .back-to-top-btn:hover {
  background: #f8fafc;
  color: #0284c7;
  border-color: #0284c7;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Mobile Bottom Dock (Native App Feel) --- */
.mobile-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}
[data-theme="light"] .mobile-dock {
  background: rgba(255, 255, 255, 0.96);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: transparent;
  border: none;
}
.dock-item i {
  font-size: 1.15rem;
}
.dock-item.active, .dock-item:hover {
  color: var(--accent-cyan);
}
.dock-action-btn {
  color: var(--accent-blue);
  cursor: pointer;
}

/* --- Pull-to-Refresh Indicator --- */
.pull-refresh-indicator {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  transition: top 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.pull-refresh-indicator.visible {
  top: 15px;
}
.pull-refresh-indicator.refreshing i {
  animation: spin 1s infinite linear;
}

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

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: calc(85px + env(safe-area-inset-bottom));
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast i {
  font-size: 1rem;
}
.toast.toast-success i { color: var(--accent-emerald); }
.toast.toast-info i { color: var(--accent-cyan); }
.toast.toast-error i { color: var(--accent-rose); }

@keyframes toast-slide-in {
  from {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* --- Modal Styling --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.hidden {
  display: none !important;
}

.modal-window {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-header h3 i { color: var(--accent-cyan); }

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover { color: var(--text-primary); }

.modal-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.share-textarea {
  width: 100%;
  height: 130px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  resize: none;
  margin-bottom: 14px;
  outline: none;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .map-viewport-wrapper {
    height: 290px;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding-bottom: calc(85px + env(safe-area-inset-bottom));
  }
  .header-actions .btn-text {
    display: none;
  }
  .action-btn {
    padding: 8px 10px;
  }
  .mobile-dock {
    display: flex;
  }
  .toast-container {
    bottom: calc(75px + env(safe-area-inset-bottom));
    right: 12px;
    left: 12px;
  }
  .toast {
    justify-content: center;
  }
  .ip-display-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary-glow {
    width: 100%;
    justify-content: center;
  }
  .hero-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Stack timezone clocks vertically */
  .timezone-clocks-wrapper {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .clock-divider {
    transform: rotate(90deg);
    margin: -2px 0;
  }

  .tools-buttons {
    width: 100%;
  }
  .tool-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .app-container {
    padding: 0 12px;
    padding-bottom: calc(85px + env(safe-area-inset-bottom));
  }
  
  /* Hero section adjustments */
  .hero-meta-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  /* Map Viewport for mobile */
  .map-viewport-wrapper {
    height: 260px;
  }

  /* Map card header */
  .map-card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .map-card .card-controls {
    width: 100%;
    justify-content: space-between;
  }

  /* Table rows wrapping nicely */
  .table-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
  }
  .row-value {
    text-align: left;
    max-width: 100%;
    width: 100%;
    font-size: 0.85rem;
  }

  /* Security items wrapping */
  .sec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .sec-action-group {
    width: 100%;
    justify-content: space-between;
  }

  /* Search bar mobile optimization */
  .search-container {
    padding: 4px 6px;
  }
  #searchInput {
    font-size: 0.85rem;
  }
  /* Tools action buttons stacked */
  .tools-buttons {
    flex-direction: column;
    width: 100%;
  }
  .tool-btn {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* --- Comprehensive Eye-Friendly Light Theme Styles --- */
[data-theme="light"] .ambient-glow {
  opacity: 0.1;
}

[data-theme="light"] .glass-panel,
[data-theme="light"] .hero-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .app-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .ip-address {
  text-shadow: none;
  color: #090e17;
}

[data-theme="light"] .meta-item,
[data-theme="light"] .table-row,
[data-theme="light"] .sec-item,
[data-theme="light"] .clock-box,
[data-theme="light"] .faq-item {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .table-row:hover,
[data-theme="light"] .meta-item:hover,
[data-theme="light"] .sec-item:hover,
[data-theme="light"] .faq-item:hover {
  background: #f1f5f9;
  border-color: rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .clock-box.highlight {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .faq-item[open] {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .faq-body code {
  background: #e2e8f0;
  color: #0369a1;
}

[data-theme="light"] .search-container {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .chip {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}
[data-theme="light"] .chip:hover {
  background: #e2e8f0;
  color: #0284c7;
  border-color: #0284c7;
}

[data-theme="light"] .coordinates-pill {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}
[data-theme="light"] .coordinates-pill:hover {
  background: #e2e8f0;
  color: #0284c7;
  border-color: #0284c7;
}

[data-theme="light"] .action-btn,
[data-theme="light"] .tool-btn,
[data-theme="light"] .icon-tool-btn,
[data-theme="light"] .copy-card-btn,
[data-theme="light"] .mini-tool-btn {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #334155;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .action-btn:hover,
[data-theme="light"] .tool-btn:hover,
[data-theme="light"] .icon-tool-btn:hover,
[data-theme="light"] .copy-card-btn:hover,
[data-theme="light"] .mini-tool-btn:hover {
  background: #f8fafc;
  border-color: #2563eb;
  color: #2563eb;
}

[data-theme="light"] .btn-accent-outline {
  border-color: #0284c7;
  color: #0284c7;
}
[data-theme="light"] .btn-accent-outline:hover {
  background: #0284c7;
  color: #ffffff;
}

[data-theme="light"] .meta-icon {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
}

[data-theme="light"] .badge {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.22);
}

[data-theme="light"] .badge-success {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
  border-color: rgba(5, 150, 105, 0.22);
}

[data-theme="light"] .status-safe {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border-color: rgba(5, 150, 105, 0.25);
}

[data-theme="light"] .status-warning {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.25);
}

[data-theme="light"] .status-danger {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.25);
}

[data-theme="light"] .status-info {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .mobile-dock {
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .dock-item {
  color: #64748b;
}
[data-theme="light"] .dock-item.active {
  color: #0284c7;
}

[data-theme="light"] .share-textarea {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.15);
  color: #090e17;
}
