:root {
  --font-sans: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Ocean / Geo Teal Dark Theme */
  --bg-page: #061318;
  --bg-glow-1: rgba(13, 148, 136, 0.22);
  --bg-glow-2: rgba(6, 182, 212, 0.12);
  --nav-bg: rgba(6, 19, 24, 0.90);
  --nav-border: rgba(20, 184, 166, 0.24);

  --hero-bg-1: #061318;
  --hero-bg-2: #082026;
  --hero-bg-3: #0b2f38;

  --card-bg: linear-gradient(180deg, rgba(10, 29, 36, 0.88) 0%, rgba(6, 19, 24, 0.95) 100%);
  --card-solid: #0a1d24;
  --card-border: rgba(20, 184, 166, 0.50);
  --card-border-soft: rgba(94, 234, 212, 0.18);
  --card-shadow: 0 0 26px rgba(20, 184, 166, 0.15), inset 0 1px 0 rgba(94, 234, 212, 0.22), inset 0 0 18px rgba(6, 182, 212, 0.08);

  --surface-sub: rgba(8, 28, 35, 0.78);
  --surface-sub-border: rgba(45, 212, 191, 0.18);
  --divider: rgba(94, 234, 212, 0.12);

  --text-primary: #f0fdfa;
  --text-secondary: #ccfbf1;
  --text-muted: #8fb8b4;
  --text-heading: #e6fffa;

  --hero-prefix: #5eead4;
  --hero-ip: #2dd4bf;
  --hero-ip-glow: 0 0 28px rgba(45, 212, 191, 0.38);

  --accent: #0d9488;
  --accent-bright: #2dd4bf;
  --emerald: #14b8a6;
  --disguise-fill-good: linear-gradient(90deg, #0d9488 0%, #14b8a6 55%, #06b6d4 100%);
  --track-bg: #0f2933;
  --gauge-track: rgba(255, 255, 255, 0.08);

  --icon-box-bg: rgba(20, 184, 166, 0.14);
  --icon-box-border: rgba(45, 212, 191, 0.34);
  --icon-box-color: #2dd4bf;

  --pill-bg: rgba(255, 255, 255, 0.07);
  --pill-border: rgba(45, 212, 191, 0.24);
  --pill-color: #e6fffa;
  --input-bg: rgba(8, 28, 35, 0.78);

  --badge-blue-bg: rgba(6, 182, 212, 0.20);
  --badge-blue-fg: #67e8f9;
  --badge-blue-border: rgba(34, 211, 238, 0.35);
  --badge-green-bg: rgba(20, 184, 166, 0.20);
  --badge-green-fg: #5eead4;
  --badge-green-border: rgba(45, 212, 191, 0.36);
  --badge-amber-bg: rgba(245, 158, 11, 0.2);
  --badge-amber-fg: #fbbf24;
  --badge-red-bg: rgba(239, 68, 68, 0.2);
  --badge-red-fg: #f87171;

  --footer-bg: rgba(4, 14, 18, 0.95);
  --disguise-text: #042f2e;
}

body.theme-day {
  --bg-page: #f0fdfa;
  --bg-glow-1: rgba(13, 148, 136, 0.15);
  --bg-glow-2: rgba(6, 182, 212, 0.10);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-border: #ccfbf1;

  --hero-bg-1: #ecfeff;
  --hero-bg-2: #ccfbf1;
  --hero-bg-3: #cffafe;

  --card-bg: #ffffff;
  --card-solid: #ffffff;
  --card-border: rgba(13, 148, 136, 0.28);
  --card-border-soft: #d5ebe8;
  --card-shadow: 0 8px 24px rgba(15, 118, 110, 0.06);

  --surface-sub: #f6fefc;
  --surface-sub-border: #d5ebe8;
  --divider: #e6f7f4;

  --text-primary: #0f292e;
  --text-secondary: #284b52;
  --text-muted: #5b7c82;
  --text-heading: #0b2429;

  --hero-prefix: #0f766e;
  --hero-ip: #0d9488;
  --hero-ip-glow: none;

  --accent: #0f766e;
  --accent-bright: #0d9488;
  --emerald: #059669;
  --track-bg: #134e4a;
  --gauge-track: #d5ebe8;

  --icon-box-bg: #f0fdfa;
  --icon-box-border: #99f6e4;
  --icon-box-color: #0d9488;

  --pill-bg: #f0fdfa;
  --pill-border: #99f6e4;
  --pill-color: #0f292e;
  --input-bg: #f6fefc;

  --badge-blue-bg: #ccfbf1;
  --badge-blue-fg: #0f766e;
  --badge-blue-border: #99f6e4;
  --badge-green-bg: #dcfce7;
  --badge-green-fg: #15803d;
  --badge-green-border: #86efac;
  --badge-amber-bg: #fef3c7;
  --badge-amber-fg: #b45309;
  --badge-red-bg: #fee2e2;
  --badge-red-fg: #b91c1c;

  --footer-bg: #ffffff;
  --disguise-text: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(ellipse 70% 420px at 50% 0%, var(--bg-glow-1), transparent 72%),
    radial-gradient(ellipse 50% 340px at 78% 12%, var(--bg-glow-2), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hidden { display: none !important; }
.mono { font-family: var(--font-mono); }
.mono-sm { font-family: var(--font-mono); font-size: 0.86rem; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  color: var(--text-primary); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.04em; flex-shrink: 0;
}
.brand-main { color: var(--text-primary); }
.brand-tld { color: var(--accent-bright); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  background: none; border: 1px solid transparent; color: var(--text-secondary);
  font-family: inherit; font-size: 0.92rem; font-weight: 600;
  text-decoration: none; padding: 6px 13px; border-radius: 9px; cursor: pointer; transition: all 0.15s;
}
.nav-link:hover, .nav-link.active {
  background: rgba(20, 184, 166, 0.16);
  border-color: rgba(45, 212, 191, 0.32);
  color: var(--text-primary);
}
body.theme-day .nav-link:hover, body.theme-day .nav-link.active {
  background: #ccfbf1;
  border-color: #99f6e4;
  color: #0f766e;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }

.search-box {
  display: flex; align-items: center; background: var(--input-bg); border: 1px solid var(--pill-border);
  border-radius: 9px; padding: 0 4px 0 11px; height: 36px; width: 220px; transition: all 0.2s;
}
.search-box:focus-within { border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18); }
.search-box input {
  border: none; background: transparent; outline: none; font-family: inherit;
  font-size: 0.86rem; color: var(--text-primary); width: 100%;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 4px 6px; display: flex; align-items: center; border-radius: 6px;
}
.search-btn:hover { color: var(--accent-bright); }

.icon-pill, .lang-dropdown {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pill-bg); border: 1px solid var(--pill-border); color: var(--pill-color);
  font-family: inherit; font-size: 0.84rem; font-weight: 600;
  height: 36px; padding: 0 11px; border-radius: 9px; cursor: pointer; transition: all 0.15s;
}
.icon-pill:hover { border-color: var(--accent-bright); }
.lang-dropdown select {
  background: transparent; border: none; color: var(--pill-color);
  font-family: inherit; font-size: 0.84rem; font-weight: 600; outline: none; cursor: pointer;
}
.lang-dropdown select option { background: #0a1d24; color: #f0fdfa; }
body.theme-day .lang-dropdown select option { background: #ffffff; color: #0f292e; }

/* Hero */
.hero {
  background-color: transparent;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.22) 0%, transparent 66%),
    linear-gradient(to right, rgba(45, 212, 191, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 212, 191, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  padding: 34px 0 28px;
}
body.theme-day .hero {
  background-image:
    linear-gradient(180deg, #ccfbf1 0%, #f0fdfa 100%),
    linear-gradient(to right, rgba(13, 148, 136, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 148, 136, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.ip-headline { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.ip-headline-text { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ip-title-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.ip-title {
  font-size: clamp(1.9rem, 4.1vw, 2.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.ip-prefix-glow { color: var(--hero-prefix); text-shadow: 0 0 24px rgba(45, 212, 191, 0.35); }
body.theme-day .ip-prefix-glow { text-shadow: none; }
.ip-value-glow { color: var(--hero-ip); text-shadow: var(--hero-ip-glow); }

.flag-circle-wrap {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(45, 212, 191, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.flag-circle { width: 100%; height: 100%; object-fit: cover; }
.flag-emoji { font-size: 1.75rem; }

.copy-btn {
  position: relative; background: var(--pill-bg); border: 1px solid var(--pill-border);
  color: var(--accent-bright); width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s;
}
.copy-btn:hover { background: rgba(20, 184, 166, 0.18); border-color: var(--accent-bright); }
.copied-toast {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%); background: #0d9488; color: #fff;
  font-size: 0.76rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; white-space: nowrap;
}

.location-subtitle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 1.04rem; color: var(--text-secondary); font-weight: 500;
}
.hero-geo-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 6px;
}
.hero-coords-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pill-bg); border: 1px solid var(--pill-border); color: var(--text-secondary);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.hero-gps-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(13, 148, 136, 0.16); border: 1px solid rgba(45, 212, 191, 0.38); color: var(--accent-bright);
  font-size: 0.8rem; font-weight: 700; padding: 5px 13px; border-radius: 999px; text-decoration: none;
  transition: all 0.15s;
}
.hero-gps-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
body.theme-day .hero-gps-btn { background: #ffffff; border-color: #5eead4; color: #0f766e; }
body.theme-day .hero-gps-btn:hover { background: #0f766e; color: #fff; border-color: #0f766e; }
.sub-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.error-banner {
  width: 100%; max-width: 820px; background: rgba(239, 68, 68, 0.18); border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca; padding: 10px 16px; border-radius: 10px; margin-top: 14px; font-size: 0.9rem; text-align: center;
}
body.theme-day .error-banner { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

/* Cyber Glass 3-Card Bento Dashboard */
.bento-section { margin-top: 4px; position: relative; z-index: 10; }
.bento-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--card-shadow);
  min-width: 0;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.bento-title {
  font-size: 1.05rem; font-weight: 700; color: var(--text-heading);
  margin-bottom: 16px;
}
.bento-rows { display: flex; flex-direction: column; gap: 11px; }
.b-row { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; min-height: 28px; }

.b-icon-box {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--icon-box-bg); border: 1px solid var(--icon-box-border); color: var(--icon-box-color);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.b-icon-box.brand-slot { background: var(--icon-box-bg); padding: 4px; }
.b-label { color: var(--text-muted); font-weight: 500; min-width: 78px; flex-shrink: 0; white-space: nowrap; }
.b-val {
  color: var(--text-primary); font-weight: 600; font-size: 0.89rem; display: inline-flex; align-items: center; gap: 6px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.mini-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.country-mini { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.status-dot.green { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
.status-dot.red { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.7); }
.status-dot.amber { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.7); }
body.theme-day .status-dot { box-shadow: none; }

.pill-badge {
  display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px;
  font-size: 0.79rem; font-weight: 700; text-transform: capitalize; border: 1px solid transparent;
}
.badge-blue { background: var(--badge-blue-bg); color: var(--badge-blue-fg); border-color: var(--badge-blue-border); }
.badge-green { background: var(--badge-green-bg); color: var(--badge-green-fg); border-color: var(--badge-green-border); }
.badge-amber { background: var(--badge-amber-bg); color: var(--badge-amber-fg); }
.badge-red { background: var(--badge-red-bg); color: var(--badge-red-fg); }

/* 2-Column Anonymity Score Gauge + Disguise Checks (Matching Mockup!) */
.disguise-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: stretch;
}
.score-gauge-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-wrap {
  position: relative;
  width: 210px;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gauge-svg { width: 210px; height: 175px; overflow: visible; }
.gauge-track { fill: none; stroke: var(--gauge-track); stroke-width: 15; stroke-linecap: round; }
.gauge-arc {
  fill: none;
  stroke: #2dd4bf;
  stroke-width: 15;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.3s ease;
  filter: drop-shadow(0 0 14px rgba(45, 212, 191, 0.55));
}
.gauge-arc.warn { stroke: #f59e0b; filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.45)); }
.gauge-arc.danger { stroke: #ef4444; filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.45)); }
body.theme-day .gauge-arc { filter: none; }
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  text-align: center;
}
.gauge-value { font-size: 2.35rem; font-weight: 800; color: var(--hero-ip); line-height: 1.05; }
.gauge-label { font-size: 0.86rem; font-weight: 600; color: var(--text-muted); margin-top: 4px; }

.disguise-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.disguise-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--card-border-soft);
  border-radius: 16px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--card-shadow);
}
.disguise-track {
  flex: 1; height: 42px; background: var(--track-bg);
  border-radius: 999px; overflow: hidden; position: relative;
}
.disguise-fill {
  height: 100%; background: var(--disguise-fill-good);
  border-radius: 999px; transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.disguise-fill.warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.disguise-fill.danger { background: linear-gradient(90deg, #ef4444, #f87171); }
.disguise-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 14px; gap: 8px;
  font-weight: 700; font-size: 0.84rem; color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.theme-day .disguise-overlay { color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.disguise-shield { display: inline-flex; align-items: center; flex-shrink: 0; }
.hide-btn {
  background: var(--pill-bg); border: 1px solid var(--pill-border); color: var(--text-primary);
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; flex-shrink: 0;
}
.hide-btn:hover { border-color: var(--accent-bright); }

/* Individual Check Cards (Matching Mockup!) */
.breakdown-card { background: transparent; border: none; padding: 0; margin: 0; }
.checks-list { display: flex; flex-direction: column; gap: 10px; }
.check-item {
  display: flex; align-items: center; gap: 15px; padding: 14px 18px;
  background: rgba(10, 29, 36, 0.88);
  border: 1px solid var(--card-border-soft);
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
body.theme-day .check-item { background: var(--card-bg); box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04); }
.check-badge {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.88rem; flex-shrink: 0; border: 1px solid transparent;
}
.check-body { flex: 1; min-width: 0; }
.check-penalty {
  font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; flex-shrink: 0;
  border: 1px solid transparent;
}
.check-penalty.amber { background: rgba(245, 158, 11, 0.16); border-color: rgba(251, 191, 36, 0.36); color: #fbbf24; }
.check-penalty.orange { background: rgba(249, 115, 22, 0.16); border-color: rgba(251, 146, 60, 0.38); color: #fb923c; }
.check-penalty.red { background: rgba(239, 68, 68, 0.16); border-color: rgba(248, 113, 113, 0.4); color: #f87171; }
body.theme-day .check-penalty.amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
body.theme-day .check-penalty.orange { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
body.theme-day .check-penalty.red { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.check-badge.green { background: rgba(16, 185, 129, 0.16); border-color: rgba(52, 211, 153, 0.38); color: #34d399; }
.check-badge.amber { background: rgba(245, 158, 11, 0.16); border-color: rgba(251, 191, 36, 0.38); color: #fbbf24; }
.check-badge.orange { background: rgba(249, 115, 22, 0.16); border-color: rgba(251, 146, 60, 0.4); color: #fb923c; }
.check-badge.red { background: rgba(239, 68, 68, 0.16); border-color: rgba(248, 113, 113, 0.42); color: #f87171; }
body.theme-day .check-badge.green { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
body.theme-day .check-badge.amber { background: #fffbeb; color: #d97706; border-color: #fde68a; }
body.theme-day .check-badge.orange { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }
body.theme-day .check-badge.red { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

.check-body h4 { font-size: 0.96rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.check-body p { font-size: 0.86rem; color: var(--text-muted); }

/* Wide Map Card (Prominent Geolocation Map) */
.wide-map-card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px; padding: 12px;
  box-shadow: var(--card-shadow); margin-bottom: 18px;
}
.map-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 2px 6px 10px;
}
.map-header-left { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.map-pin-badge {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--icon-box-bg); border: 1px solid var(--icon-box-border); color: var(--icon-box-color);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.map-header-title { font-size: 0.96rem; font-weight: 700; color: var(--text-heading); }
.map-header-loc { font-size: 0.86rem; color: var(--text-muted); font-weight: 500; }
.map-header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.map-coords-tag {
  background: var(--surface-sub); border: 1px solid var(--surface-sub-border); color: var(--accent-bright);
  padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: 0.78rem;
}
.map-gps-link {
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; transition: filter 0.15s;
}
.map-gps-link:hover { filter: brightness(1.1); }
.wide-map-box { width: 100%; height: 310px; border-radius: 12px; z-index: 1; border: 1px solid var(--surface-sub-border); }

/* Extended Section */
.extended-section { padding: 10px 0 56px; }
.section-title { font-size: 1.32rem; font-weight: 800; margin-bottom: 18px; color: var(--text-heading); }
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 22px; }
.detail-card {
  background: var(--card-bg); border: 1px solid var(--card-border-soft); border-radius: 16px;
  padding: 20px; box-shadow: var(--card-shadow);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--divider);
}
.card-header h3 { font-size: 1rem; font-weight: 700; color: var(--text-heading); }
.mini-badge {
  background: var(--pill-bg); border: 1px solid var(--pill-border); color: var(--text-secondary);
  font-size: 0.76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}

.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.kv-item {
  display: flex; flex-direction: column; padding: 9px 11px;
  background: var(--surface-sub); border: 1px solid var(--surface-sub-border); border-radius: 10px;
}
.kv-key { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 2px; }
.kv-val { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); word-break: break-word; }

.flags-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.flag-chip { font-size: 0.76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid transparent; }
.flag-chip.safe { background: var(--badge-green-bg); color: var(--badge-green-fg); border-color: var(--badge-green-border); }
.flag-chip.alert { background: var(--badge-red-bg); color: var(--badge-red-fg); border-color: rgba(248, 113, 113, 0.35); }

/* SEO Guide Card */
.seo-guide-card { margin-top: 20px; padding: 28px 32px; }
.seo-guide-card h2 { font-size: 1.32rem; font-weight: 800; color: var(--text-heading); margin-bottom: 12px; }
.seo-guide-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--accent-bright); margin: 16px 0 8px; }
body.theme-day .seo-guide-card h3 { color: #0f766e; }
.seo-guide-card p { font-size: 0.95rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 12px; }
.seo-guide-card ul { margin: 8px 0 14px; padding-inline-start: 22px; color: var(--text-secondary); font-size: 0.94rem; line-height: 1.75; }
.seo-guide-card li { margin-bottom: 6px; }
.seo-guide-card a { color: var(--accent-bright); font-weight: 600; }

/* Latest Blog 3-Column Cards */
.latest-blog-wrap { margin-top: 28px; }
.latest-blog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.view-all-link { color: var(--accent-bright); text-decoration: none; font-weight: 700; font-size: 0.94rem; }
.view-all-link:hover { text-decoration: underline; }
.home-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-post-card {
  background: var(--card-bg); border: 1px solid var(--card-border-soft); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  box-shadow: var(--card-shadow); transition: transform 0.15s, border-color 0.15s;
}
.home-post-card:hover { transform: translateY(-3px); border-color: var(--accent-bright); }
.post-thumb {
  height: 138px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 58%, #14b8a6 100%); position: relative;
}
.post-thumb.t1 { background: linear-gradient(135deg, #062129 0%, #0e7490 58%, #06b6d4 100%); }
.post-thumb.t2 { background: linear-gradient(135deg, #071f24 0%, #115e59 58%, #2dd4bf 100%); }
.post-thumb-brand { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: #99f6e4; text-transform: uppercase; }
.post-thumb-title { font-size: 1rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.home-post-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.76rem; color: var(--text-muted); }
.home-post-cat { background: var(--badge-blue-bg); color: var(--badge-blue-fg); font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.home-post-body h3 { font-size: 0.98rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.home-post-body p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.home-post-more { color: var(--accent-bright); font-weight: 700; font-size: 0.85rem; }

/* Subpage Shared Components (Blog, Post, CMS Page, WHOIS, My Location) */
.blog-hero {
  background: radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.22) 0%, transparent 65%);
  color: var(--text-primary);
  padding: 36px 0 40px;
  text-align: center;
}
body.theme-day .blog-hero { background: linear-gradient(180deg, #ccfbf1 0%, #f0fdfa 100%); }
.blog-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); margin-bottom: 8px; color: var(--text-heading); }
.blog-hero p { color: var(--text-secondary); max-width: 660px; margin: 0 auto 20px; font-size: 1.02rem; }
.blog-search {
  max-width: 480px; margin: 0 auto; display: flex;
  background: var(--input-bg); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 4px 6px 4px 16px;
}
.blog-search input { flex: 1; background: transparent; border: none; color: var(--text-primary); outline: none; font-size: 0.95rem; font-family: inherit; }
.blog-search input::placeholder { color: var(--text-muted); }
.blog-search button { background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 8px 18px; font-weight: 700; cursor: pointer; font-family: inherit; }

.blog-wrap { padding: 24px 0 60px; }
.cat-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; justify-content: center; }
.cat-pill {
  background: var(--card-solid); border: 1px solid var(--card-border-soft); color: var(--text-secondary);
  padding: 7px 15px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.cat-pill:hover, .cat-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  background: var(--card-bg); border: 1px solid var(--card-border-soft); border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit;
  box-shadow: var(--card-shadow); transition: transform 0.15s, border-color 0.15s;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--accent-bright); }
.post-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); gap: 8px; }
.post-cat { background: var(--badge-blue-bg); color: var(--badge-blue-fg); font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.post-card h2 { font-size: 1.08rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.post-card p { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.post-read-more { color: var(--accent-bright); font-weight: 700; font-size: 0.88rem; }

.article-wrap, .cms-wrap { padding: 36px 0 64px; min-height: 70vh; }
.article-box, .cms-card {
  max-width: 860px; margin: 0 auto; background: var(--card-bg);
  border: 1px solid var(--card-border-soft); border-radius: 18px; padding: 36px 40px;
  box-shadow: var(--card-shadow);
}
.crumbs { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--accent-bright); text-decoration: none; font-weight: 600; }
.art-meta { display: flex; align-items: center; gap: 12px; font-size: 0.86rem; color: var(--text-muted); margin-bottom: 14px; flex-wrap: wrap; }
.art-cat { background: var(--badge-blue-bg); color: var(--badge-blue-fg); font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.article-box h1, .cms-card h1 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.3; margin-bottom: 20px; color: var(--text-heading); }
.art-body h2, .cms-body h2 { font-size: 1.32rem; margin: 24px 0 10px; color: var(--text-heading); }
.art-body h3, .cms-body h3 { font-size: 1.1rem; margin: 18px 0 8px; color: var(--accent-bright); }
body.theme-day .art-body h3, body.theme-day .cms-body h3 { color: #0f766e; }
.art-body p, .cms-body p { font-size: 1.02rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 14px; }
.art-body ul, .art-body ol, .cms-body ul, .cms-body ol { margin: 10px 0 18px 24px; color: var(--text-secondary); line-height: 1.75; }
.art-body li, .cms-body li { margin-bottom: 6px; }
.art-body a, .cms-body a { color: var(--accent-bright); font-weight: 600; }

.cta-box {
  margin-top: 30px; padding: 22px 24px; border-radius: 14px;
  background: linear-gradient(135deg, #042f2e 0%, #0e4f58 100%);
  border: 1px solid rgba(45, 212, 191, 0.38); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cta-box h3 { font-size: 1.12rem; margin-bottom: 4px; color: #fff; }
.cta-box p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); margin: 0; }
.cta-btn { background: #14b8a6; color: #042f2e; text-decoration: none; font-weight: 800; padding: 10px 22px; border-radius: 999px; white-space: nowrap; }

.related-sec { max-width: 860px; margin: 32px auto 0; }
.related-sec h3 { font-size: 1.15rem; margin-bottom: 14px; color: var(--text-heading); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel-card {
  background: var(--card-bg); border: 1px solid var(--card-border-soft); border-radius: 12px;
  padding: 16px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px;
}
.rel-card:hover { border-color: var(--accent-bright); }
.rel-card strong { font-size: 0.94rem; color: var(--text-primary); line-height: 1.4; }
.rel-card span { font-size: 0.78rem; color: var(--text-muted); }

/* My Location & WHOIS Controls */
.loc-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.loc-btn { border: none; font-family: inherit; font-size: 0.92rem; font-weight: 700; padding: 10px 22px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.loc-btn.gps { background: #0d9488; color: #fff; }
.loc-btn.gps:hover { filter: brightness(1.08); }
.loc-btn.maps { background: var(--pill-bg); color: var(--text-primary); border: 1px solid var(--pill-border); }
.loc-btn.maps:hover { border-color: var(--accent-bright); }
.big-loc-map { width: 100%; height: 340px; border-radius: 12px; z-index: 1; }

.whois-search-bar {
  width: 100%; max-width: 620px; display: flex; gap: 8px; margin-top: 18px;
  background: var(--input-bg); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 5px 6px 5px 18px;
}
.whois-search-bar input { flex: 1; background: transparent; border: none; color: var(--text-primary); font-size: 1rem; font-family: var(--font-mono); outline: none; min-width: 0; }
.whois-search-bar input::placeholder { color: var(--text-muted); font-family: var(--font-sans); }
.whois-search-bar button { background: #0d9488; color: #fff; border: none; border-radius: 999px; padding: 9px 22px; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap; }
.whois-search-bar button:hover { filter: brightness(1.08); }
.sample-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
.sample-pill {
  background: var(--pill-bg); border: 1px solid var(--pill-border); color: var(--text-secondary);
  font-size: 0.8rem; font-family: var(--font-mono); padding: 4px 12px; border-radius: 999px; text-decoration: none;
}
.sample-pill:hover { border-color: var(--accent-bright); color: var(--text-primary); }
.rec-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.rec-item {
  background: var(--surface-sub); border: 1px solid var(--surface-sub-border); border-radius: 8px;
  padding: 7px 10px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-primary); word-break: break-all;
}
.status-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.status-tag { background: var(--badge-blue-bg); color: var(--badge-blue-fg); font-size: 0.74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

/* Ad Slots */
.ad-slot.ad-hero {
  width: 100%; max-width: 900px; background: var(--card-bg); border: 1px solid var(--card-border-soft);
  border-radius: 999px; padding: 10px 18px; margin-top: 16px; color: var(--text-primary);
}
.ad-slot.ad-banner {
  margin: 16px auto; background: var(--card-bg); border: 1px solid var(--card-border-soft);
  border-radius: 14px; padding: 12px 16px; overflow: hidden;
}

/* Footer & DMCA */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--nav-border);
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--accent-bright); }
.dmca-pill {
  display: inline-flex; align-items: center; gap: 5px; background: #0f172a; color: #e2e8f0; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 5px; text-decoration: none; border: 1px solid #334155;
}
.dmca-pill span { color: #22c55e; }

/* GDPR Cookie Consent (Bottom-Left) */
.gdpr-box {
  position: fixed; bottom: 18px; left: 18px; z-index: 999; width: 340px; max-width: calc(100vw - 36px);
  background: #061b22; color: #f0fdfa; border: 1px solid rgba(45, 212, 191, 0.34); border-radius: 14px;
  padding: 16px 18px; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45); font-size: 0.86rem; line-height: 1.55;
}
.gdpr-title { font-weight: 700; font-size: 0.94rem; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.gdpr-box p { color: #ccfbf1; margin-bottom: 12px; }
.gdpr-box a { color: #2dd4bf; text-decoration: underline; }
.gdpr-actions { display: flex; gap: 8px; }
.gdpr-btn { flex: 1; border: none; font-family: inherit; font-size: 0.82rem; font-weight: 700; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.gdpr-btn.accept { background: #0d9488; color: #fff; }
.gdpr-btn.decline { background: rgba(255, 255, 255, 0.12); color: #e2e8f0; }

/* Responsive */
@media (max-width: 1120px) {
  .nav-inner { gap: 10px; }
  .nav-link { padding: 6px 9px; font-size: 0.85rem; white-space: nowrap; }
  .search-box { width: 165px; }
}
@media (max-width: 980px) {
  .bento-grid { grid-template-columns: minmax(0, 1fr); }
  .disguise-grid { grid-template-columns: minmax(0, 1fr); }
  .home-blog-grid, .posts-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .cards-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .article-box, .cms-card { padding: 22px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .nav-inner { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 10px; }
  .brand { font-size: 1.1rem; }
  .nav-actions { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
  .search-box { order: 3; width: 100%; height: 36px; }
  .icon-pill, .lang-dropdown { height: 32px; font-size: 0.82rem; padding: 0 9px; }
  .hero { padding: 24px 0 24px; }
  .flag-circle-wrap { width: 44px; height: 44px; }
  .ip-title { font-size: clamp(1.35rem, 6vw, 1.9rem); gap: 8px; }
  .location-subtitle { font-size: 0.94rem; }
  .bento-card { padding: 16px; }
  .b-row { align-items: flex-start; gap: 8px; font-size: 0.88rem; }
  .b-label { min-width: 74px; padding-top: 3px; }
  .b-val { white-space: normal; word-break: break-word; flex-wrap: wrap; overflow: visible; padding-top: 3px; }
  .disguise-wrapper { flex-direction: column; align-items: stretch; gap: 8px; }
  .disguise-overlay { font-size: 0.8rem; padding: 0 10px; }
  .hide-btn { width: 100%; }
  .wide-map-box { height: 230px; }
  .kv-grid { grid-template-columns: minmax(0, 1fr); }
  .seo-guide-card { padding: 20px 18px; }
  .gdpr-box { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
