/* ==========================================================================
   Mizbandade theme – main stylesheet (light + dark)
   ========================================================================== */

@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn-wght.woff2") format("woff2-variations"), url("../fonts/Vazirmatn-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--blue: #1e90ff;          /* رنگ سازمانی */
	--blue-300: #84c0ff;
	--blue-400: #4fa6ff;
	--blue-600: #0b74e5;
	--blue-700: #095cbb;
	--green: #10b981;
	--amber: #f59e0b;
	--red: #ef4444;
	--navy: #071a33;
	--navy-2: #0b2547;

	--bg: #ffffff;
	--bg-soft: #f2f7ff;
	--surface: #ffffff;
	--surface-2: #f7faff;
	--text: #0f1f36;
	--muted: #5a6b85;
	--line: #e3ebf6;
	--line-strong: #cfdcee;
	--tint: #eef6ff;          /* blue-50 */
	--tint-2: #d9ebff;        /* blue-100 */
	--tint-3: #b6d9ff;        /* blue-200 */
	--brand-text: #095cbb;
	--link: #0b74e5;
	--header-bg: rgba(255, 255, 255, .82);
	--header-bg-solid: rgba(255, 255, 255, .95);
	--dot: rgba(30, 144, 255, .14);
	--map-land: #b9cde6;
	--code-bg: #0b1f3a;

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(15, 31, 54, .06), 0 2px 8px rgba(15, 31, 54, .04);
	--shadow: 0 10px 30px -12px rgba(12, 74, 145, .22);
	--shadow-lg: 0 30px 60px -20px rgba(12, 74, 145, .32);
	--grad: linear-gradient(135deg, #3fa4ff 0%, #1e90ff 45%, #0b6ad6 100%);

	--font: "Vazirmatn", "IRANYekan", Tahoma, system-ui, sans-serif;
	--mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	--container: 1200px;
	--header-h: 74px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #071124;
	--bg-soft: #0a1730;
	--surface: #0d1c38;
	--surface-2: #112443;
	--text: #e8f0fb;
	--muted: #9db0cc;
	--line: #1b3054;
	--line-strong: #264372;
	--tint: rgba(30, 144, 255, .12);
	--tint-2: rgba(30, 144, 255, .22);
	--tint-3: rgba(30, 144, 255, .38);
	--brand-text: #7cbcff;
	--link: #5aafff;
	--header-bg: rgba(7, 17, 36, .8);
	--header-bg-solid: rgba(7, 17, 36, .95);
	--dot: rgba(124, 188, 255, .10);
	--map-land: #24406a;
	--code-bg: #060d18;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
	--shadow: 0 12px 32px -14px rgba(0, 0, 0, .6);
	--shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
	margin: 0; direction: rtl; font-family: var(--font); font-size: 16px; line-height: 1.85;
	color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
svg.icon { flex-shrink: 0; vertical-align: middle; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4, h5, h6 { line-height: 1.45; margin: 0 0 .6em; font-weight: 800; color: var(--text); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 6px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--mono); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 860px); }
.center { text-align: center; margin-top: 32px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; right: 8px; z-index: 999; background: var(--surface); padding: 8px 16px; border-radius: 8px; box-shadow: var(--shadow); }

/* ---------- Buttons & badges ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent;
	font-weight: 700; font-size: 15px; line-height: 1.4; cursor: pointer; white-space: nowrap;
	transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -8px rgba(30, 144, 255, .7); }
.btn--primary:hover { color: #fff; box-shadow: 0 14px 30px -10px rgba(30, 144, 255, .8); }
.btn--light { background: var(--surface); color: var(--brand-text); border-color: var(--tint-2); box-shadow: var(--shadow-sm); }
.btn--light:hover { color: var(--brand-text); border-color: var(--blue-300); }
.btn--ghost { background: var(--tint); color: var(--brand-text); border-color: var(--tint-2); }
.btn--ghost:hover { background: var(--tint-2); color: var(--brand-text); }
.btn--white { background: #fff; color: #095cbb; }
.btn--white:hover { color: #0c4a91; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); }
.btn--outline-white { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--outline-white:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn[aria-disabled="true"], .btn:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: not-allowed; transform: none; }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(-3px); }

.badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
	background: var(--surface); color: var(--brand-text); border: 1px solid var(--tint-2); box-shadow: var(--shadow-sm);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--tint); color: var(--brand-text); }
.pill--green { background: rgba(16, 185, 129, .12); color: #0b9b6c; }
.pill--gray { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
[data-theme="dark"] .pill--green { color: #34d399; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); background: var(--tint); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; direction: ltr; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: var(--header-bg);
	-webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s, background-color .25s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(12, 74, 145, .25); background: var(--header-bg-solid); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.site-header__brand { flex-shrink: 0; }
@media (max-width: 560px) { .site-header__brand { flex-shrink: 1; min-width: 0; } .site-header__brand .brand { max-width: 100%; font-size: 17px; } .site-header__brand .brand > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } }
.site-header__brand img, .custom-logo { max-height: 46px; width: auto; display: block; }
[data-theme="dark"] .custom-logo { filter: brightness(1.1); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 20px; }
.brand:hover { color: var(--text); }
.brand__mark { width: 40px; height: 40px; }

.nav { flex: 1; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__list > li { position: relative; }
.nav__list > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 15px; }
.nav__list > li > a:hover, .nav__list > li:focus-within > a, .nav__list > li.current-menu-item > a, .nav__list > li.current-menu-ancestor > a { color: var(--link); background: var(--tint); }
.nav__caret { transition: transform .2s; opacity: .6; }
.nav__list > li:hover .nav__caret { transform: rotate(180deg); }
.sub-menu {
	list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 10px); right: 0; min-width: 540px;
	display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__list > li:hover > .sub-menu, .nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list > li:nth-last-child(-n+3) > .sub-menu { min-width: 280px; grid-template-columns: 1fr; }
.sub-menu a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); }
.sub-menu a:hover { background: var(--tint); }
.sub-menu__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; background: var(--tint); color: var(--blue); transition: background-color .2s, color .2s; }
.sub-menu a:hover .sub-menu__icon { background: var(--blue); color: #fff; }
.sub-menu__body { display: flex; flex-direction: column; line-height: 1.5; }
.sub-menu__title { font-weight: 700; font-size: 14.5px; }
.sub-menu__desc { font-size: 12.5px; color: var(--muted); }

.site-header__actions { display: flex; align-items: center; gap: 8px; }
/* Icons come from the sprite (<use href="#i-…">); drawing style lives here. */
.icon { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.icon-btn:hover { border-color: var(--blue-300); color: var(--blue); }
.theme-toggle .icon--sun { display: none; }
[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: 56px 0 36px; overflow: hidden; isolation: isolate; }
.hero__bg {
	position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0) 0 0 / 26px 26px, linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%);
}
.hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.35; font-weight: 900; margin: 18px 0 16px; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator__word { grid-area: 1 / 1; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(40%); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rotator__word.is-active { opacity: 1; transform: none; }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-40%); }
.hero__text { font-size: 17px; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__actions.center { justify-content: center; }
.hero__checks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hero__checks li { display: inline-flex; align-items: center; gap: 6px; }
.hero__checks .icon { color: var(--green); }

/* Realistic client-area mock */
.panel-mock { position: relative; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; direction: rtl; font-size: 13px; }
.panel-mock__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); direction: ltr; }
.panel-mock__dots { display: flex; gap: 6px; }
.panel-mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.panel-mock__dots i:nth-child(2) { background: #febc2e; }
.panel-mock__dots i:nth-child(3) { background: #28c840; }
.panel-mock__url { flex: 1; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.panel-mock__url .icon { color: var(--green); }
.price-card__specs b { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.hero__visual { position: relative; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Quick cards */

/* Stats */
.stats { padding: 20px 0 8px; }
.stat { text-align: center; }
.stat + .stat { border-inline-start: 1px solid rgba(255, 255, 255, .22); }

/* Tech strip */
.tech { padding: 30px 0 8px; }
.os-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 900; font-family: var(--mono); background: var(--c, #64748b); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.section--tight { padding: 48px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 44px; }
.section-head__title { font-size: clamp(23px, 3vw, 34px); font-weight: 900; margin-bottom: 10px; }
.section-head__sub { color: var(--muted); font-size: 16px; margin: 0; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; text-align: start; max-width: none; gap: 16px; }
.section-head--row .section-head__title { margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* Services */

/* Features (dark band) */
.section--dark { background: radial-gradient(1000px 500px at 85% -10%, #12407a 0%, transparent 60%), linear-gradient(180deg, var(--navy-2), var(--navy)); color: #c9d8ee; overflow: hidden; }
[data-theme="dark"] .section--dark { background: radial-gradient(1000px 500px at 85% -10%, #0f3463 0%, transparent 60%), linear-gradient(180deg, #08162c, #050d1a); border-block: 1px solid var(--line); }
.section--dark__grid { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(132, 192, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(132, 192, 255, .08) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.section--dark .section-head__title, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { background: rgba(30, 144, 255, .16); color: var(--blue-300); }
.section--dark .section-head__sub { color: #9fb3cf; }
.feature { padding: 28px 24px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(132, 192, 255, .14); transition: transform .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-6px); border-color: rgba(132, 192, 255, .4); }

/* Light feature grid (landing pages) */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit { padding: 24px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.benefit:hover { border-color: var(--tint-3); box-shadow: var(--shadow); transform: translateY(-4px); }
.benefit__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--blue); margin-bottom: 14px; }
.benefit h3 { font-size: 17px; margin-bottom: 6px; }
.benefit p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.95; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 30px; right: 12%; left: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--tint-3) 0 8px, transparent 8px 14px); }
.step { position: relative; text-align: center; padding: 0 8px; counter-increment: step; }
.step__icon { position: relative; display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--blue); box-shadow: var(--shadow-sm); }
.step__icon::after { content: counter(step, persian); position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.step h3 { font-size: 16.5px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* Tabs */
.tabs__list { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.tabs__tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 14px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); font-weight: 700; color: var(--muted); transition: all .2s; }
.tabs__tab:hover { color: var(--brand-text); border-color: var(--tint-3); }
.tabs__tab[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -10px rgba(30, 144, 255, .85); }
.tabs__list--pill { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px; display: flex; width: fit-content; max-width: 100%; margin-inline: auto; flex-wrap: nowrap; overflow-x: auto; }
.tabs__list--pill .tabs__tab { border: 0; border-radius: 999px; background: transparent; padding: 9px 20px; white-space: nowrap; }
.tabs__list--pill .tabs__tab[aria-selected="true"] { background: var(--surface); color: var(--brand-text); box-shadow: var(--shadow-sm); }
.tabs__panel { animation: fadeUp .45s var(--ease); }
.tabs__panel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Plans: table ---------- */
.plans__note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .28); color: var(--text); font-size: 14px; margin: 0 auto 20px; max-width: 900px; }
.plans__note .icon { color: var(--amber); margin-top: 3px; }
.plans__foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 16px; }
.ptable-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ptable th { text-align: start; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable tbody tr { transition: background-color .15s; }
.ptable tbody tr:hover { background: var(--tint); }
.ptable tr.is-off { opacity: .62; }

/* ---------- Plans: cards ---------- */
.period-switch { display: flex; justify-content: center; margin: 0 auto 26px; }
.plan-cards { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .plan-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 24px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.plan-card:hover { border-color: var(--tint-3); box-shadow: var(--shadow); transform: translateY(-4px); }
.plan-card.is-off { opacity: .7; }
.plan-card__price { padding: 14px 0; border-block: 1px dashed var(--line); margin-bottom: 14px; }
.plan-card__price b { font-size: 24px; font-weight: 900; }
.plan-card__price small { color: var(--muted); font-size: 13px; margin-inline-start: 4px; }
.plan-card__price [data-period] { display: none; }
.plan-card__price [data-period].is-on { display: block; }
.plan-card .btn { margin-top: auto; }

/* ---------- Landing hero ---------- */
.lhero { position: relative; padding: 36px 0 56px; overflow: hidden; isolation: isolate; }
.lhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0) 0 0 / 24px 24px, linear-gradient(180deg, var(--tint), var(--bg)); }
.lhero__inner { display: grid; grid-template-columns: 1.25fr .85fr; gap: 44px; align-items: center; margin-top: 18px; }
.lhero__title { font-size: clamp(28px, 3.8vw, 44px); font-weight: 900; margin: 0 0 14px; }
.lhero__intro { color: var(--muted); font-size: 16px; text-align: justify; }
.lhero__intro p:last-child { margin: 0; }
.lhero__intro.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { background: none; border: 0; padding: 0; color: var(--link); font-weight: 700; cursor: pointer; margin-top: 6px; }
.lhero__badges { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lhero__badges li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.lhero__badges .icon { color: var(--green); }
.price-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.price-card__label { color: var(--muted); font-size: 14px; }
.price-card__value { font-size: 30px; font-weight: 900; line-height: 1.4; }
.price-card__value small { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-card__specs { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-card__specs li { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.price-card__specs small { display: block; color: var(--muted); font-size: 11.5px; }
.price-card__specs b { direction: ltr; unicode-bidi: plaintext; }
.price-card__actions { display: grid; gap: 8px; }

.crumbs { font-size: 13.5px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; opacity: .6; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }
.crumbs [aria-current] { color: var(--text); font-weight: 700; }

/* Jump nav for landing pages */
.jumpnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--header-bg-solid); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .jumpnav { top: calc(var(--header-h) + 32px); }
.jumpnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.jumpnav a { display: block; padding: 12px 14px; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; }
.jumpnav a:hover, .jumpnav a.is-active { color: var(--brand-text); border-color: var(--blue); }

/* OS grid */
.os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.os-item { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; direction: ltr; transition: border-color .2s, transform .2s var(--ease); }
.os-item:hover { border-color: var(--tint-3); transform: translateY(-3px); }
.os-item .os-mark { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; }

/* Data tables (bandwidth / resources) */
.dtables { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.dtable { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.dtable__head { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dtable__head h3 { font-size: 17px; margin: 0; }
.dtable__head p { margin: 0; font-size: 13.5px; color: var(--muted); }
.dtable table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dtable th { text-align: start; padding: 10px 18px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.dtable td { padding: 11px 18px; border-top: 1px solid var(--line); }
.dtable td:last-child { font-weight: 800; }

/* Info sections & article */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.info-card { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.info-card h2, .info-card h3 { font-size: 19px; margin-bottom: 10px; }
.info-card p { color: var(--muted); text-align: justify; line-height: 2.05; }
.info-card p:last-child { margin-bottom: 0; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--tint-2); font-size: 13.5px; font-weight: 700; color: var(--brand-text); }
.chips .icon { color: var(--green); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.checklist .icon { color: var(--green); }

.article { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 70px); padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); max-height: calc(100vh - var(--header-h) - 100px); overflow: auto; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); border-inline-start: 2px solid transparent; }
.toc a:hover, .toc a.is-active { color: var(--brand-text); background: var(--tint); border-color: var(--blue); }
.article__body.is-collapsed { max-height: 640px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.article__more { text-align: center; margin-top: 12px; }

/* Related & links */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.link-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.link-card:hover { color: var(--text); border-color: var(--tint-3); box-shadow: var(--shadow); transform: translateY(-4px); }
.link-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.link-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--tint); color: var(--blue); flex-shrink: 0; }
.link-card h3 { font-size: 17.5px; margin: 0; }
.link-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.link-card__from { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--muted); }
.link-card__from b { color: var(--text); }
.link-card__from .icon { color: var(--link); }

/* Consult CTA (light) */
.consult { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--tint), var(--surface)); border: 1px solid var(--tint-2); }
.consult__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--grad); color: #fff; flex-shrink: 0; }
.consult__body { flex: 1; min-width: 240px; }
.consult__body h2 { font-size: 20px; margin-bottom: 4px; }
.consult__body p { margin: 0; color: var(--muted); }
.consult__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Network diagram (CDN) */
.netdiag { width: 100%; height: auto; display: block; }
.netdiag text { font-family: var(--font); font-weight: 700; fill: var(--text); }
.netdiag .nd-node { fill: var(--surface); stroke: var(--line-strong); }
.netdiag .nd-edge { fill: var(--tint); stroke: var(--blue); }
.netdiag .nd-line { stroke: var(--tint-3); stroke-width: 2; fill: none; }
.netdiag .nd-flow { stroke: var(--blue); stroke-width: 2.5; fill: none; stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
.netdiag .nd-muted { fill: var(--muted); font-weight: 500; }
@keyframes dash { to { stroke-dashoffset: -28; } }

/* ---------- World map ---------- */
.dc { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.dc__content p { color: var(--muted); text-align: justify; }
.wmap { position: relative; width: 100%; aspect-ratio: 1000 / 372; }
.wmap__layer { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.wmap__land { background: var(--map-land); -webkit-mask-image: var(--land); mask-image: var(--land); }
.wmap__iran { background: var(--blue); -webkit-mask-image: var(--iran); mask-image: var(--iran); }
.wmap__arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wmap__arc { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 5 6; opacity: .85; animation: dash 2.2s linear infinite; vector-effect: non-scaling-stroke; }
.wmap__pin { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--blue); border: 2.5px solid var(--surface); box-shadow: 0 2px 8px rgba(12, 74, 145, .4); }
.wmap__pin--ir { background: var(--green); }
.wmap__pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid currentColor; color: var(--blue); opacity: 0; animation: ripple 2.4s calc(var(--i) * .4s) infinite; }
.wmap__pin--ir::after { color: var(--green); }
@keyframes ripple { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.wmap__label { position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 800; background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 2px 8px; border-radius: 7px; box-shadow: var(--shadow-sm); }
.wmap__pin--below .wmap__label { bottom: auto; top: calc(100% + 7px); }
.wmap__pin--left .wmap__label { bottom: auto; top: 50%; left: auto; right: calc(100% + 7px); transform: translateY(-50%); }
.wmap__pin--right .wmap__label { bottom: auto; top: 50%; left: calc(100% + 7px); transform: translateY(-50%); }

/* FAQ */
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--tint-3); box-shadow: var(--shadow); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 22px; font-weight: 700; font-size: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__toggle { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; background: var(--tint); color: var(--blue); transition: transform .25s var(--ease), background .2s, color .2s; }
.faq__item[open] .faq__toggle { transform: rotate(180deg); background: var(--blue); color: #fff; }
.faq__answer { padding: 0 22px 18px; color: var(--muted); }
.faq__answer p { margin: 0; }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--blue-300); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.post-card__title { font-size: 16.5px; line-height: 1.75; margin: 8px 0 14px; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--link); }
.post-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .icon { color: var(--blue-400); }

/* CTA (gradient) */
.cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 38px 42px; border-radius: 26px; background: var(--grad); color: #fff; box-shadow: 0 30px 60px -28px rgba(30, 144, 255, .9); }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.cta::before { width: 380px; height: 380px; left: -120px; top: -180px; }
.cta::after { width: 260px; height: 260px; left: -40px; top: -100px; }
.cta__body { flex: 1; min-width: 240px; position: relative; }
.cta__body p { margin: 0; opacity: .92; }

/* ---------- Contact / about ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.contact-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.contact-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; margin-bottom: 14px; }
.contact-card h2 { font-size: 18px; margin-bottom: 4px; }
.contact-card__hours { display: flex; gap: 6px; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.contact-card__hours .icon { flex-shrink: 0; margin-top: 4px; }
.contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-card li a, .contact-card li span { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 14px; }
.contact-card li a:hover { border-color: var(--tint-3); color: var(--brand-text); }
.contact-card li .icon { color: var(--blue); }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0; }
.counter { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.counter b { display: block; font-size: 36px; font-weight: 900; line-height: 1.3; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; }
.counter span { color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.person { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.person__avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 900; font-size: 20px; flex-shrink: 0; }
.person h3 { font-size: 16.5px; margin: 0; }
.person p { margin: 0; color: var(--muted); font-size: 14px; }
.prose { font-size: 16.5px; line-height: 2.1; }
.prose p { text-align: justify; }
.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li { position: relative; padding: 14px 54px 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); line-height: 2; }
.rules li::before { counter-increment: r; content: counter(r, persian); position: absolute; right: 14px; top: 14px; width: 28px; height: 28px; border-radius: 9px; background: var(--tint); color: var(--brand-text); font-weight: 900; display: grid; place-items: center; font-size: 13px; }

/* ---------- Footer ---------- */
.float-support { position: fixed; left: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--grad); color: #fff; box-shadow: 0 12px 28px -8px rgba(30, 144, 255, .8); transition: transform .2s; }
.float-support:hover { color: #fff; transform: translateY(-3px); }

/* ---------- Blog / inner ---------- */
.page-hero { padding: 48px 0 36px; background: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0) 0 0 / 24px 24px, linear-gradient(180deg, var(--tint), var(--bg)); text-align: center; }
.page-hero .crumbs ol { justify-content: center; }
.page-hero__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; margin: 12px 0; }
.page-hero__sub { color: var(--muted); max-width: 680px; margin-inline: auto; }
.page-hero--post .post-meta { justify-content: center; }
.page-hero__search, .notfound__search { max-width: 520px; margin: 20px auto 0; }
.search-form { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow-sm); }
.search-form:focus-within { border-color: var(--blue-300); box-shadow: 0 0 0 4px rgba(30, 144, 255, .12); }
.search-form__input { flex: 1; border: 0; background: transparent; padding: 8px 12px; outline: 0; min-width: 0; }
.search-form__btn { border: 0; background: var(--grad); color: #fff; border-radius: 10px; width: 44px; display: grid; place-items: center; cursor: pointer; }
.single__thumb { margin: -8px 0 32px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.single__thumb img { display: block; width: 100%; }
.entry-content { font-size: 17px; line-height: 2.1; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2 { font-size: 25px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content img { border-radius: 14px; }
.entry-content a { text-decoration: underline; text-decoration-color: var(--tint-3); text-underline-offset: 4px; }
.entry-content blockquote { margin-inline: 0; padding: 16px 22px; background: var(--tint); border-inline-start: 4px solid var(--blue); border-radius: 12px; }
.entry-content pre, .entry-content code { direction: ltr; text-align: left; font-family: var(--mono); font-size: .9em; }
.entry-content pre { background: var(--code-bg); color: #d6e4f7; padding: 18px; border-radius: 14px; overflow: auto; }
.entry-content :not(pre) > code { background: var(--tint); padding: 2px 6px; border-radius: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; }
.entry-content th { background: var(--bg-soft); }
.single__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.single__tags a { padding: 4px 12px; border-radius: 999px; background: var(--tint); font-size: 13px; font-weight: 700; }
.single__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.single__nav-item a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-weight: 700; background: var(--surface); }
.single__nav-item a:hover { border-color: var(--tint-3); box-shadow: var(--shadow-sm); }
.single__nav-item small { display: block; color: var(--muted); font-weight: 500; }
.single__nav-item--next { text-align: left; grid-column: 2; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); font-weight: 700; background: var(--surface); }
.page-numbers.current, .page-numbers:hover { background: var(--grad); color: #fff; border-color: transparent; }
.comments { margin: 48px 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: var(--surface); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--blue-300); box-shadow: 0 0 0 4px rgba(30, 144, 255, .12); }
.empty, .notfound { text-align: center; color: var(--muted); padding: 48px 0; }
.notfound { padding: 80px 0; }
.notfound__code { font-size: clamp(90px, 18vw, 180px); font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.widget { margin-bottom: 28px; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: 100vw; }
.wp-caption-text, figcaption { font-size: 13px; color: var(--muted); text-align: center; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.nav__list > li > a { padding: 10px 9px; font-size: 14.5px; }
	.post-grid, .benefits { grid-template-columns: repeat(2, 1fr); }
	.article { grid-template-columns: 1fr; }
	.toc { position: static; max-height: none; }
}
@media (max-width: 960px) {
	:root { --header-h: 64px; }
	.nav-toggle { display: grid; }
	.nav {
		/* absolute (not fixed): the header's backdrop-filter makes it the containing block */
		position: absolute; top: 100%; right: 0; left: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
		z-index: 99; background: var(--bg); overflow-y: auto; border-top: 1px solid var(--line);
		padding: 16px; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
	}
	.nav-open .nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
	.nav__list > li > a { justify-content: space-between; padding: 14px; font-size: 16px; border-radius: 12px; }
	.nav__list > li:hover .nav__caret { transform: none; }
	.nav__list > li.is-open > a { background: var(--tint); color: var(--brand-text); }
	.nav__list > li.is-open .nav__caret { transform: rotate(180deg); }
	.sub-menu, .nav__list > li:nth-last-child(-n+3) > .sub-menu { position: static; min-width: 0; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 4px 0 8px; opacity: 1; visibility: visible; transform: none; display: none; background: transparent; }
	.nav__list > li:hover > .sub-menu, .nav__list > li:focus-within > .sub-menu { display: none; }
	.nav__list > li.is-open > .sub-menu { display: grid; }
	.hero__inner, .lhero__inner, .dc { grid-template-columns: 1fr; }
	.hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
	.steps::before { display: none; }
	.section { padding: 64px 0; }
	.ptable thead { display: none; }
	.ptable, .ptable tbody, .ptable tr, .ptable td { display: block; width: 100%; }
	.ptable tr { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
	.ptable tr:last-child { border-bottom: 0; }
	.ptable td { padding: 0; border: 0; }
	.ptable td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
}
@media (max-width: 640px) {
	body { font-size: 15px; }
	.site-header__actions .btn span { display: none; }
	.site-header__actions .btn { padding: 10px; }
	.post-grid, .post-grid--3, .benefits { grid-template-columns: 1fr; }
	.stat:nth-child(3) { border-inline-start: 0; }
	.section-head--row { flex-direction: column; align-items: flex-start; }
	.cta { padding: 28px 22px; text-align: center; justify-content: center; }
	.tabs__list:not(.tabs__list--pill) { flex-direction: column; }
	.single__nav { grid-template-columns: 1fr; }
	.single__nav-item--next { grid-column: auto; }
	.float-support { width: 50px; height: 50px; left: 14px; bottom: 14px; }
	.counters { grid-template-columns: 1fr; }
	.wmap__label { font-size: 10px; padding: 1px 5px; }
	.consult { padding: 22px; }
}
/* ==========================================================================
   v2: robust buttons, top bar, mega menu, brand icons, configurator,
   site builder pages, templates catalog, trust seals
   ========================================================================== */

/* Buttons keep their colors even if a plugin styles links/buttons globally */
a.btn, a.btn:hover, a.btn:focus, a.btn:visited { text-decoration: none !important; }
.btn--primary, .btn--primary:hover, .btn--primary:focus, .btn--primary:visited { color: #fff !important; }
.btn--light, .btn--light:hover, .btn--light:focus, .btn--light:visited { color: var(--brand-text) !important; }
.btn--ghost, .btn--ghost:hover, .btn--ghost:focus, .btn--ghost:visited { color: var(--brand-text) !important; }
.btn--white, .btn--white:hover, .btn--white:focus, .btn--white:visited { color: #095cbb !important; }
.btn--outline-white, .btn--outline-white:hover { color: #fff !important; }
.btn[aria-disabled="true"] { color: var(--muted) !important; }
button.tabs__tab, button.icon-btn, button.read-more, button.search-form__btn { font-family: var(--font); text-transform: none; letter-spacing: 0; box-shadow: none; }
button.tabs__tab { background: var(--surface) !important; color: var(--muted) !important; border: 1px solid var(--line) !important; }
button.tabs__tab:hover { color: var(--brand-text) !important; }
button.tabs__tab[aria-selected="true"] { background: var(--grad) !important; color: #fff !important; border-color: transparent !important; }
.tabs__list--pill button.tabs__tab { background: transparent !important; border: 0 !important; }
.tabs__list--pill button.tabs__tab[aria-selected="true"] { background: var(--surface) !important; color: var(--brand-text) !important; box-shadow: var(--shadow-sm); }
button.icon-btn { background: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--line) !important; padding: 0 !important; }
button.icon-btn:hover { color: var(--blue) !important; border-color: var(--blue-300) !important; }
button.read-more { background: none !important; color: var(--link) !important; border: 0 !important; }
button.search-form__btn { background: var(--grad) !important; color: #fff !important; border: 0 !important; }

/* Top bar */
.topbar { background: var(--navy); color: #b8c7dc; font-size: 13px; position: relative; z-index: 101; }
[data-theme="dark"] .topbar { background: #050c18; border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #b8c7dc; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .icon { color: var(--blue-300); }
.topbar__info, .topbar__links { display: flex; align-items: center; gap: 18px; }
.topbar__live { display: inline-flex; align-items: center; gap: 8px; color: #e2e8f0; font-weight: 700; }

/* Header main bar */
.site-header__inner { min-height: 70px; }
.header-register { display: inline-flex; }
.nav__mobile-extra { display: none; }

/* Mega menu: product list + product preview */
.nav__list > li.has-mega { position: static; }
.mega {
	position: absolute; top: 100%; right: 0; left: 0; z-index: 99;
	background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	box-shadow: 0 30px 50px -30px rgba(7, 26, 51, .35);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .2s var(--ease), visibility 0s linear .2s;
}
.mega::before { content: ""; position: absolute; top: -26px; right: 0; left: 0; height: 26px; }
.nav__list > li.has-mega:hover > .mega, .nav__list > li.has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; padding-block: 20px 22px; }
.mega__head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.mega__head strong { font-size: 15px; }
.mega__head a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.mega__list { list-style: none !important; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.mega__item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; color: var(--text); border: 1px solid transparent; transition: background-color .15s, border-color .15s; }
.mega__item:hover, .mega__item.is-on { background: var(--tint); border-color: var(--tint-2); color: var(--text); }
.mega__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; background: var(--tint); color: var(--blue); transition: background-color .15s, color .15s; }
.mega__item.is-on .mega__icon, .mega__item:hover .mega__icon { background: var(--grad); color: #fff; }
.mega__body { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.5; }
.mega__title { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.mega__desc { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega__badge { padding: 0 7px; border-radius: 999px; background: rgba(16, 185, 129, .14); color: #0b9b6c; font-size: 10.5px; font-weight: 800; line-height: 1.7; }
[data-theme="dark"] .mega__badge { color: #34d399; }
.mega__from { flex-shrink: 0; font-size: 11.5px; font-weight: 800; color: var(--muted); direction: rtl; }
.mega__stage { position: relative; min-height: 100%; }
.mprev { display: none; height: 100%; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; background: linear-gradient(160deg, var(--tint), var(--surface-2) 60%); border: 1px solid var(--tint-2); animation: fadeUp .25s var(--ease); }
.mprev.is-on { display: flex; }
.mprev__head { display: flex; align-items: center; gap: 12px; }
.mprev__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; flex-shrink: 0; box-shadow: 0 10px 20px -10px rgba(30, 144, 255, .8); }
.mprev__titles { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; flex: 1; }
.mprev__titles strong { font-size: 16px; }
.mprev__titles span { font-size: 12.5px; color: var(--muted); }
.mprev__head .pill { flex-shrink: 0; }
.mprev__body { display: flex; flex-direction: column; gap: 12px; }
.mprev__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.mprev__price small { width: 100%; color: var(--muted); font-size: 12px; }
.mprev__price b { font-size: 24px; font-weight: 900; line-height: 1.2; }
.mprev__price b.is-off { color: var(--muted); font-size: 18px; }
.mprev__price span { color: var(--muted); font-size: 12.5px; }
.mprev__price em { font-style: normal; font-size: 12px; font-weight: 800; color: #0b9b6c; }
[data-theme="dark"] .mprev__price em { color: #34d399; }
.mprev__specs { list-style: none !important; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mprev__specs li { padding: 7px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); line-height: 1.4; min-width: 0; }
.mprev__specs small { display: block; color: var(--muted); font-size: 11px; }
.mprev__specs b { display: block; font-size: 12.5px; direction: ltr; text-align: right; unicode-bidi: isolate; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mprev__strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mprev__os { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.mprev__chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.mprev__chip--accent { background: var(--tint); border-color: var(--tint-2); color: var(--brand-text); }
.mprev__chip--save { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .3); color: #0b9b6c; }
[data-theme="dark"] .mprev__chip--save { color: #34d399; }
.mprev__count { margin-inline-start: auto; font-size: 12px; color: var(--muted); font-weight: 700; }
.mprev__meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 30px; padding: 4px 6px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.mprev__meter i { width: 5px; border-radius: 2px; background: linear-gradient(180deg, var(--blue-400), var(--blue)); }
.mprev__thumbs { display: grid; gap: 8px; }
.mprev__thumbs--3 { grid-template-columns: repeat(3, 1fr); }
.mprev__thumbs--6 { grid-template-columns: repeat(3, 1fr); }
.mprev__thumbs span { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); text-align: center; }
.mprev__thumbs img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.mprev__note { margin: 0; font-size: 12.5px; color: var(--muted); }
.mprev__pkgs, .mprev__feats { list-style: none !important; margin: 0; padding: 0; display: grid; gap: 6px; }
.mprev__pkgs li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mprev__pkgs span { grid-row: 2; font-size: 12px; color: var(--muted); }
.mprev__pkgs em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-weight: 900; color: var(--brand-text); }
.mprev__feats { grid-template-columns: 1fr 1fr; }
.mprev__feats li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.mprev__feats li span { color: var(--blue); display: inline-flex; }
.mprev__actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1100px) {
	.mega__inner { grid-template-columns: 1fr; }
	.mega__stage { display: none; }
}
@media (max-width: 960px) {
	.nav__list > li.has-mega { position: relative; }
	.mega { position: static; opacity: 1; visibility: visible; transform: none; display: none; border: 0; box-shadow: none; background: transparent; transition: none; }
	.mega::before { display: none; }
	.nav__list > li.has-mega:hover > .mega, .nav__list > li.has-mega:focus-within > .mega { display: none; }
	.nav__list > li.has-mega.is-open > .mega { display: block; }
	.mega__inner { padding: 4px 0 8px; width: 100%; }
	.mega__head { display: none; }
	.mega__list { grid-template-columns: 1fr; }
	.mega__item.is-on { background: transparent; border-color: transparent; }
	.mega__item.is-on .mega__icon { background: var(--tint); color: var(--blue); }
}

/* Brand icons */
.brand-icon { flex-shrink: 0; display: block; }
.os-item { gap: 12px; padding: 14px 16px; }
.os-item .brand-icon { width: 36px; height: 36px; }

/* Persian-digit prices */

/* ---------- Plan configurator (panel style) ---------- */
.cfg { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }

/* ---------- Site builder pricing (fastpay) ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.pkg--featured { border: 1.5px solid var(--blue); box-shadow: 0 24px 50px -28px rgba(30, 144, 255, .7); }
.pkg__ribbon { position: absolute; top: -12px; right: 24px; padding: 3px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; }
.pkg__level { color: var(--brand-text); font-weight: 800; font-size: 13.5px; }
.pkg__name { font-size: 22px; margin: 4px 0 2px; }
.pkg__host { color: var(--muted); font-size: 14px; }
.pkg__price { margin: 16px 0 2px; font-size: 28px; font-weight: 900; }
.pkg__renew { color: #0b9b6c; font-size: 13px; font-weight: 700; }
[data-theme="dark"] .pkg__renew { color: #34d399; }
.pkg__list { list-style: none; padding: 16px 0 0; margin: 16px 0 20px; border-top: 1px dashed var(--line); display: grid; gap: 9px; font-size: 14.5px; }
.pkg__list li { display: flex; gap: 8px; align-items: center; }
.pkg__list .icon { color: var(--green); }
.pkg .btn { margin-top: auto; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.5px; }
.cmp th, .cmp td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: start; }
.cmp thead th { background: var(--surface-2); font-weight: 800; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .yes { color: var(--green); }
.cmp .no { color: var(--muted); opacity: .6; }
.fgroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.fgroup { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.fgroup h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.fgroup h3 .icon { color: var(--blue); }
.fgroup ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fgroup li { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }

/* ---------- Template catalog ---------- */
.tpl-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tpl-search { flex: 1; max-width: 420px; }
.tpl-count { color: var(--muted); font-size: 14px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tpl-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.tpl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tpl-card__shot { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.tpl-card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 3s ease; }
.tpl-card:hover .tpl-card__shot img { object-position: bottom; }
.tpl-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tpl-card__body h3 { font-size: 16.5px; margin: 0; }
.tpl-card__body h3 a { color: var(--text); }
.tpl-card__use { color: var(--muted); font-size: 13.5px; }
.tpl-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tpl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tpl-gallery a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.tpl-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tpl-browser { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
.tpl-browser img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top; }

/* Trust seals */
.seals { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.seal { display: grid; place-items: center; width: 170px; min-height: 180px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.seal img { max-width: 130px; height: auto; cursor: pointer; }

@media (max-width: 1100px) {
	.topbar__links a:nth-child(-n+2) { display: none; }
	.cfg { grid-template-columns: 1fr; }
	.pkg-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 960px) {
	.topbar { display: none; }
	.header-register { display: none; }
	.nav__mobile-extra { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
	.seal { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* Guard theme components against generic table/list styles from plugins */
.ptable, .dtable table, .cmp { border: 0 !important; margin: 0 !important; background: transparent; table-layout: auto; }
.ptable th, .ptable td, .dtable th, .dtable td, .cmp th, .cmp td { border-left: 0 !important; border-right: 0 !important; border-top: 0; background-color: transparent; vertical-align: middle; }
.ptable th, .dtable th, .cmp thead th { background-color: var(--surface-2) !important; }
.ptable tbody tr:nth-child(odd), .ptable tbody tr:nth-child(even), .cmp tbody tr:nth-child(odd), .dtable tbody tr:nth-child(odd) { background-color: transparent; }
.ptable tbody tr:hover { background-color: var(--tint) !important; }
.pkg__list, .chips, .checklist, .footer__links, .footer__contact { list-style: none !important; margin-inline: 0; padding-inline: 0; }
.pkg__list li, .footer__links li { margin: 0; padding-inline: 0; }

/* Mega preview placeholder while loading */
.mprev--loading { justify-content: center; gap: 10px; min-height: 260px; }
.mprev--loading span { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--tint-2), var(--surface), var(--tint-2)); background-size: 200% 100%; animation: mzShimmer 1.2s linear infinite; }
.mprev--loading span:nth-child(1) { width: 60%; height: 22px; }
.mprev--loading span:nth-child(3) { width: 80%; }
@keyframes mzShimmer { to { background-position: -200% 0; } }

/* Header nav: one line, balanced spacing */
.site-header__inner { flex-wrap: nowrap; }
.nav { min-width: 0; }
.nav__list { flex-wrap: nowrap; }
.nav__list > li > a { white-space: nowrap; position: relative; font-size: 15px; }
.nav__list > li > a::after { content: ""; position: absolute; right: 14px; left: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s var(--ease); }
.nav__list > li.current-menu-ancestor > a::after, .nav__list > li.current-menu-item > a::after { transform: scaleX(1); }
.site-header__actions { flex-shrink: 0; }
.site-header__actions .btn { white-space: nowrap; }
@media (max-width: 1280px) and (min-width: 961px) {
	.nav__list > li > a { padding: 10px 9px; font-size: 14.5px; }
	.header-register { display: none; }
}

/* ---------- Light-mode consistency: the features band follows the light palette ---------- */
:root:not([data-theme="dark"]) .section--dark { background: radial-gradient(900px 420px at 85% -10%, var(--tint-2) 0%, transparent 60%), linear-gradient(180deg, var(--bg-soft), var(--tint)); color: var(--muted); }
:root:not([data-theme="dark"]) .section--dark__grid { opacity: .7; background-image: linear-gradient(rgba(30, 144, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 144, 255, .07) 1px, transparent 1px); }
:root:not([data-theme="dark"]) .section--dark .section-head__title, :root:not([data-theme="dark"]) .section--dark h3 { color: var(--text); }
:root:not([data-theme="dark"]) .section--dark .eyebrow { background: var(--tint); color: var(--blue); }
:root:not([data-theme="dark"]) .feature { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
:root:not([data-theme="dark"]) .feature:hover { border-color: var(--tint-3); box-shadow: var(--shadow); }

/* ---------- Top bar (above the mega menu) ---------- */
.topbar { background: linear-gradient(90deg, var(--tint), var(--surface) 45%, var(--surface) 55%, var(--tint)); color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12.5px; }
[data-theme="dark"] .topbar { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.topbar__inner { min-height: 36px; }
.topbar a { color: var(--muted); padding: 3px 8px; border-radius: 8px; transition: color .15s, background-color .15s; }
.topbar a:hover { color: var(--brand-text); background: var(--tint); }
.topbar .icon { color: var(--blue); }
.topbar__info, .topbar__links { gap: 4px; }
.topbar__links a + a { position: relative; }
.topbar__links a + a::before { content: ""; position: absolute; right: -3px; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: var(--line-strong); }
.topbar__live { gap: 7px; padding: 3px 10px; margin-inline-end: 6px; border-radius: 999px; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .25); color: #0b7a55; font-weight: 800; }
[data-theme="dark"] .topbar__live { color: #34d399; }
.topbar__live .badge__dot { width: 7px; height: 7px; }
.topbar__info .ltr { font-weight: 800; color: var(--text); letter-spacing: .02em; }

/* ---------- CDN page ---------- */
.cdn-hero { position: relative; overflow: hidden; isolation: isolate; padding: 28px 0 56px; background: linear-gradient(180deg, var(--tint), var(--bg)); }
.cdn-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cdn-feat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cdn-feat h3 { font-size: 15.5px; margin: 0; }
.cdn-feat p { margin: 0; color: var(--muted); font-size: 13px; }
.cdn-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 300px auto; gap: 24px; align-items: center; padding: 30px 36px; border-radius: 24px; color: #dbe8fb; background: radial-gradient(600px 240px at 30% 50%, #1e5aa8 0%, transparent 70%), linear-gradient(135deg, #0b2a5c, #071a33); box-shadow: 0 30px 60px -30px rgba(7, 26, 51, .7); }
.cdn-cta::before { content: ""; position: absolute; inset: 0; background: rgba(124, 196, 255, .25); -webkit-mask: var(--land) center / 100% auto no-repeat; mask: var(--land) center / 100% auto no-repeat; pointer-events: none; }
.cdn-cta__body { position: relative; }
.cdn-cta h2 { color: #fff; font-size: clamp(19px, 2.3vw, 26px); margin-bottom: 6px; }
.cdn-cta p { margin: 0; }
.cdn-cta__art { position: relative; width: 100%; height: auto; overflow: visible; }
.cdn-cta .btn { position: relative; }
@media (max-width: 1100px) {
	.cdn-feats { grid-template-columns: 1fr 1fr; }
	.cdn-cta { grid-template-columns: 1fr auto; }
	.cdn-cta__art { display: none; }
}
@media (max-width: 640px) {
	.cdn-feats { grid-template-columns: 1fr; }
	.cdn-cta { grid-template-columns: 1fr; text-align: center; padding: 26px 20px; }
}

/* ---------- CDN hero (dark network map) ---------- */
.cdn-hero2 { position: relative; overflow: hidden; isolation: isolate; color: #c9dbf3; background: radial-gradient(700px 380px at 28% 45%, rgba(30, 144, 255, .35), transparent 70%), linear-gradient(180deg, #0a2350 0%, #061633 70%, #071a33 100%); padding: 26px 0 30px; }
.cdn-hero2::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: radial-gradient(60% 100% at 50% 100%, rgba(30, 144, 255, .35), transparent 70%); z-index: -1; }
.cdn-hero2__map { position: absolute; inset: 0 40% 0 0; z-index: -1; background: #4f9ef0; opacity: .5; -webkit-mask: var(--land) 30% 45% / 170% auto no-repeat; mask: var(--land) 30% 45% / 170% auto no-repeat; }
.cdn-hero2__net { position: absolute; inset: 0 auto 0 0; width: 100%; height: 100%; z-index: -1; }
.cdn-arc { stroke-dasharray: 5 7; animation: dash 2.4s linear infinite; }
.cdn-hero2__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; min-height: 300px; }
.cdn-hero2 .crumbs, .cdn-hero2 .crumbs a { color: #9fb6d6; }
.cdn-hero2 .crumbs [aria-current] { color: #fff; }
.cdn-hero2__kicker { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 13px; font-weight: 800; }
.cdn-hero2__kicker .icon { color: #7cc4ff; }
.cdn-hero2__title { color: #fff; font-size: clamp(32px, 4.6vw, 54px); font-weight: 900; margin: 14px 0 6px; }
.cdn-hero2__tagline { color: #fff; font-size: clamp(17px, 1.9vw, 22px); font-weight: 800; margin-bottom: 10px; }
.cdn-hero2__text { max-width: 520px; color: #b9cce6; }
.cdn-hero2__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.cdn-hero2__feats { list-style: none !important; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.cdn-hero2__feats li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 28px; text-align: center; color: #fff; font-weight: 800; font-size: 14px; line-height: 1.6; max-width: 170px; }
.cdn-hero2__feats li + li { border-inline-start: 1px solid rgba(255, 255, 255, .18); }
.cdn-hero2__feats span { color: #4fb0ff; display: inline-flex; filter: drop-shadow(0 0 8px rgba(79, 176, 255, .6)); }
@media (max-width: 960px) {
	.cdn-hero2__inner { grid-template-columns: 1fr; }
	.cdn-hero2__map { inset: 0; opacity: .3; }
	.cdn-hero2__bottom { flex-direction: column; align-items: stretch; }
	.cdn-hero2__feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 0; }
	.cdn-hero2__feats li { max-width: none; }
	.cdn-hero2__feats li:nth-child(3) { border-inline-start: 0; }
}

/* Support pill in the top bar: theme blue */
.topbar__live { background: var(--tint); border-color: var(--tint-2); color: var(--brand-text); }
[data-theme="dark"] .topbar__live { color: var(--brand-text); }
.topbar__live .badge__dot { background: var(--blue); animation: pingBlue 2s infinite; }
@keyframes pingBlue { 0% { box-shadow: 0 0 0 0 rgba(30, 144, 255, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(30, 144, 255, 0); } }

/* ---------- CDN hero: follows the site palette (light + dark), calmer map ---------- */
.cdn-hero2 { color: var(--muted); background: radial-gradient(640px 320px at 26% 45%, var(--tint-2), transparent 70%), linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); padding: 22px 0 34px; border-bottom: 1px solid var(--line); }
[data-theme="dark"] .cdn-hero2 { background: radial-gradient(640px 320px at 26% 45%, rgba(30, 144, 255, .22), transparent 70%), linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); }
.cdn-hero2::after { display: none; }
.cdn-hero2__map { inset: 0 38% 0 0; background: var(--blue); opacity: .16; -webkit-mask: var(--land) 35% 45% / 125% auto no-repeat; mask: var(--land) 35% 45% / 125% auto no-repeat; }
[data-theme="dark"] .cdn-hero2__map { opacity: .28; }
.cdn-hero2__net g:first-child { stroke: var(--blue); opacity: .45; }
.cdn-hero2__net g:last-child { fill: var(--blue); }
.cdn-hero2 .crumbs, .cdn-hero2 .crumbs a { color: var(--muted); }
.cdn-hero2 .crumbs [aria-current] { color: var(--text); }
.cdn-hero2__kicker { background: var(--surface); border-color: var(--tint-2); color: var(--brand-text); box-shadow: var(--shadow-sm); }
.cdn-hero2__kicker .icon { color: var(--blue); }
.cdn-hero2__title, .cdn-hero2__tagline { color: var(--text); }
.cdn-hero2__text { color: var(--muted); }
.cdn-hero2__bottom { border-top-color: var(--line); }
.cdn-hero2__feats li { color: var(--text); font-weight: 700; }
.cdn-hero2__feats li + li { border-inline-start-color: var(--line-strong); }
.cdn-hero2__feats span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--tint-2); color: var(--blue); filter: none; box-shadow: var(--shadow-sm); }

/* ---------- CDN middle: timeline, tiers, with/without diagram ---------- */
.cdn-flow { list-style: none !important; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.cdn-flow::before { content: ""; position: absolute; top: 31px; right: 12.5%; left: 12.5%; height: 2px; background: linear-gradient(90deg, var(--tint-3), var(--blue), var(--tint-3)); }
.cdn-flow__step { position: relative; text-align: center; padding: 0 6px; }
.cdn-flow__dot { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--tint-3); color: var(--blue); box-shadow: 0 0 0 6px var(--bg), var(--shadow-sm); }
.cdn-flow__dot b { position: absolute; top: -4px; left: -4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 900; }
.cdn-flow__step:last-child .cdn-flow__dot { background: var(--grad); color: #fff; border-color: transparent; }
.cdn-flow__step h3 { font-size: 16px; margin-bottom: 4px; }
.cdn-flow__step p { margin: 0 auto; max-width: 230px; color: var(--muted); font-size: 13.5px; }

.cdn-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1040px; margin-inline: auto; }
.cdn-tier { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.cdn-tier:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cdn-tier.is-featured { border: 2px solid var(--blue); box-shadow: 0 26px 50px -28px rgba(30, 144, 255, .75); }
.cdn-tier__ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.cdn-tier__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--tint); color: var(--blue); margin-bottom: 14px; }
.cdn-tier.is-featured .cdn-tier__icon { background: var(--grad); color: #fff; }
.cdn-tier h3 { font-size: 19px; margin-bottom: 2px; }
.cdn-tier__desc { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.cdn-tier__price { font-size: 15px; font-weight: 800; color: var(--brand-text); padding: 10px 0; margin-bottom: 14px; border-block: 1px dashed var(--line); }
.cdn-tier__list { list-style: none !important; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.cdn-tier__list li { display: flex; align-items: center; gap: 8px; }
.cdn-tier__list .icon { flex-shrink: 0; color: #fff; background: var(--blue); border-radius: 50%; padding: 2px; }
.cdn-tier .btn { margin-top: auto; }

.cdn-why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; }
.cdn-compare { display: grid; gap: 14px; padding: 22px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.cdn-compare__row { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.cdn-compare__row.is-good { border-color: var(--tint-3); box-shadow: 0 10px 24px -16px rgba(30, 144, 255, .6); }
.cdn-compare__label { font-weight: 800; font-size: 14px; }
.cdn-compare__row.is-good .cdn-compare__label { color: var(--brand-text); }
.cdn-compare__path { display: flex; align-items: center; gap: 8px; direction: ltr; }
.cdn-compare__node { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); flex-shrink: 0; }
.cdn-compare__node.is-edge { background: var(--grad); color: #fff; border-color: transparent; }
.cdn-compare__line { height: 3px; border-radius: 3px; flex: 0 0 22%; background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 13px); animation: cdnFlow 1s linear infinite; }
.cdn-compare__line.is-long { flex: 1; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 13px); animation-duration: 2.6s; }
.cdn-compare small { color: var(--muted); font-size: 12.5px; line-height: 1.8; }
@keyframes cdnFlow { to { background-position: 13px 0; } }
.cdn-feats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cdn-feat2 { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.cdn-feat2 > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--blue); flex-shrink: 0; }
.cdn-feat2 h3 { font-size: 15px; margin: 0; }
.cdn-feat2 p { margin: 0; color: var(--muted); font-size: 12.5px; }
@media (max-width: 1100px) {
	.cdn-why { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
	.cdn-flow { grid-template-columns: 1fr 1fr; row-gap: 28px; }
	.cdn-flow::before { display: none; }
	.cdn-tiers { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 640px) {
	.cdn-feats2 { grid-template-columns: 1fr; }
}

/* CDN hub (center of the network map) */
.cdn-hero2__inner { grid-template-columns: 1fr; }
.cdn-hero2__content { max-width: 560px; }
@keyframes cdnHub { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.25); opacity: 0; } }

/* CDN hub: minimal */

/* CDN hub: round central node (matches the map nodes) */
.cdn-hub__halo { fill: var(--blue); opacity: .12; transform-box: fill-box; transform-origin: center; animation: cdnHalo 3.2s ease-in-out infinite; }
@keyframes cdnHalo { 0%, 100% { transform: scale(.9); opacity: .14; } 50% { transform: scale(1.12); opacity: .06; } }
.cdn-hub__core { fill: var(--surface); stroke: var(--blue); stroke-width: 2; filter: drop-shadow(0 4px 10px rgba(30, 144, 255, .3)); }
.cdn-hub__cloud { fill: var(--blue); }
.cdn-hero2__bottom { justify-content: flex-start; }

/* CDN map: detailed edge locations + data packets */
.cdn-arc { fill: none; stroke: var(--blue); stroke-width: 1.4; opacity: .45; stroke-dasharray: 5 7; animation: dash 2.4s linear infinite; }
.cdn-arc--minor { opacity: .25; stroke-dasharray: 3 6; }
.cdn-packet { fill: var(--blue); filter: drop-shadow(0 0 4px rgba(30, 144, 255, .9)); }
[data-theme="dark"] .cdn-packet { fill: #9fd2ff; }
.cdn-pt__pulse { fill: var(--blue); opacity: 0; transform-box: fill-box; transform-origin: center; animation: cdnPt 3s ease-out var(--d, 0s) infinite; }
@keyframes cdnPt { 0% { transform: scale(.5); opacity: .35; } 100% { transform: scale(1.9); opacity: 0; } }
.cdn-pt__ring { fill: var(--surface); stroke: var(--blue); stroke-width: 1.6; }
[data-theme="dark"] .cdn-pt__ring { fill: var(--bg); stroke: #5fb4ff; }
.cdn-pt__core { fill: var(--blue); }
[data-theme="dark"] .cdn-pt__core { fill: #7cc4ff; }
.cdn-pt__shine { fill: #fff; opacity: .9; }
.cdn-pt--minor .cdn-pt__ring { stroke-width: 1.2; opacity: .8; }
.cdn-pt--minor .cdn-pt__pulse { animation-duration: 4s; }
.cdn-pt--minor .cdn-pt__shine { display: none; }
@media (prefers-reduced-motion: reduce) { .cdn-packets { display: none; } }
.cdn-hero2__net .cdn-arcs { opacity: 1; }
.cdn-arc { opacity: .55; stroke-width: 1.5; }
[data-theme="dark"] .cdn-arc { stroke: #5fb4ff; opacity: .6; }
.cdn-arc--minor { opacity: .3; }

/* ---------- Colocation: datacenter hero, 42U rack, calculator, NOC ---------- */
.dc-hero { position: relative; overflow: hidden; padding: 26px 0 64px; background: radial-gradient(ellipse 60% 70% at 22% 40%, var(--tint) 0, transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.dc-hero__floor { position: absolute; inset: auto 0 0 0; height: 46%; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; transform: perspective(520px) rotateX(58deg); transform-origin: bottom; opacity: .75; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%); pointer-events: none; }
.dc-hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.dc-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 18px 0 12px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--brand-text); font-size: 13px; font-weight: 800; box-shadow: var(--shadow-sm); }
.dc-kicker__led { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px rgba(46, 204, 113, .18); animation: dcBlink 2.4s ease-in-out infinite; }
.dc-hero__title { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.3; margin-bottom: 12px; }
.dc-hero__intro { color: var(--muted); font-size: 15.5px; text-align: justify; max-width: 620px; }
.dc-hero__intro.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dc-hero__intro p { margin-bottom: 8px; }
.dc-hero .hero__actions { margin-top: 20px; }
.dc-specs { list-style: none !important; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dc-specs li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.dc-specs span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--tint); color: var(--blue); }

.dc-hero__visual { position: relative; display: flex; justify-content: center; }
.dc-rack { direction: ltr; width: 100%; max-width: 430px; height: auto; filter: drop-shadow(0 30px 40px rgba(11, 42, 85, .22)); }
.rk-cap { fill: #0f1621; }
.rk-capvent { fill: #070b11; }
.rk-plate { fill: #e9eef5; }
.rk-plate__t { fill: #1b2534; font: 800 7px/1 ui-monospace, Consolas, monospace; letter-spacing: .3px; }
.rk-foot { fill: #0b1018; }
.rk-rail { fill: #2b3747; }
.rk-unum { fill: #8fa3bd; font: 600 5.6px/1 ui-monospace, Consolas, monospace; }
.rk-hole { fill: #121a25; }
.rk-empty { fill: #0e141d; stroke: #273345; stroke-dasharray: 2 2; stroke-width: .6; }
.rk-face { fill: url(#rkFace); stroke: #435369; stroke-width: .5; }
.rk-face--blank { fill: #1d2633; }
.rk-ear { fill: #4a5a70; opacity: .55; }
.rk-port { fill: #0a1018; stroke: #56677e; stroke-width: .4; }
.rk-sfp { fill: #0a1018; stroke: #1e90ff; stroke-width: .7; }
.rk-cable { stroke-width: 2.2; stroke-linecap: round; }
.rk-cable--b { stroke: #1e90ff; }
.rk-cable--y { stroke: #f5c044; }
.rk-brush { fill: #0b1119; stroke: #3b4a5e; stroke-width: .5; }
.rk-perf { fill: #2c394b; }
.rk-handle { fill: #556780; }
.rk-lcd { fill: #0d3460; stroke: #2d6db8; stroke-width: .6; }
.rk-lcd__bars { stroke: #7cc4ff; stroke-width: 1.6; stroke-linecap: round; }
.rk-btn { fill: #2b3747; stroke: #5d6f88; stroke-width: .5; }
.rk-vent { fill: #141c27; }
.rk-bay { fill: #1a2330; stroke: #4c5d74; stroke-width: .45; }
.rk-bay__grip { stroke: #5b6d86; stroke-width: 1; stroke-linecap: round; }
.rk-grille { stroke: #141c27; stroke-width: 1.6; stroke-linecap: round; }
.rk-power { fill: #1a2330; stroke: #7d8fa8; stroke-width: .7; }
.rk-power.is-mine { stroke: #7cc4ff; }
.rk-led { fill: #3ddc84; }
.rk-led--b { fill: #4fb0ff; }
.rk-led--a { fill: #f5b13d; }
.rk-led--blink { animation: dcBlink 1.6s steps(2, jump-none) var(--d, 0s) infinite; }
.rk-dev--mine .rk-face { fill: url(#rkMine); stroke: #7cc4ff; }
.rk-dev--mine .rk-bay { fill: #12407f; stroke: #6fb4ff; }
.rk-dev--mine .rk-grille { stroke: #0f3a75; }
.rk-mine { fill: none; stroke: #4fb0ff; stroke-width: 1.4; filter: drop-shadow(0 0 4px rgba(30, 144, 255, .9)); animation: dcGlow 2.6s ease-in-out infinite; }
.rk-callout__line { fill: none; stroke: var(--blue); stroke-width: 1.3; stroke-dasharray: 3 3; }
.rk-callout__dot { fill: var(--blue); }
.rk-callout__box { fill: var(--surface); stroke: var(--tint-3); stroke-width: 1; filter: drop-shadow(0 8px 14px rgba(11, 42, 85, .16)); }
.rk-callout__t { fill: var(--text); font: 800 12px/1 var(--font); }
.rk-callout__s { fill: var(--brand-text); font: 700 9.5px/1 ui-monospace, Consolas, monospace; direction: ltr; }
@keyframes dcBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes dcGlow { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.dc-chips { list-style: none !important; margin: 0; padding: 0; }
.dc-chip { position: absolute; display: flex; align-items: center; gap: 9px; padding: 8px 12px 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: floaty 6s ease-in-out infinite; }
.dc-chip span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; }
.dc-chip small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.dc-chip b { display: block; font-size: 13px; line-height: 1.4; }
.dc-chip--1 { top: 8%; right: 0; }
.dc-chip--2 { top: 46%; right: -2%; animation-delay: -2s; }
.dc-chip--3 { bottom: 9%; left: 2%; animation-delay: -4s; }

/* Calculator */
.dc-calc__form { display: grid; gap: 14px; }
.dc-field { margin: 0; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); min-width: 0; }
.dc-field[hidden] { display: none; }
.dc-field legend { float: right; width: 100%; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 0; font-weight: 800; font-size: 15px; }
.dc-field legend + * { clear: both; }
.dc-step { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--tint); color: var(--brand-text); font-size: 12.5px; font-weight: 900; }
.dc-field__val { margin-inline-start: auto; font-style: normal; font-size: 13.5px; color: var(--brand-text); font-weight: 800; }
.dc-seg { display: grid; gap: 8px; }
.dc-seg--3 { grid-template-columns: repeat(3, 1fr); }
.dc-seg--4 { grid-template-columns: repeat(4, 1fr); }
.dc-seg--u { grid-template-columns: repeat(3, 64px); }
.dc-seg--dc { grid-template-columns: 1fr 1fr; }
.dc-seg.dc-seg--dc label > span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; justify-items: start; padding: 12px 14px; text-align: right; }
.dc-seg__ico { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--blue); }
.dc-seg--dc b { font-size: 16px; }
.dc-seg--dc input:checked + span .dc-seg__ico { background: var(--grad); border-color: transparent; color: #fff; }
.dc-seg.dc-seg--dc input:checked + span::after { content: ""; position: absolute; top: 10px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px rgba(46, 204, 113, .2); }
.dc-off[hidden] { display: none; }
.dc-seg label { position: relative; cursor: pointer; }
.dc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.dc-seg label > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; padding: 8px 6px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--surface-2); text-align: center; transition: border-color .2s, background .2s, box-shadow .2s; }
.dc-seg b { font-size: 14px; }
.dc-seg small { color: var(--muted); font-size: 11.5px; }
.dc-seg label:hover > span { border-color: var(--tint-3); }
.dc-seg input:checked + span { border-color: var(--blue); background: var(--tint); box-shadow: 0 8px 18px -12px rgba(30, 144, 255, .8); }
.dc-seg input:checked + span b { color: var(--brand-text); }
.dc-seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.dc-off { color: #16a34a !important; font-weight: 800; }
.dc-u { display: block; width: 34px; border-radius: 2px; background: linear-gradient(#5b6d86, #2b3747); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); position: relative; }
.dc-u::after { content: ""; position: absolute; top: 50%; right: 4px; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: #3ddc84; }
.dc-u--1 { height: 6px; }
.dc-u--2 { height: 12px; }
.dc-u--4 { height: 22px; }
.dc-seg input:checked + span .dc-u { background: var(--grad); }
.dc-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.dc-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.dc-stepper__l { padding: 0 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.dc-stepper button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font: 700 18px/1 var(--font); cursor: pointer; box-shadow: none; }
.dc-stepper button:hover { border-color: var(--blue); color: var(--blue); background: var(--surface); }
.dc-stepper output { min-width: 32px; text-align: center; font-weight: 900; font-size: 16px; }
.dc-stepper--sm button { width: 28px; height: 28px; font-size: 16px; }
.dc-stepper--sm output { min-width: 24px; font-size: 14px; }
.dc-hint { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--tint); color: var(--brand-text); font-size: 13px; font-weight: 700; }
.dc-hint[hidden] { display: none; }
.dc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 6px 0 4px; padding: 0; border: 0; border-radius: 8px; background: linear-gradient(to left, var(--blue) var(--p, 0%), var(--line) var(--p, 0%)); cursor: pointer; }
.dc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 6px; background: var(--surface); border: 2px solid var(--blue); box-shadow: 0 4px 10px rgba(30, 144, 255, .35); }
.dc-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 6px; background: var(--surface); border: 2px solid var(--blue); }
.dc-range__scale { display: flex; justify-content: space-between; color: var(--muted); font: 600 11px/1 ui-monospace, Consolas, monospace; padding: 0 2px; flex-direction: row-reverse; }
.dc-note { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }
.dc-note .icon { flex-shrink: 0; margin-top: 3px; color: var(--blue); }
.dc-extras { display: grid; gap: 8px; }
.dc-extra { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }
label.dc-extra { cursor: pointer; }
.dc-extra > div:first-of-type { flex: 1; min-width: 0; }
.dc-extra b { display: block; font-size: 14px; }
.dc-extra small { display: block; color: var(--muted); font-size: 12px; }
.dc-extra__i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--blue); flex-shrink: 0; }
.dc-switch { -webkit-appearance: none; appearance: none; position: relative; width: 42px; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: background .2s; flex-shrink: 0; }
.dc-switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.dc-switch:checked { background: var(--blue); }
.dc-switch:checked::after { transform: translateX(-18px); }


/* Summary */
.dc-calc__sum { position: sticky; top: 96px; }
.dc-sum { padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dc-sum__head { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.dc-sum__head h3 { margin: 0; font-size: 16px; }
.dc-sum__led { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--tint); }
.dc-sum__tag { margin-inline-start: auto; padding: 3px 9px; border-radius: 7px; background: #1b2534; color: #e6eef8; font: 800 11.5px/1.4 ui-monospace, Consolas, monospace; }
.dc-sum__lines { list-style: none !important; margin: 0; padding: 0; }
.dc-sum__lines li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.dc-sum__lines li span { font-weight: 700; }
.dc-sum__lines small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.dc-sum__lines b { white-space: nowrap; font-size: 13px; }
.dc-sum__lines .is-once { border-bottom: 0; }
.dc-sum__total { margin-top: 6px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.dc-sum__row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 13px; color: var(--muted); }
.dc-sum__row b { color: var(--text); white-space: nowrap; }
.dc-sum__row.is-off b { color: #16a34a; }
.dc-sum__row[hidden] { display: none; }
.dc-sum__grand { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.dc-sum__grand > span { font-weight: 800; font-size: 13.5px; }
.dc-sum__grand > span small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.dc-sum__grand strong { font-size: 22px; font-weight: 900; color: var(--brand-text); white-space: nowrap; line-height: 1.2; }
.dc-sum__grand strong small { font-size: 12px; color: var(--muted); font-weight: 700; }
.dc-sum__note { display: flex; gap: 6px; margin: 12px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.dc-sum__note .icon { flex-shrink: 0; margin-top: 4px; color: #f59e0b; }
.dc-sum .btn + .btn { margin-top: 8px; }

/* Colocation calculator: layout, port cards, datacenter stage with a 42U cabinet */
.dc-calc { display: grid; grid-template-columns: minmax(0, 1.12fr) 316px minmax(0, .95fr); gap: 22px; align-items: start; }
.dc-seg--port { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.dc-seg--port label[hidden] { display: none; }
.dc-seg--port label > span { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; column-gap: 12px; padding: 12px 14px; text-align: right; }
.dc-seg--port small { flex-basis: 100%; padding-inline-start: 44px; margin-top: -4px; text-align: right; }
.dc-seg--port b { font-size: 16px; }
.dc-sfp { position: relative; display: block; width: 32px; height: 20px; border-radius: 4px; background: linear-gradient(#3a4659, #232e3e); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.dc-sfp::before { content: ""; position: absolute; inset: 5px 5px 5px 9px; border-radius: 2px; background: #0b1017; }
.dc-sfp em { position: absolute; top: 8px; left: 3px; width: 4px; height: 4px; border-radius: 50%; background: #64748b; }
.dc-seg input:checked + span .dc-sfp em { background: #3ddc84; box-shadow: 0 0 6px #3ddc84; animation: dcBlink 1s steps(2, jump-none) infinite; }
.dc-calc__rack { position: sticky; top: 96px; }

.dc-stage { position: relative; overflow: hidden; padding: 14px 16px 16px; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(ellipse 90% 55% at 50% 0, var(--tint) 0, transparent 70%), var(--surface); box-shadow: var(--shadow-sm); }
.dc-stage__head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.dc-stage__dc { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--blue); font-size: 12.5px; }
.dc-stage__dc b { color: var(--text); font-weight: 800; }
.dc-stage__id { color: var(--muted); font: 700 10.5px/1 ui-monospace, Consolas, monospace; letter-spacing: .4px; }
.dc-stage__id b { color: var(--brand-text); }
.dc-stage__floor { position: absolute; inset: auto -20% 40px; height: 120px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; transform: perspective(260px) rotateX(60deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); pointer-events: none; }

.dc-cab { --row: 12px; position: relative; z-index: 1; width: 232px; margin: 0 auto; left: 8px; padding: 0 7px; border-radius: 9px 9px 3px 3px; background: linear-gradient(90deg, #121924, #273448 14%, #1f2a3a 86%, #111821); box-shadow: 0 34px 40px -24px rgba(8, 30, 60, .6), inset 0 0 0 1px rgba(255, 255, 255, .06); direction: ltr; }
.dc-cab::after { content: ""; position: absolute; top: 6px; bottom: 4px; left: 100%; width: 16px; background: linear-gradient(90deg, #0d131b, #1a2331); clip-path: polygon(0 0, 100% 10px, 100% calc(100% - 6px), 0 100%); }
.dc-cab__top { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 4px; }
.dc-cab__vents { width: 58%; height: 8px; border-radius: 2px; background: repeating-linear-gradient(90deg, #070b11 0 5px, transparent 5px 8px); opacity: .9; }
.dc-cab__link { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; background: #0b1017; color: #8fa3bd; font: 800 10px/1 ui-monospace, Consolas, monospace; }
.dc-cab__link b { color: #e6eef8; }
.dc-cab__link i { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 6px #3ddc84; animation: dcBlink 1s steps(2, jump-none) infinite; }
.dc-calc.is-25g .dc-cab__link i { background: #4fb0ff; box-shadow: 0 0 6px #4fb0ff; animation-duration: .45s; }
.dc-cab__body { position: relative; display: grid; grid-template-columns: 17px 1fr 9px; gap: 3px; padding: 4px 3px; border-radius: 3px; background: #0a0f16; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 10px 20px rgba(0, 0, 0, .35); }
.dc-cab__body::after { content: ""; grid-column: 3; grid-row: 1; background: repeating-linear-gradient(to bottom, #1d2735 0 2px, #2f3c4f 2px 4px, #1d2735 4px 8px, #2f3c4f 8px 10px, #1d2735 10px 12px); border-radius: 1px; }
.dc-cab__nums { list-style: none !important; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(42, var(--row)); border-radius: 1px; background: #1d2735; }
.dc-cab__nums li { display: grid; place-items: center; color: #5d708a; font: 600 7.5px/1 ui-monospace, Consolas, monospace; transition: color .2s, background .2s; }
.dc-cab__nums li:nth-child(odd) { background: rgba(255, 255, 255, .025); }
.dc-cab__nums li.is-on { color: #fff; background: #1e6fd6; font-weight: 800; }
.dc-cab__slots { list-style: none !important; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(42, var(--row)); background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .04) 0 1px, transparent 1px var(--row)); }
.dc-cab__base { position: relative; height: 16px; margin: 4px -7px 0; border-radius: 0 0 3px 3px; background: linear-gradient(#141b26, #0b1018); }
.dc-cab__base i { position: absolute; bottom: -6px; width: 22px; height: 6px; border-radius: 0 0 3px 3px; background: #070b10; }
.dc-cab__base i:first-child { left: 12px; }
.dc-cab__base i:last-child { right: 12px; }
.dc-cab__bracket { position: absolute; left: -24px; top: calc(4px + var(--a, 0) * var(--row)); height: calc(var(--n, 1) * var(--row)); width: 9px; border: 2px solid var(--blue); border-right: 0; border-radius: 5px 0 0 5px; transition: top .3s var(--ease), height .3s var(--ease); }
.dc-cab__bracket[hidden] { display: none; }
.dc-cab__bracket b { position: absolute; top: 50%; right: 100%; margin-right: 3px; padding: 4px 2px; border-radius: 5px; background: var(--blue); color: #fff; font: 800 9px/1 ui-monospace, Consolas, monospace; white-space: nowrap; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); }

.dc-dev { position: relative; display: flex; align-items: center; gap: 5px; margin: 1px 0; padding: 0 5px; border-radius: 2px; overflow: hidden; color: #dbe6f3; font-size: 9.5px; line-height: 1; direction: rtl; animation: dcIn .35s var(--ease) both; }
@keyframes dcIn { from { opacity: 0; transform: translateX(-12px); } }
.dc-dev--empty { background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .045); animation: none; }
.dc-dev--other { background: linear-gradient(#364256, #252f3f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); opacity: .62; }
.dc-dev--mine { z-index: 1; background: linear-gradient(#3289ee, #165cc0); box-shadow: inset 0 0 0 1px #8ccaff, inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 12px rgba(30, 144, 255, .55); color: #fff; }
.dc-dev__ear { position: absolute; top: 2px; bottom: 2px; right: 2px; width: 3px; border-radius: 1px; background: rgba(255, 255, 255, .18); }
.dc-dev__leds { position: relative; z-index: 1; display: inline-flex; gap: 2px; flex-shrink: 0; margin-right: 4px; }
.dc-dev__leds i { width: 3.5px; height: 3.5px; border-radius: 50%; background: #3ddc84; animation: dcBlink 1.4s steps(2, jump-none) var(--d, 0s) infinite; }
.dc-dev__leds i + i { background: #7cc4ff; }
.dc-dev--other .dc-dev__leds i { animation: none; opacity: .8; }
.dc-dev__bays { position: absolute; top: 2px; bottom: 2px; left: 6px; width: 46%; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .38) 0 10px, transparent 10px 12px); border-radius: 1px; }
.dc-dev.is-u2 .dc-dev__bays, .dc-dev.is-u3 .dc-dev__bays, .dc-dev.is-u4 .dc-dev__bays { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .38) 0 10px, transparent 10px 12px), repeating-linear-gradient(to bottom, transparent 0 calc(var(--row) - 3px), rgba(255, 255, 255, .12) calc(var(--row) - 3px) var(--row)); }
.dc-dev--mine .dc-dev__bays { background: repeating-linear-gradient(90deg, rgba(4, 30, 80, .45) 0 10px, transparent 10px 12px); }
.dc-dev__l { position: relative; z-index: 1; display: inline-flex; align-items: baseline; gap: 4px; font-weight: 800; white-space: nowrap; }
.dc-dev__l small { font: 700 8px/1 ui-monospace, Consolas, monospace; opacity: .85; direction: ltr; }
.dc-dev--patch { background: #151c27; }
.dc-dev--patch::after { content: ""; position: absolute; inset: 3px 6px; background: repeating-linear-gradient(90deg, #04070b 0 4px, transparent 4px 6px); }
.dc-dev--patch::before { content: ""; position: absolute; z-index: 1; top: 1px; left: 10px; right: 10px; height: 3px; background: repeating-linear-gradient(90deg, #1e90ff 0 2px, transparent 2px 12px, #f5c044 12px 14px, transparent 14px 24px); opacity: .9; }
.dc-dev--net { background: linear-gradient(#1e2a3a, #141c28); }
.dc-dev__ports { position: absolute; top: 3px; bottom: 3px; left: 24px; right: 8px; background: repeating-linear-gradient(90deg, #04070b 0 5px, transparent 5px 7px); }
.dc-dev__ports::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 1.5px; background: repeating-linear-gradient(90deg, #3ddc84 0 2px, transparent 2px 7px, #3ddc84 7px 9px, transparent 9px 21px); animation: dcBlink .9s steps(2, jump-none) infinite; }
.dc-dev__sfp { position: absolute; top: 3px; bottom: 3px; left: 5px; width: 15px; border-radius: 1px; box-shadow: inset 0 0 0 1px #4fb0ff; }
.dc-dev--cable { background: #0f151e; }
.dc-dev--cable::after { content: ""; position: absolute; inset: 4px 8px; border-radius: 2px; background: #05080c; box-shadow: inset 0 0 0 1px #2b3747; }
.dc-dev--pdu { background: #111820; }
.dc-dev--pdu::after { content: ""; position: absolute; inset: 3px 10px; background: repeating-linear-gradient(90deg, #2b3747 0 7px, transparent 7px 11px); }
.dc-dev--region { margin: 0; justify-content: center; border-radius: 3px; background: repeating-linear-gradient(to bottom, rgba(30, 144, 255, .14) 0 calc(var(--row) - 1px), rgba(30, 144, 255, .32) calc(var(--row) - 1px) var(--row)); box-shadow: inset 0 0 0 1.5px #4fb0ff, 0 0 16px rgba(30, 144, 255, .35); }
.dc-dev--region .dc-dev__l { flex-direction: column; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 10px; background: #1e90ff; font-size: 12px; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.dc-dev--region .dc-dev__l small { font-size: 10px; }

.dc-legend { position: relative; z-index: 2; list-style: none !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin: 18px 0 0; padding: 0; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.dc-legend li { display: inline-flex; align-items: center; gap: 5px; }
.dc-legend i { width: 10px; height: 10px; border-radius: 3px; }
.dc-legend .is-mine { background: linear-gradient(#3289ee, #165cc0); box-shadow: 0 0 6px rgba(30, 144, 255, .6); }
.dc-legend .is-other { background: #4a566a; }
.dc-legend .is-net { background: #141c28; box-shadow: inset 0 0 0 1px #4fb0ff; }
.dc-legend .is-empty { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.dc-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.dc-meter { display: grid; gap: 5px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.dc-meter span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.dc-meter span .icon { color: var(--blue); }
.dc-meter b { font: 800 15px/1.1 ui-monospace, Consolas, monospace; color: var(--text); text-align: right; }
.dc-meter b small { font-size: 10px; color: var(--muted); font-weight: 700; }
.dc-meter i { height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.dc-meter em { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .35s var(--ease); }
[data-theme="dark"] .dc-cab { box-shadow: 0 34px 40px -24px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); }

/* NOC board */
.dc-noc { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.dc-noc__bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #101826; color: #c9d6e6; font-size: 13px; font-weight: 700; }
.dc-noc__dots { display: inline-flex; gap: 5px; }
.dc-noc__dots i { width: 9px; height: 9px; border-radius: 50%; background: #2b3747; }
.dc-noc__live { display: inline-flex; align-items: center; gap: 7px; margin-inline-start: auto; color: #3ddc84; font-size: 12px; }
.dc-noc__live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dcBlink 1.4s ease-in-out infinite; }
.dc-noc__grid { list-style: none !important; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.dc-noc__cell { position: relative; padding: 20px 22px; border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.dc-noc__cell:nth-child(3n + 1) { border-inline-start: 0; }
.dc-noc__cell:nth-last-child(-n + 3) { border-bottom: 0; }
.dc-noc__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px; background: var(--tint); color: var(--blue); }
.dc-noc__cell small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.dc-noc__cell b { display: block; margin: 2px 0 4px; font-size: 20px; font-weight: 900; line-height: 1.5; color: var(--text); text-align: right; }
.dc-noc__cell p { margin: 0; color: var(--muted); font-size: 13px; }
.dc-noc__ok { position: absolute; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: rgba(46, 204, 113, .12); color: #16a34a; font: 800 11px/1.3 ui-monospace, Consolas, monospace; }
.dc-noc__ok i { width: 6px; height: 6px; border-radius: 50%; background: #2ecc71; }

/* Feature modules (rack faceplates) */
.dc-mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dc-mod { position: relative; padding: 0 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.dc-mod:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--tint-3); }
.dc-mod__face { display: flex; align-items: center; gap: 6px; height: 24px; margin: 0 -18px 16px; padding: 0 10px; background: linear-gradient(#2b3747, #1b2534); color: #8fa3bd; font: 700 10px/1 ui-monospace, Consolas, monospace; transition: background .25s; }
.dc-mod__face i { width: 5px; height: 5px; border-radius: 50%; background: #0f1621; box-shadow: inset 0 0 0 1px #4a5a70; }
.dc-mod__face span { margin-inline-end: auto; }
.dc-mod__face em { width: 5px; height: 5px; border-radius: 50%; background: #3ddc84; }
.dc-mod__face em + em { background: #4fb0ff; animation: dcBlink 1.8s steps(2, jump-none) infinite; }
.dc-mod:hover .dc-mod__face { background: linear-gradient(#2f7fe0, #1557b8); color: #dbeafe; }
.dc-mod__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 13px; background: var(--tint); color: var(--blue); }
.dc-mod h3 { font-size: 16px; margin-bottom: 6px; }
.dc-mod p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }

/* Article */
.dc-article { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dc-article__item { padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.dc-article__item h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 10px; }
.dc-article__item h3::before { content: attr(data-u); direction: ltr; flex-shrink: 0; padding: 3px 7px; border-radius: 6px; background: #1b2534; color: #e6eef8; font: 800 11px/1.3 ui-monospace, Consolas, monospace; }
.dc-article__item p { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 2; text-align: justify; }

[data-theme="dark"] .dc-chip, [data-theme="dark"] .dc-sum { box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7); }
[data-theme="dark"] .dc-noc__bar { background: #0a111c; }
[data-theme="dark"] .dc-off, [data-theme="dark"] .dc-sum__row.is-off b, [data-theme="dark"] .dc-noc__ok { color: #4ade80 !important; }
[data-theme="dark"] .dc-sum__tag, [data-theme="dark"] .dc-article__item h3::before { background: #24324a; }
@media (prefers-reduced-motion: reduce) { .rk-led--blink, .rk-mine, .dc-chip, .dc-dev, .dc-dev__leds i, .dc-cab__link i { animation: none; } }
@media (max-width: 1180px) {
	.dc-calc { grid-template-columns: minmax(0, 1fr) 316px; }
	.dc-calc__sum { grid-column: 1 / -1; position: static; }
	.dc-mods { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.dc-hero__inner { grid-template-columns: 1fr; }
	.dc-hero__visual { max-width: 460px; margin-inline: auto; width: 100%; }
	.dc-noc__grid { grid-template-columns: 1fr 1fr; }
	.dc-noc__cell:nth-child(n) { border-inline-start: 1px solid var(--line); border-bottom: 1px solid var(--line); }
	.dc-noc__cell:nth-child(2n + 1) { border-inline-start: 0; }
	.dc-noc__cell:nth-last-child(-n + 2) { border-bottom: 0; }
	.dc-article { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.dc-calc { grid-template-columns: 1fr; }
	.dc-calc__rack { position: static; order: -1; max-width: 340px; width: 100%; margin-inline: auto; }
	.dc-chip--2 { display: none; }
	.dc-seg--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.dc-mods, .dc-noc__grid { grid-template-columns: 1fr; }
	.dc-noc__cell:nth-child(n) { border-inline-start: 0; border-bottom: 1px solid var(--line); }
	.dc-noc__cell:last-child { border-bottom: 0; }
	.dc-seg--3 b { font-size: 12.5px; }
}

/* ---------- Plan cards: always a single row (swipe / arrows when it overflows) ---------- */
.plan-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(232px, 1fr); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 8px 4px 16px; margin: -8px -4px 0; scrollbar-width: thin; scrollbar-color: var(--tint-3) transparent; }
.plan-cards::-webkit-scrollbar { height: 6px; }
.plan-cards::-webkit-scrollbar-thumb { border-radius: 6px; background: var(--tint-3); }
.plan-card { scroll-snap-align: start; }
.plan-nav { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.plan-nav[hidden] { display: none; }
.plan-nav button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .2s, color .2s, opacity .2s; }
.plan-nav button:hover { border-color: var(--blue); color: var(--blue); background: var(--surface); }
.plan-nav button:disabled { opacity: .35; cursor: default; }
.plan-nav [data-dir="-1"] .icon { transform: rotate(-90deg); }
.plan-nav [data-dir="1"] .icon { transform: rotate(90deg); }
@media (max-width: 1100px) { .plan-cards { grid-template-columns: none; grid-auto-columns: minmax(250px, 1fr); } }
@media (max-width: 640px) { .plan-cards { grid-auto-columns: 84%; } }

/* ---------- Footer ---------- */
/* Footer palette: light in light mode, dark in dark mode */
.site-footer { --f-bg: linear-gradient(180deg, #f3f8ff, #e9f2fd); --f-text: #4a5b73; --f-muted: #6b7d96; --f-link: #34465f; --f-head: #0b1b33; --f-line: #d8e4f3; --f-card: rgba(255, 255, 255, .75); --f-grid: rgba(30, 144, 255, .07); --f-icon-bg: rgba(30, 144, 255, .1); --f-icon: #0b74e5; }
[data-theme="dark"] .site-footer { --f-bg: #050c18; --f-text: #9fb3cf; --f-muted: #7d93b3; --f-link: #c5d4ea; --f-head: #fff; --f-line: rgba(255, 255, 255, .08); --f-card: rgba(255, 255, 255, .04); --f-grid: rgba(255, 255, 255, .035); --f-icon-bg: rgba(30, 144, 255, .15); --f-icon: #84c0ff; }
.site-footer { position: relative; overflow: hidden; padding-top: 56px; background: var(--f-bg); color: var(--f-text); font-size: 14.5px; }
[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
.footer__bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 45% 40% at 88% 0, rgba(30, 144, 255, .24), transparent 70%), radial-gradient(ellipse 40% 35% at 0 100%, rgba(30, 144, 255, .12), transparent 70%); }
.footer__bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--f-grid) 1px, transparent 1px), linear-gradient(90deg, var(--f-grid) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0, #000, transparent 75%); mask-image: radial-gradient(ellipse 75% 55% at 50% 0, #000, transparent 75%); }
.footer__bg::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.site-footer .container { position: relative; }
.site-footer a { color: var(--f-link); transition: color .2s; }
.site-footer a:hover { color: var(--f-icon); }
.site-footer .brand { color: var(--f-head); }
.site-footer .custom-logo { max-height: 46px; width: auto; }
[data-theme="dark"] .site-footer .custom-logo { filter: brightness(0) invert(1); }

.footer__cta { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 22px 26px; border-radius: 22px; background: linear-gradient(135deg, #2b9bff, #0b62d6 55%, #0a479e); color: #fff; box-shadow: 0 30px 60px -32px rgba(30, 144, 255, .75); }
.footer__cta::before, .footer__cta::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); pointer-events: none; }
.footer__cta::before { width: 260px; height: 260px; left: -70px; top: -150px; }
.footer__cta::after { width: 160px; height: 160px; left: -20px; top: -90px; border-color: rgba(255, 255, 255, .22); }
.footer__cta-icon { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.footer__cta-text strong { display: block; font-size: 18px; font-weight: 900; line-height: 1.6; }
.footer__cta-text p { margin: 2px 0 0; color: rgba(255, 255, 255, .85); font-size: 14px; }
.footer__cta-actions { position: relative; display: flex; gap: 10px; flex-wrap: wrap; }
.btn--glass { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .32); color: #fff !important; }
.btn--glass:hover { background: rgba(255, 255, 255, .24); color: #fff !important; }

.footer__stats { list-style: none !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 36px; padding: 0; }
.footer__stats li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--f-card); border: 1px solid var(--f-line); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.footer__stats li:hover { border-color: rgba(30, 144, 255, .45); background: rgba(30, 144, 255, .08); transform: translateY(-3px); }
.footer__stat-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--f-icon-bg); color: var(--f-icon); flex-shrink: 0; transition: background .25s, color .25s; }
.footer__stats li:hover .footer__stat-icon { background: var(--blue); color: #fff; }
.footer__stats b { display: block; color: var(--f-head); font-size: 17px; font-weight: 900; line-height: 1.4; }
.footer__stats small { display: block; color: var(--f-muted); font-size: 12.5px; }

.footer__top { display: grid; grid-template-columns: 1.05fr 2fr; gap: 48px; padding: 36px 0; border-top: 1px solid var(--f-line); }
.footer__about p { margin: 16px 0 22px; line-height: 2.05; text-align: justify; }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact small { display: block; color: var(--f-muted); font-size: 12.5px; }
.footer__contact-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--f-icon-bg); color: var(--f-icon); flex-shrink: 0; transition: background .25s, color .25s, transform .25s var(--ease); }
.footer__contact li:hover .footer__contact-icon { background: var(--blue); color: #fff; transform: rotate(-8deg); }
.footer__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.footer__title { position: relative; margin-bottom: 16px; padding-bottom: 10px; color: var(--f-head); font-size: 15.5px; }
.footer__title::after { content: ""; position: absolute; right: 0; bottom: 0; width: 22px; height: 3px; border-radius: 3px; background: var(--blue); transition: width .3s var(--ease); }
.footer__col:hover .footer__title::after { width: 44px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a, .footer__link { position: relative; display: inline-flex; align-items: center; padding-bottom: 3px; background: linear-gradient(var(--f-icon), var(--f-icon)) no-repeat 100% 100% / 0 1.5px; transition: background-size .3s var(--ease), color .2s; }
.footer__links a::before { content: ""; width: 0; height: 6px; border-radius: 50%; background: var(--blue); transition: width .25s var(--ease), margin .25s var(--ease); }
.footer__links a:hover, .footer__link:hover { color: var(--f-icon); background-size: 100% 1.5px; }
.footer__links a:hover::before { width: 6px; margin-inline-end: 8px; }

.footer__mid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; border-top: 1px solid var(--f-line); }
.footer__social { display: flex; align-items: center; gap: 10px; }
.footer__social > span { color: var(--f-muted); font-size: 13px; margin-inline-end: 4px; }
.social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--f-card); border: 1px solid var(--f-line); transition: background .25s, transform .25s var(--ease), box-shadow .25s; }
.social:hover { transform: translateY(-4px); color: #fff; box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .6); }
.social--whatsapp:hover { background: #25d366; }
.social--telegram:hover { background: #229ed9; }
.social--instagram:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.footer__namad { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--f-card); border: 1px solid var(--f-line); transition: border-color .25s, background .25s; }
.footer__namad:hover { border-color: rgba(30, 144, 255, .5); background: rgba(30, 144, 255, .08); }
.footer__namad-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--f-icon-bg); color: var(--f-icon); flex-shrink: 0; }
.footer__namad strong { display: block; color: var(--f-head); font-size: 14px; }
.footer__namad small { display: block; color: var(--f-muted); font-size: 12px; }
.footer__namad > .icon { color: var(--f-icon); transition: transform .25s var(--ease); flex-shrink: 0; }
.footer__namad:hover > .icon { transform: translateX(-4px); }
.footer__bottom { display: flex; align-items: center; gap: 12px 20px; padding: 18px 0 24px; border-top: 1px solid var(--f-line); font-size: 13px; color: var(--f-muted); }
.footer__bottom p { margin: 0; }
.footer__bottom p:first-child { flex: 1; }
.footer__top-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 11px; background: var(--f-card); border: 1px solid var(--f-line); color: var(--f-link); cursor: pointer; box-shadow: none; transition: background .2s, color .2s, transform .2s var(--ease); flex-shrink: 0; }
.footer__top-btn .icon { transform: rotate(180deg); }
.footer__top-btn:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
@media (max-width: 1100px) {
	.footer__top { grid-template-columns: 1fr; gap: 32px; }
	.footer__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.footer__cols { grid-template-columns: repeat(3, 1fr); }
	.footer__cta { grid-template-columns: auto 1fr; }
	.footer__cta-actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.site-footer { padding-top: 36px; }
	.footer__cta { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 18px; }
	.footer__cta-actions { flex-direction: column; width: 100%; }
	.footer__cta-actions .btn { width: 100%; justify-content: center; }
	.footer__stats { gap: 8px; margin-bottom: 28px; }
	.footer__stats li { flex-direction: column; text-align: center; gap: 8px; padding: 14px 8px; }
	.footer__cols { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
	.footer__mid { flex-direction: column; align-items: stretch; }
	.footer__social { justify-content: center; }
	.footer__bottom { flex-direction: column; text-align: center; }
	.footer__bottom p:first-child { flex: none; }
}

/* Mobile: the closed off-canvas menu and any stray wide element never widen the page */
body { overflow-x: clip; }
@media (max-width: 960px) { .site-header { overflow-x: clip; } }

/* Mobile table-mode plans: one swipeable row of cards instead of a long stack */
@media (max-width: 640px) {
	.ptable-wrap { border: 0; background: transparent; box-shadow: none; overflow: visible; }
	.ptable tbody { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--tint-3) transparent; }
	.ptable tbody tr, .ptable tbody tr:last-child { flex: 0 0 84%; width: auto; scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface) !important; box-shadow: var(--shadow-sm); padding: 18px 16px; }
}



/* ---------- Homepage partners («همکاران ما») ---------- */
.partners__track { list-style: none !important; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.partners__track > li { margin: 0; }
.partner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 24px 16px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: center; overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.partner::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease); }
.partner:hover { transform: translateY(-4px); border-color: var(--tint-3); box-shadow: var(--shadow); color: var(--text); }
.partner:hover::before { transform: scaleX(1); }
.partner__mono { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: hsl(var(--h, 210) 90% 55% / .12); color: hsl(var(--h, 210) 85% 45%); font: 900 28px/1 var(--mono); box-shadow: inset 0 0 0 1px hsl(var(--h, 210) 90% 55% / .25); transition: background .25s, color .25s, box-shadow .25s; }
[data-theme="dark"] .partner__mono { color: hsl(var(--h, 210) 90% 70%); }
.partner:hover .partner__mono { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(30, 144, 255, .8); }
.partner__media { display: grid; place-items: center; height: 64px; }
.partner__logo { max-width: 150px; max-height: 58px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.partner:hover .partner__logo { filter: none; opacity: 1; }
.partner__text b { display: block; font-size: 16px; font-weight: 900; }
.partner__text small { display: block; color: var(--muted); font: 700 12px/1.6 var(--mono); }
.partners--marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners--marquee { padding: 8px 0 14px; }
.partners--marquee .partners__track { --g: 16px; display: flex; gap: var(--g); width: max-content; animation: ptMarquee var(--dur, 40s) linear infinite; }
.partners--marquee .partners__track > li { width: 210px; flex-shrink: 0; }
.partners--marquee:hover .partners__track, .partners--marquee:focus-within .partners__track, .partners--marquee:active .partners__track { animation-play-state: paused; }
@media (max-width: 760px) { .partners--marquee .partners__track { --g: 12px; } .partners--marquee .partners__track > li { width: 160px; } }
@keyframes ptMarquee { to { transform: translateX(calc(50% + var(--g) / 2)); } }
@media (max-width: 760px) { .partners:not(.partners--marquee) .partners__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .partner { padding: 18px 12px 16px; } }
@media (prefers-reduced-motion: reduce) { .partners--marquee .partners__track { animation: none; } }

/* ---------- Hosting pages: datacenter-aisle hero + plan cards (light and dark) ---------- */
.hh, .hh-end { --hh-bg: linear-gradient(180deg, #e3efff 0%, #f1f7ff 100%); --hh-bg2: #f4f8ff; --hh-head: #0b1b3a; --hh-text: #3e5372; --hh-muted: #61789a; --hh-card: #fff; --hh-card2: linear-gradient(170deg, #ffffff, #f3f8ff); --hh-line: #d9e6f6; --hh-line2: #c4d8f1; --hh-field: #f5f9ff; --hh-panel: rgba(255, 255, 255, .86); --hh-shadow: 0 24px 50px -26px rgba(16, 64, 140, .35); --hh-pill: #fff; --hh-chip: rgba(30, 144, 255, .1); --hh-chip-text: #0b6ad6; --hh-shade: linear-gradient(to left, rgba(241, 247, 255, .97) 0%, rgba(241, 247, 255, .9) 36%, rgba(241, 247, 255, .35) 62%, rgba(241, 247, 255, .55) 100%); --hh-floor: rgba(30, 110, 220, .14); }
[data-theme="dark"] .hh, [data-theme="dark"] .hh-end { --hh-bg: #050d1f; --hh-bg2: #061126; --hh-head: #fff; --hh-text: #b4c6e0; --hh-muted: #8fa9cc; --hh-card: #0b1a33; --hh-card2: linear-gradient(170deg, rgba(20, 44, 84, .75), rgba(8, 19, 40, .92)); --hh-line: rgba(124, 196, 255, .16); --hh-line2: rgba(124, 196, 255, .28); --hh-field: rgba(5, 13, 31, .55); --hh-panel: rgba(13, 30, 60, .78); --hh-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65); --hh-pill: rgba(255, 255, 255, .04); --hh-chip: rgba(30, 144, 255, .14); --hh-chip-text: #7cc4ff; --hh-shade: linear-gradient(to left, rgba(5, 13, 31, .93) 0%, rgba(5, 13, 31, .6) 38%, rgba(5, 13, 31, .25) 62%, rgba(5, 13, 31, .7) 100%); --hh-floor: rgba(79, 176, 255, .16); }

.hh { position: relative; background: var(--hh-bg2); color: var(--hh-text); isolation: isolate; }
.hh__hero { position: relative; overflow: hidden; background: var(--hh-bg); }
.hh-aisle { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hh-floor { stroke: var(--hh-floor, rgba(30, 110, 220, .14)); stroke-width: 1; fill: none; }
.hh-floorglow { fill: url(#hhGlow); opacity: .6; }
.hh-lamp { fill: url(#hhLamp); opacity: .85; }
.hh-rack { fill: url(#hhRack); stroke: #1d3f73; stroke-width: 1; }
.hh-rack { fill: #081a36; }
.hh-unit { fill: #16315a; stroke: #0a1830; stroke-width: .8; }
.hh-blank { fill: #0c1c38; stroke: #0a1830; stroke-width: .6; }
.hh-frame { fill: #0a1830; }
.hh-tray { stroke: #24497f; stroke-width: 6; stroke-linecap: round; opacity: .7; }
.hh-led { fill: none; stroke: #5cb8ff; stroke-linecap: round; stroke-width: 2.6; }
.hh-led--m { stroke-width: 1.7; }
.hh-led--f { stroke-width: 1.1; opacity: .85; }
.hh-led--g { stroke: #3ddc84; }
.hh-led.is-blink { stroke: #a5e4ff; animation: dcBlink 1.8s steps(2, jump-none) infinite; }
:root:not([data-theme="dark"]) .hh-aisle { opacity: .92; }
.hh__shade { position: absolute; inset: 0; z-index: 1; background: var(--hh-shade); }
.hh__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; min-height: 500px; padding-top: 22px; padding-bottom: 84px; }
.hh .breadcrumbs, .hh .breadcrumbs a { color: var(--hh-muted); }
.hh .breadcrumbs a:hover { color: var(--blue); }
.hh__title { margin: 14px 0 12px; color: var(--hh-head); font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; line-height: 1.25; }
[data-theme="dark"] .hh__title { text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.hh__intro { max-width: 560px; color: var(--hh-text); font-size: 15px; line-height: 2; text-align: justify; }
.hh__intro p { margin: 0 0 8px; }
.hh__intro.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hh button.read-more { color: var(--link) !important; }
[data-theme="dark"] .hh button.read-more { color: #7cc4ff !important; }
.hh__bullets { list-style: none !important; display: grid; gap: 12px; margin: 22px 0 0; padding: 0; }
.hh__bullets li { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--hh-head); font-size: 16px; font-weight: 800; }
.hh__bullets span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 0 0 4px rgba(30, 144, 255, .16), 0 6px 16px rgba(30, 144, 255, .4); flex-shrink: 0; }

.hh__panel { position: relative; padding: 22px; border-radius: 22px; background: var(--hh-panel); border: 1px solid var(--hh-line2); box-shadow: var(--hh-shadow), inset 0 1px 0 rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hh__panel-title { margin: 0 0 16px; color: var(--hh-head); font-size: 18px; font-weight: 900; text-align: center; }
.hh-order { display: grid; gap: 11px; }
.hh-field { position: relative; display: grid; gap: 5px; }
.hh-field > span { color: var(--hh-muted); font-size: 12.5px; font-weight: 700; }
.hh-field select { width: 100%; height: 44px; padding: 0 14px 0 36px; border-radius: 12px; border: 1px solid var(--hh-line2); background: var(--hh-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231e90ff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center; color: var(--hh-head); font: 600 14px/1 var(--font); -webkit-appearance: none; appearance: none; cursor: pointer; }
.hh-field select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 144, 255, .22); }
.hh-field select option { background: var(--surface); color: var(--text); }
.hh-order__price { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 2px 2px; border-top: 1px dashed var(--hh-line2); }
.hh-order__price span { color: var(--hh-muted); font-size: 13px; }
.hh-order__price b { color: var(--hh-head); font-size: 20px; font-weight: 900; }
.hh-order__text { margin: 0 0 4px; color: var(--hh-text); font-size: 14px; line-height: 2; text-align: center; }
.hh .btn--primary, .hh-end .btn--primary { box-shadow: 0 12px 26px -10px rgba(30, 144, 255, .7); }
.hh-btn-outline { background: transparent; border: 1px solid var(--hh-line2); color: var(--hh-head) !important; }
.hh-btn-outline:hover { background: var(--hh-chip); border-color: var(--blue); color: var(--blue) !important; }
[data-theme="dark"] .hh-btn-outline:hover { color: #fff !important; }
.hh-order__go[aria-disabled] { opacity: .45; pointer-events: none; box-shadow: none; }

.hh-wave { position: absolute; inset: auto 0 -1px; z-index: 3; width: 100%; height: 90px; display: block; }
.hh-wave__back { fill: var(--blue); opacity: .14; }
.hh-wave__front { fill: var(--hh-bg2); }

.hh-plans { position: relative; padding: 4px 0 40px; }
.hh-plans__title { margin: 0 0 18px; color: var(--hh-head); font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; text-align: center; }
.hh-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-bottom: 22px; }
.hh-pills { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 5px; border-radius: 999px; background: var(--hh-pill); border: 1px solid var(--hh-line); box-shadow: var(--shadow-sm); }
.hh-pills button { padding: 7px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--hh-muted); font: 700 13px/1.4 var(--font); cursor: pointer; box-shadow: none; transition: background .2s, color .2s; }
.hh-pills button:hover { color: var(--blue); background: var(--hh-chip); }
.hh-pills button.is-on, .hh-pills button[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(30, 144, 255, .8); }
.hh-cards { grid-auto-columns: minmax(208px, 1fr); }
.hh-card { position: relative; display: flex; flex-direction: column; padding: 20px 18px 18px; border-radius: 20px; background: var(--hh-card2); border: 1px solid var(--hh-line); box-shadow: var(--shadow-sm); scroll-snap-align: start; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.hh-card[hidden] { display: none; }
.hh-card:hover { transform: translateY(-5px); border-color: var(--hh-line2); box-shadow: 0 24px 40px -22px rgba(30, 144, 255, .55); }
.hh-card.is-pop { border-color: rgba(30, 144, 255, .55); box-shadow: 0 0 0 1px rgba(30, 144, 255, .2), 0 24px 40px -24px rgba(30, 144, 255, .7); }
.hh-card.is-off { opacity: .6; }
.hh-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.hh-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--grad); color: #fff; box-shadow: 0 10px 22px -8px rgba(30, 144, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.hh-card__tier { padding: 3px 10px; border-radius: 999px; background: var(--hh-chip); color: var(--hh-chip-text); font-size: 11.5px; font-weight: 800; }
.hh-card.is-pop .hh-card__tier { background: var(--grad); color: #fff; }
.hh-card__title { margin: 0; color: var(--hh-head); font-size: 24px; font-weight: 900; }
.hh-card__code { color: var(--hh-muted); font: 700 12px/1.6 var(--mono); direction: ltr; text-align: right; }
.hh-card__price { margin: 10px 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hh-line); }
.hh-card__price b { color: var(--hh-head); font-size: 22px; font-weight: 900; }
.hh-card__price b small { color: var(--hh-muted); font-size: 12px; font-weight: 700; }
.hh-card__price div > small { display: block; color: var(--hh-muted); font-size: 12px; }
.hh-card__list { list-style: none !important; display: grid; gap: 8px; margin: 0 0 12px; padding: 0; font-size: 13.5px; }
.hh-card__list li { display: flex; align-items: center; gap: 7px; margin: 0; }
.hh-card__list .icon { flex-shrink: 0; padding: 2px; border-radius: 50%; background: rgba(30, 144, 255, .14); color: var(--blue); }
[data-theme="dark"] .hh-card__list .icon { background: rgba(61, 220, 132, .16); color: #3ddc84; }
.hh-card__list span { color: var(--hh-muted); }
.hh-card__list b { margin-inline-start: auto; color: var(--hh-head); font-weight: 800; direction: ltr; unicode-bidi: plaintext; }
.hh-card__more { margin: 0 0 14px; font-size: 13px; }
.hh-card__more summary { color: var(--link); font-weight: 700; cursor: pointer; list-style: none; }
[data-theme="dark"] .hh-card__more summary { color: #7cc4ff; }
.hh-card__more summary::-webkit-details-marker { display: none; }
.hh-card__more summary::after { content: " +"; }
.hh-card__more[open] summary::after { content: " −"; }
.hh-card__more ul { list-style: none !important; display: grid; gap: 6px; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--hh-line); }
.hh-card__more li { display: flex; justify-content: space-between; gap: 8px; margin: 0; }
.hh-card__more li span { color: var(--hh-muted); }
.hh-card__more li b { color: var(--hh-head); direction: ltr; unicode-bidi: plaintext; text-align: left; }
.hh-card__btn { margin-top: auto; }
.hh-card .btn[aria-disabled] { background: var(--hh-field); color: var(--hh-muted); border: 1px solid var(--hh-line); }
.hh .plan-nav button { background: var(--hh-card); border-color: var(--hh-line2); color: var(--hh-head); }
.hh .plan-nav button:hover { border-color: var(--blue); color: var(--blue); }
.hh-plans__foot { margin: 14px 0 0; color: var(--hh-muted); font-size: 12.5px; text-align: center; }

.hh-feats-wrap { padding: 0 0 56px; }
.hh-feats { list-style: none !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0; padding: 0; }
.hh-feats li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 18px 20px; border-radius: 18px; background: var(--hh-card2); border: 1px solid var(--hh-line); box-shadow: var(--shadow-sm); color: var(--hh-head); transition: transform .25s var(--ease), border-color .25s; }
.hh-feats li:hover { transform: translateY(-3px); border-color: var(--hh-line2); }
.hh-feats__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--hh-chip); color: var(--blue); flex-shrink: 0; transition: background .25s, color .25s; }
.hh-feats li:hover .hh-feats__icon { background: var(--grad); color: #fff; }
.hh-feats b { font-size: 15px; font-weight: 800; }

.hh-end { padding: 64px 0 72px; background: var(--hh-bg2); color: var(--hh-text); }
.hh-faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.hh-faq__art svg { width: 100%; max-width: 420px; height: auto; display: block; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(16, 64, 140, .25)); }
.hh-art__ring { fill: none; stroke: #4fb0ff; stroke-width: 2; opacity: .55; }
.hh-art__ring--2 { opacity: .35; stroke-dasharray: 6 6; animation: dash 3s linear infinite; }
.hh-art__slot { stroke: #7cc4ff; stroke-width: 2; opacity: .55; }
.hh-art__slot--r { opacity: .35; }
.hh-art__led { fill: #9fe1ff; animation: dcBlink 1.6s steps(2, jump-none) var(--d, 0s) infinite; }
.hh-art__led--g { fill: #3ddc84; animation: none; }
.hh-art__shield { filter: drop-shadow(0 10px 18px rgba(30, 144, 255, .55)); animation: floaty 5s ease-in-out infinite; }
.hh-art__bubble { animation: floaty 6s ease-in-out -2s infinite; }
.hh-art__q { animation: floaty 5.5s ease-in-out -1s infinite; }
.hh-art__q text { fill: #fff; font: 900 26px/1 var(--font); }
.hh-faq__title { margin: 0 0 4px; color: var(--hh-head); font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
.hh-faq__sub { margin: 0 0 18px; color: var(--hh-muted); }
.hh-faq .faq__item { background: var(--hh-card); border-color: var(--hh-line); }
.hh-faq .faq__item[open] { border-color: var(--hh-line2); }
.hh-help { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 22px; background: var(--hh-card2); border: 1px solid var(--hh-line2); box-shadow: var(--hh-shadow); }
.hh-help__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--hh-chip); color: var(--blue); flex-shrink: 0; }
.hh-help__text { flex: 1; }
.hh-help__text strong { display: block; color: var(--hh-head); font-size: 19px; font-weight: 900; }
.hh-help__text p { margin: 2px 0 0; color: var(--hh-muted); font-size: 14px; }

@media (max-width: 960px) {
	.hh__inner { grid-template-columns: 1fr; min-height: 0; gap: 26px; padding-bottom: 80px; }
	.hh__panel { max-width: 460px; width: 100%; margin-inline: auto; }
	.hh, .hh-end { --hh-shade: linear-gradient(to bottom, rgba(241, 247, 255, .7), rgba(241, 247, 255, .92) 50%, #f1f7ff 100%); }
	[data-theme="dark"] .hh, [data-theme="dark"] .hh-end { --hh-shade: linear-gradient(to bottom, rgba(5, 13, 31, .55), rgba(5, 13, 31, .85) 55%, #050d1f 100%); }
	.hh-faq { grid-template-columns: 1fr; gap: 20px; }
	.hh-faq__art svg { max-width: 300px; }
}
@media (max-width: 640px) {
	.hh__title { font-size: 30px; }
	.hh__bullets li { font-size: 14.5px; }
	.hh-wave { height: 56px; }
	.hh-bar { flex-direction: column; align-items: stretch; }
	.hh-pills { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; scrollbar-width: none; }
	.hh-pills button { white-space: nowrap; padding: 7px 13px; }
	.hh-cards { grid-auto-columns: 82%; }
	.hh-feats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.hh-feats li { flex-direction: column; text-align: center; gap: 8px; padding: 16px 10px; }
	.hh-feats b { font-size: 13.5px; }
	.hh-end { padding: 44px 0 52px; }
	.hh-help { flex-direction: column; text-align: center; padding: 22px 18px; }
	.hh-help .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .hh-led.is-blink, .hh-art__led, .hh-art__shield, .hh-art__bubble, .hh-art__q, .hh-art__ring--2 { animation: none; } }

/* ---------- Home page (light and dark) ---------- */
:root { --hp-hero: linear-gradient(180deg, #e2efff 0%, #eef6ff 55%, #f7fbff 100%); --hp-head: #0b1b3a; --hp-text: #3e5372; --hp-muted: #61789a; --hp-card: linear-gradient(170deg, #ffffff, #f4f9ff); --hp-line: #d9e6f6; --hp-line2: #c4d8f1; --hp-glass: rgba(255, 255, 255, .78); --hp-field: #f4f8ff; --hp-shadow: 0 24px 50px -28px rgba(16, 64, 140, .4); --hp-chip: rgba(30, 144, 255, .1); --hp-soft: var(--bg-soft); --hp-shade: linear-gradient(to left, rgba(238, 246, 255, .98) 0%, rgba(238, 246, 255, .9) 40%, rgba(238, 246, 255, .3) 70%, rgba(238, 246, 255, .55) 100%); }
[data-theme="dark"] { --hp-hero: linear-gradient(180deg, #050d1f 0%, #071530 100%); --hp-head: #fff; --hp-text: #b4c6e0; --hp-muted: #8fa9cc; --hp-card: linear-gradient(170deg, rgba(20, 44, 84, .75), rgba(8, 19, 40, .92)); --hp-line: rgba(124, 196, 255, .16); --hp-line2: rgba(124, 196, 255, .3); --hp-glass: rgba(13, 30, 60, .78); --hp-field: rgba(5, 13, 31, .55); --hp-shadow: 0 30px 60px -26px rgba(0, 0, 0, .7); --hp-chip: rgba(30, 144, 255, .15); --hp-soft: var(--bg-soft); --hp-shade: linear-gradient(to left, rgba(5, 13, 31, .95) 0%, rgba(5, 13, 31, .65) 40%, rgba(5, 13, 31, .25) 68%, rgba(5, 13, 31, .7) 100%); }

.hp-hero { position: relative; overflow: hidden; padding: 30px 0 40px; background: var(--hp-hero); color: var(--hp-text); isolation: isolate; }
.hp-hero__bg { position: absolute; inset: 0 0 auto; height: 620px; z-index: -1; }
.hp-hero__bg .hh-aisle { position: absolute; inset: 0; width: 100%; height: 100%; }
.hp-hero__shade { position: absolute; inset: 0; background: var(--hp-shade); }
.hp-hero__shade::after { content: ""; position: absolute; inset: auto 0 0; height: 200px; background: linear-gradient(to bottom, transparent, var(--hp-hero-end, #eef6ff)); }
[data-theme="dark"] .hp-hero__shade::after { background: linear-gradient(to bottom, transparent, #071530); }
.hp-hero__swirl { position: absolute; inset: 0; background: radial-gradient(ellipse 40% 30% at 30% 85%, rgba(30, 144, 255, .18), transparent 70%), radial-gradient(ellipse 50% 35% at 75% 10%, rgba(255, 255, 255, .6), transparent 70%); }
[data-theme="dark"] .hp-hero__swirl { background: radial-gradient(ellipse 40% 30% at 30% 85%, rgba(30, 144, 255, .2), transparent 70%); }
.hp-hero__inner { display: grid; grid-template-columns: 1fr 400px; gap: 44px; align-items: center; min-height: 460px; }
.hp-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 10px 22px -10px rgba(30, 144, 255, .8); }
.hp-kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); animation: dcBlink 2s ease-in-out infinite; }
.hp-hero__title { margin: 16px 0 14px; color: var(--hp-head); font-size: clamp(32px, 4.6vw, 54px); font-weight: 900; line-height: 1.3; }
.hp-hero__accent { display: inline-grid; }
.hp-hero__text { max-width: 560px; margin: 0; color: var(--hp-text); font-size: 15.5px; line-height: 2.05; text-align: justify; }
.hp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hp-btn-glass { background: var(--hp-glass); border: 1px solid var(--hp-line2); color: var(--hp-head) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); }
.hp-btn-glass:hover { border-color: var(--blue); color: var(--blue) !important; }
.hp-btn-soft { background: var(--hp-chip); color: var(--blue) !important; border: 1px solid transparent; }
.hp-btn-soft:hover { border-color: var(--blue); }
[data-theme="dark"] .hp-btn-soft { color: #9fd2ff !important; }
.hp-hero__checks { list-style: none !important; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; color: var(--hp-head); font-size: 14px; font-weight: 700; }
.hp-hero__checks li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.hp-hero__checks .icon { padding: 2px; border-radius: 50%; background: var(--grad); color: #fff; }

.hp-window { border-radius: 20px; background: var(--hp-glass); border: 1px solid var(--hp-line2); box-shadow: var(--hp-shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; animation: floaty 7s ease-in-out infinite; }
.hp-window__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--hp-line); background: rgba(255, 255, 255, .35); }
[data-theme="dark"] .hp-window__bar { background: rgba(255, 255, 255, .03); }
.hp-window__dots { display: inline-flex; gap: 5px; }
.hp-window__dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.hp-window__dots i + i { background: #febc2e; }
.hp-window__dots i + i + i { background: #28c840; }
.hp-window__url { flex: 1; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; background: var(--hp-field); color: var(--hp-muted); font: 600 11px/1.4 var(--mono); }
.hp-window__body { display: grid; gap: 11px; padding: 16px; }
.hp-window__head { display: flex; align-items: center; gap: 8px; color: var(--hp-head); font-size: 15px; }
.hp-window__head .pill { margin-inline-start: auto; }
.hp-window__logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; }
.hp-window__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp-wf { display: grid; gap: 4px; padding: 8px 10px; border-radius: 12px; background: var(--hp-field); border: 1px solid var(--hp-line); }
.hp-wf > span { color: var(--hp-muted); font-size: 11.5px; font-weight: 700; }
.hp-wf select { width: 100%; padding: 0; border: 0; background: transparent; color: var(--hp-head); font: 700 13px/1.6 var(--font); cursor: pointer; }
.hp-wf select:focus { outline: 0; }
.hp-wf select option { background: var(--surface); color: var(--text); }
.hp-wf:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 144, 255, .18); }
.hp-wf--chart b { color: var(--blue); font-size: 12px; }
.hp-wf--chart svg { width: 100%; height: 30px; }
.hp-spark { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
.hp-spark--fill { fill: rgba(30, 144, 255, .15); stroke: none; }
.hp-window__price { margin: 0; color: var(--hp-head); font-size: 13.5px; text-align: center; }
.hp-window__price[hidden] { display: none; }
.hp-window__note { color: var(--hp-muted); font-size: 11.5px; text-align: center; }

.hp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.hp-tile { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--hp-glass); border: 1px solid var(--hp-line); box-shadow: var(--shadow-sm); color: var(--hp-head); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.hp-tile:hover { transform: translateY(-4px); border-color: var(--hp-line2); box-shadow: var(--hp-shadow); color: var(--hp-head); }
.hp-tile__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--hp-chip); color: var(--blue); flex-shrink: 0; transition: background .25s, color .25s; }
.hp-tile:hover .hp-tile__icon { background: var(--grad); color: #fff; }
.hp-tile b { display: block; font-size: 15px; font-weight: 900; }
.hp-tile small { display: block; color: var(--hp-muted); font-size: 12.5px; }

.hp-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; padding: 18px 10px; border-radius: 22px; background: linear-gradient(135deg, #2b9bff, #0b62d6 55%, #0a479e); color: #fff; box-shadow: 0 26px 50px -26px rgba(30, 144, 255, .8); position: relative; overflow: hidden; }
.hp-stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 0, rgba(255, 255, 255, .25), transparent 40%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 36px); pointer-events: none; }
.hp-stat { position: relative; display: grid; justify-items: center; gap: 2px; text-align: center; }
.hp-stat + .hp-stat { border-inline-start: 1px solid rgba(255, 255, 255, .22); }
.hp-stat strong { font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; line-height: 1.2; }
.hp-stat > span { color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 700; }
.hp-os { list-style: none !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; }
.hp-os li { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 13px; border-radius: 12px; background: var(--hp-glass); border: 1px solid var(--hp-line); color: var(--hp-head); font-size: 13px; font-weight: 700; direction: ltr; transition: border-color .2s, transform .2s; }
.hp-os li:hover { border-color: var(--hp-line2); transform: translateY(-2px); }
.hp-os .brand-icon, .hp-os svg { width: 20px; height: 20px; }

.hp-section { padding: 72px 0; background: var(--bg); }
.hp-section--soft { background: var(--hp-soft); }

.hp-adv { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hp-adv__art { order: 2; }
.hp-adv__body { text-align: right; }
.hp-adv__body .section-head__title, .hp-why .section-head__title, .hp-faq__head .section-head__title { text-align: right; }
.hp-adv__art svg { width: 100%; max-width: 440px; height: auto; display: block; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(16, 64, 140, .3)); }
.hp-ring { fill: none; stroke: #4fb0ff; stroke-width: 2; opacity: .45; stroke-dasharray: 8 8; animation: dash 3s linear infinite; }
.hp-adv__body .section-head__title { margin-bottom: 18px; }
.hp-adv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-adv__item { padding: 18px; border-radius: 18px; background: var(--hp-card); border: 1px solid var(--hp-line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .25s; }
.hp-adv__item:hover { transform: translateY(-4px); border-color: var(--hp-line2); }
.hp-adv__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 10px; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: 0 10px 20px -10px rgba(30, 144, 255, .8); }
.hp-adv__item h3 { margin: 0 0 4px; color: var(--hp-head); font-size: 16px; }
.hp-adv__item p { margin: 0; color: var(--hp-muted); font-size: 13px; line-height: 1.95; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.hp-dc { position: relative; overflow: hidden; padding: 80px 0; background: #050d1f; color: #b4c6e0; isolation: isolate; }
.hp-dc::before, .hp-dc::after { content: ""; position: absolute; inset-inline: 0; height: 60px; z-index: 1; background: var(--hp-soft); pointer-events: none; }
.hp-dc::before { top: -1px; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.hp-dc::after { bottom: -1px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--bg); }
.hp-dc__racks { position: absolute; inset: 0; z-index: -1; opacity: .9; }
.hp-dc__racks .hh-aisle { position: absolute; inset: 0; width: 100%; height: 100%; }
.hp-dc__racks::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(5, 13, 31, .96) 0%, rgba(5, 13, 31, .85) 45%, rgba(5, 13, 31, .55) 100%); }
.hp-dc__inner { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.hp-dc .eyebrow { background: rgba(30, 144, 255, .16); color: #84c0ff; }
.hp-dc__title { margin: 0 0 12px; color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
.hp-dc__content p { color: #b4c6e0; line-height: 2.05; text-align: justify; }
.hp-dc__chips { list-style: none !important; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; padding: 0; }
.hp-dc__chips li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(124, 196, 255, .2); color: #fff; font-size: 13px; }
.hp-dc__chips small { display: block; color: #8fa9cc; font-size: 11px; }
.hp-dc__code { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); font: 900 11px/1 var(--mono); color: #fff; }
.hp-dc .hp-btn-glass { background: rgba(255, 255, 255, .06); border-color: rgba(124, 196, 255, .35); color: #fff !important; }
.hp-dc .hp-btn-glass:hover { border-color: var(--blue); color: #7cc4ff !important; }
.hp-live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); animation: dcBlink 1.6s ease-in-out infinite; }
.hp-dc__map { --map-land: rgba(124, 196, 255, .35); }
.hp-dc__map .wmap__label { background: rgba(8, 20, 42, .9); color: #fff; border-color: rgba(124, 196, 255, .3); }
.hp-dc__map .wmap__pin { border-color: #050d1f; }

.hp-reviews { grid-auto-columns: minmax(280px, 1fr); }
.hp-review { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 20px; border-radius: 20px; background: var(--hp-card); border: 1px solid var(--hp-line); box-shadow: var(--shadow-sm); scroll-snap-align: start; }
.hp-review__stars { color: #f5b301; letter-spacing: 2px; }
.hp-review__stars span { color: var(--hp-line2); }
.hp-review blockquote { margin: 0; color: var(--hp-text); font-size: 14px; line-height: 2; }
.hp-review figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.hp-review__photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hp-review__mono { display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 900; }
.hp-review figcaption b { display: block; color: var(--hp-head); }
.hp-review figcaption small { display: block; color: var(--hp-muted); font-size: 12px; }

.hp-call-wrap { padding: 10px 0 20px; background: var(--bg); }
.hp-call { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 22px 28px; border-radius: 24px; background: linear-gradient(135deg, #071a3a, #0b2a5c 60%, #0d3a80); color: #c9d7ec; box-shadow: 0 30px 60px -30px rgba(7, 26, 58, .9); }
.hp-call::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 90% at 100% 50%, rgba(30, 144, 255, .35), transparent 70%); pointer-events: none; }
.hp-call__icon { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: rgba(30, 144, 255, .2); color: #7cc4ff; box-shadow: inset 0 0 0 1px rgba(124, 196, 255, .3); flex-shrink: 0; }
.hp-call__text { position: relative; flex: 1; }
.hp-call__text strong { display: block; color: #fff; font-size: 20px; font-weight: 900; }
.hp-call__text p { margin: 2px 0 0; color: #9fb4d3; font-size: 14px; }
.hp-call .btn { position: relative; }
.hp-call__phone { position: relative; display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; }
.hp-call__phone .icon { color: #7cc4ff; }
.hp-call__phone:hover { color: #7cc4ff !important; }

.hp-wf2 { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.hp-why { position: relative; padding: 26px; border-radius: 22px; background: var(--hp-card); border: 1px solid var(--hp-line); overflow: hidden; }
.hp-why p { position: relative; color: var(--hp-text); line-height: 2.05; text-align: justify; }
.hp-why__list { position: relative; list-style: none !important; display: grid; gap: 10px; margin: 16px 0 0; padding: 0; }
.hp-why__list li { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--hp-head); font-weight: 800; }
.hp-why__list .icon { padding: 3px; border-radius: 50%; background: var(--grad); color: #fff; }
.hp-why__map { position: absolute; inset: auto -10% -10% auto; width: 90%; aspect-ratio: 1000 / 372; background: var(--blue); opacity: .08; -webkit-mask: var(--land) no-repeat center / contain; mask: var(--land) no-repeat center / contain; pointer-events: none; }
.hp-faq__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hp-faq__head .section-head__title { margin: 0; }
.hp-faq .tabs__list--pill { margin-inline: 0; margin-bottom: 14px; }

@media (max-width: 1100px) {
	.hp-hero__inner { grid-template-columns: 1fr 360px; gap: 28px; }
	.hp-tiles { grid-template-columns: repeat(2, 1fr); }
	.hp-adv { grid-template-columns: 1fr; }
	.hp-adv__art { order: -1; }
	.hp-adv__art svg { max-width: 360px; }
}
@media (max-width: 960px) {
	.hp-hero__inner { grid-template-columns: 1fr; min-height: 0; }
	.hp-window { max-width: 460px; width: 100%; margin-inline: auto; animation: none; }
	:root { --hp-shade: linear-gradient(to bottom, rgba(238, 246, 255, .7), rgba(238, 246, 255, .94) 55%, #eef6ff 100%); }
	[data-theme="dark"] { --hp-shade: linear-gradient(to bottom, rgba(5, 13, 31, .6), rgba(5, 13, 31, .88) 55%, #071530 100%); }
	.hp-dc__inner, .hp-wf2 { grid-template-columns: 1fr; }
	.hp-call { flex-wrap: wrap; }
	.hp-call__phone { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
	.hp-hero { padding: 18px 0 28px; }
	.hp-hero__title { font-size: 30px; }
	.hp-hero__actions .btn { flex: 1; justify-content: center; }
	.hp-window__grid { grid-template-columns: 1fr 1fr; }
	.hp-tiles { gap: 10px; }
	.hp-tile { flex-direction: column; text-align: center; padding: 14px 10px; }
	.hp-stats { grid-template-columns: 1fr 1fr; row-gap: 16px; }
	.hp-stat:nth-child(3) { border-inline-start: 0; }
	.hp-os li { padding: 6px 10px; font-size: 12px; }
	.hp-section { padding: 52px 0; }
	.hp-adv__grid { grid-template-columns: 1fr; }
	.hp-dc { padding: 64px 0; }
	.hp-call { flex-direction: column; text-align: center; padding: 22px 18px; }
	.hp-call .btn { width: 100%; justify-content: center; }
	.hp-why { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .hp-window, .hp-ring, .hp-kicker__dot, .hp-live { animation: none; } }

/* ---------- Theme switch + performance ---------- */
:root { color-scheme: light; }
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease, stroke .35s ease !important; }
.theme-toggle .icon { transition: transform .45s var(--ease); }
[data-theme="dark"] .theme-toggle .icon { transform: rotate(-30deg); }
::selection { background: rgba(30, 144, 255, .22); }
[data-theme="dark"] ::selection { background: rgba(124, 196, 255, .3); }
[data-theme="dark"] img:not([src$=".svg"]):not(.lhero__img) { filter: brightness(.94); }
* { scrollbar-color: var(--line-strong) transparent; }
/* Sections below the fold are laid out and painted only when they come near the screen. */
.hp-section, .hp-dc, .hp-call-wrap, .hh-end, .site-footer, #partners { content-visibility: auto; contain-intrinsic-size: auto 720px; }
/* Glass blur is costly on phones; keep the look with a more opaque background instead. */
@media (max-width: 960px) {
	.hp-window, .hp-tile, .hp-btn-glass, .hh__panel, .hp-os li { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
	:root { --hp-glass: rgba(255, 255, 255, .94); }
	[data-theme="dark"] { --hp-glass: rgba(13, 28, 56, .96); }
	.hh, .hh-end { --hh-panel: rgba(255, 255, 255, .96); }
	[data-theme="dark"] .hh, [data-theme="dark"] .hh-end { --hh-panel: rgba(13, 28, 56, .96); }
}

/* ---------- Plan cards (all products): varied art, spec icons, one sliding row ---------- */
.pc-row { grid-auto-columns: minmax(250px, 1fr); gap: 18px; }
.pc-row.is-slider { grid-auto-columns: calc((100% - 54px) / 4); }
.pc { position: relative; display: flex; flex-direction: column; padding: 18px; border-radius: 22px; background: linear-gradient(175deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); box-shadow: var(--shadow-sm); scroll-snap-align: start; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.pc:hover { transform: translateY(-5px); border-color: var(--tint-3); box-shadow: var(--shadow); }
.pc--pop { border-color: var(--tint-3); }
.pc--pop::before { content: ""; position: absolute; inset: -1px -1px auto; height: 4px; border-radius: 22px 22px 0 0; background: var(--grad); }
.pc.is-off { opacity: .62; }
.pc.is-off:hover { transform: none; }
.pc__top { display: flex; align-items: center; gap: 12px; }
.pc__art { flex-shrink: 0; width: 62px; height: 78px; }
.pc-art { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 12px rgba(30, 100, 220, .28)); transition: transform .3s var(--ease); }
.pc:hover .pc-art { transform: translateY(-3px); }
.pc-art__badge circle { fill: var(--surface); stroke: #4fb0ff; stroke-width: 2; }
.pc-art__badge .icon { color: var(--blue); stroke-width: 2.2; }
.pc__id { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.pc__tier { padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--brand-text); font-size: 11.5px; font-weight: 800; }
.pc--pop .pc__tier { background: var(--grad); color: #fff; }
.pc--pro .pc__tier { background: #0b3b8f; color: #fff; }
[data-theme="dark"] .pc--pro .pc__tier { background: #1e4fa8; color: #fff; }
.pc__name { margin: 0; font: 900 16px/1.35 var(--mono); direction: ltr; text-align: right; overflow-wrap: anywhere; }
.pc__price { margin: 14px 0 12px; padding: 12px 0; border-block: 1px dashed var(--line); }
.pc__price b { display: block; color: var(--brand-text); font-size: 24px; font-weight: 900; line-height: 1.3; }
.pc__price b small { color: var(--muted); font-size: 12px; font-weight: 700; }
.pc__price div > small { color: var(--muted); font-size: 12px; }
.pc__specs { list-style: none !important; display: grid; gap: 6px; margin: 0 0 14px; padding: 0; }
.pc__specs li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.pc__specs .icon { color: var(--blue); }
.pc__specs span { color: var(--muted); white-space: nowrap; }
.pc__specs b { margin-inline-start: auto; color: var(--text); font-weight: 800; direction: ltr; unicode-bidi: plaintext; text-align: left; }
.pc__more { margin: -6px 0 14px; font-size: 13px; }
.pc__more summary { color: var(--link); font-weight: 700; cursor: pointer; list-style: none; }
.pc__more summary::-webkit-details-marker { display: none; }
.pc__more summary::after { content: " +"; }
.pc__more[open] summary::after { content: " −"; }
.pc__more .pc__specs { margin: 8px 0 0; }
.pc__btn { margin-top: auto; }
.pc-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.hh .pc, .hh-end .pc { background: var(--hh-card2); }
@media (max-width: 1100px) { .pc-row.is-slider { grid-auto-columns: calc((100% - 36px) / 3); } }
@media (max-width: 860px) { .pc-row.is-slider, .pc-row { grid-auto-columns: calc((100% - 18px) / 2); } }
@media (max-width: 560px) { .pc-row.is-slider, .pc-row { grid-auto-columns: 84%; } .pc-hint { display: none; } }

/* ---------- Product hero scenes (one illustration per product) ---------- */
.lhero { --sc: #1e90ff; }
.lhero--hafez { --sc: #0b74e5; }
.lhero--intl { --sc: #0ea5e9; }
.lhero--cloud { --sc: #38bdf8; }
.lhero--mikrotik { --sc: #06a3c9; }
.lhero--dedicated { --sc: #3b82f6; }
.lhero--exchange { --sc: #2563eb; }
.lhero--unlimited { --sc: #4fa6ff; }
.lhero--hodhod { --sc: #1e90ff; }
.lhero--voip { --sc: #0ea5e9; }
.lhero--builder { --sc: #2f6fe0; }
.lhero::after { content: ""; position: absolute; z-index: -1; left: -6%; top: -10%; width: 60%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sc) 22%, transparent), transparent); pointer-events: none; }
.lhero__stage { display: grid; }
.lhero__scene { position: relative; z-index: 0; margin: -6px 0 -44px; }
.lhero__stage .price-card { position: relative; z-index: 1; padding: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lhero__stage .price-card__value { font-size: 27px; }
.lhero__stage .price-card__specs { margin-bottom: 14px; }
.sc { display: block; width: 100%; height: auto; overflow: visible; direction: ltr; }
.sc text { font-family: var(--font); }
.sc-glow { fill: var(--sc); opacity: .2; }
.sc-pin { fill: var(--sc); filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--sc) 45%, transparent)); }
.sc-chip rect { fill: #0f2f6b; stroke: var(--sc); stroke-width: 2; }
.sc-chip text { fill: #fff; font: 900 17px var(--mono); }
.sc-globe { fill: var(--tint); stroke: var(--tint-3); stroke-width: 2; }
.sc-meri { fill: none; stroke: var(--tint-3); stroke-width: 1.2; }
.sc-dot { fill: var(--sc); stroke: var(--surface); stroke-width: 2; }
.sc-lbl { fill: var(--text); font: 800 11px var(--mono); }
.sc-cloud { fill: var(--surface); stroke: var(--tint-3); stroke-width: 2; filter: drop-shadow(0 14px 20px rgba(30, 100, 220, .18)); }
.sc-wave path { fill: none; stroke: var(--sc); stroke-width: 4; stroke-linecap: round; animation: scWave 2s ease-in-out infinite; }
.sc-wave path:nth-child(2) { animation-delay: .25s; }
.sc-wave path:nth-child(3) { animation-delay: .5s; }
.sc-wave path:nth-child(4) { animation-delay: .75s; }
.sc-ant { stroke: #2a4f8f; stroke-width: 5; stroke-linecap: round; }
.sc-port { fill: #071630; }
.sc-led { fill: #3ddc84; }
.sc-led.is-blink { animation: dcBlink 1.4s steps(2, jump-none) infinite; }
.sc-stand { fill: var(--tint-3); }
.sc-wick { stroke: var(--muted); stroke-width: 2; }
.sc-candle.is-up { fill: #22c55e; }
.sc-candle.is-down { fill: #ef4444; }
.sc-trend { fill: none; stroke: var(--sc); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sc-trend { stroke-dasharray: 8 6; animation: dash 2s linear infinite; }
.sc-inf { fill: none; stroke: var(--tint-2); stroke-width: 16; stroke-linecap: round; }
.sc-inf--flow { stroke: var(--sc); stroke-width: 6; stroke-dasharray: 40 260; animation: scFlow 2.6s linear infinite; }
.sc-bar { stroke: var(--line); stroke-width: 2; }
.sc-d1 { fill: #ff5f57; }
.sc-d2 { fill: #febc2e; }
.sc-d3 { fill: #28c840; }
.sc-blk { fill: var(--tint); }
.sc-blk.is-a { fill: var(--tint-2); }
.sc-blk.is-drag { fill: var(--surface); stroke: var(--sc); stroke-width: 2; stroke-dasharray: 6 5; }
.sc-lines { stroke: var(--line-strong); stroke-width: 6; stroke-linecap: round; }
.sc-cursor { fill: var(--text); stroke: var(--surface); stroke-width: 1.5; }
@keyframes scPing { 0% { transform: scale(.5); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes scWave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes scSpin { to { transform: rotate(360deg); } }
@keyframes scFlow { to { stroke-dashoffset: -300; } }
@media (max-width: 960px) { .lhero__scene { max-width: 420px; margin-inline: auto; width: 100%; } .lhero::after { width: 100%; left: 0; } }
@media (max-width: 640px) { .lhero__stage .price-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); } }
@media (prefers-reduced-motion: reduce) { .sc *, .sc-float { animation: none !important; } }

/* ---------- Glass illustrations (brand blues only; stop colours follow the theme) ---------- */
.g-t1 { stop-color: #fff; stop-opacity: .95; }
.g-t2 { stop-color: #bcdcff; stop-opacity: .8; }
.g-l1 { stop-color: #3b86f0; stop-opacity: .62; }
.g-l2 { stop-color: #1e5fc8; stop-opacity: .42; }
.g-r1 { stop-color: #8cc4ff; stop-opacity: .7; }
.g-r2 { stop-color: #3b86f0; stop-opacity: .42; }
.g-s1 { stop-color: #fff; stop-opacity: .9; }
.g-s2 { stop-color: #d6eaff; stop-opacity: .6; }
[data-theme="dark"] .g-t1 { stop-color: #b5dcff; stop-opacity: .55; }
[data-theme="dark"] .g-t2 { stop-color: #4f9cff; stop-opacity: .28; }
[data-theme="dark"] .g-l1 { stop-color: #2a74e6; stop-opacity: .5; }
[data-theme="dark"] .g-l2 { stop-color: #13408f; stop-opacity: .32; }
[data-theme="dark"] .g-r1 { stop-color: #5aa8ff; stop-opacity: .48; }
[data-theme="dark"] .g-r2 { stop-color: #1e5fc8; stop-opacity: .28; }
[data-theme="dark"] .g-s1 { stop-color: #7cb8ff; stop-opacity: .2; }
[data-theme="dark"] .g-s2 { stop-color: #3a78d8; stop-opacity: .08; }
.gl { stroke: rgba(255, 255, 255, .85); stroke-width: 1; stroke-linejoin: round; }
[data-theme="dark"] .gl { stroke: rgba(170, 215, 255, .55); }
.gl-t { fill: url(#paT); }
.gl-l { fill: url(#paL); }
.gl-r { fill: url(#paR); }
.gl-blue { fill: url(#paL); stroke: rgba(255, 255, 255, .8); stroke-width: 1.2; }
.gl-line { stroke: #fff; stroke-width: 1.4; opacity: .7; }
.gl-slot { stroke: #1e5fc8; stroke-width: 3; stroke-linecap: round; opacity: .45; }
.gl-led { fill: #7fd8ff; }
.gl-led--2, .gl-led--2 circle { fill: #c7ecff; }
/* Scenes in glass */
.sc--mikrotik > path[class^="sc-cube"] { stroke: rgba(255, 255, 255, .8); stroke-width: 1; stroke-linejoin: round; }
.sc-globe, .sc-cloud { fill: url(#glS); stroke: rgba(30, 144, 255, .45); stroke-width: 1.5; }
[data-theme="dark"] .sc-globe, [data-theme="dark"] .sc-cloud { stroke: rgba(124, 196, 255, .45); }
.sc-cloud { filter: none; }
.sc-meri { stroke: rgba(30, 144, 255, .3); }
.sc-pin { fill: url(#paL); stroke: rgba(255, 255, 255, .85); stroke-width: 1.2; filter: none; }
.sc-chip rect { fill: url(#paL); stroke: rgba(255, 255, 255, .8); stroke-width: 1.2; }
.sc-port { fill: rgba(11, 59, 143, .55); }
.sc-led, .rk-led, .hh-art__led--g { fill: #7fd8ff; }
.rk-led--a { fill: #4fb0ff; }
.sc-candle.is-up { fill: #4fb0ff; }
.sc-candle.is-down { fill: #b9d6f5; }
[data-theme="dark"] .sc-candle.is-down { fill: #35577f; }
.sc-blk { fill: rgba(30, 144, 255, .12); }
.sc-blk.is-a { fill: rgba(30, 144, 255, .22); }
.sc-d1 { fill: #4fb0ff; }
.sc-d2 { fill: #8cc4ff; }
.sc-d3 { fill: #c7e2ff; }
.sc-inf { stroke: rgba(30, 144, 255, .18); }
.sc-glow { opacity: .16; }
.dc-dev__leds i, .dc-cab__link i { background: #7fd8ff; box-shadow: none; }

/* ---------- Smoothness: no endless repaints ---------- */
/* Purely decorative loops that redraw large SVGs are switched off (lights stay on, just static). */
.hh-led.is-blink, .rk-led--blink, .rk-mine, .dc-dev__leds i, .dc-dev__ports::before, .sc-ring, .hp-ring, .hh-art__ring--2,
.wmap__arc, .cdn-arc, .sc-dash, .sc-arc, .sc-trend, .netdiag .nd-flow, .cdn-compare__line, .sc-float, .hh-art__shield,
.hh-art__bubble, .hh-art__q, .hh-art__led, .sc-led.is-blink, .dc-mod__face em + em, .dc-cab__link i { animation: none !important; }
/* What is left only runs while its section is on screen (main.js marks visible sections). */
.js section:not(.is-onscreen) *, .js section:not(.is-onscreen) *::before, .js section:not(.is-onscreen) *::after { animation-play-state: paused !important; }
/* Phones: no decorative motion at all except the partners slider. */
@media (max-width: 760px) {
	.sc *, .hh-aisle *, .wmap__pin::after, .cdn-pt__pulse, .cdn-hub__halo, .hp-window, .dc-chip, .badge__dot, .hp-kicker__dot, .hp-live, .dc-kicker__led, .dc-noc__live i { animation: none !important; }
}
/* Remaining decorative colours → brand blues */
.rk-cable--y { stroke: #8cc4ff; }
.hh-led--g { stroke: #7fd8ff; }
.dc-seg input:checked + span .dc-sfp em { background: #7fd8ff; box-shadow: 0 0 6px #7fd8ff; animation: none; }
.dc-dev--patch::before { background: repeating-linear-gradient(90deg, #1e90ff 0 2px, transparent 2px 12px, #8cc4ff 12px 14px, transparent 14px 24px); }
.dc-dev__ports::before { background: repeating-linear-gradient(90deg, #7fd8ff 0 2px, transparent 2px 7px, #7fd8ff 7px 9px, transparent 9px 21px); }
.dc-mod__face em { background: #7fd8ff; }
.dc-mod__face em + em { background: #4fb0ff; }
.dc-u::after { background: #7fd8ff; }
.hp-window__dots i, .panel-mock__dots i { background: #4fb0ff; }
.hp-window__dots i + i, .panel-mock__dots i:nth-child(2) { background: #8cc4ff; }
.hp-window__dots i + i + i, .panel-mock__dots i:nth-child(3) { background: #c7e2ff; }
[data-theme="dark"] .hh-card__list .icon { background: rgba(30, 144, 255, .18); color: #7cc4ff; }
.dc-sum__note .icon { color: var(--blue); }

/* ---------- Product hero v2: soft datacenter backdrop, glass scene on a pedestal, glass price card ---------- */
.lhero { background: linear-gradient(180deg, #e7f1ff 0%, #f3f8ff 60%, var(--bg) 100%); }
[data-theme="dark"] .lhero { background: linear-gradient(180deg, #06102a 0%, #081633 60%, var(--bg) 100%); }
.lhero::after { background: radial-gradient(closest-side, rgba(30, 144, 255, .16), transparent); }
.lhero__bg { position: absolute; inset: 0 auto 0 0; z-index: -1; width: 46%; opacity: .55; -webkit-mask-image: linear-gradient(to right, #000 20%, transparent 95%); mask-image: linear-gradient(to right, #000 20%, transparent 95%); pointer-events: none; }
:root:not([data-theme="dark"]) .lhero__bg { opacity: .32; }
.lhero__bg .hh-aisle { width: 100%; height: 100%; }
.lhero__wave { position: absolute; z-index: -1; right: 0; bottom: 0; width: 58%; height: 170px; pointer-events: none; }
.lhero__wave-1 { fill: rgba(30, 144, 255, .1); }
.lhero__wave-2 { fill: rgba(30, 144, 255, .18); }
[data-theme="dark"] .lhero__wave-1 { fill: rgba(30, 144, 255, .12); }
[data-theme="dark"] .lhero__wave-2 { fill: rgba(30, 144, 255, .2); }
.lhero__title { font-size: clamp(30px, 4.2vw, 50px); }
.lhero__hl { background: linear-gradient(135deg, #2b9bff, #0b4fc4); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .lhero__hl { background: linear-gradient(135deg, #8cc8ff, #2b9bff); -webkit-background-clip: text; background-clip: text; }
.lhero__badges li { gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .72); border-color: rgba(30, 144, 255, .18); box-shadow: 0 8px 20px -14px rgba(16, 64, 140, .4); font-weight: 800; }
[data-theme="dark"] .lhero__badges li { background: rgba(13, 28, 56, .7); border-color: rgba(124, 196, 255, .2); }
.lhero__bi { display: grid; place-items: center; color: var(--blue); }
.lhero__bi .icon { stroke-width: 2; }

.lhero__stage { position: relative; }
.lhero__scene { position: relative; z-index: 0; margin: -18px 0 -86px; }
.lhero__tile { position: absolute; z-index: 2; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 14px 30px -16px rgba(16, 64, 140, .55), inset 0 1px 0 #fff; color: var(--blue); }
.lhero__tile .icon { stroke-width: 2; }
[data-theme="dark"] .lhero__tile { background: rgba(20, 44, 88, .62); border-color: rgba(124, 196, 255, .3); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12); color: #8cc8ff; }
.lhero__tile--1 { left: 6%; top: 24%; }
.lhero__tile--2 { right: 8%; top: 4%; }
.lhero__tile--3 { right: 0; top: 44%; }
.lhero__stage .price-card.hp-card2 { position: relative; z-index: 3; padding: 22px; border-radius: 26px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 40px 70px -36px rgba(16, 64, 140, .55), inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
[data-theme="dark"] .lhero__stage .price-card.hp-card2 { background: rgba(13, 28, 56, .8); border-color: rgba(124, 196, 255, .22); box-shadow: 0 40px 70px -36px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); }
.hp-card2 .price-card__value b { color: var(--brand-text); font-size: 34px; font-weight: 900; }
.hp-card2 .price-card__value small { font-size: 13px; }
.price-card__pick { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 8px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.price-card__pick-lbl { order: -1; color: var(--muted); font-weight: 700; font-size: 14px; }
.price-card__pick-icon { order: 0; width: 38px; height: 30px; flex-shrink: 0; }
.pc-mini { width: 100%; height: 100%; overflow: visible; }
.price-card__pick select { order: 1; flex: 1; min-width: 0; padding: 4px 26px 4px 0; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231e90ff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left center; color: var(--text); font: 800 15px/1.6 var(--mono); direction: ltr; text-align: right; -webkit-appearance: none; appearance: none; cursor: pointer; }
.price-card__pick select:focus { outline: 0; }
.price-card__pick:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 144, 255, .18); }
.price-card__pick select option { background: var(--surface); color: var(--text); }
.hp-card2 .price-card__specs { gap: 10px; }
.hp-card2 .price-card__specs li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border-color: var(--line); }
.hp-card2 .price-card__specs li .icon { color: var(--blue); stroke-width: 1.7; }
.hp-card2 .price-card__specs li span { min-width: 0; }
.hp-card2 .price-card__actions .btn { min-height: 48px; border-radius: 14px; }

/* Scene parts */
.sc-sw { fill: none; stroke: url(#scSw); stroke-width: 3; }
.sc-sw--2 { stroke-width: 1.6; opacity: .7; }
.sc-glow { fill: #4fb0ff; opacity: .26; }
.sc-strip { fill: none; stroke: #7fd8ff; stroke-width: 9; stroke-linecap: round; opacity: .35; }
.sc-strip--core { stroke: #eaf8ff; stroke-width: 2.6; opacity: 1; }
.sc-vent { stroke: rgba(255, 255, 255, .6); stroke-width: 3; stroke-linecap: round; }
.sc-dark { fill: #2457b8; fill-opacity: .9; }
[data-theme="dark"] .sc-dark { fill: #1a4aa6; }
.sc-white { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: .95; }
.sc-belly { fill: rgba(255, 255, 255, .5); }
.sc-tip, .sc-beak { fill: #0b3b8f; }
.sc-eye { fill: #fff; stroke: #0b3b8f; stroke-width: 1.2; }
.sc-eye__in { fill: #0b3b8f; }
.sc-eye__hl { fill: #fff; }
.sc-leg { fill: none; stroke: #0b3b8f; stroke-width: 3; stroke-linecap: round; }
[data-theme="dark"] .sc-tip, [data-theme="dark"] .sc-beak, [data-theme="dark"] .sc-eye__in { fill: #9fd2ff; }
[data-theme="dark"] .sc-leg { stroke: #9fd2ff; }
.sc-link { fill: none; stroke: rgba(30, 144, 255, .55); stroke-width: 2; stroke-dasharray: 4 5; }
.sc-lbl { fill: var(--brand-text); font: 800 12px var(--mono); }
.sc-chiptxt { fill: #0b3b8f; font: 900 18px var(--mono); }
[data-theme="dark"] .sc-chiptxt { fill: #fff; }
.sc-globe, .sc-cloud, .sc-panel { fill: url(#glS); }
.sc-meri { fill: none; stroke: rgba(30, 144, 255, .3); stroke-width: 1.2; }
.sc-dot { fill: #1e90ff; stroke: #fff; stroke-width: 2; }
.sc-shine { fill: rgba(255, 255, 255, .55); }
.sc-wave { fill: none; stroke: #4fb0ff; stroke-width: 4; stroke-linecap: round; opacity: .85; }
.sc-ant { stroke: #3b86f0; stroke-width: 5; stroke-linecap: round; }
.sc-port { fill: rgba(11, 59, 143, .6); }
.sc-pins { stroke: #8cc4ff; stroke-width: 3; stroke-linecap: round; }
.sc-wick { stroke: #8aa7cc; stroke-width: 2; }
.sc-candle { fill: #3b86f0; }
.sc-candle.is-down { fill: #a9cdf5; }
.sc-trend { fill: none; stroke: #1e90ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sc-stand { fill: url(#paL); }
.sc-inf { fill: none; stroke: rgba(30, 144, 255, .2); stroke-width: 18; stroke-linecap: round; }
.sc-inf--core { stroke: #4fb0ff; stroke-width: 6; }
.sc-bar { stroke: rgba(30, 144, 255, .25); stroke-width: 2; }
.sc-dotb { fill: #8cc4ff; }
.sc-blk { fill: rgba(30, 144, 255, .14); }
.sc-lines { stroke: rgba(30, 144, 255, .25); stroke-width: 6; stroke-linecap: round; }
.sc-cursor { fill: #0b3b8f; stroke: #fff; stroke-width: 1.5; }
.sc-unit { stroke: rgba(255, 255, 255, .75); stroke-width: 1.4; }
.sc-led2 { fill: #7fd8ff; }
@media (max-width: 960px) {
	.lhero__bg { width: 100%; opacity: .18; }
	.lhero__scene { max-width: 440px; width: 100%; margin-inline: auto; margin-bottom: -76px; }
	.lhero__wave { width: 100%; }
}
@media (max-width: 640px) {
	.lhero__tile { width: 46px; height: 46px; border-radius: 14px; }
	.lhero__tile .icon { width: 20px; height: 20px; }
	.lhero__stage .price-card.hp-card2 { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
	.hp-card2 .price-card__value b { font-size: 28px; }
}
.lhero__scene { margin: -24px -6% -44px; }
.sc-sw { stroke-width: 4.5; }
.sc-sw--2 { stroke-width: 2.2; opacity: .85; }
.sc--hodhod .gl-r, .sc--intl .sc-dot { fill: url(#paL); }
.sc-ped .gl-t { fill: url(#paR); }
@media (max-width: 960px) { .lhero__scene { margin: -10px auto -40px; } }

/* Product render images (panel / bundled) replace the vector scene */
.lhero__img { display: none; width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 72% 80% at 50% 44%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 80% at 50% 44%, #000 62%, transparent 100%); }
.lhero__scene.has-light .lhero__img--light { display: block; margin: 0 -10% 0; width: 120%; max-width: none; }
.lhero__scene.has-light .sc, .lhero__scene.has-light .lhero__tile { display: none; }
[data-theme="dark"] .lhero__scene.has-light .lhero__img--light { display: none; }
[data-theme="dark"] .lhero__scene.has-light:not(.has-dark) .sc { display: block; }
[data-theme="dark"] .lhero__scene.has-light:not(.has-dark) .lhero__tile { display: grid; }
[data-theme="dark"] .lhero__scene.has-dark .lhero__img--dark { display: block; margin: 0 -10%; width: 120%; max-width: none; }
.lhero__scene.has-light { margin-top: 0; }
.lhero__img { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 52%, #000 48%, transparent 100%); mask-image: radial-gradient(ellipse 60% 70% at 50% 52%, #000 48%, transparent 100%); }
.lhero__scene.has-light .lhero__img--light, [data-theme="dark"] .lhero__scene.has-dark .lhero__img--dark { width: 136%; margin: 0 -18%; }
.lhero__scene.has-light { margin-bottom: -18px; }
[data-theme="dark"] .lhero__scene.has-light:not(.has-dark) { margin-bottom: -44px; }
@media (max-width: 960px) { .lhero__scene.has-light .lhero__img--light { width: 118%; margin: 0 -9%; } }
/* Pedestal and lighting closer to the render: dark glass server, cyan LED bar, edge light */
.sc-ped .gl-t { fill: url(#pedT); }
.sc-ped .gl-l { fill: url(#pedL); }
.sc-ped .gl-r { fill: url(#pedR); }
.sc-ped .gl { stroke: rgba(140, 200, 255, .55); }
.sc-strip { stroke: #59c8ff; stroke-width: 12; opacity: .32; }
.sc-strip--core { stroke: #dff6ff; stroke-width: 3; opacity: 1; }
.sc-vent { stroke: rgba(140, 200, 255, .35); }
.sc-disp { fill: #061633; stroke: rgba(120, 200, 255, .6); stroke-width: 1; }
.sc-disp__seg { stroke: #7fd8ff; stroke-width: 2.4; stroke-linecap: round; }
.sc-edge { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 1.6; stroke-linecap: round; }
.sc-obj .gl-t, .sc-obj .gl-r { filter: none; }
/* Near-square product renders */
.lhero__scene.is-tile .lhero__img--light, [data-theme="dark"] .lhero__scene.is-tile.has-dark .lhero__img--dark { width: 100%; max-width: 470px; margin: 0 auto; }
.lhero__scene.is-tile .lhero__img { -webkit-mask-image: radial-gradient(ellipse 64% 68% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 64% 68% at 50% 50%, #000 58%, transparent 100%); }
.lhero__scene.is-tile.has-light { margin-bottom: -34px; }
/* Dark mode without a dark render: the original render sits in a lit glass display card (no recolouring) */
[data-theme="dark"] .lhero__scene.has-light:not(.has-dark) .lhero__img--light { display: block; width: 100%; max-width: 100%; margin: 0; border-radius: 28px; background: #eaf3ff; -webkit-mask-image: none; mask-image: none; box-shadow: 0 0 0 1px rgba(124, 196, 255, .35), 0 30px 60px -24px rgba(0, 0, 0, .75), 0 0 70px -14px rgba(30, 144, 255, .55); }
[data-theme="dark"] .lhero__scene.has-light:not(.has-dark) .sc { display: none; }
[data-theme="dark"] .lhero__scene.has-light:not(.has-dark) .lhero__tile { display: none; }
[data-theme="dark"] .lhero__scene.has-light:not(.has-dark) { margin: 0 0 -22px; }
/* Near-square renders stay close to their real size so they look sharp */
.lhero__scene.is-tile .lhero__img--light, [data-theme="dark"] .lhero__scene.is-tile.has-light:not(.has-dark) .lhero__img--light { max-width: 360px; margin-inline: auto; }
[data-theme="dark"] .lhero__scene.has-light:not(.has-dark) { margin: 0 0 16px; }
/* High-resolution renders stay sharp at a larger size */
.lhero__scene.is-tile.is-hires .lhero__img--light, [data-theme="dark"] .lhero__scene.is-tile.is-hires .lhero__img { max-width: 500px; }
[data-theme="dark"] .lhero__scene.is-tile.is-hires-dark .lhero__img--dark { max-width: 500px; }

/* ---------- Product hero: background takes the render's own edge colours (no visible picture border) ---------- */
:root:not([data-theme="dark"]) .lhero--tl::before { background: linear-gradient(180deg, var(--lh1) 0%, var(--lh2) 42%, var(--lh2) 86%, var(--bg) 100%); }
[data-theme="dark"] .lhero--td::before { background: linear-gradient(180deg, var(--lhd1) 0%, var(--lhd2) 42%, var(--lhd2) 86%, var(--bg) 100%); }
:root:not([data-theme="dark"]) .lhero--tl::after, :root:not([data-theme="dark"]) .lhero--tl .lhero__bg,
[data-theme="dark"] .lhero--td::after, [data-theme="dark"] .lhero--td .lhero__bg { display: none; }
:root:not([data-theme="dark"]) .lhero--tl { --muted: #2c4670; }
:root:not([data-theme="dark"]) .lhero--tl .lhero__img, [data-theme="dark"] .lhero--td .lhero__img { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); }

/* ---------- Lite mode: low-end devices, data saver, reduced motion ---------- */
html.lite *, html.lite *::before, html.lite *::after { animation: none !important; transition: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.lite svg, html.lite svg *, html.lite .pc-art, html.lite .cdn-hero2__feats span { filter: none !important; }
html.lite .js .reveal, .lite.js .reveal { opacity: 1 !important; transform: none !important; }
html.lite { --header-bg: var(--header-bg-solid); --hp-glass: rgba(255, 255, 255, .95); }
html.lite[data-theme="dark"] { --hp-glass: rgba(13, 28, 56, .96); }
html.lite .hh, html.lite .hh-end { --hh-panel: rgba(255, 255, 255, .96); }
html.lite[data-theme="dark"] .hh, html.lite[data-theme="dark"] .hh-end { --hh-panel: rgba(13, 28, 56, .96); }
html.lite .lhero__stage .price-card.hp-card2 { background: var(--surface); }

/* ---------- Mobile buy bar (product pages) ---------- */
.buybar { display: none; }
@media (max-width: 760px) {
	.buybar:not([hidden]) { position: fixed; z-index: 95; inset: auto 12px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(11, 42, 85, .45); }
	[data-theme="dark"] .buybar:not([hidden]) { box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); border-color: rgba(124, 196, 255, .22); }
	.buybar__price { display: grid; line-height: 1.3; min-width: 0; }
	.buybar__price small { color: var(--muted); font-size: 12px; }
	.buybar__price b { color: var(--brand-text); font-size: 18px; font-weight: 900; }
	.buybar__price span { color: var(--muted); font-size: 12px; }
	.buybar .btn { flex-shrink: 0; min-height: 44px; padding-inline: 16px; }
	body.has-buybar .float-support { bottom: 86px; }
	body.has-buybar .site-footer { padding-bottom: 76px; }
}

/* ---------- Terms of service ---------- */
.terms-hero__lead { max-width: 640px; margin: 10px auto 0; color: var(--muted); line-height: 2; }
.terms-hero__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.terms-hero__meta span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--brand-text); font-weight: 800; font-size: 13px; }
.terms-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.terms-points li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.terms-points__icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--blue); }
.terms-points li > span:last-child { display: grid; min-width: 0; line-height: 1.7; }
.terms-points small { color: var(--muted); font-size: 12px; }
.terms-points b { color: var(--text); font-size: 14px; }
.terms__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.terms-toc { position: sticky; top: calc(var(--header-h, 72px) + 16px); padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.terms-toc__title { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.terms-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.terms-toc a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.terms-toc a .icon { color: var(--blue); flex-shrink: 0; }
.terms-toc a:hover, .terms-toc a:focus-visible { background: var(--tint); color: var(--brand-text); }
.terms__body { display: grid; gap: 18px; }
.terms-sec { scroll-margin-top: calc(var(--header-h, 72px) + 16px); padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.terms-sec__title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 19px; }
.terms-sec__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--grad); color: #fff; flex-shrink: 0; }
.terms-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.terms-list li { display: flex; gap: 12px; padding: 12px; border-radius: 14px; }
.terms-list li + li { border-top: 1px dashed var(--line); border-radius: 0; }
.terms-list__n { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--tint); color: var(--brand-text); font-weight: 900; font-size: 13px; }
.terms-list p { margin: 0; line-height: 2.05; color: var(--text); }
.terms-list li.is-key { border: 1px solid color-mix(in srgb, var(--blue) 32%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--blue) 7%, transparent); }
.terms-list li.is-key + li { border-top-color: transparent; }
.terms-list li.is-key .terms-list__n { background: var(--blue); color: #fff; }
.terms-end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px; border-radius: 22px; background: linear-gradient(135deg, var(--tint), var(--surface)); border: 1px solid var(--line); }
.terms-end__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--grad); color: #fff; flex-shrink: 0; }
.terms-end__body { flex: 1; min-width: 200px; }
.terms-end__body h2 { margin: 0 0 4px; font-size: 18px; }
.terms-end__body p { margin: 0; color: var(--muted); }
.terms-end__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 960px) {
	.terms-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.terms__layout { grid-template-columns: minmax(0, 1fr); }
	.terms-toc { position: static; padding: 0; background: none; border: 0; }
	.terms-toc__title { display: none; }
	.terms-toc ol { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
	.terms-toc li { flex-shrink: 0; }
	.terms-toc a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
}
@media (max-width: 560px) {
	.terms-points { gap: 8px; }
	.terms-points li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
	.terms-points__icon { width: 36px; height: 36px; border-radius: 11px; }
	.terms-points b { font-size: 13px; }
	.terms-sec { padding: 16px; }
	.terms-list li { padding: 10px 4px; }
	.terms-list li.is-key { padding: 10px; }
	.terms-end__actions, .terms-end__actions .btn { width: 100%; }
}

/* ---------- Mobile polish: no page-wide overflow, comfortable tap targets ---------- */
.cmp-wrap { position: relative; } /* keeps hidden table labels inside the scroll box */
@media (max-width: 760px) {
	.read-more { display: inline-flex; align-items: center; min-height: 40px; padding-block: 6px; }
	.link-more, .post-card__more { min-height: 40px; }
	.footer__links a { padding-top: 9px; }
	.dc-stepper button { width: 38px; height: 38px; }
	.hp-stat > span { white-space: normal; overflow: visible; text-overflow: clip; padding-inline: 6px; line-height: 1.6; }
	.cdn-hero2__net { opacity: .28; } /* map pins stay decorative behind the text */
}

/* ---------- Even card rows (layout set by main.js) ---------- */
.eg--center { display: flex !important; flex-wrap: wrap; justify-content: center; }
.eg--center > * { flex: 0 0 calc((100% - (var(--eg-c) - 1) * var(--eg-gap)) / var(--eg-c)); min-width: 0; }
.eg--span > :last-child { grid-column: 1 / -1; }

/* Hero renders are wrapped in <picture> (AVIF / WebP); the image keeps its own layout. */
.lhero__scene picture { display: contents; }

/* ---------- Footer background: aurora, dotted world map with routes from Iran, wordmark ---------- */
.site-footer { --f-bg: linear-gradient(180deg, #f4f8ff 0%, #eaf2fe 45%, #dbe9fc 100%); --f-map: linear-gradient(90deg, #8fbcf3, #1e90ff 55%, #7cc4ff); --f-map-o: .2; --f-glow1: rgba(30, 144, 255, .2); --f-glow2: rgba(94, 200, 255, .22); --f-word: rgba(30, 144, 255, .13); --f-arc-o: .55; }
[data-theme="dark"] .site-footer { --f-bg: linear-gradient(180deg, #050c18 0%, #06112a 55%, #071a3d 100%); --f-map: linear-gradient(90deg, #1b3f78, #1e90ff 55%, #2a5ea8); --f-map-o: .26; --f-glow1: rgba(30, 144, 255, .26); --f-glow2: rgba(30, 110, 255, .2); --f-word: rgba(124, 196, 255, .1); --f-arc-o: .8; }
.footer__bg { background: radial-gradient(ellipse 50% 42% at 92% 0, var(--f-glow1), transparent 70%), radial-gradient(ellipse 42% 38% at 4% 22%, var(--f-glow2), transparent 70%), radial-gradient(ellipse 60% 40% at 50% 100%, var(--f-glow1), transparent 72%); }
.footer__bg::before { -webkit-mask-image: radial-gradient(ellipse 70% 40% at 50% 0, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 40% at 50% 0, #000, transparent 75%); }
.footer__glow { position: absolute; top: -1px; left: 50%; width: min(760px, 90%); height: 120px; transform: translateX(-50%); background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(30, 144, 255, .28), transparent 70%); }
.footer__map { position: absolute; left: 50%; top: 34%; width: min(1240px, 125%); aspect-ratio: 1000 / 372; transform: translateX(-50%); -webkit-mask-image: radial-gradient(ellipse 60% 62% at 55% 45%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 60% 62% at 55% 45%, #000 45%, transparent 100%); }
.footer__map-land, .footer__map-iran { position: absolute; inset: 0; -webkit-mask: var(--land) no-repeat 0 0 / 100% 100%; mask: var(--land) no-repeat 0 0 / 100% 100%; }
.footer__map-land { background: var(--f-map); opacity: var(--f-map-o); }
.footer__map-iran { background: #1e90ff; opacity: .55; -webkit-mask-image: var(--iran); mask-image: var(--iran); filter: drop-shadow(0 0 5px rgba(30, 144, 255, .6)); }
.footer__arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: var(--f-arc-o); }
.footer__arcs path { fill: none; stroke: url(#fArc); stroke-width: 1.4; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; animation: dash 3s linear infinite; }
.footer__arcs circle { fill: #1e90ff; }
.footer__arcs circle:first-of-type { fill: #fff; stroke: #1e90ff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.footer__word { position: absolute; left: 50%; bottom: -.18em; transform: translateX(-50%); font: 900 clamp(52px, 11vw, 168px) / 1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .04em; white-space: nowrap; direction: ltr; color: transparent; -webkit-text-stroke: 1px var(--f-word); background: linear-gradient(180deg, var(--f-word), transparent 80%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.site-footer .container { z-index: 1; }
.footer__stats li, .footer__namad, .footer__top-btn { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 760px) {
	.footer__map { top: 52%; width: 190%; }
	.footer__word { bottom: -.12em; }
}
html.lite .footer__map-iran { filter: none; }

/* ---------- Mobile: larger tap targets and readable small labels ---------- */
@media (max-width: 760px) {
	.hp-wf select { min-height: 34px; font-size: 14px; }
	.wmap__label { font-size: 11px; }
	.tpl-card__body h3 a { display: block; padding: 5px 0; }
	.fp-table a.ltr, td > a.ltr[href^="tel:"] { display: inline-block; padding: 9px 0; }
}

/* ---------- Location picker (plan groups by datacenter location) ---------- */
.loc-tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 auto 26px; padding: 0; background: none; border: 0; }
.loc-tabs button.tabs__tab { position: relative; display: flex; align-items: center; gap: 12px; min-width: 190px; padding: 12px 16px !important; border-radius: 18px; text-align: start; background: var(--surface) !important; border: 1.5px solid var(--line) !important; color: var(--text) !important; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.loc-tabs button.tabs__tab:hover { border-color: rgba(30, 144, 255, .5) !important; transform: translateY(-2px); }
.loc-tabs button.tabs__tab[aria-selected="true"] { border-color: var(--blue) !important; background: linear-gradient(180deg, rgba(30, 144, 255, .1), rgba(30, 144, 255, .03)), var(--surface) !important; box-shadow: 0 0 0 3px rgba(30, 144, 255, .15), var(--shadow-sm); }
.loc-tabs button.tabs__tab[aria-selected="true"]::after { content: ""; position: absolute; top: 10px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(30, 144, 255, .2); }
.loc-tabs .flag { flex: 0 0 auto; min-width: 28px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .12); }
.loc-tabs__txt { display: grid; line-height: 1.5; }
.loc-tabs__txt b { font-size: 15px; font-weight: 800; color: var(--head, var(--text)); }
.loc-tabs__txt small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.loc-tabs__from { margin-inline-start: auto; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.5; }
.loc-tabs__from b { display: block; font-size: 13.5px; font-weight: 900; color: var(--brand-text); }
@media (max-width: 760px) {
	.loc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
	.loc-tabs button.tabs__tab { min-width: 0; width: 100%; flex-direction: column; gap: 6px; padding: 12px 6px 10px !important; text-align: center; border-radius: 16px; }
	.loc-tabs button.tabs__tab:hover { transform: none; }
	.loc-tabs button.tabs__tab[aria-selected="true"]::after { top: 8px; left: 8px; width: 7px; height: 7px; }
	.loc-tabs__txt b { font-size: 14px; }
	.loc-tabs__txt small { font-size: 11.5px; }
	.loc-tabs__from { margin: 0; padding: 6px 0 0; border: 0; border-top: 1px solid var(--line); width: 100%; font-size: 10.5px; }
	.loc-tabs__from b { font-size: 12.5px; }
}
.loc-tabs__from.is-off { color: var(--muted); font-weight: 800; }
/* Spec values keep their own direction ("2× Intel Xeon …" stays left-to-right inside RTL cards). */
.pc__specs b { unicode-bidi: plaintext; }

/* Country flags on the datacenter list and map labels. */
.hp-dc__code--flag { width: auto !important; height: auto !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.hp-dc__code--flag .flag { display: block; width: 34px; height: 23px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 3px 8px rgba(0, 0, 0, .18); }
.wmap__label { display: inline-flex; align-items: center; gap: 5px; }
.wmap__label .flag { flex: 0 0 16px; width: 16px; min-width: 16px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }

/* European datacenters: small pins sharing one label with all their flags. */
.wmap__pin--dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-width: 1.5px; }
.wmap__pin--dot::after { inset: -5px; }
.wmap__cluster { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, calc(-100% - 12px)); display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 9px; white-space: nowrap; font-size: 11.5px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-sm); z-index: 2; }
.wmap__cluster::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: inherit; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wmap__cluster-flags { display: inline-flex; gap: 3px; }
.wmap__cluster .flag { flex: 0 0 15px; width: 15px; min-width: 15px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.wmap__cluster b { font-weight: 800; }
.hp-dc__map .wmap__cluster { background: rgba(8, 20, 42, .9); color: #fff; border-color: rgba(124, 196, 255, .3); }
@media (max-width: 760px) { .wmap__cluster { font-size: 10px; padding: 3px 7px; gap: 5px; } .wmap__cluster .flag { flex-basis: 12px; width: 12px; min-width: 12px; height: 8px; } }
/* Datacenter list: all locations in two rows (flag above the name). */
.hp-dc__chips { display: grid; grid-template-columns: repeat(var(--dc-cols, 5), minmax(0, 1fr)); gap: 8px; }
.hp-dc__chips li { min-width: 0; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 6px; text-align: center; }
.hp-dc__chips li > span:last-child { min-width: 0; }
.hp-dc__chips li b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-dc__chips li small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
	.hp-dc__chips { gap: 5px; }
	.hp-dc__chips li { gap: 4px; padding: 8px 2px; border-radius: 10px; }
	.hp-dc__chips li b { font-size: 10.5px; }
	.hp-dc__chips li small { font-size: 9.5px; }
	.hp-dc__code--flag .flag { width: 26px; height: 17px; }
}

/* Partner logos: readable in both themes (dark-lettered logos sit on a light plate in dark mode). */
.partner__logo { opacity: .85; }
[data-theme="dark"] .partner__media { padding: 8px 16px; border-radius: 14px; background: #f3f7fd; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
[data-theme="dark"] .partner__media .partner__logo { max-height: 48px; opacity: 1; }
/* SVG logos scale to the logo box, whatever size is written in the file. */
.partner__logo[src$=".svg"] { width: auto; height: 52px; max-width: 150px; }
[data-theme="dark"] .partner__media .partner__logo[src$=".svg"] { height: 44px; }

/* Tablets (touch, desktop menu): a tapped item opens like a hovered one. */
@media (min-width: 961px) {
	.nav__list > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.nav__list > li.has-mega.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}

/* Mobile menu on iPhone Safari: while open, the header drops its blur/clip (Safari did not repaint
   the drawer inside a backdrop-filter header until the screen was tapped) and the drawer is fixed
   to the screen, right under the header (top/height set by main.js). */
@media (max-width: 960px) {
	.nav-open .site-header { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--bg); overflow: visible; }
	.nav-open .nav { position: fixed; top: var(--nav-top, var(--header-h)); right: 0; left: 0; bottom: auto; z-index: 1000; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}
/* Opening and closing never wait for a transition or animation (iOS could leave the drawer off-screen or
   see-through until the next tap): the drawer is shown at once, fully opaque. */
@media (max-width: 960px) {
	.nav { transition: none !important; }
	.nav-open .nav { animation: none !important; visibility: visible !important; opacity: 1 !important; }
}
