/* =========== THEME & BACKGROUND =========== */
:root{
  --c-neon:#16fff3;
  --c-sky:#92e7ff;
  --c-text:#e8fdff;
  --c-pane:rgba(18,32,54,0.77);
  --c-pane-strong:rgba(22,52,70,0.85);
  --c-bg:radial-gradient(ellipse at 40% 5%, #29406b 0%, #17212e 100%);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family:'Poppins',Arial,sans-serif;
  background:var(--c-bg);
  color:var(--c-text);
  margin:0; padding:0; min-height:100vh; letter-spacing:.03em; font-size:16px;
  perspective: 1200px;
}
a{ text-decoration:none; color:inherit; }

/* =========== NAVBAR HOLOGRAFIK =========== */
.lumen-navbar{
  width:100%;
  background:rgba(19,30,48,.76);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow:0 4px 24px rgba(22,255,243,.13),0 2px 8px rgba(22,255,243,.16);
  border-bottom:1.5px solid #16fff394;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 22px; height:70px; position:sticky; top:0; z-index:50;
}
.lumen-logo{
  color:var(--c-neon); font-size:1.4rem; font-weight:700; letter-spacing:2px;
  text-shadow:0 0 20px #16fff399; font-family:'Orbitron',Arial,sans-serif;
  display:flex; align-items:center; gap:12px;
}
.lumen-menu{ display:flex; gap:8px; align-items:center; flex:1 1 auto; justify-content:center; flex-wrap:wrap; }
.lumen-link{
  color:var(--c-sky); font-size:1rem; font-weight:500; padding:9px 18px; border-radius:9px;
  background:transparent; transition:all .18s; min-width:60px; text-align:center; border:none; outline:none; margin:0 2px; cursor:pointer;
  display:inline-flex; align-items:center; gap:7px;
}
.lumen-link.active,.lumen-link:hover{
  background:rgba(22,255,243,.21); color:#fff; box-shadow:0 0 13px #16fff355; border-bottom:2px solid var(--c-neon);
}
.lumen-user{
  color:#d8ffeb; font-size:1.05rem; display:flex; align-items:center; gap:10px;
  background:rgba(24,39,55,.30); border-radius:11px; padding:9px 16px; box-shadow:0 0 10px #16fff329;
  border:1.2px solid #16fff352; min-width:120px; justify-content:flex-end;
}

/* =========== PANELS & CARDS =========== */
.lumen-panel{ display:none; padding:32px 0 0 0; width:100%; }
.lumen-panel.active{ display:block; }

.panel-glass{
  background:var(--c-pane);
  border-radius:20px;
  box-shadow:0 10px 32px #16fff334, 0 5px 16px #16fff329;
  border:1.2px solid #16fff338;
  max-width:1100px; margin:0 auto 18px auto; padding:36px 28px;
  backdrop-filter: blur(13px) saturate(125%);
  position:relative; animation:panelIn .7s cubic-bezier(.77,0,.18,1);
  transition: box-shadow .22s, transform .17s; overflow-x:auto;
}
@keyframes panelIn{ from{opacity:0; transform:translateY(60px) scale(.97);} to{opacity:1; transform:none;} }
.panel-glass:hover{ box-shadow:0 18px 55px #16fff37b, 0 8px 25px #16fff32e; background:var(--c-pane-strong); transform: translateY(-6px) scale(1.013); }
.panel-glass h2,.panel-glass h3{ color:var(--c-neon); font-family:'Orbitron',Arial,sans-serif; font-weight:700; letter-spacing:1.2px; margin-top:0; }
.panel-glass p{ color:#cafdff; font-size:1.08rem; }

/* =========== BUTTONS =========== */
.btn{
  display:inline-block; background:linear-gradient(90deg,var(--c-neon) 12%, var(--c-sky) 98%);
  color:#032524; border:none; border-radius:9px; font-weight:700; font-size:1.06rem;
  padding:10px 28px; margin-top:10px; cursor:pointer; box-shadow:0 2px 10px #16fff366;
  transition:background .18s, color .13s, transform .11s; letter-spacing:1px;
}
.btn:hover{ background:#0bffe4; color:#192838; transform: translateY(-2px) scale(1.03); }
.btn-mini{ padding:6px 12px; font-size:.92rem; }
.btn-ghost{ background:transparent; color:var(--c-sky); border:1px solid #16fff352; }
.btn-danger{ background:#ff4d6d; color:#fff; }
.btn-danger:hover{ background:#ff2b51; }

/* =========== FORMS =========== */
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="date"], input[type="time"], textarea{
  width:100%; padding:12px 14px; border-radius:10px; border:1.2px solid #16fff37a; background:#101e29; color:var(--c-text);
  font-family:'Poppins',Arial,sans-serif; font-size:1.07rem; margin-bottom:13px; outline:none;
  transition:border-color .13s, box-shadow .15s; min-width:0;
}
input:focus, textarea:focus{ border-color:var(--c-neon); box-shadow:0 0 7px #16fff364; }
::placeholder{ color:#cafdffb8; }

/* =========== SUBMENU (DASHBOARD) =========== */
.lumen-submenu{
  display:flex; gap:6px; margin:25px 0; border-bottom:1px solid #16fff32b; padding-bottom:10px; overflow-x:auto;
}
.dashboard-link{
  color:var(--c-sky); font-size:1rem; font-weight:600; padding:8px 15px; border-radius:8px 8px 0 0; background:transparent;
  transition:all .15s; text-align:center; border:none; outline:none; cursor:pointer; display:inline-flex; align-items:center; gap:6px;
}
.dashboard-link.active,.dashboard-link:hover{ background:rgba(22,255,243,.22); color:#fff; box-shadow:0 0 8px #16fff33a; border-bottom:2px solid var(--c-neon); }
.dashboard-panel{ display:none; }
.dashboard-panel.active{ display:block; }
#dashboardMenu .dashboard-link[style*="float:right"]{ margin-left:auto!important; }

/* =========== HOME SECTIONS =========== */
.shtepia-hero{ text-align:center; margin-bottom:40px; transform: translateZ(0); }
.avatar-3d img{ animation:softGlow 3.5s ease-in-out infinite alternate; }
@keyframes softGlow{ from{ box-shadow:0 0 16px #16fff344;} to{ box-shadow:0 0 28px #16fff3aa;} }

.home-actions{ margin:19px 0 2px 0; display:flex; gap:15px; flex-wrap:wrap; justify-content:center; }
.home-actions .btn{ min-width:170px; font-size:1.09rem; }

.home-articles,.home-drugs{ display:flex; gap:16px; flex-wrap:wrap; justify-content:flex-start; margin-top:15px; }
.article-card,.drug-card{
  background:rgba(25,40,65,.82); border-radius:12px; box-shadow:0 3px 18px #16fff336; padding:17px 18px; min-width:210px; flex:1 1 210px;
  transition: box-shadow .17s, transform .12s;
}
.article-card:hover,.drug-card:hover{ box-shadow:0 7px 28px #16fff37a; transform: translateY(-4px) scale(1.04); }
.article-title,.drug-title{ font-family:'Orbitron',Arial,sans-serif; font-weight:700; color:var(--c-neon); font-size:1.07rem; margin-bottom:2px; }
.article-desc,.drug-desc{ color:#cafdff; font-size:.99rem; }
.article-more,.drug-more{ color:var(--c-sky); font-size:.96rem; margin-top:10px; display:inline-block; }

/* =========== TABLES (registry, patients) =========== */
.table-wrap{ overflow:auto; }
table{ width:100%; border-collapse:collapse; }
thead tr{ border-bottom:1px solid #16fff32b; }
tbody tr{ border-bottom:1px solid #16fff313; }
th,td{ text-align:left; padding:8px; }
th{ color:#bdfcff; font-weight:700; font-family:'Orbitron',Arial,sans-serif; }
td{ color:#e8fdff; }

/* =========== LUMEN RX =========== */
#rpRows .rp-line input[name="emri"]{ flex:2 1 280px; }
#rpRows .rp-line input[name="doza"]{ flex:3 1 360px; }
#rpRows .rp-line input{ min-width:220px; }
#rpRows .btn-rp-del{ background:transparent; border:1px solid #16fff352; color:var(--c-sky); }
#rpRows .btn-rp-del:hover{ background:rgba(22,255,243,.15); }

/* =========== WIDGETS/UTILS =========== */
.grid-autofit{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:12px; }
.badge{ display:inline-block; padding:.2rem .5rem; border:1px solid #16fff352; border-radius:8px; color:var(--c-sky); font-size:.85rem; }
.tag{ display:inline-block; padding:.15rem .45rem; background:rgba(22,255,243,.18); color:#073a36; border-radius:6px; font-weight:700; }

/* =========== SCROLLBAR =========== */
::-webkit-scrollbar{ height:8px; width:10px; background:#101e29; border-radius:8px; }
::-webkit-scrollbar-thumb{ background:#16fff354; border-radius:8px; }

/* =========== RESPONSIVE =========== */
@media (max-width:1100px){ .panel-glass{ max-width:98vw; } }
@media (max-width:900px){
  .panel-glass{ padding:17px 4vw; }
  .lumen-navbar{ height:auto; flex-wrap:wrap; gap:5px; padding:7px 2vw; }
  .lumen-user{ padding:8px 7px; font-size:.96rem; }
  .lumen-menu{ gap:3px; }
  .lumen-logo{ font-size:1.13rem; gap:7px; }
}
@media (max-width:600px){
  body{ font-size:15px; }
  .panel-glass{ padding:12px 2vw; border-radius:12px; }
  .lumen-panel{ padding-top:18px; }
  .lumen-menu{ flex-direction:column; align-items:flex-start; gap:1px; }
  .lumen-navbar{ flex-direction:column; align-items:flex-start; gap:1px; }
  .lumen-logo{ font-size:.99rem; }
  #rpRows .rp-line input{ min-width:160px; }
}

/* =========== PRINT (Receta) =========== */
@media print{
  body{ background:#fff!important; color:#000!important; }
  .lumen-navbar, .lumen-menu, .lumen-user, .lumen-panel, .panel-glass, .btn { display:none !important; }
  #rxPrintArea{ display:block !important; }
  #rxPrintArea *{ color:#000 !important; box-shadow:none !important; }
}
/* ===== Command Palette ===== */
#cmdPalette.cmd-hidden { display:none; }
#cmdPalette{ position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:999; display:flex; align-items:flex-start; justify-content:center; padding-top:10vh; }
#cmdPalette .cmd-box{
  width:min(820px,94vw); background:rgba(18,32,54,.92); border:1px solid #16fff34a; border-radius:14px; box-shadow:0 18px 55px #16fff35c;
  backdrop-filter: blur(10px) saturate(140%); padding:14px;
}
#cmdInput{ width:100%; font-size:1.08rem; margin:0 0 10px 0; }
#cmdResults{ max-height:50vh; overflow:auto; }
.cmd-item{ padding:9px 10px; border-radius:8px; display:flex; gap:10px; align-items:center; cursor:pointer; }
.cmd-item:hover{ background:rgba(22,255,243,.16); }

/* ===== Chips (Symptom) ===== */
.chip-wrap{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  background:transparent; border:1px solid #16fff352; color:#92e7ff; padding:6px 10px; border-radius:999px; cursor:pointer; transition:.15s;
}
.chip:hover{ background:rgba(22,255,243,.14); }

/* ===== Skeleton Cards ===== */
.skeleton-card{
  height:110px; flex:1 1 210px; min-width:210px; border-radius:12px;
  background: linear-gradient(100deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06));
  background-size:200% 100%;
  animation: skel 1.2s linear infinite;
}
@keyframes skel{ from{background-position:200% 0;} to{background-position:-200% 0;} }

/* ===== Daily Drug ===== */
.daily-drug{ font-size:1.02rem; color:#cafdff; }
.daily-drug b{ color:#16fff3; }

/* ===== Live Counters ===== */
.live-counters{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:18px; margin-top:8px; }
.counter{
  background:rgba(25,40,65,.82); border:1px solid #16fff338; border-radius:14px; padding:16px; text-align:center;
  box-shadow:0 3px 18px #16fff336;
}
.counter-num{ font-family:'Orbitron',Arial,sans-serif; font-size:2rem; color:#16fff3; }
.counter-label{ color:#cafdff; opacity:.9; }

/* ===== FX Particles canvas (underlay is already inline style) ===== */
/* === HLG (Holographic) Curiosities === */
.hlg-section {
  margin: 24px 0 32px;
}
.hlg-title {
  font-size: 1.3rem;
  margin: 0 0 12px 4px;
  color: #aefcff;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: .5rem;
  text-shadow: 0 0 8px rgba(120,255,255,.35);
}

.hlg-carousel {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10,25,45,.35), rgba(0,180,200,.06));
  box-shadow: 0 0 0 1px rgba(0,255,255,.08) inset, 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(8px) saturate(120%);
}
.hlg-carousel::-webkit-scrollbar {
  height: 8px;
}
.hlg-carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(0,255,255,.4), rgba(120,220,255,.35));
  border-radius: 10px;
}

.hlg-card {
  scroll-snap-align: start;
  padding: 16px;
  border-radius: 16px;
  background: radial-gradient(1200px 200px at -10% -20%, rgba(22,255,243,.15), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(22,255,243,.25);
  box-shadow: 0 0 18px rgba(22,255,243,.12), inset 0 0 22px rgba(22,255,243,.06);
  color: #dff9ff;
  min-height: 140px;
  display: grid; 
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hlg-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22,255,243,.5);
  box-shadow: 0 12px 28px rgba(22,255,243,.12), inset 0 0 28px rgba(22,255,243,.08);
}
.hlg-card h3 {
  font-size: 1rem;
  margin: 0;
  color: #b7fbff;
  text-shadow: 0 0 6px rgba(22,255,243,.25);
}
.hlg-card p {
  margin: 0;
  font-size: .92rem;
  color: #cfefff;
  opacity: .9;
  line-height: 1.25rem;
}
.hlg-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 6px rgba(22,255,243,.35));
}

/* Butonat */
.hlg-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}
.hlg-controls .hlg-prev,
.hlg-controls .hlg-next {
  background: rgba(10,25,45,.6);
  color: #aefcff;
  border: 1px solid rgba(22,255,243,.3);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.hlg-controls button:hover {
  transform: translateY(-2px);
  background: rgba(10,25,45,.85);
}


/* Hide public menu when logged in (Doctor mode) */
.logged-in .lumen-menu{ display:none !important; }
.logged-in .lumen-navbar{ justify-content:space-between; }


/* === Futuristic / Holographic accents === */
.holo-glow{ box-shadow:0 0 24px rgba(22,255,243,.45), inset 0 0 18px rgba(146,231,255,.15); }
.holo-border{ border:1px solid rgba(22,255,243,.35); }
.holo-title{ text-shadow:0 0 12px rgba(22,255,243,.55); letter-spacing:1.5px; }
.holo-chip{ background:rgba(22,255,243,.15); border:1px solid rgba(22,255,243,.28); padding:.35rem .6rem; border-radius:999px; }
.lumen-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; margin-top:10px; }
.lumen-stats .stat{ background:rgba(18,32,54,.8); border:1px solid rgba(146,231,255,.25); border-radius:14px; padding:12px 14px; }
.lumen-stats .big{ font-size:1.6rem; font-weight:800; color:#aefcff; }
.quick-actions{ display:flex; flex-wrap:wrap; gap:10px; margin:8px 0; }
.quick-actions .btn{ padding:8px 14px; font-size:.95rem; }
.rp-line input{ min-width:200px; }


/* ===== Monetization & Access Guards ===== */
body.logged-in .lumen-panel { display:none !important; }
body.logged-in #panel-dashboard { display:block !important; }

.premium-badge{ display:inline-block;padding:.1rem .45rem;border:1px solid #16fff352;border-radius:8px;font-size:.75rem;color:#aefcff;margin-left:.5rem; }
.locked{ opacity:.85; position:relative; }
.locked::after{ content:"🔒 Premium"; position:absolute; right:10px; top:10px; background:#0a1a27cc; border:1px solid #16fff352; padding:.2rem .4rem; border-radius:8px; font-size:.75rem; }

/* Lead magnet */
.lead-box{ display:flex; gap:8px; align-items:center; margin-top:10px; }
.lead-box input[type="email"]{ flex:1; }


/* ===== Futuristic polish ===== */
:root{
  --holo:#16fff3;
  --bg:#0a1520;
  --glass:rgba(20,33,54,0.55);
  --glass-border:#16fff352;
}
body{ background: radial-gradient(1200px 1200px at 20% 10%, #0b2033 0%, #05101a 60%, #040b12 100% ); }
.panel-glass{ backdrop-filter: blur(14px) saturate(130%); background: var(--glass); border:1px solid var(--glass-border); border-radius:18px; padding:14px; box-shadow:0 0 40px rgba(22,255,243,0.06) inset, 0 0 18px rgba(0,0,0,0.25); }
.lumen-navbar{ backdrop-filter: blur(18px); background: linear-gradient(90deg, rgba(10,26,39,0.75), rgba(10,26,39,0.35)); border-bottom:1px solid var(--glass-border); }
.home-actions .btn{ margin:.2rem; }

/* Dashboard grid nicer */
#dashboard-panels{ display:block; }
.dashboard-panel{ display:none; }
.dashboard-panel.active{ display:block; }

.dose-warning{color:#ff6b6b;font-weight:500;}


/* ===== Home Futurist (Holografik) ===== */
.holo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:12px;}
.holo-card{position:relative;padding:16px;border-radius:18px;background:linear-gradient(135deg, rgba(22,255,243,0.10), rgba(22,255,243,0.03));
  border:1px solid #16fff352; box-shadow:0 0 24px rgba(22,255,243,0.08) inset, 0 0 18px rgba(0,0,0,0.25);
  backdrop-filter: blur(14px) saturate(130%); transition: transform .25s ease, box-shadow .25s ease;}
.holo-card:hover{ transform: translateY(-3px); box-shadow:0 0 36px rgba(22,255,243,0.18), 0 6px 18px rgba(0,0,0,0.35); }
.holo-icon{font-size:32px;color:#92e7ff;margin-bottom:8px; display:block;}
.holo-title{font-weight:600;color:#b7fbff;margin:4px 0;}
.holo-desc{color:#e8fdff;opacity:.8;font-size:.95rem;}
.holo-cta{margin-top:8px;display:inline-block;font-size:.9rem}

.home-quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:12px;}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px;}
.chip{padding:6px 10px;border-radius:999px;border:1px solid #16fff352;color:#aefcff;cursor:pointer;opacity:.9}
.chip:hover{opacity:1;background:rgba(22,255,243,0.08)}

.auto-wrap{position:relative}
.auto-list{position:absolute;left:0;right:0;top:100%;z-index:50;background:#0a1a27; border:1px solid #16fff352; border-radius:12px;
  padding:6px; display:none; max-height:240px; overflow:auto;}
.auto-item{padding:6px 8px;border-radius:10px;cursor:pointer;color:#b7fbff;}
.auto-item:hover{background:rgba(22,255,243,0.10)}

.symp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin-top:8px;}
.symp-grid label{display:flex;gap:8px;align-items:center;border:1px solid #16fff352;border-radius:12px;padding:8px;cursor:pointer}
#sympOut{margin-top:8px;color:#aefcff}
.qcalc-out{margin-top:8px;color:#aefcff}

canvas{max-width:100%; background:rgba(10,25,45,.35); border:1px solid rgba(22,255,243,.2); border-radius:12px;}


:root{ --base-font:16px; }
body{ font-size: var(--base-font); }
.patient-hero .hero-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.patient-hero .hero-card{ background:rgba(25,40,65,.82); border:1px solid rgba(22,255,243,.25); border-radius:14px; padding:16px; box-shadow:0 3px 18px #16fff336; }
.hero-card i{ font-size:1.6rem; color:#16fff3; }
.h-title{ font-weight:700; color:#b7fbff; margin-top:6px; }
.h-desc{ opacity:.9; font-size:.95rem; margin-bottom:6px; }

/* Sticky bar */
.sticky-bar{ position:fixed; bottom:10px; left:50%; transform:translateX(-50%); display:flex; gap:10px; padding:8px 10px; background:rgba(10,25,45,.85); border:1px solid rgba(22,255,243,.3); border-radius:999px; z-index:999; box-shadow:0 10px 24px rgba(0,0,0,.35); }
.sticky-bar .sbar-item{ display:flex; align-items:center; gap:6px; padding:8px 12px; border-radius:999px; background:rgba(22,255,243,.12); }
.sticky-bar .sbar-item span{ font-weight:600; color:#aefcff; }

/* A11y bar */
.a11y-bar{ position:fixed; right:10px; bottom:70px; display:flex; flex-direction:column; gap:6px; z-index:999; }
.a11y-btn{ background:rgba(10,25,45,.85); color:#aefcff; border:1px solid rgba(22,255,243,.3); padding:8px 10px; border-radius:10px; cursor:pointer; }
.high-contrast{ filter: contrast(1.15) saturate(1.1); }
.high-contrast *{ text-shadow:none !important; box-shadow:none !important; }

/* Modals */
.dl-modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.55); backdrop-filter: blur(3px); z-index:1000; }
.dl-modal .dl-box{ width:min(820px,96vw); max-height:85vh; overflow:auto; border-radius:16px; border:1px solid rgba(22,255,243,.25); box-shadow:0 10px 30px rgba(0,0,0,.45); background:linear-gradient(135deg, rgba(10,25,45,.9), rgba(0,180,200,.08)); padding:16px; color:#e8fdff; }
.dl-head{ display:flex; justify-content:space-between; align-items:center; gap:8px; }
.triage-q{ font-size:1.05rem; margin:6px 0; }
.triage-result{ padding:12px; background:rgba(22,255,243,.08); border:1px solid rgba(22,255,243,.22); border-radius:10px; }

@media (max-width:600px){
  .sticky-bar{ bottom:8px; }
  .a11y-bar{ bottom:66px; right:8px; }
}


/* Patient-friendly Drug Modal */
.pf-drug{ display:grid; gap:10px; }
.pf-row{ background:rgba(22,255,243,.08); border:1px solid rgba(22,255,243,.18); padding:10px; border-radius:10px; }
.pf-card{ background:rgba(22,255,243,.06); border:1px solid rgba(22,255,243,.2); padding:10px; border-radius:12px; }
.pf-title{ color:#b7fbff; font-weight:700; margin-bottom:6px; }
.pf-grid{ display:flex; gap:8px; align-items:center; }
.pf-out{ margin-top:6px; color:#aefcff; }

/* Related/FAQ in articles */
.art-related .rel-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:8px; margin:8px 0; }
.art-related .rel-item{ display:block; padding:10px; border:1px solid rgba(22,255,243,.2); border-radius:10px; background:rgba(22,255,243,.06); color:#dff9ff; }
.art-related .rel-item:hover{ background:rgba(22,255,243,.14); }
.art-related .faq details{ margin-top:8px; }
.art-related .faq summary{ cursor:pointer; color:#b7fbff; }


/* Language Picker */
.lang-picker{ display:flex; gap:6px; align-items:center; margin-right:8px; }
.lang-btn{ background:transparent; color:#aefcff; border:1px solid rgba(22,255,243,.35); padding:6px 8px; border-radius:8px; cursor:pointer; }
.lang-btn:hover{ background:rgba(22,255,243,.18); }

/* Risk chips */
.risk-wrap{ display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; }
.risk-chip{ display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius:999px; border:1px solid rgba(22,255,243,.25); font-size:.82rem; }
.risk-chip.ok{ background:rgba(80,255,120,.12); border-color:rgba(80,255,120,.35); }
.risk-chip.warn{ background:rgba(255,200,80,.12); border-color:rgba(255,200,80,.35); }
.risk-chip.avoid{ background:rgba(255,80,110,.12); border-color:rgba(255,80,110,.35); }


/* Drug filters & pager */
.drug-filters select{ background:#101e29; color:var(--c-text); border:1px solid #16fff352; padding:8px 10px; border-radius:8px; }
.pager button{ background:transparent; color:#aefcff; border:1px solid rgba(22,255,243,.35); padding:6px 9px; border-radius:8px; cursor:pointer; }
.pager button.active{ background:rgba(22,255,243,.18); }
