:root{
  --blue:#0b4aa2;
  --blue2:#0a3576;
  --white:#ffffff;
  --ice:#f3f8ff;
  --text:#0b1220;
  --muted:#5a6b84;
  --ok:#137333;
  --warn:#b26a00;
  --err:#b00020;
  --card:#ffffff;
  --line:#d9e6ff;
  --shadow: 0 10px 30px rgba(11,74,162,.10);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{max-width:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(11,74,162,.25), transparent 60%),
    radial-gradient(800px 400px at 90% 10%, rgba(255,255,255,.7), transparent 50%),
    linear-gradient(180deg, var(--ice), #fff 60%);
  color:var(--text);
  overflow-x:hidden;
}

.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:10px 16px;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
  color:var(--white);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.brand{display:flex; gap:12px; align-items:center; min-width:0}
.logo{
  width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;
  background: transparent;
  box-shadow:none;
  overflow:hidden;
  flex: 0 0 44px;
}
.logo img{ width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.15)); }
.brand-title{font-weight:800; letter-spacing:.2px}
.brand-sub{font-size:12px; opacity:.9}

.nav{
  display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end;
}
.nav a{
  color:#fff; text-decoration:none;
  padding:8px 10px; border-radius:12px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  white-space:nowrap;
}
.nav a:hover{background: rgba(255,255,255,.18)}
.nav a.pill{background: rgba(255,255,255,.20); font-weight:700}

.container{max-width:1200px; margin:22px auto; padding:0 14px}
.footer{max-width:1200px; margin:0 auto; padding:18px 14px 40px; color:var(--muted); font-size:12px}

.card{
  background:var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border:1px solid var(--line);
  padding:18px;
}
.card-narrow{max-width:620px; margin:40px auto}
h1{margin:0 0 12px; font-size:26px}
h2{margin:0 0 10px; font-size:18px}
h3{margin:0 0 10px; font-size:16px}

.muted{color:var(--muted)}
.mt{margin-top:16px}

.grid{display:grid; gap:16px}
.grid-2{grid-template-columns: 1fr 1fr}
@media (max-width: 900px){ .grid-2{grid-template-columns:1fr} }

.row{display:flex; gap:10px; align-items:end; flex-wrap:wrap}
.row.between{justify-content:space-between; align-items:center}
.right{text-align:right}
.span2{grid-column: 1 / -1}

.btn{
  display:inline-block;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  text-decoration:none;
  color:var(--text);
  font-weight:600;
}
.btn:hover{box-shadow: 0 8px 20px rgba(11,74,162,.08)}
.btn.primary{
  background: linear-gradient(90deg, var(--blue), var(--blue2));
  color:#fff; border-color: rgba(255,255,255,.08);
}
.btn.ghost{background:transparent}
.btn.small{padding:7px 10px; border-radius:12px; font-size:12px}

.form label{display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--muted)}
input, select, textarea{
  border-radius:14px; border:1px solid var(--line);
  padding:10px 12px; font-size:14px;
  background:#fff;
}
textarea{resize:vertical}
input:focus, select:focus, textarea:focus{outline:2px solid rgba(11,74,162,.15)}

.table{width:100%; border-collapse:separate; border-spacing:0; margin-top:10px}
.table th, .table td{padding:10px 10px; border-bottom:1px solid var(--line); vertical-align:top}
.table th{font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em}
.table tr:hover td{background: rgba(11,74,162,.03)}

.badge{
  display:inline-block; padding:4px 8px; border-radius:999px;
  font-size:12px; border:1px solid var(--line); background:#fff;
}
.badge.ok{border-color: rgba(19,115,51,.25); background: rgba(19,115,51,.08); color: var(--ok)}
.badge.warn{border-color: rgba(178,106,0,.25); background: rgba(178,106,0,.08); color: var(--warn)}
.badge.err{border-color: rgba(176,0,32,.25); background: rgba(176,0,32,.08); color: var(--err)}
.badge.muted{background: rgba(90,107,132,.08); color: var(--muted)}

.flash{padding:12px 14px; border-radius:16px; margin-bottom:14px; border:1px solid var(--line)}
.flash.ok{background: rgba(19,115,51,.08); border-color: rgba(19,115,51,.18)}
.flash.err{background: rgba(176,0,32,.08); border-color: rgba(176,0,32,.18)}
.flash.warn{background: rgba(178,106,0,.08); border-color: rgba(178,106,0,.18)}

.kpis{display:grid; grid-template-columns: repeat(4, 1fr); gap:10px; margin:12px 0}
.kpis-2{grid-template-columns: repeat(2, 1fr)}
.kpis-3{grid-template-columns: repeat(3, 1fr)}
.kpis-4{grid-template-columns: repeat(4, 1fr)}
@media (max-width: 900px){ .kpis{grid-template-columns: 1fr 1fr} }
@media (max-width: 520px){ .kpis{grid-template-columns: 1fr} }

.kpi{
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px 12px;
  background: linear-gradient(180deg, rgba(11,74,162,.05), transparent);
}
.kpi-label{font-size:12px; color:var(--muted)}
.kpi-val{font-size:18px; font-weight:900; letter-spacing:.2px}

.pos{color: var(--ok); font-weight:700}
.neg{color: var(--err); font-weight:700}

.box{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:#fff;
}

.hint{
  margin-top:12px; padding:12px; border-radius:16px;
  border:1px dashed rgba(255,255,255,.35);
  background: linear-gradient(90deg, rgba(11,74,162,.08), rgba(11,74,162,.03));
  color: var(--muted);
}
code{background: rgba(11,74,162,.08); padding:2px 6px; border-radius:10px}

.shop-card{ overflow:hidden; }
.shop-carousel{
  position:relative;
  width:100%;
  height:260px;
  border-radius:18px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.05);
  margin-bottom:12px;
  touch-action: pan-y;
}
.shop-carousel-img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  cursor:pointer;
  user-select:none;
  -webkit-user-drag:none;
}
.shop-dots{
  position:absolute;
  left:0; right:0;
  bottom:10px;
  display:flex;
  gap:6px;
  justify-content:center;
  pointer-events:none;
}
.shop-dots .dot{
  width:7px; height:7px;
  border-radius:999px;
  background:rgba(255,255,255,.55);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.shop-dots .dot.active{
  background:rgba(79,195,255,.95);
}
.price {
  font-size:18px;
  font-weight:bold;
  margin:10px 0;
  color:#4fc3ff;
}

.shop-lightbox{
  position:fixed; inset:0;
  background:rgba(0,0,0,.86);
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.shop-lightbox .lb-stage{
  position:relative;
  max-width:min(1100px, 92vw);
  max-height:88vh;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.shop-lightbox img{
  max-width:100%;
  max-height:78vh;
  border-radius:18px;
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
}
.shop-lightbox .lb-caption{
  color:rgba(255,255,255,.85);
  font-size:12px;
}
.shop-lightbox .lb-btn{
  position:absolute;
  border:0;
  background:rgba(255,255,255,.12);
  color:#fff;
  width:44px;
  height:44px;
  border-radius:14px;
  cursor:pointer;
  font-size:28px;
  line-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}
.shop-lightbox .lb-btn:hover{ background:rgba(255,255,255,.18); }
.shop-lightbox .lb-close{ top:16px; right:16px; font-size:26px; }
.shop-lightbox .lb-prev{ left:16px; top:50%; transform:translateY(-50%); }
.shop-lightbox .lb-next{ right:16px; top:50%; transform:translateY(-50%); }

.event-card-meta{
  display:flex; gap:12px; flex-wrap:wrap; color:var(--muted); font-size:13px;
}

@media (max-width: 900px){
  .topbar{
    align-items:stretch;
    flex-direction:column;
  }
  .nav{
    width:100%;
    display:flex;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling: touch;
    flex-wrap:nowrap;
    white-space:nowrap;
    padding-bottom:6px;
    justify-content:flex-start;
    touch-action: pan-x;
  }
  .nav a{flex:0 0 auto; white-space:nowrap}
  body{overflow-x:auto}
}

@media (max-width: 640px){
  .container{padding:0 10px}
  .card{padding:14px}
  .shop-carousel{height:220px}
  .table{display:block; overflow-x:auto}
  .row.between{align-items:flex-start}
  .brand-sub{display:none}
}

@media print{
  .topbar, .footer, .nav, .btn, .flash { display:none !important; }
  body{ background:#fff; }
  .card{ box-shadow:none; border:0; padding:0; }
  .container{ max-width:none; margin:0; padding:0; }
  .table th{ color:#000; }
}

.public-hero{
  overflow:hidden;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(11,74,162,.18), transparent 60%),
    radial-gradient(700px 260px at 100% 0%, rgba(255,255,255,.95), transparent 55%),
    linear-gradient(135deg, rgba(11,74,162,.06), rgba(10,53,118,.02));
}

.public-hero-inner{
  display:grid;
  grid-template-columns: 1.5fr .9fr;
  gap:18px;
  align-items:center;
}

.public-badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(11,74,162,.10);
  border:1px solid rgba(11,74,162,.12);
  color:var(--blue2);
  font-size:12px;
  font-weight:700;
  margin-bottom:10px;
}

.public-lead{
  font-size:16px;
  line-height:1.55;
  color:var(--muted);
  max-width:760px;
}

.public-info-box{
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.public-list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
}
.public-list li{ margin:8px 0; }

.public-product-card{
  background:
    linear-gradient(180deg, rgba(11,74,162,.03), rgba(255,255,255,0));
}

.public-carousel{
  background:
    radial-gradient(circle at top, rgba(255,255,255,.92), rgba(243,248,255,.8));
}

@media (max-width: 900px){
  .public-hero-inner{ grid-template-columns: 1fr; }
}

.delivery_hint_box{
  border-style: solid;
  background: linear-gradient(90deg, rgba(11,74,162,.07), rgba(11,74,162,.03));
}

.member-card-wrap{
  display:grid;
  grid-template-columns: 1.4fr .8fr;
  gap:16px;
}
@media (max-width: 900px){
  .member-card-wrap{ grid-template-columns: 1fr; }
}

.member-card-visual{
  position:relative;
  overflow:hidden;
  border-radius:24px;
  padding:22px;
  color:#fff;
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(135deg, #0b4aa2 0%, #0a3576 60%, #07244f 100%);
  box-shadow: 0 18px 40px rgba(11,74,162,.20);
  min-height: 290px;
}

.member-card-visual:before{
  content:"";
  position:absolute;
  right:-50px; top:-50px;
  width:180px; height:180px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
}
.member-card-visual:after{
  content:"";
  position:absolute;
  right:60px; bottom:-60px;
  width:220px; height:220px;
  border-radius:999px;
  background: rgba(255,255,255,.05);
}

.member-card-top,
.member-card-body,
.member-card-footer{
  position:relative;
  z-index:2;
}
.member-card-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.member-card-brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.member-card-brand img{
  width:62px;
  height:62px;
  object-fit:contain;
  border-radius:16px;
  background:rgba(255,255,255,.12);
  padding:6px;
}
.member-card-title{
  font-size:20px;
  font-weight:900;
  letter-spacing:.02em;
}
.member-card-sub{
  font-size:13px;
  opacity:.9;
}
.member-card-status{
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
}
.member-card-status.active{ background:rgba(19,115,51,.22); }
.member-card-status.inactive{ background:rgba(176,0,32,.20); }

.member-card-body{
  margin-top:26px;
}
.member-card-name{
  font-size:30px;
  font-weight:900;
  line-height:1.1;
  margin-bottom:6px;
}
.member-card-plan{
  font-size:15px;
  opacity:.9;
  margin-bottom:20px;
}
.member-card-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 560px){
  .member-card-grid{ grid-template-columns: 1fr; }
}
.mc-field{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:12px 14px;
}
.mc-label{
  font-size:12px;
  opacity:.85;
  margin-bottom:4px;
}
.mc-value{
  font-size:15px;
  font-weight:700;
  word-break:break-word;
}

.member-card-footer{
  margin-top:22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-size:12px;
  opacity:.95;
}
.member-card-code{
  font-weight:900;
  letter-spacing:.08em;
}

@media print{
  .member-card-wrap{ grid-template-columns: 1fr; }
  .member-card-visual{ box-shadow:none; }
}

.admin-link-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width: 700px){
  .admin-link-grid{ grid-template-columns:1fr; }
}

.card-narrow img{
  filter: drop-shadow(0 8px 20px rgba(11,74,162,.12));
}

/* ===== DASHBOARD HERO FINAL ===== */

.dashboard-hero{
  position:relative;
  margin-bottom:20px;
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(135deg,#0b4aa2,#0a3576);
  box-shadow:0 18px 40px rgba(11,74,162,.18);
}

.dashboard-hero:after{
  content:"";
  position:absolute;
  right:-60px;
  top:-60px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
}

.dashboard-hero-inner{
  position:relative;
  z-index:1;
  padding:24px;
  color:#fff;
}

.dashboard-hero-brand{
  display:flex;
  align-items:center;
  gap:18px;
}

.dashboard-hero-logo{
  width:80px !important;
  height:80px !important;
  max-width:80px !important;
  min-width:80px !important;
  object-fit:contain;
  flex:0 0 80px;
  background:#fff;
  border-radius:50%;
  padding:6px;
  box-shadow:0 8px 22px rgba(0,0,0,.14);
}

.dashboard-hero img:not(.dashboard-hero-logo){
  width:auto;
  max-width:120px;
  height:auto;
}

.dashboard-hero-title{
  font-size:30px;
  font-weight:800;
  line-height:1.15;
}

.dashboard-hero-sub{
  margin-top:6px;
  font-size:15px;
  opacity:.95;
}

.dashboard-hero-meta{
  display:inline-block;
  margin-left:12px;
  opacity:.9;
}

.dashboard-alerts{
  display:grid;
  gap:12px;
}

.dashboard-alert{
  border-radius:16px;
  padding:14px 16px;
  border:1px solid #d9e6ff;
  background:#fff;
}

.dashboard-alert strong{
  font-size:18px;
}

.dashboard-alert-info{
  background:#f7fbff;
  border-color:#cfe0ff;
  color:#0b4aa2;
}

.dashboard-alert-ok{
  background:#f3fff7;
  border-color:#cdeed8;
  color:#0f6b3d;
}

.dashboard-alert-warn{
  background:#fffaf0;
  border-color:#f3dfb1;
  color:#8a5a00;
}

.dashboard-alert-danger{
  background:#fff5f5;
  border-color:#f1c4c4;
  color:#a12626;
}

@media (max-width: 720px){
  .dashboard-hero-brand{
    flex-direction:column;
    align-items:flex-start;
  }

  .dashboard-hero-title{
    font-size:24px;
  }

  .dashboard-hero-meta{
    display:block;
    margin-left:0;
    margin-top:6px;
  }
}

/* ===== Fanclub Community Ergänzungen ===== */

.score-top-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(11,74,162,.10), rgba(11,74,162,.04));
  border:1px solid rgba(11,74,162,.14);
  color:var(--blue2);
  font-weight:700;
}

.score-points{
  font-weight:900;
  color:var(--blue);
}

.rank-medal{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:999px;
  font-size:14px;
  font-weight:800;
  background:rgba(11,74,162,.08);
  border:1px solid var(--line);
}

.rank-medal.gold{
  background:linear-gradient(180deg, #fff4bf, #f3d26a);
  border-color:#d7b449;
  color:#7a5a00;
}

.rank-medal.silver{
  background:linear-gradient(180deg, #f5f7fa, #d8dee7);
  border-color:#b8c2cf;
  color:#48576a;
}

.rank-medal.bronze{
  background:linear-gradient(180deg, #f7e1d4, #d7a27f);
  border-color:#b67f59;
  color:#6e3f22;
}

.bierometer-money{
  background:
    linear-gradient(180deg, rgba(11,74,162,.08), rgba(11,74,162,.02));
}

.bierometer-beer{
  background:
    linear-gradient(180deg, rgba(255,193,7,.18), rgba(255,193,7,.05));
  border-color: rgba(178,106,0,.18);
}

.bierometer-beer .kpi-val{
  color:#8a5a00;
}

.community-card{
  position:relative;
  overflow:hidden;
}

.community-card:after{
  content:"";
  position:absolute;
  right:-50px;
  top:-50px;
  width:160px;
  height:160px;
  border-radius:999px;
  background:rgba(11,74,162,.05);
  pointer-events:none;
}

.badge.score{
  border-color: rgba(11,74,162,.18);
  background: rgba(11,74,162,.08);
  color: var(--blue2);
  font-weight:700;
}

.table td .badge + .badge{
  margin-left:6px;
}

.table tr td:first-child strong{
  letter-spacing:.01em;
}

.inline-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

@media (max-width: 720px){
  .score-top-badge{
    width:100%;
    justify-content:center;
  }

  .inline-actions{
    justify-content:flex-start;
  }
}

/* ===== Bierometer fancy ===== */

.bierometer-card{
  position:relative;
  overflow:hidden;
}

.bierometer-card::after{
  content:"";
  position:absolute;
  right:-40px;
  top:-40px;
  width:140px;
  height:140px;
  border-radius:50%;
  background:rgba(255,255,255,.10);
  pointer-events:none;
}

.bierometer-progress{
  margin-top:14px;
  width:100%;
  height:18px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(11,74,162,.08);
  border:1px solid rgba(11,74,162,.12);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.05);
}

.bierometer-progress-bar{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#f2c94c,#f2994a);
  box-shadow:0 2px 10px rgba(242,153,74,.35);
  transition:width 1.2s ease;
  position:relative;
}

.bierometer-progress-bar::after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:28px;
  height:100%;
  background:rgba(255,255,255,.22);
  filter:blur(2px);
}

.bierometer-label{
  margin-top:8px;
  font-size:12px;
  color:var(--muted);
}

/* ===== Rangliste fancy ===== */

.ranking-table td:first-child{
  width:70px;
}

.rank-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 10px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  border:1px solid var(--line);
  background:#fff;
}

.rank-badge.gold{
  background:linear-gradient(180deg,#fff7cc,#f2c94c);
  border-color:#d4ad2f;
  color:#7a5a00;
  box-shadow:0 4px 12px rgba(242,201,76,.35);
}

.rank-badge.silver{
  background:linear-gradient(180deg,#f9fafb,#d7dde5);
  border-color:#b8c0cb;
  color:#4d5b6c;
  box-shadow:0 4px 12px rgba(180,190,204,.25);
}

.rank-badge.bronze{
  background:linear-gradient(180deg,#f6dfd2,#d79a6a);
  border-color:#b97b4d;
  color:#6f3f1d;
  box-shadow:0 4px 12px rgba(185,123,77,.25);
}

.rank-badge.standard{
  background:rgba(11,74,162,.06);
  color:var(--blue2);
}

.nav::-webkit-scrollbar{
  height:6px;
}
.nav::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.35);
  border-radius:999px;
}
.nav::-webkit-scrollbar-track{
  background:transparent;
}

.points-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: 0.2s;
}

.points-link:hover {
  opacity: 0.7;
}

.points-value {
  font-weight: 700;
}

.points-icon {
  font-size: 0.85em;
  opacity: 0.4;
  margin-left: 4px;
  transition: 0.2s;
}

.points-link:hover .points-icon {
  opacity: 1;
  transform: scale(1.15);
}
.points-link {
  padding: 2px 6px;
  border-radius: 6px;
}

.points-link:hover {
  background: rgba(0,0,0,0.05);
}
/* ===== Header / Navigation Refresh v23 ===== */
.topbar{
  padding:0;
  background:linear-gradient(110deg,#0b4aa2 0%,#0a3d85 62%,#072f67 100%);
  box-shadow:0 8px 28px rgba(5,40,88,.20);
}
.topbar-shell{
  width:100%;
  min-height:78px;
  padding:10px 14px;
  display:grid;
  grid-template-columns:minmax(265px, 340px) minmax(0,1fr);
  gap:18px;
  align-items:center;
}
.brand-title{
  font-size:15px;
  line-height:1.2;
  font-weight:900;
  max-width:270px;
}
.brand-sub{font-size:11px;opacity:.82;margin-top:3px}

.nav-fresh{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:nowrap;
}
.nav-primary,.nav-actions{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.nav-primary{flex-wrap:wrap}
.nav-actions{margin-left:auto;flex:0 0 auto}

.nav-fresh a,
.nav-fresh summary{
  font-size:14px;
  font-weight:650;
  letter-spacing:.01em;
}
.nav-fresh .nav-link,
.nav-menu > summary,
.nav-icon-link,
.nav-login{
  color:#fff;
  text-decoration:none;
  padding:9px 12px;
  border-radius:11px;
  background:transparent;
  box-shadow:none;
  border:1px solid transparent;
  white-space:nowrap;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.nav-fresh .nav-link:hover,
.nav-menu > summary:hover,
.nav-icon-link:hover,
.nav-login:hover{
  background:rgba(255,255,255,.11);
  border-color:rgba(255,255,255,.12);
}
.nav-fresh .nav-link.active,
.nav-menu.active > summary,
.nav-icon-link.active{
  background:#fff;
  color:#0a428f;
  border-color:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
}

.nav-menu{position:relative}
.nav-menu > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
}
.nav-menu > summary::-webkit-details-marker{display:none}
.nav-chevron{display:inline-block;margin-left:4px;font-size:13px;transition:transform .18s ease}
.nav-menu[open] .nav-chevron{transform:rotate(180deg)}
.nav-dropdown{
  position:absolute;
  top:calc(100% + 9px);
  left:0;
  min-width:220px;
  padding:8px;
  border-radius:14px;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(11,74,162,.12);
  box-shadow:0 18px 45px rgba(4,35,78,.24);
  z-index:100;
  display:grid;
  gap:3px;
}
.nav-dropdown-wide{
  min-width:390px;
  grid-template-columns:1fr 1fr;
}
.nav-dropdown a{
  color:#18324f;
  background:transparent;
  box-shadow:none;
  border-radius:9px;
  padding:9px 10px;
  font-size:13px;
  font-weight:650;
}
.nav-dropdown a:hover{
  color:#0b4aa2;
  background:#eef6ff;
}

.nav-blog,.nav-logout{
  text-decoration:none;
  white-space:nowrap;
  border-radius:11px;
  padding:9px 12px;
  font-weight:800 !important;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.nav-blog{
  color:#07356f !important;
  background:#fff !important;
  box-shadow:0 5px 16px rgba(0,0,0,.14) !important;
}
.nav-blog:hover{transform:translateY(-1px);box-shadow:0 7px 20px rgba(0,0,0,.18) !important}
.nav-logout{
  color:#fff !important;
  background:rgba(255,255,255,.14) !important;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:none !important;
}
.nav-logout:hover{background:rgba(255,255,255,.22) !important}
.nav-user{font-weight:650;opacity:.9}
.nav-login{
  background:rgba(255,255,255,.16) !important;
  border-color:rgba(255,255,255,.16) !important;
  font-weight:800 !important;
}

@media (max-width:1250px){
  .topbar-shell{grid-template-columns:250px minmax(0,1fr);gap:10px}
  .nav-fresh a,.nav-fresh summary{font-size:13px}
  .nav-fresh .nav-link,.nav-menu > summary,.nav-icon-link,.nav-login,.nav-blog,.nav-logout{padding:8px 9px}
  .nav-user{display:none}
}

@media (max-width:980px){
  .topbar-shell{display:flex;flex-direction:column;align-items:stretch;padding:10px 12px}
  .brand{padding:0 2px}
  .nav-fresh{align-items:stretch;flex-direction:column;gap:8px}
  .nav-primary,.nav-actions{
    width:100%;
    overflow-x:auto;
    overflow-y:visible;
    flex-wrap:nowrap;
    padding-bottom:3px;
    scrollbar-width:thin;
  }
  .nav-actions{margin-left:0}
  .nav-dropdown{position:fixed;left:12px;right:12px;top:auto;min-width:0;max-height:60vh;overflow:auto}
  .nav-dropdown-wide{grid-template-columns:1fr 1fr}
}

@media (max-width:600px){
  .topbar-shell{padding:8px 10px}
  .brand-title{font-size:14px}
  .logo{width:40px;height:40px;flex-basis:40px}
  .nav-dropdown-wide{grid-template-columns:1fr}
  .nav-blog,.nav-logout,.nav-login{padding:8px 10px}
}


/* ===== Mobile Navigation v24 ===== */
.mobile-nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:9px 14px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:12px;
  color:#fff;
  background:rgba(255,255,255,.12);
  font:inherit;
  font-weight:850;
  cursor:pointer;
  box-shadow:none;
}
.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible{
  background:rgba(255,255,255,.19);
  outline:none;
}
.mobile-nav-toggle-icon{
  width:20px;
  font-size:20px;
  line-height:1;
  text-align:center;
}

@media (max-width:760px){
  .topbar{
    position:relative;
    z-index:200;
  }
  .topbar-shell{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px 12px;
    align-items:center;
    padding:9px 10px;
    min-height:auto;
  }
  .brand{
    min-width:0;
    padding:0;
  }
  .brand > div:last-child{
    min-width:0;
  }
  .brand-title{
    max-width:none;
    font-size:14px;
    line-height:1.18;
  }
  .brand-sub{
    display:none;
  }
  .logo{
    width:42px;
    height:42px;
    flex:0 0 42px;
  }
  .mobile-nav-toggle{
    display:inline-flex;
  }
  .nav-fresh{
    grid-column:1 / -1;
    display:none;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:10px 0 3px;
    border-top:1px solid rgba(255,255,255,.14);
  }
  .topbar-shell.mobile-nav-open .nav-fresh{
    display:flex;
  }
  .nav-primary,
  .nav-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
    overflow:visible;
    padding:0;
    margin:0;
  }
  .nav-actions{
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.14);
  }
  .nav-fresh .nav-link,
  .nav-menu > summary,
  .nav-icon-link,
  .nav-login,
  .nav-blog,
  .nav-logout{
    box-sizing:border-box;
    width:100%;
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:11px 13px;
    border-radius:11px;
    font-size:14px;
    text-align:left;
  }
  .nav-fresh .nav-link,
  .nav-menu > summary,
  .nav-icon-link,
  .nav-login,
  .nav-logout{
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.10);
  }
  .nav-fresh .nav-link.active,
  .nav-menu.active > summary,
  .nav-icon-link.active{
    background:#fff;
    color:#0a428f;
    border-color:#fff;
  }
  .nav-menu{
    width:100%;
  }
  .nav-menu > summary{
    display:flex;
  }
  .nav-chevron{
    margin-left:auto;
  }
  .nav-dropdown,
  .nav-dropdown-wide{
    position:static;
    min-width:0;
    width:auto;
    max-height:none;
    overflow:visible;
    grid-template-columns:1fr;
    margin-top:5px;
    padding:6px;
    border-radius:11px;
    background:rgba(255,255,255,.97);
    box-shadow:none;
  }
  .nav-dropdown a{
    padding:10px 11px;
    min-height:40px;
    display:flex;
    align-items:center;
    border-radius:8px;
    font-size:14px;
  }
  .nav-blog{
    justify-content:center;
    background:#fff !important;
    color:#07356f !important;
  }
  .nav-logout,
  .nav-login{
    justify-content:center;
  }
  .nav-user{
    display:inline;
  }
}

@media (max-width:390px){
  .brand-title{
    font-size:13px;
  }
  .logo{
    width:38px;
    height:38px;
    flex-basis:38px;
  }
  .mobile-nav-toggle{
    padding:8px 10px;
  }
  .mobile-nav-toggle span:last-child{
    display:none;
  }
}
