:root {
  --bg:#070b12;
  --surface:#0d141f;
  --raised:#131d2b;
  --line:rgba(255,255,255,.12);
  --text:#f7fbff;
  --muted:rgba(235,245,255,.66);
  --cyan:#27d7ff;
  --blue:#4c8dff;
  --green:#72d69f;
  --max:1160px
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:16px/1.55 Arial,"Noto Sans Arabic",sans-serif
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit
}
.wrap {
  width:min(var(--max),calc(100% - 40px));
  margin:auto
}
.top {
  background:#091827;
  color:#bdeeff;
  text-align:center;
  padding:8px 16px;
  font-size:14px;
  border-bottom:1px solid rgba(39,215,255,.18)
}
header {
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(7,11,18,.88);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line)
}
nav {
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  font-weight:800;
  letter-spacing:.2px;
  font-size:19px
}
.mark {
  width:36px;
  height:36px
}
.links {
  display:flex;
  align-items:center;
  gap:26px;
  color:var(--muted);
  font-size:15px
}
.links a:hover {
  color:var(--text)
}
.tools {
  display:flex;
  align-items:center;
  gap:10px
}
.iconbtn,.lang {
  height:42px;
  min-width:42px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  border-radius:8px;
  cursor:pointer;
  padding:0 12px
}
.lang {
  color:var(--cyan);
  font-weight:700
}
.menu {
  display:none
}
.hero {
  min-height:565px;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom:1px solid var(--line)
}
.hero:before {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(7,11,18,.12) 0%,rgba(7,11,18,.4) 43%,#070b12 78%),url('../assets/images/nova-hero.webp') center/cover no-repeat;
  transform:scale(1.01)
}
[dir=ltr] .hero:before {
  background:linear-gradient(90deg,#070b12 22%,rgba(7,11,18,.4) 57%,rgba(7,11,18,.12) 100%),url('../assets/images/nova-hero.webp') center/cover no-repeat
}
.hero .wrap {
  position:relative
}
.heroCopy {
  width:min(560px,52%);
  margin-inline-start:auto
}
.eyebrow {
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:#a8efff;
  font-size:14px;
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase
}
.dot {
  width:7px;
  height:7px;
  background:var(--cyan);
  box-shadow:0 0 18px var(--cyan);
  border-radius:50%
}
h1 {
  font-size:clamp(42px,6vw,72px);
  line-height:1.04;
  margin:18px 0 20px;
  letter-spacing:-2.3px
}
.grad {
  background:linear-gradient(90deg,var(--cyan),#8cb7ff);
  -webkit-background-clip:text;
  color:transparent
}
.lead {
  font-size:18px;
  color:var(--muted);
  max-width:540px;
  margin:0 0 30px
}
.actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap
}
.btn {
  min-height:48px;
  padding:0 22px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  border:1px solid transparent;
  cursor:pointer
}
.primary {
  background:linear-gradient(135deg,var(--cyan),var(--blue));
  color:#03101b
}
.secondary {
  border-color:var(--line);
  background:rgba(13,20,31,.72)
}
.trust {
  display:flex;
  gap:24px;
  margin-top:32px;
  color:var(--muted);
  font-size:14px;
  flex-wrap:wrap
}
.trust span {
  display:flex;
  align-items:center;
  gap:8px
}
.check {
  color:var(--green)
}
section {
  padding:72px 0
}
.sectionHead {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px
}
.sectionHead h2 {
  font-size:32px;
  margin:0 0 6px
}
.sectionHead p {
  margin:0;
  color:var(--muted)
}
.view {
  color:var(--cyan);
  font-weight:700;
  font-size:14px
}
.cats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px
}
.cat {
  min-height:150px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  padding:22px;
  position:relative;
  overflow:hidden;
  transition:.2s
}
.cat:hover {
  transform:translateY(-3px);
  border-color:rgba(39,215,255,.45);
  background:var(--raised)
}
.cat svg {
  width:42px;
  height:42px;
  color:var(--cyan);
  margin-bottom:20px
}
.cat h3 {
  margin:0 0 4px;
  font-size:17px
}
.cat p {
  margin:0;
  color:var(--muted);
  font-size:14px
}
.cat:after {
  content:"";
  position:absolute;
  width:70px;
  height:70px;
  border:1px solid rgba(39,215,255,.11);
  border-radius:50%;
  inset-inline-end:-22px;
  bottom:-22px
}
.products {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px
}
.product {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  transition:.2s
}
.product:hover {
  transform:translateY(-3px);
  border-color:rgba(76,141,255,.44)
}
.visual {
  height:210px;
  display:grid;
  place-items:center;
  background:radial-gradient(circle at 50% 42%,rgba(39,215,255,.13),transparent 53%),#0a111b;
  border-bottom:1px solid var(--line);
  position:relative
}
.visual svg {
  width:125px;
  height:125px;
  color:#6ba9ff;
  filter:drop-shadow(0 10px 24px rgba(39,215,255,.12))
}
.badge {
  position:absolute;
  top:14px;
  inset-inline-start:14px;
  background:#10283a;
  border:1px solid rgba(39,215,255,.25);
  color:#a8efff;
  border-radius:6px;
  padding:5px 9px;
  font-size:12px;
  font-weight:700
}
.info {
  padding:18px
}
.meta {
  font-size:12px;
  color:var(--cyan);
  text-transform:uppercase;
  letter-spacing:.7px
}
.info h3 {
  font-size:18px;
  margin:6px 0
}
.spec {
  color:var(--muted);
  font-size:14px;
  margin:0 0 18px;
  min-height:44px
}
.row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.soon {
  font-weight:800
}
.notify {
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  height:40px;
  padding:0 14px;
  border-radius:7px;
  cursor:pointer
}
.notify:hover {
  border-color:var(--cyan);
  color:var(--cyan)
}
.promise {
  background:linear-gradient(135deg,rgba(39,215,255,.08),rgba(76,141,255,.05));
  border-block:1px solid var(--line)
}
.promises {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px
}
.promiseItem {
  display:flex;
  gap:15px
}
.promiseIcon {
  flex:0 0 44px;
  height:44px;
  border-radius:9px;
  background:#102335;
  color:var(--cyan);
  display:grid;
  place-items:center
}
.promiseItem h3 {
  font-size:16px;
  margin:0 0 5px
}
.promiseItem p {
  font-size:14px;
  color:var(--muted);
  margin:0
}
.cta {
  padding-top:64px
}
.ctaBox {
  border:1px solid rgba(39,215,255,.24);
  background:linear-gradient(120deg,#0c1b29,#0d1420);
  border-radius:14px;
  padding:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px
}
.ctaBox h2 {
  font-size:30px;
  margin:0 0 8px
}
.ctaBox p {
  margin:0;
  color:var(--muted)
}
footer {
  padding:42px 0;
  border-top:1px solid var(--line);
  margin-top:72px
}
.foot {
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:14px
}
.focus:focus-visible,button:focus-visible,a:focus-visible {
  outline:2px solid var(--cyan);
  outline-offset:3px
}
@media(max-width:820px) {
  .links {
    display:none
  }
  .menu {
    display:block
  }
  .hero {
    min-height:640px;
    align-items:end;
    padding-bottom:58px
  }
  .hero:before {
    background:linear-gradient(0deg,#070b12 8%,rgba(7,11,18,.78) 52%,rgba(7,11,18,.12)),url('../assets/images/nova-hero.webp') 62% center/cover no-repeat!important
  }
  .heroCopy {
    width:100%;
    margin:0
  }
  .hero h1 {
    font-size:48px
  }
  .cats {
    grid-template-columns:repeat(2,1fr)
  }
  .products {
    grid-template-columns:repeat(2,1fr)
  }
  .promises {
    grid-template-columns:1fr
  }
  .ctaBox {
    align-items:flex-start;
    flex-direction:column
  }
  .sectionHead {
    align-items:flex-start;
    flex-direction:column
  }
}
@media(max-width:560px) {
  .wrap {
    width:min(100% - 28px,var(--max))
  }
  .top {
    font-size:12px
  }
  .hero {
    min-height:610px
  }
  .hero h1 {
    font-size:40px;
    letter-spacing:-1.4px
  }
  .lead {
    font-size:16px
  }
  .cats,.products {
    grid-template-columns:1fr
  }
  .sectionHead h2 {
    font-size:27px
  }
  .visual {
    height:190px
  }
  .foot {
    flex-direction:column
  }
  .ctaBox {
    padding:28px
  }
  .trust {
    gap:12px 18px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important
  }
}
/* ========================================    Shared navigation enhancements ======================================== */
@media (max-width: 820px) {
  header nav {
    position: relative;
  }
  .links.open {
    display: flex;
    position: absolute;
    z-index: 50;
    top: 64px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: rgba(7, 11, 18, 0.98);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
  }
  .links.open a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 7px;
  }
  .links.open a:hover {
    background: rgba(39,215,255,.08);
  }
}
.toast {
  position: fixed;
  z-index: 100;
  inset-inline-start: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  color: var(--text);
  background: #102335;
  border: 1px solid rgba(39,215,255,.4);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}
[dir="rtl"] .toast {
  transform: translate(50%, 20px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
[dir="rtl"] .toast.show {
  transform: translate(50%, 0);
}
.success {
  color: var(--green)!important;
  border-color: var(--green)!important;
}
/* ========================================    Shop page ======================================== */
.shop-page {
  min-height: 100vh;
}
.shop-hero {
  padding: 72px 0 48px;
  background: radial-gradient(circle at 80% 20%,rgba(39,215,255,.1),transparent 35%),var(--bg);
  border-bottom: 1px solid var(--line);
}
.shop-label,.section-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}
.shop-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(42px,6vw,68px);
}
.shop-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.shop-content {
  padding: 48px 0 72px;
}
.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 16px;
  background: rgba(13,20,31,.85);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.search-box {
  flex: 1;
  max-width: 440px;
}
.search-box input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  color: var(--text);
  background: #080f18;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  outline: none;
  font: inherit;
  appearance: none;
  transition: .2s;
}
.search-box input:hover {
  background: #0b1420;
  border-color: rgba(39,215,255,.35);
}
.search-box input:focus {
  background: #0b1420;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(39,215,255,.12);
}
.search-box input::placeholder {
  color: rgba(235,245,255,.45);
}
.filter-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-button {
  min-height: 46px;
  padding: 0 17px;
  color: var(--muted);
  background: #080f18;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  font: 700 14px/1 Arial,sans-serif;
  cursor: pointer;
  transition: .2s;
}
.filter-button:hover {
  color: var(--text);
  background: rgba(39,215,255,.08);
  border-color: rgba(39,215,255,.45);
  transform: translateY(-1px);
}
.filter-button.active {
  color: #04121c;
  background: linear-gradient(135deg,var(--cyan),var(--blue));
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(39,215,255,.16);
}
.product-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--cyan);
  font: 700 28px/1.2 Consolas,monospace;
  letter-spacing: 1px;
}
.product-code small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
}
a.notify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
}
.products-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.no-products {
  margin-top: 24px;
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed rgba(39,215,255,.35);
  border-radius: 12px;
}
.no-products strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}
.no-products p {
  margin: 0;
  color: var(--muted);
}
/* ========================================    Reusable product details page ======================================== */
.breadcrumbs {
  padding: 22px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.breadcrumbs .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.breadcrumbs a:hover {
  color: var(--cyan);
}
.product-overview {
  padding: 64px 0;
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(380px,.9fr);
  gap: 56px;
  align-items: start;
}
.product-main-image {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.product-main-image img {
  width: 100%;
  height: 520px;
  display: block;
  object-fit: cover;
}
.product-main-image::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 50%,rgba(7,11,18,.72));
}
.image-label {
  position: absolute;
  z-index: 1;
  inset-inline-start: 20px;
  bottom: 18px;
  font-weight: 700;
}
.image-note {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 13px;
}
.product-summary {
  padding-top: 8px;
}
.product-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--green);
}
.product-category {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.product-detail h1 {
  margin: 0 0 20px;
  font-size: clamp(40px,5vw,62px);
  line-height: 1.05;
}
.product-description {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
}
.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.product-tags span {
  padding: 7px 11px;
  color: #bdeeff;
  background: rgba(39,215,255,.08);
  border: 1px solid rgba(39,215,255,.2);
  border-radius: 6px;
  font-size: 13px;
}
.purchase-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.price-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 13px;
}
.product-price {
  display: block;
  font-size: 17px;
}
.notify-wide {
  min-height: 48px;
  padding: 0 18px;
  color: #04121c;
  background: linear-gradient(135deg,var(--cyan),var(--blue));
  border: 0;
  border-radius: 8px;
  font: 700 15px/1 Arial,sans-serif;
  cursor: pointer;
}
.product-benefits {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.product-benefits li::before {
  content:"✓";
  margin-inline-end: 10px;
  color: var(--green);
  font-weight: 700;
}
.technical-section {
  padding: 72px 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.technical-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
}
.technical-panel {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.technical-panel h2 {
  margin: 8px 0 24px;
  font-size: 26px;
}
.table-wrapper {
  overflow-x: auto;
}
.specifications-table {
  width: 100%;
  border-collapse: collapse;
}
.specifications-table th,.specifications-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}
.specifications-table th {
  width: 36%;
  color: var(--muted);
  font-weight: 400;
}
.applications-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.applications-list li {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.applications-list strong,.applications-list span {
  display: block;
}
.applications-list strong {
  margin-bottom: 5px;
  color: var(--cyan);
}
.applications-list span {
  color: var(--muted);
  font-size: 14px;
}
.not-found {
  min-height: 60vh;
  padding: 100px 0;
  text-align: center;
}
.not-found p {
  color: var(--muted);
  margin-bottom: 26px;
}
@media (max-width: 900px) {
  .product-layout,.technical-grid {
    grid-template-columns: 1fr;
  }
  .product-main-image,.product-main-image img {
    min-height: 420px;
    height: 420px;
  }
}
@media (max-width: 820px) {
  .shop-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search-box {
    max-width: none;
  }
  .filter-buttons {
    display: grid;
    grid-template-columns: repeat(2,1fr);
  }
  .filter-button {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .product-overview {
    padding: 40px 0;
  }
  .product-main-image,.product-main-image img {
    min-height: 320px;
    height: 320px;
  }
  .purchase-box {
    align-items: stretch;
    flex-direction: column;
  }
  .notify-wide {
    width: 100%;
  }
  .technical-panel {
    padding: 20px;
  }
}

/* ========================================
   Project list drawer
======================================== */
body.drawer-active { overflow: hidden; }
.project-button { position: relative; }
.project-count { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; color: #03101b; background: var(--cyan); border: 2px solid var(--bg); border-radius: 20px; font-size: 11px; font-weight: 800; }
.drawer-overlay { position: fixed; z-index: 80; inset: 0; background: rgba(0,0,0,.62); opacity: 0; pointer-events: none; transition: .25s; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.project-drawer { position: fixed; z-index: 90; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px,100%); display: grid; grid-template-rows: auto 1fr auto; background: #090f18; border-inline-start: 1px solid var(--line); transform: translateX(105%); transition: transform .28s ease; box-shadow: -20px 0 60px rgba(0,0,0,.35); }
[dir="rtl"] .project-drawer { transform: translateX(-105%); }
.project-drawer.open,[dir="rtl"] .project-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 2px 0 0; font-size: 24px; }
.drawer-kicker { color: var(--cyan); font-size: 12px; }
.drawer-close { width: 42px; height: 42px; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 8px; font-size: 25px; cursor: pointer; }
.drawer-body { overflow-y: auto; padding: 14px 20px; }
.drawer-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-product-code { height: 58px; display: grid; place-items: center; color: var(--cyan); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font: 700 12px Consolas,monospace; text-align: center; }
.drawer-item-info > a { display: block; font-weight: 700; }
.drawer-item-info > span { color: var(--muted); font-size: 12px; }
.quantity { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.quantity button { width: 28px; height: 28px; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.remove-item { align-self: start; color: var(--muted); background: transparent; border: 0; font-size: 22px; cursor: pointer; }
.drawer-footer { padding: 18px 20px 22px; border-top: 1px solid var(--line); }
.copy-project,.request-button { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 700; cursor: pointer; }
.copy-project { margin-bottom: 9px; color: var(--text); background: transparent; border: 1px solid var(--line); }
.request-button { color: #03101b; background: linear-gradient(135deg,var(--cyan),var(--blue)); }
.drawer-footer p { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.drawer-empty { padding: 54px 16px; text-align: center; }
.drawer-empty strong { display: block; font-size: 19px; }
.drawer-empty p { color: var(--muted); }
.drawer-empty a { color: var(--cyan); font-weight: 700; }
.quick-add { width: 40px; height: 40px; color: var(--cyan); background: rgba(39,215,255,.08); border: 1px solid rgba(39,215,255,.28); border-radius: 7px; font-size: 22px; cursor: pointer; }

/* Product gallery */
.product-thumbnails { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 12px; }
.thumbnail { height: 84px; padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.thumbnail.active { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(39,215,255,.12); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* ========================================
   Content pages
======================================== */
.page-hero { padding: 80px 0 56px; background: radial-gradient(circle at 80% 10%,rgba(39,215,255,.1),transparent 35%); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { max-width: 820px; margin: 0 0 16px; font-size: clamp(42px,6vw,68px); }
.page-hero p { max-width: 700px; margin: 0; color: var(--muted); font-size: 18px; }
.content-section { padding: 64px 0; }
.content-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.content-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.content-card .card-number { color: var(--cyan); font: 700 13px Consolas,monospace; }
.content-card h2,.content-card h3 { margin: 12px 0 8px; }
.content-card p { color: var(--muted); }
.content-card .btn { margin-top: 10px; }
.policy-layout { display: grid; grid-template-columns: 240px minmax(0,720px); gap: 48px; align-items: start; }
.policy-nav { position: sticky; top: 100px; display: grid; gap: 7px; }
.policy-nav a { padding: 10px 12px; color: var(--muted); border-inline-start: 2px solid var(--line); }
.policy-nav a:hover { color: var(--cyan); border-color: var(--cyan); }
.policy-content section { margin-bottom: 42px; }
.policy-content h2 { margin: 0 0 12px; font-size: 26px; }
.policy-content p,.policy-content li { color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; }
.contact-panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1/-1; }
.form-field label { color: var(--muted); font-size: 14px; }
.form-field input,.form-field textarea,.form-field select { width: 100%; padding: 13px 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font: inherit; outline: none; }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,.form-field textarea:focus,.form-field select:focus { border-color: var(--cyan); }
.submit-button { min-height: 48px; color: #03101b; background: linear-gradient(135deg,var(--cyan),var(--blue)); border: 0; border-radius: 8px; font-weight: 800; cursor: pointer; }
.tutorial-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.tutorial-body { max-width: 780px; }
.tutorial-body h2 { margin-top: 44px; }
.tutorial-body p,.tutorial-body li { color: var(--muted); }
.code-box { direction: ltr; overflow-x: auto; padding: 20px; color: #bdeeff; background: #050a10; border: 1px solid var(--line); border-radius: 10px; font: 14px/1.6 Consolas,monospace; white-space: pre; }

@media (max-width: 820px) {
  .content-grid { grid-template-columns: 1fr; }
  .policy-layout,.contact-layout { grid-template-columns: 1fr; }
  .policy-nav { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}
.project-count[hidden] { display: none; }
.thumbnail img { display: block; }

/* ========================================
   V4 discovery, comparison and checkout
======================================== */
.advanced-filters { display: grid; grid-template-columns: repeat(4,minmax(130px,1fr)) auto; gap: 10px; margin: -14px 0 28px; padding: 14px; background: rgba(13,20,31,.55); border: 1px solid var(--line); border-radius: 10px; }
.advanced-filters select,.reset-filters { min-height: 44px; padding: 0 12px; color: var(--text); background: #080f18; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.reset-filters { color: var(--cyan); cursor: pointer; }
.compare-toggle { position: absolute; z-index: 2; top: 14px; inset-inline-end: 14px; min-height: 34px; padding: 0 10px; color: var(--muted); background: rgba(7,11,18,.86); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.compare-toggle.active { color: #03101b; background: var(--cyan); border-color: var(--cyan); }
.mini-tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 26px; margin: 0 0 12px; }
.mini-tags span { padding: 4px 7px; color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 5px; font-size: 11px; }
.card-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-price strong { font-size: 17px; }
.card-price span { color: var(--orange); font-size: 11px; }
.card-price.muted strong { color: var(--muted); font-size: 14px; }
.compare-bar { position: fixed; z-index: 70; inset-inline: 50%; bottom: 18px; width: min(760px,calc(100% - 28px)); min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 16px; background: rgba(13,20,31,.96); border: 1px solid rgba(39,215,255,.35); border-radius: 12px; box-shadow: 0 16px 45px rgba(0,0,0,.45); transform: translate(50%,120px); opacity: 0; pointer-events: none; transition: .25s; }
[dir="ltr"] .compare-bar { transform: translate(-50%,120px); }
.compare-bar.show { transform: translate(50%,0); opacity: 1; pointer-events: auto; }
[dir="ltr"] .compare-bar.show { transform: translate(-50%,0); }
.compare-bar strong,.compare-bar span { display: block; }
.compare-bar span { color: var(--muted); font-size: 13px; }
.compare-actions { display: flex; gap: 8px; }
.compare-actions button,.compare-actions a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 7px; font-weight: 700; }
.compare-actions button { color: var(--muted); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.compare-actions a { color: #03101b; background: var(--cyan); }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.compare-table th,.compare-table td { padding: 18px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.compare-table thead th { color: var(--cyan); background: var(--surface); }
.compare-table tbody th { width: 180px; color: var(--muted); font-weight: 400; }
.compare-empty { padding: 70px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.recently-viewed { padding: 64px 0; border-top: 1px solid var(--line); }
.recent-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.recent-card { min-height: 150px; display: flex; flex-direction: column; justify-content: end; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.recent-card > span { margin-bottom: auto; color: var(--cyan); font: 700 18px Consolas,monospace; }
.recent-card strong { margin-bottom: 5px; }
.recent-card small { color: var(--muted); }
.faq-list { max-width: 850px; }
.faq-list details { margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.faq-list summary { padding: 18px 20px; font-weight: 700; cursor: pointer; }
.faq-list details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }
.checkout-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.checkout-panel { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.checkout-panel h2 { margin-top: 0; }
.checkout-item { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.checkout-item span { display: block; color: var(--muted); font-size: 12px; }
.checkout-summary { display: flex; justify-content: space-between; padding-top: 20px; font-size: 18px; }
.checkout-warning { color: var(--orange); font-size: 13px; }
.demo-price-note { display: block; margin-top: 4px; color: var(--orange); font-size: 11px; }
.project-name-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.project-name-input { width: 100%; min-height: 42px; margin-bottom: 10px; padding: 0 12px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; }
.drawer-total { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; margin: 8px 0 12px; padding: 12px; background: var(--surface); border-radius: 8px; }
.drawer-total span,.drawer-total small { color: var(--muted); }
.drawer-total small { grid-column: 1/-1; }
.drawer-actions-row { display: grid; grid-template-columns: 1fr 90px; gap: 8px; }
.drawer-item-info b { display: block; margin-top: 4px; font-size: 12px; }
.drawer-item-info em { color: var(--orange); font-style: normal; font-weight: 400; }
.back-to-top { position: fixed; z-index: 60; inset-inline-end: 20px; bottom: 20px; width: 46px; height: 46px; color: var(--cyan); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s; cursor: pointer; }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.error-code { color: var(--cyan); font: 800 80px/1 Consolas,monospace; }
.footer-extra { color: var(--muted); }
@media (max-width: 900px) { .advanced-filters { grid-template-columns: repeat(2,1fr); } .checkout-layout { grid-template-columns: 1fr; } .recent-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .advanced-filters { grid-template-columns: 1fr; } .compare-bar { align-items: stretch; flex-direction: column; } .compare-actions a,.compare-actions button { flex: 1; justify-content: center; } .recent-grid { grid-template-columns: 1fr; } }
.compare-bar { left: 50%; right: auto; inset-inline: auto; transform: translate(-50%,120px); }
[dir="rtl"] .compare-bar,[dir="ltr"] .compare-bar { transform: translate(-50%,120px); }
.compare-bar.show,[dir="rtl"] .compare-bar.show,[dir="ltr"] .compare-bar.show { transform: translate(-50%,0); }
.links a.current { color: var(--cyan); }
.search-modal { position: fixed; z-index: 120; inset: 0; display: grid; place-items: start center; padding: 90px 20px 20px; background: rgba(0,0,0,.72); opacity: 0; pointer-events: none; transition: .2s; }
.search-modal.open { opacity: 1; pointer-events: auto; }
.search-dialog { width: min(700px,100%); overflow: hidden; background: #090f18; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.search-dialog-head { display: grid; grid-template-columns: 1fr 46px; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.search-dialog-head input { min-height: 48px; padding: 0 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font: inherit; outline: none; }
.search-dialog-head input:focus { border-color: var(--cyan); }
.search-dialog-head button { color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 8px; font-size: 24px; cursor: pointer; }
.global-results { max-height: 480px; overflow-y: auto; padding: 10px; }
.global-results > p { padding: 25px; color: var(--muted); text-align: center; }
.global-results a { display: grid; grid-template-columns: 80px 1fr; gap: 3px 12px; padding: 12px; border-radius: 8px; }
.global-results a:hover { background: var(--surface); }
.global-results a span { grid-row: 1/3; align-self: center; color: var(--cyan); font: 700 13px Consolas,monospace; }
.global-results a small { color: var(--muted); }
.global-search-button { color: var(--cyan); font-size: 20px; }
@media (max-width: 560px) {
  .tools { gap: 6px; }
  .iconbtn,.lang { min-width: 38px; padding: 0 8px; }
  .brand { gap: 7px; font-size: 16px; }
  .mark { width: 34px; height: 34px; }
}
.search-modal { visibility: hidden; }
.search-modal.open { visibility: visible; }

/* ========================================
   Accounts (login.html, account.html)
   ======================================== */
.account-button { position: relative; display: inline-grid; place-items: center; text-decoration: none; color: inherit; }
.account-button.signed-in::after { content: ""; position: absolute; top: 6px; inset-inline-end: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--bg); }
.auth-wrap { max-width: 520px; }
.auth-panel { display: grid; gap: 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.auth-tab { min-height: 42px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font: inherit; font-weight: 700; cursor: pointer; }
.auth-tab.active { color: var(--text); background: var(--raised); }
.auth-message { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; border: 1px solid; line-height: 1.6; }
.auth-panel .auth-message { margin: 0; }
.auth-message.error { color: #ffb4b4; background: rgba(255,90,90,.08); border-color: rgba(255,90,90,.35); }
.auth-message.success { color: var(--green); background: rgba(114,214,159,.08); border-color: rgba(114,214,159,.35); }
.link-button { justify-self: center; padding: 6px; color: var(--cyan); background: none; border: 0; font: inherit; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.google-button { min-height: 46px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.auth-note { margin: 0; font-size: 14px; text-align: center; }
.submit-button:disabled, .google-button:disabled { opacity: .6; cursor: wait; }
.account-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.account-grid #newPasswordForm { grid-column: 1/-1; }
.account-grid h2 { margin: 0 0 18px; font-size: 22px; }
.orders-list { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.order-row div { display: grid; gap: 2px; }
.order-row small { color: var(--muted); }
.status-badge { padding: 4px 10px; border-radius: 999px; font-size: 13px; background: var(--raised); color: var(--muted); }
.status-confirmed, .status-shipped { color: var(--cyan); }
.status-delivered { color: var(--green); }
.status-cancelled { color: #ffb4b4; }
.sign-out { margin-top: 18px; }
.out-of-stock { color: #ffb4b4; }
@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
  .auth-panel .form-grid, .account-grid .form-grid { grid-template-columns: 1fr; }
}
[hidden] { display: none !important; }
.submit-button.form-field, .link-button.form-field { place-items: center; }

/* Checkout */
.page-hero.compact { padding: 48px 0 28px; }
.checkout-panel h2 { margin: 0 0 16px; }
.checkout-panel form h2:not(:first-child) { margin-top: 26px; }
.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-option { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--cyan); background: rgba(39,215,255,.06); }
.pay-option input { accent-color: var(--cyan); }
#paymentNote { margin: 12px 0 0; font-size: 14px; }
.place-order { width: 100%; margin-top: 22px; }
.place-order:disabled { opacity: .5; cursor: not-allowed; }
.checkout-summary.small { padding-top: 12px; font-size: 15px; color: var(--muted); }
.checkout-item.has-problem { opacity: .85; }
.order-success { max-width: 640px; margin: 0 auto; text-align: center; display: grid; gap: 6px; }
.order-success .request-button { display: inline-flex; }
@media (max-width: 600px) { .pay-options { grid-template-columns: 1fr; } }

/* Payment instructions + WhatsApp */
.payment-instructions { margin: 10px 0; padding: 16px; background: var(--bg); border: 1px solid var(--cyan); border-radius: 10px; }
.payment-instructions p { margin: 0 0 8px; }
.pay-number { font-size: 22px; font-weight: 800; color: var(--cyan); letter-spacing: .5px; }
.whatsapp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; color: #04140b; background: #25d366; border-radius: 8px; font-weight: 800; text-decoration: none; }

.card-price del { margin-inline-start: 6px; color: var(--muted); font-size: .8em; font-weight: 500; }
.store-closed { margin: 0 0 16px; padding: 14px 16px; color: #ffd27a; background: rgba(255,190,70,.08); border: 1px solid rgba(255,190,70,.4); border-radius: 8px; font-weight: 700; }
