:root {
  --bg-deep: #07060a;
  --surface: rgba(22, 20, 28, 0.72);
  --surface-solid: #16141c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(230, 0, 18, 0.35);
  --text: #f4f2f8;
  --muted: #9b96a8;
  --accent: #e60012;
  --accent-glow: rgba(230, 0, 18, 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Syne", var(--font);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.55;
  background: var(--bg-deep);
  position: relative;
  overflow-x: hidden;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-background__gif {
  position: absolute;
  inset: -8%;
  background-color: #08060c;
  background-image: url("../assets/background.gif");
  background-size: cover;
  background-position: center;
  filter: blur(56px) brightness(0.22) saturate(1.35) contrast(1.05);
  transform: scale(1.08);
  animation: bg-drift 28s ease-in-out infinite alternate;
}

@keyframes bg-drift {
  0% {
    transform: scale(1.05) translate(-1%, -1%);
  }
  100% {
    transform: scale(1.12) translate(1%, 1%);
  }
}

.page-background__aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 20%, rgba(230, 0, 18, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 75%, rgba(120, 60, 200, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(230, 0, 18, 0.08), transparent 45%);
  animation: aurora-pulse 14s ease-in-out infinite;
}

@keyframes aurora-pulse {
  0%,
  100% {
    opacity: 1;
    filter: hue-rotate(0deg);
  }
  50% {
    opacity: 0.88;
    filter: hue-rotate(12deg);
  }
}

.page-background__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 75% at 50% 45%, transparent 0%, rgba(7, 6, 10, 0.55) 70%, rgba(7, 6, 10, 0.92) 100%),
    linear-gradient(180deg, rgba(7, 6, 10, 0.35) 0%, transparent 30%, transparent 70%, rgba(7, 6, 10, 0.75) 100%);
}

a {
  color: #ff8a96;
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
a:hover {
  color: #fff;
  text-shadow: 0 0 20px var(--accent-glow);
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.35rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(14, 12, 20, 0.94) 0%, rgba(10, 8, 14, 0.88) 50%, rgba(18, 10, 14, 0.9) 100%);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  box-shadow:
    0 1px 0 rgba(230, 0, 18, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none !important;
  text-shadow: 0 0 24px var(--accent-glow);
  flex-shrink: 0;
}
.brand:hover {
  color: #fff;
}

.brand-text {
  line-height: 1;
}

.brand-logo {
  height: 46px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 0 14px rgba(230, 0, 18, 0.4));
}

.nav-toggle {
  display: none;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle:hover {
  border-color: var(--border-strong);
}

.header-nav-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem 2rem;
  flex: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.nav-primary {
  padding-right: 1.5rem;
  margin-right: 0.5rem;
  border-right: 1px solid var(--border);
}

.nav-user-actions {
  gap: 0.5rem 0.85rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: #e8e4ef !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  text-shadow: none;
}
.nav-link.is-active {
  color: #fff !important;
  background: rgba(230, 0, 18, 0.18);
  box-shadow: 0 0 0 1px rgba(230, 0, 18, 0.25);
}

.nav-link-admin {
  color: #ffb8c4 !important;
}

.nav-count-pill {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  vertical-align: middle;
  line-height: 1.2;
}

.nav-user-pill {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.35rem 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.btn-ghost {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  color: var(--text) !important;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--border-strong) !important;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }
  .header-nav-wrap {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }
  .header-nav-wrap.is-open {
    display: flex;
  }
  .nav-primary {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-user-actions {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }
  .nav-user-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.main-content {
  flex: 1;
  padding: 0 0 3rem;
}

.site-footer {
  position: relative;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 0;
  background: linear-gradient(180deg, rgba(8, 6, 12, 0.92) 0%, rgba(5, 4, 8, 0.98) 100%);
  backdrop-filter: blur(14px);
  color: var(--muted);
  font-size: 0.9rem;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 560px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.65;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem 2rem;
  padding: 3rem 1.35rem 2.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand-block {
  max-width: 320px;
}

.footer-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text) !important;
  text-decoration: none !important;
  margin-bottom: 0.75rem;
}
.footer-brand-title:hover {
  color: #fff !important;
}

.footer-tagline {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #b8b0c4;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.55rem;
}
.footer-links a {
  color: #d4cfe0 !important;
  font-weight: 500;
}
.footer-links a:hover {
  color: #fff !important;
}

.footer-muted {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.footer-bar {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1.1rem 1.35rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
}

.footer-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-logo {
  border-radius: 8px;
  filter: drop-shadow(0 0 10px rgba(230, 0, 18, 0.35));
}

.page-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 1.08rem;
  max-width: 52ch;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.alert {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
}
.alert-error {
  background: rgba(230, 0, 18, 0.12);
  border-color: rgba(230, 0, 18, 0.45);
  color: #ffc9ce;
}
.alert-warn {
  background: rgba(200, 160, 60, 0.12);
  border: 1px solid rgba(230, 190, 90, 0.35);
  color: #e8dcc8;
}

.verify-email-banner-wrap {
  padding-top: 0.85rem;
}

.verify-email-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.verify-email-banner-form {
  margin: 0;
}

.verify-email-banner-form .btn {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .verify-email-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .verify-email-banner-form .btn {
    width: 100%;
  }
}

.alert-success {
  background: rgba(46, 160, 67, 0.12);
  border-color: rgba(63, 185, 80, 0.45);
  color: #c8f5d3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  background: linear-gradient(145deg, var(--accent) 0%, #a8000f 100%);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 28px rgba(230, 0, 18, 0.55);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  box-shadow: none;
  color: var(--text) !important;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.06);
}
.btn-small {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}
.btn-danger {
  background: linear-gradient(145deg, #8b1530, #5c0e1f);
  box-shadow: 0 2px 12px rgba(139, 21, 48, 0.35);
}

.btn-hero {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.btn-hero-secondary {
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
}

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c9a8b0;
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-accent {
  background: linear-gradient(120deg, #fff 0%, #ff8a96 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: #bcb6c8;
  max-width: 36rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  width: 100%;
  max-width: 340px;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(230, 0, 18, 0.08);
}

.hero-logo {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(230, 0, 18, 0.25));
}

.hero-card-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: clamp(2.75rem, 5vw, 4rem) 0;
}

.section-features {
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(22, 20, 28, 0.5);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(230, 0, 18, 0.28);
  transform: translateY(-2px);
}

.feature-icon {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.section-about {
  border-bottom: 1px solid var(--border);
}

.about-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

.about-text p {
  color: #c5bfd4;
  margin: 0 0 1rem;
  line-height: 1.65;
}

.about-text .btn {
  margin-top: 0.5rem;
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-stat {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.25rem;
}
.about-stat span {
  font-size: 0.88rem;
  color: var(--muted);
}

.section-cta {
  padding-bottom: 3rem;
}

.cta-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, rgba(230, 0, 18, 0.12) 0%, rgba(22, 18, 28, 0.75) 50%, rgba(14, 12, 20, 0.85) 100%);
  backdrop-filter: blur(12px);
}

.cta-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
}

.cta-text {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.cta-box .hero-actions {
  justify-content: center;
}

.page-store {
  padding-top: 2rem;
}

.page-header-block {
  margin-bottom: 2rem;
}

.page-auth {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(230, 0, 18, 0.12);
}

.product-card-link {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
  padding-bottom: 1.1rem;
}
.product-card-link:hover h2 {
  color: #ff9aa8;
  text-shadow: 0 0 16px var(--accent-glow);
}

.product-thumb {
  background: linear-gradient(145deg, #1a1822, #0f0e14);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-thumb img {
  transform: scale(1.04);
}

.product-card h2 {
  margin: 1rem 1.1rem 0.35rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.price {
  margin: 0 1.1rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffb8c0;
}
.price.large {
  font-size: 1.65rem;
  font-family: var(--font-display);
}

.badge {
  margin: 0.5rem 1.1rem 0;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
}
.badge-out {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--border);
}

.empty {
  color: var(--muted);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 1.05rem;
}

.product-detail-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(82vh, calc(100dvh - var(--header-h) - 8rem));
  padding: clamp(2.5rem, 8vh, 5rem) 0 clamp(3rem, 10vh, 6rem);
  box-sizing: border-box;
}

.product-detail-page__inner {
  width: 100%;
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}

.product-detail-page__inner > .alert {
  margin-bottom: 1.25rem;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 840px) {
  .product-detail {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 840px) {
  .product-detail-page {
    min-height: auto;
    align-items: flex-start;
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }
}

.product-detail-media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.product-detail-media img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-gallery-main {
  background: rgba(0, 0, 0, 0.2);
}

.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.product-gallery-thumb {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  line-height: 0;
  opacity: 0.82;
  transition: border-color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.product-gallery-thumb:hover {
  opacity: 1;
}

.product-gallery-thumb.is-active {
  border-color: var(--accent, #a78bfa);
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.35);
}

.product-gallery-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}

.product-detail-info {
  padding: 0.25rem 0;
}

.product-detail-info h1 {
  font-family: var(--font-display);
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  line-height: 1.15;
}

.description {
  margin-top: 1.1rem;
  color: #c8c4d4;
}

.stock {
  color: var(--muted);
  font-size: 0.95rem;
}

.product-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.product-buy-qty {
  margin-bottom: 0 !important;
}

.product-buy-qty input {
  max-width: 5.5rem;
  margin-top: 0.35rem;
}

.product-buy .btn {
  width: auto;
  margin-top: 0;
}

.product-buy-hint {
  margin-top: 1.1rem;
  font-size: 0.95rem;
}

.product-actions-row {
  margin-top: 1rem;
}

.product-fav-form {
  margin: 0;
}

.btn-fav.is-liked {
  border-color: rgba(230, 0, 18, 0.45);
  color: #ff9aa8;
}

.store-filters {
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem;
}

.store-filter-group {
  margin-bottom: 1rem;
}

.store-filter-group:last-child {
  margin-bottom: 0;
}

.store-filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.store-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.store-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: #e8e4ef !important;
  text-decoration: none !important;
}

.store-chip:hover {
  border-color: var(--border-strong);
  color: #fff !important;
}

.store-chip.is-active {
  background: rgba(230, 0, 18, 0.2);
  border-color: rgba(230, 0, 18, 0.45);
  color: #fff !important;
}

.product-card-meta {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.page-favorites .product-card {
  display: flex;
  flex-direction: column;
}

.fav-remove-inline {
  margin: 0.5rem 1rem 1rem;
}

.cart-remove-form-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-cart .cart-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 1rem;
}

.cart-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cart-table th,
.cart-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-table thead th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8498;
}

.cart-qty-input {
  max-width: 4.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}

.cart-actions-row {
  margin-bottom: 1.25rem;
}

.card-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(12px);
}

.cart-checkout-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.cart-balance-line {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.95rem;
}

.cart-balance-amount {
  color: var(--text);
}

.cart-pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.cart-checkout-hint code {
  font-size: 0.78rem;
  word-break: break-all;
}

.profile-balance-pill {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.profile-balance-pill strong {
  color: #86efac;
}

.admin-balance-form {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 14rem;
}

.admin-balance-input,
.admin-balance-note {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.85rem;
}

.col-balance .user-balance-display {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-coupon-input {
  margin-top: 0.35rem;
  width: 100%;
  max-width: 16rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.profile-tab {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--muted) !important;
  text-decoration: none !important;
}

.profile-tab:hover {
  color: #fff !important;
}

.profile-tab.is-active {
  background: rgba(230, 0, 18, 0.18);
  border-color: rgba(230, 0, 18, 0.35);
  color: #fff !important;
}

.form-card--profile {
  max-width: 440px;
}

.profile-section-title {
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.profile-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.profile-orders-table th,
.profile-orders-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-dash-coupon {
  display: block;
  font-size: 0.72rem;
  margin-top: 0.2rem;
}

.admin-dash-disc {
  font-size: 0.82rem;
}

.inline-form--coupon {
  display: inline-block;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.form-card--admin-inline {
  margin-bottom: 1.5rem;
}

.form-inline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.form-inline-row .flex-grow {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.form-inline-title {
  margin-top: 0;
  font-size: 1.05rem;
}

.form-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.form-wide {
  max-width: 640px;
  margin: 0;
}

.form-card h1 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.form-card label {
  display: block;
  margin-bottom: 1.05rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.form-card input,
.form-card textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.15);
}

.form-card button.btn {
  width: 100%;
  margin-top: 0.65rem;
}

.form-footer {
  margin-top: 1.15rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-forgot {
  margin: -0.35rem 0 0.5rem;
  font-size: 0.88rem;
}

.form-forgot a {
  color: var(--accent);
}

.form-intro {
  margin: -0.25rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-dashboard {
  text-align: center;
  padding-top: clamp(2.5rem, 12vh, 5.5rem);
  padding-bottom: 3rem;
}

.admin-dashboard .page-title {
  margin-bottom: 0.65rem;
}

.admin-dashboard .lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  max-width: 28rem;
}

.admin-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}

.admin-links li {
  margin: 0;
}

.admin-dashboard-intro {
  text-align: center;
}

.admin-dashboard-panels {
  text-align: left;
  max-width: 72rem;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .admin-dashboard-panels {
    grid-template-columns: 1fr;
  }
}

.admin-dash-panel {
  background: rgba(12, 10, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.admin-dash-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-dash-panel__title {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.admin-dash-panel__link {
  font-size: 0.86rem;
  font-weight: 500;
  color: #ff8a96 !important;
  text-decoration: none !important;
}

.admin-dash-panel__link:hover {
  color: #fff !important;
}

.admin-dash-empty {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

.admin-dash-table-wrap {
  overflow-x: auto;
  margin: 0 -0.15rem;
}

.admin-dash-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.admin-dash-table th,
.admin-dash-table td {
  padding: 0.5rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.admin-dash-table thead th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8498;
  font-weight: 600;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.admin-dash-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-dash-email {
  word-break: break-all;
  max-width: 11rem;
}

.admin-dash-date {
  font-size: 0.8rem;
  white-space: nowrap;
}

.admin-dash-id {
  font-weight: 600;
  color: #ff9aa8;
  white-space: nowrap;
}

.admin-dash-buyer-name {
  display: block;
  font-weight: 600;
}

.admin-dash-buyer-email {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.2rem;
  word-break: break-all;
}

.admin-dash-items {
  font-size: 0.8rem;
  color: #c8c4d4;
  max-width: 18rem;
}

.admin-dash-price {
  font-weight: 600;
  white-space: nowrap;
}

.admin-dash-role {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-dash-role--admin {
  background: rgba(230, 0, 18, 0.18);
  color: #ff9aa8;
  border: 1px solid rgba(230, 0, 18, 0.28);
}

.admin-dash-role--user {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-orders-page {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem 1.35rem 3rem;
}

.table-wrap--orders-admin {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(12, 10, 16, 0.55);
  border-radius: var(--radius);
}

.data-table--orders-admin {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table--orders-admin th,
.data-table--orders-admin td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.data-table--orders-admin thead th {
  color: #8a8498;
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table--orders-admin tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table--orders-admin .col-order-items {
  font-size: 0.86rem;
  color: #c8c4d4;
  max-width: 22rem;
}

.admin-orders-buyer-email {
  font-size: 0.88rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-products-page {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem 1.35rem 3rem;
}

.admin-products-head {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted) !important;
  text-decoration: none !important;
}
.admin-back-link:hover {
  color: #fff !important;
  text-shadow: none;
}

.page-title--admin-list {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 1.1rem;
  color: #fff;
}

.admin-products-head .btn-new-product {
  padding: 0.6rem 1.35rem;
  font-size: 0.92rem;
}

.table-wrap--products {
  margin-top: 0;
  padding: 1rem 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(12, 10, 16, 0.55);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.admin-users-page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.35rem 3rem;
}

.admin-users-lead {
  max-width: 36rem;
  margin: -0.35rem auto 0;
  font-size: 0.92rem;
}

.table-wrap--users {
  margin-top: 1.25rem;
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(12, 10, 16, 0.55);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.data-table--users {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table--users th,
.data-table--users td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.data-table--users thead th {
  color: #8a8498;
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table--users tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.user-email-cell {
  word-break: break-all;
  max-width: 16rem;
}

.col-verify .verify-date {
  display: block;
  font-size: 0.72rem;
  margin-top: 0.28rem;
}

.badge-verified {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(63, 185, 80, 0.18);
  color: #8ee4a0;
  border: 1px solid rgba(63, 185, 80, 0.35);
}

.badge-pending {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(230, 190, 90, 0.12);
  color: #e8d4a8;
  border: 1px solid rgba(230, 190, 90, 0.3);
}

.admin-user-form {
  margin: 0;
}

.admin-user-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.admin-user-role {
  font: inherit;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.admin-user-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  cursor: pointer;
}

.td-resend {
  white-space: nowrap;
}

.data-table--products {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.7rem;
  font-size: 0.94rem;
}

.data-table--products thead tr th {
  border: none;
  padding: 0.35rem 0.85rem 0.5rem;
  background: transparent;
  color: #8a8498;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.data-table--products .th-thumb {
  width: 4.5rem;
}

.data-table--products .th-actions {
  width: 1%;
  text-align: right;
}

.data-table--products tbody tr.product-row td {
  border: none;
  vertical-align: middle;
  padding: 0.85rem 1rem;
  background: linear-gradient(165deg, rgba(28, 26, 34, 0.98) 0%, rgba(18, 16, 24, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease;
}

.data-table--products tbody tr.product-row td:first-child {
  border-radius: 12px 0 0 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table--products tbody tr.product-row td:last-child {
  border-radius: 0 12px 12px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table--products tbody tr.product-row:hover td {
  background: linear-gradient(165deg, rgba(36, 28, 32, 0.98) 0%, rgba(26, 18, 22, 0.96) 100%);
  box-shadow: inset 3px 0 0 var(--accent);
}

.data-table--products tbody tr.product-row:hover td:first-child {
  border-left-color: rgba(230, 0, 18, 0.45);
}

.data-table--products .td-thumb {
  width: 4.5rem;
  padding-right: 0.35rem !important;
}

.data-table--products .td-thumb img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
}

.data-table--products .col-product-name {
  font-weight: 600;
  font-size: 0.98rem;
  color: #f2f0f7;
  letter-spacing: -0.01em;
}

.data-table--products .col-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #ffc2cb;
  white-space: nowrap;
}

.data-table--products .col-stock {
  width: 5rem;
}

.data-table--products .stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e8e4ef;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.data-table--products .td-actions {
  text-align: right;
  white-space: nowrap;
}

.data-table--products .btn-edit-row {
  background: rgba(230, 0, 18, 0.2) !important;
  border: 1px solid rgba(230, 0, 18, 0.45) !important;
  box-shadow: none !important;
  color: #fff !important;
}

.data-table--products .btn-edit-row:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.empty--admin-products {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  color: var(--muted);
}

.admin-product-form-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.35rem 3rem;
}

.admin-product-form-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.admin-product-form-head .admin-back-link {
  margin-bottom: 0.85rem;
}

.admin-product-form-page .form-card.form-wide.form-card--admin-product {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.form-card--admin-product .preview-inline {
  display: inline-block;
  vertical-align: middle;
}

.form-card--admin-product .form-fieldset {
  margin: 1.25rem 0 1rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.15);
}

.form-card--admin-product .form-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-card--admin-product .small-hint {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.admin-gallery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.admin-gallery-item img {
  border-radius: 6px;
  object-fit: cover;
}

.admin-gallery-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.admin-gallery-legacy {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .data-table--products thead {
    display: none;
  }

  .data-table--products tbody tr.product-row {
    display: block;
    margin-bottom: 1rem;
  }

  .data-table--products tbody tr.product-row td {
    display: block;
    border-radius: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-align: center;
  }

  .data-table--products tbody tr.product-row td:first-child {
    border-radius: 12px 12px 0 0 !important;
    padding-top: 1.1rem;
  }

  .data-table--products tbody tr.product-row td:last-child {
    border-radius: 0 0 12px 12px !important;
    padding-bottom: 1.1rem;
  }

  .data-table--products .td-thumb img {
    margin: 0 auto;
  }

  .data-table--products .td-actions {
    text-align: center;
  }
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table img {
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.td-actions {
  white-space: nowrap;
}
.td-actions .inline-form {
  display: inline-block;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.preview-inline {
  vertical-align: middle;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-left: 0.5rem;
}

.page-support .page-header-block {
  margin-bottom: 1.5rem;
}
.support-back {
  margin: 0 0 1rem;
}
.support-back a {
  color: var(--muted);
  font-size: 0.95rem;
}
.support-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.support-list-table th,
.support-list-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.support-list-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.support-list-table tr:last-child td {
  border-bottom: none;
}

.support-user-list-hint {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 0.85rem;
  max-width: 40rem;
}

.support-list-table--user .th-support-user-action,
.support-list-table--user .td-support-user-action {
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}

.support-user-ticket-id-link {
  font-weight: 700;
  color: #fecaca;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-user-ticket-id-link:hover {
  color: #fff;
}

.support-user-subject-link {
  font-weight: 600;
  color: #fecaca;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-user-subject-link:hover {
  color: #fff;
}

.support-user-open-btn {
  font-weight: 600;
}
.support-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.support-status--open {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}
.support-status--answered {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}
.support-status--resolved {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
}
.support-status--closed {
  background: rgba(115, 115, 115, 0.25);
  color: var(--muted);
}
.support-ticket-head {
  margin-bottom: 1.25rem;
}
.support-ticket-meta {
  margin-top: 0.35rem;
}

.support-thread-intro {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.support-reply-heading {
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

.support-bubble--customer-reply {
  border-left-color: rgba(34, 197, 94, 0.45);
}
.support-thread {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.support-thread--admin {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.support-bubble {
  max-width: min(100%, 42rem);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}
.support-bubble--user {
  align-self: flex-start;
  border-left: 3px solid rgba(255, 255, 255, 0.25);
}
.support-bubble--staff {
  align-self: flex-end;
  border-left: 3px solid var(--accent, #e60012);
  background: rgba(230, 0, 18, 0.08);
}
.support-bubble-meta {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.support-bubble-body {
  line-height: 1.55;
  word-break: break-word;
}
.support-bubble-time {
  margin-top: 0.65rem;
  font-size: 0.82rem;
}
.form-card--support-new label,
.support-reply-form label {
  display: block;
  margin-bottom: 1rem;
}
.form-card--support-new input[type="text"],
.form-card--support-new textarea,
.support-reply-form textarea,
.support-admin-reply-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.admin-support-page .support-admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.support-admin-list-hint {
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.data-table--support-admin .th-support-action,
.data-table--support-admin .td-support-action {
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}

.data-table--support-admin .support-admin-open-btn {
  font-weight: 600;
}

.data-table--support-admin .td-support-id {
  vertical-align: middle;
}

.support-ticket-id-link {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-admin-subject-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #fecaca;
}

.support-admin-subject-link:hover {
  color: #fff;
}

.support-admin-msg-preview {
  font-size: 0.84rem;
  color: #b4afc4;
  line-height: 1.45;
  max-width: 22rem;
}
.admin-open-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(230, 0, 18, 0.25);
  color: #fecaca;
  vertical-align: middle;
}
.admin-support-actions {
  padding: 1.25rem;
}
.support-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.support-status-actions .inline-form {
  margin: 0;
}
.support-admin-reply-form textarea {
  min-height: 120px;
  margin-bottom: 0.75rem;
}
