:root {
  --ink: #18203a;
  --muted: #6d7387;
  --purple: #5b46bd;
  --pink: #d94eaa;
  --glass: rgba(255, 255, 255, 0.62);
  --line: rgba(83, 69, 150, 0.12);
  --surface: rgba(255, 255, 255, 0.66);
  --surface-solid: #ffffff;
  --page-start: #f7f8ff;
  --page-middle: #f1efff;
  --page-end: #fff5fb;
}

:root[data-theme="dark"] {
  --ink: #edf0ff;
  --muted: #b5bad1;
  --purple: #b0a2ff;
  --pink: #f58bc7;
  --glass: rgba(30, 32, 56, 0.78);
  --line: rgba(190, 183, 255, 0.14);
  --surface: rgba(30, 32, 56, 0.86);
  --surface-solid: #24263f;
  --page-start: #171827;
  --page-middle: #1d1b31;
  --page-end: #241929;
  color-scheme: dark;
}

.theme-changing *,
.theme-changing *::before,
.theme-changing *::after {
  transition:
    color 380ms ease,
    background-color 380ms ease,
    border-color 380ms ease,
    box-shadow 380ms ease !important;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: linear-gradient(
    135deg,
    var(--page-start) 0%,
    var(--page-middle) 48%,
    var(--page-end) 100%
  );
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
img,
svg,
canvas,
video {
  max-width: 100%;
}
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}
.orb-one {
  width: 420px;
  height: 420px;
  background: rgba(156, 145, 255, 0.22);
  right: -120px;
  top: -150px;
}
.orb-two {
  width: 360px;
  height: 360px;
  background: rgba(255, 142, 196, 0.16);
  left: -160px;
  bottom: -100px;
}
.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(48, 38, 104, 0.1);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  max-width: 1180px;
  margin: auto;
  padding: 22px 24px 0;
}
.navbar {
  height: 78px;
  border-radius: 24px;
  padding: 10px 18px 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fade-in 0.7s ease-out both;
}
.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: white;
  font: 800 24px "Manrope";
  background: linear-gradient(135deg, #7a65d9, #dc5ab1);
  box-shadow: 0 8px 20px rgba(111, 82, 190, 0.25);
  animation: pulse-ring 3s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.brand-mark:hover {
  transform: rotate(-8deg) scale(1.06);
}
.brand > span:last-child,
.footer-brand > div {
  display: flex;
  flex-direction: column;
}
.brand-admin {
  display: inline-grid;
  text-decoration: none;
}
.brand-admin:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 15px;
}
.brand strong {
  font: 800 15px "Manrope";
}
.brand small {
  font-size: 12px;
  color: var(--purple);
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  gap: 34px;
}
.nav-links a {
  text-decoration: none;
  color: #777d90;
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  transform: translateY(-2px);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  color: var(--ink);
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.icon-button:hover {
  transform: translateY(-2px);
}
.admin-link {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.hero {
  max-width: 1180px;
  margin: auto;
  min-height: 610px;
  padding: 55px 24px 30px;
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  animation: slide-right 0.85s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.eyebrow,
.kicker {
  color: #777093;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-size: 12px;
  font-weight: 800;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow span {
  width: 25px;
  height: 2px;
  background: var(--pink);
}
.hero h1 {
  font: 800 clamp(58px, 7vw, 92px)/0.94 "Manrope";
  letter-spacing: -5px;
  margin: 25px 0 22px;
}
.hero h1 em {
  display: block;
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, #5545a8, #d653ad);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-copy > p {
  max-width: 480px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin: 30px 0;
}
.button {
  height: 52px;
  padding: 0 22px;
  border-radius: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 700;
}
.primary {
  background: linear-gradient(135deg, #6550c5, #c84dab);
  color: white;
  box-shadow: 0 14px 28px rgba(156, 78, 174, 0.22);
}
.ghost {
  border: 1px solid rgba(66, 55, 125, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}
.trust-row {
  display: flex;
  gap: 32px;
  margin-top: 34px;
}
.trust-row div {
  display: flex;
  flex-direction: column;
}
.trust-row strong {
  font: 800 16px "Manrope";
}
.trust-row span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.hero-visual {
  position: relative;
  height: 540px;
  animation: fade-up 1s 0.12s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(125, 105, 220, 0.19),
    rgba(255, 134, 195, 0.19)
  );
  filter: blur(2px);
  right: 35px;
  top: 35px;
}
.flyer {
  position: absolute;
  width: 520px;
  height: 520px;
  object-fit: contain;
  object-position: center;
  right: -10px;
  top: -12px;
  filter: drop-shadow(0 22px 26px rgba(54, 48, 104, 0.14));
  border-radius: 30px;
  animation: float 5s ease-in-out infinite;
}
.floating-card {
  position: absolute;
  right: 5px;
  bottom: 45px;
  border-radius: 18px;
  padding: 12px 16px 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation:
    fade-up 0.8s 0.55s ease-out both,
    float 4s 1.35s ease-in-out infinite;
}
.floating-card div {
  display: flex;
  flex-direction: column;
}
.floating-card small {
  color: var(--muted);
  font-size: 10px;
}
.floating-card strong {
  font-size: 12px;
}
.mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #efeaff;
  color: var(--purple);
  display: grid;
  place-items: center;
}
.categories {
  max-width: 1132px;
  margin: 0 auto 70px;
  height: 85px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px;
  animation: fade-up 0.75s 0.2s ease-out both;
}
.category {
  height: 68px;
  min-width: 155px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #73798c;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
}
.category span {
  font-size: 18px;
}
.category.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(72, 58, 135, 0.1);
}
.products-section {
  max-width: 1132px;
  margin: auto;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}
.section-heading h2 {
  font: 800 38px "Manrope";
  letter-spacing: -1.5px;
  margin: 7px 0;
}
.section-heading > a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 700;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 15px 38px rgba(59, 48, 110, 0.08);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.75, 0.25, 1),
    box-shadow 0.35s ease;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 42px rgba(59, 48, 110, 0.14);
}
.product-card img {
  transition:
    transform 0.55s cubic-bezier(0.2, 0.75, 0.25, 1),
    filter 0.35s ease;
}
.product-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.08);
}
.product-image {
  height: 220px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #edeafa, #faf5fc);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  padding: 16px 6px 8px;
}
.product-info small {
  color: var(--purple);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1px;
}
.product-info h3 {
  font: 700 17px "Manrope";
  margin: 7px 0;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price-row strong {
  font: 800 16px "Manrope";
}
.add-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: var(--ink);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.add-button:hover {
  transform: rotate(90deg) scale(1.08);
  background: linear-gradient(135deg, var(--purple), var(--pink));
}
.info-strip {
  max-width: 1132px;
  margin: 90px auto 60px;
  border-radius: 24px;
  background: linear-gradient(135deg, #382e75, #5f3d89);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: white;
  padding: 30px;
}
.info-strip div {
  padding: 4px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}
.info-strip div:hover {
  transform: translateY(-5px);
}
.info-strip div:last-child {
  border: 0;
}
.info-strip span {
  color: #e0a4d3;
}
.info-strip h3 {
  margin: 9px 0 5px;
  font: 700 16px "Manrope";
}
.info-strip p {
  margin: 0;
  color: #cbc6df;
  font-size: 13px;
}
footer {
  width: calc(100% - 48px);
  max-width: 1132px;
  margin: 70px auto 0;
  border: 1px solid rgba(83, 69, 150, 0.1);
  border-radius: 28px 28px 0 0;
  padding: 46px 48px 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 -18px 50px rgba(48, 38, 104, 0.06);
}
.footer-main {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.7fr) minmax(120px, 0.7fr) minmax(210px, 1fr)
    minmax(150px, 0.8fr);
  gap: 38px;
  align-items: start;
}
.footer-brand-block > p {
  max-width: 330px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.footer-main h3 {
  margin: 4px 0 16px;
  font: 800 13px "Manrope";
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.footer-links,
.footer-contact,
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.footer-links a,
.footer-contact a,
.footer-contact span,
.footer-social-links a {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.footer-links a:hover,
.footer-contact a:hover,
.footer-social-links a:hover {
  color: var(--purple);
  transform: translateX(3px);
}
.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-social-links a {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}
.footer-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 0.22s ease,
    color 0.22s ease;
}
.footer-contact a:hover .footer-icon,
.footer-contact span:hover .footer-icon {
  transform: scale(1.08);
  color: var(--purple);
}
.footer-social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.22s ease;
}
.footer-social-links a:hover {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(101, 81, 197, 0.18);
}
.footer-social-links a:hover .footer-social-icon {
  transform: scale(1.08);
}
footer .copyright {
  width: 100%;
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #979bad;
  font-size: 11px;
  text-align: center;
}
.copyright-text,
.copyright-text:link,
.copyright-text:visited,
.copyright-text:hover,
.copyright-text:active,
.copyright-text:focus {
  color: inherit;
  text-decoration: none;
}
.footer-bottom {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-bottom .copyright {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}
.footer-theme {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.footer-theme .theme-picker {
  display: flex;
}
.footer-theme-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.footer-theme .theme-menu {
  right: 0;
  top: auto;
  bottom: calc(100% + 10px);
}

@media (max-width: 900px) {
  footer {
    width: calc(100% - 48px);
    margin: 50px auto 0;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero h1 em {
    display: inline;
  }
  .hero-visual {
    height: 470px;
  }
  .flyer {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    animation-name: float-centered-mobile;
  }
  .floating-card {
    right: 10%;
  }
  .categories {
    margin-top: 50px;
    width: calc(100% - 24px);
    max-width: 550px;
    height: auto;
    min-height: 76px;
    overflow: hidden;
    justify-content: space-between;
    padding: 8px;
  }
  .category {
    min-width: 0;
    flex: 1 1 0;
    height: 60px;
    padding: 6px 4px;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    text-align: center;
  }
  .category span {
    font-size: 16px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-strip {
    margin-left: 24px;
    margin-right: 24px;
  }
  footer {
    margin: 0 24px;
  }
}
@media (max-width: 560px) {
  .nav-wrap {
    padding: 12px 12px 0;
  }
  .navbar {
    height: 68px;
    border-radius: 18px;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
  }
  .admin-link {
    display: none;
  }
  .hero {
    padding: 50px 18px 10px;
  }
  .hero h1 {
    font-size: 54px;
    letter-spacing: -3px;
  }
  .hero-copy > p {
    font-size: 16px;
  }
  .hero-visual {
    height: 390px;
  }
  .flyer {
    left: 50%;
    right: auto;
    top: 0;
    width: min(380px, calc(100vw - 24px));
    height: auto;
    aspect-ratio: 1;
    transform: translateX(-50%);
    animation-name: float-centered-mobile;
  }
  .floating-card {
    bottom: 25px;
    right: 2%;
  }
  .categories {
    margin: 10px 12px 55px;
    width: calc(100% - 24px);
    max-width: 550px;
    height: auto;
    min-height: 76px;
    overflow: hidden;
    justify-content: space-between;
    padding: 8px;
  }
  .category {
    height: 56px;
    min-width: 0;
    flex: 1 1 0;
    padding: 5px 2px;
    font-size: 10px;
    line-height: 1.15;
  }
  .category span {
    font-size: 15px;
  }
  .products-section {
    padding: 0 12px;
  }
  .section-heading h2 {
    font-size: 31px;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .product-card {
    border-radius: 18px;
    padding: 8px;
  }
  .product-image {
    height: 155px;
  }
  .product-info h3 {
    font-size: 14px;
  }
  .info-strip {
    grid-template-columns: 1fr;
    margin: 60px 12px 35px;
  }
  .info-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px;
  }
  .footer-contact {
    flex-direction: column;
  }
  footer {
    margin: 0 16px;
  }
  .trust-row {
    gap: 18px;
  }
} /* Search and mobile admin */
.mobile-admin {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  place-items: center;
  font-size: 18px;
}
.search-panel {
  display: none;
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 0 24px;
}
.search-panel.open {
  display: block;
  animation: fade-up 0.35s ease-out;
}
.search-box {
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 35px rgba(48, 38, 104, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}
.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: 600 16px "DM Sans";
  color: var(--ink);
}
.search-box button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #efedf8;
  font-size: 22px;
  cursor: pointer;
}
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 35px;
  color: var(--muted);
}
/* Loan and installment pricing */
.loans-section {
  max-width: 1132px;
  margin: 70px auto;
}
.loan-tabs {
  display: flex;
  gap: 10px;
  margin: -10px 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.loan-tabs::-webkit-scrollbar {
  display: none;
}
.loan-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font: 700 14px "DM Sans";
  cursor: pointer;
  transition: 0.25s ease;
}
.loan-tab.active {
  border-color: transparent;
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 24px rgba(24, 32, 58, 0.16);
}
.loan-pricing {
  animation: fade-up 0.45s ease-out;
}
.loan-table-wrap {
  border: 1px solid rgba(83, 69, 150, 0.12);
  border-radius: 22px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(59, 48, 110, 0.08);
}
.loan-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}
.loan-table th {
  padding: 18px 20px;
  background: var(--ink);
  color: white;
  font: 800 13px "Manrope";
}
.loan-table th:first-child {
  border-radius: 20px 0 0 0;
}
.loan-table th:last-child {
  border-radius: 0 20px 0 0;
}
.loan-table td {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(83, 69, 150, 0.1);
  font-size: 14px;
}
.loan-table tbody tr:last-child td {
  border-bottom: 0;
}
.loan-table tbody tr:nth-child(even) {
  background: rgba(91, 70, 189, 0.035);
}
.loan-table tbody tr:hover {
  background: rgba(91, 70, 189, 0.07);
}
.loan-table td strong {
  color: var(--purple);
}
.loan-table td:last-child,
.loan-table th:last-child {
  text-align: right;
}
.loan-note {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 768px) {
  .loans-section {
    margin: 55px 24px;
  }
  .loan-table {
    min-width: 560px;
  }
  .loan-table th,
  .loan-table td {
    padding: 14px 16px;
  }
}
@media (max-width: 560px) {
  .loans-section {
    margin: 45px 12px;
  }
  .loans-section .section-heading h2 {
    font-size: 29px;
  }
  .loan-tabs {
    margin-top: 0;
  }
  .loan-tab {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 13px;
  }
  .loan-table-wrap {
    border-radius: 16px;
  }
  .loan-table {
    min-width: 520px;
  }
  .loan-table th,
  .loan-table td {
    padding: 12px 14px;
  }
  footer {
    width: calc(100% - 24px);
    margin: 40px auto 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Main-page entrance animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slide-right {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}
@keyframes float-centered-mobile {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) translateY(-10px) rotate(1deg);
  }
}
@keyframes pulse-ring {
  0%,
  100% {
    box-shadow: 0 8px 20px rgba(111, 82, 190, 0.25);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(111, 82, 190, 0.42),
      0 0 0 8px rgba(111, 82, 190, 0.07);
  }
}

/* Responsive viewport safeguards */
html,
body {
  width: 100%;
  max-width: 100%;
}
img,
svg,
canvas,
video {
  max-width: 100%;
}

@media (max-width: 560px) {
  .flyer {
    width: min(380px, calc(100vw - 24px));
    height: auto;
  }
  .hero-glow {
    width: min(420px, calc(100vw - 24px));
    height: min(420px, calc(100vw - 24px));
  }
  .hero-visual {
    width: 100%;
    max-width: 100%;
  }
  .hero-actions,
  .button,
  .floating-card,
  .categories,
  .product-grid,
  .info-strip,
  .loans-section,
  footer {
    max-width: 100%;
  }
}

body {
  background: linear-gradient(
    135deg,
    var(--page-start) 0%,
    var(--page-middle) 48%,
    var(--page-end) 100%
  );
}

.theme-picker {
  position: relative;
}
.theme-toggler svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 150px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: 0 16px 40px rgba(20, 18, 48, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  z-index: 30;
}
.theme-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.theme-menu button {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  font: 700 13px "DM Sans";
  cursor: pointer;
}
.theme-menu button span {
  width: 20px;
  text-align: center;
  color: var(--purple);
}
.theme-menu button:hover,
.theme-menu button.active {
  background: var(--glass);
  color: var(--purple);
}

:root[data-theme="dark"] .glass,
:root[data-theme="dark"] .navbar,
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .categories,
:root[data-theme="dark"] footer,
:root[data-theme="dark"] .search-box,
:root[data-theme="dark"] .loan-table-wrap {
  background: var(--surface);
  border-color: var(--line);
}
:root[data-theme="dark"] .product-image {
  background: linear-gradient(145deg, #292b48, #32243a);
}
:root[data-theme="dark"] .category.active,
:root[data-theme="dark"] .category.active span {
  color: #000000;
}
:root[data-theme="dark"] .loan-table th {
  background: linear-gradient(145deg, #292b48, #32243a);
  color: #dbd9d9;
}
:root[data-theme="dark"] .loan-tab {
  background: #292b48;
  color: #f4f6ff;
  border-color: rgba(190, 183, 255, 0.18);
}
:root[data-theme="dark"] .loan-tab:hover {
  background: #343759;
  color: #ffffff;
}
:root[data-theme="dark"] .loan-tab.active {
  background: #b0a2ff;
  color: #151729;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(176, 162, 255, 0.22);
}

@media (max-width: 560px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-bottom .copyright {
    text-align: center;
  }
  .footer-theme {
    justify-content: center;
  }
}
