:root {
  --magic-bg: #05040a;
  --magic-bg-2: #0d0718;
  --magic-panel: rgba(7, 7, 14, 0.84);
  --magic-panel-strong: rgba(8, 7, 15, 0.94);
  --magic-border: rgba(156, 95, 255, 0.22);
  --magic-border-strong: rgba(188, 123, 255, 0.38);
  --magic-text: #ffffff;
  --magic-text-soft: #d9d0f2;
  --magic-text-dim: #9d92ba;
  --magic-purple: #9f5cff;
  --magic-purple-2: #7c3aed;
  --magic-pink: #ec4dff;
  --magic-cyan: #5fe7ff;
  --magic-shadow: 0 0 24px rgba(124, 58, 237, 0.25);
  --magic-shadow-strong: 0 0 42px rgba(168, 85, 247, 0.34);
  --magic-radius: 18px;
  --magic-radius-sm: 12px;
  --magic-max-width: 1320px;
  --magic-nav-width: 1220px;
}

/* ===== BASE ===== */

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--magic-text);
  font-family: "Outfit", sans-serif;
  background-color: #05040a;
  background-image:
    linear-gradient(rgba(8, 5, 18, 0.72), rgba(5, 4, 10, 0.88)),
    url("/template-assets/graffiti-bg.jpg?updated=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* texture / neon overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(170, 95, 255, 0.22), transparent 28%),
    radial-gradient(circle at 14% 30%, rgba(90, 225, 255, 0.08), transparent 18%),
    radial-gradient(circle at 88% 18%, rgba(236, 77, 255, 0.10), transparent 20%),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    auto,
    20px 20px,
    20px 20px;
  mix-blend-mode: screen;
  opacity: 0.85;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 4, 10, 0.28), rgba(5, 4, 10, 0.55));
  z-index: 0;
}

a {
  color: var(--magic-text);
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

.site,
.site-content,
.site-footer,
.site-header,
.store-home,
.store-category,
.store-package {
  position: relative;
  z-index: 2;
}

/* ===== TITLE / LOGO ===== */

.site-title,
.site-title a,
h1.site-title,
.store-name,
.magic-site-title {
  font-family: "Bungee", cursive;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-title,
h1.site-title,
.magic-site-title,
.site-header .site-title {
  color: #ffffff;
  text-shadow:
    0 0 8px rgba(255,255,255,0.35),
    0 0 20px rgba(168, 85, 247, 0.50),
    0 0 45px rgba(168, 85, 247, 0.35);
}

.site-title img,
.magic-nav-logo,
.magic-home-logo {
  max-height: 72px;
  width: auto;
  filter:
    drop-shadow(0 0 10px rgba(168, 85, 247, 0.35))
    drop-shadow(0 0 22px rgba(168, 85, 247, 0.22));
}

/* ===== LAYOUT ===== */

.site-content,
.store-home,
.store-category,
.store-package,
.site-footer-inner,
.site-header-inner {
  max-width: var(--magic-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ===== NAVIGATION ===== */

.magic-navigation,
.site-navigation {
  max-width: var(--magic-nav-width);
  margin: 24px auto 42px;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 7, 15, 0.92), rgba(5, 5, 10, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px rgba(90, 50, 180, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.26),
    0 0 28px rgba(124, 58, 237, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.magic-menu,
.site-navigation .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 18px;
  list-style: none;
  margin: 0;
}

.magic-menu-item,
.site-navigation .menu-item {
  position: relative;
}

.magic-menu-row {
  display: flex;
  align-items: center;
}

.magic-menu-link,
.site-navigation .menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--magic-text-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.22s ease;
}

.magic-menu-link:hover,
.site-navigation .menu-link:hover {
  color: #ffffff;
  background: rgba(168, 85, 247, 0.10);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.20);
}

.magic-menu-link.link-active,
.site-navigation .menu-link.link-active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(167, 85, 247, 0.24), rgba(124, 58, 237, 0.16));
  border: 1px solid rgba(197, 150, 255, 0.32);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.12),
    0 0 18px rgba(168, 85, 247, 0.18);
}

/* remove arrows */
.magic-dropdown-toggle,
.site-navigation .toggle,
.magic-dropdown-chevron {
  display: none !important;
}

/* optional small separator dot between main items */
.magic-menu-item:not(.magic-home-item):not(:first-child) > .magic-menu-row::before,
.site-navigation .menu > .menu-item:not(:first-child)::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 181, 255, 0.95), rgba(168, 85, 247, 0.35));
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.45);
  margin-right: 10px;
}

/* ===== DROPDOWNS / QUASAR-STYLE MEGA MENU ===== */

.magic-category-item,
.site-navigation .has-children {
  position: relative;
}

.magic-submenu,
.site-navigation .menu-sub {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 680px;
  max-width: 760px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background:
    linear-gradient(180deg, rgba(13, 10, 24, 0.97), rgba(8, 7, 18, 0.97));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.38),
    0 0 26px rgba(124, 58, 237, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 50;
}

.magic-submenu::before,
.site-navigation .menu-sub::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: rgba(13, 10, 24, 0.97);
  border-left: 1px solid rgba(168, 85, 247, 0.20);
  border-top: 1px solid rgba(168, 85, 247, 0.20);
  transform: translateX(-50%) rotate(45deg);
}

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

.magic-submenu-heading {
  grid-column: 1 / -1;
}

.magic-submenu-link,
.site-navigation .menu-sub .menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--magic-text-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  transition: all 0.2s ease;
}

.magic-submenu-link:hover,
.site-navigation .menu-sub .menu-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(151, 83, 255, 0.18), rgba(236, 77, 255, 0.08)) !important;
  border-color: rgba(190, 132, 255, 0.28);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.14);
}

.magic-view-all-link {
  min-height: 78px;
  background: linear-gradient(135deg, rgba(120, 55, 235, 0.16), rgba(236, 77, 255, 0.08));
}

.magic-submenu-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1c7ff, #9f5cff);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.55);
}

.magic-submenu-arrow {
  color: #e1c5ff;
  font-size: 16px;
}

.magic-submenu-icon {
  color: #e1c5ff;
}

/* ===== CONTENT ===== */

.store-text,
.text-content,
.category-description {
  color: var(--magic-text-soft);
}

h1,
h2,
h3,
h4,
h5,
h6,
.category-title,
.product-title {
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p,
li,
small,
span,
div {
  color: inherit;
}

/* ===== HOME / CATEGORY CARDS ===== */

.category,
.magic-category-card,
.site-home-categories .category {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(160, 99, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(25, 18, 46, 0.78), rgba(10, 8, 20, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 24px rgba(0,0,0,0.22);
  transition: all 0.22s ease;
}

.category:hover,
.magic-category-card:hover,
.site-home-categories .category:hover {
  transform: translateY(-4px);
  border-color: rgba(195, 139, 255, 0.34);
  box-shadow:
    0 18px 30px rgba(0,0,0,0.26),
    0 0 22px rgba(124, 58, 237, 0.18);
}

/* ===== PRODUCT CARDS ===== */

.store-product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16, 12, 30, 0.86), rgba(8, 7, 18, 0.92));
  border: 1px solid rgba(156, 95, 255, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 24px rgba(0,0,0,0.20);
  transition: all 0.22s ease;
}

.store-product:hover {
  transform: translateY(-4px);
  border-color: rgba(190, 132, 255, 0.30);
  box-shadow:
    0 16px 30px rgba(0,0,0,0.26),
    0 0 24px rgba(124, 58, 237, 0.14);
}

.store-product .image-link {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(10, 10, 18, 0.92);
}

.store-product .image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.store-product:hover .image {
  transform: scale(1.03);
}

.product-title,
.store-product h4 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 800;
}

.product-title a,
.store-product h4 a {
  color: #ffffff;
}

.product-title a:hover,
.store-product h4 a:hover {
  color: #efd3ff;
}

.price,
.package-price,
.store-product .price {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.02rem;
}

/* ===== BUTTONS ===== */

.btn,
.button,
button,
input[type="submit"],
.store-product .btn,
.package-actions .btn {
  border: 1px solid rgba(199, 145, 255, 0.30);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(145, 70, 255, 0.96), rgba(219, 100, 255, 0.94));
  color: #ffffff !important;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  box-shadow:
    0 8px 18px rgba(121, 42, 216, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
.store-product .btn:hover,
.package-actions .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 12px 24px rgba(154, 76, 255, 0.34),
    0 0 20px rgba(236, 77, 255, 0.16);
}

/* ===== SIDEBAR / PANELS ===== */

.store-sidebar,
.module,
.panel,
.sidebar-box {
  border-radius: 16px;
  border: 1px solid rgba(156, 95, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 12, 28, 0.82), rgba(8, 7, 18, 0.90));
  box-shadow: 0 10px 20px rgba(0,0,0,0.14);
}

/* ===== FOOTER ===== */

.site-footer,
footer {
  background: transparent;
  border-top: 1px solid rgba(156, 95, 255, 0.10);
  color: var(--magic-text-dim);
}

.site-footer a,
footer a {
  color: var(--magic-text-soft);
}

.site-footer a:hover,
footer a:hover {
  color: #ffffff;
}

/* ===== HOMEPAGE ACTIONS ===== */

.magic-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.magic-home-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.magic-home-features span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(160, 99, 255, 0.16);
  color: var(--magic-text-soft);
  font-size: 13px;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
  .magic-submenu,
  .site-navigation .menu-sub {
    min-width: 560px;
  }
}

@media (max-width: 900px) {
  .magic-menu,
  .site-navigation .menu {
    justify-content: flex-start;
  }

  .magic-submenu,
  .site-navigation .menu-sub {
    position: static;
    transform: none;
    min-width: 100%;
    margin-top: 10px;
    grid-template-columns: 1fr;
  }

  .magic-submenu::before,
  .site-navigation .menu-sub::before {
    display: none;
  }

  .magic-menu-item:not(.magic-home-item):not(:first-child) > .magic-menu-row::before,
  .site-navigation .menu > .menu-item:not(:first-child)::before {
    display: none;
  }
}

@media (max-width: 768px) {
  html,
  body {
    background-attachment: scroll;
  }

  .store-product {
    padding: 12px;
  }

  .product-title,
  .store-product h4 {
    font-size: 1.02rem;
  }

  .magic-home-actions {
    flex-direction: column;
    align-items: stretch;
  }
}