/* IT4Y_UNIFIED_PCARD_2026_06_16 */
/* IT4Y_UNIFIED_PCARD_2026_06_16 (marketing) — premium card chrome layered onto existing .plan cards.
   Promo content (gift badge, NEW/cheapest tags, descriptions, Nano FREE gradient) is preserved as-is. */
.it4-pcard{overflow:visible}
.it4-pcard .plan-name{margin:0;font-size:18px;font-weight:800;line-height:1.2}
.it4-pcard .pc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 10px}
.it4-pcard .pc-instant{
display:inline-flex;
align-items:center;
gap:4px;
background:rgba(34,197,94,.12);
color:var(--ds-success-text);
border:1px solid rgba(34,197,94,.35);
padding:2px 9px;
border-radius:999px;
font-size:11px;
font-weight:700;
white-space:nowrap;
flex:0 0 auto
}
.it4-pcard .pc-bolt{width:11px;height:11px;fill:currentColor;stroke:none;animation:pc-pulse 1.6s ease-in-out infinite}
@keyframes pc-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.18)}}
.it4-pcard .pc-pills{display:flex;gap:4px;flex-wrap:wrap;margin:10px 0 12px}
.it4-pcard .pc-pill{
flex:1 1 auto;
min-width:34px;
background:var(--ds-chip-bg);
color:var(--ds-text-2);
border:1px solid var(--ds-border);
border-radius:999px;
padding:5px 4px;
font-size:11px;
font-weight:700;
cursor:pointer;
text-align:center;
font-family:inherit;
line-height:1.3;
transition:background .15s,color .15s,border-color .15s
}
.it4-pcard .pc-pill:hover{background:var(--ds-chip-bg-hover);color:var(--ds-chip-text-hover)}
.it4-pcard .pc-pill.active{background:#2563eb;color:#fff;border-color:#2563eb}
.it4-pcard .plan-specs.pc-specs{
display:grid;
grid-template-columns:1fr 1fr;
gap:9px 12px;
border:1px solid var(--ds-border);
border-radius:12px;
padding:11px 12px;
margin:12px 0 16px
}
.it4-pcard .pc-specs .spec{padding:0;display:flex;align-items:center;gap:8px;min-width:0;font-size:13px}
.it4-pcard .pc-specs .spec svg{
width:18px;height:18px;flex:0 0 18px;fill:none;stroke:var(--ds-text-muted);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round
}
.it4-pcard .pc-save{
display:inline-block;
background:var(--ds-success-bg);
color:var(--ds-success-strong);
border:1px solid rgba(34,197,94,.35);
padding:1px 8px;
border-radius:999px;
font-size:11px;
font-weight:700;
margin-left:6px;
vertical-align:2px
}
.it4-pcard .pc-billed{font-size:12px;color:var(--ds-text-muted);margin:2px 0 0}
.it4-pcard .plan-btn.pc-cta-mkt{width:100%;border-radius:10px;font-weight:800}

/* IT4Y_PCARD_FIX_2026_06_16 */
.it4-pcard .plan-specs.pc-specs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px 12px!important;align-items:stretch}
.it4-pcard .pc-specs .spec{padding:4px 2px!important;background:transparent!important;border:0!important;border-bottom:0!important}

/* IT4Y_PCARD_RTL_2026_06_16 — RTL BiDi guard: keep value->unit logical order on Arabic specs */
html[dir="rtl"] .it4-pcard .pc-specs .spec,html[lang="ar"] .it4-pcard .pc-specs .spec{direction:ltr!important;unicode-bidi:isolate}
html[dir="rtl"] .it4-pcard .pc-specs .spec span,
html[dir="rtl"] .it4-pcard .pc-specs .spec b,
html[lang="ar"] .it4-pcard .pc-specs .spec span,
html[lang="ar"] .it4-pcard .pc-specs .spec b{
direction:ltr!important;
unicode-bidi:isolate
}

/* IT4Y_PCARD_COMPACT_2026_06_16 — AWS-density compaction pass (marketing). !important beats DS-v4.5 rules. */
.it4-pcard{padding:11px!important}
.it4-pcard .pc-head{margin:0 0 6px!important}
.it4-pcard .plan-name{font-size:16px!important;line-height:1.15!important}
.it4-pcard .plan-desc{
margin:3px 0 7px!important;
font-size:12px!important;
line-height:1.35!important;
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden
}
.it4-pcard .plan-price-wrap{margin:0 0 4px!important}
.it4-pcard .plan-price{font-size:21px!important;line-height:1.05!important}
.it4-pcard .pc-pills{gap:3px!important;margin:6px 0 6px!important}
.it4-pcard .pc-pill{padding:4px 3px!important;font-size:10px!important}
.it4-pcard .pc-billed{margin:1px 0 0!important;font-size:11px!important}
.it4-pcard .pc-save{font-size:10px!important}
.it4-pcard .plan-specs.pc-specs{gap:6px 10px!important;padding:8px 10px!important;margin:8px 0 9px!important}
.it4-pcard .pc-specs .spec{font-size:12px!important}
.it4-pcard .pc-specs .spec svg{width:18px!important;height:18px!important}
.it4-pcard .plan-btn.pc-cta-mkt{padding:8px 14px!important;font-size:13px!important}
.it4-pcard .pc-instant{padding:2px 8px!important;font-size:10px!important}

/* IT4Y_PCARD_OVERLAP_FIX_2026_06_16 — the uniform-height pin forced every .plan to a fixed
   390px box (--it4-plan-min-h) that is SHORTER than the real content at desktop card widths,
   so the spec list + CTA overflowed BELOW the card border and overlapped the next row
   (Chrome-measured: 14/16 cards, CTA spilling 16-163px past the box). Fix = let each card
   size to its own content (overflow gone; grid keeps rows tidy), and tighten the spec block
   so cards are as compact as possible WITHOUT removing any spec/label/promo. */
@media(min-width:641px){html body .plans-grid>.plan,html body #windows-vps .plans-grid>.plan{height:auto!important;min-height:0!important}}
.it4-pcard .pc-specs,.it4-pcard .plan-specs{gap:4px 8px!important;padding:7px 9px!important;margin:7px 0 8px!important}
.it4-pcard .pc-specs .spec,.it4-pcard .plan-specs .spec{line-height:1.16!important;align-items:start!important}
.it4-pcard .pc-specs .spec b,.it4-pcard .plan-specs .spec b{font-size:11.5px!important;line-height:1.16!important}
.it4-pcard .pc-specs .spec span,.it4-pcard .plan-specs .spec span{font-size:10px!important;line-height:1.14!important}
.it4-pcard .pc-specs .spec svg,.it4-pcard .plan-specs .spec svg{width:15px!important;height:15px!important}

/* IT4Y_PCARD_DENSE2_2026_06_16 — second layout-efficiency pass (spacing/typography/grid only, NO content
   removed). Reclaims inter-section margins, trims badge-card top clearance, and densifies the spec grid:
   tighter item box + 13px icons give each spec value more horizontal room, so short values that were
   wrapping ("40 GB NVMe SSD", "5 TB / month") now fit one line. Chrome-verified all 3 langs: overlap 0,
   zero text clipping, RTL dir=ltr intact. Card heights: EN Linux 416->395 / Windows 519->474, SV 510->486,
   AR 495->475. */
.it4-pcard.plan{padding-left:10px!important;padding-right:10px!important}
@media(min-width:641px){html body .plans-grid>.plan{padding-top:14px!important;padding-bottom:11px!important}}
.it4-pcard .pc-head{margin-bottom:4px!important}
.it4-pcard .plan-desc{margin:2px 0 5px!important}
.it4-pcard .plan-price-wrap{margin-bottom:3px!important}
.it4-pcard .it4mpp-row{margin:5px 0 4px!important}
.it4-pcard .it4mpp-meta{margin:1px 0!important}
.it4-pcard .it4mpp-billed{margin:0 0 3px!important}
.it4-pcard .plan-divider{margin:4px 0 5px!important}
.it4-pcard .pc-specs,.it4-pcard .plan-specs{column-gap:6px!important;row-gap:4px!important;padding:5px 7px!important;margin:5px 0 6px!important}
.it4-pcard .pc-specs .spec,.it4-pcard .plan-specs .spec{align-items:center!important;gap:5px!important;line-height:1.2!important;padding:1px 4px!important}
.it4-pcard .pc-specs .spec svg,.it4-pcard .plan-specs .spec svg{width:13px!important;height:13px!important;flex:0 0 13px!important;margin:0!important}
.it4-pcard .pc-specs .spec span,.it4-pcard .plan-specs .spec span{font-size:10px!important;line-height:1.25!important}
/* RTL/emoji safety (adversarial-review finding): Arabic diacritics + emoji need a taller line box than
   Latin to avoid vertical glyph clipping / inter-line collision on wrapped specs. Cheap; only AR pays it. */
html[dir="rtl"] .it4-pcard .pc-specs .spec,html[dir="rtl"] .it4-pcard .plan-specs .spec{line-height:1.3!important}
html[dir="rtl"] .it4-pcard .pc-specs .spec span,html[dir="rtl"] .it4-pcard .plan-specs .spec span{line-height:1.3!important}
.it4-pcard .pc-cta-mkt,.it4-pcard .plan-btn.pc-cta-mkt{padding-top:7px!important;padding-bottom:7px!important}

/* IT4Y_PCARD_DENSE3_2026_06_16 — third density pass (layout/spacing only, NO content changed).
   (1) The dense2 spec-grid tightening was being OUT-SPECIFICITY'd by an earlier compaction rule
   (.it4-pcard .plan-specs.pc-specs = 3 classes beat dense2's .it4-pcard .pc-specs = 2 classes), so the
   spec grid was still running at the looser gap 10/6 + item padding 3px/8px. Re-land at winning
   specificity (html body + the .plan-specs.pc-specs compound): col-gap 10->6, row-gap 6->4, item padding
   3px8px->1px3px, icon 13px. Result: more text width per cell => fewer wrapped lines; Windows spec block
   197->162px; card 470->431 (EN) / 475->435 (AR) / ~486->443 (SV); Linux 383->355.
   (2) Narrow the plan grid container 1212->1120px (cards 296->273px, -8% width). Measured floor:
   1040px re-wraps specs (height regresses); 1120px holds with zero re-wrap on EN/AR/SV. 6-cycle pills
   stay on one row; overlap/vertical-clip/horizontal-clip all 0; Arabic dir=ltr 135/135 intact. */
html body .it4-pcard .plan-specs.pc-specs,html body .it4-pcard .pc-specs{
column-gap:6px!important;
row-gap:4px!important;
padding:5px 7px!important;
margin:5px 0 6px!important
}
html body .it4-pcard .plan-specs.pc-specs .spec,html body .it4-pcard .pc-specs .spec{
padding:1px 3px!important;
gap:4px!important;
align-items:center!important;
line-height:1.2!important
}
html[dir="rtl"] body .it4-pcard .plan-specs.pc-specs .spec,html[dir="rtl"] body .it4-pcard .pc-specs .spec{line-height:1.3!important}
html body .it4-pcard .plan-specs.pc-specs .spec svg,html body .it4-pcard .pc-specs .spec svg{
width:13px!important;
height:13px!important;
flex:0 0 13px!important;
margin:0!important
}
html body .plans-grid{max-width:1120px!important;margin-left:auto!important;margin-right:auto!important}

/* IT4Y_PCARD_MOBILE_WINFIX_2026_06_16 — mobile-first fix. The Windows VPS section was being forced to
   a 2-column grid at <=640px by an #id rule (#windows-vps .plans-grid{grid-template-columns:repeat(2,...)}),
   so on a 360px phone each Windows card was only ~171px wide and — because the long Windows spec strings
   ("Windows Server 2022", "SPLA license active", "40 GB NVMe SSD") wrap heavily at that width — 572-779px
   tall: cramped AND overly tall, and inconsistent with the Linux section (clean 1-column). The Linux
   section is already 1-column on phones. Force the Windows section to 1-column too, so its cards become
   full-width (~352px) and reflow to a sane height (up to 779px -> ~442px). Layout only; no content changed.
   Simulated at viewport=360 (resolving every width @media to its 360px state): win cards 171->352px,
   tallest 779->442px, specs readable 2-col, CTA 38px, zero horizontal overflow. */
@media (max-width:640px){ html body #windows-vps .plans-grid{ grid-template-columns:1fr !important; } }
/* Typography guard (directive #1): plan titles must wrap on natural word boundaries, never mid-word
   ("Window s" / "Standa rd"). The squeeze itself is fixed by the 1-column rule above; this is a
   belt-and-suspenders guard so a title can never break-all even at the narrowest phone width. */
html body .it4-pcard .plan-name,html body .it4-pcard .pc-name,html body .plans-grid > .plan .plan-name{
word-break:normal !important;
overflow-wrap:normal !important;
hyphens:none !important;
}

/* IT4Y_PCARD_DENSE4_2026_06_16 — 4th density + mobile-breakpoint pass (marketing). Layout/grid/spacing
   ONLY; zero content removed. Adversarially reviewed (5 lenses, 0 blockers). HONEST NOTE: after dense1->
   dense3 the spec text (labels 10px, values 11.5px) + icons (13px) are ALREADY SMALLER than the directive's
   cited "labels 11 / values 12-13 / icons 16-18" targets, so they are intentionally NOT enlarged (that would
   GROW the card, contradicting the shrink objective; 10px labels are treated as a hard legibility floor).
   The genuine levers, measured live in Chrome:
   (a) GRID WIDTH floor 1100px (was 1120): per-language width-sweep — EN holds 431px down to 1080, but
       ARABIC Windows specs re-wrap below 1100 (435->441px at 1090, +4 wrapped labels), and SV holds to
       1090. The cross-language safe floor is therefore 1100px (card 273->268px), NOT EN's 1080. Picked
       1100 so no language regresses (the RTL adversarial lens caught that EN's edge doesn't transfer to AR).
   (b) DESKTOP vertical padding 14/11 -> 12/10.
   (c) HEIGHT is the real density target (width is pinned by the 4-col grid), and re-wrap is purely
       HORIZONTAL, so trimming VERTICAL whitespace shrinks the card without approaching the 263px cliff:
       spec block margin 5/6->4/4, spec vertical padding 5->4 (HORIZONTAL 7px kept, to not risk internal
       wrap), spec row-gap 4->3, CTA vertical padding 7->6. ~9-10px/card, zero re-wrap/clip risk.
   (d) MOBILE single-column <768: prior fix stacked only #windows-vps at <=640, but the page's own
       @media(641-1099)+@media(max-900) force BOTH grids to repeat(2), so 641-767 still crushed cards 2-up
       (root of the "Window s" break). Now <=767 forces 1fr for BOTH #plans (Linux) AND #windows-vps. */
html body .plans-grid{max-width:1100px!important}
@media (min-width:641px){html body .plans-grid>.plan{padding-top:12px!important;padding-bottom:10px!important}}
html body .it4-pcard .plan-specs.pc-specs,html body .it4-pcard .pc-specs{
margin-top:4px!important;
margin-bottom:4px!important;
padding-top:4px!important;
padding-bottom:4px!important;
row-gap:3px!important
}
html body .it4-pcard .plan-btn.pc-cta-mkt,html body .it4-pcard .pc-cta-mkt{padding-top:6px!important;padding-bottom:6px!important}
@media (max-width:767px){
  html body .plans-grid{grid-template-columns:1fr!important}
  html body #windows-vps .plans-grid{grid-template-columns:1fr!important}
}
/* The Linux / Windows tabs hide the panel that is not selected (marketing-os-tabs.js); hidden wins over every grid rule. */
html body #plans-linux[hidden],html body #windows-vps[hidden],html body #it4-svl[hidden]{display:none!important}
