/* =========================
   DeceptionDMA SellAuth Theme
   SAFE VERSION
   ========================= */

/* ---------- Core Variables ---------- */

:root{
  --dm-bg0:#05040a;
  --dm-bg1:#0b0718;

  --dm-text: 238 240 255;
  --dm-muted: 238 240 255;

  --dm-accent: 128 90 213;
  --dm-accent2: 80 0 255;

  --dm-card-bg: rgba(255,255,255,.035);
}

/* Map SellAuth tokens */
:root{
  --cl-accent: var(--dm-accent);
  --altcha-color-border: rgba(255,255,255,.08);
  --altcha-color-text: rgb(var(--dm-text));
}

/* ---------- Background ---------- */

html, body{
  background:
    linear-gradient(
      180deg,
      var(--dm-bg1) 0%,
      #080513 45%,
      var(--dm-bg0) 100%
    ) !important;

  background-attachment: fixed !important;
  color: rgb(var(--dm-text)) !important;
}

/* Glow overlay */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(700px 420px at 60% 18%, rgba(128,90,213,.18), transparent 60%),
    radial-gradient(600px 520px at 18% 82%, rgba(80,0,255,.12), transparent 65%);
}

/* Ambient depth layer */
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-2;
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(128,90,213,.06), transparent 65%),
    radial-gradient(900px 600px at 10% 90%, rgba(80,0,255,.05), transparent 65%);
}

/* ---------- Typography ---------- */

a{
  color: rgb(var(--dm-text));
}

a:hover{
  color: rgba(var(--dm-text), .9);
}

/* ---------- Inputs ---------- */

input,
textarea,
select{
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: rgb(var(--dm-text)) !important;
}

input::placeholder,
textarea::placeholder{
  color: rgba(var(--dm-muted), .45);
}

input:focus,
textarea:focus,
select:focus{
  outline: none !important;
  border-color: rgba(var(--dm-accent), .4) !important;
  box-shadow: 0 0 0 4px rgba(var(--dm-accent), .18) !important;
}

/* ---------- Buttons ---------- */

button,
.btn,
[class*="btn"]{
  border-radius: 14px;
}

button.bg-accent-500,
.bg-accent-500,
.btn-primary{
  background: linear-gradient(
    135deg,
    rgba(128,90,213,.95),
    rgba(80,0,255,.95)
  ) !important;

  box-shadow:
    0 10px 30px rgba(128,90,213,.35),
    inset 0 0 0 1px rgba(255,255,255,.15);
}

button.bg-accent-500:hover,
.bg-accent-500:hover,
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow:
    0 16px 45px rgba(128,90,213,.55),
    inset 0 0 0 1px rgba(255,255,255,.25);
}

/* ---------- Product / Group Cards (FLAT STYLE) ---------- */

.product-card,
.group-card,
.store-card,
[class*="product-card"],
[class*="group-card"],
[class*="store-card"]{

  /* Remove inner box look */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  border-radius: 18px !important;

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

/* ✅ Make the tile itself the hover surface */
.product-card,
.group-card,
.store-card,
[class*="product-card"],
[class*="group-card"],
[class*="store-card"]{
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* ✅ If the click target is a child link, make it fill the tile */
.product-card a,
.group-card a,
.store-card a,
[class*="product-card"] a,
[class*="group-card"] a,
[class*="store-card"] a{
  display: block;
  height: 100%;
}

/* ✅ Hover triggers for the whole tile (including text area) */
.product-card:hover,
.product-card:focus-within,
.group-card:hover,
.group-card:focus-within,
.store-card:hover,
.store-card:focus-within,
[class*="product-card"]:hover,
[class*="product-card"]:focus-within,
[class*="group-card"]:hover,
[class*="group-card"]:focus-within,
[class*="store-card"]:hover,
[class*="store-card"]:focus-within{
  transform: translateY(-2px);
  box-shadow:
    0 20px 55px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.06) inset !important;
}

/* ✅ Optional glow overlay across the full tile */
.product-card::after,
.group-card::after,
.store-card::after,
[class*="product-card"]::after,
[class*="group-card"]::after,
[class*="store-card"]::after{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  opacity:0;
  transition: opacity .18s ease;
  background:
    radial-gradient(700px 140px at 30% 0%, rgba(128,90,213,.18), transparent 60%),
    radial-gradient(600px 140px at 90% 70%, rgba(80,0,255,.10), transparent 62%);
}

.product-card:hover::after,
.product-card:focus-within::after,
.group-card:hover::after,
.group-card:focus-within::after,
.store-card:hover::after,
.store-card:focus-within::after,
[class*="product-card"]:hover::after,
[class*="product-card"]:focus-within::after,
[class*="group-card"]:hover::after,
[class*="group-card"]:focus-within::after,
[class*="store-card"]:hover::after,
[class*="store-card"]:focus-within::after{
  opacity:1;
}

/* ✅ NEW: Highlight the INNER product box (text/background wrapper) on tile hover
   (this keeps your outer hover effect AND makes the inner box glow too) */
.product-card:hover .bg-card,
.product-card:focus-within .bg-card,
.group-card:hover .bg-card,
.group-card:focus-within .bg-card,
.store-card:hover .bg-card,
.store-card:focus-within .bg-card{
  box-shadow:
    0 18px 44px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 0 34px rgba(128,90,213,.22) !important;
  border-color: rgba(255,255,255,.14) !important;
}

/* Extra fallback: if SellAuth uses a rounded wrapper instead of bg-card */
.product-card:hover [class*="rounded"],
.product-card:focus-within [class*="rounded"],
.group-card:hover [class*="rounded"],
.group-card:focus-within [class*="rounded"]{
  border-color: rgba(255,255,255,.14) !important;
}

/* ---------- Images ---------- */

.product-card img,
.group-card img{
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.55));
}

/* ---------- Dropdowns ---------- */

.choices .choices__list.choices__list--dropdown{
  background: rgba(5,4,10,.92) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  backdrop-filter: blur(10px);
}

.choices .choices__list--dropdown .choices__item--selectable.is-highlighted{
  background: rgba(var(--dm-accent), .30) !important;
  color: rgb(var(--dm-text)) !important;
}

/* ---------- Footer ---------- */

footer{
  background: rgba(5,4,10,.85) !important;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar{
  width: 10px;
}

::-webkit-scrollbar-track{
  background: rgba(0,0,0,.4);
}

::-webkit-scrollbar-thumb{
  background: rgba(128,90,213,.35);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover{
  background: rgba(128,90,213,.55);
}

/* =========================
   DeceptionDMA Footer Styles
   ========================= */

.dm-footer{
  background: rgba(5,4,10,.80);
  border-top: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  border-radius: 0 !important;
}

.dm-footer__wrap{
  padding: 36px 16px 18px;
}

/* Top grid */
.dm-footer__top{
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 34px;
  align-items: start;
}

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

/* Brand block */
.dm-footer__brandLink{
  display:flex;
  gap:14px;
  align-items:flex-start;
  text-decoration:none;
}

.dm-footer__logo{
  width:44px;
  height:44px;
  object-fit:contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.55));
}

.dm-footer__name{
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dm-footer__tagline{
  margin-top: 8px;
  max-width: 520px;
  opacity: .70;
  line-height: 1.55;
  font-size: .95rem;
}

/* Pills */
.dm-footer__pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 16px;
}

.dm-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  font-size: .8rem;
  opacity: .92;
}
.dm-dot{
  width:8px; height:8px; border-radius:999px;
  box-shadow: 0 0 18px rgba(128,90,213,.22);
}
.dm-dot--green{ background: rgba(60,255,160,.9); box-shadow: 0 0 18px rgba(60,255,160,.22); }
.dm-dot--blue{  background: rgba(90,160,255,.9); box-shadow: 0 0 18px rgba(90,160,255,.22); }
.dm-dot--gold{  background: rgba(255,210,60,.9); box-shadow: 0 0 18px rgba(255,210,60,.18); }

/* Socials */
.dm-footer__socials{
  display:flex;
  gap:10px;
  margin-top: 18px;
}

.dm-social{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  opacity:.88;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.dm-social:hover{
  transform: translateY(-1px);
  opacity:1;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 16px 40px rgba(0,0,0,.45);
}

/* Columns */
.dm-footer__cols{
  display:grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 18px 28px;
}

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

.dm-col__title{
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  opacity: .95;
}

.dm-col__link{
  display:block;
  padding: 6px 0;
  opacity: .68;
  transition: opacity .15s ease, transform .15s ease;
}
.dm-col__link:hover{
  opacity: 1;
  transform: translateX(2px);
}

/* Divider + bottom bar */
.dm-footer__bottom{
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 14px;
  opacity: .78;
}

@media (max-width: 520px){
  .dm-footer__bottom{
    flex-direction: column;
    align-items:flex-start;
  }
}

/* Status pill */
.dm-status-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.dm-status-dot{
  width:8px; height:8px; border-radius:999px;
  background: rgba(60,255,160,.9);
  box-shadow: 0 0 18px rgba(60,255,160,.22);
}