/* =====================================================================================================================
   Site v2 — our own look on top of the template's tools ("Ink & Mint").
   Re-colours the template tokens (so every template component follows) and adds the custom sections (x-*).
   ===================================================================================================================== */
:root {
  --color-secondary: #0b1220;
  --color-primary-50: #e6f7f2;
  --color-primary-400: #2bc9a8;
  --color-primary-500: #078a70;
  --color-primary-600: #066f5a;
  --color-ns-cyan: #7be8d2;
  --color-ns-cyan-light: #d9f6ee;
  --color-ns-green: #b9f27c;
  --color-ns-green-light: #eaf9d3;
  --mint: #34e3be;
  --mint-soft: rgb(52 227 190 / .14);
  --ink: #0b1220;
  --ink-2: #111b2e;
  --stage-line: rgb(255 255 255 / .09);
  --stage-text: #e9eff9;
  --stage-dim: #93a1b8;
}

/* ---- hero -------------------------------------------------------------------------------------------- */
.x-hero { position: relative; padding: 150px 0 70px; overflow: clip; background: #fff; }
.dark .x-hero { background: var(--color-background-9, #1f252f); }
.x-hero-bg { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60% 50% at 50% 0%, rgb(52 227 190 / .18), transparent 70%),
  radial-gradient(40% 40% at 90% 30%, rgb(59 130 246 / .10), transparent 70%),
  radial-gradient(rgb(11 18 32 / .07) 1px, transparent 1.2px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.dark .x-hero-bg { background: radial-gradient(60% 50% at 50% 0%, rgb(52 227 190 / .16), transparent 70%), radial-gradient(rgb(255 255 255 / .06) 1px, transparent 1.2px) 0 0 / 22px 22px; }
.x-hero-head { position: relative; text-align: center; max-width: 900px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.x-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); line-height: 1.12; font-weight: 500; margin: 0 0 18px; letter-spacing: -.02em; }
html[lang="ar"] .x-hero h1, html[lang="ur"] .x-hero h1 { line-height: 1.35; letter-spacing: 0; }
.x-hero-head > p { max-width: 640px; font-size: 1.05rem; margin-bottom: 28px; }
.x-grad { background: linear-gradient(90deg, #078a70, #2bc9a8 55%, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.x-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.x-hero-points { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 26px 0 0; padding: 0; font-size: .92rem; color: var(--color-secondary); }
.dark .x-hero-points { color: #fcfcfc; }
.x-hero-points li { display: inline-flex; align-items: center; gap: 8px; opacity: .8; }
.x-hero-points svg { color: var(--color-primary-500); }
.x-langs { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; }
.x-langs p { font-size: .8rem; letter-spacing: .02em; opacity: .65; margin: 0; }
.x-langs ul { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.x-langs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--color-stroke-1, #dfe4eb); background: rgb(255 255 255 / .7); font-size: 12.5px; color: var(--color-secondary); transition: all .2s; }
.dark .x-langs a { background: rgb(255 255 255 / .04); border-color: var(--color-stroke-7); color: #fcfcfc; }
.x-langs a:hover { border-color: var(--color-primary-400); transform: translateY(-1px); }
.x-langs a[aria-current="true"] { border-color: var(--color-primary-500); background: var(--color-primary-50); }

/* ---- stage ------------------------------------------------------------------------------------------- */
.x-stage { position: relative; margin: 54px auto 0; max-width: 1180px; border-radius: 30px; padding: 18px 18px 14px; color: var(--stage-text);
  background: radial-gradient(70% 60% at 85% 0%, rgb(52 227 190 / .14), transparent 60%), linear-gradient(180deg, #0f1a2e, #0a1120);
  border: 1px solid rgb(255 255 255 / .08); box-shadow: 0 50px 110px -40px rgb(8 20 40 / .6), inset 0 1px 0 rgb(255 255 255 / .06); }
.x-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px; align-items: center; }
.x-tabs::-webkit-scrollbar { display: none; }
.x-tab { --p: 0; position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--stage-line); background: rgb(255 255 255 / .04); color: var(--stage-dim); font-size: 13.5px; cursor: pointer; overflow: hidden; transition: color .2s, background .2s, border-color .2s; }
.x-tab:hover { color: #fff; }
.x-tab[aria-selected="true"] { color: #fff; background: var(--mint-soft); border-color: rgb(52 227 190 / .5); }
.x-tab-ic { display: inline-flex; color: var(--mint); }
.x-tab-bar { position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--mint), #3b82f6); transform: scaleX(var(--p)); transform-origin: left; }
[dir="rtl"] .x-tab-bar { transform-origin: right; }
.x-pp { margin-inline-start: auto; flex: none; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--stage-line); background: rgb(255 255 255 / .04); color: var(--stage-dim); display: inline-grid; place-items: center; cursor: pointer; }
.x-pp svg { transform: none; }
.x-pp.is-paused { color: var(--mint); }
.x-stage-body { position: relative; min-height: 580px; }
.x-note { margin: 10px 4px 2px; font-size: 12px; color: var(--stage-dim); text-align: center; }

/* dashboard */
.x-dash { position: absolute; inset-block: 8px 8px; inset-inline-start: 0; width: 72%; border-radius: 20px; border: 1px solid var(--stage-line); background: rgb(255 255 255 / .03); padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.x-dash-bar { display: flex; align-items: center; gap: 6px; padding-block: 2px; }
.x-dash-bar i { width: 10px; height: 10px; border-radius: 99px; background: rgb(255 255 255 / .14); }
.x-dash-bar b { margin-inline-start: 10px; font-weight: 500; font-size: 13px; color: var(--stage-text); }
.x-pill { margin-inline-start: auto; font-style: normal; font-size: 11px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--stage-line); color: var(--stage-dim); white-space: nowrap; }
.x-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.x-kpi { border-radius: 14px; border: 1px solid var(--stage-line); background: rgb(255 255 255 / .04); padding: 10px 14px; }
.x-kpi small { display: block; font-size: 11.5px; color: var(--stage-dim); }
.x-kpi b { display: block; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 2px; }
.x-dash-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 10px; flex: 1; min-height: 0; }
.x-panel { position: relative; border-radius: 14px; border: 1px solid var(--stage-line); background: rgb(255 255 255 / .03); padding: 12px 14px; overflow: hidden; display: flex; flex-direction: column; }
.x-panel-h { font-size: 11.5px; color: var(--stage-dim); margin-bottom: 6px; }
.x-chart { width: 100%; flex: 1; min-height: 80px; }
.x-area { fill: url(#x-grad-fallback); fill: rgb(52 227 190 / .16); }
.x-line { fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.x-cost { position: absolute; inset-inline: 12px; bottom: 10px; display: grid; gap: 1px; padding: 8px 12px; border-radius: 12px; background: rgb(11 18 32 / .85); border: 1px solid rgb(52 227 190 / .35); backdrop-filter: blur(6px); }
.x-cost[hidden] { display: none; }
.x-cost small { font-size: 11px; color: var(--stage-dim); } .x-cost b { font-size: 17px; font-weight: 500; color: var(--mint); } .x-cost span { font-size: 11px; color: var(--stage-dim); }
.x-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 11.5px; align-content: start; }
.x-log li { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: baseline; min-width: 0; }
.x-log time { color: var(--stage-dim); font-variant-numeric: tabular-nums; }
.x-log code { font-family: var(--font-mono, ui-monospace, monospace); color: var(--mint); font-size: 11px; background: var(--mint-soft); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.x-log span { color: var(--stage-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-flow { display: flex; align-items: center; gap: 8px; padding: 8px 4px 0; }
.x-flow[hidden] { display: none; }
.x-fn { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--stage-line); background: rgb(255 255 255 / .05); font-size: 12px; }
.x-fn-wa { border-color: rgb(52 227 190 / .5); color: var(--mint); }
.x-fa { flex: 1; max-width: 70px; height: 1px; background: linear-gradient(90deg, var(--stage-line), var(--mint), var(--stage-line)); position: relative; }
.x-fa::after { content: ""; position: absolute; inset-block-start: -2.5px; inset-inline-end: 0; width: 6px; height: 6px; border-block-start: 1px solid var(--mint); border-inline-end: 1px solid var(--mint); transform: rotate(45deg); }
[dir="rtl"] .x-fa::after { transform: rotate(-135deg); }

/* phone */
.x-phone { position: absolute; inset-inline-end: 3%; top: -6px; width: 282px; height: 584px; border-radius: 50px; border: 7px solid #07090d; background: #0b141a; display: flex; flex-direction: column; overflow: visible; box-shadow: 0 0 0 2px #8b9199, 0 0 0 4px #2a2e35, 0 40px 80px -20px rgb(0 0 0 / .65); z-index: 2; }
.x-phone::before { content: ""; position: absolute; inset-inline-start: -11px; top: 96px; width: 4px; height: 150px; border-radius: 3px; background: linear-gradient(#8b9199 0 24px, transparent 24px 42px, #8b9199 42px 84px, transparent 84px 96px, #8b9199 96px 138px, transparent 138px); }
.x-phone::after { content: ""; position: absolute; inset-inline-end: -11px; top: 150px; width: 4px; height: 76px; border-radius: 3px; background: #8b9199; }
.x-island { position: absolute; top: 10px; inset-inline: 0; margin-inline: auto; width: 88px; height: 26px; background: #000; border-radius: 99px; z-index: 4; }
.x-island::after { content: ""; position: absolute; inset-inline-end: 12px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #26324a, #0a0e17 70%); }
.x-status { position: absolute; top: 14px; inset-inline: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 600; color: #fff; z-index: 4; direction: ltr; pointer-events: none; }
.x-status span { display: inline-flex; align-items: center; gap: 4px; }
.x-phone-head { display: flex; align-items: center; gap: 10px; padding: 46px 14px 10px; background: #111d27; border-bottom: 1px solid rgb(255 255 255 / .06); border-radius: 43px 43px 0 0; }
.x-phone-head .x-back { color: #34b7f1; display: inline-flex; flex: none; }
[dir="rtl"] .x-phone-head .x-back { transform: scaleX(-1); }
.x-phone-head .x-calls { margin-inline-start: auto; display: inline-flex; gap: 12px; color: #aebac1; }
.x-av { width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; overflow: hidden; flex: none; }
.x-av svg { width: 34px; height: 34px; }
.x-phone-head b { display: block; font-size: 13px; font-weight: 500; color: #fff; line-height: 1.2; }
.x-phone-head small { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--stage-dim); }
.x-vt { width: 12px; height: 12px; color: #34b7f1; }
.x-chat { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; background: #0b141a radial-gradient(rgb(255 255 255 / .035) 1px, transparent 1.2px) 0 0 / 18px 18px; }
.x-msg { display: flex; flex-direction: column; gap: 6px; max-width: 88%; }
.x-msg.x-out { align-self: flex-end; } .x-msg.x-in { align-self: flex-start; }
.x-bubble { position: relative; padding: 8px 10px 6px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; color: #e8f0f3; }
.x-in .x-bubble { background: #1d2a35; border-end-start-radius: 4px; } .x-out .x-bubble { background: #0d4f45; border-end-end-radius: 4px; }
.x-time { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 10px; color: rgb(255 255 255 / .5); margin-top: 2px; }
.x-tick { width: 15px; height: 9px; color: rgb(255 255 255 / .45); }
.x-tick[data-s="delivered"] { color: rgb(255 255 255 / .75); } .x-tick[data-s="read"] { color: #53bdeb; }
.x-otp { font-family: var(--font-mono, ui-monospace, monospace); font-size: 24px; letter-spacing: .12em; margin: 6px 0 4px; color: #fff; font-weight: 600; }
.x-b-foot { font-size: 11px; color: rgb(255 255 255 / .6); }
.x-ai { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: var(--mint); margin-bottom: 3px; }
.x-btns { display: grid; gap: 5px; }
.x-qb { text-align: center; padding: 7px 8px; border-radius: 10px; background: #14232e; color: #6fe8cd; font-size: 12px; border: 1px solid rgb(255 255 255 / .06); transition: all .2s; }
.x-qb.is-pressed { background: var(--mint); color: #05231c; transform: scale(.97); }
.x-typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 12px; background: #0d4f45; }
.x-typing i { width: 6px; height: 6px; border-radius: 99px; background: rgb(255 255 255 / .6); animation: x-blink 1s infinite ease-in-out; }
.x-typing i:nth-child(2) { animation-delay: .15s; } .x-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes x-blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.x-phone-foot { padding: 8px 12px 8px; background: #0b141a; border-radius: 0 0 43px 43px; }
.x-phone-foot::after { content: ""; display: block; width: 100px; height: 4px; border-radius: 9px; background: rgb(255 255 255 / .75); margin: 10px auto 2px; }
.x-phone-foot span { display: block; padding: 9px 14px; border-radius: 99px; background: #1d2a35; color: rgb(255 255 255 / .45); font-size: 12px; }
.x-toast { position: absolute; z-index: 3; inset-inline-start: 4%; bottom: 22px; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgb(15 27 46 / .92); border: 1px solid rgb(52 227 190 / .4); backdrop-filter: blur(8px); box-shadow: 0 20px 40px -16px rgb(0 0 0 / .6); opacity: 0; transform: translateY(10px) scale(.96); transition: all .45s cubic-bezier(.2, .9, .3, 1.2); pointer-events: none; max-width: 300px; }
.x-toast.is-on { opacity: 1; transform: none; }
.x-toast-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); flex: none; }
.x-toast small { display: block; font-size: 10.5px; color: var(--stage-dim); } .x-toast b { display: block; font-size: 12.5px; font-weight: 500; color: #fff; }

@media (max-width: 960px) {
  .x-stage { padding: 14px 12px 10px; border-radius: 24px; }
  .x-stage-body { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .x-phone { position: relative; inset: auto; width: min(290px, 100%); height: 500px; order: 1; }
  .x-dash { position: relative; inset: auto; width: 100%; order: 2; }
  .x-dash-grid { grid-template-columns: 1fr; }
  .x-chart { min-height: 70px; }
  .x-toast { position: absolute; inset-inline: 8px; bottom: auto; top: 6px; max-width: none; }
  .x-hero { padding-top: 124px; }
}
@media (max-width: 520px) { .x-kpi b { font-size: 18px; } .x-kpis { gap: 6px; } .x-kpi { padding: 8px 10px; } }
@media (prefers-reduced-motion: reduce) { .x-typing i { animation: none; } }
