/* ============================================================
 * melbet app login - visual stylesheet
 * Class prefix:  wd7f4-
 * Palette: #2E8B57 | #DDA0DD | #008000 | #DDA0DD | #1B263B
 * Mobile-first canvas 320-430px; centered phone canvas on wider screens
 * ============================================================ */

:root {
  --wd7f4-green: #2E8B57;
  --wd7f4-green-deep: #008000;
  --wd7f4-plum: #DDA0DD;
  --wd7f4-ink: #1B263B;
  --wd7f4-ink-2: #22324a;
  --wd7f4-ink-3: #2c3e57;
  --wd7f4-gold: #f5c451;
  --wd7f4-bg: #0f1828;
  --wd7f4-bg-2: #142037;
  --wd7f4-card: #18243b;
  --wd7f4-card-2: #1f2e49;
  --wd7f4-line: rgba(221, 160, 221, 0.18);
  --wd7f4-text: #f4f6fb;
  --wd7f4-muted: #aeb9cf;
  --wd7f4-muted-2: #8493b0;
  --wd7f4-white: #ffffff;
  --wd7f4-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  --wd7f4-radius: 14px;
  --wd7f4-radius-sm: 9px;
  --wd7f4-maxw: 430px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -200px, #1b2c4a 0%, var(--wd7f4-bg) 55%, #0a1120 100%);
  color: var(--wd7f4-text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--wd7f4-plum); text-decoration: none; }
a:hover { color: #fff; }

/* Centered phone canvas for wider screens */
.wd7f4-shell {
  width: 100%;
  max-width: var(--wd7f4-maxw);
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #0f1828 0%, #0c1422 100%);
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.45);
  padding-bottom: 86px; /* bottom nav clearance */
}

/* ===================== HEADER (centered identity shell) ===================== */
.wd7f4-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(15,24,40,0.98), rgba(15,24,40,0.92));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wd7f4-line);
}
.wd7f4-header-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}
.wd7f4-header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-direction: column;
  text-align: center;
  line-height: 1.1;
}
.wd7f4-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(221, 160, 221, 0.45);
  box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.35);
}
.wd7f4-brand-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--wd7f4-white);
  letter-spacing: 0.2px;
}
.wd7f4-brand-name b { color: var(--wd7f4-plum); }
.wd7f4-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(221, 160, 221, 0.25);
  background: rgba(255,255,255,0.04);
  color: var(--wd7f4-text);
  cursor: pointer;
  padding: 0;
}
.wd7f4-icon-btn:hover { background: rgba(221,160,221,0.12); }
.wd7f4-icon-btn svg { width: 20px; height: 20px; display: block; }

.wd7f4-auth { display: flex; align-items: center; gap: 6px; }
.wd7f4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
}
.wd7f4-btn:active { transform: translateY(1px); }
.wd7f4-btn-login {
  background: transparent;
  color: var(--wd7f4-text);
  border: 1px solid rgba(221,160,221,0.45);
}
.wd7f4-btn-login:hover { background: rgba(221,160,221,0.12); }
.wd7f4-btn-register {
  background: linear-gradient(135deg, var(--wd7f4-green) 0%, var(--wd7f4-green-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(46,139,87,0.35);
}
.wd7f4-btn-register:hover { box-shadow: 0 8px 22px rgba(46,139,87,0.5); }
.wd7f4-btn-plum {
  background: linear-gradient(135deg, #DDA0DD 0%, #c783c7 100%);
  color: #2a1330;
}

/* ===================== FULL-HEIGHT MENU PANEL ===================== */
.wd7f4-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.65);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.wd7f4-overlay-show { opacity: 1; pointer-events: auto; }
.wd7f4-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86%, 360px);
  background: linear-gradient(180deg, #142037 0%, #0e1828 100%);
  z-index: 100;
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.wd7f4-menu-open { transform: translateX(0); }
.wd7f4-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--wd7f4-line);
}
.wd7f4-menu-head .wd7f4-brand-name { font-size: 14px; }
.wd7f4-menu-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(221,160,221,0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.wd7f4-menu-body { padding: 10px 12px 24px; overflow-y: auto; flex: 1; }
.wd7f4-menu-title {
  font-size: 11px;
  color: var(--wd7f4-muted-2);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin: 14px 8px 6px;
}
.wd7f4-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 11px;
  color: var(--wd7f4-text);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
}
.wd7f4-menu-link:hover {
  background: rgba(221,160,221,0.08);
  border-color: rgba(221,160,221,0.18);
}
.wd7f4-menu-link svg { width: 20px; height: 20px; color: var(--wd7f4-plum); flex: 0 0 20px; }
.wd7f4-menu-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 8px 6px;
}
.wd7f4-menu-cta .wd7f4-btn { width: 100%; padding: 11px 0; }

body.wd7f4-noscroll { overflow: hidden; }

/* ===================== HERO CAROUSEL ===================== */
.wd7f4-hero {
  margin: 12px 12px 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--wd7f4-shadow);
  border: 1px solid var(--wd7f4-line);
}
.wd7f4-hero-viewport { overflow: hidden; }
.wd7f4-hero-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.2, 0.65, 0.2, 1);
  will-change: transform;
}
.wd7f4-hero-slide {
  flex: 0 0 100%;
  position: relative;
  display: block;
  cursor: pointer;
}
.wd7f4-hero-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.wd7f4-hero-cap {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  background: linear-gradient(180deg, rgba(15,24,40,0) 0%, rgba(15,24,40,0.85) 100%);
  color: #fff;
  padding: 24px 12px 8px;
  border-radius: 10px;
}
.wd7f4-hero-cap span {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--wd7f4-plum);
  font-weight: 700;
}
.wd7f4-hero-cap strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  margin-top: 2px;
}
.wd7f4-hero-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.wd7f4-hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
}
.wd7f4-hero-dot.wd7f4-dot-active {
  background: var(--wd7f4-plum);
  width: 18px;
  border-radius: 4px;
}

/* ===================== CATEGORY PILLS ===================== */
.wd7f4-catbar {
  position: sticky;
  top: 56px;
  z-index: 40;
  background: rgba(15,24,40,0.92);
  backdrop-filter: blur(8px);
  margin: 12px 0 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--wd7f4-line);
}
.wd7f4-catlist {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}
.wd7f4-catlist::-webkit-scrollbar { display: none; }
.wd7f4-cat-link {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(221,160,221,0.18);
  color: var(--wd7f4-muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.wd7f4-cat-link:hover { color: #fff; }
.wd7f4-cat-active {
  background: linear-gradient(135deg, var(--wd7f4-green), var(--wd7f4-green-deep));
  color: #fff !important;
  border-color: transparent;
}

/* ===================== SECTIONS ===================== */
.wd7f4-section {
  padding: 18px 12px 6px;
}
.wd7f4-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.wd7f4-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wd7f4-section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--wd7f4-plum), var(--wd7f4-green));
}
.wd7f4-section-more {
  font-size: 12px;
  color: var(--wd7f4-plum);
  font-weight: 600;
}
.wd7f4-section-sub {
  font-size: 12.5px;
  color: var(--wd7f4-muted);
  margin: -6px 0 12px;
}

/* ===================== GAME GRID ===================== */
.wd7f4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 360px) {
  .wd7f4-grid { gap: 9px; }
}
@media (min-width: 400px) {
  .wd7f4-grid { grid-template-columns: repeat(5, 1fr); }
}
.wd7f4-game {
  display: block;
  background: var(--wd7f4-card);
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--wd7f4-line);
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wd7f4-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  border-color: rgba(221,160,221,0.45);
}
.wd7f4-game-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0d1626;
}
.wd7f4-game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wd7f4-game-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  background: linear-gradient(135deg, var(--wd7f4-green), var(--wd7f4-green-deep));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.wd7f4-game-tag.hot {
  background: linear-gradient(135deg, #e85a5a, #b53737);
}
.wd7f4-game-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wd7f4-text);
  padding: 6px 6px 7px;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== INFO CARDS ===================== */
.wd7f4-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wd7f4-info-card {
  background: linear-gradient(180deg, var(--wd7f4-card) 0%, var(--wd7f4-card-2) 100%);
  border: 1px solid var(--wd7f4-line);
  border-radius: var(--wd7f4-radius);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.wd7f4-info-card::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(221,160,221,0.18), transparent 70%);
  border-radius: 50%;
}
.wd7f4-info-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--wd7f4-plum);
}
.wd7f4-info-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--wd7f4-muted);
  line-height: 1.55;
}
.wd7f4-info-card .wd7f4-mini-btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--wd7f4-green), var(--wd7f4-green-deep));
  padding: 6px 12px;
  border-radius: 999px;
}

/* ===================== FEATURES ===================== */
.wd7f4-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wd7f4-feature {
  background: var(--wd7f4-card);
  border: 1px solid var(--wd7f4-line);
  border-radius: var(--wd7f4-radius);
  padding: 14px 12px;
  text-align: center;
}
.wd7f4-feature-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(46,139,87,0.25), rgba(221,160,221,0.25));
  color: var(--wd7f4-plum);
  margin-bottom: 8px;
}
.wd7f4-feature-ico svg { width: 22px; height: 22px; }
.wd7f4-feature h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  color: #fff;
}
.wd7f4-feature p {
  margin: 0;
  font-size: 12px;
  color: var(--wd7f4-muted);
  line-height: 1.5;
}

/* ===================== STEPS ===================== */
.wd7f4-steps {
  display: grid;
  gap: 10px;
}
.wd7f4-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--wd7f4-card);
  border: 1px solid var(--wd7f4-line);
  border-radius: var(--wd7f4-radius);
  padding: 12px 14px;
}
.wd7f4-step-num {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--wd7f4-green), var(--wd7f4-green-deep));
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wd7f4-step h4 { margin: 0 0 4px; font-size: 14px; color: #fff; }
.wd7f4-step p { margin: 0; font-size: 12.5px; color: var(--wd7f4-muted); }

/* ===================== TESTIMONIALS ===================== */
.wd7f4-reviews {
  display: grid;
  gap: 10px;
}
.wd7f4-review {
  background: var(--wd7f4-card);
  border: 1px solid var(--wd7f4-line);
  border-left: 3px solid var(--wd7f4-plum);
  border-radius: var(--wd7f4-radius);
  padding: 12px 14px;
}
.wd7f4-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.wd7f4-review-name { font-size: 13px; font-weight: 700; color: #fff; }
.wd7f4-stars { color: var(--wd7f4-gold); font-size: 12px; letter-spacing: 1px; }
.wd7f4-review p { margin: 0; font-size: 12.5px; color: var(--wd7f4-muted); }

/* ===================== TRICKS LIST ===================== */
.wd7f4-tricks {
  background: var(--wd7f4-card);
  border: 1px solid var(--wd7f4-line);
  border-radius: var(--wd7f4-radius);
  padding: 8px 14px;
}
.wd7f4-tricks li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px dashed rgba(221,160,221,0.16);
  font-size: 13px;
  color: var(--wd7f4-muted);
  list-style: none;
}
.wd7f4-tricks li:last-child { border-bottom: none; }
.wd7f4-tricks li::before {
  content: "◆";
  position: absolute;
  left: 0; top: 10px;
  color: var(--wd7f4-plum);
  font-size: 10px;
}

/* ===================== APP DOWNLOAD ===================== */
.wd7f4-app {
  background: linear-gradient(135deg, rgba(46,139,87,0.18), rgba(221,160,221,0.16));
  border: 1px solid var(--wd7f4-line);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}
.wd7f4-app h3 { margin: 0 0 6px; font-size: 16px; color: #fff; }
.wd7f4-app p { margin: 0 0 14px; font-size: 12.5px; color: var(--wd7f4-muted); }
.wd7f4-app-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wd7f4-app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(221,160,221,0.3);
}
.wd7f4-app-btn svg { width: 18px; height: 18px; }
.wd7f4-app-android {
  background: linear-gradient(135deg, var(--wd7f4-green), var(--wd7f4-green-deep));
  color: #fff;
}
.wd7f4-app-ios {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* ===================== SEO CONTENT ===================== */
.wd7f4-seo {
  padding: 16px 14px 8px;
}
.wd7f4-seo h2 {
  font-size: 17px;
  margin: 18px 0 8px;
  color: #fff;
  font-weight: 800;
}
.wd7f4-seo h2:first-child { margin-top: 0; }
.wd7f4-seo h3 {
  font-size: 14.5px;
  margin: 14px 0 6px;
  color: var(--wd7f4-plum);
  font-weight: 700;
}
.wd7f4-seo p {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--wd7f4-muted);
  line-height: 1.75;
}
.wd7f4-seo a {
  color: var(--wd7f4-plum);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wd7f4-seo ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.wd7f4-seo ul li {
  font-size: 13px;
  color: var(--wd7f4-muted);
  margin-bottom: 4px;
  line-height: 1.65;
}
.wd7f4-seo-callout {
  background: rgba(221,160,221,0.08);
  border-left: 3px solid var(--wd7f4-plum);
  padding: 10px 12px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 12.5px;
  color: var(--wd7f4-text);
}

/* ===================== EXPANDED FOOTER ===================== */
.wd7f4-ext-footer {
  margin: 16px 12px 6px;
  background: var(--wd7f4-card);
  border: 1px solid var(--wd7f4-line);
  border-radius: 16px;
  padding: 14px;
}
.wd7f4-ext-footer h4 {
  margin: 12px 0 8px;
  font-size: 12px;
  color: var(--wd7f4-muted-2);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.wd7f4-ext-footer h4:first-child { margin-top: 0; }
.wd7f4-ext-promos {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}
.wd7f4-ext-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 2px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(221,160,221,0.16);
  color: var(--wd7f4-text);
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  gap: 4px;
  cursor: pointer;
  line-height: 1.1;
}
.wd7f4-ext-promo svg { width: 16px; height: 16px; color: var(--wd7f4-plum); }
.wd7f4-ext-promo:hover { background: rgba(221,160,221,0.12); }

.wd7f4-ext-brand {
  font-size: 12.5px;
  color: var(--wd7f4-muted);
  line-height: 1.65;
  margin: 0 0 4px;
}
.wd7f4-ext-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.wd7f4-ext-dir a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(221,160,221,0.14);
  color: var(--wd7f4-text);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd7f4-ext-dir a:hover { background: rgba(221,160,221,0.1); color: #fff; }
.wd7f4-ext-disclaimer {
  font-size: 11px;
  color: var(--wd7f4-muted-2);
  line-height: 1.55;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(221,160,221,0.16);
}

/* ===================== SITE FOOTER ===================== */
.wd7f4-footer {
  padding: 16px 14px 24px;
  text-align: center;
  border-top: 1px solid var(--wd7f4-line);
  margin-top: 10px;
}
.wd7f4-footer-logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  margin: 0 auto 8px;
  border: 1px solid rgba(221,160,221,0.4);
}
.wd7f4-footer-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.wd7f4-footer-copy {
  font-size: 11.5px;
  color: var(--wd7f4-muted-2);
  line-height: 1.55;
}
.wd7f4-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin: 10px 0;
  font-size: 11.5px;
}
.wd7f4-footer-links a { color: var(--wd7f4-muted); }
.wd7f4-footer-links a:hover { color: var(--wd7f4-plum); }

/* ===================== BOTTOM NAV (compact icon bar) ===================== */
.wd7f4-bottom-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--wd7f4-maxw);
  z-index: 80;
  background: linear-gradient(180deg, rgba(20,32,55,0.96), rgba(12,20,34,0.98));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--wd7f4-line);
  box-shadow: 0 -8px 22px rgba(0,0,0,0.35);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px 8px;
}
.wd7f4-bar-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  color: var(--wd7f4-muted);
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  min-height: 50px;
}
.wd7f4-bar-icon {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  position: relative;
}
.wd7f4-bar-icon svg { width: 19px; height: 19px; display: block; }
/* dual-color angular icons */
.wd7f4-bar-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(46,139,87,0.25) 50%, rgba(221,160,221,0.25) 50%);
  transform: skewX(-12deg);
}
.wd7f4-bar-icon svg { position: relative; z-index: 1; color: #fff; }
.wd7f4-bar-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.18s ease, max-height 0.18s ease;
}
.wd7f4-bar-hover .wd7f4-bar-label,
.wd7f4-bar-active .wd7f4-bar-label {
  opacity: 1;
  max-height: 14px;
}
/* active: contrast inversion */
.wd7f4-bar-active {
  color: #fff;
}
.wd7f4-bar-active .wd7f4-bar-icon::before {
  background: linear-gradient(135deg, var(--wd7f4-green) 50%, var(--wd7f4-plum) 50%);
}
.wd7f4-bar-active .wd7f4-bar-label { color: var(--wd7f4-plum); }
.wd7f4-bar-item:hover { color: #fff; }

/* ===================== BACK TO TOP ===================== */
.wd7f4-back-top {
  position: fixed;
  right: 14px;
  bottom: 96px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wd7f4-green), var(--wd7f4-green-deep));
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 70;
  opacity: 0.95;
}
.wd7f4-back-top svg { width: 20px; height: 20px; }

/* ===================== UTIL ===================== */
.wd7f4-hide { display: none !important; }
.wd7f4-text-center { text-align: center; }

@media (min-width: 410px) {
  .wd7f4-grid { grid-template-columns: repeat(5, 1fr); }
}
