/* =====================================================================
   PlusMarket — Neo-brutalist editorial redesign
   Paper + ink, thick borders, hard offset shadows, oversized Georgian
   display type, monospace data. Georgian-safe: display/body fonts carry
   Georgian glyphs; the mono face is used ONLY for digits/Latin/symbols.
   ===================================================================== */

:root {
  /* palette */
  --paper: #f1e7d6; /* warm cream paper */
  --paper-2: #ebdfc9; /* deeper cream for alt bands */
  --card: #fffaf0; /* card surface */
  --ink: #17120d; /* near-black warm ink */
  --ink-soft: #6b5d4b; /* muted secondary text */
  --orange: #FF8700; /* primary brand */
  --cobalt: #2a39ff; /* electric secondary */
  --yellow: #ffcb2b; /* highlight */
  --mint: #18a06a; /* success / online */

  /* aliases kept for JS + legacy selectors */
  --brand: var(--orange);
  --brand-2: var(--yellow);
  --bg: var(--paper);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --border: var(--ink);
  --danger: #e23b3b;

  /* shape */
  --bd: 2.5px;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);

  /* type */
  --font-display: "ninoMT", "arial", Georgia, serif;
  --font-body: "arial", system-ui, -apple-system, sans-serif;
  /* "arial" here is the local BPG Georgian face — per-glyph fallback so Latin
     + digits render monospaced while Georgian stays in a proper Georgian font */
  --font-mono: "JetBrains Mono", "arial", ui-monospace, "Cascadia Code",
    "Consolas", monospace;

  /* legacy modal vars */
  --card-bg: var(--card);
  --card-radius: var(--r);
  --ctrl-size: 50px;
  --ctrl-bg: var(--ink);
  --ctrl-bg-hover: var(--orange);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint engineering grid + grain backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      rgba(23, 18, 13, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(23, 18, 13, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

::selection {
  background: var(--orange);
  color: #fff;
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

img {
  max-width: 70%;
}

/* =========================== HEADER =========================== */
.pbz-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--bd) solid var(--ink);
  color: var(--ink);
}
.header-nav,
.header-nav div {
  display: flex;
}
.header-nav div .toggle-lang {
  margin-right: 18px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  min-width: 0;
}
.brand-logo {
  height: 46px;
  width: 46px;
  display: block;
  transition: transform 0.15s ease;
}
.brand:hover .brand-logo {
  transform: rotate(0deg) scale(1.05);
}
.nav-logo {
  font-size: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-plus {
  color: var(--orange);
}
.logo-point {
  color: var(--ink);
}

/* Language toggle */
.toggle-lang {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.toggle-lang:hover {
  transform: translateY(-2px) rotate(3deg);
}
.img-lang {
  width: 30px;
  height: 22px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-actions a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  border-radius: 7px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-actions a:hover {
  background: var(--ink);
  color: var(--paper);
}
.cta,
.nav-actions a.cta {
  background: var(--orange);
  color: #fff;
  border: var(--bd) solid var(--ink);
  padding: 10px 18px;
  border-radius: 9px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s;
}
.cta:hover,
.nav-actions a.cta:hover {
  background: var(--orange);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.cta:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.burger {
  display: none;
  background: var(--yellow);
  color: var(--ink);
  border: var(--bd) solid var(--ink);
  border-radius: 9px;
  padding: 9px 13px;
  cursor: pointer;
  line-height: 0;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

/* Drawer (mobile) */
.drawer {
  display: none;
  position: fixed;
  inset: 64px 0 auto 0;
  z-index: 49;
  background: var(--paper);
  border-bottom: var(--bd) solid var(--ink);
  top: auto;
}
.drawer.open {
  display: block;
}
.drawer-inner {
  display: grid;
  gap: 10px;
  padding: 16px 0;
}
.drawer-link {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: var(--r-sm);
  border: var(--bd) solid var(--ink);
  background: var(--card);
  font-family: var(--font-display);
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.drawer-link.cta {
  background: var(--orange);
  color: #fff;
}

@media (max-width: 980px) {
  .nav-actions {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
}

/* =========================== HERO TITLE =========================== */
.ticker {
  border-bottom: var(--bd) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 9px 0;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.ticker__track span {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}
.ticker__track span::after {
  content: "•";
  color: var(--orange);
  font-size: 18px;
}

.title-section {
  text-align: left;
  padding: 56px 0 22px;
}
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--cobalt);
  color: #fff;
  border: 2px solid var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
  margin-bottom: 18px;
}
.main-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}
.highlight {
  position: relative;
  color: var(--ink);
  background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%);
  padding: 0 0.08em;
}
.title-rule {
  height: var(--bd);
  background: var(--ink);
  margin: 28px 0 0;
  width: 100%;
}
.subtitle {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 16px 0 0;
}
.transfer{
  width: 100%;
  max-width: 800px;
  margin: auto;
}
/* =========================== HERO GRID =========================== */
.hero {
  padding: 0 0 10px;
}
.exchange-offer {
  text-align: left;
}
.exchange-offer > p {
  margin: 12px 0;
}

/* cards = bordered paper stickers with a hard shadow */
.card {
  background: var(--card);
  border: var(--bd) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.pad {
  padding: 26px;
}

/* Trade tabs — chunky pressed toggle */
.tabs {
  display: flex;
  gap: 10px;
  background: transparent;
  padding: 0;
}
.tab {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  border: var(--bd) solid var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  cursor: pointer;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s;
}
.tab:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}
.tab.active {
  background: var(--orange);
  color: #fff;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.line {
  height: var(--bd);
  background: var(--ink);
  border: none;
  margin: 22px 0;
  opacity: 0.18;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
input,
select {
  width: 100%;
  background: #fff;
  border: var(--bd) solid var(--ink);
  border-radius: var(--r-sm);
  color: var(--ink);
  padding: 14px;
  font-size: 18px;
  font-family: var(--font-mono);
  font-weight: 600;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.1s ease, transform 0.1s ease;
}
input:focus {
  border-color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--orange);
}
.hint {
  margin: 12px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Copy chip — looks like a stamped ticket */
.copy {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: var(--yellow);
  border: var(--bd) solid var(--ink);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  word-break: break-all;
}
.copy:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.copy:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.exp-copy {
  text-align: center;
  margin: 6px auto;
}

.calculator-btn {
  width: 100%;
  background: var(--cobalt);
  color: #fff;
  border: var(--bd) solid var(--ink);
  border-radius: var(--r-sm);
  padding: 15px 20px;
  font-family: var(--font-display);
  font-size: 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.calculator-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.calculator-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.instruction {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.instruction a {
  cursor: pointer;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.instruction a:hover {
  background: var(--orange);
  color: #fff;
}

/* legacy buttons */
.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: var(--bd) solid var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.btn.primary {
  background: var(--orange);
  color: #fff;
}
.btn.ghost {
  background: var(--card);
}
.stack {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.howtoinstruction li a,
.clickable a,
.partners-card a {
  color: var(--cobalt);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid var(--cobalt);
}
.howtoinstruction li a:hover,
.clickable a:hover,
.partners-card a:hover {
  background: var(--cobalt);
  color: #fff;
}

/* =========================== BUY PANEL BLOCKS =========================== */
.countdown {
  display: inline-block;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 17px;
  background: var(--yellow);
  border: var(--bd) solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.5deg);
}
.countdown strong {
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 20px;
}

.available-points {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--ink);
  color: var(--paper);
  border: var(--bd) solid var(--ink);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.available-points::after {
  content: "PLUS";
  position: absolute;
  right: -6px;
  bottom: -18px;
  font-family: var(--font-display);
  font-size: 86px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -0.04em;
  pointer-events: none;
}
.available-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--yellow);
}
.available-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 2.9rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1;
}

.destination-note {
  line-height: 1.55;
  border-left: var(--bd) solid var(--orange);
  padding-left: 14px;
}

.rate-note {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.35;
}

.coming-soon-card {
  padding: 30px 22px;
  background: repeating-linear-gradient(
    45deg,
    var(--paper-2),
    var(--paper-2) 14px,
    var(--card) 14px,
    var(--card) 28px
  );
  border: var(--bd) dashed var(--ink);
  border-radius: var(--r);
  text-align: center;
}
.coming-soon-card strong {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--orange);
  display: block;
  margin-bottom: 6px;
}

/* =========================== RECENT TRADES / STATS =========================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.stat {
  background: var(--card);
  border: var(--bd) solid var(--ink);
  border-radius: var(--r-sm);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.k {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
}

.list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.item strong {
  font-family: var(--font-display);
  font-size: 17px;
}
.item .muted {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.muted {
  color: var(--ink-soft);
}

/* =========================== SECTIONS =========================== */
section {
  padding: 60px 0;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: left;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 18px 0 6px;
}

/* big eyebrow numbers on the explainer headings */
.explain {
  max-width: 820px;
  margin: auto;
}
.explain > section {
  padding: 16px 0;
  counter-increment: ex;
}
.explain {
  counter-reset: ex;
}
.explain > section > h2:first-child,
.explain > section > h3:first-child {
  position: relative;
  padding-left: 0;
}
.explain > section > h3:first-child::before {
  content: "0" counter(ex);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7em;
  color: var(--orange);
  background: var(--ink);
  border-radius: 6px;
  padding: 2px 8px;
  margin-right: 12px;
  vertical-align: middle;
}
.explain ul,
.explain ol {
  padding-left: 20px;
}
.explain li {
  margin: 6px 0;
}

.note {
  background: var(--yellow);
  border: var(--bd) solid var(--ink);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* =========================== FAQ =========================== */
#faq > h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 22px;
}
details {
  background: var(--card);
  border: var(--bd) solid var(--ink);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}
details[open] {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--orange);
}
details + details {
  margin-top: 14px;
}
summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1;
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 7px;
}
details[open] summary::after {
  content: "–";
  background: var(--ink);
}
details p {
  margin: 14px 0 0;
}

/* =========================== ADMIN / SOCIAL =========================== */
.wrap-left {
  float: left;
  width: min(40%, 240px);
  margin: 4px 20px 12px 0;
  border: var(--bd) solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
}
.wrap-right {
  float: right;
  width: min(40%, 240px);
  margin: 4px 0 12px 20px;
  border: var(--bd) solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
}
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.social-networks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.social-networks a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s;
}
.social-networks a:hover {
  transform: translate(-2px, -2px) rotate(-3deg);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--yellow);
}
.social-networks a img {
  height: 24px;
  width: 24px;
}

/* =========================== ONLINE INDICATOR =========================== */
.online-indicator {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--ink);
  border: var(--bd) solid var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 1000;
}
.online-dot {
  width: 0.8rem;
  height: 0.8rem;
  background: var(--mint);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.online-indicator span {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================== FOOTER =========================== */
footer {
  border-top: var(--bd) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 30px 0;
  margin-top: 40px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer .muted {
  color: rgba(241, 231, 214, 0.6);
}
.footer a:hover {
  color: var(--orange);
}

/* =========================== FLOATING WIDGETS =========================== */
.messenger-widget {
  position: fixed;
  z-index: 200;
  bottom: 5.2rem;
  right: 2rem;
  height: 46px;
  width: 46px;
}
.messenger-widget a,
.messenger-widget img {
  height: 46px;
  width: 46px;
}
.messenger-widget a {
  display: grid;
  place-items: center;
  border: var(--bd) solid var(--ink);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.messenger-widget img {
  height: 30px;
  width: 30px;
}

.wa-launcher {
  position: fixed;
  right: 2rem;
  bottom: 9.2rem;
  z-index: 9999;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--mint);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: var(--bd) solid var(--ink);
}
.wa-launcher img {
  width: 28px;
  height: 28px;
}
.wa-panel {
  position: fixed;
  right: 2rem;
  bottom: 13rem;
  z-index: 9999;
  width: 320px;
  max-width: calc(100% - 36px);
  background: var(--card);
  border: var(--bd) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  font-family: var(--font-body);
}
.wa-header {
  background: var(--mint);
  color: #fff;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 18px;
  border-bottom: var(--bd) solid var(--ink);
}
.wa-body {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink);
}
.wa-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 2px solid var(--ink);
  background: var(--paper);
}
.wa-input input {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  box-shadow: none;
  font-family: var(--font-body);
  font-weight: 400;
}
.wa-send {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: var(--bd) solid var(--ink);
  background: var(--mint);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* =========================== MODALS =========================== */
.page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.open-btn {
  background: var(--cobalt);
  color: #fff;
  border: var(--bd) solid var(--ink);
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(23, 18, 13, 0.55);
  z-index: 50;
  padding: 18px;
}
.modal[aria-hidden="false"] {
  display: flex;
}
.dialog {
  width: min(1000px, 100%);
  max-height: 90vh;
  background: var(--card);
  border: var(--bd) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: var(--bd) solid var(--ink);
  background: var(--orange);
  color: #fff;
}
.header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
}
.close {
  background: var(--card);
  border: 2px solid var(--ink);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.close:hover {
  background: var(--yellow);
}

.viewport {
  position: relative;
  overflow: hidden;
  flex: 1;
}
.track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  height: 100%;
}
.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 20px;
}
.media {
  border: var(--bd) solid var(--ink);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin: 0;
  box-shadow: var(--shadow-sm);
}
.media img {
  height: 100%;
  max-height: 70vh;
  object-fit: cover;
  display: block;
  margin: auto;
  width: 100%;
}
.text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow: auto;
  padding-right: 6px;
}
.text h4 {
  margin: 0;
  font-size: 22px;
}
.text p {
  margin: 0;
  line-height: 1.55;
  color: var(--ink-soft);
}
.text::-webkit-scrollbar {
  width: 10px;
}
.text::-webkit-scrollbar-track {
  background: var(--paper-2);
  border-left: 2px solid var(--ink);
}
.text::-webkit-scrollbar-thumb {
  background: var(--orange);
  border: 2px solid var(--ink);
}

.ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--ctrl-size);
  height: var(--ctrl-size);
  display: grid;
  place-items: center;
  border: var(--bd) solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.ctrl:hover {
  background: var(--orange);
  color: #fff;
}
.prev {
  left: 14px;
}
.next {
  right: 14px;
}
.ctrl svg {
  width: 22px;
  height: 22px;
}

.video-shell {
  background: #000;
  max-width: 900px;
  width: 92%;
  border: var(--bd) solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.video-close {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 22px;
  background: var(--card);
  border: 2px solid var(--ink);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 9px;
  cursor: pointer;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.video-close:hover {
  background: var(--orange);
  color: #fff;
}
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 14px 0 18px;
  border-top: var(--bd) solid var(--ink);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--card);
  border: 2px solid var(--ink);
  cursor: pointer;
}
.dot[aria-current="true"] {
  background: var(--orange);
}

/* =========================== ANIMATIONS =========================== */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 160, 106, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(24, 160, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(24, 160, 106, 0);
  }
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-section .kicker {
  animation: revealUp 0.6s 0.05s both;
}
.title-section .main-title {
  animation: revealUp 0.7s 0.12s both;
}
.title-section .title-rule {
  animation: revealUp 0.7s 0.2s both;
}
.hero > .card {
  animation: revealUp 0.7s 0.28s both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .pad {
    padding: 20px;
  }
  .slide {
    grid-template-columns: 1fr;
  }
  .media img {
    max-height: 40vh;
  }
  .text {
    max-height: 40vh;
  }
}
@media (max-width: 560px) {
  .title-section {
    padding: 38px 0 18px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .brand-logo {
    height: 40px;
    width: 40px;
  }
  .nav-logo {
    font-size: 19px;
  }
  .online-indicator span {
    font-size: 0.62rem;
  }
}
@media (max-width: 600px) {
  .wrap-left,
  .wrap-right {
    float: none;
    display: block;
    width: 100%;
    margin: 0 0 14px 0;
  }
}
