/* ===================================================================
   WhatsMyIP.now – Mobile-first stylesheet
   Color palette: #1a3c6e (navy), #2a7de1 (blue), #00b386 (green),
                  #f0f4fb (light bg), #ffffff, #333
=================================================================== */

/* ── Reset & base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; display: flex; flex-direction: column; }
a { color: #2a7de1; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Accessibility ──────────────────────────────────────────────── */
.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;
}
.skip-link {
  position: absolute; top: -50px; left: 0; z-index: 10000;
  background: #2a7de1; color: #fff; padding: .6rem 1.25rem;
  font-weight: 600; border-radius: 0 0 8px 0; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ── Container ──────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 780px; }
/* .prose: narrows content inside a full .container so its left edge aligns with adjacent full-width sections */
.prose { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ── Typography ─────────────────────────────────────────────────── */
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.25; margin-bottom: .75rem; }
h2 { font-size: clamp(1.2rem, 3vw, 1.75rem); font-weight: 600; margin-bottom: .5rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; }
p  { margin-bottom: .75rem; }
code, pre { font-family: "SF Mono", "Fira Code", Consolas, monospace; font-size: .875rem; }
.code-block { background: #f6f8fa; border: 1px solid #e1e4e8; border-radius: 6px; padding: 1rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.font-mono { font-family: "SF Mono", "Fira Code", Consolas, monospace; }

/* Section intro paragraph — used across many pages */
.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.5rem;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.2rem; border-radius: 6px; font-size: .9rem; font-weight: 500;
  cursor: pointer; border: 2px solid transparent; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap; min-height: 44px;
}
.btn-primary  { background: #2a7de1; color: #fff; border-color: #2a7de1; }
.btn-primary:hover  { background: #1a6bc8; text-decoration: none; }
.btn-outline  { background: transparent; color: #2a7de1; border-color: #2a7de1; }
.btn-outline:hover  { background: #e8f1fd; text-decoration: none; }
.btn-ghost    { background: transparent; color: #555; border-color: transparent; }
.btn-ghost:hover { background: #f0f4fb; text-decoration: none; }
.site-header .btn-ghost { color: rgba(255,255,255,.82); }
.site-header .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-danger   { background: #dc3545; color: #fff; border-color: #dc3545; }
.btn-warning  { background: #ffc107; color: #212529; border-color: #ffc107; }
.btn-success  { background: #198754; color: #fff; border-color: #198754; }
.btn-hero { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); border-radius: 6px; min-height: 44px; }
.btn-hero:hover { background: #fff; color: #1a3c6e; border-color: #fff; text-decoration: none; }
.btn-sm  { font-size: .8rem; padding: .35rem .85rem; min-height: 36px; }
.btn-lg  { font-size: 1rem; padding: .7rem 1.6rem; min-height: 48px; }
.btn-xs  { font-size: .75rem; padding: .2rem .5rem; min-height: 30px; }
.btn-block { width: 100%; justify-content: center; margin-top: .5rem; }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: .35rem; font-size: .9rem; }
.form-control {
  width: 100%; padding: .55rem .85rem; font-size: 1rem;
  border: 1px solid #ccc; border-radius: 6px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
  min-height: 44px;
}
.form-control:focus { outline: none; border-color: #2a7de1; box-shadow: 0 0 0 3px rgba(42,125,225,.15); }
.form-control-lg { padding: .75rem 1rem; font-size: 1.05rem; min-height: 50px; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-error { color: #dc3545; font-size: .82rem; display: block; margin-top: .25rem; }
.form-check { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; cursor: pointer; }
.form-row { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.form-row .form-group { margin-bottom: 0; }
.flex-grow { flex: 1; min-width: 0; }
.search-form { display: flex; gap: .5rem; margin-bottom: 1rem; }
.search-form .form-control { max-width: 320px; }

/* ── Alerts / Flash ─────────────────────────────────────────────── */
.flash-container { padding: .75rem 0; }
.alert {
  display: block;
  padding: .75rem 1rem; border-radius: 8px; margin-bottom: .5rem;
  font-size: .9rem; margin-left: auto; margin-right: auto;
}
.alert-success  { background: #d1f3e0; color: #0a5c30; }
.alert-danger   { background: #fde8ea; color: #842029; }
.alert-warning  { background: #fff3cd; color: #664d03; }
.alert-info     { background: #cff4fc; color: #055160; }
.alert-close { background: none; border: none; cursor: pointer; font-size: 1.2rem; padding: 0; opacity: .6; min-width: 32px; min-height: 32px; float: right; margin-left: .5rem; }
.alert-close:hover { opacity: 1; }

/* ── Badges ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .2rem;
  padding: .2rem .55rem; border-radius: 20px;
  font-size: .75rem; font-weight: 600; background: #e0e0e0; color: #333;
  white-space: nowrap;
}
.badge-success { background: #d1f3e0; color: #0a5c30; }
.badge-warn    { background: #fff3cd; color: #664d03; }
.badge-danger  { background: #fde8ea; color: #842029; }
.badge-info    { background: #cff4fc; color: #055160; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header { background: #1a3c6e; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.header-inner { display: flex; align-items: center; gap: .5rem; height: 64px; }

.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; flex-shrink: 0; }
.logo-icon { font-size: 1.4rem; }
.logo-text { font-size: 1.05rem; font-weight: 700; color: #fff; white-space: nowrap; }
.logo-accent { color: #00b386; }
.logo-sm .logo-text { font-size: .95rem; }

/* ── Nav search (icon button + dropdown) ────────────────────────── */
.nav-search-toggle {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 5px; border: none;
  background: none; color: rgba(255,255,255,.85); cursor: pointer;
  flex-shrink: 0; transition: background .15s, color .15s;
}
.nav-search-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-search-toggle svg { display: block; }
@media (min-width: 900px) { .nav-search-toggle { display: flex; } }

.nav-search-dropdown {
  display: none; position: absolute; top: 100%; right: 0; left: 0;
  background: #1a3c6e; border-top: 1px solid rgba(255,255,255,.12);
  padding: .75rem 1rem; z-index: 200; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.nav-search-dropdown.open { display: block; }
.nav-search-dropdown-inner {
  display: flex; align-items: stretch; max-width: 480px; margin: 0 auto;
  border-radius: 8px; overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1);
}
.nav-search-dropdown-inner:focus-within { border-color: #4db8ff; background: rgba(255,255,255,.16); }
.nav-search-input {
  flex: 1; padding: .55rem .9rem; background: transparent; border: none; outline: none;
  color: #fff; font-size: .9rem; min-width: 0;
}
.nav-search-input::placeholder { color: rgba(255,255,255,.5); }
.nav-search-btn {
  display: flex; align-items: center; padding: .55rem 1rem;
  background: #2a7de1; border: none; cursor: pointer; color: #fff;
  font-size: .88rem; font-weight: 600; flex-shrink: 0; transition: background .15s;
  gap: .4rem;
}
.nav-search-btn:hover { background: #1a6bc8; }

.main-nav { display: none; align-items: center; gap: .25rem; flex-shrink: 0; }
.nav-link {
  color: rgba(255,255,255,.85); font-size: .88rem; padding: .4rem .7rem;
  border-radius: 5px; background: none; border: none; cursor: pointer;
  text-decoration: none; display: block; min-height: 36px;
  display: flex; align-items: center;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }

.nav-dropdown { position: relative; }
.nav-dropdown-btn { display: flex; align-items: center; gap: .25rem; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid #ddd; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 200px; padding: .5rem 0;
  z-index: 200;
}
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: .5rem 1rem; color: #333; font-size: .88rem; min-height: 40px; display: flex; align-items: center; }
.nav-dropdown-menu a:hover { background: #f0f4fb; text-decoration: none; }

/* Mega menu — Tools dropdown */
.nav-mega-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: min(820px, 96vw); background: #fff; border: 1px solid #ddd; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.16); padding: 1.1rem 1.1rem .7rem; z-index: 9999;
  flex-direction: row; flex-wrap: wrap; gap: 0;
}
.tools-mega-dropdown.is-open .nav-mega-menu { display: flex; }
.mega-col { flex: 1; min-width: 170px; padding: 0 .85rem; border-right: 1px solid #f0f0f0; }
.mega-col:last-of-type { border-right: none; }
.mega-col-title {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: #2a7de1; padding: .25rem .4rem .45rem; border-bottom: 1px solid #e8f1fd;
  margin-bottom: .35rem; white-space: nowrap;
}
.mega-col a {
  display: block; padding: .32rem .4rem; font-size: .83rem; color: #333;
  border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-height: 32px; display: flex; align-items: center;
}
.mega-col a:hover { background: #e8f1fd; color: #1a3c6e; text-decoration: none; }
.mega-footer {
  width: 100%; padding: .55rem .4rem 0; border-top: 1px solid #f0f0f0;
  margin-top: .5rem; text-align: right; flex-basis: 100%; order: 99;
}
.mega-all-tools { font-size: .83rem; font-weight: 600; color: #2a7de1; }
.mega-all-tools:hover { text-decoration: underline; }

.header-actions { display: none; align-items: center; gap: .5rem; margin-left: auto; }
.mobile-menu-btn {
  display: flex; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: .5rem; margin-left: auto; min-width: 44px; min-height: 44px;
  justify-content: center; align-items: center;
}
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.mobile-nav {
  background: #112a50; padding: .5rem .75rem .75rem; flex-direction: column; gap: 2px;
}
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav > a { color: rgba(255,255,255,.85); padding: .45rem .6rem; border-radius: 5px; display: flex; align-items: center; font-size: .92rem; min-height: 40px; }
.mobile-nav > a:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }

/* All Tools accordion */
.mobile-nav-accordion { display: flex; flex-direction: column; }
.mobile-nav-accordion-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.85); padding: .45rem .6rem; border-radius: 5px;
  font-size: .92rem; min-height: 40px; text-align: left;
}
.mobile-nav-accordion-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.mobile-nav-accordion-btn[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.08); }
.mobile-nav-chevron { flex-shrink: 0; transition: transform .22s ease; }
.mobile-nav-accordion-btn[aria-expanded="true"] .mobile-nav-chevron { transform: rotate(180deg); }
.mobile-nav-submenu {
  list-style: none; padding: 0; margin: 2px 0 2px .5rem;
  border-left: 2px solid rgba(255,255,255,.15); flex-direction: column; gap: 1px;
}
.mobile-nav-submenu:not([hidden]) { display: flex; }
.mobile-nav-submenu[hidden] { display: none !important; }
.mobile-nav-submenu li a {
  display: block; color: rgba(255,255,255,.75); padding: .35rem .75rem;
  border-radius: 4px; font-size: .87rem; text-decoration: none;
}
.mobile-nav-submenu li a:hover { color: #fff; background: rgba(255,255,255,.08); }
.mobile-submenu-all a { color: #7ec8f8 !important; font-weight: 600; margin-top: .25rem; }

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .header-actions { display: flex; }
  .mobile-menu-btn { display: none; }
  .mobile-nav { display: none !important; }
}

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.breadcrumb { padding: .55rem 0; font-size: .8rem; background: #0d1b2e; border-bottom: 1px solid #1e3a5f; }
.breadcrumb a { color: #60a5fa; text-decoration: none; }
.breadcrumb a:hover { color: #93c5fd; text-decoration: underline; }
.breadcrumb span { color: #e2e8f0; }

/* ── Hero / IP display ──────────────────────────────────────────── */
.hero-section { background: linear-gradient(135deg, #1a3c6e 0%, #2a5ba8 100%); padding: 2.5rem 0 2rem; }
.ip-hero-card { background: #fff; border-radius: 14px; padding: 1.75rem; box-shadow: 0 4px 24px rgba(0,0,0,.18); }
.ip-hero-label { font-size: .85rem; color: #666; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.ip-display-row { display: flex; gap: .75rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; align-items: flex-start; }
.ip-version-block { display: flex; align-items: center; gap: .5rem; flex-wrap: nowrap; min-width: 0; }
.ip-version-tag { background: #e8f1fd; color: #2a7de1; font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; }
.ip-address { font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 700; color: #1a3c6e; letter-spacing: -.01em; word-break: break-all; }
.ip-not-detected { font-size: 1.1rem; color: #888; font-weight: 500; }
.ip-version-dim { opacity: .6; }

.copy-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .75rem; font-size: .78rem; font-weight: 600;
  color: #2a7de1; background: #e8f1fd; border: 1.5px solid #bdd6f8;
  border-radius: 20px; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap; flex-shrink: 0; min-height: 36px;
}
.copy-btn:hover { background: #2a7de1; color: #fff; border-color: #2a7de1; }
.copy-btn:active { background: #1a5bb5; border-color: #1a5bb5; color: #fff; transform: scale(.96); }

.ip-meta-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .ip-meta-grid { grid-template-columns: 1fr 1fr; } }

.ip-meta-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ip-meta-table th { text-align: left; color: #888; width: 110px; padding: .3rem 0; font-weight: 500; }
.ip-meta-table td { color: #333; padding: .3rem 0; }

.ip-meta-flags { display: flex; flex-direction: column; gap: .5rem; }
.flag-row { display: flex; align-items: center; gap: .5rem; font-size: .88rem; padding: .4rem .6rem; border-radius: 6px; }
.flag-ok   { background: #f0faf5; color: #155724; }
.flag-warn { background: #fff3cd; color: #664d03; }
.flag-icon { font-size: 1rem; flex-shrink: 0; }

.ip-browser-info { margin-top: .75rem; font-size: .82rem; color: #666; }
.ip-browser-info p { margin-bottom: .2rem; }
.ip-browser-info strong { color: #444; }

.ip-disclaimer { font-size: .8rem; color: #888; border-top: 1px solid #eee; padding-top: .75rem; margin-top: .25rem; margin-bottom: 1rem; }

/* ── Live Activity Feed ─────────────────────────────────────────── */
.live-feed-section { background: #0d1b2e; padding: 2rem 0; }
.live-feed-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.live-feed-title { color: #fff; font-size: 1.15rem; font-weight: 700; margin: 0; }
.live-feed-sub { color: #7a9cc6; font-size: .85rem; }

.live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.4);
  animation: live-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.live-feed-list { display: flex; flex-direction: column; gap: .45rem; }
.live-feed-loading, .live-feed-empty { color: #7a9cc6; font-size: .88rem; padding: .5rem 0; }

.live-feed-item {
  display: flex; align-items: center; gap: .65rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: .5rem .85rem;
  font-size: .85rem;
  color: #d0dff0;
  animation: feed-slide .3s ease;
  flex-wrap: wrap;
}
@keyframes feed-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.live-feed-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.live-feed-tool { font-weight: 600; color: #93c5fd; min-width: 130px; text-decoration: none; }
a.live-feed-tool:hover { color: #bfdbfe; text-decoration: underline; }
.live-feed-ip   { font-family: monospace; color: #e2e8f0; background: rgba(255,255,255,.06); padding: .1rem .4rem; border-radius: 4px; font-size: .8rem; }
.live-feed-loc  { color: #94a3b8; font-size: .82rem; flex: 1; min-width: 0; }
.live-feed-ago  { color: #64748b; font-size: .78rem; margin-left: auto; white-space: nowrap; }

.ip-map-wrapper { margin: 1rem 0; border-radius: 10px; overflow: hidden; border: 1px solid #e0e6ef; position: relative; z-index: 0; isolation: isolate; }
#ip-map { height: 260px; width: 100%; }
.ip-map-caption { font-size: .78rem; color: #888; padding: .4rem .6rem; background: #f8f9fa; margin: 0; border-top: 1px solid #e0e6ef; }

.ip-cta-row { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 600px) {
  .ip-cta-row { display: grid; grid-template-columns: 1fr 1fr; }
  .ip-cta-row .btn { width: 100%; }
}

/* ── IP Save CTA bar ────────────────────────────────────────────── */
.ip-save-bar {
  margin-top: 1.25rem; border-radius: 10px; padding: 1rem 1.25rem;
}
.ip-save-bar--auth {
  background: #f0f6ff; border: 1px solid #c8ddf8;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.ip-save-bar--auth .ip-save-bar-text {
  display: flex; align-items: center; gap: .6rem;
  font-size: .9rem; font-weight: 500; color: #1a3c6e;
}
.ip-save-bar--guest {
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f1fd 100%);
  border: 1px solid #bdd6f8;
  display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
}
.ip-save-bar-icon {
  flex-shrink: 0; color: #2a7de1;
  width: 44px; height: 44px; background: #fff; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(42,125,225,.18);
}
.ip-save-bar-body { flex: 1; min-width: 0; }
.ip-save-bar-body strong { display: block; font-size: .95rem; color: #1a3c6e; margin-bottom: .2rem; }
.ip-save-bar-body p { font-size: .85rem; color: #506; margin: 0 0 .5rem; color: #4a6080; }
.ip-save-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .25rem .9rem;
}
.ip-save-features li { font-size: .82rem; color: #2a7de1; font-weight: 500; }
.ip-save-bar-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; flex-shrink: 0; }
.ip-save-signin { font-size: .8rem; color: #2a7de1; text-decoration: none; }
.ip-save-signin:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .ip-save-bar--guest { flex-direction: column; }
  .ip-save-bar-actions .btn { width: 100%; text-align: center; }
}

/* ── Section structure ──────────────────────────────────────────── */
.section-padded { padding: 3rem 0; }
@media (max-width: 640px) { .section-padded { padding: 2rem 0; } }
.bg-light { background: #f0f4fb; }
.section-title { text-align: center; margin-bottom: 1.25rem; }
.section-more { text-align: center; margin-top: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: #888; font-size: .85rem; }

/* ── Responsive table wrapper ───────────────────────────────────── */
.table-responsive {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
}

/* ── Tools grid ─────────────────────────────────────────────────── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.tools-grid-large { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tools-grid-5 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (min-width: 1100px) { .tools-grid-5 { grid-template-columns: repeat(5, 1fr); } }

.tool-card {
  display: flex; flex-direction: column; gap: .4rem;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 1.25rem; text-decoration: none; color: #333;
  transition: box-shadow .15s, transform .1s;
}
.tool-card:hover { box-shadow: 0 4px 16px rgba(42,125,225,.12); transform: translateY(-2px); text-decoration: none; }
.tool-category-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid #e8ecf0; padding-bottom: 1rem; }
.tool-category-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-category-title { font-size: 1.3rem; font-weight: 700; color: #0f2342; margin: 0 0 .2rem; }
.tool-category-desc { font-size: .88rem; color: #667; margin: 0; }
.tool-card-icon { font-size: 1.8rem; line-height: 1; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-card-icon img { width: 48px; height: 48px; display: block; }
.tool-card h3 { font-size: 1rem; color: #1a3c6e; margin: 0; }
.tool-card p  { font-size: .83rem; color: #666; margin: 0; }
.tool-hero { background: linear-gradient(135deg, #1a3c6e 0%, #2a5ba8 100%); color: #fff; padding: 2.5rem 0 2rem; text-align: center; }
.tool-hero h1 { color: #fff; text-align: center; }
.tool-hero .container { text-align: center; }
.tool-intro { font-size: 1.05rem; color: rgba(255,255,255,.88); margin: 0 auto 1.5rem; max-width: 680px; text-align: center; text-wrap: balance; }
.tool-form-card {
  background: #fff; border-radius: 10px; padding: 1.5rem;
  max-width: 720px; margin: 1.5rem auto 0; width: 100%;
  color: #1a1a2e;
}
.tool-form-card label, .tool-form-card .form-check, .tool-form-card .form-group { color: #333; }

/* ── Result cards ───────────────────────────────────────────────── */
.result-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.result-card-sm { padding: 1rem; }
.result-header { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.result-ip { font-size: 1.6rem; font-weight: 700; color: #1a3c6e; margin: 0; word-break: break-all; }
.result-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .result-grid { grid-template-columns: repeat(3, 1fr); } }
.result-col h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: #888; margin-bottom: .6rem; border-bottom: 1px solid #eee; padding-bottom: .3rem; }
.result-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.result-table th { text-align: left; color: #888; width: 120px; padding: .35rem 0; font-weight: 500; vertical-align: top; }
.result-table td { color: #333; padding: .35rem 0; word-break: break-word; }
.result-source { font-size: .78rem; color: #999; margin-top: .75rem; }
.result-disclaimer { font-size: .8rem; color: #888; margin-top: 1.25rem; padding-top: .75rem; border-top: 1px solid #eee; }
.result-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }

/* ── Info / reveal section ──────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }
.three-col { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .three-col { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .three-col { grid-template-columns: repeat(3, 1fr); } }

.check-list { list-style: none; margin: .75rem 0 1rem; padding: 0; }
.check-list li {
  display: block;
  position: relative;
  padding: .35rem 0 .35rem 1.5rem;
  font-size: .92rem;
  border-bottom: 1px solid #f0f4fb;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓"; color: #00b386; font-weight: 700;
  font-size: .9rem; line-height: 1.6;
  position: absolute; left: 0; top: .35rem;
}
.check-list li strong:first-child { color: #1a3c6e; }

.step-list { list-style: none; margin: .75rem 0 1rem; padding: 0; counter-reset: step; }
.step-list li {
  display: block;
  position: relative;
  padding: .5rem 0 .5rem 2rem;
  font-size: .92rem; border-bottom: 1px solid #f0f4fb;
  counter-increment: step;
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(step); min-width: 22px; height: 22px;
  background: #2a7de1; color: #fff; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; line-height: 1;
  position: absolute; left: 0; top: .55rem;
}
.step-list li strong:first-child { color: #1a3c6e; }

.reveal-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1.25rem; }
.reveal-item { padding: .4rem .6rem; border-radius: 6px; font-size: .88rem; margin-bottom: .4rem; display: flex; align-items: center; gap: .5rem; }
.reveal-ok  { background: #f0faf5; color: #155724; }
.reveal-no  { background: #fde8ea; color: #842029; }

.method-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1.5rem; }
.method-num { width: 36px; height: 36px; background: #1a3c6e; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: .75rem; flex-shrink: 0; }
.method-card a { color: #2a7de1; font-size: .9rem; }
.method-card ul { margin: .5rem 0 1rem 0; }
.method-card ul:not(.check-list) li { font-size: .9rem; padding: .25rem 0; }

/* ── Link pills / tag grid ──────────────────────────────────────── */
.link-grid { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.link-pill {
  background: #e8f1fd; color: #1a3c6e; padding: .4rem .9rem;
  border-radius: 20px; font-size: .82rem; font-weight: 500;
  text-decoration: none; min-height: 36px; display: inline-flex; align-items: center;
}
.link-pill:hover { background: #2a7de1; color: #fff; text-decoration: none; }

/* ── Blog ───────────────────────────────────────────────────────── */
.blog-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .blog-layout { grid-template-columns: 1fr 280px; } }
.blog-cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .blog-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .blog-cards { grid-template-columns: repeat(3, 1fr); } }

.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; text-decoration: none; color: #333; transition: box-shadow .15s; }
.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); text-decoration: none; }
.blog-card-img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.blog-card-body h2, .blog-card-body h3 { font-size: 1rem; color: #1a3c6e; }
.blog-card-body p { font-size: .85rem; color: #666; flex: 1; }
.blog-card-date { font-size: .78rem; color: #999; }
.blog-tag { background: #e8f1fd; color: #2a7de1; padding: .15rem .5rem; border-radius: 4px; font-size: .75rem; font-weight: 600; display: inline-block; }

.blog-post-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .blog-post-layout { grid-template-columns: 1fr 280px; } }
.blog-hero-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 10px; margin-bottom: 1.5rem; }
.blog-meta { font-size: .85rem; color: #888; margin-bottom: 1.5rem; }
.blog-content { line-height: 1.8; }
.blog-content h2, .blog-content h3 { margin-top: 1.75rem; margin-bottom: .5rem; }
.blog-content ul, .blog-content ol { padding-left: 1.5rem; margin: .75rem 0; list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin-bottom: .35rem; }
.blog-tags { margin-top: 1.5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.blog-sidebar { display: none; }
@media (min-width: 900px) { .blog-sidebar { display: block; } }
.sidebar-widget { background: #f0f4fb; border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.sidebar-widget h3 { font-size: .95rem; margin-bottom: .75rem; }
.sidebar-widget ul li { margin-bottom: .35rem; }
.sidebar-widget ul a { font-size: .88rem; color: #2a7de1; }

/* ── Dashboard ──────────────────────────────────────────────────── */
.dashboard-section { padding: 2rem 0; }
.dash-welcome { margin-bottom: 1.5rem; }
.dash-welcome h1 { margin-bottom: .25rem; }
.dash-welcome p { color: #666; font-size: .9rem; }
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
.dash-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1.25rem; }
.dash-card h2 { font-size: 1rem; color: #1a3c6e; display: flex; justify-content: space-between; align-items: center; }
.dash-ip { border-left: 4px solid #2a7de1; }
.dash-ip-value { font-size: 1.5rem; font-weight: 700; color: #1a3c6e; margin: .5rem 0 .25rem; word-break: break-all; }
.dash-ip-loc { font-size: .88rem; color: #666; margin-bottom: .5rem; }
.dash-ip-flags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.dash-list { margin-top: .75rem; }
.dash-list li { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; border-bottom: 1px solid #f0f0f0; font-size: .88rem; }
.dash-list-ip { font-weight: 500; color: #2a7de1; }
.dash-list-label { color: #888; font-size: .8rem; }
.dash-list-date { color: #999; font-size: .78rem; }
.dash-empty { font-size: .88rem; color: #888; margin-top: .5rem; }
.see-all { font-size: .78rem; font-weight: 400; color: #2a7de1; }
.dash-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.achievement-preview { margin-top: .5rem; }
.ach-badge { display: inline-block; font-size: 1.5rem; margin-right: .25rem; }
.ach-badge.ach-unlocked { filter: none; }
.ach-badge { filter: grayscale(1) opacity(.4); }

/* ── Premium tools grid ─────────────────────────────────────────── */
.premium-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-bottom: 1.5rem; }
@media (min-width: 600px) { .premium-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .premium-grid { grid-template-columns: repeat(3, 1fr); } }
.premium-card { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: .9rem 1rem; cursor: pointer; text-align: left; width: 100%; transition: border-color .15s, box-shadow .15s; }
.premium-card:hover { border-color: #7c3aed; box-shadow: 0 2px 12px rgba(124,58,237,.12); }
.premium-card-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 9px; background: linear-gradient(135deg, #ede9fe, #ddd6fe); display: flex; align-items: center; justify-content: center; color: #7c3aed; }
.premium-card-body { flex: 1; min-width: 0; }
.premium-card-name { font-size: .88rem; font-weight: 700; color: #1a1a2e; line-height: 1.3; }
.premium-card-desc { font-size: .76rem; color: #888; margin-top: .15rem; line-height: 1.4; }
.premium-card-badge { flex-shrink: 0; font-size: .7rem; font-weight: 700; color: #7c3aed; background: #ede9fe; border-radius: 20px; padding: .2rem .6rem; white-space: nowrap; }

/* ── Achievements grid ──────────────────────────────────────────── */
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ach-card { border-radius: 10px; padding: 1.25rem; border: 2px solid #e2e8f0; text-align: center; }
.ach-card-unlocked { border-color: #00b386; background: #f0faf5; }
.ach-card-locked   { opacity: .5; }
.ach-icon { font-size: 2.2rem; margin-bottom: .5rem; }
.ach-card h3 { font-size: .95rem; color: #1a3c6e; }
.ach-card p  { font-size: .8rem; color: #666; margin: .3rem 0; }
.ach-date     { font-size: .75rem; color: #00b386; font-weight: 600; }
.ach-locked-label { font-size: .75rem; color: #aaa; }
.ach-points { font-size: .75rem; color: #888; margin-top: .4rem; }

/* ── Auth (legacy — kept for modals / password reset pages) ─────── */
.auth-section { padding: 3rem 0; min-height: 60vh; display: flex; align-items: center; background: #f0f4fb; }
.auth-card { background: #fff; border-radius: 12px; padding: 2rem; max-width: 460px; width: 100%; margin: 0 auto; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.auth-links { text-align: center; font-size: .88rem; margin-top: 1rem; color: #666; }
.auth-links a { color: #2a7de1; }
.auth-card-danger { border: 2px solid #dc3545; }

/* ── Auth split layout (sign-in / sign-up pages) ────────────────── */
.auth-split-section { flex: 1; display: flex; flex-direction: column; background: #0f2342; }
.auth-split-inner { flex: 1; display: flex; width: 100%; max-width: 1100px; margin: 0 auto; align-items: stretch; }

.auth-split-left {
  flex: 1; background: linear-gradient(150deg, #0f2342 0%, #1a3c6e 60%, #2a5ba8 100%);
  color: #fff; padding: 3rem 3.5rem; display: flex; flex-direction: column; justify-content: center;
}
.auth-brand-logo { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; margin-bottom: 2rem; opacity: .9; }
.auth-brand-logo:hover { opacity: 1; text-decoration: none; }
.auth-split-headline { font-size: 1.9rem; font-weight: 800; line-height: 1.25; margin: 0 0 .9rem; }
.auth-split-sub { font-size: 1rem; opacity: .8; line-height: 1.6; margin: 0 0 2rem; }

.auth-benefit-list { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.auth-benefit-list li { display: flex; align-items: center; gap: .65rem; font-size: .95rem; opacity: .9; }
.auth-benefit-list svg { flex-shrink: 0; color: #60c060; }

.auth-trust-badges { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.auth-trust-badges span { display: flex; align-items: center; gap: .4rem; font-size: .8rem; opacity: .7; }

.auth-split-right {
  width: 420px; flex-shrink: 0; background: #f0f4fb;
  display: flex; align-items: center; justify-content: center; padding: 2.5rem 2rem;
  box-shadow: 300px 0 0 300px #f0f4fb;
}
.auth-card-v2 { background: #fff; border-radius: 16px; padding: 2.5rem 2rem; width: 100%; box-shadow: 0 8px 32px rgba(0,0,0,.10); }
.auth-card-title { font-size: 1.5rem; font-weight: 800; color: #0f2342; margin: 0 0 .4rem; }
.auth-card-sub { font-size: .9rem; color: #667; margin: 0 0 1.75rem; }

.btn-google-oauth {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  width: 100%; padding: .85rem 1rem; border-radius: 10px;
  background: #fff; border: 1.5px solid #dadce0; color: #3c4043;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: box-shadow .15s, border-color .15s, background .15s;
}
.btn-google-oauth:hover { background: #f8f9fa; border-color: #bbbfc4; box-shadow: 0 3px 10px rgba(0,0,0,.12); text-decoration: none; color: #3c4043; }

.auth-card-legal { font-size: .75rem; color: #999; text-align: center; margin: 1.1rem 0 0; line-height: 1.5; }
.auth-card-legal a { color: #667; text-decoration: underline; }

.auth-card-divider { border: none; border-top: 1px solid #eef0f3; margin: 1.5rem 0 1.1rem; }
.auth-card-switch { text-align: center; font-size: .88rem; color: #667; margin: 0; }
.auth-card-switch a { color: #2a7de1; font-weight: 600; text-decoration: none; }
.auth-card-switch a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .auth-split-section { background: #f0f4fb; }
  .auth-split-inner { flex-direction: column; }
  .auth-split-left { padding: 2rem 1.5rem; order: 2; }
  .auth-split-headline { font-size: 1.4rem; }
  .auth-split-right { width: 100%; padding: 1.5rem 1rem 2rem; box-shadow: none; order: 1; }
  .auth-card-v2 { padding: 2rem 1.5rem; }
  .auth-trust-badges { display: none; }
}

/* ── Admin ──────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1.25rem; text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: #1a3c6e; }
.stat-num.stat-warn { color: #e65100; }
.stat-label { font-size: .82rem; color: #888; margin-top: .25rem; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1.25rem; }
.admin-nav-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.page-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem; }
.filter-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.feedback-body { background: #f8f9fa; border-radius: 8px; padding: 1rem; font-size: .92rem; margin-bottom: 1.25rem; white-space: pre-wrap; }

/* ── Tables ─────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 1rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.data-table th { text-align: left; padding: .6rem .75rem; border-bottom: 2px solid #e2e8f0; color: #888; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.data-table td { padding: .55rem .75rem; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.data-table tr:hover td { background: #f8f9fa; }
/* On mobile, 3-column check tables stack as labeled rows */
@media (max-width: 540px) {
  .data-table.table-checks { display: block; overflow: visible; }
  .data-table.table-checks thead { display: none; }
  .data-table.table-checks tbody, .data-table.table-checks tr { display: block; }
  .data-table.table-checks td { display: flex; justify-content: space-between; align-items: center; padding: .45rem .5rem; font-size: .85rem; }
  .data-table.table-checks td:first-child { font-weight: 600; color: #444; background: #f8f9fa; border-bottom: none; }
  .data-table.table-checks td:nth-child(2) { color: #555; border-bottom: none; font-family: monospace; font-size: .82rem; }
  .data-table.table-checks td:last-child { justify-content: flex-end; border-bottom: 1px solid #e8eef6; padding-bottom: .65rem; margin-bottom: .25rem; }
  .data-table.table-checks tr:last-child td:last-child { border-bottom: none; }
}

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination { display: flex; gap: .35rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: 6px; font-size: .85rem; background: #fff; border: 1px solid #ddd; color: #333; text-decoration: none; }
.page-btn:hover { background: #f0f4fb; text-decoration: none; }
.page-btn-active { background: #2a7de1; color: #fff; border-color: #2a7de1; }
.page-ellipsis { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; color: #888; }

/* ── Article body (FAQ pages, learn articles) ───────────────────── */
.article-body { font-size: 1rem; line-height: 1.75; color: #222; }
.article-body h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .6rem; color: #1a3c6e; }
.article-body h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 .4rem; color: #1a3c6e; }
.article-body p { margin: 0 0 1rem; }
/* Restore proper list markers stripped by the global ul reset */
.article-body ul { list-style: disc; margin: 0 0 1rem 1.4rem; padding: 0; }
.article-body ol { list-style: decimal; margin: 0 0 1rem 1.4rem; padding: 0; }
/* But preserve custom styled lists (check-list, step-list) */
.article-body ul.check-list { list-style: none; margin-left: 0; }
.article-body ul.step-list  { list-style: none; margin-left: 0; }
.article-body li { margin-bottom: .35rem; }
/* Tables in article body — scrollable on mobile */
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .9rem;
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.article-body th { background: #1a3c6e; color: #fff; padding: .55rem .75rem; text-align: left; white-space: nowrap; }
.article-body td { padding: .5rem .75rem; border-bottom: 1px solid #e2e8f0; }
.article-body tr:nth-child(even) td { background: #f8fafc; }
.article-body a { color: #2a7de1; text-decoration: underline; }
.article-body a:hover { color: #1a6bc8; }
/* People Also Ask — dl/dt/dd */
.article-body dl { margin: .5rem 0 1.5rem; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.article-body dt {
  font-weight: 600; font-size: .95rem; padding: .85rem 1.1rem;
  background: #f0f4fb; color: #1a3c6e; border-bottom: 1px solid #e2e8f0;
  cursor: default;
}
.article-body dd {
  margin: 0; padding: .75rem 1.1rem 1rem;
  font-size: .92rem; color: #444; line-height: 1.65;
  border-bottom: 1px solid #e2e8f0;
}
.article-body dd:last-child { border-bottom: none; }
/* Inline code in article body */
.article-body code {
  background: #f0f4fb; padding: .1rem .35rem; border-radius: 4px;
  font-size: .875em; color: #1a3c6e;
}

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: .6rem; overflow: hidden; }
.faq-q {
  padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; font-size: .95rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  min-height: 52px; gap: .75rem;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font-size: 1.2rem; color: #2a7de1; flex-shrink: 0; }
details[open] .faq-q::after { content: "−"; }
.faq-a { padding: 0 1.25rem 1rem; font-size: .9rem; color: #555; }
.faq-a p { margin: 0; }
.faq-a a { color: #2a7de1; }

/* ── Error pages ────────────────────────────────────────────────── */
.error-section { padding: 5rem 0; }
.error-code { font-size: clamp(4rem, 15vw, 6rem); font-weight: 700; color: #1a3c6e; line-height: 1; }
.error-section h2 { margin-top: .5rem; margin-bottom: .75rem; }
.error-section p { color: #666; margin-bottom: 1.5rem; }
.error-section .btn { margin: 0 .25rem .5rem; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: #1a3c6e; color: rgba(255,255,255,.8); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem; padding: 1.5rem 0 1rem; }
.footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-brand p { font-size: .8rem; margin: 0; color: rgba(255,255,255,.6); max-width: 320px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); gap: 1.5rem 2rem; padding: 2rem 0 1.25rem; } .footer-brand { grid-column: auto; display: block; } .footer-brand p { margin-top: .4rem; max-width: 200px; } }
.footer-col h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .1rem; }
.footer-col ul a { color: rgba(255,255,255,.7); font-size: .82rem; text-decoration: none; min-height: 28px; display: flex; align-items: center; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: .75rem 0; }
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.5); text-align: center; }

/* ── IP / PIN list (random generator results) ───────────────────── */
.ip-list { display: flex; flex-direction: column; gap: .4rem; margin-top: .75rem; }
.ip-list-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; background: #f6f8fa; border: 1px solid #e1e4e8; border-radius: 6px; }
.ip-list-item code { font-size: .95rem; color: #1a3c6e; }

/* ── Logo image ─────────────────────────────────────────────────── */
.logo-img { display:block; object-fit:contain; flex-shrink:0; background:none; }

/* ── Language switcher ──────────────────────────────────────────── */
.lang-switcher { position: relative; }
.lang-btn { display: flex; align-items: center; gap: .3rem; white-space: nowrap; cursor: pointer; background: none; border: none; color: rgba(255,255,255,.85); }
.lang-btn:hover { color: #fff; }
.lang-switcher.is-open .nav-dropdown-menu { display: block; right: 0; left: auto; }
.lang-text { display: none; }
@media (min-width: 1100px) { .lang-text { display: inline; } }
.nav-dropdown-menu a.lang-active { font-weight: 700; color: #2a7de1; }
.mobile-lang-section { border-top: 1px solid rgba(255,255,255,.1); padding: .6rem 0 .4rem; margin-top: .2rem; }
.mobile-lang-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: .4rem; padding: 0 .6rem; }
.mobile-lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; padding: 0 .25rem; }
.mobile-lang-item { font-size: .82rem; padding: .35rem .5rem; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; color: rgba(255,255,255,.75); text-decoration: none; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 34px; transition: background .15s, color .15s; }
.mobile-lang-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.mobile-lang-item.lang-active { background: #2a7de1; color: #fff; border-color: #2a7de1; font-weight: 600; }

/* ── Search results page ────────────────────────────────────────── */
.search-results { display: flex; flex-direction: column; gap: .5rem; }
.search-result-card {
  display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem;
  background: #fff; border: 1px solid #e1e4e8; border-radius: 10px;
  text-decoration: none; color: #222; transition: box-shadow .15s, border-color .15s, transform .1s;
}
.search-result-card:hover {
  box-shadow: 0 3px 14px rgba(42,125,225,.13); border-color: #bdd6f8;
  text-decoration: none; transform: translateY(-1px);
}
.search-result-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.sr-icon-article { background: #f0fdf4; color: #16a34a; }
.sr-icon-tool    { background: #eff6ff; color: #2563eb; }
.search-result-body { flex: 1; min-width: 0; }
.search-result-body strong { display: block; font-size: .95rem; font-weight: 600; color: #1a202c; }
.search-result-body p { font-size: .83rem; color: #667; margin: .18rem 0 0; line-height: 1.4; }
.search-result-arrow { color: #c0c8d4; font-size: 1.4rem; flex-shrink: 0; line-height: 1; }

/* ── Utilities ──────────────────────────────────────────────────── */
.text-danger  { color: #dc3545; }
.text-success { color: #00b386; }

/* ── Mobile-specific tweaks ─────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 .75rem; }
  .hero-section { padding: 1.25rem 0 .75rem; }
  .tool-hero { padding: 1.75rem 0 1.5rem; }
  .ip-hero-card { padding: 1.25rem 1rem; border-radius: 10px; }
  .ip-hero-label { font-size: .78rem; margin-bottom: .35rem; }
  .ip-display-row { gap: .75rem; margin-bottom: 1rem; }
  .ip-version-block { gap: .4rem; }
  .ip-meta-table th { width: 80px; font-size: .82rem; }
  .ip-meta-table td { font-size: .82rem; }
  .flag-row { font-size: .83rem; padding: .35rem .5rem; }
  .ip-browser-info { font-size: .78rem; }
  .ip-disclaimer { font-size: .75rem; }
  .result-card { padding: 1rem; }
  .auth-card { padding: 1.25rem; }
  .tool-form-card { padding: 1rem; }
  h1 { font-size: 1.5rem; }
  .result-actions { flex-direction: column; }
  .result-actions .btn { width: 100%; }

  /* Live feed — single row, no wrapping */
  .live-feed-item { flex-wrap: nowrap; gap: .4rem; padding: .45rem .65rem; }
  .live-feed-tool { min-width: 0; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
  .live-feed-ip { display: none; }
  .live-feed-loc { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .live-feed-ago { font-size: .74rem; flex-shrink: 0; }
}
