*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:#0d0f14;
  color:#fff;
  min-height:100vh;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{width:min(1120px,calc(100% - 32px));margin:0 auto}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(10,12,18,.94);
  backdrop-filter:blur(8px);
  border-bottom:1px solid #242938;
}

.header-row,.footer-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 0;
}

.brand{display:flex;align-items:center;gap:12px}
.logo{
  width:62px;
  height:62px;
  object-fit:contain;
  border-radius:14px;
  background:#131722;
  padding:6px;
}
.brand-name{font-size:1.35rem;font-weight:800}
.brand-tag,.small-copy{color:#b7bfd1}

.nav-links{display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.nav-links a{color:#dfe5f1}
.nav-links a:hover{color:#fff}

.hero{
  background:linear-gradient(180deg,#131925 0%,#0d0f14 100%);
  text-align:center;
  padding:56px 0 24px;
}
.hero-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.hero h1{font-size:clamp(2.2rem,5vw,4rem);margin:0 0 12px}
.hero p{margin:0;color:#c1c9da}
.hero-lead{font-size:1.15rem;font-weight:700;color:#fff !important}
.hero-desc{max-width:860px;margin:14px auto 0 !important}
.hero-trust{margin-top:16px !important;color:#cdd5e5 !important;font-size:.95rem}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
  justify-content:center;
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:12px;
  padding:12px 16px;
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.button:hover{transform:translateY(-1px)}
.button.primary{background:#df2a2a;color:#fff;box-shadow:0 8px 22px rgba(223,42,42,.35)}
.button.secondary{background:#242b3b;color:#fff}
.button.danger{background:#7d2222;color:#fff;padding:8px 12px}
.button.full{width:100%}
.button.small{padding:8px 12px;font-size:.9rem}
.button.disabled,
.button[disabled]{
  opacity:.55;
  pointer-events:none;
}

.quick-links{padding:24px 0 0}
.quick-panel,.content-box,.empty-state,.product-card,.stat-box{
  background:#151a24;
  border:1px solid #252c3c;
  border-radius:18px;
  padding:18px;
}
.store-section,.page-wrap{padding:32px 0}
.info-section{padding-top:8px;padding-bottom:24px}

.section-head{
  margin-bottom:18px;
}
.section-head h2,.content-box h1,.content-box h2{margin:0 0 6px}
.section-head p{margin:0;color:#b7bfd1}

.category-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:20px;
}
.category-card{
  display:block;
  background:#1a2130;
  border:1px solid #252c3c;
  border-radius:18px;
  padding:20px;
  cursor:pointer;
  transition:transform .2s ease,border-color .2s ease,background .2s ease;
}
.category-card:hover{
  transform:translateY(-4px);
  border-color:#3b4a66;
  background:#1b2436;
}
.category-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  background:#242b3b;
  border-radius:12px;
  margin-bottom:14px;
  font-size:1.2rem;
}
.category-card h3{margin:0 0 8px}
.category-card p{margin:0;color:#c1c9da}

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:22px;
  margin-top:18px;
}
.product-card{
  text-align:center;
  overflow:hidden;
  background:linear-gradient(180deg,#151a24 0%,#111722 100%);
  transition:transform .2s ease, box-shadow .2s ease;
  position:relative;
  height:100%;
  display:flex;
  flex-direction:column;
}
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 28px rgba(0,0,0,.35);
}
.product-image-wrap{
  position:relative;
  min-height:280px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.product-image{
  display:block;
  max-width:320px;
  width:100%;
  height:auto;
  max-height:320px;
  object-fit:contain;
  margin:0 auto;
  border-radius:14px;
  background:linear-gradient(180deg,#101722 0%,#0c111a 100%);
  border:1px solid #2a3142;
  padding:14px;
  transition:transform .25s ease;
}
.product-card:hover .product-image{transform:scale(1.05)}
.placeholder{
  display:grid;
  place-items:center;
  color:#909ab0;
  min-height:260px;
  width:100%;
  border-radius:14px;
  background:linear-gradient(180deg,#101722 0%,#0c111a 100%);
  border:1px solid #2a3142;
}
.meta-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
  justify-content:center;
}
.pill{
  display:inline-block;
  background:#232a3a;
  color:#e6ebf6;
  border-radius:999px;
  padding:6px 10px;
  font-size:.82rem;
}
.pill.sold{background:#552222}
.pill.subtle{background:#1f314d;color:#dce9ff}
.product-card h3{margin:12px 0 8px}
.description{color:#c1c9da;min-height:54px}
.price{font-size:1.6rem;font-weight:800;margin-top:14px;color:#fff}
.sold-text{color:#ff8f8f}
.card-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
  justify-content:center;
}
.card-actions form{
  margin:0;
}
.card-actions .button{
  border:none;
}

.site-footer{
  border-top:1px solid #242938;
  margin-top:32px;
  padding-bottom:24px;
}

/* platform chips */
.platform-links{
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top:24px;
  flex-wrap:wrap;
}
.platform-chip{
  min-width:110px;
  height:78px;
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:linear-gradient(180deg,#1a2130 0%,#151b28 100%);
  border:1px solid #2f3950;
  border-radius:14px;
  transition:all .2s ease;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}
.platform-chip:hover{
  background:#242b3b;
  border-color:#44506b;
  transform:translateY(-2px);
}
.platform-chip img{width:34px;height:34px;display:block}
.platform-chip span{font-size:.8rem;color:#e6ebf6;font-weight:700;line-height:1}
.page-platform-links{justify-content:flex-start}

/* sold ribbon */
.sold-ribbon{
  position:absolute;
  top:16px;
  left:-34px;
  transform:rotate(-35deg);
  background:#df2a2a;
  color:#fff;
  font-weight:800;
  letter-spacing:.08em;
  font-size:.78rem;
  padding:8px 42px;
  z-index:2;
  box-shadow:0 8px 18px rgba(223,42,42,.28);
}

/* admin */
.admin-body{background:#0d0f14}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.admin-form-box{width:min(520px,100%)}
.admin-page{padding:28px 0 50px}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:18px 0}
.stat-box strong{display:block;font-size:2rem}
.stat-box span{display:block;color:#b7bfd1;margin-top:6px}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.admin-form{display:grid;gap:10px}
label{font-weight:700}
input,textarea,select{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid #2a3142;
  background:#0d0f14;
  color:#fff;
}
textarea{resize:vertical}
.checkbox-row{display:flex;gap:10px;align-items:center;font-weight:600}
.checkbox-row input{width:auto}
.alert{
  background:#203223;
  border:1px solid #2e4f35;
  color:#dbffe0;
  border-radius:14px;
  padding:12px 14px;
  margin:14px 0;
}
.alert.error{
  background:#3a2020;
  border-color:#5a2a2a;
  color:#ffd6d6;
}
.admin-list{display:grid;gap:12px}
.admin-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  border:1px solid #252c3c;
  border-radius:14px;
  padding:12px;
  background:#111620;
}
.admin-item-left{display:flex;gap:12px;align-items:center}
.thumb{
  width:68px;
  height:68px;
  object-fit:cover;
  border-radius:12px;
  background:#0d0f14;
  border:1px solid #2a3142;
}
.admin-cards-section{margin-top:20px}

/* break panels */
.live-breaks-panel,.current-break-panel,.countdown-panel,.break-card{
  background:linear-gradient(180deg,#171d2a 0%,#121722 100%);
}

.break-panel-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.live-badge{
  display:inline-block;
  background:#df2a2a;
  color:#fff;
  font-weight:800;
  font-size:.82rem;
  letter-spacing:.08em;
  padding:8px 12px;
  border-radius:999px;
  margin-bottom:14px;
  box-shadow:0 8px 22px rgba(223,42,42,.28);
}
.viewer-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#111827;
  color:#eaf1ff;
  border:1px solid #2a3142;
  border-radius:999px;
  padding:8px 12px;
  margin-bottom:14px;
  font-size:.86rem;
  font-weight:700;
}
.viewer-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#ff3a3a;
  box-shadow:0 0 0 6px rgba(255,58,58,.12);
}
.live-break-card,.current-break-card{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:18px;
  background:#101520;
  border:1px solid #2a3142;
  border-radius:16px;
}
.break-subtitle{font-weight:700;color:#fff !important;margin-bottom:8px !important}
.recent-grid .product-card{border-color:#2e3950}

/* single card page */
.single-card-layout{
  display:grid;
  grid-template-columns:minmax(320px,560px) minmax(320px,1fr);
  gap:24px;
  align-items:start;
}
.single-card-image-box{padding:20px}
.gallery-shell{width:100%}
.gallery-stage{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:420px;
  padding:18px;
  background:#0f1420;
  border:1px solid #2a3142;
  border-radius:16px;
  overflow:hidden;
}
.gallery-slide{display:none}
.gallery-slide.is-active{display:block}
.single-card-image{
  width:auto;
  max-width:100%;
  height:auto;
  max-height:520px;
  object-fit:contain;
  border-radius:12px;
  background:#0d0f14;
  margin:0 auto;
}
.single-card-title{margin:12px 0 8px !important;font-size:clamp(2rem,4vw,3rem)}
.single-card-details{display:grid;gap:10px;color:#d7ddea;margin-top:8px}
.single-card-description{margin-top:18px;color:#c1c9da;line-height:1.7}
.single-card-price{font-size:2rem;font-weight:800;margin-top:24px}
.gallery-thumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.gallery-thumb{
  width:72px;
  height:72px;
  padding:0;
  border:1px solid #2a3142;
  border-radius:12px;
  overflow:hidden;
  background:#101520;
  cursor:pointer;
  opacity:.8;
}
.gallery-thumb.is-active{border-color:#df2a2a;opacity:1}
.gallery-thumb img{width:100%;height:100%;object-fit:cover}
.gallery-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border:none;
  border-radius:999px;
  background:rgba(10,12,18,.72);
  color:#fff;
  font-size:1.8rem;
  cursor:pointer;
}
.gallery-prev{left:12px}
.gallery-next{right:12px}
.zoom-button{
  position:absolute;
  right:12px;
  bottom:12px;
  border:none;
  border-radius:10px;
  padding:10px 12px;
  background:rgba(10,12,18,.82);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.gallery-help{margin-top:10px;color:#b7bfd1;font-size:.92rem}
.share-note{min-height:22px;margin-top:12px;color:#b7bfd1;font-size:.95rem}
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.88);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:999;
}
.lightbox.is-open{display:flex}
.lightbox-image{
  max-width:min(96vw,1200px);
  max-height:92vh;
  object-fit:contain;
  border-radius:12px;
}
.lightbox-close{
  position:absolute;
  top:18px;
  right:18px;
  width:46px;
  height:46px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:2rem;
  cursor:pointer;
}

/* countdown + break manager */
.countdown-box{
  margin-top:16px;
  padding:16px 18px;
  border:1px solid #2a3142;
  border-radius:16px;
  background:#101520;
}
.countdown-text{
  font-size:1rem;
  color:#e9efff;
}
.progress-wrap{margin-top:16px}
.progress-label{
  font-size:.95rem;
  color:#d8deed;
  margin-bottom:8px;
}
.progress-bar{
  width:100%;
  height:12px;
  background:#0f1420;
  border:1px solid #2a3142;
  border-radius:999px;
  overflow:hidden;
}
.progress-bar span{
  display:block;
  height:100%;
  background:linear-gradient(90deg,#df2a2a 0%,#ff5b5b 100%);
}
.break-card-top{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}
.break-price-chip{
  background:#242b3b;
  color:#fff;
  border:1px solid #2f3950;
  border-radius:999px;
  padding:10px 14px;
  font-weight:800;
  white-space:nowrap;
}
.break-meta-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:18px;
}
.break-meta-box{
  background:#101520;
  border:1px solid #2a3142;
  border-radius:14px;
  padding:14px;
}
.break-meta-box strong{
  display:block;
  margin-bottom:6px;
}
.break-meta-box span{color:#c8d0e2}
.break-description{
  margin-top:16px;
  color:#d3dbec;
}
.break-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

/* spots */
.spot-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:12px;
  margin-top:20px;
}
.spot-tile{
  background:#101520;
  border:1px solid #2a3142;
  border-radius:14px;
  padding:14px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.spot-tile strong{font-size:.9rem}
.spot-tile.available strong{color:#b8ffd0}
.spot-tile.claimed strong{color:#ffd9a8}
.spot-tile.sold strong{color:#ffb8b8}

.spot-tile.paid{
  border:2px solid #22c55e;
  background:rgba(34,197,94,0.08);
}
.spot-owner{
  margin-top:6px;
  color:#22c55e;
  font-weight:700;
  font-size:13px;
}
@keyframes spotFlash{
  0%{
    background:rgba(34,197,94,0.6);
    transform:scale(1.03);
  }
  50%{
    background:rgba(34,197,94,0.3);
  }
  100%{
    background:rgba(34,197,94,0.08);
    transform:scale(1);
  }
}
.spot-tile.just-paid{
  animation:spotFlash 0.8s ease;
}

.spot-admin-list{display:grid;gap:10px}
.spot-admin-row{
  display:grid;
  grid-template-columns:1fr 180px;
  gap:10px;
}

/* cart */
.basket-page{
  padding:48px 0 64px;
}
.basket-topbar{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-bottom:26px;
  flex-wrap:wrap;
}
.basket-topbar a{
  text-decoration:none;
}
.basket-header{
  margin-bottom:24px;
}
.basket-header h1{
  margin:0 0 8px;
  font-size:2rem;
}
.basket-header p{
  margin:0;
  opacity:.8;
}
.basket-notice{
  margin:0 0 20px;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);
}
.basket-layout{
  display:grid;
  grid-template-columns:1.5fr 0.8fr;
  gap:24px;
  align-items:start;
}
.basket-items{
  display:grid;
  gap:16px;
}
.basket-card{
  display:grid;
  grid-template-columns:110px 1fr auto;
  gap:18px;
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
}
.basket-card-image img,
.basket-card-image .basket-placeholder{
  width:110px;
  height:110px;
  object-fit:cover;
  border-radius:14px;
  display:block;
  background:rgba(255,255,255,0.04);
}
.basket-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.9rem;
  opacity:.7;
}
.basket-card-body h3{
  margin:0 0 8px;
  font-size:1.1rem;
}
.basket-meta{
  margin:0 0 8px;
  opacity:.78;
  font-size:.95rem;
}
.basket-price{
  margin:0 0 12px;
  font-weight:700;
}
.basket-card-total{
  font-weight:800;
  font-size:1.1rem;
  white-space:nowrap;
  align-self:start;
}
.basket-form-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:10px;
}
.basket-form-row input[type="number"]{
  width:88px;
}
.basket-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border:none;
  border-radius:999px;
  text-decoration:none;
  cursor:pointer;
  font-weight:700;
}
.basket-btn-primary{
  background:#d61f36;
  color:#fff;
}
.basket-btn-secondary{
  background:rgba(255,255,255,0.08);
  color:#fff;
  border:1px solid rgba(255,255,255,0.1);
}
.basket-btn-link{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,0.12);
}
.basket-summary{
  padding:22px;
  border-radius:18px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  position:sticky;
  top:100px;
}
.basket-summary h2{
  margin-top:0;
  margin-bottom:16px;
}
.basket-summary-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.basket-summary-total{
  font-size:1.2rem;
  font-weight:800;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,0.08);
  margin-top:12px;
}
.basket-summary-note{
  margin:14px 0 18px;
  opacity:.72;
  font-size:.92rem;
  line-height:1.5;
}
.basket-empty{
  padding:24px;
  border-radius:18px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
}
.basket-empty p{
  margin-top:0;
}

/* responsive */
@media (max-width:860px){
  .header-row,.footer-row{flex-direction:column;align-items:flex-start}
  .category-grid,.single-card-layout,.admin-grid,.stats-grid{grid-template-columns:1fr}
  .product-image{max-width:260px}
  .single-card-image{max-height:380px}
  .gallery-stage{min-height:320px;padding:14px}
  .break-meta-grid{grid-template-columns:1fr 1fr}
  .basket-layout{grid-template-columns:1fr}
  .basket-summary{position:static}
  .basket-card{grid-template-columns:1fr}
  .basket-card-image img,
  .basket-card-image .basket-placeholder{
    width:100%;
    height:auto;
    aspect-ratio:1 / 1;
  }
  .basket-card-total{align-self:auto}
}
@media (max-width:700px){
  .live-break-card,.current-break-card{flex-direction:column;align-items:flex-start}
  .platform-chip{min-width:92px;height:72px}
  .platform-chip img{width:28px;height:28px}
  .break-card-top{flex-direction:column}
  .spot-admin-row{grid-template-columns:1fr}
  .break-meta-grid{grid-template-columns:1fr}
}