/* ==================================================
   HashHost - custom.css (loaded last)
   1) Brand: font + colors
   2) Base typography + buttons
   3) RTL fixes on top of Playhost style.css
   4) Header (text logo)
   5) Hero (single slide)
   6) Shared section helpers
   7) Section: why (#why)
   8) Section: cooling (#cooling)
   9) Section: how (#how)
   ================================================== */

/* ---------- 1) Brand ---------- */
/* Our own tokens */
:root, body {
  --text-main: #E6EAF2;
  --text-muted: #9AA4B8;
}

/* Template tokens: style.css declares these on `*` (every element), so a :root
   override would lose to the per-element declaration. They must stay on `*`. */
* {
  /* IBM Plex Sans Arabic covers Arabic + Latin; Noto Sans adds Cyrillic (ru),
     Noto Sans Georgian adds Georgian (ka). Browser picks the glyph per character. */
  --title-font: "IBM Plex Sans Arabic", "Noto Sans", "Noto Sans Georgian", "Segoe UI", Tahoma, Arial, sans-serif;
  --body-font: "IBM Plex Sans Arabic", "Noto Sans", "Noto Sans Georgian", "Segoe UI", Tahoma, Arial, sans-serif;
  --body-font-weight: 400;
  --bg-dark-1: #0B0F17;
  --bg-dark-1-rgb: 11, 15, 23;
  --bg-dark-2: #131A26;
  --bg-dark-3: #1B2434;
  --body-font-color: #9AA4B8;
  --dark-body-font-color: #9AA4B8;
  --gradient-text: 0deg, #B9C2D3 0%, #E6EAF2 70%;
}

html, body.dark-scheme {
  background: var(--bg-dark-1);
}

/* ---------- 2) Base typography + buttons ---------- */
body {
  font-family: var(--body-font);
  letter-spacing: 0;              /* Arabic: never negative tracking */
  word-spacing: 0;
  line-height: 1.9;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--title-font);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
}

h1, .h1 { line-height: 1.25; }

.dark-scheme h1, .dark-scheme h2, .dark-scheme h3, .dark-scheme h4 {
  color: var(--text-main);
}

.dark-scheme p { color: var(--text-muted); }

/* Latin numbers / names inside Arabic text */
[dir="ltr"] { unicode-bidi: isolate; }

/* buttons: Arabic never uppercase, body font */
a.btn-main, .btn-main, a.btn-line, input[type=submit].btn-main {
  font-family: var(--body-font);
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
}

a.btn-main, .btn-main { color: #14110A; }        /* dark text on amber */
a.btn-main:not(.btn-line), .btn-main:not(.btn-line) { background: linear-gradient(135deg, #F5A524 0%, #FFBE4D 100%); }
a.btn-main:hover, .btn-main:hover { color: #14110A; }
a.btn-line, a.btn-line:hover,
header:not(.header-light) a.btn-line,
.dark-scheme a.btn-line { color: #ffffff; }
a.btn-line:hover { color: #14110A; }

.subtitle { font-family: var(--body-font); font-weight: 600; }

/* ---------- 3) Direction-aware layout (RTL + LTR) ----------
   ar = RTL, en/ru/ka = LTR. Uses CSS logical properties so margins/padding/
   text-align flip automatically with [dir]; only float (no reliable logical
   value) is written as a pair of [dir] rules. */
body.rtl { direction: rtl; text-align: right; }
body:not(.rtl) { direction: ltr; text-align: left; }

/* main menu (desktop) */
[dir="rtl"] #mainmenu li { float: right; }
[dir="ltr"] #mainmenu li { float: left; }
#mainmenu > li { margin-inline-start: 22px; margin-inline-end: 0; }
/* keep the last item's leading gap so FAQ/Contact never touch (both LTR & RTL) */
#mainmenu li > a { padding-inline-start: 6px; padding-inline-end: 0; }
#mainmenu > li::before { display: none; }              /* no numbered menu items */
#mainmenu a { font-family: var(--body-font); font-weight: 500; font-size: 15px; }

/* side area (language switcher + CTA + hamburger) */
.menu_side_area { margin-inline-start: 20px; margin-inline-end: 0; display: flex; align-items: center; gap: 12px; }
[dir="rtl"] #menu-btn { float: left; }
[dir="ltr"] #menu-btn { float: right; }
#menu-btn { margin-inline-start: 0; margin-inline-end: 0; }

/* icons spacing in buttons */
.btn-icon-left i { margin-inline-start: 12px; margin-inline-end: 0; }
a.btn-main img { margin-inline-start: 10px; margin-inline-end: 0; }
header a.btn-main i { display: none; }

/* subtitle with blinking dot (dot sits on the inline-start edge) */
.subtitle.blink { padding-inline-start: 35px; padding-inline-end: 15px; }
.subtitle.blink:before { inset-inline-start: 10px; inset-inline-end: auto; background: #22C55E; box-shadow: 0 0 10px 0 rgba(34, 197, 94, 1); }
@keyframes blinkingText {
  0%   { background: #22C55E; }
  50%  { background: rgba(255, 255, 255, 1); }
  100% { background: #22C55E; }
}

/* accordion arrow: sits on the inline-end edge */
[dir="rtl"] .accordion-section-title:before { float: left; }
[dir="ltr"] .accordion-section-title:before { float: right; }

/* footer */
.menu-simple li { margin: 0 15px; }
.social-icons a { margin-inline-end: 4px; }

/* forms */
.field-set .d-label { text-align: start; }
#form_subscribe #btn-subscribe i { transform: scaleX(-1); }

/* vertical "to top" text on the left edge: not wanted */
.float-text { display: none; }

/* ---------- 4) Header ---------- */
header .logo-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
header .logo-text i {
  color: var(--primary-color);
  font-size: 26px;
}
header .logo-text:hover { color: #ffffff; }
header.smaller .logo-text { font-size: 22px; }

header.smaller {
  background: rgba(11, 15, 23, .97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

header .menu_side_area .btn-line { height: auto; padding: 6px 18px 5px; white-space: nowrap; }

/* mobile header / menu (<= 992px) */
@media only screen and (max-width: 992px) {
  header.header-mobile .container { padding-left: 20px; padding-right: 20px; }
  header.header-mobile .de-flex { align-items: center; }
  header.header-mobile .header-col-mid { position: static; }
  .header-col-mid #mainmenu { left: auto; right: 20px; }
  header.header-mobile #mainmenu {
    padding: 20px 20px 100px 20px;
    right: 0;
    left: auto;
    width: 100%;
    box-sizing: border-box;
  }
  header.header-mobile #mainmenu li { text-align: start; }
  #mainmenu a.menu-item,
  header.header-mobile #mainmenu a.menu-item { text-align: start; padding-right: 0; padding-left: 0; }
  .menu_side_area {
    margin-inline-start: 0;
    margin-inline-end: 0;
    width: auto;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  header.header-mobile .btn-main { display: inline-block; font-size: 13px; padding: 5px 12px 4px; }
}

@media only screen and (max-width: 420px) {
  header.header-mobile .btn-main { display: none; }
  header .logo-text { font-size: 21px; }
}

/* ---------- 5) Hero ---------- */
.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* horizontal overlay darkens toward the side where the text sits:
   RTL -> darker to the right, LTR -> darker to the left */
[dir="rtl"] .hero-bg {
  background-image:
    linear-gradient(90deg, rgba(11, 15, 23, .58) 0%, rgba(11, 15, 23, .74) 45%, rgba(11, 15, 23, .90) 100%),
    linear-gradient(rgba(11, 15, 23, .55), rgba(11, 15, 23, .82)),
    var(--img-hero, url(../images/hero.webp));
}
[dir="ltr"] .hero-bg {
  background-image:
    linear-gradient(270deg, rgba(11, 15, 23, .58) 0%, rgba(11, 15, 23, .74) 45%, rgba(11, 15, 23, .90) 100%),
    linear-gradient(rgba(11, 15, 23, .55), rgba(11, 15, 23, .82)),
    var(--img-hero, url(../images/hero.webp));
}
.hero-bg .sw-overlay { background: rgba(var(--bg-dark-1-rgb), .15); }

.swiper-slide-active .hero-title { animation: fadeInUp 1.2s; }

h1.hero-title {
  font-size: 56px;
  line-height: 1.3;
  margin-bottom: 20px;
  text-wrap: balance;
}
h1.hero-title .accent {
  background: linear-gradient(0deg, #D98B12 0%, #F5A524 60%, #FFC55C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slider-text {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 24px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 30px;
}
.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #ffffff;
  white-space: nowrap;
}
.hero-stat .hs-val {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 22px;
  color: var(--secondary-color);
}
.hero-stat .hs-val i { font-size: 18px; }
.hero-stat .hs-label {
  font-size: 14px;
  color: var(--text-muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions a.btn-main { height: auto; padding: 10px 26px 9px; font-size: 15px; }
.hero-actions a.btn-line { height: auto; }

/* single slide: hide pagination/arrows if any plugin injects them */
#swiper .swiper-pagination,
#swiper .swiper-button-prev,
#swiper .swiper-button-next { display: none; }

@media only screen and (max-width: 992px) {
  h1.hero-title { font-size: 40px; }
  #section-hero .v-center { min-height: 80vh; }
  .sw-caption { padding-top: 90px; padding-bottom: 40px; }
}

@media only screen and (max-width: 767px) {
  h1.hero-title { font-size: 32px; }
  .slider-text { font-size: 15px; }
  .hero-stats { gap: 8px 14px; justify-content: space-between; margin-bottom: 26px; }
  .hero-stat { gap: 6px; }
  .hero-stat .hs-val { font-size: 17px; }
  .hero-stat .hs-val i { font-size: 15px; }
  .hero-stat .hs-label { font-size: 13px; }
  /* content-driven hero height on phones */
  #section-hero .v-center { min-height: 0; display: block; }
  #section-hero .swiper { position: relative; height: auto !important; } /* inline height set by swiper.js */
  #section-hero .swiper-slide { height: auto; }
  .swiper-inner.hero-bg { position: relative; height: auto; }
  .sw-caption {
    position: relative;
    top: auto;
    transform: none;
    padding-top: 110px;
    padding-bottom: 50px;
  }
  .hero-actions a { width: 100%; }
}

@media only screen and (max-width: 400px) {
  h1.hero-title { font-size: 30px; }
}

/* ---------- 6) Shared section helpers ---------- */
.sec-head { max-width: 820px; margin-bottom: 44px; }
.sec-head h2 { margin-bottom: 12px; text-wrap: balance; }
.sec-head .sec-intro { font-size: 17px; margin-bottom: 0; }

/* generic dark card */
.hh-card {
  height: 100%;
  background: var(--bg-dark-2);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  transition: border-color .25s ease, transform .25s ease;
}
.hh-card:hover { border-color: rgba(var(--primary-color-rgb), .35); transform: translateY(-3px); }

/* image placeholder (generated images go here later) */
.img-slot {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px 16px 0 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(70% 70% at 50% 100%, rgba(var(--accent-rgb, var(--primary-color-rgb)), .28) 0%, rgba(var(--accent-rgb, var(--primary-color-rgb)), 0) 70%),
    linear-gradient(180deg, #1B2434 0%, #101622 100%);
}
.img-slot i { font-size: 72px; color: var(--accent, var(--primary-color)); opacity: .9; }
.img-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media only screen and (max-width: 767px) {
  .sec-head { margin-bottom: 32px; }
  .sec-head .sec-intro { font-size: 15px; }
}

/* ---------- 7) Section: why ---------- */
.feature-card { padding: 30px 28px 26px; }
.feature-card .fc-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 20px;
  background: rgba(var(--primary-color-rgb), .12);
  color: var(--primary-color);
  font-size: 22px;
}
.feature-card h4 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 15px; line-height: 1.8; margin-bottom: 0; }

/* ---------- 8) Section: cooling ---------- */
.cooling-card.air   { --accent: var(--primary-color);   --accent-rgb: var(--primary-color-rgb); }
.cooling-card.water { --accent: var(--secondary-color); --accent-rgb: var(--secondary-color-rgb); }

.cooling-card { display: flex; flex-direction: column; }
.cooling-card .cc-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.cooling-card h3 { font-size: 22px; margin-bottom: 6px; }
.cooling-card h3 i { color: var(--accent); margin-inline-end: 8px; font-size: 20px; }
.cooling-card .cc-lead { color: var(--text-main); font-size: 16px; margin-bottom: 16px; }
.cooling-card .cc-list { list-style: none; margin: 0 0 18px; padding: 0; }
.cooling-card .cc-list li {
  position: relative;
  padding-inline-start: 26px;
  padding-inline-end: 0;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-muted);
}
.cooling-card .cc-list li i {
  position: absolute;
  inset-inline-start: 0;
  top: .55em;
  font-size: 13px;
  color: var(--accent);
}
.cooling-card .cc-fit {
  font-size: 14px;
  margin: auto 0 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.cooling-card .cc-fit strong { color: var(--text-main); font-weight: 600; }
.cooling-card a.btn-main { height: auto; padding: 7px 20px 6px; font-size: 14px; align-self: flex-start; }
.cooling-card.water:hover { border-color: rgba(var(--secondary-color-rgb), .35); }

/* ---------- 9) Section: how ---------- */
.step { padding-block: 8px; padding-inline-start: 0; padding-inline-end: 24px; height: 100%; }
.step .step-num {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--primary-color);
  margin-bottom: 18px;
}
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; line-height: 1.8; margin-bottom: 0; }

/* light divider between steps (columns flow right-to-left); phones use a bottom rule instead */
@media only screen and (min-width: 768px) {
  .steps-row > div:not(:last-child) .step { border-inline-end: 1px solid rgba(255, 255, 255, .08); }
  /* reserve 2 lines for step titles so the descriptions line up across the row */
  .step h4 { min-height: 48px; }
}
@media only screen and (min-width: 768px) and (max-width: 992px) {
  .step { padding-inline-end: 16px; }
  .steps-row > div:nth-child(even) .step { border-inline-end: 0; }
}
@media only screen and (max-width: 767px) {
  .step { padding: 0 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .steps-row > div:last-child .step { border-bottom: 0; padding-bottom: 0; }
  .step .step-num { font-size: 36px; margin-bottom: 10px; }
}

/* ---------- 13) Section: dashboard (#dashboard) ---------- */
.dash-list { list-style: none; margin: 28px 0 30px; padding: 0; }
.dash-list li { display: flex; gap: 16px; margin-bottom: 20px; }
.dash-list li:last-child { margin-bottom: 0; }
.dash-list li > i {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(var(--primary-color-rgb), .12);
  color: var(--primary-color);
  font-size: 20px;
}
.dash-list h4 { font-size: 17px; margin-bottom: 4px; }
.dash-list p { font-size: 15px; line-height: 1.7; margin-bottom: 0; }
/* dashboard slot: hosts a live HTML/CSS phone mock-up (no image), full rounded panel */
.dash-slot {
  aspect-ratio: auto;
  border-radius: 20px;
  padding: 30px 20px;
  place-items: center;
}

/* ---- phone frame ---- */
.dash-slot .phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  background: #05070c;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #23303f,
    0 24px 60px -18px rgba(0, 0, 0, .7),
    0 0 40px -10px rgba(var(--primary-color-rgb), .18);
  /* internal UI is a fixed-scale app: use container-safe sizing */
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  text-align: left;
}
/* neutralize the base `.img-slot i { font-size:72px }` rule for mock-up icons
   that have no explicit size of their own (targeted to avoid overriding the
   device-row icons, which set their own size/color below) */
.dash-slot .da-logo i,
.dash-slot .da-hero-chg i,
.dash-slot .da-nav-item i { font-size: inherit; color: inherit; opacity: 1; }
.dash-slot .phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 20px;
  background: #05070c;
  border-radius: 0 0 12px 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-slot .pn-cam {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1c2a38;
  box-shadow: inset 0 0 2px #3a4d61;
}
.dash-slot .phone-screen {
  position: relative;
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1220 0%, #0a0e18 100%);
  display: flex;
  flex-direction: column;
  padding: 26px 12px 8px;
  gap: 9px;
  color: #E6EAF2;
  font-variant-numeric: tabular-nums;
}
/* only the device list flexes to fill slack; other rows keep their natural size */
.dash-slot .da-top,
.dash-slot .da-hero,
.dash-slot .da-gauges,
.dash-slot .da-nav { flex: 0 0 auto; }

/* ---- app header ---- */
.dash-slot .da-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.dash-slot .da-logo { font-weight: 700; color: #E6EAF2; display: inline-flex; align-items: center; gap: 4px; }
.dash-slot .da-logo i { color: var(--primary-color); }
.dash-slot .da-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #22c55e;
  font-weight: 600;
  font-size: 10px;
}
.dash-slot .da-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: daPulse 1.9s ease-out infinite;
}
@keyframes daPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70%  { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.dash-slot .da-time { margin-left: auto; color: #9AA4B8; font-weight: 600; font-size: 10.5px; }

/* ---- hero summary card ---- */
.dash-slot .da-hero {
  position: relative;
  background: linear-gradient(180deg, #16203040 0%, #0f1626 100%), #121a28;
  border: 1px solid rgba(var(--primary-color-rgb), .22);
  border-radius: 14px;
  padding: 11px 12px 0;
  overflow: hidden;
}
.dash-slot .da-hero-label { display: block; font-size: 10px; color: #9AA4B8; letter-spacing: .3px; }
.dash-slot .da-hero-val {
  display: block;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
  color: #E6EAF2;
  margin-top: 2px;
}
.dash-slot .da-unit { font-size: 12px; font-weight: 600; color: #9AA4B8; }
.dash-slot .da-hero-chg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #22c55e;
  margin-top: 3px;
}
.dash-slot .da-spark { display: block; width: 100%; height: 42px; margin-top: 6px; }

/* ---- gauges ---- */
.dash-slot .da-gauges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 2px 0 4px;   /* override template section{padding:120px 0} */
  margin: 0;
}
.dash-slot .da-gauge { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dash-slot .da-ring {
  --deg: calc(var(--val) * 3.6deg);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, #101827 0 71%, transparent 72% 100%),
    conic-gradient(var(--gc) var(--deg), rgba(255, 255, 255, .09) 0);
}
.dash-slot .da-ring-num { font-size: 13px; font-weight: 800; color: #E6EAF2; }
.dash-slot .da-ring-num i { font-size: 10px; font-weight: 600; color: #9AA4B8; font-style: normal; margin-inline-start: 1px; }
.dash-slot .da-gauge-cap { font-size: 9px; color: #9AA4B8; letter-spacing: .2px; }

/* ---- device list ---- */
.dash-slot .da-devices {
  background: #0f1626;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  padding: 9px 10px;
  flex: 1 1 auto;
  min-height: 0;
}
.dash-slot .da-dev-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #E6EAF2;
  margin-bottom: 6px;
}
.dash-slot .da-dev-count { color: var(--primary-color); font-size: 9px; font-weight: 600; }
.dash-slot .da-dev-list { list-style: none; margin: 0; padding: 0; }
.dash-slot .da-dev {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.dash-slot .da-dev:last-child { border-bottom: 0; }
.dash-slot .da-dev-led {
  flex: 0 0 auto;
  width: 7px; height: 7px; border-radius: 50%;
}
.dash-slot .da-dev-led.ok { background: #22c55e; box-shadow: 0 0 5px rgba(34, 197, 94, .7); }
.dash-slot .da-dev-led.warn { background: #F5A524; box-shadow: 0 0 5px rgba(245, 165, 36, .7); }
.dash-slot .da-dev-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.dash-slot .da-dev-info b { font-size: 10.5px; font-weight: 600; color: #E6EAF2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-slot .da-dev-info small { font-size: 9px; color: #9AA4B8; }
.dash-slot .da-bar { width: 34px; height: 16px; margin-left: auto; flex: 0 0 auto; }
.dash-slot .da-dev-ok { color: #22c55e; font-size: 10px; flex: 0 0 auto; }
.dash-slot .da-dev-warn { color: #F5A524; font-size: 10px; flex: 0 0 auto; }

/* ---- bottom nav ---- */
.dash-slot .da-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.dash-slot .da-nav-item { font-size: 13px; color: #566276; }
.dash-slot .da-nav-item.active { color: var(--primary-color); }

@media (prefers-reduced-motion: reduce) {
  .dash-slot .da-dot { animation: none !important; }
}

@media only screen and (max-width: 991px) {
  /* center the phone and cap size on tablet/mobile so it never gets huge */
  .dash-slot { margin: 10px auto 0; max-width: 460px; padding: 26px 16px; }
}
@media only screen and (max-width: 400px) {
  .dash-slot .phone { max-width: 260px; }
}

/* ---------- 15) Section: contact (#contact) ---------- */
.contact-aside { padding: 30px 28px; display: flex; flex-direction: column; height: 100%; }
.contact-aside h4 { font-size: 20px; margin-bottom: 8px; }
.contact-aside > p { font-size: 15px; margin-bottom: 20px; }
.contact-aside .btn-wa { height: auto; padding: 11px 24px 10px; font-size: 15px; align-self: flex-start; }
.contact-aside .btn-wa i { margin-inline-end: 6px; }
/* keep the WhatsApp icon inline with its label (template makes inner spans block) */
.contact-aside .btn-wa > span { display: inline-flex; align-items: center; justify-content: center; }
.contact-info { list-style: none; margin: 22px 0 0; padding: 0; }
.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-muted);
}
.contact-info li:last-child { margin-bottom: 0; }
.contact-info li i { color: var(--primary-color); width: 20px; text-align: center; }
.contact-info a { color: var(--text-main); }
.contact-info a:hover { color: var(--primary-color); }

/* contact form fields (RTL) */
#contact_form .field-set { margin-bottom: 18px; }
#contact_form .d-label { display: block; margin-bottom: 8px; text-align: start; color: var(--text-main); font-weight: 500; }
#contact_form .form-control { text-align: start; }
#contact_form textarea.form-control { min-height: 150px; }

/* ---------- 16) Footer ---------- */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
}
.footer-logo i { color: var(--primary-color); font-size: 24px; }
.footer-logo:hover { color: #ffffff; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-contact li i { color: var(--primary-color); width: 20px; text-align: center; }
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--primary-color); }
footer .social-icons span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-inline-end: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: var(--text-muted);
  font-size: 16px;
}
.subfooter { text-align: center; }

/* ---------- 17) Language switcher (header) ---------- */
.lang-switch { position: relative; display: inline-block; font-family: var(--body-font); }
.lang-switch .lang-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: auto;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.lang-switch .lang-current:hover { border-color: rgba(var(--primary-color-rgb), .6); background: rgba(255, 255, 255, .07); }
.lang-switch .lang-current .lang-flag { font-size: 16px; line-height: 1; }
.lang-switch .lang-current .lang-code { letter-spacing: .5px; }
.lang-switch .lang-caret { font-size: 10px; color: var(--text-muted); transition: transform .2s ease; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }

/* the menu is portaled to <body> (position: fixed, JS-positioned) so it is never
   clipped by the header's overflow:hidden on mobile */
.lang-menu {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-dark-2, #131A26);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 4000;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li { margin: 0; }
.lang-menu .lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-main, #E6EAF2);
  font-family: var(--body-font);
  font-size: 14px;
  text-align: start;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-menu .lang-opt:hover { background: rgba(255, 255, 255, .06); }
.lang-menu .lang-opt .lang-flag { font-size: 18px; line-height: 1; }
.lang-menu .lang-opt .lang-name { flex: 1 1 auto; }
.lang-menu .lang-opt .lang-code { color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: .5px; }
.lang-menu .lang-opt.active { color: var(--primary-color); }
.lang-menu .lang-opt.active .lang-code { color: var(--primary-color); }

/* mobile: keep the switcher visible and tappable next to the hamburger */
@media only screen and (max-width: 992px) {
  .lang-switch .lang-current { padding: 5px 10px; font-size: 13px; }
  .lang-menu { min-width: 170px; }
}
@media only screen and (max-width: 420px) {
  /* CTA button is hidden at this width; the switcher stays so language is always changeable */
  .lang-switch .lang-current { padding: 5px 9px; }
}

/* 17) i18n flash guard: hide until translations applied (JS-only; safety timeout in i18n.js) */
html.i18n-boot body{visibility:hidden}

/* ==================================================
   18) FX-1: 3D buttons (depth + real press)
   Solid darker bottom edge via layered box-shadow.
   hover -> lifts (translateY-), shadow grows;
   active -> sinks (translateY+), shadow shrinks.
   ================================================== */
a.btn-main, .btn-main, input[type=submit].btn-main, a.btn-line {
  position: relative;
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  transition:
    transform .13s cubic-bezier(.3, .7, .4, 1.3),
    box-shadow .13s cubic-bezier(.3, .7, .4, 1),
    background .25s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
}
/* keep the label visible (template slides the span up on hover, blanking text) */
a.btn-main:hover span { opacity: 1; margin-top: 0; }

/* primary amber: darker solid bottom edge (#B9791A) + soft ambient shadow */
a.btn-main:not(.btn-line),
.btn-main:not(.btn-line),
input[type=submit].btn-main {
  box-shadow: 0 4px 0 0 #B9791A, 0 7px 14px rgba(0, 0, 0, .38);
}
a.btn-main:not(.btn-line):hover,
.btn-main:not(.btn-line):hover,
input[type=submit].btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 #B9791A, 0 13px 22px rgba(0, 0, 0, .45);
}
a.btn-main:not(.btn-line):active,
.btn-main:not(.btn-line):active,
input[type=submit].btn-main:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 0 #B9791A, 0 3px 7px rgba(0, 0, 0, .35);
}

/* secondary outline: lighter amber-tinted depth; fills amber on hover */
a.btn-line, .btn-main.btn-line {
  box-shadow: 0 3px 0 0 rgba(var(--primary-color-rgb), .40), 0 6px 14px rgba(0, 0, 0, .30);
}
a.btn-line:hover, .btn-main.btn-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 0 #B9791A, 0 12px 20px rgba(0, 0, 0, .40);
}
a.btn-line:active, .btn-main.btn-line:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 0 rgba(var(--primary-color-rgb), .40), 0 3px 6px rgba(0, 0, 0, .30);
}

/* language switcher button: subtle matching 3D press */
.lang-switch .lang-current {
  box-shadow: 0 2px 0 0 rgba(0, 0, 0, .35), 0 4px 10px rgba(0, 0, 0, .25);
  transition: transform .12s ease, box-shadow .12s ease, border-color .2s ease, background .2s ease;
}
.lang-switch .lang-current:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, .35), 0 2px 5px rgba(0, 0, 0, .25);
}

@media (prefers-reduced-motion: reduce) {
  a.btn-main, .btn-main, input[type=submit].btn-main, a.btn-line,
  .lang-switch .lang-current { transition: box-shadow .13s ease, background .25s ease, color .2s ease; }
  a.btn-main:hover, .btn-main:hover, a.btn-line:hover,
  a.btn-main:active, .btn-main:active, a.btn-line:active,
  .lang-switch .lang-current:active { transform: none; }
}

/* ==================================================
   19) FX-2: cooling image animations (overlay, above image)
   GPU-only (transform / opacity). pointer-events:none.
   ================================================== */
.cool-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
  border-radius: inherit;
}

/* --- air card: rotating fan discs aligned to the real fans in the image ---
   centers/diameters measured from cooling-air.webp (1000x625) and expressed
   as % of the slot; the slot keeps the image's 16:10 ratio so they stay
   locked to each fan at every viewport width. */
.air-fx .fan {
  position: absolute;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  /* ring mask keeps the shiny centre hub and the outer grille edge untouched */
  -webkit-mask: radial-gradient(closest-side, transparent 13%, #000 22%, #000 90%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 13%, #000 22%, #000 90%, transparent 100%);
}
.air-fx .f1 { left: 50.0%; top: 30.9%; width: 27.0%; } /* front top */
.air-fx .f2 { left: 50.5%; top: 72.3%; width: 26.4%; } /* front bottom */
.air-fx .f3 { left: 20.2%; top: 38.4%; width: 17.6%; } /* rear-left top */
.air-fx .f4 { left: 20.0%; top: 69.3%; width: 18.0%; } /* rear-left bottom */
.air-fx .fan-blades {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* rotating spokes read as motion-blurred blades over the real fan */
  background: repeating-conic-gradient(from 0deg,
    rgba(0, 0, 0, 0) 0deg,
    rgba(0, 0, 0, .42) 8deg,
    rgba(255, 205, 120, .16) 16deg,
    rgba(0, 0, 0, 0) 28deg);
  mix-blend-mode: overlay;
  opacity: .7;
  will-change: transform;
  transform-origin: 50% 50%;
  animation: fanspin 2.2s linear infinite;
}
/* a single brighter arc sweeping around sells the rotation */
.air-fx .fan-blades::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(255, 255, 255, .22) 0deg,
    rgba(255, 255, 255, 0) 60deg,
    rgba(255, 255, 255, 0) 360deg);
  mix-blend-mode: screen;
  opacity: .45;
  will-change: transform;
  transform-origin: 50% 50%;
  animation: fanspin 1.7s linear infinite;
}
.air-fx .f2 .fan-blades { animation-duration: 2.6s; }
.air-fx .f3 .fan-blades { animation-duration: 2.0s; }
.air-fx .f4 .fan-blades { animation-duration: 2.9s; }
@keyframes fanspin { to { transform: rotate(360deg); } }

/* --- water card: flow inside the real pipes + reservoir bubbles ---
   paths in the SVG are traced (viewBox 1000x625) over the cyan tubes; the
   dash offset animates so glowing water appears to run through them. */
.pipe-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pipe-flow {
  fill: none;
  stroke: rgba(125, 235, 255, .9);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 13 26;
  filter: drop-shadow(0 0 3px rgba(34, 211, 238, .95));
  will-change: stroke-dashoffset;
  animation: pipeFlow 1.1s linear infinite;
}
@keyframes pipeFlow { to { stroke-dashoffset: -39; } }
.pipe-flow.p-a  { animation-duration: 1.25s; }
.pipe-flow.p-a2 { animation-duration: 1.0s; }
.pipe-flow.p-c  { animation-duration: .95s; }
.pipe-flow.p-b  { animation-duration: 1.15s; }
.pipe-flow.p-d  { animation-duration: 1.05s; }

.reservoir { position: absolute; left: 12.2%; top: 13.5%; width: 5.6%; height: 42%; }
.reservoir i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #eafcff, rgba(103, 232, 249, .7) 60%, rgba(34, 211, 238, .12) 100%);
  box-shadow: 0 0 5px rgba(103, 232, 249, .85);
  bottom: -6%;
  opacity: 0;
  will-change: bottom, opacity;
  animation: bubbleRise 4.4s ease-in infinite;
}
.reservoir i:nth-child(1) { left: 18%; width: 5px; height: 5px; animation-duration: 4s;   animation-delay: 0s; }
.reservoir i:nth-child(2) { left: 46%; width: 7px; height: 7px; animation-duration: 5.2s; animation-delay: 1.3s; }
.reservoir i:nth-child(3) { left: 70%; width: 5px; height: 5px; animation-duration: 4.4s; animation-delay: .7s; }
.reservoir i:nth-child(4) { left: 32%; width: 6px; height: 6px; animation-duration: 5.6s; animation-delay: 2.2s; }
.reservoir i:nth-child(5) { left: 58%; width: 8px; height: 8px; animation-duration: 6s;   animation-delay: 3s; }
.reservoir i:nth-child(6) { left: 24%; width: 5px; height: 5px; animation-duration: 4.8s; animation-delay: 1.9s; }
.reservoir i:nth-child(7) { left: 62%; width: 6px; height: 6px; animation-duration: 5s;   animation-delay: .4s; }
@keyframes bubbleRise {
  0%   { bottom: -6%;  opacity: 0;  transform: translateX(0); }
  12%  { opacity: .9; }
  80%  { opacity: .6; }
  100% { bottom: 100%; opacity: 0;  transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .air-fx .fan-blades, .air-fx .fan-blades::before,
  .pipe-flow, .reservoir i { animation: none !important; }
  .air-fx .fan-blades::before { opacity: 0 !important; }
  .reservoir i { opacity: 0 !important; }
  .pipe-flow { opacity: .4; stroke-dasharray: none; }
}

/* ==================================================
   20) FX-3: live market panel (cards + sparklines)
   ================================================== */
.live-market {
  padding: 46px 0 54px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(var(--primary-color-rgb), .06) 0%, rgba(var(--primary-color-rgb), 0) 55%),
    linear-gradient(180deg, #0B0F17 0%, #0d1321 100%);
  border-top: 1px solid rgba(var(--primary-color-rgb), .14);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  position: relative;
  z-index: 5;
}
.live-inner { position: relative; }

/* ---- panel header ---- */
.lm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 22px;
}
.lm-title {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-main);
  letter-spacing: .2px;
}
.lm-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.lm-updated-val {
  color: var(--text-main);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
  animation: livePulse 1.8s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---- grid: groups are transparent, their cards are the grid items ---- */
.lm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.live-group { display: contents; }
/* graceful failure: a fully-failed group removes its own cards, grid reflows */
.live-group[hidden] { display: none !important; }

/* ---- cards ---- */
.lm-card {
  background: linear-gradient(180deg, #131A26 0%, #10172400 100%), #121A28;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  min-height: 154px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.lm-card:hover {
  border-color: rgba(var(--primary-color-rgb), .32);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .38);
}
.live-group[data-state="loading"] .li-val { opacity: .5; }

/* card head: icon + name + change badge */
.lm-c-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.lm-c-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: rgba(var(--primary-color-rgb), .12);
  color: var(--primary-color);
}
.lm-c-icon-cyan,
.lm-coin[data-coin="ethereum"] .lm-c-icon,
.lm-coin[data-coin="litecoin"] .lm-c-icon {
  background: rgba(var(--secondary-color-rgb), .12);
  color: var(--secondary-color);
}
.lm-c-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.lm-c-sym {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-main);
  letter-spacing: .3px;
}
.lm-c-name {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* big current value */
.li-val {
  color: var(--text-main);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}
.lm-coin .li-val,
.lm-net .li-val {
  font-size: 25px;
  margin-top: 12px;
  line-height: 1.1;
}

/* change / next-change badge */
.li-chg {
  margin-inline-start: auto;
  align-self: flex-start;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  background: rgba(255, 255, 255, .05);
  color: var(--text-muted);
}
.li-chg.up   { color: #22c55e; background: rgba(34, 197, 94, .13); }
.li-chg.down { color: #ef4444; background: rgba(239, 68, 68, .13); }

/* caption above sparkline */
.lm-cap {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: .2px;
}

/* sparkline: bleeds to the card edges, sits at the bottom */
.lm-spark {
  margin-top: auto;
  margin-inline: -16px;
  margin-bottom: 0;
  height: 56px;
  line-height: 0;
  direction: ltr;
}
.lm-net .lm-spark { margin-top: 14px; height: 52px; }
.lm-spark svg { display: block; width: 100%; }
.lm-spark[hidden] { display: none; }
.lm-net .li-val + .lm-spark { margin-top: 14px; }

/* weather card (compact, no chart) */
.lm-wx { min-height: 154px; }
.lm-wx-body {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-bottom: 16px;
}
.lm-wx-cond {
  font-size: 34px;
  color: var(--primary-color);
  width: 42px;
  text-align: center;
  flex: 0 0 auto;
}
.lm-wx .li-val { font-size: 30px; margin-top: 0; }
.lm-wx-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-inline-start: auto;
  text-align: end;
}
.lm-wx-desc { color: var(--text-main); font-size: 13.5px; font-weight: 500; }
.lm-wx-wind {
  color: var(--text-muted);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.lm-wx-wind i { color: var(--secondary-color); }

/* ---- responsive: 2 cols tablet, 3 cols desktop ---- */
@media only screen and (min-width: 576px) {
  .lm-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media only screen and (min-width: 992px) {
  .lm-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media only screen and (max-width: 575px) {
  .live-market { padding: 34px 0 40px; }
  .lm-title { font-size: 18px; }
  .lm-coin .li-val, .lm-net .li-val { font-size: 23px; }
}




/* keep button text case on focus/active (template sets uppercase there) */
body a.btn-main:focus,body a.btn-main:active,body a.btn-main:visited,
body a.btn-main.btn-line:focus,body a.btn-main.btn-line:active,body a.btn-main.btn-line:visited{text-transform:none}

/* ==================================================
   21) Section backgrounds (bg-section)
   Each section gets a dark-toned photo as a *faint atmosphere*: a strong
   overlay keeps text readable, ::before/::after fade the top/bottom edges
   into --bg-dark-1 so adjacent photos never meet on a hard seam.
   Same file reused for two sections = one download.
   ================================================== */
section.bg-section {
  position: relative;
  padding: 88px 0 !important;              /* symmetric band (overrides .no-bottom) */
  background-color: var(--bg-dark-1);
  /* layers: side shade (text side) , flat overlay , photo */
  --bg-side: linear-gradient(rgba(11, 15, 23, 0), rgba(11, 15, 23, 0));
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll;   /* touch/mobile: never fixed (broken on iOS) */
}
section.bg-section.bg-hardware { background-image: var(--bg-side), linear-gradient(rgba(11, 15, 23, .80), rgba(11, 15, 23, .80)), var(--img-bg-hardware, url(../images/bg-hardware.webp)); }
section.bg-section.bg-cooling  { background-image: var(--bg-side), linear-gradient(rgba(11, 15, 23, .80), rgba(11, 15, 23, .80)), var(--img-bg-cooling, url(../images/bg-cooling.webp)); }
section.bg-section.bg-racks    { background-image: var(--bg-side), linear-gradient(rgba(11, 15, 23, .76), rgba(11, 15, 23, .76)), var(--img-bg-racks, url(../images/bg-racks.webp)); }

/* Extra shade on the text side (inline-start): RTL darkens the right half,
   LTR the left half, so headings/paragraphs always sit on the calmest area. */
[dir="rtl"] section.bg-section { --bg-side: linear-gradient(270deg, rgba(11, 15, 23, .55) 0%, rgba(11, 15, 23, .25) 40%, rgba(11, 15, 23, 0) 70%); }
[dir="ltr"] section.bg-section { --bg-side: linear-gradient(90deg,  rgba(11, 15, 23, .55) 0%, rgba(11, 15, 23, .25) 40%, rgba(11, 15, 23, 0) 70%); }

/* Photo placement per direction (desktop): keep each photo's near-black side
   under the text column and its subject on the far side.
   bg-hardware: subject left / black right.  bg-cooling: black left / subject right.
   bg-racks: symmetric corridor -> centred, anchored to the floor. */
[dir="rtl"] section.bg-section.bg-hardware { background-position: center, center, left center; }
[dir="ltr"] section.bg-section.bg-hardware { background-position: center, center, right center; }
[dir="rtl"] section.bg-section.bg-cooling  { background-position: center, center, left center; }
[dir="ltr"] section.bg-section.bg-cooling  { background-position: center, center, right center; }
section.bg-section.bg-racks { background-position: center, center, center bottom; }

/* content sits above the edge fades */
section.bg-section > .container { position: relative; z-index: 1; }

/* soft edges: fade into the page colour over ~90px at top and bottom */
section.bg-section::before,
section.bg-section::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 90px;
  pointer-events: none;
  z-index: 0;
}
section.bg-section::before { top: 0;    background: linear-gradient(180deg, var(--bg-dark-1) 0%, rgba(11, 15, 23, 0) 100%); }
section.bg-section::after  { bottom: 0; background: linear-gradient(0deg,   var(--bg-dark-1) 0%, rgba(11, 15, 23, 0) 100%); }

/* subtle parallax on real desktops only (pointer + wide); touch keeps scroll */
@media (min-width: 992px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  section.bg-section { background-attachment: scroll, scroll, fixed; }
}

/* surfaces on top of a photo: keep them solid so their text never blends */
.bg-section .hh-card {
  background: rgba(19, 26, 38, .94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.dark-scheme #faq .accordion.s2 .accordion-section-title {
  background: rgba(19, 26, 38, .92);
  border: 1px solid rgba(255, 255, 255, .06);
}
.dark-scheme #faq .accordion-section-content { padding-inline: 20px; }
.dark-scheme #contact_form input[type="text"],
.dark-scheme #contact_form input[type="email"],
.dark-scheme #contact_form textarea,
.dark-scheme #contact_form select {
  background: rgba(19, 26, 38, .88);
}

/* footer: solid, darker than the sections, thin top rule */
.dark-scheme footer,
footer {
  background: #070A10;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

@media only screen and (max-width: 991px) {
  section.bg-section { padding: 64px 0 !important; }
  section.bg-section::before, section.bg-section::after { height: 64px; }
  /* narrow, tall sections: centre the photo so its subject stays in frame */
  [dir="rtl"] section.bg-section.bg-hardware, [dir="ltr"] section.bg-section.bg-hardware,
  [dir="rtl"] section.bg-section.bg-cooling,  [dir="ltr"] section.bg-section.bg-cooling { background-position: center, center, center; }
}

/* ==================================================
   D1) Restored sections (hidden by default; shown via content.json)
   devices / pricing / locations / payments
   Ported from backup-t7; use existing --primary/--secondary tokens,
   .hh-card base, and bg-section framing.
   ================================================== */

/* ---------- Section: devices (#devices) ---------- */
.device-card {
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}
.device-card .dev-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 18px;
  background: rgba(var(--primary-color-rgb), .12);
  color: var(--primary-color);
  font-size: 24px;
}
.device-card .dev-name {
  font-size: 17px;
  margin-bottom: 14px;
  min-height: 46px;
  line-height: 1.4;
}
.device-card .dev-name[dir="ltr"] { text-align: right; }
[dir="ltr"] .device-card,
[dir="ltr"] .device-card .dev-name,
[dir="ltr"] .device-card .dev-name[dir="ltr"] { text-align: left; }

/* cooling badge */
.cool-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-top: auto;
}
.cool-badge i { font-size: 12px; }
.cool-badge.air {
  color: var(--primary-color);
  background: rgba(var(--primary-color-rgb), .12);
  border: 1px solid rgba(var(--primary-color-rgb), .3);
}
.cool-badge.water {
  color: var(--secondary-color);
  background: rgba(var(--secondary-color-rgb), .12);
  border: 1px solid rgba(var(--secondary-color-rgb), .3);
}

/* "device not listed" outline card */
.device-contact {
  background: transparent;
  border: 1px dashed rgba(var(--primary-color-rgb), .5);
}
.device-contact:hover { border-color: rgba(var(--primary-color-rgb), .8); }
.device-contact .dev-icon {
  background: transparent;
  border: 1px solid rgba(var(--primary-color-rgb), .35);
}
.device-contact .dev-contact-text {
  font-size: 14px;
  margin-bottom: 16px;
}
.device-contact a.btn-main { height: auto; padding: 7px 18px 6px; font-size: 14px; }

@media only screen and (max-width: 575px) {
  .device-card .dev-name { min-height: 0; font-size: 16px; }
}

/* ---------- Section: pricing (#pricing) ---------- */
.price-card {
  padding: 32px 28px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card .pc-head { margin-bottom: 18px; }
.price-card .pc-name { font-size: 22px; margin-bottom: 4px; }
.price-card .pc-for { font-size: 14px; margin-bottom: 0; color: var(--text-muted); }
.price-card .pc-price {
  padding: 16px 0 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.price-card .pc-from { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.price-card .pc-amt {
  display: block;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 30px;
  color: var(--text-main);
  line-height: 1.2;
}
.price-card .pc-unit { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.price-card .pc-list { list-style: none; margin: 0 0 24px; padding: 0; }
.price-card .pc-list li {
  position: relative;
  padding-right: 26px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-muted);
}
.price-card .pc-list li i {
  position: absolute;
  right: 0;
  top: .35em;
  font-size: 15px;
  color: var(--secondary-color);
}
[dir="ltr"] .price-card .pc-list li { padding-right: 0; padding-left: 26px; }
[dir="ltr"] .price-card .pc-list li i { right: auto; left: 0; }
.price-card a.btn-main { height: auto; padding: 9px 22px 8px; font-size: 15px; margin-top: auto; }

/* featured (middle) card */
.price-card.featured {
  border-color: rgba(var(--primary-color-rgb), .55);
  box-shadow: 0 0 0 1px rgba(var(--primary-color-rgb), .35), 0 20px 50px rgba(0, 0, 0, .35);
}
.price-card.featured .pc-list li i { color: var(--primary-color); }
.price-card .pc-tag {
  position: absolute;
  top: -13px;
  right: 28px;
  background: linear-gradient(135deg, #F5A524 0%, #FFBE4D 100%);
  color: #14110A;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 999px;
}
[dir="ltr"] .price-card .pc-tag { right: auto; left: 28px; }
.pricing-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Section: locations (#locations) ---------- */
.loc-card {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.loc-card .loc-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 18px;
  background: rgba(var(--primary-color-rgb), .12);
  color: var(--primary-color);
  font-size: 24px;
}
.loc-card .loc-name { font-size: 17px; margin-bottom: 8px; line-height: 1.45; }
.loc-card .loc-cool { font-size: 14px; margin-bottom: 16px; }
.loc-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-top: auto;
}
.loc-status .loc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.loc-status.live { color: #22C55E; }
.loc-status.live .loc-dot {
  background: #22C55E;
  box-shadow: 0 0 8px 0 rgba(34, 197, 94, .9);
}
.loc-status.soon { color: var(--text-muted); }
.loc-status.soon .loc-dot { background: var(--text-muted); }

/* ---------- Section: payments (#payments) ---------- */
.pay-card {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pay-card .pay-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 16px;
  background: rgba(var(--primary-color-rgb), .12);
  color: var(--primary-color);
  font-size: 26px;
}
.pay-card h4 { font-size: 16px; margin-bottom: 0; }
