body {
  background-image: radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.14), transparent 25%), radial-gradient(circle at 85% 80%, rgba(99, 102, 241, 0.14), transparent 25%);
}

body.light-mode {
  background-color: rgb(241 245 249);
  color: rgb(15 23 42);
}

.auth-tab {
  color: rgb(148 163 184);
  transition: all 250ms ease;
}

.auth-tab:hover {
  color: rgb(226 232 240);
}

.active-tab {
  background: linear-gradient(135deg, rgb(59 130 246) 0%, rgb(99 102 241) 100%);
  color: rgb(255 255 255);
  box-shadow: 0 8px 24px -12px rgba(59, 130, 246, 0.8);
}

.auth-input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(15, 23, 42, 0.7);
  padding: 0.8rem 0.95rem;
  color: rgb(248 250 252);
  outline: none;
  transition: all 200ms ease;
}

.auth-input::placeholder {
  color: rgb(148 163 184);
}

.auth-input:focus {
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.auth-btn {
  width: 100%;
  border: 0;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgb(37 99 235) 0%, rgb(79 70 229) 100%);
  padding: 0.85rem 1rem;
  color: rgb(255 255 255);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 12px 30px -14px rgba(37, 99, 235, 0.85);
}

.auth-btn:hover {
  filter: brightness(1.06);
}

.auth-btn:active {
  transform: translateY(1px) scale(0.995);
}

.auth-form {
  animation: fadeUp 300ms ease;
}

.pass-toggle {
  transition: all 200ms ease;
}

.pass-toggle:hover {
  color: rgb(226 232 240);
}

.glass-card {
  transition: background-color 250ms ease, border-color 250ms ease;
}

.theme-toggle-btn {
  min-width: 118px;
  text-align: center;
  flex-shrink: 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgb(37 99 235), rgb(99 102 241));
  color: rgb(255 255 255);
  font-weight: 800;
  box-shadow: 0 12px 28px -14px rgba(59, 130, 246, 0.9);
}

.brand-name {
  line-height: 1.15;
}

.master-tab {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: rgb(51 65 85);
  transition: all 200ms ease;
  background: rgb(255 255 255);
}

.master-tab:hover {
  background: rgb(248 250 252);
}

.master-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgb(255 255 255);
  background: rgb(75 134 255);
  box-shadow: 0 10px 24px -14px rgba(59, 130, 246, 0.9);
}

.master-menu-left {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.master-menu-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.master-menu-chevron {
  transition: transform 200ms ease;
}

.master-dot {
  width: 0.45rem;
  height: 0.45rem;
  border: 1.4px solid rgb(100 116 139);
  border-radius: 9999px;
  flex-shrink: 0;
}

.master-label {
  color: rgb(37 53 83);
}

.master-item-active .master-dot {
  background: rgb(59 130 246);
  border-color: rgb(59 130 246);
}

.master-item-active .master-label {
  color: rgb(29 78 216);
}

.admin-page-tab {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.5rem;
  white-space: nowrap;
  scroll-snap-align: start;
  color: rgb(148 163 184);
  transition: all 200ms ease;
}

.nav-dropdown-item {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.nav-dropdown-item > .admin-page-tab {
  width: 100%;
}

.admin-page-tab:hover {
  color: rgb(226 232 240);
  background: rgba(255, 255, 255, 0.08);
}

.admin-page {
  animation: fadeUp 250ms ease;
}

.top-nav-scroll {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  overflow: visible;
  scroll-snap-type: none;
}

.top-nav-scroll::-webkit-scrollbar {
  display: none;
}

.master-submenu-inline {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.master-submenu-inline::-webkit-scrollbar {
  display: none;
}

.menu-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.top-master-chevron {
  transition: transform 200ms ease;
}

.master-top-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 40;
  min-width: 220px;
  padding: 0.45rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(6px);
}

.master-dropdown-item {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  color: rgb(203 213 225);
  transition: all 180ms ease;
}

.master-dropdown-item:hover {
  background: rgba(148, 163, 184, 0.16);
}

.master-dropdown-active {
  color: rgb(255 255 255);
  background: rgba(59, 130, 246, 0.32);
}

body.light-mode .glass-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .promo-panel {
  background: linear-gradient(135deg, rgb(59 130 246), rgb(14 116 144));
}

body.light-mode .text-slate-100 {
  color: rgb(15 23 42);
}

body.light-mode .text-slate-200 {
  color: rgb(51 65 85);
}

body.light-mode .text-slate-300 {
  color: rgb(71 85 105);
}

body.light-mode .bg-slate-900\/60 {
  background-color: rgba(226, 232, 240, 0.8);
}

body.light-mode #theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: rgb(30 41 59);
}

body.light-mode .brand-logo {
  box-shadow: 0 10px 22px -14px rgba(37, 99, 235, 0.75);
}

body.light-mode .auth-tab {
  color: rgb(71 85 105);
}

body.light-mode .master-tab {
  color: rgb(51 65 85);
  background: rgb(255 255 255);
}

body.light-mode .admin-page-tab {
  color: rgb(71 85 105);
}

body.light-mode .master-top-dropdown {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

body.light-mode .master-dropdown-item {
  color: rgb(51 65 85);
}

body.light-mode .master-dropdown-item:hover {
  background: rgba(148, 163, 184, 0.18);
}

body.light-mode .master-dropdown-active {
  color: rgb(30 64 175);
  background: rgba(59, 130, 246, 0.16);
}

body.light-mode .master-tab:hover {
  background: rgb(241 245 249);
}

body.light-mode .admin-page-tab:hover {
  color: rgb(15 23 42);
  background: rgba(148, 163, 184, 0.16);
}

body.light-mode .auth-tab:hover {
  color: rgb(30 41 59);
}

body.light-mode .auth-input {
  background: rgba(255, 255, 255, 0.95);
  color: rgb(15 23 42);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

body.light-mode .auth-input::placeholder {
  color: rgb(100 116 139);
}

body.light-mode .pass-toggle {
  color: rgb(71 85 105);
}

body.light-mode .pass-toggle:hover {
  color: rgb(15 23 42);
  background: rgba(148, 163, 184, 0.18);
}

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

@keyframes cartBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.16); }
  55% { transform: scale(0.95); }
  80% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.cart-bounce {
  animation: cartBounce 420ms ease;
}

@media (max-width: 639px) {
  .top-nav-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    gap: 0.4rem;
  }

  .auth-tab {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .theme-toggle-btn {
    min-width: 108px;
  }

  .admin-page-tab {
    justify-content: center;
    min-width: calc(50% - 0.25rem);
    white-space: normal;
    gap: 0.35rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    font-size: 0.78rem;
  }

  .nav-dropdown-item {
    min-width: calc(50% - 0.25rem);
  }

  .menu-icon {
    font-size: 0.85rem;
  }

  .master-submenu-inline {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .master-top-dropdown {
    min-width: 185px;
    max-width: 78vw;
  }
}
