:root {
  --fak-premium-ink: #12293c;
  --fak-premium-muted: #63758a;
  --fak-premium-gold: #c59a43;
  --fak-premium-line: rgb(197 154 67 / 24%);
  --fak-premium-shadow: 0 16px 38px rgb(6 18 38 / 8%);
}

html body .admin-main > div:has(> section[aria-label="Statistik panel admin"]) {
  display: grid !important;
  gap: clamp(1rem, 2.2vw, 1.75rem) !important;
}

html body .admin-main > div:has(> section[aria-label="Statistik panel admin"]) > :not(:first-child) {
  margin-top: 0 !important;
}

html body .admin-main > div:has(> section[aria-label="Statistik panel admin"]) > section:first-child {
  position: relative;
  isolation: isolate;
  min-height: 12rem;
  overflow: hidden;
  border: 1px solid rgb(231 199 121 / 38%) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(ellipse at 86% 12%, rgb(212 179 106 / 24%), transparent 26rem),
    linear-gradient(128deg, #081c2e 0%, #0d3350 58%, #0f5d60 120%) !important;
  box-shadow: 0 28px 64px -36px rgb(6 18 38 / 62%) !important;
}

html body .admin-main > div:has(> section[aria-label="Statistik panel admin"]) > section:first-child::after {
  position: absolute;
  z-index: -1;
  top: -6rem;
  right: -3rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgb(240 223 180 / 20%);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5rem rgb(240 223 180 / 5%), 0 0 0 3rem rgb(240 223 180 / 3%);
  content: "";
  pointer-events: none;
}

html body .admin-main > div:has(> section[aria-label="Statistik panel admin"]) > section:first-child h2 {
  max-width: 46rem;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem) !important;
  line-height: 1.16 !important;
  text-wrap: balance;
}

html body .admin-main section[aria-label="Statistik panel admin"] {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(.65rem, 1.2vw, 1rem) !important;
}

html body .admin-main section[aria-label="Statistik panel admin"] > button {
  min-height: 11.5rem;
  padding: clamp(1rem, 1.5vw, 1.35rem) !important;
  border: 1px solid var(--fak-premium-line) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(ellipse at 100% 0, rgb(197 154 67 / 8%), transparent 65%),
    linear-gradient(155deg, #fffefa, #f8f3e8) !important;
  box-shadow: var(--fak-premium-shadow) !important;
}

html body .admin-main section[aria-label="Statistik panel admin"] > button > div > p {
  color: var(--fak-premium-muted) !important;
  font-weight: 600;
}

html body .admin-main section[aria-label="Statistik panel admin"] > button > p:nth-of-type(1) {
  color: var(--fak-premium-ink) !important;
  font-size: clamp(1.65rem, 2.4vw, 2rem) !important;
  font-variant-numeric: tabular-nums;
}

html body .admin-main section[aria-labelledby="admin-inbox-summary"] {
  border: 1px solid var(--fak-premium-line) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(ellipse at 100% 0, rgb(197 154 67 / 7%), transparent 25rem),
    #fffefa !important;
  box-shadow: var(--fak-premium-shadow) !important;
}

html body .fv-dialog:not(.fv-dark) {
  width: min(1500px, 98vw);
  height: min(96dvh, 1200px);
  border: 1px solid rgb(212 179 106 / 58%);
  border-radius: 24px;
  box-shadow: 0 40px 110px rgb(6 18 38 / 40%);
}

html body .fv-dialog:not(.fv-dark) .fv-head {
  min-height: 68px;
  padding: 14px clamp(16px, 2.4vw, 30px);
  background:
    radial-gradient(ellipse at 90% 0, rgb(212 179 106 / 18%), transparent 25rem),
    linear-gradient(115deg, #081c2e 0%, #0d3350 58%, #0f5d74 130%);
}

html body .fv-dialog:not(.fv-dark) .fv-tabs .fv-button[aria-selected="true"] {
  border: 1px solid rgb(197 154 67 / 42%);
  background: linear-gradient(110deg, #f3dfae, #e4c57f) !important;
  color: #18324a !important;
  box-shadow: inset 3px 0 #9f7b34, 0 8px 18px rgb(197 154 67 / 14%) !important;
}

html body .fv-dialog:not(.fv-dark) .fv-body {
  padding: clamp(14px, 2vw, 28px);
  background:
    radial-gradient(ellipse at 90% 0, rgb(15 93 116 / 5%), transparent 30rem),
    #f7f4ed;
}

html body .fv-dialog:not(.fv-dark) .fv-content > h3 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -.025em;
}

html body .fv-dialog:not(.fv-dark) .fv-hero {
  position: relative;
  overflow: hidden;
  min-height: 6rem;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgb(212 179 106 / 46%) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(ellipse at 90% 10%, rgb(21 142 154 / 28%), transparent 30rem),
    linear-gradient(120deg, #081c2e, #0d3350 58%, #0f5d74) !important;
  box-shadow: 0 22px 48px -30px rgb(6 18 38 / 66%) !important;
}

html body .fv-dialog:not(.fv-dark) .fv-scorecard,
html body .fv-dialog:not(.fv-dark) .fv-card {
  border-color: var(--fak-premium-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgb(6 18 38 / 6%), inset 0 1px #fff !important;
}

html body .fv-dialog:not(.fv-dark) .fv-scorecard {
  padding: clamp(16px, 2vw, 24px);
  background:
    radial-gradient(ellipse at 100% 0, rgb(197 154 67 / 8%), transparent 26rem),
    linear-gradient(160deg, #fffefa, #f7f2e7) !important;
}

html body .fv-dialog:not(.fv-dark) .fv-score-bar {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgb(13 51 80 / 8%);
  border-radius: 999px;
  background: #e7e4dc;
}

html body .fv-dialog:not(.fv-dark) .fv-score-fill {
  border-radius: inherit !important;
  background: linear-gradient(90deg, #1a8b68, #38bd89) !important;
  box-shadow: 0 0 12px rgb(56 189 137 / 24%);
}

html body .fv-dialog:not(.fv-dark) .fv-stats {
  gap: clamp(9px, 1.25vw, 16px);
}

html body .fv-dialog:not(.fv-dark) .fv-stat {
  min-height: 6.5rem;
  padding: clamp(13px, 1.5vw, 18px);
  border-color: var(--fak-premium-line) !important;
  border-radius: 17px !important;
  background:
    radial-gradient(ellipse at 100% 0, rgb(15 93 116 / 7%), transparent 70%),
    linear-gradient(155deg, #fffefa, #f7f1e4) !important;
  box-shadow: 0 12px 28px rgb(6 18 38 / 7%) !important;
}

html body .fv-dialog:not(.fv-dark) .fv-stat strong {
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  color: #0d3350;
}

html body .fv-dialog:not(.fv-dark) .fv-grid {
  gap: clamp(12px, 1.6vw, 20px);
}

html body .fv-dialog:not(.fv-dark) .fv-card h4 {
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
}

@media (max-width: 1024px) {
  html body .admin-main section[aria-label="Statistik panel admin"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  html body .admin-main > div:has(> section[aria-label="Statistik panel admin"]) {
    gap: 1rem !important;
  }

  html body .admin-main > div:has(> section[aria-label="Statistik panel admin"]) > section:first-child {
    min-height: 0;
    border-radius: 19px !important;
  }

  html body .admin-main section[aria-label="Statistik panel admin"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .admin-main section[aria-label="Statistik panel admin"] > button {
    min-height: 0;
  }

  html body .fv-dialog:not(.fv-dark) {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  html body .fv-dialog:not(.fv-dark) .fv-head {
    padding-inline: max(12px, env(safe-area-inset-left));
  }

  html body .fv-dialog:not(.fv-dark) .fv-body {
    padding: 14px max(12px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  html body .admin-main > div:has(> section[aria-label="Statistik panel admin"]) > section:first-child h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .admin-main section[aria-label="Statistik panel admin"] > button,
  html body .fv-dialog:not(.fv-dark) .fv-stat {
    transition: none !important;
  }
}


/* ===== Qoder premium pass 2 (20261129) — shell polish ===== */
html body .admin-main {
  background:
    radial-gradient(1200px 520px at 100% -12%, rgb(197 154 67 / 7%), transparent 60%),
    linear-gradient(180deg, #f7f4ec, #f2eee2) !important;
}
html body .admin-sidebar {
  background:
    radial-gradient(ellipse at 18% 0, rgb(212 179 106 / 12%), transparent 42%),
    linear-gradient(180deg, #0a2038 0%, #0c2b47 55%, #0a2038 100%) !important;
  border-right: 1px solid rgb(212 179 106 / 26%) !important;
  box-shadow: 1px 0 0 rgb(255 255 255 / 4%), 18px 0 44px -30px rgb(6 18 38 / 62%) !important;
}
html body .admin-sidebar::-webkit-scrollbar { width: 8px; }
html body .admin-sidebar::-webkit-scrollbar-thumb { background: rgb(212 179 106 / 32%); border-radius: 8px; }
html body .admin-sidebar > :first-child {
  padding-bottom: 1rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid rgb(212 179 106 / 18%);
}
html body .admin-sidebar :where(a,button) {
  position: relative;
  border-radius: 12px !important;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
html body .admin-sidebar :where(a,button):hover {
  background: rgb(255 255 255 / 7%) !important;
  color: #f3e6c4 !important;
  transform: translateX(2px);
}
html body .admin-sidebar :is([aria-current],[aria-current="page"],[data-active="true"],.is-active,[aria-selected="true"]) {
  background: linear-gradient(135deg, rgb(231 199 121 / 24%), rgb(197 154 67 / 12%)) !important;
  border: 1px solid rgb(231 199 121 / 42%) !important;
  color: #f7ecd4 !important;
  box-shadow: inset 3px 0 #c59a43, 0 10px 22px -14px rgb(0 0 0 / 60%) !important;
}
html body .admin-topbar {
  border-bottom: 1px solid rgb(15 39 64 / 10%) !important;
  background: rgb(247 244 236 / 72%) !important;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
html body .admin-topbar-heading > :where(h1,h2) {
  font-family: var(--font-display, "Playfair Display", Georgia, serif) !important;
  letter-spacing: -.02em !important;
  color: #0f2740 !important;
}
html body .admin-topbar-heading > button {
  border-radius: 12px !important;
  border: 1px solid rgb(15 39 64 / 14%) !important;
  background: #fffdf7 !important;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease !important;
}
html body .admin-topbar-heading > button:hover {
  background: #f6efd9 !important;
  box-shadow: 0 8px 18px -10px rgb(6 18 38 / 40%) !important;
  transform: translateY(-1px);
}
html body .admin-topbar-actions :where(a,button) {
  border-radius: 12px !important;
  border: 1px solid rgb(197 154 67 / 55%) !important;
  background: linear-gradient(135deg, #fffdf6, #f6ecd4) !important;
  color: #18324a !important;
  font-weight: 600 !important;
  box-shadow: 0 10px 22px -16px rgb(197 154 67 / 70%) !important;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease !important;
}
html body .admin-topbar-actions :where(a,button):hover {
  background: linear-gradient(135deg, #f3dfae, #e4c57f) !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -14px rgb(197 154 67 / 82%) !important;
}
html body .admin-main section[aria-label="Statistik panel admin"] > button {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
html body .admin-main section[aria-label="Statistik panel admin"] > button:hover {
  transform: translateY(-4px);
  border-color: rgb(197 154 67 / 55%) !important;
  box-shadow: 0 28px 52px -30px rgb(6 18 38 / 42%) !important;
}
html body .admin-main section[aria-labelledby="admin-inbox-summary"] :where(a,button) {
  border-radius: 12px !important;
}
@media (prefers-reduced-motion: reduce) {
  html body .admin-sidebar :where(a,button),
  html body .admin-topbar-heading > button,
  html body .admin-topbar-actions :where(a,button),
  html body .admin-main section[aria-label="Statistik panel admin"] > button { transition: none !important; transform: none !important; }
}


/* ===== Qoder premium pass 3 (20261129) — bold sidebar + cards ===== */
html body .admin-sidebar {
  background: linear-gradient(180deg, #061a30 0%, #0a2946 42%, #08213a 100%) !important;
  border-right: 0 !important;
  box-shadow: inset -1px 0 0 rgb(231 199 121 / 34%), 22px 0 54px -34px rgb(6 18 38 / 70%) !important;
}
html body .admin-sidebar :where(a,button) {
  min-height: 3rem !important;
  padding-inline: .9rem !important;
  border-radius: 13px !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  color: #d9e2ee !important;
}
html body .admin-sidebar :where(a,button) svg { color: #d8b877 !important; }
html body .admin-sidebar :where(a,button):hover {
  background: rgb(212 179 106 / 15%) !important;
  color: #f7ecd4 !important;
}
html body .admin-sidebar :is([aria-current],[aria-current="page"],[data-active="true"],.is-active,[aria-selected="true"]) {
  background: linear-gradient(135deg, #e7c779, #c59a43) !important;
  border: 1px solid #f0dcae !important;
  color: #14293f !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 26px -12px rgb(197 154 67 / 70%) !important;
}
html body .admin-sidebar :is([aria-current],[aria-current="page"],[data-active="true"],.is-active,[aria-selected="true"]) svg { color: #14293f !important; }
html body .admin-main section[aria-label="Statistik panel admin"] > button {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  border: 1px solid rgb(197 154 67 / 40%) !important;
  background:
    radial-gradient(140px 70px at 100% 0, rgb(197 154 67 / 12%), transparent 72%),
    linear-gradient(160deg, #fffefb, #f6f1e6) !important;
  box-shadow: 0 18px 40px -26px rgb(6 18 38 / 45%), inset 0 1px 0 #fff !important;
}
html body .admin-main section[aria-label="Statistik panel admin"] > button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #c59a43, #e7c779);
  opacity: .92;
}
html body .admin-main section[aria-label="Statistik panel admin"] > button:nth-child(1)::before { background: linear-gradient(90deg,#17365b,#2f6df6); }
html body .admin-main section[aria-label="Statistik panel admin"] > button:nth-child(2)::before { background: linear-gradient(90deg,#0f5d60,#38bd89); }
html body .admin-main section[aria-label="Statistik panel admin"] > button:nth-child(3)::before { background: linear-gradient(90deg,#c59a43,#e7c779); }
html body .admin-main section[aria-label="Statistik panel admin"] > button:nth-child(4)::before { background: linear-gradient(90deg,#6d3f8f,#a878d0); }
html body .admin-main section[aria-label="Statistik panel admin"] > button > p:nth-of-type(1) {
  font-size: clamp(2rem, 3vw, 2.6rem) !important;
  font-weight: 800 !important;
  color: #0f2740 !important;
  letter-spacing: -.02em !important;
}
html body .admin-main section[aria-label="Statistik panel admin"] > button > div > p {
  font-size: .8rem !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  color: #6b7a8c !important;
}
html body .admin-main section[aria-label="Statistik panel admin"] > button svg { color: #b8863b !important; }
@media (prefers-reduced-motion: reduce) {
  html body .admin-sidebar :where(a,button) { transform: none !important; }
}
