:root {
  --bg-1: #07070a;
  --bg-2: #0d0d12;
  --bg-3: #0a0a0f;
  --accent: #b00020;
  --accent-soft: rgba(176, 0, 32, 0.25);
  --accent-glow: rgba(208, 0, 42, 0.35);
  --accent-hot: rgba(208, 0, 42, 0.8);
  --text: #f2f2f2;
  --muted: #b9b9c0;
  --card: rgba(13, 13, 18, 0.92);
  --border: rgba(176, 0, 32, 0.28);
  --shadow: rgba(0, 0, 0, 0.6);
  --blood: rgba(176, 0, 32, 0.4);
  --blood-soft: rgba(176, 0, 32, 0.16);
}

.theme-blue {
  --bg-1: #07070a;
  --bg-2: #0d0d12;
  --bg-3: #0a0a0f;
  --accent: #b00020;
  --accent-soft: rgba(176, 0, 32, 0.25);
  --accent-glow: rgba(208, 0, 42, 0.35);
  --accent-hot: rgba(208, 0, 42, 0.8);
  --text: #f2f2f2;
  --muted: #b9b9c0;
  --card: rgba(13, 13, 18, 0.92);
  --border: rgba(176, 0, 32, 0.28);
  --shadow: rgba(0, 0, 0, 0.6);
  --blood: rgba(176, 0, 32, 0.4);
  --blood-soft: rgba(176, 0, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-y: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cairo", "Tajawal", "Noto Kufi Arabic", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px circle at 20% -10%, rgba(176, 0, 32, 0.14), transparent 60%),
    radial-gradient(900px circle at 80% 0%, rgba(176, 0, 32, 0.08), transparent 65%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

body.theme-blue {
  background:
    radial-gradient(1200px circle at 20% -10%, rgba(176, 0, 32, 0.14), transparent 60%),
    radial-gradient(900px circle at 80% 0%, rgba(176, 0, 32, 0.08), transparent 65%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

.ambient-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(176, 0, 32, 0.12), transparent 60%),
    radial-gradient(circle at 80% 22%, rgba(176, 0, 32, 0.08), transparent 65%),
    radial-gradient(circle at 50% 82%, rgba(176, 0, 32, 0.1), transparent 70%);
  background-size: 140% 140%;
  background-position: center;
  animation: pulse 16s ease-in-out infinite;
  z-index: 0;
}

body.theme-blue .ambient-bg {
  background:
    radial-gradient(circle at 20% 18%, rgba(176, 0, 32, 0.12), transparent 60%),
    radial-gradient(circle at 80% 22%, rgba(176, 0, 32, 0.08), transparent 65%),
    radial-gradient(circle at 50% 82%, rgba(176, 0, 32, 0.1), transparent 70%);
  animation: pulse 16s ease-in-out infinite;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 4px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.topbar {
  position: relative;
  z-index: 2;
  padding: 24px 48px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.auth-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 26px 0 0;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 48px;
}

.auth-corner {
  font-size: 22px;
  letter-spacing: 1.2px;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(176, 0, 32, 0.45);
  font-weight: 700;
}

.auth-corner-left {
  text-align: left;
}

.auth-corner-right {
  text-align: right;
}

.app-topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 18px;
  display: flex;
  justify-content: center;
  width: min(960px, 92vw);
  pointer-events: none;
}

.app-topbar .app-nav {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--border);
  pointer-events: auto;
}

.app-topbar + .page {
  padding-top: 108px;
}

.app-nav {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(13, 13, 18, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  flex-wrap: nowrap;
  font-size: 14px;
}

[dir="ltr"] .app-nav {
  gap: 18px;
}

.app-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: inherit;
  letter-spacing: 0.4px;
  padding-bottom: 2px;
  white-space: nowrap;
}

[dir="rtl"] .app-nav a {
  letter-spacing: 0;
}

.app-nav a:hover {
  color: var(--text);
}

.app-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  border-radius: 999px;
}

.app-nav a:hover::after,
.app-nav a.active::after,
.app-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.app-nav a.active,
.app-nav a[aria-current="page"] {
  color: var(--text);
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 96px 24px 24px;
  animation: fadeIn 0.8s ease;
  flex: 1;
}

.page > .home-wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
  flex: 1;
}

.corner-logo {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-decoration: none;
}

[dir="rtl"] .corner-logo {
  left: auto;
  right: 18px;
}

.corner-logo img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  display: block;
}

.corner-auth {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 5;
}

[dir="rtl"] .corner-auth {
  right: auto;
  left: 22px;
}

.corner-auth-link {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(13, 13, 18, 0.85);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
}

.avatar-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(176, 0, 32, 0.45);
  background: rgba(13, 13, 18, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 1 / 1;
}

.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #7b7b7b;
  display: block;
}

.avatar-icon {
  position: absolute;
  width: 60%;
  height: 60%;
  fill: #d9d9d9;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  aspect-ratio: 1 / 1;
}

.profile-menu {
  position: absolute;
  top: 48px;
  right: 0;
  width: min(320px, 88vw);
  background: rgba(13, 13, 18, 0.98);
  border: 1px solid rgba(176, 0, 32, 0.35);
  border-radius: 14px;
  padding: 14px;
  display: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

[dir="rtl"] .profile-menu {
  right: auto;
  left: 0;
}

.profile-menu.is-open {
  display: grid;
  gap: 12px;
}

.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-name {
  font-weight: 700;
}

.profile-email {
  color: var(--muted);
  font-size: 12px;
}

.profile-role {
  color: var(--muted);
  font-size: 12px;
}

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

.lang-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(13, 13, 18, 0.85);
  color: var(--text);
  font-size: 12px;
}

[dir="rtl"] .lang-fab {
  right: auto;
  left: 22px;
}

.lang-fab a {
  color: var(--text);
  text-decoration: none;
}

.settings-block {
  margin: 18px 0 24px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(13, 13, 18, 0.7);
}

.settings-label {
  margin-bottom: 12px;
  color: var(--muted);
}

.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-wrap,
.home-wrap {
  width: min(620px, 92vw);
  perspective: 1000px;
}

.auth-card,
.home-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 18px rgba(176, 0, 32, 0.12);
  backdrop-filter: blur(4px);
  transform-style: preserve-3d;
  transition: box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.auth-card {
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.7),
    inset 0 0 18px rgba(176, 0, 32, 0.16);
  min-height: 560px;
  aspect-ratio: 1 / 1;
}

.auth-card--glow {
  min-height: 560px;
  aspect-ratio: 1 / 1;
}

.home-card {
  padding: 32px;
}

.hero {
  padding: 32px;
  border-radius: 18px;
  background: rgba(13, 13, 18, 0.72);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  margin-bottom: 28px;
}

.hero-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: 36px;
}

.hero-content p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 14px;
}

.hero-divider::before,
.hero-divider::after {
  content: "";
  width: 80px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.section {
  margin-bottom: 26px;
}

.section h2 {
  margin: 0 0 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(13, 13, 18, 0.7);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(176, 0, 32, 0.2);
  border-color: rgba(176, 0, 32, 0.45);
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.store-hero {
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: -8px;
}

.store-hero h1 {
  margin-bottom: 10px;
  font-size: 32px;
}

.store-hero p {
  color: var(--muted);
  line-height: 1.8;
}

.brand-strips {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-strip {
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(176, 0, 32, 0.28), rgba(13, 13, 18, 0.9), rgba(176, 0, 32, 0.18));
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
}

.strip-bottom {
  height: 46px;
  background: linear-gradient(120deg, rgba(176, 0, 32, 0.4), rgba(13, 13, 18, 0.9));
}

.store-tagline {
  margin-top: 10px;
  color: rgba(242, 242, 242, 0.9);
  font-weight: 600;
}

.store-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  background: rgba(13, 13, 18, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  max-width: 760px;
  width: 100%;
}

.store-toolbar--bar {
  justify-content: space-between;
}

.toolbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1.4;
  background: rgba(13, 13, 18, 0.85);
  border: 1px solid rgba(176, 0, 32, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.toolbar-search input {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  outline: none;
  font-size: 15px;
}

.toolbar-search:hover {
  border-color: rgba(176, 0, 32, 0.45);
  box-shadow: 0 10px 24px rgba(176, 0, 32, 0.18);
  transform: translateY(-1px);
}

.toolbar-search:focus-within {
  border-color: rgba(176, 0, 32, 0.7);
  box-shadow: 0 12px 28px rgba(176, 0, 32, 0.25);
}

.toolbar-search.is-typing::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(176, 0, 32, 0.9);
  box-shadow: 0 0 10px rgba(176, 0, 32, 0.6);
  animation: pulse 1.4s ease-in-out infinite;
}

[dir="rtl"] .toolbar-search.is-typing::after {
  right: auto;
  left: 12px;
}

.search-icon {
  color: rgba(208, 0, 42, 0.85);
  font-size: 16px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(176, 0, 32, 0.55);
  background: rgba(176, 0, 32, 0.14);
  color: #f2f2f2;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}

.filter-icon {
  font-size: 14px;
  pointer-events: none;
}

.toolbar-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 2;
  flex: 0 0 160px;
}

.toolbar-dropdown select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(176, 0, 32, 0.45);
  background: rgba(13, 13, 18, 0.92);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 160px;
  justify-content: space-between;
}

.dropdown-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(176, 0, 32, 0.2);
  border-color: rgba(176, 0, 32, 0.7);
}

.dropdown-icon {
  color: rgba(208, 0, 42, 0.9);
  font-size: 13px;
}

.dropdown-label {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-caret {
  color: rgba(242, 242, 242, 0.7);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: rgba(13, 13, 18, 0.98);
  border: 1px solid rgba(176, 0, 32, 0.4);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: none;
  transform: translateY(-6px) scale(0.98);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

[dir="rtl"] .dropdown-menu {
  left: auto;
  right: 0;
}

.toolbar-dropdown.is-open .dropdown-menu {
  display: grid;
  gap: 6px;
  transform: translateY(0) scale(1);
  opacity: 1;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

[dir="rtl"] .dropdown-item {
  text-align: right;
}


.dropdown-item:hover {
  background: rgba(176, 0, 32, 0.14);
  border-color: rgba(176, 0, 32, 0.4);
  transform: translateY(-1px);
}

.store-products {
  display: grid;
  gap: 16px;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(13, 13, 18, 0.6);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.chip.active,
.chip:hover {
  color: var(--text);
  border-color: rgba(176, 0, 32, 0.55);
  box-shadow: 0 0 16px rgba(176, 0, 32, 0.2);
}

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

.product-card {
  background: linear-gradient(160deg, rgba(13, 13, 18, 0.98), rgba(7, 7, 10, 0.92));
  border: 1px solid var(--border);
  border-radius: 18px;
  display: grid;
  grid-template-rows: 200px 1fr;
  gap: 12px;
  padding: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
  position: relative;
  aspect-ratio: 3 / 4;
  align-content: start;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 20%, var(--accent-soft), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

body.theme-blue .product-card::before {
  background: radial-gradient(circle at 20% 20%, var(--accent-soft), transparent 55%);
}

.product-card[data-tilt] {
  transform-style: preserve-3d;
}

.product-card--offer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(176, 0, 32, 0.55);
  box-shadow: 0 0 22px rgba(176, 0, 32, 0.22);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 46px rgba(176, 0, 32, 0.2);
  border-color: rgba(176, 0, 32, 0.5);
}

.product-card:hover::before {
  opacity: 1;
}

.card-promote {
  animation: promote 0.25s ease;
  box-shadow: 0 20px 36px rgba(176, 0, 32, 0.2);
}

.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.product-modal.is-visible {
  display: flex;
}

.product-modal__content {
  width: min(860px, 92vw);
  background: rgba(13, 13, 18, 0.95);
  border: 1px solid rgba(176, 0, 32, 0.35);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  gap: 18px;
  position: relative;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
}

.product-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

[dir="rtl"] .product-modal__close {
  right: auto;
  left: 12px;
}

.product-modal__media {
  border-radius: 12px;
  overflow: hidden;
  height: 320px;
  background: rgba(7, 7, 10, 0.9);
}

.product-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal__media--video {
  display: none;
}

.product-modal__media--video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.product-modal__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.product-modal__body h3 {
  margin: 0;
}

.product-modal__body p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.7;
}

.product-modal__body .price-chip {
  font-size: 18px;
  padding: 10px 14px;
  margin: 8px 0 14px;
  border-color: rgba(176, 0, 32, 0.55);
  background: rgba(176, 0, 32, 0.18);
  color: #fff;
}

.btn,
.filter-button,
.toolbar-dropdown,
.site-nav a,
.admin-actions .btn,
.auth-actions .btn,
.product-actions .btn,
.social-link {
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.filter-button:hover,
.toolbar-dropdown:hover,
.site-nav a:hover,
.admin-actions .btn:hover,
.auth-actions .btn:hover,
.product-actions .btn:hover,
.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(176, 0, 32, 0.18);
}

.product-media {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7, 7, 10, 0.95);
  height: 200px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-body .view-count {
  margin-top: 6px;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 140px;
}

.product-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: 0.2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-tags {
  margin-bottom: 0;
}

.product-card .view-count {
  margin-top: 4px;
}

.category-section {
  margin-bottom: 22px;
}

.category-title {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.3px;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(176, 0, 32, 0.18), transparent 70%);
}

.product-body h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(176, 0, 32, 0.9);
  border: 1px solid rgba(176, 0, 32, 0.55);
  box-shadow: 0 10px 22px rgba(176, 0, 32, 0.2);
}

.views-pill {
  font-size: 12px;
  color: var(--muted);
}

.badge,
.offer-badge,
.price-chip,
.amount-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(176, 0, 32, 0.14);
  border: 1px solid rgba(176, 0, 32, 0.4);
  color: var(--text);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.offer-badge {
  background: rgba(176, 0, 32, 0.22);
  border-color: rgba(176, 0, 32, 0.55);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.price-chip {
  background: rgba(13, 13, 18, 0.8);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.amount-chip {
  background: rgba(176, 0, 32, 0.12);
  border-color: rgba(176, 0, 32, 0.28);
  color: var(--text);
}

.badge:hover,
.offer-badge:hover,
.price-chip:hover,
.amount-chip:hover {
  box-shadow: 0 0 14px rgba(176, 0, 32, 0.18);
  border-color: rgba(176, 0, 32, 0.55);
}

.product-price {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.price-main {
  font-weight: 700;
  font-size: 18px;
}

.price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.price-free {
  color: var(--text);
  font-weight: 700;
}

.offer-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.stock-badge {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.offers-section h2 {
  margin-bottom: 12px;
}

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

.offer-card {
  border-color: rgba(176, 0, 32, 0.55);
  box-shadow: 0 18px 40px rgba(176, 0, 32, 0.22);
}

.offer-card .product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.offer-media {
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
  background: rgba(5, 6, 12, 0.9);
}

.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-body h3 {
  margin: 0 0 6px;
}

.offer-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.product-actions {
  margin-top: 6px;
}

.product-detail {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 24px;
  border-radius: 18px;
  background: rgba(13, 13, 18, 0.75);
  border: 1px solid var(--border);
}

.product-detail-media {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7, 7, 10, 0.9);
  min-height: 240px;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.gallery-row img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.product-detail-body h1 {
  margin-top: 0;
}

.product-detail-desc {
  color: var(--muted);
  line-height: 1.8;
}

.view-count {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.product-stock {
  margin: 10px 0 0;
}

.product-detail-price {
  margin: 16px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.purchase-grid {
  display: grid;
  gap: 16px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cart-header h2 {
  margin: 0;
}

.cart-count {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(176, 0, 32, 0.18);
  border: 1px solid rgba(176, 0, 32, 0.45);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.cart-remove {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(176, 0, 32, 0.45);
  background: rgba(176, 0, 32, 0.2);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-remove:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(176, 0, 32, 0.25);
}

.cart-summary {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(176, 0, 32, 0.35);
  background: rgba(13, 13, 18, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-summary__line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-summary__values {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-checkout {
  min-width: 180px;
}

.cart-summary__values .price-chip {
  font-size: 16px;
  padding: 8px 14px;
}

.cart-total {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.cart-modal.is-visible {
  display: flex;
}

.cart-modal__card {
  width: min(420px, 90vw);
  background: rgba(13, 13, 18, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 12px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.cart-modal__title {
  font-size: 18px;
  font-weight: 700;
}

.cart-modal__text {
  color: var(--muted);
}

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

.ratings-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 18px;
  align-items: start;
}

.ratings-form {
  position: sticky;
  top: 120px;
}

.rating-stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 14px;
}

.ratings-select {
  appearance: none;
  background: rgba(13, 13, 18, 0.92);
  border: 1px solid rgba(176, 0, 32, 0.45);
  border-radius: 12px;
  padding: 12px 40px 12px 14px;
  color: var(--text);
  font-size: 14px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(176, 0, 32, 0.7) 50%),
    linear-gradient(135deg, rgba(176, 0, 32, 0.7) 50%, transparent 50%);
  background-position:
    right 16px center,
    right 10px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[dir="rtl"] .ratings-select {
  padding: 12px 14px 12px 40px;
  background-position:
    left 16px center,
    left 10px center;
}

.ratings-select:focus {
  border-color: rgba(176, 0, 32, 0.7);
  box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.18);
}

@media (max-width: 900px) {
  .ratings-layout {
    grid-template-columns: 1fr;
  }
  .ratings-form {
    position: static;
  }
}

.pager {
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pager-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(13, 13, 18, 0.85);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pager-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(176, 0, 32, 0.2);
}

.pager-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pager-label {
  font-size: 14px;
  color: var(--text);
}

@media (max-width: 700px) {
  .cart-remove {
    width: 32px;
    height: 32px;
  }
}

.purchase-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(13, 13, 18, 0.7);
  border: 1px solid var(--border);
}

.purchase-media {
  width: 120px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
}

.purchase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purchase-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.purchase-price {
  margin: 10px 0;
  font-weight: 700;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-search input {
  background: rgba(13, 13, 18, 0.92);
  border: 1px solid rgba(176, 0, 32, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
}

.buyer-badge {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(176, 0, 32, 0.5);
  background: rgba(176, 0, 32, 0.18);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}
.admin-table {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(13, 13, 18, 0.7);
  border: 1px solid var(--border);
  align-items: center;
}

.admin-row--users {
  grid-template-columns: 1.5fr 1.5fr 0.9fr 0.6fr 0.8fr 1.4fr;
}

.admin-row--offer {
  grid-template-columns: 2fr 1fr 1fr;
}

.admin-row--head {
  background: rgba(13, 13, 18, 0.9);
  font-weight: 700;
}

.admin-product {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-product img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(13, 13, 18, 0.7);
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(13, 13, 18, 0.7);
  border: 1px solid var(--border);
}

.form-section {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.admin-form textarea,
.admin-form select,
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="file"] {
  background: rgba(13, 13, 18, 0.92);
  border: 1px solid rgba(176, 0, 32, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
}

.mini-input {
  background: rgba(13, 13, 18, 0.9);
  border: 1px solid rgba(176, 0, 32, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  min-width: 140px;
}

.admin-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  padding: 20px;
  border-radius: 14px;
  border: 1px dashed rgba(176, 0, 32, 0.3);
  color: var(--muted);
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: center;
}

.panel {
  background: rgba(13, 13, 18, 0.75);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.step {
  padding: 16px;
  border-radius: 14px;
  background: rgba(13, 13, 18, 0.7);
  border: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.step span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(176, 0, 32, 0.2);
  color: var(--text);
}

.footer {
  margin-top: auto;
  padding: 16px 0 32px;
  text-align: center;
  color: var(--muted);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(13, 13, 18, 0.7);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.social-link:hover {
  transform: scale(1.06);
  color: var(--text);
  box-shadow: 0 0 18px rgba(176, 0, 32, 0.3);
}

.social-link:focus-visible {
  outline: 2px solid rgba(176, 0, 32, 0.6);
  outline-offset: 3px;
}

.social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link--discord {
  border-color: rgba(176, 0, 32, 0.5);
  background: rgba(176, 0, 32, 0.12);
  color: var(--text);
}

.social-link--discord:hover {
  box-shadow: 0 0 18px rgba(176, 0, 32, 0.35);
}

.social-link--tiktok {
  border-color: rgba(176, 0, 32, 0.4);
  background: rgba(13, 13, 18, 0.8);
  color: var(--text);
}

.social-link--tiktok:hover {
  box-shadow: 0 0 16px rgba(176, 0, 32, 0.3);
}

.social-link--instagram {
  border-color: rgba(176, 0, 32, 0.55);
  background: rgba(176, 0, 32, 0.16);
  color: var(--text);
}

.social-link--instagram:hover {
  box-shadow: 0 0 16px rgba(176, 0, 32, 0.35);
}

.settings-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(13, 13, 18, 0.7);
  max-width: 520px;
  margin: 0 auto;
}

.auth-card::before,
.home-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(176, 0, 32, 0.18), transparent 55%);
  opacity: 0.75;
  pointer-events: none;
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: 10% 6% auto;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

.auth-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.auth-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
}

.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(176, 0, 32, 0.16);
  border: 1px solid rgba(176, 0, 32, 0.45);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 14px;
}

.alert.is-hidden {
  display: none;
}

.alert-icon {
  font-size: 16px;
  text-shadow: 0 0 8px rgba(176, 0, 32, 0.6);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.field input {
  background: rgba(13, 13, 18, 0.92);
  border: 1px solid rgba(176, 0, 32, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field select,
.field textarea {
  background: rgba(13, 13, 18, 0.92);
  border: 1px solid rgba(176, 0, 32, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
  transform: translateY(-1px);
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:focus-visible,
.corner-auth-link:focus-visible,
.dropdown-trigger:focus-visible,
.toolbar-search input:focus-visible,
.field input:focus-visible,
.ghost-btn:focus-visible {
  outline: 2px solid rgba(176, 0, 32, 0.7);
  outline-offset: 2px;
}

.btn.primary {
  background: linear-gradient(135deg, #b00020, #7a0016);
  color: #fff;
  box-shadow: 0 12px 26px rgba(176, 0, 32, 0.45);
}


.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(176, 0, 32, 0.45);
}

.btn.primary:active {
  transform: translateY(0);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(176, 0, 32, 0.35);
}

.btn.ghost:hover {
  box-shadow: 0 0 18px rgba(176, 0, 32, 0.35);
}

.auth-foot {
  margin-top: 18px;
  color: var(--muted);
}

.auth-foot a {
  color: rgba(176, 0, 32, 0.9);
  text-decoration: none;
}

.auth-foot a:hover {
  text-shadow: 0 0 12px rgba(176, 0, 32, 0.5);
}

.auth-frame {
  position: relative;
  min-height: 420px;
}

.auth-inner {
  position: relative;
  padding: 42px 46px 36px;
  max-width: 520px;
}

.glow-panel {
  position: absolute;
  inset: 18% 10% auto auto;
  width: 62%;
  height: 52%;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(176, 0, 32, 0.35), transparent 60%),
    linear-gradient(140deg, rgba(176, 0, 32, 0.12), rgba(13, 13, 18, 0.9));
  box-shadow: 0 0 120px rgba(176, 0, 32, 0.2);
  pointer-events: none;
}

.auth-stack {
  max-width: none;
  padding: 36px 42px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-wide {
  width: 100%;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-actions {
  display: flex;
  justify-content: center;
}

.ghost-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(176, 0, 32, 0.4);
  color: var(--text);
  text-decoration: none;
  background: rgba(13, 13, 18, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(176, 0, 32, 0.18);
}

.auth-inner::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 16px;
  border: 1px solid rgba(176, 0, 32, 0.18);
  box-shadow: inset 0 0 18px rgba(176, 0, 32, 0.12);
  pointer-events: none;
}

.frame-bar {
  position: absolute;
  height: 2px;
  width: 70%;
  background: linear-gradient(90deg, transparent, rgba(176, 0, 32, 0.7), transparent);
}

.frame-bar-top {
  top: 18px;
  right: 24px;
}

.frame-bar-bottom {
  bottom: 18px;
  left: 24px;
}

.frame-edge {
  position: absolute;
  width: 3px;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(176, 0, 32, 0.6), transparent);
}

.frame-edge-right {
  top: 80px;
  right: 20px;
}

.frame-edge-left {
  bottom: 70px;
  left: 20px;
}

.auth-head {
  margin-bottom: 20px;
}

.cursor-glow {
  position: fixed;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 0, 32, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  transition: transform 0.05s ease;
}

.click-ripple {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(176, 0, 32, 0.8);
  box-shadow: 0 0 18px rgba(176, 0, 32, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  animation: ripple 0.8s ease-out forwards;
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(176, 0, 32, 0.55);
}

.role-badge {
  margin: 18px 0 24px;
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(176, 0, 32, 0.2);
  border: 1px solid rgba(176, 0, 32, 0.4);
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}


@keyframes ripple {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(6);
  }
}

@keyframes spinGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

body.theme-blue .product-card,
body.theme-blue .offer-card,
body.theme-blue .admin-form,
body.theme-blue .admin-table,
body.theme-blue .home-card,
body.theme-blue .store-toolbar,
body.theme-blue .dropdown-menu {
  position: relative;
  isolation: isolate;
}

body.theme-blue .product-card::after,
body.theme-blue .offer-card::after,
body.theme-blue .admin-form::after,
body.theme-blue .admin-table::after,
body.theme-blue .home-card::after,
body.theme-blue .store-toolbar::after,
body.theme-blue .dropdown-menu::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background:
    linear-gradient(transparent, transparent) padding-box,
    conic-gradient(
      from 0deg,
      rgba(176, 0, 32, 0.5),
      rgba(16, 16, 20, 0.5),
      rgba(176, 0, 32, 0.5)
    ) border-box;
  border: 2px solid transparent;
  z-index: -1;
  filter: blur(6px);
  opacity: 0.65;
  animation: spinGlow 8s linear infinite;
}

body.theme-blue .product-card:hover,
body.theme-blue .offer-card:hover,
body.theme-blue .admin-form:hover,
body.theme-blue .admin-table:hover,
body.theme-blue .home-card:hover,
body.theme-blue .store-toolbar:hover,
body.theme-blue .dropdown-menu:hover {
  transform: none;
  box-shadow: inherit;
}

@keyframes promote {
  from {
    transform: translateY(6px) scale(0.98);
    opacity: 0.7;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .offer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    aspect-ratio: auto;
  }
  .auth-topbar,
  .app-topbar {
    padding: 18px 16px;
    width: min(720px, 96vw);
  }

  .auth-header {
    padding: 0 16px;
  }

  .auth-corner {
    font-size: 18px;
  }

  .app-nav {
    gap: 8px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .auth-card,
  .home-card {
    padding: 0;
  }

  .home-card {
    padding: 24px;
  }

  .auth-inner {
    padding: 28px 24px;
  }

  .auth-card {
    min-height: auto;
    aspect-ratio: auto;
  }

  .auth-stack {
    padding: 28px 24px;
  }

  .left-vignette {
    background:
      linear-gradient(90deg, rgba(3, 4, 9, 0.98) 0%, rgba(3, 4, 9, 0.88) 45%, transparent 85%);
  }
  .hero-content h1 {
    font-size: 28px;
  }

  .hero {
    padding: 24px;
  }

  .footer {
    padding-bottom: 24px;
  }
}
