/* =====================================================================
   License Regulations EU — Validator
   Premium, modern EU regulatory theme.
   ===================================================================== */

:root {
  --blue:        #0a2e8c;
  --blue-600:    #103bb0;
  --blue-700:    #0a2a86;
  --blue-glow:   rgba(16, 59, 176, .25);
  --navy:        #0a1733;
  --navy-2:      #0e2350;
  --navy-3:      #13306b;
  --gold:        #e7b54a;
  --gold-2:      #f2cd74;
  --gold-soft:   #fbf3dd;
  --ink:         #0f1729;
  --ink-2:       #2a3447;
  --muted:       #626d80;
  --muted-2:     #8a93a4;
  --line:        #e5e9f2;
  --line-2:      #eef1f7;
  --bg:          #eef1f8;
  --bg-2:        #f6f8fc;
  --card:        #ffffff;

  --ok:   #15803d;  --ok-bg:   #e7f5ed;  --ok-bd:  #b7e2c6;
  --warn: #b45309;  --warn-bg: #fdf3e0;  --warn-bd:#f3dcae;
  --bad:  #c0271f;  --bad-bg:  #fdeceb;  --bad-bd: #f3c5c1;
  --neu:  #475569;  --neu-bg:  #eef1f7;  --neu-bd: #d9dfea;

  --r-lg: 20px;
  --r:    14px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13,28,64,.06), 0 2px 6px rgba(13,28,64,.05);
  --shadow:    0 8px 28px rgba(13,28,64,.09);
  --shadow-lg: 0 24px 60px rgba(8,20,56,.18);
  --shadow-gold: 0 12px 30px rgba(231,181,74,.35);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", "Consolas", "SFMono-Regular", ui-monospace, monospace;
}

/* ---- Dark theme ---- */
html[data-theme="dark"] {
  --blue-700: #4d77e6; --blue-600: #5b84f0;
  --ink: #e7ecf6; --ink-2: #c3ccdc; --muted: #9aa6bc; --muted-2: #7e8aa2;
  --line: #283350; --line-2: #1f2840; --bg: #0a1222; --bg-2: #111c33; --card: #14203b;
  --gold-soft: #2a2410;
  --ok-bg:#10301f; --ok-bd:#1f5a3a; --warn-bg:#352a12; --warn-bd:#5e4a1c; --bad-bg:#3a1714; --bad-bd:#6b2a24; --neu-bg:#1c2740; --neu-bd:#2c3a59;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 10px 30px rgba(0,0,0,.5); --shadow-lg: 0 24px 60px rgba(0,0,0,.65);
}
html[data-theme="dark"] body {
  color: var(--ink);
  background: radial-gradient(1000px 500px at 100% -10%, #0e1b36 0, transparent 60%), radial-gradient(800px 400px at -10% 0, #0e1830 0, transparent 55%), var(--bg);
}
html[data-theme="dark"] .site-header { background: rgba(16,24,44,.86); }
html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .scard,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .result,
html[data-theme="dark"] .dcard--main,
html[data-theme="dark"] .qr-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .feature,
html[data-theme="dark"] .stat-tile,
html[data-theme="dark"] .table,
html[data-theme="dark"] .search-bar,
html[data-theme="dark"] .ticker,
html[data-theme="dark"] .modal__card,
html[data-theme="dark"] .track-topbar,
html[data-theme="dark"] .track-progress,
html[data-theme="dark"] .track-features .tf,
html[data-theme="dark"] .feed-item,
html[data-theme="dark"] .legend .row,
html[data-theme="dark"] .faq,
html[data-theme="dark"] .site-footer__main { background: var(--card); }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .search-bar input, html[data-theme="dark"] .search-bar select,
html[data-theme="dark"] .chat-input input, html[data-theme="dark"] .addr-ac { background: #0e1830; color: var(--ink); }
html[data-theme="dark"] .table th { background: #0f1a30; }
html[data-theme="dark"] .stat-box { background: linear-gradient(160deg,#13203a,#0f1a30); border-color: var(--line); }
html[data-theme="dark"] .chat-body, html[data-theme="dark"] .chat-chips { background: var(--bg-2); }
html[data-theme="dark"] .msg.bot { background: #0e1830; }
html[data-theme="dark"] .btn-ghost { background: #0e1830; color: #cdd8f2; }
html[data-theme="dark"] .tag, html[data-theme="dark"] .acc__tag { background: #16223f; color: #aebfe8; border-color: #283350; }
html[data-theme="dark"] code { background: #0e1830; color: #cdd8f2; }
html[data-theme="dark"] .doc { filter: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; }
.theme-toggle:hover { color: var(--blue-700); border-color: #c7d2ea; }
.theme-toggle .t-moon { display: none; }
html[data-theme="dark"] .theme-toggle .t-sun { display: none; }
html[data-theme="dark"] .theme-toggle .t-moon { display: block; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, #e9eefb 0, transparent 60%),
    radial-gradient(900px 500px at -10% 0, #eaf0fc 0, transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { line-height: 1.18; letter-spacing: -.01em; }
code, .mono { font-family: var(--mono); }
.muted { color: var(--muted); }
img { max-width: 100%; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.page { padding: 30px 22px 64px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__emblem { display: grid; place-items: center; }
.brand__emblem svg { display: block; border-radius: 6px; box-shadow: var(--shadow-sm); }
.brand__text strong { display: block; font-size: 1.22rem; font-weight: 800; color: var(--blue-700); letter-spacing: -.02em; }
.brand__text small { display: block; color: var(--muted); font-size: .78rem; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-2); font-size: .9rem; font-weight: 600; padding: 8px 12px; border-radius: 9px; }
.site-nav a:hover { background: var(--bg-2); text-decoration: none; color: var(--blue-700); }
.site-nav__admin { border: 1px solid var(--line); }
.ribbon { background: linear-gradient(90deg, var(--blue-700), var(--blue-600)); color: #eaf0ff; }
.ribbon .container { padding: 9px 22px; font-size: .82rem; font-weight: 600; letter-spacing: .01em; display: flex; align-items: center; gap: 9px; }
.ribbon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(231,181,74,.25); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-weight: 700; cursor: pointer; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s; text-align: center; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; box-shadow: 0 10px 24px var(--blue-glow); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px var(--blue-glow); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #41320b; box-shadow: var(--shadow-gold); }
.btn-gold:hover { color: #41320b; filter: brightness(1.03); }
.btn-ghost { background: #fff; color: var(--blue-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #c7d2ea; }
.btn-dark { background: #16223f; color: #e8eefc; border: 1px solid #243456; }
.btn-dark:hover { color: #fff; background: #1c2b4e; }
.btn-danger { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-bd); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: .82rem; border-radius: 9px; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select, .field textarea, .search-bar input, .search-bar select {
  font: inherit; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-bar input:focus, .search-bar select:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(16,59,176,.13); }
.form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.form--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: none; }
.field--full { grid-column: 1 / -1; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.empty h3 { margin-top: 0; color: var(--blue-700); }
.muted { color: var(--muted); }

/* =====================================================================
   LANDING
   ===================================================================== */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 26px; align-items: start; }

.hero-head { margin: 4px 0 24px; }
.hero-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-soft); color: #8a6516; border: 1px solid #f0e0b8; font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; }
.hero-head h1 { font-size: 2.1rem; font-weight: 800; color: var(--blue-700); margin: 14px 0 8px; max-width: 22ch; }
.hero-head p { color: var(--muted); font-size: 1.05rem; max-width: 56ch; margin: 0; }

/* Search panel (dark) */
.search-panel { position: relative; overflow: hidden; border-radius: var(--r-lg); background: linear-gradient(155deg, var(--navy), var(--navy-2) 60%, var(--navy-3)); color: #eaf0ff; padding: 28px; box-shadow: var(--shadow-lg); border: 1px solid #1b2c54; }
.search-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 200px at 90% -20%, rgba(231,181,74,.18), transparent 60%); pointer-events: none; }
.search-panel__bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); }
.search-panel h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 1.4rem; }
.search-panel__sub { color: #9fb0d6; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 20px; }
.search-grid { display: grid; grid-template-columns: 240px 1fr; gap: 14px; }
.search-grid .field > span { color: #9fb0d6; }
.search-panel select, .search-panel .scan-input input { background: #0c1c40; border-color: #21345f; color: #eaf0ff; }
.search-panel select:focus, .search-panel .scan-input input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(231,181,74,.18); }
.scan-input { position: relative; }
.scan-input .scan-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--gold); pointer-events: none; }
.scan-input input { padding-left: 44px; }
.search-panel .btn { margin-top: 18px; }
.search-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.search-actions .btn { flex: 1 1 auto; }
.search-or { color: #9fb0d6; font-weight: 600; font-size: .85rem; }
.btn-scan { background: rgba(255,255,255,.06); color: #eaf0ff; border: 1.5px solid #2b3f6b; }
.btn-scan:hover { background: rgba(255,255,255,.12); color: #fff; border-color: var(--gold); }
.search-panel__hint { margin: 14px 0 0; font-size: .86rem; color: #9fb0d6; }
/* Scanner */
.scan-card { max-width: 480px; text-align: center; }
.scan-stage { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 1/1; max-height: 360px; margin: 0 auto; }
.scan-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-reticle { position: absolute; inset: 18%; border: 3px solid rgba(231,181,74,.9); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.25); }
.scan-reticle::before, .scan-reticle::after { content: ""; position: absolute; left: -3px; right: -3px; height: 3px; background: var(--gold); animation: scanline 2s ease-in-out infinite alternate; }
@keyframes scanline { from { top: 0; } to { bottom: 0; top: auto; } }
.scan-status { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .86rem; font-weight: 600; padding: 22px 12px 12px; }
.search-panel__hint a { color: var(--gold-2); font-weight: 600; }

/* Recently-verified ticker */
.ticker { display: flex; align-items: center; gap: 14px; margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; padding: 10px 14px; }
.ticker__label { flex: 0 0 auto; font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-bd); padding: 5px 11px; border-radius: 999px; }
.ticker__viewport { flex: 1; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker__track { display: inline-flex; gap: 30px; white-space: nowrap; animation: tickerScroll 34s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.ticker__item:hover { color: var(--blue-700); text-decoration: none; }
.ticker__item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* Registers accordion */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; margin-top: 24px; }
.panel__head { display: flex; align-items: center; gap: 10px; padding: 18px 24px; border-bottom: 1px solid var(--line-2); font-weight: 800; color: var(--blue-700); font-size: 1.12rem; }
.acc__item { border-bottom: 1px solid var(--line-2); }
.acc__item:last-child { border-bottom: none; }
.acc__btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 24px; background: none; border: 0; cursor: pointer; font: inherit; text-align: left; color: var(--ink); }
.acc__btn:hover { background: var(--bg-2); }
.acc__tag { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-700); background: #eaf0ff; border: 1px solid #d4e0fb; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.acc__title { font-weight: 700; flex: 1; }
.acc__chev { transition: transform .25s; color: var(--muted); }
.acc__item.open .acc__chev { transform: rotate(180deg); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc__item.open .acc__body { max-height: 460px; }
.acc__inner { padding: 4px 24px 22px; }
.acc__inner .lead { display: flex; gap: 10px; color: var(--ink-2); margin: 0 0 14px; }
.acc__inner .lead .star { color: var(--gold); flex: 0 0 auto; }
.acc__inner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acc__inner li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.acc__inner li b { color: var(--blue-700); }
.acc__inner li .bull { color: var(--gold); }

/* Sidebar */
.side { display: flex; flex-direction: column; gap: 18px; }
.scard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.scard__head { display: flex; align-items: center; gap: 9px; padding: 14px 18px; font-weight: 800; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--blue-700); border-bottom: 1px solid var(--line-2); }
.scard__body { padding: 18px; }
.qlinks { list-style: none; margin: 0; padding: 6px; }
.qlinks li a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.qlinks li a:hover { background: var(--bg-2); text-decoration: none; color: var(--blue-700); }
.qlinks .ic { color: var(--blue-600); }
.stat-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.stat-box { text-align: center; padding: 16px 8px; border-radius: var(--r-sm); background: linear-gradient(160deg, #f3f6fd, #eaf0fb); border: 1px solid #e1e9f8; }
.stat-box strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--blue-700); letter-spacing: -.02em; }
.stat-box span { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.feature { display: flex; gap: 13px; padding: 18px; }
.feature__ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); box-shadow: 0 8px 18px var(--blue-glow); }
.feature__ic.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #41320b; box-shadow: var(--shadow-gold); }
.feature h4 { margin: 0 0 5px; font-size: .98rem; color: var(--ink); }
.feature p { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Crumbs / search bar (interior pages) ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); padding: 12px; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.search-bar input { flex: 1 1 280px; }
.search-bar select { flex: 0 1 260px; }
.results-meta { color: var(--muted); margin-bottom: 14px; }
.search-filters { margin-bottom: 22px; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow-sm); }
.filter-row .field { flex: 1 1 160px; }
html[data-theme="dark"] .filter-row { background: var(--card); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pager__num { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 700; }
.pager__num:hover { text-decoration: none; border-color: var(--blue-600); }
.pager__num.active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
html[data-theme="dark"] .pager__num { background: var(--card); }

/* Result list */
.result-list { display: flex; flex-direction: column; gap: 12px; }
.result { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .12s; }
.result:hover { text-decoration: none; border-color: #c7d2ea; box-shadow: var(--shadow); transform: translateY(-1px); }
.result__main h3 { margin: 0 0 4px; color: var(--blue-700); font-size: 1.05rem; }
.result__sub { margin: 0; font-size: .88rem; }
.result__side { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.tag { display: inline-block; background: #eef1f8; color: var(--blue-700); font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 20px; margin-right: 6px; }

/* ---------- Status pills ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; border: 1px solid transparent; }
.status .g { font-weight: 900; }
.status--active      { background: var(--ok-bg);   color: var(--ok);   border-color: var(--ok-bd); }
.status--suspended,
.status--pending     { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-bd); }
.status--liquidation,
.status--revoked,
.status--dissolved   { background: var(--bad-bg);  color: var(--bad);  border-color: var(--bad-bd); }
.status--expired,
.status--unknown     { background: var(--neu-bg);  color: var(--neu);  border-color: var(--neu-bd); }

/* =====================================================================
   DARK RESULT PAGE
   ===================================================================== */
.result-wrap { padding: 28px 22px 60px; }
.result-grid { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 24px; align-items: start; }
.ship-banner { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 16px 22px; border-radius: var(--r); background: linear-gradient(135deg, #102a5e, #0e2350); color: #eaf0ff; box-shadow: var(--shadow); border: 1px solid #1b2c54; }
.ship-banner:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.ship-banner__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(231,181,74,.16); border: 1px solid rgba(231,181,74,.4); color: var(--gold-2); flex: 0 0 auto; }
.ship-banner__txt { flex: 1; min-width: 0; }
.ship-banner__txt b { display: block; }
.ship-banner__txt small { color: #b9c6e6; }
.ship-banner__txt .mono { color: var(--gold-2); }
.ship-banner__cta { font-weight: 700; color: var(--gold-2); white-space: nowrap; }

.dcard { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.dcard--main { background: #fff; border: 1px solid var(--line); }
.entity-head { position: relative; background: linear-gradient(150deg, var(--navy), var(--navy-2) 55%, var(--navy-3)); color: #fff; padding: 30px 32px; }
.entity-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); }
.entity-head__row { display: flex; gap: 22px; align-items: center; }
.entity-ico { flex: 0 0 auto; width: 94px; height: 94px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(231,181,74,.4); color: var(--gold-2); box-shadow: inset 0 0 30px rgba(231,181,74,.08); }
.entity-ico svg { width: 46px; height: 46px; }
.entity-head h1 { font-size: 2rem; font-weight: 800; margin: 0 0 6px; }
.entity-head .sub { color: #b9c6e6; font-size: 1.02rem; margin: 0 0 14px; }
.entity-head .sub b { color: #e7eefc; }

.fields { display: grid; grid-template-columns: 1fr 1fr; }
.fields .f { padding: 22px 32px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.fields .f:nth-child(2n) { border-right: none; }
.fields .f--full { grid-column: 1 / -1; border-right: none; }
.fields dt { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.fields dd { margin: 0; font-size: 1.06rem; color: var(--ink); font-weight: 600; }
.fields dd.mono { font-family: var(--mono); font-weight: 700; letter-spacing: -.01em; }
.fields dd .sic-code { color: var(--blue-700); font-family: var(--mono); display: block; }

.result-actions { display: flex; gap: 14px; padding: 24px 32px; flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid var(--line-2); background: var(--bg-2); }
.result-actions .spacer { flex: 1; }

/* Result sidebar */
.rside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.qr-card__head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; color: #fff; font-weight: 800; background: linear-gradient(150deg, var(--navy), var(--navy-2)); position: relative; }
.qr-card__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.qr-card__body { padding: 24px; text-align: center; }
.qr-box { display: inline-flex; align-items: center; justify-content: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.qr-box img, .qr-box canvas, .qr-box svg { display: block; border-radius: 6px; }
.qr-card__cap { color: var(--muted); font-size: .9rem; margin: 16px 0 18px; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.about-card h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 1rem; color: var(--blue-700); }
.about-card p { margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.about-card .lbl { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); display: block; margin-bottom: 4px; }
.about-card .vurl { font-family: var(--mono); font-size: .8rem; color: var(--blue-600); word-break: break-all; display: block; margin-bottom: 14px; }
.copy-btn { font: inherit; font-size: .68rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--blue-700); background: #eef1f8; border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; cursor: pointer; margin-left: 6px; }
.copy-btn:hover { background: #e2e9fb; }

/* =====================================================================
   PRINTABLE REPORT (document)
   ===================================================================== */
.doc { max-width: 880px; margin: 0 auto; padding: 30px 22px 60px; }
.doc__toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.doc__sheet { background: #fff; }
.doc__brand { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 3px solid var(--gold); }
.doc__brand .t strong { display: block; font-size: 1.45rem; color: var(--ink); font-weight: 800; }
.doc__brand .t small { color: var(--muted); }
.doc__banner { margin: 22px 0; background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--r); padding: 20px 26px; display: flex; justify-content: space-between; align-items: center; }
.doc__banner h2 { margin: 0; font-size: 1.25rem; }
.doc__banner .ref { color: var(--gold-2); font-weight: 700; font-size: .9rem; }
.doc__entity { display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 22px; background: #fff; }
.doc__entity .ico { width: 72px; height: 72px; border-radius: 14px; background: #eef2fb; border: 1px solid #dde6f7; display: grid; place-items: center; color: var(--blue-700); }
.doc__entity h3 { margin: 0 0 4px; font-size: 1.4rem; }
.doc__entity .sub { color: var(--muted); margin: 0 0 10px; }
.dtable { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dtable tr { border-bottom: 1px solid var(--line-2); }
.dtable tr:last-child { border-bottom: none; }
.dtable th { width: 230px; text-align: left; vertical-align: top; padding: 15px 20px; background: var(--bg-2); color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-right: 1px solid var(--line-2); }
.dtable td { padding: 15px 20px; font-size: .98rem; color: var(--ink); }
.dtable td.mono { font-family: var(--mono); font-weight: 700; }
.doc__qr { display: flex; gap: 22px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin: 22px 0; background: #fff; }
.doc__qr h4 { margin: 0 0 4px; }
.doc__qr p { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.doc__qr .vurl { font-family: var(--mono); font-size: .82rem; color: var(--blue-600); word-break: break-all; }
.doc__disclaimer { border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--r); padding: 18px 20px; font-size: .85rem; color: var(--muted); }
.doc__foot { margin-top: 22px; padding-top: 16px; border-top: 3px solid var(--gold); display: flex; justify-content: space-between; gap: 20px; font-size: .82rem; }
.doc__foot .l strong { color: var(--ink); }
.doc__foot .r { text-align: right; color: var(--muted); }
.cat-pill { display: inline-block; background: var(--gold-soft); color: #8a6516; border: 1px solid #f0e0b8; font-weight: 700; padding: 4px 12px; border-radius: 8px; font-size: .88rem; }

/* =====================================================================
   OVERLAYS — navy splash, checking-browser, search, modal
   ===================================================================== */
.overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; opacity: 1; transition: opacity .5s ease; }
.overlay[hidden] { display: none !important; }
.overlay.hide { opacity: 0; pointer-events: none; }
/* No-JS / stalled-JS failsafe: full-screen intros auto-dismiss after 8s. */
#result-intro, #splash { animation: overlayFailsafe 0s linear 8s forwards; }
@keyframes overlayFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Navy "Accessing EU Regulatory Database" */
.splash { background: radial-gradient(900px 600px at 50% 0, #122a5e 0, var(--navy) 55%, #060f24 100%); color: #fff; }
.splash__inner { text-align: center; padding: 30px; max-width: 520px; }
.splash__emblem { width: 96px; height: 64px; margin: 0 auto 26px; border-radius: 8px; box-shadow: 0 0 40px rgba(231,181,74,.25); }
.spinner { width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 50%; border: 4px solid rgba(231,181,74,.18); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.splash h2 { font-size: 1.8rem; font-weight: 800; margin: 0 0 6px; }
.splash .tagline { color: var(--gold-2); font-style: italic; font-size: 1.05rem; margin: 0 0 30px; }
.steps { display: grid; gap: 14px; margin: 0 auto 26px; max-width: 340px; text-align: left; }
.step { display: flex; align-items: center; gap: 12px; color: #6f80a8; font-weight: 600; opacity: .5; transition: color .3s, opacity .3s; }
.step .si { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 2px solid currentColor; font-size: .7rem; flex: 0 0 auto; }
.step.active { color: var(--gold-2); opacity: 1; }
.step.done { color: #6fcf97; opacity: 1; }
.step.done .si { background: #6fcf97; border-color: #6fcf97; color: #07210f; }
.pbar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; max-width: 340px; margin: 0 auto 16px; }
.pbar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .4s ease; }
.splash .nodes { color: var(--gold-2); font-weight: 700; font-size: .95rem; }
.splash .nodes span { font-variant-numeric: tabular-nums; }

/* Checking your browser (light) */
.checking { background: #fff; color: var(--ink); }
.checking__inner { text-align: center; padding: 30px; }
.spinner--blue { border-color: rgba(16,59,176,.15); border-top-color: var(--blue-600); width: 72px; height: 72px; margin-bottom: 30px; }
.checking h2 { font-size: 1.7rem; font-weight: 800; max-width: 16ch; margin: 0 auto 12px; }
.checking p { color: var(--muted); }

/* Search overlay (over the search panel) */
.search-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(10,23,51,.82); backdrop-filter: blur(4px); border-radius: var(--r-lg); opacity: 0; pointer-events: none; transition: opacity .3s; }
.search-overlay.show { opacity: 1; pointer-events: auto; }
.search-overlay__box { text-align: center; color: #fff; padding: 20px; }
.search-overlay h3 { margin: 14px 0 16px; font-weight: 800; }
.search-overlay .steps { max-width: 300px; }
.search-overlay .nodes { color: var(--gold-2); font-weight: 700; margin-top: 14px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 20px; background: rgba(8,16,38,.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.show { opacity: 1; pointer-events: auto; }
.modal__card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 460px; padding: 34px 32px; text-align: center; transform: translateY(12px) scale(.98); transition: transform .25s; }
.modal.show .modal__card { transform: none; }
.modal__icon { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; }
.modal__icon.ok   { background: var(--ok-bg);   color: var(--ok);   border: 3px solid var(--ok-bd); }
.modal__icon.warn { background: var(--warn-bg); color: var(--warn); border: 3px solid var(--warn-bd); }
.modal__icon.bad  { background: var(--bad-bg);  color: var(--bad);  border: 3px solid var(--bad-bd); }
.modal h2 { font-size: 1.7rem; margin: 0 0 14px; }
.modal .who { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; }
.modal .meta { color: var(--muted); margin: 0 0 6px; }
.modal__actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

/* =====================================================================
   ALERTS / PROSE / FOOTER / ADMIN
   ===================================================================== */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: .94rem; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-bd); }
.alert-error { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-bd); }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-bd); }
.alert ul { margin: 0; padding-left: 18px; }
.install-log { line-height: 1.9; }

.prose { max-width: 820px; margin: 0 auto; }
.prose h1 { color: var(--blue-700); margin-top: 0; }
.prose h2 { color: var(--blue-700); margin-top: 28px; font-size: 1.2rem; }
.prose ul { padding-left: 20px; } .prose li { margin-bottom: 7px; }

.site-footer { margin-top: 56px; }
.site-footer__ribbon { background: linear-gradient(90deg, var(--blue-700), var(--blue-600)); color: #eaf0ff; }
.site-footer__ribbon .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; flex-wrap: wrap; font-weight: 600; font-size: .9rem; }
.site-footer__ribbon .pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 7px 14px; border-radius: 9px; color: #fff; font-weight: 700; }
.site-footer__main { background: #fff; border-top: 1px solid var(--line); }
.site-footer__main .container { display: flex; justify-content: space-between; gap: 26px; padding: 26px 22px; flex-wrap: wrap; }
.site-footer__brand { display: flex; gap: 13px; align-items: center; }
.site-footer__brand strong { display: block; color: var(--ink); font-weight: 800; }
.site-footer__brand small { color: var(--muted); }
.site-footer__legal { text-align: right; color: var(--muted); font-size: .85rem; }
.site-footer__legal b { color: var(--ink); display: block; }
.footer-links { margin-top: 10px; font-size: .85rem; }
.footer-links a { color: var(--blue-700); }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1150; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 16px; justify-content: space-between; background: var(--navy); color: #eaf0ff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid #1b2c54; }
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: var(--gold-2); }
.cookie-banner span { font-size: .88rem; }
@media print { .cookie-banner { display: none !important; } }

.admin { background: var(--bg); }
.admin-bar { background: var(--navy); color: #fff; }
.admin-bar__inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; flex-wrap: wrap; gap: 12px; }
.admin-bar__brand { color: #fff; font-weight: 800; }
.admin-bar__nav { display: flex; align-items: center; gap: 16px; }
.admin-bar__nav a { color: #b9c6e6; font-size: .9rem; font-weight: 600; }
.admin-bar__nav a:hover { color: #fff; }
.admin-bar__user { color: var(--gold-2); font-weight: 700; font-size: .85rem; }
.admin-main { padding: 30px 22px 60px; max-width: 1180px; margin: 0 auto; }
.admin-h1 { color: var(--blue-700); }
.admin-stats { display: flex; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 26px; box-shadow: var(--shadow-sm); }
.stat-tile strong { display: block; font-size: 1.7rem; color: var(--blue-700); font-weight: 800; }
.stat-tile span { font-size: .78rem; color: var(--muted); }
.admin-toolbar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.admin-toolbar .search-bar { margin-bottom: 0; flex: 1; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-size: .9rem; vertical-align: middle; }
.table th { background: #f0f3fa; color: var(--muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; }
.table tr:last-child td { border-bottom: none; }
.table__actions { white-space: nowrap; display: flex; gap: 6px; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 160px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bar-col .bar { width: 100%; max-width: 46px; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, var(--blue-600), var(--blue-700)); transition: height .4s; }
.bar-col .bar-val { font-size: .78rem; font-weight: 700; color: var(--blue-700); }
.bar-col .bar-lbl { font-size: .72rem; color: var(--muted); }
.login-card { max-width: 420px; margin: 56px auto; }
.login-card h1 { margin-top: 0; color: var(--blue-700); }
.login-card .form { max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .layout, .result-grid { grid-template-columns: 1fr; }
  .rside { position: static; }
  .search-grid { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .fields .f { border-right: none; }
  .form--grid { grid-template-columns: 1fr; }
  .hero-head h1 { font-size: 1.7rem; }
  .entity-head__row { flex-direction: column; text-align: center; }
}

/* ---------- Footer hardening (no cut text) ---------- */
.site-footer__main .container { align-items: flex-start; }
.site-footer__brand { flex: 1 1 280px; min-width: 0; }
.site-footer__legal { flex: 1 1 320px; min-width: 0; }
.doc__foot { flex-wrap: wrap; }
.doc__foot .l, .doc__foot .r { flex: 1 1 240px; min-width: 0; }

/* ---------- Official report extras ---------- */
.doc__sheet { position: relative; overflow: hidden; }
.doc__sheet > *:not(.doc__watermark):not(.doc__stamp) { position: relative; z-index: 1; }
/* Subtle, evenly-tiled security watermark behind the (opaque) content cards. */
.doc__watermark { position: absolute; inset: -30%; z-index: 0; pointer-events: none; opacity: .04; transform: rotate(-22deg); background-repeat: repeat; background-position: center; background-size: 150px 100px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc__stamp { position: absolute; top: 30%; left: 50%; transform: translate(-50%,-50%) rotate(-16deg); z-index: 2; pointer-events: none;
  font-size: 4.4rem; font-weight: 900; letter-spacing: .06em; padding: 8px 26px; border: 7px double currentColor; border-radius: 14px; opacity: .14; text-transform: uppercase; }
.doc__stamp--liquidation, .doc__stamp--revoked, .doc__stamp--dissolved { color: var(--bad); }
.doc__stamp--suspended, .doc__stamp--pending { color: var(--warn); }
.doc__stamp--expired { color: var(--neu); }
.doc__brand { position: relative; }
.doc__classification { margin-left: auto; text-align: right; }
.doc__classification span { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); }
.doc__classification small { color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.doc__security { display: flex; gap: 24px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin: 22px 0; background: linear-gradient(180deg,#fff,#fbfcff); }
.doc__seal { flex: 0 0 auto; }
.seal { display: block; filter: drop-shadow(0 6px 16px rgba(10,23,51,.18)); }
.doc__security-body { flex: 1; min-width: 0; }
.doc__security-body h4 { margin: 0 0 12px; color: var(--blue-700); }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-bottom: 14px; }
.sec-grid .lbl, .doc__security .lbl { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.sec-grid b { font-size: .92rem; }
.sec-hash { display: block; font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 4px 0 16px; word-break: break-all; }
.doc__sign { border-top: 1px dashed var(--line); padding-top: 14px; }
.sign-line { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.sign-line .sig { font-family: "Segoe Script","Brush Script MT",cursive; font-size: 1.8rem; color: var(--blue-700); line-height: 1; }
.sign-line .sig-cap { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--ink-2); display: inline-block; padding-top: 4px; max-width: 360px; }
.sec-note { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }

/* ---------- Request method toggle ---------- */
.method-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method-opt { cursor: pointer; }
.method-opt input { position: absolute; opacity: 0; }
.method-card { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: .15s; }
.method-card b { display: block; }
.method-card small { color: var(--muted); font-size: .8rem; }
.method-opt input:checked + .method-card { border-color: var(--blue-600); background: #f3f7ff; box-shadow: 0 0 0 3px rgba(16,59,176,.12); }
.addr-suggest-btn { background: var(--gold-soft); border: 1px solid #f0e0b8; color: #8a6516; font: inherit; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.addr-suggest-btn:hover { background: #f7ead0; }
.addr-field { position: relative; }
.addr-ac { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; max-height: 240px; overflow-y: auto; padding: 6px; }
.addr-ac__item { display: block; width: 100%; text-align: left; background: none; border: none; font: inherit; font-size: .9rem; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.addr-ac__item:hover { background: var(--bg-2); color: var(--blue-700); }

/* ---------- Content pages (about/help) premium ---------- */
.page-hero { position: relative; overflow: hidden; border-radius: var(--r-lg); background: linear-gradient(150deg, var(--navy), var(--navy-2) 60%, var(--navy-3)); color: #fff; padding: 40px 38px; margin-bottom: 26px; box-shadow: var(--shadow-lg); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at 90% -10%, rgba(231,181,74,.2), transparent 60%); }
.page-hero .eyebrow { background: rgba(231,181,74,.16); color: var(--gold-2); border-color: rgba(231,181,74,.3); }
.page-hero h1 { font-size: 2.2rem; margin: 14px 0 10px; max-width: 20ch; }
.page-hero p { color: #c2cfe9; max-width: 60ch; margin: 0; font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); }
.info-card .num { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg,var(--blue-600),var(--blue-700)); margin-bottom: 12px; }
.info-card h3 { margin: 0 0 8px; color: var(--blue-700); font-size: 1.08rem; }
.info-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.section-h { display: flex; align-items: center; gap: 10px; margin: 34px 0 18px; color: var(--blue-700); font-size: 1.3rem; font-weight: 800; }
.section-h .bar { width: 4px; height: 22px; border-radius: 4px; background: linear-gradient(var(--gold),var(--gold-2)); }
.legend { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; }
.legend .row { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.legend .row p { margin: 4px 0 0; font-size: .86rem; color: var(--muted); }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: none; }
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue-600); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 20px 18px; color: var(--muted); }

/* News feed */
.feed { display: flex; flex-direction: column; gap: 14px; }
.feed-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: .15s; }
.feed-item:hover { border-color: #c7d2ea; box-shadow: var(--shadow); }
.feed-flag { flex: 0 0 auto; width: 44px; height: 30px; border-radius: 5px; display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow-sm); }
.feed-eu { background: #003399; }
.feed-us { background: #fff; border: 1px solid var(--line); }
.feed-body { flex: 1; min-width: 0; }
.feed-body .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.feed-body .src { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-700); background: #eef1f8; padding: 2px 9px; border-radius: 20px; }
.feed-body .date { font-size: .78rem; color: var(--muted-2); }
.feed-body h4 { margin: 2px 0 4px; font-size: 1.02rem; }
.feed-body p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Shipment tracking (FedEx-style, EU-branded) ---------- */
.track-lookup { max-width: 620px; margin: 0 auto; }
.track-lookup .search-panel h2 { font-size: 1.3rem; }
.track-truck { margin-bottom: 8px; animation: truck 1.4s ease-in-out infinite alternate; }
@keyframes truck { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
.track-topbar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 30px; box-shadow: var(--shadow); margin-bottom: 22px; }
.track-status .lbl, .track-id .lbl { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.track-status .big { display: flex; align-items: center; gap: 12px; font-size: 2rem; font-weight: 800; color: var(--blue-700); }
.track-status--delivered .big { color: var(--ok); }
.track-status--out .big { color: var(--warn); }
.track-status .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.track-status .eta { color: var(--muted); margin-top: 6px; display: block; }
.track-id { border-left: 1px solid var(--line); padding-left: 22px; }
.track-id b { font-size: 1.2rem; }
.track-id .svc { display: block; color: var(--muted); margin-top: 6px; font-size: .9rem; }

.track-progress { position: relative; display: flex; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 34px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.track-progress__line { position: absolute; left: 60px; right: 60px; top: 44px; height: 4px; background: var(--line); border-radius: 4px; }
.track-progress__line i { display: block; height: 100%; width: var(--p, 0%); border-radius: 4px; background: linear-gradient(90deg, var(--blue-600), var(--gold)); transition: width .6s; }
.track-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; text-align: center; }
.track-step .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: #fff; border: 2px solid var(--line); color: var(--muted-2); }
.track-step.done .dot { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.track-step.current .dot { background: var(--gold); border-color: var(--gold); color: #41320b; box-shadow: 0 0 0 5px rgba(231,181,74,.25); }
.track-step .t { font-size: .72rem; font-weight: 700; color: var(--muted); }
.track-step.done .t, .track-step.current .t { color: var(--ink); }

.track-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 22px; }
.track-features .tf { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.track-features .tf-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; background: #eef1f8; border: 1px solid var(--line); flex: 0 0 auto; }
.track-features .tf-ic.ok { background: var(--ok-bg); border-color: var(--ok-bd); }
.track-features .tf b { display: block; font-size: .95rem; color: var(--blue-700); }
.track-features .tf small { color: var(--muted); }
.track-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 760px) { .track-features { grid-template-columns: 1fr; } }
.track-h { font-size: 1.15rem; color: var(--blue-700); margin: 0 0 16px; }
.track-facts { width: 100%; border-collapse: collapse; }
.track-facts tr { border-bottom: 1px solid var(--line-2); }
.track-facts tr:last-child { border-bottom: none; }
.track-facts th { text-align: left; width: 180px; padding: 12px 4px; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; vertical-align: top; }
.track-facts td { padding: 12px 4px; font-size: .96rem; }
.track-pill { display: inline-block; font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; }
.track-pill--received { background: var(--gold-soft); color: #8a6516; }
.track-pill--transit { background: #eaf0ff; color: var(--blue-700); }
.track-status--received .big { color: var(--blue-700); }
.track-pill--out { background: var(--warn-bg); color: var(--warn); }
.track-pill--delivered { background: var(--ok-bg); color: var(--ok); }
.track-contents { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.track-contents .lbl { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }

.pod-card { margin-bottom: 20px; border: 1px solid var(--ok-bd); background: linear-gradient(180deg,#f1faf4,#fff); }
.pod-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pod-badge { background: var(--ok); color: #fff; font-weight: 800; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.pod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.pod-grid .lbl { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.pod-full { grid-column: 1 / -1; }
.pod-photo { display: inline-block; margin-top: 16px; }
.pod-photo img { max-width: 280px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.track-history { list-style: none; margin: 0; padding: 0; }
.track-history li { display: grid; grid-template-columns: 150px 20px 1fr; gap: 10px; align-items: start; padding: 10px 0; }
.track-history .th-time { font-size: .82rem; color: var(--muted); padding-top: 2px; }
.track-history .th-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--blue-600); margin: 5px auto 0; box-shadow: 0 0 0 4px #eaf0ff; }
.track-history .th-body b { display: block; font-size: .94rem; }
.track-history .th-body small { color: var(--muted); }

.rail { list-style: none; margin: 0; padding: 0; position: relative; }
.rail::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 3px; background: var(--line); border-radius: 3px; }
.rail li { position: relative; padding: 0 0 22px 40px; }
.rail li:last-child { padding-bottom: 0; }
.rail-node { position: absolute; left: 3px; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-size: .7rem; color: transparent; z-index: 1; }
.rail li.done .rail-node { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.rail li.current .rail-node { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(231,181,74,.2); }
.rail li.done::after, .rail li.current::after { content: ""; position: absolute; left: 13px; top: 0; height: 24px; width: 3px; background: var(--blue-600); }
.rail-body b { display: block; font-size: .92rem; }
.rail-body small { color: var(--muted); display: block; }
.rail-body em { font-size: .78rem; color: var(--muted-2); font-style: normal; }
.rail li.done .rail-body em { color: var(--blue-700); font-weight: 600; }

@media (max-width: 860px) {
  .track-topbar { grid-template-columns: 1fr; }
  .track-id { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .track-grid { grid-template-columns: 1fr; }
  .track-progress { overflow-x: auto; }
  .track-step .t { font-size: .65rem; }
}

/* ---------- AI chat assistant ---------- */
.chat-launch { position: fixed; right: 22px; bottom: 22px; z-index: 1200; display: flex; align-items: center; gap: 10px; padding: 13px 20px 13px 16px; border: none; border-radius: 999px; cursor: pointer; color: #fff; font: inherit; font-weight: 700; background: linear-gradient(135deg,var(--blue-600),var(--blue-700)); box-shadow: 0 14px 34px var(--blue-glow); transition: transform .15s, box-shadow .2s; }
.chat-launch:hover { transform: translateY(-2px); box-shadow: 0 20px 40px var(--blue-glow); }
.chat-launch svg { width: 22px; height: 22px; }
.chat-launch .pulse { width: 9px; height: 9px; border-radius: 50%; background: #6fcf97; box-shadow: 0 0 0 0 rgba(111,207,151,.6); animation: chatPulse 2s infinite; }
@keyframes chatPulse { 0% { box-shadow: 0 0 0 0 rgba(111,207,151,.6); } 70% { box-shadow: 0 0 0 8px rgba(111,207,151,0); } 100% { box-shadow: 0 0 0 0 rgba(111,207,151,0); } }
.chat-panel { position: fixed; right: 22px; bottom: 22px; z-index: 1201; width: 380px; max-width: calc(100vw - 28px); height: 560px; max-height: calc(100vh - 40px); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-panel.open { display: flex; animation: chatIn .25s ease; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.chat-head { background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; position: relative; }
.chat-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg,var(--gold),var(--gold-2)); }
.chat-head .avatar { width: 40px; height: 40px; border-radius: 11px; background: rgba(231,181,74,.16); border: 1px solid rgba(231,181,74,.4); display: grid; place-items: center; color: var(--gold-2); }
.chat-head .ttl { flex: 1; }
.chat-head .ttl strong { display: block; font-size: .98rem; }
.chat-head .ttl small { color: #9fb0d6; font-size: .76rem; display: flex; align-items: center; gap: 6px; }
.chat-head .ttl small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6fcf97; }
.chat-head .x { background: none; border: none; color: #c2cfe9; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--bg-2); display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg,var(--blue-600),var(--blue-700)); color: #fff; border-bottom-right-radius: 4px; }
.msg a { color: var(--blue-600); font-weight: 600; }
.msg.me a { color: #fff; text-decoration: underline; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; background: var(--bg-2); }
.chat-chip { font: inherit; font-size: .8rem; font-weight: 600; color: var(--blue-700); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; }
.chat-chip:hover { border-color: var(--blue-600); background: #f3f7ff; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; }
.chat-input input:focus { outline: none; border-color: var(--blue-600); }
.chat-input button { border: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--blue-600),var(--blue-700)); color: #fff; display: grid; place-items: center; }
.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 1px; border-radius: 50%; background: var(--muted-2); animation: typing 1.2s infinite; }
.typing span:nth-child(2){ animation-delay:.2s } .typing span:nth-child(3){ animation-delay:.4s }
@keyframes typing { 0%,60%,100%{ transform: translateY(0); opacity:.4 } 30%{ transform: translateY(-4px); opacity:1 } }

@media (max-width: 760px) {
  .grid-2, .grid-3, .sec-grid { grid-template-columns: 1fr; }
  .doc__security { flex-direction: column; align-items: center; text-align: center; }
}
@media print { .chat-launch, .chat-panel { display: none !important; } }

/* ---------- Mobile (phones) ---------- */
@media (max-width: 600px) {
  .container, .page, .result-wrap, .admin-main, .doc { padding-left: 14px; padding-right: 14px; }
  .site-header__inner { padding: 12px 14px; gap: 10px; }
  .brand__emblem svg { width: 38px; height: auto; }
  .brand__text strong { font-size: 1rem; }
  .brand__text small { display: none; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 6px 8px; font-size: .82rem; }
  .ribbon .container { font-size: .72rem; padding: 8px 14px; }
  .hero-head h1, .page-hero h1 { font-size: 1.5rem; }
  .hero-head p, .page-hero p { font-size: .98rem; }
  .page-hero { padding: 26px 20px; }
  .search-panel { padding: 20px 16px; }
  .search-grid { grid-template-columns: 1fr; }
  .search-actions { flex-direction: column; align-items: stretch; }
  .search-actions .search-or { text-align: center; }
  .stats { flex-direction: column; gap: 14px; }
  .admin-stats { flex-direction: column; }
  .stat-tile { width: 100%; }
  .stat-duo { grid-template-columns: 1fr 1fr; }
  .acc__btn { flex-wrap: wrap; gap: 8px; padding: 16px; }
  .entity-head { padding: 22px 18px; }
  .entity-head h1 { font-size: 1.45rem; }
  .fields .f { padding: 16px 18px; }
  .result-actions { padding: 18px; }
  .result-actions .btn { flex: 1 1 100%; }
  .track-status .big { font-size: 1.5rem; }
  .track-features { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .doc__banner { flex-direction: column; gap: 8px; align-items: flex-start; }
  .doc__security { flex-direction: column; align-items: center; text-align: center; }
  .sec-grid { grid-template-columns: 1fr; }
  /* Wide admin tables scroll horizontally instead of breaking the layout */
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .modal__card { padding: 24px 18px; }
  .chat-panel { right: 10px; bottom: 10px; width: calc(100vw - 20px); height: calc(100vh - 90px); }
  .chat-launch { right: 12px; bottom: 12px; padding: 11px 15px; }
  .cookie-banner { left: 10px; right: 10px; flex-direction: column; text-align: center; gap: 10px; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; }
  .site-header, .ribbon, .site-footer, .doc__toolbar, .overlay { display: none !important; }
  .doc { max-width: none; padding: 0; }
  .doc__banner, .entity-head, .qr-card__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
