/* ==========================================================================
   DEADLINE DESK — DESIGN SYSTEM
   --------------------------------------------------------------------------
   Palette
     --ink        #05070c   near-black navy background
     --navy       #0d1526   deep blue surface
     --navy-2     #131f38   raised surface / cards
     --line       #223052   hairline borders
     --cyan       #35e0e0   primary accent (pulse)
     --cyan-dim   #1c8f96   secondary accent
     --white      #f4f7fb
     --grey       #8b96ac   muted text
   Type
     Display : 'Archivo Black' / 'Archivo' (condensed, heavy, uppercase)
     Body    : 'Inter' (clean, high legibility at small sizes)
   Signature
     A literal "pulse" line (EKG-style heartbeat trace) used in the hero,
     as timeline connective tissue, and as a live-update indicator —
     it is the one motif that is unmistakably "Deadline Desk".
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,500;0,700;0,800;0,900&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --ink:#05070c;
  --page-bg:#ffffff;
  --navy:#ffffff;
  --navy-2:#ffffff;
  --navy-3:#efefef;
  --line:#d8d8d8;
  --line-soft:#e8e8e8;
  --cyan:#17c4c4;
  --cyan-text:#0b7d82;
  --cyan-soft:#e3f9f8;
  --cyan-dim:#0b7d82;
  --white:#111418;
  --grey:#4d545d;
  --grey-dim:#7a7f85;

  /* Fixed dark chrome — header, mobile nav, admin sidebar stay Footy-style
     dark bars regardless of the light content theme above */
  --chrome-bg:#0d1526;
  --chrome-bg-2:#131f38;
  --chrome-border:#22314f;
  --chrome-text:#f4f7fb;
  --chrome-text-dim:#8b96ac;
  --chrome-cyan:#35e0e0;

  /* Footy-Headlines-DNA: compact 4px-based spacing scale */
  --sp-1:4px; --sp-2:6px; --sp-3:8px; --sp-4:10px; --sp-5:12px;
  --sp-6:15px; --sp-7:16px; --sp-8:24px; --sp-9:30px; --sp-10:60px; --sp-11:120px;

  /* Footy-Headlines-DNA: small, purposeful radii — no oversized "SaaS card" rounding */
  --r-xs:2px; --r-sm:4px; --r-md:8px; --r-lg:13px; --r-circle:50px; --r-pill:999px;
  --radius:var(--r-md);
  --radius-sm:var(--r-sm);
  --maxw:1180px;

  /* Elevation, matching the spec's shadow-card / shadow-dropdown tokens */
  --shadow-card: 0 1px 1px 1px rgba(0,0,0,.08);
  --shadow-dropdown: 0 4px 12px rgba(0,0,0,.18);
}

*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  background:var(--page-bg);
  color:var(--white);
  font-family:'Inter',system-ui,sans-serif;
  font-size:14px;
  line-height:1.4;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;}
::selection{background:var(--cyan);color:var(--ink);}

/* Visible keyboard focus — dark-theme equivalent of the spec's shadow-focus-ring token */
:focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:2px;
  border-radius:var(--r-xs);
}

/* ---------- background grain + gradient ---------- */
/* Flat, clean page surface — Footy Headlines runs a plain light background,
   not a glowing dark gradient. Kept as a real element (rather than folded
   into body) so the dark chrome bars can still sit on top of it. */
.grain-bg{
  position:fixed; inset:0; z-index:-2; pointer-events:none;
  background:var(--page-bg);
}

.api-warning{
  background:#fff3cd; color:#664d03; font-size:12.5px; font-weight:600;
  text-align:center; padding:8px 14px; border-bottom:1px solid #ffe69c;
}
.api-warning b{ font-weight:800; }

/* ---------- typography ---------- */
.h-display{
  font-family:'Archivo',sans-serif;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:-.02em;
  line-height:.94;
}
.eyebrow{
  font-family:'Inter',sans-serif;
  font-weight:700;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--cyan-text);
}
.mono-num{ font-variant-numeric:tabular-nums; }

/* ---------- layout shell ---------- */
#app{position:relative;z-index:1;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 18px;}
@media(min-width:860px){ .wrap{padding:0 32px;} }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--chrome-bg);
  border-bottom:1px solid var(--chrome-border);
  box-shadow:var(--shadow-card);
  color:var(--chrome-text);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  height:60px; gap:12px;
}
.brand{display:flex; align-items:center; gap:9px; flex-shrink:0;}
.brand-partner{
  display:none; font-size:10.5px; font-weight:600; color:var(--chrome-text-dim);
  padding-left:10px; margin-left:1px; border-left:1px solid var(--chrome-border);
  white-space:nowrap; letter-spacing:.01em;
}
@media(min-width:480px){ .brand-partner{ display:inline-block; } }
.admin-sidebar .brand-partner{ display:none; }
/* The real supplied logo file (black artwork, transparent background).
   Inverted to white for the dark chrome bars; shown as-is on light
   surfaces like the footer. */
.brand-logo-img{ height:30px; width:auto; display:block; }
.site-header .brand-logo-img,
.mobile-nav .brand-logo-img,
.admin-sidebar .brand-logo-img{ filter:brightness(0) invert(1); }
.mobile-nav .brand-logo-img{ height:34px; }
.footer-logo{ display:inline-block; }
.footer-logo .brand-logo-img{ height:24px; }

.main-nav{display:none; gap:2px; align-items:center;}
.main-nav a{
  font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.03em;
  color:var(--chrome-text-dim); padding:9px 13px; border-radius:8px; transition:.15s;
}
.main-nav a:hover, .main-nav a.active{ color:var(--chrome-text); background:var(--chrome-bg-2); }
@media(min-width:900px){ .main-nav{display:flex;} }

.header-actions{display:flex; align-items:center; gap:8px;}
.icon-btn{
  width:34px;height:34px;border-radius:var(--r-md);border:1px solid var(--line);
  background:var(--navy-2); display:flex; align-items:center; justify-content:center;
  color:var(--grey); cursor:pointer;
}
.icon-btn svg{ width:18px; height:18px; }
.icon-btn:hover{ color:var(--white); border-color:var(--cyan-dim); }
.site-header .icon-btn, .mobile-nav .icon-btn{
  background:var(--chrome-bg-2); border-color:var(--chrome-border); color:var(--chrome-text-dim);
}
.site-header .icon-btn:hover, .mobile-nav .icon-btn:hover{ color:var(--chrome-text); border-color:var(--chrome-cyan); }

.input-icon{ width:16px; height:16px; flex-shrink:0; display:flex; }
.input-icon svg{ width:100%; height:100%; }
.big-search .input-icon{ color:var(--grey-dim); width:19px; height:19px; }

/* mobile nav */
.mobile-nav-toggle{ display:flex; }
@media(min-width:900px){ .mobile-nav-toggle{display:none;} }
.mobile-nav{
  position:fixed; inset:0; z-index:60; background:var(--chrome-bg);
  display:none; flex-direction:column; padding:18px; color:var(--chrome-text);
}
.mobile-nav.open{display:flex;}
.mobile-nav-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:22px;}
.mobile-nav a{
  font-family:'Archivo',sans-serif; font-weight:800; text-transform:uppercase;
  font-size:26px; padding:12px 4px; border-bottom:1px solid var(--chrome-border); letter-spacing:-.01em;
  color:var(--chrome-text);
}
.mobile-nav .mobile-nav-secondary{
  font-family:'Inter',sans-serif; font-weight:600; text-transform:none;
  font-size:15px; letter-spacing:normal; padding:10px 4px; color:var(--chrome-text-dim);
}

/* ---------- pulse motif ---------- */
.pulse-line{ width:100%; height:34px; display:block; }
.pulse-line path{
  fill:none; stroke:var(--cyan); stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
}
.pulse-dot{
  width:7px;height:7px;border-radius:50%; background:var(--cyan); display:inline-block;
  box-shadow:0 0 0 0 rgba(23,196,196,.5); animation:pulseDot 1.8s infinite;
}
/* Static dot for status pills — NOT animated. The old setup reused
   .pulse-dot here too, but its keyframes hard-code a cyan pulse ring
   that wins over any inline colour (animations override inline styles
   for the property they animate), so a blue/red/etc. status dot would
   flash a mismatched cyan halo. This variant just sits still. */
.status-dot{
  width:7px;height:7px;border-radius:50%; display:inline-block; flex-shrink:0;
}
@keyframes pulseDot{
  0%{ box-shadow:0 0 0 0 rgba(23,196,196,.5); }
  70%{ box-shadow:0 0 0 7px rgba(23,196,196,0); }
  100%{ box-shadow:0 0 0 0 rgba(23,196,196,0); }
}

/* ---------- hero ---------- */
.hero{ padding:24px 0 var(--sp-8); position:relative; overflow:hidden; }
.hero-eyebrow{display:flex; align-items:center; gap:var(--sp-3); margin-bottom:var(--sp-5);}
.hero-title{ font-size:clamp(42px,11vw,96px); }
.hero-title .accent{ color:var(--cyan-text); }
.hero-sub{ color:var(--grey); font-size:16px; line-height:20.8px; margin-top:var(--sp-5); max-width:480px; }
.demo-badge{
  display:inline-flex; align-items:center; gap:var(--sp-2); margin-top:var(--sp-6);
  font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink); background:var(--cyan); padding:5px 10px; border-radius:100px;
}

/* ---------- section headers ---------- */
.section{ padding:var(--sp-8) 0; }
.section-head{
  display:flex; align-items:baseline; justify-content:space-between; margin-bottom:var(--sp-7); gap:var(--sp-4);
}
.section-title{ font-size:19px; line-height:22.8px; }
@media(min-width:700px){ .section-title{font-size:22px; line-height:26px;} }
.section-link{ font-size:12px; font-weight:700; color:var(--cyan-text); text-transform:uppercase; letter-spacing:.04em; white-space:nowrap;}

/* ---------- transfer card ---------- */
.card-grid{ display:grid; grid-template-columns:1fr; gap:var(--sp-5); }
@media(min-width:700px){ .card-grid{grid-template-columns:1fr 1fr;} }
@media(min-width:1080px){ .card-grid.cols-3{grid-template-columns:1fr 1fr 1fr;} }

.t-card{
  background:var(--navy-2);
  border:1px solid var(--line); border-radius:var(--radius);
  padding:var(--sp-5); cursor:pointer; transition:.15s border-color;
  position:relative; overflow:hidden;
}
.t-card:hover{ border-color:var(--cyan-dim); }
.t-card-top{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:var(--sp-5); }
.status-pill{
  font-size:12px; font-weight:700; line-height:12px; text-transform:uppercase; letter-spacing:.04em;
  padding:3px 7px; border-radius:var(--r-sm); display:inline-flex; align-items:center; gap:5px;
  border:1px solid transparent;
}
.conf-badge{ font-size:12px; font-weight:700; color:var(--grey); }
.conf-badge b{ color:var(--white); font-size:15px; }

.t-card-route{ display:flex; align-items:center; gap:var(--sp-3); margin-bottom:var(--sp-4); }
.club-chip{ font-size:12px; color:var(--grey); font-weight:600; }
.route-arrow{ color:var(--cyan-text); font-size:14px; }
.t-card-player{ font-family:'Archivo',sans-serif; font-weight:800; font-size:19px; line-height:22.8px; text-transform:uppercase; letter-spacing:-.01em; margin-bottom:var(--sp-5); }

.conf-bar{ height:3px; border-radius:var(--r-xs); background:var(--line-soft); overflow:hidden; margin-bottom:var(--sp-5); }
.conf-bar-fill{ height:100%; background:linear-gradient(90deg,var(--cyan-dim),var(--cyan)); }

.t-card-meta{ display:flex; justify-content:space-between; font-size:11.5px; color:var(--grey-dim); }
.t-card-meta b{ color:var(--grey); font-weight:600; }

/* ---------- feed list ---------- */
.feed-list{ display:flex; flex-direction:column; gap:0; border-top:1px solid var(--line-soft); }
.feed-item{
  display:grid; grid-template-columns:40px 1fr; gap:var(--sp-5); padding:var(--sp-6) var(--sp-1);
  border-bottom:1px solid var(--line-soft); cursor:pointer; align-items:flex-start;
}
.feed-item:hover .feed-claim{ color:var(--white); }
.feed-time{ font-size:12px; color:var(--grey-dim); font-weight:600; }
.feed-source-row{ display:flex; align-items:center; gap:7px; margin-bottom:4px; flex-wrap:wrap; }
.feed-source{ font-size:13px; font-weight:800; }
.feed-route{ font-size:11.5px; color:var(--grey-dim); width:100%; }
.feed-claim{ font-size:13.5px; color:var(--grey); line-height:1.4; transition:.15s; }
.feed-status{ margin-top:6px; }

/* ---------- player + destination-club composite image ---------- */
.player-media{ position:relative; flex-shrink:0; }
.player-media-lg{
  width:100%; aspect-ratio:2/1;
  margin:calc(var(--sp-5) * -1) calc(var(--sp-5) * -1) var(--sp-5); overflow:visible;
  width:calc(100% + var(--sp-5) * 2);
}
.player-media-lg .media-photo, .player-media-lg .media-photo-fallback{
  border-radius:var(--r-md) var(--r-md) 0 0;
}
.player-media-sm{ width:40px; height:40px; }
.media-photo{
  width:100%; height:100%; object-fit:cover; display:block; background:var(--navy-3);
}
.player-media-sm .media-photo{ border-radius:50%; }
.media-photo-fallback{
  display:flex; align-items:center; justify-content:center; color:var(--cyan-text);
  font-family:'Archivo',sans-serif; font-weight:800; background:var(--navy-3);
}
.player-media-lg .media-photo-fallback{ font-size:32px; }
.player-media-sm .media-photo-fallback{ font-size:13px; border-radius:50%; }
.media-badge{
  position:absolute; display:flex; align-items:center; justify-content:center;
  background:var(--navy-2); border:2px solid var(--navy-2); border-radius:50%; overflow:hidden;
}
.player-media-lg .media-badge{ width:34px; height:34px; right:10px; bottom:-10px; border-width:3px; box-shadow:var(--shadow-card); }
.player-media-sm .media-badge{ width:17px; height:17px; right:-3px; bottom:-3px; border-width:2px; }
.media-badge-img{ width:100%; height:100%; object-fit:contain; }
.media-badge-fallback{
  font-family:'Archivo',sans-serif; font-weight:800; color:var(--cyan-text);
  font-size:10px; display:flex; align-items:center; justify-content:center; width:100%; height:100%;
}
.player-media-sm .media-badge-fallback{ font-size:6px; }

/* ---------- filter bar ---------- */
.filter-row{ display:flex; gap:var(--sp-3); overflow-x:auto; padding:2px 0 var(--sp-6); scrollbar-width:none; }
.filter-row::-webkit-scrollbar{ display:none; }
.filter-chip{
  flex-shrink:0; font-size:12px; font-weight:700; padding:var(--sp-3) var(--sp-6); border-radius:100px;
  border:1px solid var(--line); background:var(--navy-2); color:var(--grey); cursor:pointer; white-space:nowrap;
}
.filter-chip:hover{ color:var(--white); }
.filter-chip.active{ background:var(--cyan); color:var(--ink); border-color:var(--cyan); }

.select-field{
  background:var(--navy-2); border:1px solid var(--line); color:var(--white); border-radius:var(--r-md);
  padding:8px 10px; font-size:12.5px; font-weight:600;
}

/* ---------- transfer detail ---------- */
.detail-hero{
  padding:26px 0 10px;
}
.detail-route{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.detail-club{ font-size:14px; font-weight:700; color:var(--grey); }
.detail-arrow{ color:var(--cyan-text); font-size:20px; }
.detail-player{ font-size:clamp(32px,8vw,58px); margin-bottom:14px; }
.detail-status-row{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:22px; }
.big-conf{ font-family:'Archivo',sans-serif; font-weight:900; font-size:19px; }
.big-conf span{ color:var(--cyan-text); }

.stat-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line-soft);
  border:1px solid var(--line-soft); border-radius:var(--radius); overflow:hidden; margin-bottom:var(--sp-9);
}
@media(min-width:700px){ .stat-grid{grid-template-columns:repeat(4,1fr);} }
.stat-box{ background:var(--navy); padding:var(--sp-6) var(--sp-6); }
.stat-label{ font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--grey-dim); font-weight:700; margin-bottom:6px; }
.stat-value{ font-family:'Archivo',sans-serif; font-weight:800; font-size:19px; line-height:22.8px; }

.analysis-box{
  background:var(--navy-3); border:1px solid var(--line); border-radius:var(--radius);
  padding:var(--sp-6); margin-bottom:var(--sp-8); display:flex; gap:var(--sp-5); align-items:flex-start;
}
.analysis-box p{ margin:4px 0 0; font-size:13.5px; color:var(--grey); line-height:1.5; }
.analysis-box .eyebrow{ margin-bottom:2px; }

/* ---------- timeline ---------- */
.timeline{ position:relative; padding-left:22px; }
.timeline::before{
  content:''; position:absolute; left:10px; top:6px; bottom:6px; width:2px;
  background:linear-gradient(180deg,var(--cyan),var(--line-soft) 85%);
}
.timeline-day{ font-size:11px; font-weight:800; letter-spacing:.1em; color:var(--grey-dim); margin:var(--sp-8) 0 var(--sp-4) -22px; padding-left:22px; text-transform:uppercase;}
.timeline-day:first-child{ margin-top:0; }
.timeline-item{ position:relative; padding-bottom:var(--sp-8); }
.timeline-item::before{
  content:''; position:absolute; left:-16px; top:3px; width:10px; height:10px; border-radius:50%;
  background:var(--page-bg); border:2px solid var(--cyan); box-sizing:border-box;
}
.timeline-item.is-latest::before{ background:var(--cyan); box-shadow:0 0 0 4px rgba(23,196,196,.18); }
.timeline-meta{ display:flex; align-items:center; gap:var(--sp-3); flex-wrap:wrap; margin-bottom:var(--sp-2); }
.timeline-time{ font-size:12px; color:var(--grey-dim); font-weight:600; }
.timeline-source{ font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.02em; }
.reliability-dots{ display:inline-flex; gap:2px; }
.reliability-dots i{ width:5px; height:5px; border-radius:50%; background:var(--line); display:inline-block; }
.reliability-dots i.on{ background:var(--cyan); }
.timeline-claim{ font-size:14px; color:var(--white); line-height:20.8px; margin:var(--sp-1) 0 var(--sp-3); max-width:520px; }
.timeline-link{ font-size:11.5px; color:var(--grey-dim); }

/* ---------- source page ---------- */
.source-card{
  background:var(--navy-2); border:1px solid var(--line); border-radius:var(--radius);
  padding:var(--sp-5); cursor:pointer; display:flex; gap:var(--sp-5); align-items:center;
}
.source-card:hover{ border-color:var(--cyan-dim); }
.avatar{
  width:46px; height:46px; border-radius:50%; flex-shrink:0;
  background:var(--navy-3); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-family:'Archivo',sans-serif; font-weight:800; font-size:15px; color:var(--cyan-text);
}
.source-name{ font-weight:800; font-size:14.5px; }
.source-sub{ font-size:12px; color:var(--grey-dim); margin-top:2px; }
.source-rel{ margin-top:6px; }

.source-profile-head{ display:flex; gap:16px; align-items:center; margin-bottom:22px; }
.source-profile-head .avatar{ width:64px; height:64px; font-size:20px; }
.source-detail-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line-soft);
  border:1px solid var(--line-soft); border-radius:var(--radius); overflow:hidden; margin-bottom:24px;
}
@media(min-width:700px){ .source-detail-grid{grid-template-columns:repeat(4,1fr);} }
.source-detail-grid .stat-box{ background:var(--navy); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  font-size:13px; font-weight:700; padding:8px 14px; border-radius:var(--r-md); cursor:pointer;
  border:1px solid var(--line); background:var(--navy-2); color:var(--white);
}
.btn:hover{ border-color:var(--cyan-dim); }
.btn-primary{ background:var(--cyan); color:var(--ink); border-color:var(--cyan); }
.btn-primary:hover{ background:var(--cyan-soft); }
.btn-danger{ background:transparent; border-color:#5c2530; color:#ff8b8b; }
.btn-danger:hover{ border-color:#ff5c5c; }
.btn-ghost{ background:transparent; }
.btn-sm{ padding:5px 10px; font-size:11.5px; border-radius:var(--r-sm); }
.btn-block{ width:100%; }

/* ---------- footer ---------- */
.site-footer{ border-top:1px solid var(--line-soft); padding:var(--sp-9) 0 0; margin-top:var(--sp-9); color:var(--grey-dim); font-size:12.5px; }
.footer-grid{
  display:grid; grid-template-columns:1fr; gap:var(--sp-8);
  padding-bottom:var(--sp-8);
}
@media(min-width:640px){ .footer-grid{ grid-template-columns:1.6fr 1fr 1fr; } }
.footer-col-brand{ max-width:340px; }
.footer-tagline{ font-size:13px; color:var(--grey); margin:10px 0 6px; font-weight:600; }
.footer-partner{ line-height:1.5; margin:0; }
.footer-partner a{ color:var(--cyan-text); }
.footer-col{ display:flex; flex-direction:column; gap:9px; }
.footer-col-title{ font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--white); margin-bottom:2px; }
.footer-col a{ color:var(--grey-dim); }
.footer-col a:hover{ color:var(--cyan-text); }
.footer-bottom{ border-top:1px solid var(--line-soft); padding:var(--sp-6) 0 var(--sp-9); line-height:1.5; }

/* ---------- bottom mobile tab bar (Footy-Headlines-DNA) ---------- */
.bottom-nav{
  position:fixed; left:0; right:0; bottom:0; z-index:55;
  display:flex; background:var(--chrome-bg);
  border-top:1px solid var(--chrome-border); padding:6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav a{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:2px;
  padding:5px 2px; color:var(--chrome-text-dim); border-radius:var(--r-sm);
}
.bottom-nav a.active{ color:var(--chrome-cyan); }
.bottom-nav-icon{ width:21px; height:21px; display:flex; }
.bottom-nav-icon svg{ width:100%; height:100%; }
.bottom-nav-label{ font-size:10px; font-weight:700; letter-spacing:.01em; }
@media(min-width:900px){ .bottom-nav{ display:none; } }
@media(max-width:899px){ .public-shell{ padding-bottom:64px; display:block; } }

/* ---------- club / player page ---------- */
.club-hero{ display:flex; align-items:center; gap:16px; padding:30px 0 10px; }
.club-crest{
  width:52px; height:52px; border-radius:var(--r-md); background:var(--navy-2); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-family:'Archivo',sans-serif; font-weight:900; color:var(--cyan-text);
}
.stat-strip{ display:flex; gap:24px; margin:18px 0 26px; flex-wrap:wrap; }
.stat-strip div b{ display:block; font-family:'Archivo',sans-serif; font-size:26px; font-weight:800; }
.stat-strip div span{ font-size:11px; color:var(--grey-dim); text-transform:uppercase; letter-spacing:.05em; }

/* ---------- search ---------- */
.search-hero{ padding:16px 0 10px; }
.big-search{
  display:flex; align-items:center; gap:10px; background:var(--navy-3); border:1px solid var(--line);
  border-radius:var(--r-md); padding:12px 14px; margin-top:0;
}
.big-search input{ flex:1; background:none; border:none; outline:none; color:var(--white); font-size:17px; }
.search-clear{
  width:22px; height:22px; flex-shrink:0; border:none; background:none; padding:0; cursor:pointer;
  color:var(--grey-dim); display:flex; align-items:center; justify-content:center;
}
.search-clear svg{ width:16px; height:16px; }
.search-clear:hover{ color:var(--grey); }

.search-group-label{
  font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em;
  color:var(--grey-dim); margin:var(--sp-7) 0 var(--sp-3);
}
.search-group-label:first-child{ margin-top:var(--sp-6); }
.search-row-list{ display:flex; flex-direction:column; gap:var(--sp-2); }
.search-row{
  display:flex; align-items:center; gap:var(--sp-5); background:var(--navy-3);
  border-radius:var(--r-md); padding:var(--sp-5); cursor:pointer;
}
.search-row:hover{ background:var(--line-soft); }
.search-row-icon{ flex-shrink:0; }
.search-avatar{
  width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--navy-2); border:1px solid var(--line); color:var(--cyan-text);
  font-family:'Archivo',sans-serif; font-weight:800; font-size:12px;
}
.search-crest{
  width:34px; height:34px; border-radius:var(--r-sm); display:flex; align-items:center; justify-content:center;
  background:var(--navy-2); border:1px solid var(--line); color:var(--cyan-text);
  font-family:'Archivo',sans-serif; font-weight:800; font-size:11px;
}
.search-row-text{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.search-row-name{ font-weight:700; font-size:14.5px; }
.search-row-sub{ font-size:12px; color:var(--grey-dim); }

.search-tabs{ display:flex; gap:8px; margin:16px 0; flex-wrap:wrap; }
.empty-state{ text-align:center; padding:60px 20px; color:var(--grey-dim); }
.empty-state .h-display{ font-size:24px; color:var(--grey); margin-bottom:8px; }

/* ---------- admin ---------- */
.admin-shell{ display:flex; min-height:100vh; }
.admin-sidebar{
  width:210px; flex-shrink:0; background:var(--chrome-bg); border-right:1px solid var(--chrome-border);
  padding:18px 12px; position:sticky; top:0; height:100vh; display:none; flex-direction:column; gap:2px;
}
@media(min-width:860px){ .admin-sidebar{ display:flex; } }
.admin-sidebar a{
  font-size:13px; font-weight:700; padding:8px 10px; border-radius:var(--r-sm); color:var(--chrome-text-dim);
}
.admin-sidebar a:hover, .admin-sidebar a.active{ background:var(--chrome-bg-2); color:var(--chrome-text); }
.admin-sidebar .brand{ margin-bottom:20px; }
.admin-main{ flex:1; min-width:0; padding:var(--sp-7) var(--sp-7) var(--sp-10); }
@media(min-width:860px){ .admin-main{ padding:var(--sp-8) 30px var(--sp-10); } }
.admin-topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; gap:10px; flex-wrap:wrap; }
.admin-mobile-tabs{ display:flex; gap:8px; overflow-x:auto; margin-bottom:20px; }
@media(min-width:860px){ .admin-mobile-tabs{ display:none; } }

.kpi-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:var(--sp-5); margin-bottom:var(--sp-8); }
@media(min-width:700px){ .kpi-grid{ grid-template-columns:repeat(5,1fr); } }
.kpi-box{ background:var(--navy-2); border:1px solid var(--line); border-radius:var(--radius); padding:var(--sp-6); }
.kpi-value{ font-family:'Archivo',sans-serif; font-weight:900; font-size:26px; color:var(--cyan-text); }
.kpi-label{ font-size:11px; color:var(--grey-dim); text-transform:uppercase; letter-spacing:.05em; margin-top:4px; }

.data-table{ width:100%; border-collapse:collapse; font-size:13px; }
.data-table th{ text-align:left; font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--grey-dim); padding:var(--sp-4) var(--sp-5); border-bottom:1px solid var(--line); }
.data-table td{ padding:var(--sp-5); border-bottom:1px solid var(--line-soft); vertical-align:middle; }

/* ---------- admin image upload widgets ---------- */
.upload-cell{ display:flex; align-items:center; gap:var(--sp-4); }
.upload-thumb{
  width:40px; height:40px; border-radius:var(--r-sm); overflow:hidden; flex-shrink:0;
  background:var(--navy-3); border:1px solid var(--line); display:flex; align-items:center; justify-content:center;
}
.upload-thumb-round{ border-radius:50%; }
.upload-thumb img{ width:100%; height:100%; object-fit:cover; }
.upload-thumb-fallback{ font-family:'Archivo',sans-serif; font-weight:800; font-size:12px; color:var(--cyan-text); }
.upload-btn{ cursor:pointer; white-space:nowrap; }
.data-table tr:hover td{ background:var(--navy-2); }
.table-scroll{ overflow-x:auto; border:1px solid var(--line-soft); border-radius:var(--radius); }
.data-table{ min-width:720px; }

.admin-card-list{ display:flex; flex-direction:column; gap:10px; }
.admin-row-card{
  background:var(--navy-2); border:1px solid var(--line); border-radius:var(--r-md); padding:12px;
}
.admin-row-card-top{ display:flex; justify-content:space-between; gap:8px; margin-bottom:8px; }
.admin-row-actions{ display:flex; gap:6px; margin-top:10px; flex-wrap:wrap; }

.claim-card{ background:var(--navy-2); border:1px solid var(--line); border-radius:var(--radius); padding:16px; margin-bottom:14px; }
.claim-raw{ font-size:14px; color:var(--white); margin:10px 0 14px; line-height:1.5; border-left:2px solid var(--cyan); padding-left:12px; }
.extraction-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:var(--sp-5) var(--sp-6);
  margin:0 0 14px; padding:var(--sp-5) 0; border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft);
}
@media(min-width:600px){ .extraction-grid{ grid-template-columns:repeat(4,1fr); } }
.extraction-box .stat-label{ margin-bottom:4px; }
.extraction-box .stat-value{ font-size:14px; }
.claim-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.claim-match{ font-size:12px; color:var(--grey-dim); margin-bottom:10px; }
.claim-match b{ color:var(--cyan-text); }

.form-grid{ display:grid; grid-template-columns:1fr; gap:14px; }
@media(min-width:640px){ .form-grid.cols-2{ grid-template-columns:1fr 1fr; } }
.field label{ display:block; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--grey-dim); margin-bottom:6px; }
.field input, .field select, .field textarea{
  width:100%; background:var(--navy-2); border:1px solid var(--line); color:var(--white);
  border-radius:var(--r-md); padding:8px 11px; font-size:13.5px; font-family:inherit; outline:none;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--cyan-dim); }
.field textarea{ resize:vertical; min-height:80px; }
.toggle-row{ display:flex; align-items:center; justify-content:space-between; background:var(--navy-2); border:1px solid var(--line); border-radius:var(--r-md); padding:10px 12px; }
.switch{ width:38px; height:22px; border-radius:100px; background:var(--line); position:relative; cursor:pointer; flex-shrink:0; }
.switch::after{ content:''; position:absolute; width:16px; height:16px; border-radius:50%; background:#ffffff; top:3px; left:3px; transition:.15s; box-shadow:0 1px 2px rgba(0,0,0,.25); }
.switch.on{ background:var(--cyan); }
.switch.on::after{ left:19px; background:var(--ink); }
.ingestion-tag{ font-size:12px; font-weight:700; line-height:12px; padding:3px 8px; border-radius:var(--r-sm); display:inline-flex; align-items:center; gap:5px; }
.ingestion-tag.on{ background:var(--cyan-soft); color:var(--cyan-text); }
.ingestion-tag.off{ background:rgba(139,150,171,.12); color:var(--grey-dim); }

.modal-backdrop{ position:fixed; inset:0; background:rgba(5,7,12,.7); backdrop-filter:blur(4px); z-index:80; display:flex; align-items:flex-end; justify-content:center; }
@media(min-width:700px){ .modal-backdrop{ align-items:center; } }
.modal{
  background:var(--navy); border:1px solid var(--line); border-radius:var(--r-lg) var(--r-lg) 0 0; width:100%; max-width:620px;
  max-height:92vh; overflow-y:auto; padding:22px 18px 28px; box-shadow:var(--shadow-dropdown);
}
@media(min-width:700px){ .modal{ border-radius:var(--r-lg); padding:24px; } }
.modal-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.modal-foot{ display:flex; justify-content:flex-end; gap:8px; margin-top:20px; }

.toast{
  position:fixed; bottom:20px; left:50%; transform:translateX(-50%); z-index:100;
  background:var(--cyan); color:var(--ink); font-weight:700; font-size:13px;
  padding:11px 18px; border-radius:100px; box-shadow:0 8px 30px rgba(0,0,0,.4);
  opacity:0; pointer-events:none; transition:.25s;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(-6px); }

.crumb{ font-size:12px; color:var(--grey-dim); margin-bottom:14px; }
.crumb a{ color:var(--grey); }
.crumb a:hover{ color:var(--cyan-text); }

.reliability-stars{ display:inline-flex; gap:2px; }
.reliability-stars i{ color:var(--line); font-size:13px; }
.reliability-stars i.on{ color:var(--cyan-text); }

.divider{ height:1px; background:var(--line-soft); border:none; margin:26px 0; }

@media(max-width:520px){
  .stat-grid, .source-detail-grid{ grid-template-columns:repeat(2,1fr); }
  .kpi-grid{ grid-template-columns:repeat(2,1fr); }
}
