/* Leaflet CSS Bundled for Page Speed optimization */
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}




/* ==========================================================================
   MyIP-Location Dashboard Styling - Design System & Modern Aesthetics
   ========================================================================== */

:root {
  /* Fonts */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* Dark Theme Variables (Default) */
.dark-theme {
  --bg-primary: #070913;
  --bg-secondary: rgba(13, 18, 36, 0.75);
  --bg-tertiary: #141b2f;
  --bg-input: rgba(10, 14, 28, 0.75);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-cyan: #00f2fe;
  --accent-purple: #9d4edd;
  --accent-rose: #ff2e93;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 242, 254, 0.4);
  --shadow-color: rgba(0, 0, 0, 0.45);
  --glow-color: rgba(0, 242, 254, 0.12);
  
  --card-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Map filter for dark mode */
  --map-filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* Light Theme Variables */
.light-theme {
  --bg-primary: #f5f7fb;
  --bg-secondary: rgba(255, 255, 255, 0.85);
  --bg-tertiary: #e2e8f0;
  --bg-input: rgba(255, 255, 255, 0.9);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent-cyan: #0284c7;
  --accent-purple: #7c3aed;
  --accent-rose: #db2777;
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-focus: rgba(2, 132, 199, 0.4);
  --shadow-color: rgba(148, 163, 184, 0.15);
  --glow-color: rgba(2, 132, 199, 0.06);
  
  --card-glow: 0 8px 32px 0 rgba(148, 163, 184, 0.1);
  
  /* Map filter for light mode */
  --map-filter: none;
}

/* ==========================================================================
   Base Elements & Reset
   ========================================================================== */

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

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   Background Animations & Grid
   ========================================================================== */

.radial-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  background-image: 
    radial-gradient(var(--border-color) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--glow-color) 0%, transparent 60%);
  background-size: 24px 24px, 100% 100%;
  opacity: 0.7;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -9;
  opacity: 0.25;
  pointer-events: none;
  transition: background-color var(--transition-normal);
}

.orb-1 {
  width: 450px;
  height: 450px;
  top: -100px;
  right: -50px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 80%);
}

.orb-2 {
  width: 550px;
  height: 550px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 80%);
}

/* ==========================================================================
   App Layout Structure (Sidebar & Main Frame)
   ========================================================================== */

/* Left Sidebar Navigation */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px var(--shadow-color);
  transition: transform var(--transition-normal), background-color var(--transition-normal), border-right var(--transition-normal);
}

.sidebar-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.75rem;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}

.brand-name {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.brand-tagline {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: -2px;
}

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

.close-sidebar-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
}

/* Sidebar Navigation Items */
.sidebar-nav {
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  padding: 1rem 1rem 0.4rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-item i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.nav-item:hover i {
  transform: scale(1.1);
  color: var(--accent-cyan);
}

.nav-item.active {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-item.active i {
  color: var(--accent-cyan);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger Drawer Button */
.hamburger-btn {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  width: 45px;
  height: 45px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 4px 15px var(--shadow-color);
  backdrop-filter: blur(10px);
  display: none;
}

/* Main Frame */
.main-content-frame {
  margin-left: 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-normal);
}

/* View Header */
.view-header {
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(13, 18, 36, 0.2);
  display: flex;
  justify-content: center;
  z-index: 10;
}

/* Search Container */
.search-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 600px;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-secondary);
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  outline: none;
  transition: border var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-normal);
}

.search-input-wrapper input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 12px var(--glow-color);
}

.clear-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  font-size: 1.1rem;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.3);
}

.primary-btn:active {
  transform: translateY(1px);
}

/* Header Controls Widgets */
.connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.green {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-green 2s infinite;
}
.status-dot.red {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

@keyframes pulse-green {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.control-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  transition: background-color var(--transition-fast), color var(--transition-fast), border var(--transition-fast);
}

.control-btn:hover {
  background-color: var(--border-color);
  border-color: var(--text-secondary);
}

.dark-theme .sun-icon { display: none; }
.light-theme .moon-icon { display: none; }

/* ==========================================================================
   SPA Views Container
   ========================================================================== */

.views-wrapper {
  flex-grow: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem;
}

.alert-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.18) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  color: #f87171;
  font-weight: 500;
}

.alert-banner.hidden {
  display: none !important;
}

.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* SPA Transitions */
.app-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.app-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Dashboard Tab Grid (View 1)
   ========================================================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Card Foundations */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-glow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal), border var(--transition-normal);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px var(--shadow-color);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
}

.card-title i {
  color: var(--accent-cyan);
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
}

/* Hero IP Card Specific */
.hero-ip-card {
  background: linear-gradient(135deg, rgba(20, 27, 47, 0.8) 0%, rgba(13, 18, 36, 0.85) 100%);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero-ip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-rose));
}

.hero-ip-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.hero-ip-card .subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.ip-version-badge {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.ip-value-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
}

.ip-value-wrapper h1,
.ip-value-wrapper h2,
.ip-value-wrapper .ip-display-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  word-break: break-all;
  text-shadow: 0 0 15px var(--glow-color);
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.icon-action-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.icon-action-btn:hover {
  transform: translateY(-2px);
  background-color: var(--border-color);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.isp-subtext {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.security-badges {
  display: flex;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge.secure {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
}
.badge.danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

/* Metadata Parameters Grid */
.metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.metadata-grid.double-col {
  grid-template-columns: 1fr;
}

.grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.grid-item.full-width {
  grid-column: span 2;
}

.item-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.item-value-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.item-value.mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.flag-icon {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.flag-icon.hidden { display: none; }

.mini-copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 4px;
}
.mini-copy-btn:hover { color: var(--accent-cyan); }

.UA-string {
  background-color: var(--bg-tertiary);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem !important;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  word-break: break-all;
  line-height: 1.4;
}

/* Expanded Card toggler */
.card-header-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.card-header-toggle .card-title { margin-bottom: 0; }
.expand-indicator { color: var(--text-muted); transition: transform var(--transition-normal); }
.collapsed .metadata-grid { display: none; }
.collapsed .expand-indicator { transform: rotate(-90deg); }

/* ==========================================================================
   Map Card Styling
   ========================================================================== */

.map-card {
  display: flex;
  flex-direction: column;
  height: 380px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.map-header .card-title { margin-bottom: 0; }

.map-coords-badge {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.map-inner-wrapper {
  flex-grow: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-box {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Dark mode invert map filter */
.dark-theme .leaflet-tile-container {
  filter: var(--map-filter);
}
.dark-theme .leaflet-container {
  background: #141b2f;
}

.custom-map-pin {
  background-color: var(--accent-cyan);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.custom-map-pin-pulse {
  background: transparent;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  animation: marker-pulse 1.8s ease-out infinite;
  box-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes marker-pulse {
  0% { transform: scale(0.2); opacity: 1; }
  80% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* ==========================================================================
   Ping Tester Widget
   ========================================================================== */

.diagnostics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

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

.secondary-btn:active { transform: translateY(1px); }

.secondary-btn.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

.ping-endpoints-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.ping-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.ping-item:hover { border-color: rgba(0, 242, 254, 0.2); }

.ping-meta { display: flex; flex-direction: column; gap: 2px; }
.ping-name { font-size: 0.85rem; font-weight: 600; }
.ping-url { font-size: 0.75rem; font-family: var(--font-mono); color: var(--text-muted); }

.ping-visual {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
  max-width: 60%;
  justify-content: flex-end;
}

.ping-bar-container {
  height: 6px;
  background-color: var(--border-color);
  border-radius: 10px;
  width: 120px;
  overflow: hidden;
  position: relative;
}

.ping-bar {
  height: 100%;
  width: 0;
  background-color: var(--accent-cyan);
  border-radius: 10px;
  transition: width 0.4s ease-out, background-color 0.4s;
}

.ping-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 55px;
  text-align: right;
}

.ping-fast { background-color: #10b981 !important; color: #10b981; }
.ping-avg { background-color: #f59e0b !important; color: #f59e0b; }
.ping-slow { background-color: #ef4444 !important; color: #ef4444; }

/* History logs list styling */
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.text-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.text-btn:hover { color: var(--accent-rose); }

.history-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.history-empty-state i { font-size: 1.5rem; opacity: 0.5; }

.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.history-item:hover {
  transform: translateX(2px);
  border-color: var(--accent-cyan);
}

.history-ip { font-family: var(--font-mono); font-weight: 600; }

.history-geo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}

.history-geo img { width: 16px; height: 11px; }

/* ==========================================================================
   Sub-Tool Shared Styles (WHOIS, DNS, Portscan, Blacklist, Headers)
   ========================================================================= */

.panel-card {
  max-width: 1000px;
  margin: 0 auto;
}

.tool-form {
  margin: 1.5rem 0 2rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-row input[type="text"], .form-row input[type="email"] {
  flex-grow: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-row input[type="text"]:focus, .form-row input[type="email"]:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 12px var(--glow-color);
}

/* Grid Layouts for Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 1.25rem;
  align-items: flex-end;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 1.25rem;
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 2; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 12px var(--glow-color);
}

.form-group textarea {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  resize: vertical;
}

/* Preset Badge Selections */
.presets-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.preset-badge {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.45rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-badge:hover, .preset-badge.active {
  background-color: var(--border-color);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  box-shadow: 0 0 8px var(--glow-color);
}

/* Tool Loader Indicator */
.tool-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tool-loader i {
  font-size: 2.25rem;
  color: var(--accent-cyan);
}

/* Port scan laser visual */
.scanner-laser {
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  border-radius: 50%;
  animation: laser-bounce 1.5s linear infinite;
  box-shadow: 0 0 8px var(--accent-cyan);
}

@keyframes laser-bounce {
  0% { transform: translateY(-10px) scaleX(0.7); opacity: 0.2; }
  50% { transform: translateY(10px) scaleX(1.1); opacity: 1; }
  100% { transform: translateY(-10px) scaleX(0.7); opacity: 0.2; }
}

/* --- Specific Tool Containers --- */

.tool-results {
  margin-top: 1.5rem;
  animation: slide-in var(--transition-normal);
}

/* Lists styling for resolved values */
.dns-result-list, .ip-address-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dns-result-list li, .ip-address-list li {
  padding: 0.6rem 0.8rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* WHOIS Panel Output */
.whois-result-container {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: slide-in var(--transition-normal);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

.whois-output {
  background-color: #0c0e17;
  color: #c7d2fe;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  max-height: 500px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* DNS Results Grid */
.dns-results-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: slide-in var(--transition-normal);
}

.dns-type-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dns-type-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* Global Tables Design */
.portscan-table, .blacklist-table, .dns-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  text-align: left;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.portscan-table th, .blacklist-table th, .dns-table th {
  background-color: var(--bg-tertiary);
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.portscan-table td, .blacklist-table td, .dns-table td {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.portscan-table tbody tr:hover, .blacklist-table tbody tr:hover, .dns-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.portscan-table tbody tr:last-child td, .blacklist-table tbody tr:last-child td, .dns-table tbody tr:last-child td {
  border-bottom: none;
}

/* Custom table fields value */
.dns-value-cell {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  word-break: break-all;
  color: #c7d2fe;
}

/* Port scanner statuses styles */
.portscan-results-container, .blacklist-results-container {
  margin-top: 1.5rem;
  animation: slide-in var(--transition-normal);
}

.port-status-open {
  color: #10b981;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.port-status-closed {
  color: var(--text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Blacklist result banner box */
.blacklist-summary-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  background-color: var(--bg-tertiary);
}

.blacklist-summary-card.listed {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.1) 100%);
}

.blacklist-summary-card.clean {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(10, 185, 129, 0.1) 100%);
}

.summary-icon {
  font-size: 2.25rem;
}

.listed .summary-icon { color: #ef4444; }
.clean .summary-icon { color: #10b981; }

.summary-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.summary-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Breach checker card grid */
.breach-list-container {
  margin-top: 2rem;
  animation: slide-in var(--transition-normal);
}

.breach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.breach-card {
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.breach-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--accent-rose);
}

.breach-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.breach-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.breach-details {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.breach-data-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breach-tag {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Speed Test Dashboard — complete redesign */
.speedtest-card {
  max-width: 1000px;
  margin: 0 auto;
}

.speedtest-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.speedtest-server-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(157, 78, 221, 0.1) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Phase Steps Bar */
.speedtest-phases {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  padding: 1.25rem 2rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.phase-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  opacity: 0.4;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.phase-step.phase-active,
.phase-step.phase-running {
  opacity: 1;
  transform: scale(1.05);
}

.phase-step.phase-done {
  opacity: 0.85;
}

.phase-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.phase-running .phase-icon {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
  animation: phase-pulse 1.2s ease-in-out infinite;
}

.phase-done .phase-icon {
  border-color: #10b981;
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.1);
}

@keyframes phase-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 242, 254, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 242, 254, 0.7); }
}

.phase-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.phase-running .phase-label,
.phase-done .phase-label { color: var(--text-primary); }

.phase-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.phase-running .phase-value { color: var(--accent-cyan); }
.phase-done .phase-value { color: #10b981; }

.phase-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border-color), var(--border-color));
  max-width: 60px;
  margin: 0 0.5rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

/* Main layout */
.speedtest-main {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

/* SVG Gauge */
.gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.speedtest-svg {
  width: 100%;
  max-width: 280px;
  overflow: visible;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

.gauge-track {
  stroke: var(--bg-tertiary);
}

.gauge-progress {
  stroke: url(#gauge-gradient);
  stroke: var(--accent-cyan);
  transition: stroke-dashoffset 0.15s ease-out;
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.6));
}

.gauge-ticks line {
  stroke: var(--border-color);
}

.gauge-label {
  fill: var(--text-muted);
  font-size: 10px;
  font-family: var(--font-mono);
}

.gauge-needle {
  stroke: #f3f4f6;
  transition: transform 0.15s ease-out;
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.5));
}

.gauge-center-dot {
  fill: var(--bg-secondary);
  stroke: var(--accent-cyan);
  stroke-width: 2;
}

.gauge-center-inner {
  fill: var(--accent-cyan);
}

/* Readout below gauge SVG */
.gauge-readout {
  text-align: center;
  margin-top: -0.5rem;
}

.gauge-speed-number {
  font-size: 4rem;
  font-weight: 900;
  font-family: var(--font-sans);
  letter-spacing: -3px;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.05s;
}

.gauge-unit {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.gauge-phase-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
}

/* GO Button */
.speedtest-go-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  border: none;
  color: white;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  box-shadow: 0 0 0 8px rgba(0, 242, 254, 0.08), 0 8px 25px rgba(0, 242, 254, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  letter-spacing: 1px;
}

.speedtest-go-btn i {
  font-size: 1.1rem;
}

.speedtest-go-btn span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.speedtest-go-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 12px rgba(0, 242, 254, 0.1), 0 12px 35px rgba(0, 242, 254, 0.45);
  filter: brightness(1.1);
}

.speedtest-go-btn:active {
  transform: scale(0.97);
}

.speedtest-go-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Right panel: live metric cards */
.speedtest-right-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.live-metric-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: border-color var(--transition-fast);
}

.live-metric-card.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.12);
}

.live-metric-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.live-metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.live-metric-icon.cyan { background: rgba(0, 242, 254, 0.12); color: var(--accent-cyan); }
.live-metric-icon.green { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.live-metric-icon.purple { background: rgba(157, 78, 221, 0.12); color: var(--accent-purple); }

.live-metric-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.live-metric-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.live-metric-status {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.live-metric-status.running {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-green 1.2s ease-in-out infinite;
}

.live-metric-status.done {
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* Animated speed bar tracks */
.live-bar-track {
  height: 6px;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.live-bar {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.2s ease-out;
  position: relative;
  overflow: hidden;
}

.live-bar::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
  animation: bar-shimmer 1.2s ease-in-out infinite;
}

@keyframes bar-shimmer {
  0% { opacity: 0; transform: translateX(-20px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateX(10px); }
}

.cyan-bar { background: linear-gradient(90deg, rgba(0,242,254,0.5), var(--accent-cyan)); }
.green-bar { background: linear-gradient(90deg, rgba(16,185,129,0.5), #10b981); }
.purple-bar { background: linear-gradient(90deg, rgba(157,78,221,0.5), var(--accent-purple)); }

/* Rating badge */
.speedtest-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  animation: slide-in var(--transition-normal);
}

.speedtest-rating.rating-excellent {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
}
.speedtest-rating.rating-good {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}
.speedtest-rating.rating-avg {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}
.speedtest-rating.rating-slow {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

@media (max-width: 768px) {
  .speedtest-main { grid-template-columns: 1fr; gap: 2rem; }
  .speedtest-phases { padding: 1rem; gap: 0; }
  .phase-connector { max-width: 30px; }
}

/* Personal Data Scan lists */
.exposure-indicators-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}


.exposure-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
}

.exposure-label-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
}

.exposure-label-wrapper i {
  font-size: 1.15rem;
}

.exposure-status {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* HTTP Headers Display */
.headers-wrapper {
  margin-top: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #0c0e17;
  padding: 1.5rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.headers-code-block {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.json-key { color: var(--accent-cyan); font-weight: 600; }
.json-val { color: #f59e0b; }
.json-num { color: var(--accent-purple); }
.json-boolean { color: #10b981; }

.style-mt-1 { margin-top: 1rem; }

/* ==========================================================================
   Responsive Breakpoints & Layout Shifts
   ========================================================================== */

@media (max-width: 1024px) {
  .app-sidebar {
    transform: translateX(-280px);
  }
  
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .close-sidebar-btn {
    display: block;
  }
  
  .hamburger-btn {
    display: flex;
  }
  
  .main-content-frame {
    margin-left: 0;
  }
  
  .view-header {
    padding: 1.25rem 1.25rem 1.25rem 5rem;
  }
  
  .views-wrapper {
    padding: 1.5rem;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .speedtest-dashboard {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Compact Fixed Header Bar on Mobile */
  .view-header {
    padding: 0.5rem 0.75rem 0.5rem 3.5rem !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    background-color: rgba(10, 14, 28, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 80 !important;
    border-bottom: 1px solid var(--border-color) !important;
  }

  .views-wrapper {
    padding: 0.75rem !important;
    padding-top: calc(56px + 0.75rem) !important; /* Clearance for fixed header */
  }

  /* Hamburger Menu Layout */
  .hamburger-btn {
    top: 8px !important;
    left: 8px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: var(--radius-md) !important;
    font-size: 1.1rem !important;
  }

  /* Inline Global Search Bar on Mobile */
  .search-container {
    flex-direction: row !important;
    width: 100% !important;
    gap: 0.35rem !important;
  }

  .search-input-wrapper input {
    padding: 0.6rem 1.75rem 0.6rem 2rem !important;
    font-size: 0.85rem !important;
    border-radius: var(--radius-md) !important;
    height: 40px !important;
  }

  .search-icon {
    left: 0.65rem !important;
    font-size: 0.8rem !important;
  }

  .clear-btn {
    right: 0.65rem !important;
    font-size: 0.85rem !important;
  }

  #search-btn {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: var(--radius-md) !important;
  }

  #search-btn span {
    display: none !important;
  }

  #search-btn i {
    margin: 0 !important;
    font-size: 1rem !important;
  }

  /* Compact Cards and Spacing */
  .card, .panel-card {
    padding: 1rem !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 1rem !important;
  }

  .card-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.4rem !important;
    gap: 0.5rem !important;
  }

  .section-desc {
    font-size: 0.78rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
  }

  .tool-form {
    margin: 0.5rem 0 1rem !important;
  }

  /* Inline Simple Input/Button Forms (WHOIS, DNSBL, Lookup, etc.) */
  .form-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    width: 100% !important;
    align-items: center !important;
  }

  .form-row input[type="text"], 
  .form-row input[type="email"] {
    flex-grow: 1 !important;
    width: 100% !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.85rem !important;
    height: 40px !important;
    border-radius: var(--radius-md) !important;
  }

  .form-row .primary-btn {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: var(--radius-md) !important;
  }

  .form-row .primary-btn span {
    display: none !important;
  }

  .form-row .primary-btn i {
    margin: 0 !important;
    font-size: 1rem !important;
  }

  /* Multi-Field Grid Forms */
  .form-grid, .form-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .form-group {
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
  }

  .form-group label {
    font-size: 0.75rem !important;
    margin-bottom: 0 !important;
    font-weight: 600 !important;
  }

  .form-group input, 
  .form-group select, 
  .form-group textarea {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.85rem !important;
    border-radius: var(--radius-md) !important;
  }

  .align-self-end {
    align-self: stretch !important;
  }

  /* Grid Forms Buttons: keep text but display full width */
  .form-grid .primary-btn, 
  .form-grid-3 .primary-btn,
  #traceemail-btn {
    width: 100% !important;
    height: 40px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-md) !important;
    margin-top: 0.25rem !important;
  }

  .form-grid .primary-btn span,
  .form-grid-3 .primary-btn span,
  #traceemail-btn span {
    display: inline !important;
  }

  #traceemail-input {
    height: 100px !important;
  }

  /* Map Heights & Table Overflow */
  .map-card {
    height: 220px !important;
  }

  .portscan-table, .blacklist-table, .dns-table {
    min-width: 500px !important;
  }

  .portscan-results-container, 
  .blacklist-results-container, 
  .dns-results-wrapper,
  .headers-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .headers-code-block {
    font-size: 0.78rem !important;
  }

  /* Dashboard Adjustments */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .ip-value-wrapper {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .ip-value-wrapper h1,
  .ip-value-wrapper h2,
  .ip-value-wrapper .ip-display-title {
    font-size: 1.65rem !important;
    word-break: break-all !important;
  }

  .metadata-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .grid-item {
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  .grid-item:last-child {
    border-bottom: none !important;
  }

  .grid-item.full-width {
    grid-column: span 1 !important;
  }

  /* Speed Test Adaptations */
  .speedtest-main {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .speedtest-phases {
    padding: 0.75rem 0.5rem !important;
    gap: 0.25rem !important;
  }

  .phase-label {
    display: none !important;
  }

  .phase-value {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
  }

  .phase-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
  }

  .phase-connector {
    height: 2px !important;
    max-width: 15px !important;
  }

  .speedtest-svg {
    max-width: 220px !important;
  }

  .gauge-speed-number {
    font-size: 3rem !important;
  }

  .speedtest-go-btn {
    width: 70px !important;
    height: 70px !important;
    font-size: 0.85rem !important;
  }
}

/* ==========================================================================
   Utility Classes & Missing Definitions
   ========================================================================== */

.align-self-end { align-self: flex-end; }
.red-text { color: #ef4444; }
.json-null { color: var(--text-muted); }
.text-muted { color: var(--text-muted); font-style: italic; }
.text-secondary { color: var(--text-secondary); }
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
.green-text { color: #10b981; }
.purple-text { color: var(--accent-purple); }
.cyan-text { color: var(--accent-cyan); }

.iplookup-results-container {
  margin-top: 1.5rem;
  animation: slide-in var(--transition-normal);
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animate fade-in for dashboard elements */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fade-in-delayed {
  animation: fade-in 0.65s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

/* Visually hidden but accessible screen reader utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Prevent image distortion */
img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
