:root{
  --bg:#0b0f14;
  --panel:#0f1722;
  --panel2:#0c1420;
  --text:#e7eef8;
  --muted:#9fb0c4;
  --border:rgba(255,255,255,.10);
  --green:#2cff8f;
  --green2:#1fd37a;
  --danger:#ff5a5a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --radius2: 20px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 700px at 20% 0%, rgba(44,255,143,.08), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(31,211,122,.05), transparent 60%),
              var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 60px;
}

.site-header{
  position: sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.75);
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  gap:18px;
  padding: 14px 18px;
}

.brand{
  font-weight:800;
  letter-spacing:.5px;
  text-decoration:none !important;
}
.brand::before{
  content:"";
  display:inline-block;
  width:10px;height:10px;
  border-radius:999px;
  margin-right:10px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(44,255,143,.45);
  vertical-align:middle;
}

.nav{
  display:flex;
  gap:14px;
  margin-left: 6px;
  flex: 1;
}
.nav a{
  padding:8px 10px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration:none !important;
}
.nav a.active{
  color: var(--text);
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}

.nav-right{ display:flex; gap:10px; align-items:center; }

.site-footer{
  border-top:1px solid var(--border);
  padding: 18px;
  color: var(--muted);
  text-align:center;
}

.footer-nav{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.footer-nav a{
  color: var(--muted);
  text-decoration:none;
}
.footer-nav a:hover{ color: var(--text); }
.footer-sep{ opacity: .55; }

/* Profile key/value list */
.kv{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:10px 12px;
  align-items:center;
  margin-top: 10px;
}
.kv .k{ color: var(--muted); }
.kv .v{ word-break: break-word; }

.hero{
  padding: 34px 0 18px;
}
.hero h1{
  font-size: 48px;
  margin: 0 0 10px;
}
.lead{
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px;
  max-width: 70ch;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.section{ margin-top: 22px; }
.section-head h1, .section-head h2{
  margin: 0 0 8px;
}
.section-head p{
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 85ch;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 38px; }
}

.card, .panel{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

.panel{
  padding: 16px;
  cursor: pointer;
  text-decoration: none !important;
  position: relative;
  overflow:hidden;
}
.panel::after{
  content:"";
  position:absolute;
  inset:-40px -60px auto auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(44,255,143,.10);
  filter: blur(2px);
}
.panel:hover{
  border-color: rgba(44,255,143,.55);
  box-shadow: 0 12px 35px rgba(0,0,0,.45);
}
.panel .name{ font-weight:800; font-size: 18px; margin:0 0 6px; }
.panel .tagline{ color: var(--muted); margin:0 0 10px; }
.panel .meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color: var(--muted);
  font-size: 13px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius:999px;
  border:1px solid rgba(44,255,143,.35);
  color: var(--text);
  background: rgba(44,255,143,.06);
}

.card{ padding: 16px; }
.card h2{ margin:0 0 10px; }
.card p{ color: var(--muted); }

.btn{
  appearance:none;
  border: 1px solid rgba(44,255,143,.45);
  background: rgba(44,255,143,.10);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:700;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
  text-decoration:none !important;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn:hover{ background: rgba(44,255,143,.16); border-color: rgba(44,255,143,.65); }
.btn:active{ transform: translateY(1px); }
.btn.ghost{
  border-color: var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.btn.ghost:hover{ background: rgba(255,255,255,.06); }

.input{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
}
.input:focus{
  border-color: rgba(44,255,143,.55);
  box-shadow: 0 0 0 3px rgba(44,255,143,.12);
}

.form{ display:grid; gap: 10px; }
.label{ color: var(--muted); font-size: 14px; }

.status{ margin: 6px 0 0; min-height: 20px; color: var(--muted); }
.status.ok{ color: var(--green2); }
.status.err{ color: var(--danger); }

.list{ display:grid; gap: 12px; }
.item{
  padding: 14px;
  display:grid;
  gap: 8px;
}
.item .top{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.item .title{ font-weight:800; font-size: 18px; margin:0; }
.item .desc{ margin:0; color: var(--muted); }
.muted{ color: var(--muted); }
.hidden{ display:none !important; }

.toolbar{
  display:flex;
  gap: 12px;
  align-items:center;
  margin: 14px 0;
}
.toolbar .input{ max-width: 320px; }

.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px){ .two-col{ grid-template-columns: 1fr; } }

.note{
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border:1px dashed rgba(255,255,255,.18);
  color: var(--muted);
  background: rgba(255,255,255,.02);
}

/* --- Product page --- */
.crumbs{ margin: 18px 0 10px; }
.product-page{ padding-bottom: 22px; }
.product-hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items:start;
}
.product-ctas{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin: 14px 0 6px;
}
.product-body{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bullets{ padding-left: 18px; }
.bullets li{ margin: 8px 0; }

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

/* --- Product media thumbnails + lightbox --- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  align-items: start;
}

.media-thumb {
  width: 100%;
  aspect-ratio: 16 / 10; 
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  cursor: pointer;
  position: relative;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .15s ease;
}

.media-thumb:hover img {
  transform: scale(1.03);
}

.media-thumb .media-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.12);
}

/* Lightbox modal */
.media-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}

.media-lightbox.open { display: block; }

.media-lightbox .lb-panel {
  width: min(1100px, calc(100vw - 24px));
  height: min(760px, calc(100vh - 24px));
  margin: 12px auto;
  border-radius: 18px;
  background: rgba(10,14,16,.92);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 25px 80px rgba(0,0,0,.6);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.media-lightbox .lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.media-lightbox .lb-title {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-lightbox .lb-close {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.media-lightbox .lb-main {
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: auto;
}

.media-lightbox .lb-main img,
.media-lightbox .lb-main iframe {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
}

.media-lightbox .lb-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  align-items: center;
}

.media-lightbox .lb-btn {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.media-lightbox .lb-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
}

.media-lightbox .lb-strip::-webkit-scrollbar { height: 10px; }
.media-lightbox .lb-strip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}
.media-lightbox .lb-strip::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
  border-radius: 999px;
}

.media-lightbox .lb-thumb {
  flex: 0 0 auto;
  width: 120px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  cursor: pointer;
  scroll-snap-align: start;
  position: relative;
}

.media-lightbox .lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-lightbox .lb-thumb.active {
  outline: 2px solid rgba(46, 204, 113, .6);
}

.btn:disabled:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}

.btn:disabled,
.btn[disabled]{
  opacity: .45;
  cursor: not-allowed;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.45);
  filter: saturate(.25);

  /* IMPORTANT: lets the wrapper receive hover for tooltip */
  pointer-events: none;
}

/* --- Tooltips (for disabled Buy buttons) --- */
.tooltip{ position: relative; display: inline-flex; }
.tooltip[data-tip=""]::after,
.tooltip[data-tip=""]::before{ display:none; }

.tooltip::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.82);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 35px rgba(0,0,0,.55);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.tooltip::before{
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(0,0,0,.82);
  opacity: 0;
  transition: opacity .12s ease;
}

.tooltip:hover::after,
.tooltip:hover::before{
  opacity: 1;
}
