/* ==========================================================================
   CloudIP — Ultra-Modern Responsive Dark Theme
   Typography: Outfit (Display & Numbers) • Plus Jakarta Sans (UI) • Space Mono (Code)
   Optimized for All Mobile Phones (320px+), Tablets, Laptops & 4K Displays
   ========================================================================== */

:root {
  /* Core Color Palette */
  --bg-primary: #06080e;
  --bg-surface: rgba(15, 23, 42, 0.75);
  --bg-surface-elevated: rgba(22, 33, 56, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(99, 102, 241, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Vibrant Accents */
  --color-indigo: #6366f1;
  --color-violet: #8b5cf6;
  --color-cyan: #06b6d4;
  --color-teal: #14b8a6;
  --color-emerald: #10b981;
  --color-amber: #f59e0b;
  --color-rose: #f43f5e;
  --color-purple: #c084fc;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'JetBrains Mono', Consolas, monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 12px 36px -10px rgba(0, 0, 0, 0.55), 0 0 1px 1px rgba(255, 255, 255, 0.04);
  --shadow-glow-indigo: 0 0 35px -5px rgba(99, 102, 241, 0.35);
  --shadow-glow-cyan: 0 0 30px -5px rgba(6, 182, 212, 0.3);

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Scrollbar Hiding across All Devices (Mobile, Desktop, Tablet) */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE / Legacy Edge */
}

/* Hide scrollbar for Chrome, Safari, Edge, Android & iOS WebKit */
::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Background Ambient Orbs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.36;
}

.orb-purple {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
}

.orb-cyan {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  bottom: 0;
  right: -100px;
}

.orb-emerald {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  top: 35%;
  left: -140px;
  opacity: 0.2;
}

/* Base Layout */
.app-layout {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 8, 14, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand-badge-edition {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  letter-spacing: 0.5px;
}

.brand-subtitle {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-dim);
}

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

/* Edge Status Pill (Compact & Clean on Mobile) */
.edge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 10px var(--color-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
  flex-shrink: 0;
}

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

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

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.spinning .refresh-svg {
  animation: spin 0.8s linear infinite;
}

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

/* Page Body */
.page-body {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 60px;
}

/* HERO MASTER IP CARD */
.master-ip-card {
  position: relative;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card), var(--shadow-glow-indigo);
  margin-bottom: 30px;
  overflow: hidden;
}

.card-accent-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #818cf8, #06b6d4, #10b981, transparent);
}

.master-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.status-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-core-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 12px var(--color-cyan);
  animation: beacon-wave 1.8s infinite;
}

@keyframes beacon-wave {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.live-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.badges-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pill-ipv4 {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.pill-latency {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* DUAL-STACK DOCK: Both IPv4 & IPv6 Cards */
.dual-ip-dock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0 18px 0;
}

.ip-tier-card {
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.25s var(--ease-spring);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-tier-ipv4:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 8px 24px -6px rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
}

.card-tier-ipv6:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 24px -6px rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}

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

.tier-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.protocol-badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.badge-ipv4 {
  background: rgba(6, 182, 212, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.badge-ipv6 {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.status-micro-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.chip-active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.chip-detecting {
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.chip-unavailable {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tier-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.tier-copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
}

.tier-ip-display {
  padding: 4px 0 2px 0;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.card-tier-ipv4 .tier-ip-text {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: #ffffff;
  word-break: break-all;
  letter-spacing: -0.5px;
}

.card-tier-ipv6 .tier-ip-text {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  font-weight: 600;
  color: #e2e8f0;
  word-break: break-all;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.tier-ip-text.text-muted-notice {
  font-size: 0.875rem !important;
  color: var(--text-dim) !important;
  font-weight: 500 !important;
}

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

/* Master Bottom Bar (Carrier & Geolocation) */
.master-bottom-bar {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.carrier-geo-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Crisp Sharp CDN Flag Wrapper */
.flag-wrapper {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flag-fallback {
  font-size: 1.25rem;
  line-height: 1;
}

.carrier-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.carrier-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.carrier-location {
  font-size: 0.825rem;
  color: var(--text-muted);
}

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

.subtle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.subtle-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* 4-Card Audit Grid */
.grid-audit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.audit-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.25s var(--ease-spring);
}

.audit-card:hover {
  background: var(--bg-surface-elevated);
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

/* Top Accent Lines on Cards */
.card-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.accent-indigo { background: linear-gradient(90deg, #818cf8, #c084fc); }
.accent-cyan   { background: linear-gradient(90deg, #06b6d4, #10b981); }
.accent-amber  { background: linear-gradient(90deg, #fbbf24, #f97316); }
.accent-rose   { background: linear-gradient(90deg, #fb7185, #e11d48); }

.audit-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.icon-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-bg-indigo  { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3); }
.icon-bg-cyan    { background: rgba(6, 182, 212, 0.15);  border: 1px solid rgba(6, 182, 212, 0.3); }
.icon-bg-amber   { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-bg-rose    { background: rgba(244, 63, 94, 0.15);  border: 1px solid rgba(244, 63, 94, 0.3); }
.icon-bg-emerald { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-bg-purple  { background: rgba(192, 132, 252, 0.15); border: 1px solid rgba(192, 132, 252, 0.3); }

.card-header-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.card-header-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 1px;
}

/* Data Table Inside Cards */
.audit-table {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
}

.label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.val {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  word-break: break-word;
}

.val.font-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.highlight-cyan {
  color: #38bdf8;
}

.highlight-amber {
  color: #fbbf24;
}

.badge-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.truncate-ray {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Interactive Map Panel */
.interactive-map-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

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

.panel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.panel-sub {
  font-size: 0.775rem;
  color: var(--text-dim);
  margin-top: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.precision-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  transition: all 0.25s var(--ease-spring);
}

.precision-badge.gps-active {
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.btn-gps {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(16, 185, 129, 0.15));
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.35);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.btn-gps:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.25));
  border-color: rgba(6, 182, 212, 0.6);
  color: #fff;
  transform: translateY(-1px);
}

.btn-gps.detecting {
  pointer-events: none;
  opacity: 0.8;
}

.btn-gps.detecting .gps-icon-svg {
  animation: spin 1s linear infinite;
}

.btn-gps.gps-locked {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.5);
}

.map-render-frame {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
  background-color: #0f172a;
}

/* Dark Mode Leaflet Filter */
.leaflet-tile {
  filter: brightness(0.6) invert(1) contrast(3) hue-rotate(205deg) saturate(0.3) brightness(0.75);
}

.map-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.radar-scan {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(16, 185, 129, 0.2);
  border-top-color: var(--color-emerald);
  animation: spin 0.9s linear infinite;
}

/* CLI Developer Panel */
.cli-developer-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cli-command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.terminal-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.terminal-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.dot-cyan  { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }

/* Fixed Command Box: Smooth Horizontal Scroll (Never Breaks URLs Across Hyphens!) */
.command-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

.code-scroll-area {
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch;
}

.code-scroll-area::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.code-scroll-area code {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: #38bdf8;
  display: inline-block;
}

.copy-code-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-spring);
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.05);
}

/* Raw JSON Explorer */
.json-explorer-dropdown details {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
  transition: all 0.2s var(--ease-spring);
}

.dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.dropdown-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(192, 132, 252, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.json-code-block {
  padding: 16px;
  background: rgba(0, 0, 0, 0.65);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a5b4fc;
  max-height: 280px;
  overflow: auto;
  line-height: 1.5;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.json-code-block::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 22px 0;
  font-size: 0.825rem;
  color: var(--text-dim);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s var(--ease-spring);
}

.footer-link:hover {
  color: var(--color-cyan);
}

/* Floating Toast */
.toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s var(--ease-spring);
}

.toast-box.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints for Mobile, Tablet, and Desktop
   ========================================================================== */

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .master-ip-card {
    padding: 22px;
  }

  .dual-ip-dock {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .master-bottom-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .carrier-geo-pill {
    width: 100%;
  }

  .hero-actions-deck {
    width: 100%;
    display: flex;
  }

  .hero-actions-deck .subtle-btn {
    flex: 1;
    justify-content: center;
  }

  .map-render-frame {
    height: 300px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .navbar {
    padding: 10px 0;
  }

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

  .brand-badge-edition {
    display: none; /* Keep header super clean on narrow mobile */
  }

  .edge-status-pill {
    max-width: 120px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .refresh-label {
    display: none; /* Icon-only on small mobile screens */
  }

  .refresh-btn {
    padding: 6px 9px;
  }

  .ip-headline {
    font-size: 1.85rem;
  }

  .grid-audit-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }
}
