/* meine-ip.info — Redesign · shared design tokens */

:root {
  /* Surface — warmer, with more body so white cards pop */
  --paper: #ece6d6;
  --paper-2: #ddd5bf;
  --paper-tint: #efe6f9;       /* accent-tinted band */
  --surface: #ffffff;
  --surface-sunk: #f6f1e4;
  --ink: #0a0a12;
  --ink-2: #1d1e26;
  --ink-deep: #050509;          /* near-black for dark sections */
  --muted: #54565e;
  --muted-2: #84868e;
  --line: #c9c2ac;
  --line-soft: #ddd6c0;

  /* Brand — vibrant purple, default; overridable via --brand */
  --brand: #5E2EE3;
  --brand-ink: #3F18AA;
  --brand-glow: #7a4dff;
  --brand-tint: #e3d8fb;
  --brand-soft: #f1ebfd;

  /* Status — slightly punchier */
  --ok: #0f8a4d;
  --ok-tint: #cfe9d8;
  --warn: #d18a0a;
  --warn-tint: #faecc6;
  --bad: #d12f1e;
  --bad-tint: #fad1ca;
  --info: #1f5fb8;
  --info-tint: #d7e3f5;
  --hot: #ff5a1f;               /* fomo / trending */
  --hot-tint: #ffe1d3;

  /* Type */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', 'Fira Code', Menlo, monospace;

  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;

  /* Shadows — slightly more presence to lift cards off paper */
  --shadow-1: 0 1px 0 rgba(14,15,19,0.05), 0 2px 4px rgba(14,15,19,0.06);
  --shadow-2: 0 18px 40px -14px rgba(20,10,60,0.22), 0 4px 10px rgba(14,15,19,0.07);
  --shadow-brand: 0 18px 40px -14px rgba(94,46,227,0.45), 0 2px 6px rgba(94,46,227,0.18);
}

/* ===== Reset within mock pages ===== */
.mi {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  line-height: 1.45;
  box-sizing: border-box;
}
.mi *, .mi *::before, .mi *::after { box-sizing: border-box; }
.mi h1, .mi h2, .mi h3, .mi h4, .mi p, .mi ul, .mi ol { margin: 0; padding: 0; }
.mi ul { list-style: none; }
.mi a { color: inherit; text-decoration: none; }
.mi button { font: inherit; cursor: pointer; }

/* ===== Type scale ===== */
.mi-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.mi-display { font-family: var(--sans); font-size: 56px; line-height: 1; letter-spacing: -0.035em; font-weight: 600; }
.mi-h1 { font-size: 36px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 600; }
.mi-h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.mi-h3 { font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
.mi-body { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.mi-muted { font-size: 14px; line-height: 1.5; color: var(--muted); }
.mi-tiny { font-size: 12px; line-height: 1.4; color: var(--muted); }
.mi-mono { font-family: var(--mono); font-feature-settings: "ss01"; }

/* ===== Page chrome ===== */
.mi-page { width: 100%; min-height: 100%; background: var(--paper); }
.mi-shell { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* Site header */
.mi-nav {
  display: flex; align-items: center; gap: 28px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(236,230,214,0.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 500;
}
.mi-nav .mi-nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.mi-nav .mi-nav-link { font-size: 14px; color: var(--ink-2); padding: 6px 0; display: inline-flex; align-items: center; gap: 4px; }
.mi-nav .mi-nav-link:hover { color: var(--brand); }
.mi-nav .mi-nav-cta {
  font-family: var(--mono); font-size: 12px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
}
.mi-nav .mi-lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; font-family: var(--mono); font-size: 11px; }
.mi-nav .mi-lang span, .mi-nav .mi-lang a { padding: 5px 8px; color: var(--muted); text-decoration: none; display: inline-block; }
.mi-nav .mi-lang a:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.mi-nav .mi-lang .on { background: var(--ink); color: #fff; }

/* Mobile burger — visible only ≤900 px */
.mi-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 6px 8px;
    cursor: pointer;
    color: var(--ink);
}
.mi-nav-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Tools dropdown */
.mi-nav-dropdown { position: relative; }
.mi-nav-dropdown > .mi-nav-link {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    font: inherit;
}
.mi-nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
    padding: 6px;
    min-width: 240px;
    display: none;
    z-index: 200;
}
.mi-nav-dropdown:hover .mi-nav-dropdown__panel,
.mi-nav-dropdown:focus-within .mi-nav-dropdown__panel,
.mi-nav-dropdown.is-open .mi-nav-dropdown__panel { display: block; }
.mi-nav-dropdown__link {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--ink-2);
    border-radius: var(--r-sm);
    text-decoration: none;
}
.mi-nav-dropdown__link:hover { background: var(--paper); color: var(--brand); }

/* Responsive nav */
@media (max-width: 900px) {
    .mi-nav { padding: 14px 20px; }
    .mi-nav-toggle { display: inline-flex; margin-left: auto; }
    .mi-nav-links {
        display: none !important;
        position: fixed;
        inset: 64px 0 0 0;
        background: var(--paper);
        padding: 24px 20px;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        gap: 4px !important;
        border-top: 1px solid var(--line-soft);
        z-index: 150;
        overflow-y: auto;
    }
    .mi-nav-links.is-open { display: flex !important; }
    .mi-nav-link { padding: 12px 0 !important; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
    .mi-nav-dropdown__panel { position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; display: block; }
    .mi-nav-dropdown__link { padding: 10px 16px; font-size: 14px; }
    .mi-nav .mi-lang { align-self: flex-start; margin-top: 12px; }
}

/* Footer grid + helpers (used by layout/footer.php) */
.mi-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}
.mi-footer-tagline {
    margin-top: 14px;
    font-size: 13px;
    color: #9ea0a8;
    max-width: 280px;
    line-height: 1.55;
}
.mi-footer-badges {
    margin-top: 18px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.mi-footer-badge {
    background: rgba(255,255,255,0.06) !important;
    color: #b6b7bd !important;
    border-color: rgba(255,255,255,0.12) !important;
}
.mi-footer-links { display: grid; gap: 9px; }
.mi-footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #7c7e85;
    font-family: var(--mono);
}
@media (max-width: 760px) {
    .mi-footer-grid { grid-template-columns: 1fr 1fr; }
    .mi-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .mi-footer-grid { grid-template-columns: 1fr; }
}

/* Buttons */
.mi-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: var(--r);
  font-size: 14px; font-weight: 500; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.mi-btn:active { transform: translateY(1px); }
.mi-btn-primary { background: var(--ink); color: #fff; }
.mi-btn-primary:hover { background: #000; }
.mi-btn-accent { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.mi-btn-accent:hover { background: var(--brand-ink); }
.mi-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.mi-btn-ghost:hover { background: var(--surface); }
.mi-btn-sm { padding: 7px 11px; font-size: 13px; }

/* Inputs */
.mi-input {
  display: flex; align-items: stretch; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.mi-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14,15,19,0.08); }
.mi-input input {
  flex: 1; border: 0; outline: 0; background: transparent;
  padding: 13px 14px; font: inherit; color: var(--ink);
  font-family: var(--mono); font-size: 14px;
}
.mi-input input::placeholder { color: var(--muted-2); }
.mi-input .mi-input-prefix { padding: 13px 0 13px 14px; color: var(--muted); font-family: var(--mono); font-size: 13px; }

/* Cards — stronger contrast on paper */
.mi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.mi-card-flat { box-shadow: none; }
.mi-card-lift { box-shadow: var(--shadow-2); }
.mi-card-head { padding: 18px 22px 0; }
.mi-card-body { padding: 18px 22px 22px; }
.mi-card-hairline { border-top: 1px solid var(--line-soft); }
.mi-section-title { font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }

/* Badges */
.mi-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid transparent; line-height: 1.4;
}
.mi-badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.mi-badge-ok { color: var(--ok); background: var(--ok-tint); border-color: rgba(31,122,74,.18); }
.mi-badge-bad { color: var(--bad); background: var(--bad-tint); border-color: rgba(197,59,46,.18); }
.mi-badge-warn { color: var(--warn); background: var(--warn-tint); border-color: rgba(198,138,18,.2); }
.mi-badge-info { color: var(--info); background: var(--info-tint); border-color: rgba(42,106,163,.18); }
.mi-badge-mute { color: var(--muted); background: var(--paper-2); border-color: var(--line-soft); }
.mi-badge-solid-ink { color: #fff; background: var(--ink); }

/* Pill row */
.mi-pillrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Hairline rule */
.mi-hr { height: 1px; background: var(--line-soft); border: 0; }

/* Tables */
.mi-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mi-table th { text-align: left; font-weight: 500; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.mi-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.mi-table tr:last-child td { border-bottom: 0; }
.mi-table .mi-mono { font-size: 13px; }

/* Key-value list */
.mi-kv { display: grid; grid-template-columns: 1fr 1.4fr; row-gap: 0; }
.mi-kv > div { padding: 11px 0; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; }
.mi-kv > div:last-child, .mi-kv > div:nth-last-child(2) { border-bottom: 0; }
.mi-kv-k { color: var(--muted); font-size: 13px; }
.mi-kv-v { color: var(--ink); font-size: 14px; }

/* Footer */
.mi-footer { background: var(--ink); color: #d6d7dc; padding: 56px 32px 28px; margin-top: 64px; }
.mi-footer a { color: #b6b7bd; font-size: 13px; }
.mi-footer a:hover { color: #fff; }
.mi-footer .mi-foot-title { color: #fff; font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }

/* Logo helpers */
.mi-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 18px; color: var(--ink); }
.mi-logo .mark { width: 28px; height: 28px; }
.mi-logo .tld { color: var(--brand); }

/* Grid utilities used in mocks */
.mi-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mi-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mi-grid-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Selection */
.mi ::selection { background: var(--brand); color: #fff; }

/* ===== Section backgrounds for vivid alternation ===== */
.mi-bg-paper { background: var(--paper); }
.mi-bg-ink { background: var(--ink-deep); color: #f4f2ec; }
.mi-bg-tint { background: var(--paper-tint); }
.mi-bg-brand { background: var(--brand); color: #fff; }

/* Hot / FOMO badge */
.mi-badge-hot {
  color: #fff; background: var(--hot); border-color: var(--hot);
  font-weight: 600;
}
.mi-badge-hot .dot { background: #fff; }
.mi-badge-brand { color: #fff; background: var(--brand); border-color: var(--brand); }
.mi-badge-brand-tint { color: var(--brand-ink); background: var(--brand-tint); border-color: rgba(94,46,227,0.25); }

/* Ticker pulse */
@keyframes mi-pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes mi-tick { 0% { transform: translateY(8px); opacity: 0 } 15%,85% { transform: translateY(0); opacity: 1 } 100% { transform: translateY(-8px); opacity: 0 } }
.mi-livedot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 0 0 rgba(15,138,77,0.6); animation: mi-livepulse 1.6s infinite; display: inline-block; }
@keyframes mi-livepulse {
  0%   { box-shadow: 0 0 0 0 rgba(15,138,77,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(15,138,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,138,77,0); }
}
@keyframes mi-stream {
  0%   { transform: translateX(0)     scale(0.8); opacity: 0; }
  15%  { opacity: 0.9; }
  85%  { opacity: 0.9; }
  100% { transform: translateX(780px) scale(1.2); opacity: 0; }
}
@keyframes mi-eq {
  0%   { height: 14%; }
  100% { height: 78%; }
}

/* ===== Layout: 2-col + sticky sidebar ===== */
.mi-layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}
.mi-layout-sidebar__aside {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===== Layout: Hero 2-col ===== */
.mi-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ===== Form row: input + button ===== */
.mi-form-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* ===== Responsive breakpoints ===== */
@media (max-width: 900px) {
  .mi-layout-sidebar {
    grid-template-columns: 1fr;
  }
  .mi-layout-sidebar__aside {
    position: static;
    top: auto;
  }
  .mi-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mi-hero-grid > *:first-child { order: 2; }
  .mi-hero-grid > *:last-child  { order: 1; }
}
@media (max-width: 640px) {
  .mi-form-row {
    flex-direction: column;
  }
  .mi-form-row .mi-btn {
    width: 100%;
    justify-content: center;
  }
  .mi-card { border-radius: var(--r); }
}

/* ===== Prose typography (article bodies) ===== */
.prose { font-size: .96rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin: 2rem 0 .65rem; }
.prose h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin: 1.5rem 0 .5rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.4rem; }
.prose li { margin-bottom: .35rem; }
.prose a  { color: var(--brand); border-bottom: 1px solid transparent; }
.prose a:hover { border-bottom-color: var(--brand); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose code { font-family: var(--mono); font-size: .87em; background: var(--surface-sunk); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: .1em .38em; }
.prose pre  { background: var(--ink-2); color: #e4e4e8; border-radius: var(--r); padding: 1rem 1.2rem; overflow-x: auto; margin-bottom: 1.25rem; }
.prose pre code { background: none; border: none; padding: 0; font-size: .84rem; }
.prose blockquote { border-left: 3px solid var(--brand); padding: .5rem 1rem; color: var(--muted); font-style: italic; margin: 1.25rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: .9rem; }
.prose th, .prose td { padding: .45rem .7rem; border-bottom: 1px solid var(--line-soft); text-align: left; }
.prose th { font-weight: 600; color: var(--ink); background: var(--surface-sunk); }
.prose img { max-width: 100%; border-radius: var(--r); margin: 1rem 0; }
.prose hr  { border: none; border-top: 1px solid var(--line-soft); margin: 2rem 0; }

/* ===== Responsive grids ===== */
@media (max-width: 860px) {
  .mi-grid-2    { grid-template-columns: 1fr; }
  .mi-grid-3    { grid-template-columns: 1fr 1fr; }
  .mi-grid-tools{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .mi-grid-3    { grid-template-columns: 1fr; }
  .mi-grid-tools{ grid-template-columns: 1fr; }
  .mi-shell     { padding: 0 16px; }
  .mi-h1        { font-size: 28px; }
}

/* ===== Legacy layout helpers ===== */
.main      { flex: 1; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1rem; }

/* ===== Breadcrumb ===== */
.breadcrumb { margin-bottom: 1.5rem; }
.breadcrumb__list { display: flex; flex-wrap: wrap; list-style: none; font-size: .8rem; }
.breadcrumb__item { display: flex; align-items: center; }
.breadcrumb__sep  { margin: 0 .4rem; color: var(--muted-2); }
.breadcrumb__item--active { color: var(--muted); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px -8px rgba(14,15,19,.18);
  padding: 1rem 1.25rem;
  z-index: 9999;
}
.cookie-banner__content {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.cookie-banner__content p { font-size: .85rem; line-height: 1.55; color: var(--ink-2); flex: 1; margin: 0; }
.cookie-banner__content p a { color: var(--brand); border-bottom: 1px dotted var(--brand); }
.cookie-banner__content p a:hover { border-bottom-style: solid; }
.cookie-banner__actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* ===== Legacy buttons (components not yet migrated) ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.25rem;
  border-radius: var(--r); font-weight: 600; font-size: .875rem;
  font-family: inherit; cursor: pointer; border: 1px solid transparent;
  transition: all .15s; text-decoration: none; line-height: 1.4;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-ink); color: #fff; }
.btn--outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--outline:hover { background: var(--surface-sunk); border-color: var(--muted); }
.btn--sm { padding: .4rem .85rem; font-size: .8rem; }
.btn--sm.btn--primary { box-shadow: none; }

/* ===== Legacy badges ===== */
.badge { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 9999px; font-size: .72rem; font-weight: 500; letter-spacing: .02em; font-family: var(--mono); line-height: 1.4; border: 1px solid transparent; }
.badge--green { background: var(--ok-tint); color: var(--ok); border-color: rgba(15,138,77,.18); }
.badge--blue  { background: var(--info-tint); color: var(--info); border-color: rgba(31,95,184,.18); }

/* ===== Tool cards (error page, sidebar) ===== */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.tools-grid--compact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .tools-grid--compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tools-grid--compact { grid-template-columns: 1fr; } }
.tools-grid--compact .tool-card { padding: .85rem 1rem; min-height: 72px; display: flex; align-items: center; justify-content: center; text-align: center; }
.tools-grid--compact .tool-card__title { font-size: .9rem; margin: 0; }

.tool-card { display: block; padding: 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); background: var(--surface); box-shadow: 0 1px 0 rgba(14,15,19,.04), 0 4px 10px -6px rgba(14,15,19,.1); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tool-card:hover { border-color: rgba(94,46,227,.35); box-shadow: 0 18px 40px -22px rgba(94,46,227,.35); transform: translateY(-2px); color: var(--ink); }
.tool-card__eyebrow { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .65rem; padding: .15rem .5rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-family: var(--mono); font-size: .65rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; border: 1px solid rgba(94,46,227,.15); }
.tool-card__title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: .45rem; color: var(--ink); line-height: 1.35; }
.tool-card__desc  { font-size: .85rem; color: var(--muted); line-height: 1.55; }
.tool-card__icon-row { color: var(--brand); margin-bottom: .4rem; opacity: .8; transition: opacity .15s; }
.tool-card:hover .tool-card__icon-row { opacity: 1; }

/* ===== Error page ===== */
.error-page { text-align: center; padding: 4rem 0; }
.error-page__code { font-family: var(--mono); font-size: 7rem; font-weight: 500; color: var(--brand); line-height: 1; letter-spacing: -0.04em; }
.error-page__message { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; margin: 1rem 0; color: var(--ink); }
.error-page__text { color: var(--muted); margin-bottom: 2rem; line-height: 1.55; }
.error-page--full { display: grid; grid-template-columns: 1fr; gap: 3rem; padding: 3rem 0; }
.error-page__main { text-align: center; padding: 2rem 0; }
.error-page__mark { display: inline-flex; margin-bottom: 1.5rem; }
.error-page__tools-heading { font-size: 1.1rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1.25rem; }

/* ===== Map ===== */
.map-card__map { border-radius: var(--r-lg); }

/* ===== Live signals ===== */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 0 0 rgba(15,138,77,.6); animation: live-pulse 1.8s infinite; vertical-align: middle; }
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(15,138,77,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(15,138,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,138,77,0); }
}
.live-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .55rem; border-radius: 999px; background: var(--ok-tint); color: var(--ok); border: 1px solid rgba(15,138,77,.18); font-family: var(--mono); font-size: .65rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; line-height: 1.4; }

/* ===== IP Display (component) ===== */
.ip-display { text-align: center; padding: 2.5rem 2rem; background: linear-gradient(135deg, var(--brand), var(--brand-ink)); border-radius: var(--r-lg); color: #fff; margin-bottom: 1.5rem; box-shadow: var(--shadow-brand); }
.ip-display__label { margin-bottom: .75rem; display: flex; justify-content: center; }
.ip-display__address { font-family: var(--mono); font-size: clamp(2rem,5vw,3rem); font-weight: 500; letter-spacing: -0.01em; margin-bottom: .75rem; word-break: break-all; }
.ip-display__meta { display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ip-display__hostname { font-size: .78rem; opacity: .85; font-family: var(--mono); letter-spacing: -0.005em; }
.ip-display__copy { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; box-shadow: none; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.ip-display__copy:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); color: #fff; }
.ip-display .live-chip { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.22); }
.ip-display .live-dot  { background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); }

/* ===== Share result button ===== */
.share-result { display: inline-flex; align-items: center; gap: .4rem; margin: .5rem 0 1rem; }
.share-result svg { flex-shrink: 0; }
.share-result--copied { background: var(--brand); color: #fff; border-color: var(--brand); }
.share-result--copied svg { stroke: #fff; }

/* ===== Article teasers ===== */
.article-teasers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.article-teaser { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.article-teaser:hover { border-color: var(--brand); background: var(--paper); }
.article-teaser__category { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.article-teaser__title { font-size: .95rem; font-weight: 600; line-height: 1.4; }
.article-teaser__meta { font-size: .7rem; color: var(--muted); }

/* ===== Tool longform ===== */
.tool-longform__content h3 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 .5rem; color: var(--ink); }
.tool-longform__content p  { font-size: .92rem; line-height: 1.75; color: var(--muted); margin: 0 0 .85rem; }
.tool-longform__content ul { margin: .5rem 0 1rem; padding-left: 1.4rem; }
.tool-longform__content ul li { font-size: .92rem; line-height: 1.7; color: var(--muted); margin-bottom: .4rem; }
.tool-longform__content code { background: var(--surface-sunk); border: 1px solid var(--line-soft); border-radius: 3px; padding: .05rem .35rem; font-size: .85em; font-family: var(--mono); color: var(--ink); }
.tool-longform__content a { color: var(--brand); text-decoration: none; border-bottom: 1px dotted var(--brand); }
.tool-longform__content a:hover { border-bottom-style: solid; }

/* ===== Whois raw ===== */
.whois-raw { font-family: var(--mono); font-size: .75rem; line-height: 1.5; white-space: pre-wrap; word-break: break-all; max-height: 400px; overflow-y: auto; padding: 1rem; background: var(--surface-sunk); border-radius: var(--r); }

/* ===== Affiliate card ===== */
.affiliate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem; margin-bottom: 1.25rem; box-shadow: 0 1px 0 rgba(14,15,19,.04), 0 4px 10px -6px rgba(14,15,19,.1); transition: border-color .15s, box-shadow .15s; }
.affiliate-card:hover { border-color: rgba(94,46,227,.25); box-shadow: var(--shadow-2); }
.affiliate-card--sidebar { box-shadow: 0 2px 12px -4px rgba(94,46,227,.15), 0 1px 3px rgba(0,0,0,.06); }
.affiliate-card--inline { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding: .9rem 1.25rem; background: linear-gradient(135deg, var(--surface) 0%, var(--brand-soft) 100%); box-shadow: 0 2px 16px -6px rgba(94,46,227,.12), 0 1px 3px rgba(0,0,0,.05); }
.affiliate-card--inline .affiliate-card__top     { margin-bottom: 0; flex: 1; min-width: 180px; }
.affiliate-card--inline .affiliate-card__features{ margin-bottom: 0; flex: 1; min-width: 160px; }
.affiliate-card--inline .affiliate-card__cta     { width: auto; flex-shrink: 0; }
.affiliate-card__top  { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; }
.affiliate-card__icon { flex-shrink: 0; width: 2.1rem; height: 2.1rem; border-radius: var(--r); display: grid; place-items: center; background: var(--brand); color: #fff; }
.affiliate-card__meta { flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.affiliate-card__name { font-weight: 600; font-size: .95rem; color: var(--ink); letter-spacing: -0.01em; }
.affiliate-card__badge { font-size: .65rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; padding: .15rem .5rem; border-radius: 9999px; background: var(--brand-tint); color: var(--brand-ink); font-family: var(--mono); }
.affiliate-card__ad-label { font-size: .6rem; font-weight: 500; color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; margin-left: auto; flex-shrink: 0; border: 1px solid var(--line-soft); padding: .1rem .4rem; border-radius: 3px; font-family: var(--mono); }
.affiliate-card__features { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; font-size: .78rem; }
.affiliate-card__features li { background: var(--surface-sunk); border: 1px solid var(--line-soft); padding: .2rem .55rem; border-radius: 9999px; color: var(--muted); font-weight: 500; }
.affiliate-card__features li::before { content: '✓ '; color: var(--ok); font-weight: 600; }
.affiliate-card__cta { width: 100%; justify-content: center; background: var(--brand); border-color: var(--brand); font-size: .85rem; padding: .55rem 1rem; color: #fff; }
.affiliate-card__cta:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }

/* ===== Affiliate comparison ===== */
.affiliate-comparison { margin: 2rem 0; padding: 1.5rem; background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line); }
.affiliate-comparison__heading { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--ink); }
.affiliate-comparison__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.affiliate-comparison__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; position: relative; }
.affiliate-comparison__card--featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.affiliate-comparison__badge { position: absolute; top: -.65rem; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .65rem; font-weight: 700; padding: .15rem .6rem; border-radius: 20px; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.affiliate-comparison__name { font-weight: 700; font-size: 1rem; margin-top: .5rem; }
.affiliate-comparison__features { list-style: none; padding: 0; margin: 0; font-size: .8rem; color: var(--muted); flex: 1; }
.affiliate-comparison__features li::before { content: '✓ '; color: #16a34a; font-weight: 700; }
.affiliate-comparison__cta { margin-top: auto; text-align: center; width: 100%; }
.affiliate-comparison__disclaimer { font-size: .7rem; color: var(--muted); margin: 0; }

/* ===== Ported component CSS (mi-design tokens) ===== */

/* --- Speedtest phase indicators --- */
.st-phase { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-weight: 500; transition: color .3s; }
.st-phase__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s, box-shadow .3s; }
.st-phase--active { color: var(--brand); font-weight: 700; }
.st-phase--active .st-phase__dot { background: var(--brand); box-shadow: 0 0 0 3px rgba(94,46,227,.2); animation: st-pulse 1.2s ease infinite; }
.st-phase--done { color: var(--ok); }
.st-phase--done .st-phase__dot { background: var(--ok); }
@keyframes st-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(94,46,227,.2); }
  50%       { box-shadow: 0 0 0 6px rgba(94,46,227,.08); }
}

/* --- Blacklist summary --- */
.blacklist-summary { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.blacklist-stat { text-align: center; padding: 1rem 1.5rem; background: var(--surface-sunk); border-radius: var(--r); min-width: 100px; }
.blacklist-stat--green { background: #f0fdf4; }
.blacklist-stat--red   { background: #fef2f2; }
.blacklist-stat__num { display: block; font-size: 2rem; font-weight: 800; line-height: 1.2; }
.blacklist-stat--green .blacklist-stat__num { color: #16a34a; }
.blacklist-stat--red   .blacklist-stat__num { color: #dc2626; }
.blacklist-stat__label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* --- SSL status --- */
.ssl-status { padding: .75rem 1rem; border-radius: var(--r); font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.ssl-status--valid   { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.ssl-status--invalid { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.ssl-chain { list-style: decimal; padding-left: 1.25rem; font-size: .85rem; line-height: 2; }

/* --- Header grade --- */
.header-grade { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: var(--r); margin-bottom: 1rem; }
.header-grade__letter { font-size: 2.5rem; font-weight: 800; line-height: 1; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: var(--r); color: #fff; }
.header-grade__text { font-weight: 600; font-size: .9rem; }
.header-grade--a { background: #f0fdf4; } .header-grade--a .header-grade__letter { background: #16a34a; }
.header-grade--b { background: #f0fdf4; } .header-grade--b .header-grade__letter { background: #65a30d; }
.header-grade--c { background: #fefce8; } .header-grade--c .header-grade__letter { background: #ca8a04; }
.header-grade--d { background: #fff7ed; } .header-grade--d .header-grade__letter { background: #ea580c; }
.header-grade--f { background: #fef2f2; } .header-grade--f .header-grade__letter { background: #dc2626; }

/* --- IPv6 score --- */
.ipv6-score { padding: .75rem 1rem; border-radius: var(--r); font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.ipv6-score--excellent, .ipv6-score--good { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.ipv6-score--partial { background: #fefce8; color: #ca8a04; border: 1px solid #fef08a; }
.ipv6-score--none    { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* --- Result messages --- */
.result-error   { padding: .75rem 1rem; background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; border-radius: var(--r); font-weight: 500; }
.result-warning { padding: .75rem 1rem; background: #fffbeb; color: #b45309; border: 1px solid #fde68a; border-radius: var(--r); font-weight: 500; font-size: .875rem; }
.result-success { padding: .75rem 1rem; background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; border-radius: var(--r); font-weight: 500; font-size: .875rem; }

/* --- Tools page --- */
.tools-page-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
.tool-page-card {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tool-page-card:hover { border-color: var(--brand); box-shadow: var(--shadow-2); transform: translateY(-2px); color: var(--ink); }
.tool-page-card__icon { flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); border-radius: var(--r); color: var(--brand); }
.tool-page-card__content { flex: 1; min-width: 0; }
.tool-page-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; color: var(--ink); }
.tool-page-card__desc  { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.tool-page-card__arrow { flex-shrink: 0; font-size: 1.25rem; color: var(--muted); transition: color .15s, transform .15s; }
.tool-page-card:hover .tool-page-card__arrow { color: var(--brand); transform: translateX(4px); }

/* --- Widget configurator --- */
.widget-configurator__options { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.widget-configurator__subtitle { font-size: .9rem; font-weight: 700; margin: 1.25rem 0 .75rem; color: var(--ink); }
.widget-preview { padding: 1rem; background: var(--surface-sunk); border-radius: var(--r); display: flex; justify-content: center; margin-bottom: .5rem; }

/* --- Form controls --- */
.form-group { margin-bottom: 1rem; }
.form-control {
  width: 100%; padding: .65rem .85rem;
  font-size: .875rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(94,46,227,.1); }
.checkbox-group { display: flex; flex-wrap: wrap; gap: .75rem; }
.checkbox-group label { display: flex; align-items: center; gap: .35rem; font-size: .85rem; cursor: pointer; }

/* --- Code blocks --- */
.code-block { position: relative; margin-bottom: 1rem; }
.code-block__pre { background: #050509; color: #e8e4d6; border: 1px solid #1d1e26; padding: 1rem 1.1rem; padding-right: 5rem; border-radius: var(--r); font-family: var(--mono); font-size: .82rem; line-height: 1.6; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.code-block__copy { position: absolute; top: .5rem; right: .5rem; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #e8e4d6; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.code-block__copy:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }
.code-block__label { font-family: var(--mono); font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .35rem; margin-top: 1rem; }

/* --- API docs --- */
.api-docs__section { margin-bottom: 1.5rem; }
.api-docs__info-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; }
.api-docs__info-item { display: flex; flex-direction: column; gap: .35rem; padding: .75rem; background: var(--surface-sunk); border-radius: var(--r); }
.api-docs__info-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.api-docs__info-value { font-family: var(--mono); font-size: .85rem; font-weight: 600; }
.api-docs__badge { display: inline-block; padding: .15rem .6rem; border-radius: 9999px; font-size: .8rem; font-weight: 600; }
.api-docs__badge--green { background: rgba(16,185,129,.15); color: #065f46; }
.api-docs__endpoint-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.api-docs__method { display: inline-flex; align-items: center; padding: .25rem .6rem; border-radius: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; }
.api-docs__method--get { background: rgba(16,185,129,.15); color: #065f46; }
.api-docs__path { font-family: var(--mono); font-size: 1rem; font-weight: 600; }
.api-docs__subtitle { font-size: .9rem; font-weight: 700; margin: 1.25rem 0 .75rem; color: var(--ink); }
.api-docs__params { width: 100%; border-collapse: collapse; font-size: .85rem; margin-bottom: 1rem; }
.api-docs__params th, .api-docs__params td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.api-docs__params th { background: var(--surface-sunk); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.api-docs__params code { font-family: var(--mono); font-size: .8rem; background: var(--surface-sunk); padding: .1rem .35rem; border-radius: 3px; }
.api-docs__tryit { background: var(--surface-sunk); border-radius: var(--r); padding: 1rem; }
.api-docs__tryit-input { display: flex; gap: .5rem; margin-bottom: .75rem; }
.api-docs__tryit-input .form-control { flex: 1; font-family: var(--mono); }
.api-docs__tryit-curl { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.api-docs__tryit-curl code { flex: 1; font-family: var(--mono); font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-docs__response { background: #1e293b; color: #e2e8f0; font-family: var(--mono); font-size: .8rem; line-height: 1.6; padding: 1rem; border-radius: var(--r); overflow-x: auto; white-space: pre-wrap; min-height: 60px; max-height: 400px; overflow-y: auto; }
.api-docs__response--loading { color: var(--muted-2); font-style: italic; }
.api-docs__attribution { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-color: #bbf7d0; }
.api-docs__attribution p { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; line-height: 1.6; }
.api-docs__copy { flex-shrink: 0; }

/* --- Subname input with domain suffix --- */
.subname-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.subname-input .form-control { border: none; border-radius: 0; flex: 1; background: transparent; }
.subname-input .form-control:focus { box-shadow: none; outline: none; }
.subname-input__suffix { padding: .65rem .9rem; background: var(--surface-sunk); color: var(--muted); font-family: var(--mono); font-size: .9rem; border-left: 1px solid var(--line); display: flex; align-items: center; }

/* --- Hostname availability indicator --- */
.subname-status { margin: .5rem 0 0; padding: .4rem .7rem; font-size: .85rem; border-radius: 6px; min-height: 1.5em; line-height: 1.5; }
.subname-status:empty { display: none; }
.subname-status--checking { background: var(--surface-sunk); color: var(--muted); }
.subname-status--ok       { background: #eaf3ec; color: #1e6a3a; }
.subname-status--ok::before       { content: '✓ '; font-weight: 700; }
.subname-status--taken    { background: #fce4e4; color: #8c2020; }
.subname-status--taken::before    { content: '✗ '; font-weight: 700; }
.subname-status--invalid  { background: #fff2d6; color: #8a6a14; }
.subname-status--invalid::before  { content: '⚠ '; font-weight: 700; }
.subname-status--warn     { background: #fff2d6; color: #8a6a14; }
.subname-suggestion { display: inline-block; background: var(--surface); color: var(--brand); border: 1px solid currentColor; border-radius: 4px; padding: .15rem .55rem; margin: .15rem .25rem .15rem 0; font-family: var(--mono); font-size: .8rem; cursor: pointer; transition: background .12s; }
.subname-suggestion:hover { background: var(--brand); color: #fff; }

/* --- Responsive overrides --- */
@media (max-width: 768px) {
  .api-docs__tryit-input        { flex-direction: column; }
  .api-docs__info-grid          { grid-template-columns: 1fr 1fr; }
  .widget-configurator__options { grid-template-columns: 1fr; }
}
