:root {
  --blue: #1859a8;
  --blue-dark: #11498d;
  --blue-soft: #eef5ff;
  --text: #10151d;
  --muted: #657080;
  --line: #e8edf4;
  --page: #f6f6f7;
  --surface: #ffffff;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(23, 43, 77, .10);
}

/* Refined admin surface */
.admin-body {
  background:
    linear-gradient(180deg, rgba(241, 246, 255, .94), rgba(247, 249, 252, 1) 42%),
    radial-gradient(circle at 24% 0%, rgba(40, 99, 190, .10), transparent 34%);
  color: #172033;
}

.admin-sidebar {
  width: 270px;
  padding: 16px 14px;
  background: #0b1220;
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 18px 0 40px rgba(15, 23, 42, .12);
}

.admin-logo {
  min-height: 58px;
  padding: 8px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-logo span {
  border-radius: 12px;
  background: linear-gradient(135deg, #1e5aa8, #2c7cf6);
  box-shadow: 0 10px 24px rgba(44, 124, 246, .30);
}

.admin-sidebar nav {
  gap: 4px;
  overflow: auto;
  padding-right: 2px;
}

.admin-sidebar nav a,
.admin-logout {
  min-height: 38px;
  border-radius: 10px;
  color: #aebbd0;
  font-size: 14px;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: rgba(44, 124, 246, .16);
  color: #fff;
}

.admin-sidebar nav a.active {
  box-shadow: inset 3px 0 0 #5aa2ff;
}

.admin-main {
  margin-left: 270px;
  padding: 24px;
}

.admin-top {
  min-height: 76px;
  border: 0;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.admin-top h1 {
  font-size: 28px;
}

.admin-top > div:last-child {
  min-width: 180px;
  padding: 10px 14px;
  border: 1px solid #e3eaf4;
  border-radius: 12px;
  background: #f8fbff;
}

.admin-hero {
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 14px;
  background: #0f1b2d;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 20px 50px rgba(15, 27, 45, .18);
}

.admin-hero h2 {
  margin: 6px 0 8px;
  font-size: 28px;
}

.admin-hero p {
  margin: 0;
  color: #c8d5e8;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.admin-stats div {
  min-height: 118px;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.admin-stats small {
  font-weight: 800;
}

.admin-stats strong {
  display: block;
  margin: 8px 0 6px;
  color: #123f7c;
  font-size: 25px;
  line-height: 1.1;
}

.admin-stats span {
  color: #66758a;
  font-size: 12px;
  font-weight: 700;
}

.admin-card {
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.admin-card h2 {
  font-size: 18px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 18px;
  margin-bottom: 18px;
}

.admin-card-wide {
  min-width: 0;
}

.admin-quick {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-quick a {
  border-radius: 14px;
  border-color: #dfe7f2;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-quick a:hover {
  transform: translateY(-2px);
  border-color: #b8cff0;
  box-shadow: 0 18px 38px rgba(30, 90, 168, .12);
}

.admin-table {
  min-width: 680px;
}

.admin-table th {
  background: #f3f7fc;
  color: #516075;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td {
  color: #263246;
}

.admin-list-row {
  min-height: 46px;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-list-row span {
  color: #334155;
  font-weight: 700;
}

.admin-list-row b {
  color: #1e5aa8;
  white-space: nowrap;
}

.admin-thumb {
  width: 54px;
  height: 38px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
}

.brand-logo-img {
  width: 100%;
  max-width: 104px;
  max-height: 62px;
  object-fit: contain;
  display: block;
}

.brand-tile:has(.brand-logo-img) {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
}

.product-logo-img {
  width: min(150px, 72%);
  max-height: 112px;
  object-fit: contain;
  display: block;
  margin: auto;
  filter: drop-shadow(0 12px 20px rgba(15, 23, 42, .12));
}

.admin-form input[type="file"] {
  padding: 8px;
  line-height: 1.4;
}

/* Home showcase full-bleed fix */
.page-shell > main {
  padding: 0;
  overflow: hidden;
}

.page-shell > main .hero {
  width: 100%;
  margin: 0;
  display: block;
}

.page-shell > main .hero-slider {
  width: 100%;
  min-height: clamp(360px, 48vh, 520px);
  border-radius: 0;
  padding: clamp(34px, 4.5vw, 60px) clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(320px, .9fr) minmax(430px, 1.1fr);
}

.page-shell > main .hero-copy {
  max-width: 640px;
}

.page-shell > main .software-boxes {
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(12px, 1.8vw, 24px);
}

.page-shell > main .pack {
  position: relative;
  right: auto;
  bottom: auto;
  width: clamp(108px, 9vw, 148px);
  height: clamp(158px, 14vw, 210px);
  flex: 0 0 auto;
}

.page-shell > main .pack-2,
.page-shell > main .pack-win,
.page-shell > main .pack-dark {
  right: auto;
}

.page-shell > main .brand-strip,
.page-shell > main .section {
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 900px) {
  .page-shell > main .hero-slider {
    min-height: 340px;
    border-radius: 0;
    padding: 38px 24px;
  }
}

@media (max-width: 620px) {
  .page-shell > main .hero-slider {
    min-height: 430px;
    padding: 34px 18px;
  }
}

@media (max-width: 1180px) {
  .admin-stats,
  .admin-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-sidebar {
    width: auto;
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .admin-stats,
  .admin-quick {
    grid-template-columns: 1fr;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--page);
  letter-spacing: 0;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { width: 21px; height: 21px; stroke-width: 2.2; }

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 64px;
  background: #fff;
  border-right: 1px solid #dfe6ef;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.side-rail a,
.rail-menu {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: transparent;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}

.rail-menu {
  background: var(--blue);
  color: #fff;
}

.side-rail a:hover,
.rail-menu:hover {
  background: var(--blue-soft);
  transform: translateX(3px);
}

.page-shell {
  margin-left: 64px;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}

.site-header.is-scrolled { box-shadow: 0 10px 28px rgba(18, 38, 63, .10); }

.top-header {
  height: 82px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 220px minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 5px solid var(--blue);
  border-top-color: #96a0ad;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
  transform: rotate(-35deg);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: #9098a3;
}

.brand-mark::before { left: -13px; bottom: -4px; }
.brand-mark::after { right: -13px; top: -4px; }

.brand-mark span {
  position: absolute;
  inset: 8px 16px auto auto;
  width: 18px;
  height: 6px;
  background: var(--blue);
  border-radius: 99px;
}

.brand-text {
  font-size: 30px;
  color: #647083;
  font-weight: 700;
  white-space: nowrap;
}

.brand-text b { color: var(--blue); }
.brand-text em {
  color: var(--blue);
  font-size: 10px;
  font-style: normal;
  vertical-align: top;
  margin-left: 2px;
}

.search {
  height: 47px;
  max-width: 740px;
  justify-self: stretch;
  border: 1px solid #dfe5ed;
  border-radius: 999px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 52px;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.search:focus-within {
  border-color: #b8c9df;
  box-shadow: 0 8px 24px rgba(24, 89, 168, .12);
}

.search input {
  border: 0;
  outline: 0;
  padding: 0 18px;
  min-width: 0;
  color: #3b4656;
}

.search button {
  border: 0;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}

.header-support {
  display: flex;
  align-items: center;
  gap: 26px;
}

.support-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.support-pill svg {
  width: 38px;
  height: 38px;
  color: #1b1e26;
}

.support-pill b {
  display: block;
  font-size: 14px;
}

.support-pill small {
  display: block;
  color: #1e66d0;
  margin-top: 5px;
}

.blue-nav {
  min-height: 60px;
  padding: 0 14px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 34px;
}

.blue-nav a {
  font-weight: 700;
  font-size: 14px;
  padding: 21px 0;
  position: relative;
}

.blue-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.blue-nav a:hover::after { transform: scaleX(1); }

.all-categories {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #10151d;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.all-categories svg {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.round-btn,
.cart-chip {
  border: 0;
  background: #fff;
  color: #10151d;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}

.round-btn:hover,
.cart-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
}

.round-btn span,
.cart-chip span {
  position: absolute;
  right: -2px;
  top: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.cart-chip {
  width: auto;
  border-radius: 999px;
  padding: 0 9px 0 12px;
  display: flex;
  gap: 7px;
}

.cart-chip b {
  color: #fff;
  margin-left: 2px;
}

.cart-chip {
  background: transparent;
  color: #fff;
}

.cart-chip svg {
  background: #fff;
  color: #10151d;
  border-radius: 50%;
  padding: 9px;
  width: 42px;
  height: 42px;
}

main {
  padding: 20px 16px 0;
}

.hero {
  display: grid;
  grid-template-columns: 0 1fr;
  gap: 0;
}

.category-panel {
  width: 276px;
  background: #fff;
  border-right: 1px solid #dfe6ef;
  overflow: hidden;
  position: fixed;
  z-index: 75;
  top: 0;
  bottom: 0;
  left: 0;
  padding: 18px 6px 22px;
  box-shadow: 18px 0 38px rgba(17, 24, 39, .12);
  transform: translateX(-104%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.category-panel.open {
  transform: translateX(0);
}

.category-panel__head {
  width: calc(100% - 12px);
  height: 43px;
  margin: 0 6px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  font-weight: 800;
  font-size: 15px;
}

.category-panel__head svg {
  width: 23px;
  height: 23px;
}

.category-panel a {
  min-height: 45px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  border-radius: 7px;
}

.category-panel a:hover { background: var(--blue-soft); color: var(--blue); }
.category-panel a > svg {
  width: 21px;
  color: var(--blue);
  flex: 0 0 auto;
}
.category-panel a span {
  margin-left: auto;
  color: #a7b0bd;
  display: grid;
  place-items: center;
}
.category-panel a span svg {
  width: 15px;
  height: 15px;
}

.hero-slider {
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(1, 7, 18, .95), rgba(3, 35, 91, .86) 45%, rgba(13, 33, 77, .38)),
    repeating-linear-gradient(170deg, rgba(255,255,255,.05) 0 1px, transparent 1px 9px),
    linear-gradient(90deg, #020817, #0b45ad 62%, #c85742);
  display: grid;
  grid-template-columns: minmax(330px, .95fr) 1.1fr;
  align-items: center;
  padding: 44px 64px;
  color: #fff;
  isolation: isolate;
  animation: banner-move 14s ease-in-out infinite;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 18%, rgba(255,255,255,.13) 44%, transparent 65%);
  transform: translateX(-120%);
  animation: banner-sheen 6s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(31px, 4vw, 39px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 0 0 22px;
  color: #e8f0ff;
  font-size: 16px;
}

.hero-button,
.primary-btn {
  min-height: 43px;
  padding: 0 20px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease;
}

.hero-button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.software-boxes {
  min-height: 210px;
  position: relative;
  z-index: 2;
}

.pack {
  position: absolute;
  width: 130px;
  height: 185px;
  bottom: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  font-weight: 800;
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 28px 36px rgba(0,0,0,.32);
  transform: skewY(-3deg);
  animation: pack-float 5.5s ease-in-out infinite;
}

.pack span {
  display: block;
  font-size: 13px;
  margin-top: 6px;
}

.pack-office { right: 330px; background: linear-gradient(120deg, #ff4b1f 0 30%, #fff 30% 66%, #e95525 66%); color: #e94b25; }
.pack-2 { right: 220px; animation-delay: .4s; }
.pack-win { right: 108px; background: linear-gradient(120deg, #1764c8 0 32%, #fff 32% 66%, #226fcc 66%); color: #fff; animation-delay: .8s; }
.pack-dark { right: 0; background: linear-gradient(120deg, #111 0 34%, #f8f8f8 34% 66%, #111 66%); color: #fff; animation-delay: 1.2s; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.42);
  z-index: 4;
}

.slider-arrow--left { left: 14px; }
.slider-arrow--right { right: 14px; }
.slider-arrow:hover { color: #fff; }

.slider-dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: rgba(255,255,255,.88);
  border-radius: 999px;
  padding: 8px 10px;
  display: flex;
  gap: 7px;
  z-index: 5;
}

.slider-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b7bec8;
}

.slider-dots .active { background: #1c2633; }

.brand-strip {
  padding: 60px 0 34px;
  display: grid;
  grid-template-columns: repeat(8, minmax(100px, 1fr));
  gap: clamp(14px, 2.7vw, 40px);
}

.brand-tile {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(20, 31, 49, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.brand-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-120%);
  transition: transform .5s ease;
}

.brand-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(20, 31, 49, .18);
}

.brand-tile:hover::after { transform: translateX(120%); }
.brand-tile svg { width: 50px; height: 50px; margin-bottom: 7px; }
.brand-tile span { display: block; }
.tile-chat { background: #18aa82; }
.tile-mid { background: #06142e; }
.tile-envato { background: #79b63e; font-size: 25px; }
.tile-freepik { background: #345ec9; font-size: 24px; }
.tile-semrush { background: #ff612d; }
.tile-canva { background: linear-gradient(135deg, #13c6c4, #8b28f3); font-size: 29px; font-family: Georgia, serif; }
.tile-shutter { background: #f32422; font-size: 19px; }
.tile-master { background: #554bd8; font-size: 58px; }
.sail { font-size: 45px; line-height: 1; transform: rotate(-18deg); }

.section {
  padding: 22px 0 28px;
}

.section-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.filter {
  border: 1px solid #dfe7f2;
  background: #fff;
  min-height: 35px;
  padding: 0 13px;
  border-radius: 999px;
  color: #425064;
  font-weight: 700;
}

.filter.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.more-link {
  margin-left: auto;
  min-height: 43px;
  padding: 0 18px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #125bd1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.product-grid,
.product-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .42s ease, transform .42s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
  transition-delay: calc(var(--i, 0) * 45ms);
}

.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-card.is-visible:hover { transform: translateY(-6px); }

.product-media {
  height: 172px;
  display: grid;
  place-items: center;
  background: #fbfcfe;
  position: relative;
  overflow: hidden;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.65), transparent 70%);
  transform: translateX(-130%);
  transition: transform .55s ease;
}

.product-card:hover .product-media::after { transform: translateX(130%); }

.fake-product {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  font-weight: 800;
  padding: 14px;
  transition: transform .22s ease;
}

.product-card:hover .fake-product { transform: rotate(-3deg) scale(1.05); }
.tone-windows { background: linear-gradient(135deg, #1c6bd5, #42b7ff); }
.tone-office { background: linear-gradient(135deg, #f05b2d, #ffb15b); }
.tone-ai { background: linear-gradient(135deg, #06142e, #17aa82); }
.tone-design { background: linear-gradient(135deg, #14c9d2, #7b26f1); }
.tone-wordpress { background: linear-gradient(135deg, #1f719a, #66c6ee); }

.badge {
  position: absolute;
  left: 22px;
  top: 22px;
  min-width: 54px;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  animation: badge-pulse 2.4s ease-in-out infinite;
}

.product-body { padding: 15px 17px 18px; }
.product-category { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.product-title { min-height: 43px; font-size: 15px; line-height: 1.35; margin: 0 0 8px; }
.rating { color: #f2a900; font-size: 13px; margin-bottom: 8px; }
.stock { color: #18a26f; font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.price del { color: var(--muted); font-size: 13px; }
.price strong { color: var(--blue); font-size: 19px; }

.product-actions {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 8px;
}

.add-btn,
.wish-btn {
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid #dbe4ef;
  font-weight: 800;
  transition: transform .16s ease, background .16s ease;
}

.add-btn {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.add-btn:hover,
.add-btn.is-adding { background: var(--blue-dark); transform: translateY(-1px); }
.wish-btn { background: #fff; color: #445168; }
.wish-btn.active { color: #e93240; background: #fff4f5; border-color: #ffc9cf; }

.section-soft {
  background: #eef4fb;
  margin: 12px -16px 0;
  padding: 34px 16px;
}

.feature-band {
  display: grid;
  grid-template-columns: .9fr 1.2fr;
  gap: 24px;
  align-items: center;
}

.compact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.compact-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.compact-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.compact-item .fake-product { width: 56px; height: 56px; font-size: 11px; }
.compact-item h3 { margin: 0 0 4px; font-size: 14px; }
.compact-item small { color: var(--muted); }
.compact-item strong { color: var(--blue); white-space: nowrap; }

.support-section {
  margin-top: 20px;
  padding: 28px;
  background: #fff;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
}

.support-form {
  display: grid;
  gap: 10px;
}

.support-form input,
.support-form select {
  height: 44px;
  border: 1px solid #dfe7f2;
  border-radius: 6px;
  padding: 0 12px;
}

.primary-btn {
  background: var(--blue);
  color: #fff;
}

.footer {
  margin-top: 28px;
  padding: 28px 16px;
  background: #111827;
  color: #d6dde8;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.footer p { color: #aeb8c7; margin-bottom: 0; }
.footer a { display: block; color: #aeb8c7; margin: 8px 0; }

.category-page {
  padding: 24px 16px 0;
}

.simple-top {
  min-height: 82px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.simple-top .brand { flex: 0 0 auto; }

.simple-nav {
  background: var(--blue);
  color: #fff;
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
}

.crumb {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
}

.crumb a { color: var(--blue); font-weight: 700; }

.category-hero {
  min-height: 190px;
  border-radius: 8px;
  padding: 32px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(3, 24, 55, .95), rgba(18, 89, 168, .82)),
    linear-gradient(90deg, #071329, #1859a8);
  display: grid;
  align-content: center;
  overflow: hidden;
  position: relative;
}

.category-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -95px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}

.category-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

.category-hero p {
  margin: 0;
  color: #e9f1ff;
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  margin-top: 22px;
}

.shop-sidebar,
.shop-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.shop-sidebar h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.shop-sidebar a {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #344154;
  font-weight: 700;
  border-bottom: 1px solid #eef2f7;
}

.shop-sidebar a:last-child { border-bottom: 0; }
.shop-sidebar a:hover { color: var(--blue); }

.shop-toolbar {
  min-height: 54px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-toolbar select {
  height: 36px;
  border: 1px solid #dfe7f2;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
}

.category-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mini-card {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.mini-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.mini-card__media {
  height: 150px;
  background: #fbfcfe;
  display: grid;
  place-items: center;
}

.mini-card__body {
  padding: 14px;
}

.mini-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.35;
  min-height: 40px;
}

.mini-card strong {
  color: var(--blue);
  font-size: 18px;
}

.mini-card button {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.shop-note {
  margin-top: 20px;
}

.cart-summary {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #f7f9fc;
  text-align: right;
}

.content-body {
  line-height: 1.75;
  color: #344154;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-item p {
  margin: 10px 0 0;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(24, 89, 168, .14), transparent 28%),
    linear-gradient(135deg, #f7f9fc, #eef4fb);
}

.auth-shell {
  min-height: 100vh;
  width: min(520px, calc(100% - 28px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  align-content: center;
  gap: 18px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: 0;
}

.auth-form {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #344154;
  font-weight: 800;
  font-size: 14px;
}

.auth-form input {
  height: 46px;
  border: 1px solid #dfe7f2;
  border-radius: 6px;
  padding: 0 12px;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(24, 89, 168, .12);
}

.auth-alert {
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 700;
  font-size: 14px;
}

.auth-switch {
  margin: 18px 0 0;
  text-align: center;
}

.auth-switch a {
  color: var(--blue);
  font-weight: 800;
}

.account-card {
  width: min(760px, 100%);
  justify-self: center;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.account-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

.account-grid small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.account-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.secondary-btn {
  min-height: 43px;
  padding: 0 20px;
  border-radius: 5px;
  border: 1px solid #dfe7f2;
  background: #fff;
  color: #344154;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.admin-panel {
  width: min(1040px, calc(100vw - 28px));
  justify-self: center;
}

.admin-head {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow);
}

.admin-head h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.admin-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.admin-stats div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.admin-stats small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-stats strong {
  color: var(--blue);
  font-size: 30px;
}

.admin-table-card {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.admin-table-card h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  color: #344154;
  background: #f7f9fc;
}

.admin-body {
  background: #f4f7fb;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  background: #111827;
  color: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 90;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}

.admin-logo span {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--blue);
  display: grid;
  place-items: center;
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar nav a,
.admin-logout {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: #cbd5e1;
  font-weight: 800;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: rgba(255,255,255,.10);
  color: #fff;
}

.admin-logout {
  margin-top: auto;
  background: rgba(255,255,255,.08);
}

.admin-main {
  margin-left: 246px;
  padding: 22px;
}

.admin-top {
  min-height: 92px;
  margin-bottom: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow);
}

.admin-top h1 {
  margin: 0;
  font-size: 32px;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(23, 43, 77, .07);
}

.admin-card h2 {
  margin-bottom: 16px;
  font-size: 21px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(420px, 1.22fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: #344154;
  font-weight: 800;
  font-size: 14px;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.inline-admin-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dfe7f2;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
}

.admin-form textarea {
  min-height: 92px;
  padding-top: 10px;
  resize: vertical;
}

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.wide-form {
  max-width: 1040px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-flash {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eafbf3;
  color: #08704b;
  font-weight: 800;
}

.admin-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.admin-quick a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 6px;
  box-shadow: 0 12px 34px rgba(23, 43, 77, .07);
}

.admin-quick b {
  color: var(--blue);
}

.admin-quick span {
  color: var(--muted);
  line-height: 1.45;
}

.status-badge {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  background: #eef2f7;
  color: #475569;
}

.status-active {
  background: #eafbf3;
  color: #08704b;
}

.status-draft {
  background: #fff7e6;
  color: #9a5b00;
}

.status-passive,
.status-blocked {
  background: #fff1f2;
  color: #be123c;
}

.inline-admin-form {
  display: grid;
  grid-template-columns: 120px 120px minmax(120px, 1fr) 82px;
  gap: 8px;
  align-items: center;
}

.inline-admin-form button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(410px, 100%);
  background: #fff;
  z-index: 70;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: -20px 0 60px rgba(0,0,0,.18);
}

.cart-drawer.open { transform: translateX(0); }
.cart-drawer__head,
.cart-drawer__foot {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-drawer__foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  display: grid;
}

.cart-drawer__foot div {
  display: flex;
  justify-content: space-between;
}

.cart-items { overflow: auto; padding: 12px; }
.cart-empty { padding: 24px; color: var(--muted); display: none; }

.cart-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  align-items: center;
  animation: panel-in .2s ease both;
}

.cart-item .fake-product { width: 54px; height: 54px; font-size: 11px; }
.cart-item h3 { font-size: 14px; margin: 0 0 4px; }
.cart-item small { color: var(--muted); }
.remove-btn { border: 0; background: transparent; color: #e93240; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 22, .45);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.overlay.open { opacity: 1; pointer-events: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 18px);
  background: #111827;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.cart-chip.bump,
.round-btn.bump span {
  animation: counter-pop .4s cubic-bezier(.2, 1.35, .35, 1);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes banner-move {
  0%, 100% { background-position: 0 50%, 0 0, 0 50%; }
  50% { background-position: 100% 50%, 40px 0, 100% 50%; }
}

@keyframes banner-sheen {
  0%, 45% { transform: translateX(-120%); }
  72%, 100% { transform: translateX(120%); }
}

@keyframes pack-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes counter-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .top-header { grid-template-columns: 210px 1fr; height: auto; padding: 14px 16px; }
  .header-support { grid-column: 1 / -1; justify-content: flex-end; }
  .brand-strip { grid-template-columns: repeat(4, 1fr); }
  .product-grid, .product-row { grid-template-columns: repeat(4, 1fr); }
  .software-boxes { opacity: .82; }
}

@media (max-width: 900px) {
  .side-rail { display: none; }
  .page-shell { margin-left: 0; }
  .top-header { grid-template-columns: 1fr; }
  .brand { justify-content: center; }
  .header-support { justify-content: center; flex-wrap: wrap; }
  .blue-nav { overflow-x: auto; gap: 22px; }
  .nav-actions { margin-left: 0; }
  .hero-slider { grid-template-columns: 1fr; padding: 34px 42px; }
  .software-boxes { display: none; }
  .brand-strip { padding-top: 28px; }
  .product-grid, .product-row { grid-template-columns: repeat(3, 1fr); }
  .feature-band, .support-section { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .category-products { grid-template-columns: repeat(3, 1fr); }
  .admin-sidebar {
    position: static;
    width: auto;
    min-height: auto;
  }
  .admin-sidebar nav {
    grid-template-columns: repeat(3, 1fr);
  }
  .admin-main {
    margin-left: 0;
    padding: 14px;
  }
  .admin-grid,
  .admin-quick {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main { padding: 12px 10px 0; }
  .brand-text { font-size: 25px; }
  .blue-nav { padding: 8px 10px; min-height: 56px; }
  .all-categories { flex: 0 0 auto; }
  .hero-slider { min-height: 230px; padding: 28px 32px; }
  .hero-copy h1 { font-size: 28px; }
  .brand-strip { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .filters, .more-link { margin-left: 0; }
  .product-grid, .product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-media { height: 136px; }
  .fake-product { width: 88px; height: 88px; font-size: 13px; }
  .product-body { padding: 12px; }
  .product-title { min-height: 54px; font-size: 13px; }
  .compact-list, .footer { grid-template-columns: 1fr; }
  .simple-top { flex-direction: column; align-items: stretch; padding: 14px; }
  .simple-nav { overflow-x: auto; white-space: nowrap; }
  .category-page { padding: 14px 10px 0; }
  .category-hero { padding: 24px; }
  .shop-toolbar { align-items: flex-start; flex-direction: column; }
  .category-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .auth-card { padding: 22px; }
  .account-grid { grid-template-columns: 1fr; }
  .admin-head { align-items: flex-start; flex-direction: column; }
  .admin-stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-top { align-items: flex-start; flex-direction: column; }
  .admin-sidebar nav { grid-template-columns: 1fr; }
  .inline-admin-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .product-card,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Admin polish override */
.admin-body {
  background:
    linear-gradient(180deg, rgba(241, 246, 255, .94), rgba(247, 249, 252, 1) 42%),
    radial-gradient(circle at 24% 0%, rgba(40, 99, 190, .10), transparent 34%);
  color: #172033;
}

.admin-sidebar {
  width: 270px;
  padding: 16px 14px;
  background: #0b1220;
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 18px 0 40px rgba(15, 23, 42, .12);
}

.admin-logo {
  min-height: 58px;
  padding: 8px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-logo span {
  border-radius: 12px;
  background: linear-gradient(135deg, #1e5aa8, #2c7cf6);
}

.admin-sidebar nav {
  gap: 4px;
  overflow: auto;
}

.admin-menu-group {
  border: 0;
}

.admin-menu-group summary {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  color: #6f82a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  list-style: none;
  text-transform: uppercase;
}

.admin-menu-group summary::-webkit-details-marker {
  display: none;
}

.admin-menu-group summary::after {
  content: "+";
  margin-left: auto;
  color: #7c8da7;
  font-size: 14px;
}

.admin-menu-group[open] summary::after {
  content: "-";
}

.admin-menu-group div {
  display: grid;
  gap: 4px;
  margin: 2px 0 8px;
}

.admin-sidebar nav a,
.admin-logout {
  min-height: 38px;
  border-radius: 10px;
  color: #aebbd0;
  font-size: 14px;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: rgba(44, 124, 246, .16);
  color: #fff;
}

.admin-sidebar nav a.active {
  box-shadow: inset 3px 0 0 #5aa2ff;
}

.admin-main {
  margin-left: 270px;
  padding: 24px;
}

.admin-top {
  min-height: 76px;
  border: 0;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.admin-top h1 {
  font-size: 28px;
}

.admin-top > div:last-child {
  min-width: 180px;
  padding: 10px 14px;
  border: 1px solid #e3eaf4;
  border-radius: 12px;
  background: #f8fbff;
}

.admin-hero {
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 14px;
  background: #0f1b2d;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 20px 50px rgba(15, 27, 45, .18);
}

.admin-hero h2 {
  margin: 6px 0 8px;
  font-size: 28px;
}

.admin-hero p {
  margin: 0;
  color: #c8d5e8;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.admin-stats div {
  min-height: 118px;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.admin-stats strong {
  display: block;
  margin: 8px 0 6px;
  color: #123f7c;
  font-size: 25px;
  line-height: 1.1;
}

.admin-stats span {
  color: #66758a;
  font-size: 12px;
  font-weight: 700;
}

.admin-card {
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 18px;
  margin-bottom: 18px;
}

.admin-quick {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-quick a {
  border-radius: 14px;
  border-color: #dfe7f2;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-quick a:hover {
  transform: translateY(-2px);
  border-color: #b8cff0;
  box-shadow: 0 18px 38px rgba(30, 90, 168, .12);
}

.admin-list-row {
  min-height: 46px;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-list-row span {
  color: #334155;
  font-weight: 700;
}

.admin-list-row b {
  color: #1e5aa8;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .admin-stats,
  .admin-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-sidebar {
    width: auto;
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .admin-stats,
  .admin-quick {
    grid-template-columns: 1fr;
  }
}
