/* ============================================================
   compendium-motion.css — the UAE Tax Compendium page's hero and
   motion layer (pairs with compendium-motion.js).

   Static by default: the navy aurora hero and the 3D book are plain
   CSS, and every reveal state is applied by GSAP at runtime, so with
   no JS (or with reduced motion) the page reads in full.
   ============================================================ */

/* ---------- Hero: navy, live aurora (hero-aurora.js) ---------- */
/* .page-hero.tc-hero: outranks the page's own inline .page-hero rule, which loads later */
.page-hero.tc-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--fw-navy); border-bottom: 0; color: #fff; padding: 120px 0 72px; }
.tc-hero .hero-aurora { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
/* legibility scrim: crisp copy on the left, aurora at full strength toward the right */
.tc-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(8, 23, 68, 0.92) 0%, rgba(8, 23, 68, 0.72) 42%, rgba(8, 23, 68, 0.18) 78%, rgba(8, 23, 68, 0) 100%); }
.tc-hero > .container { position: relative; z-index: 2; }
.tc-hero .page-hero-inner { max-width: 760px; }
.tc-hero .mono { color: rgba(255, 255, 255, 0.72); }
.tc-hero .page-hero-title { color: #fff; }
.tc-hero .page-hero-lead { color: rgba(255, 255, 255, 0.82); }
.tc-hero .tc-sample-note { color: rgba(255, 255, 255, 0.62); }
.tc-hero .tc-sample-note a { color: var(--fw-teal-300); }
.tc-hero .btn-primary { background: var(--fw-teal); color: #fff; }
.tc-hero .btn-primary:hover { background: var(--fw-teal-600); }
.tc-hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.tc-hero .btn-outline:hover { background: #fff; color: var(--fw-navy); }
.tc-hero .tc-facts { border-top-color: rgba(255, 255, 255, 0.18); }
.tc-hero .tc-facts dt { color: #fff; }
.tc-hero .tc-facts dd { color: rgba(255, 255, 255, 0.7); }

/* ---------- Languages badge (hero) ---------- */
.tc-lang { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.07); font-family: var(--font-body); font-size: 14px; font-weight: 600; color: #fff; }
.tc-lang [lang="ar"], .tc-ar-h, .tc-signin [lang="ar"] { font-family: "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif; font-weight: 600; }
.tc-lang-sep { color: rgba(255, 255, 255, 0.4); font-weight: 400; }
.tc-sample-ar { font-family: "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif; }
.tc-lang-note { font-weight: 500; color: var(--fw-teal-300); padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.tc-card-ar { border-color: rgba(0, 168, 156, 0.45); }
.tc-ar-h { display: block; margin-top: 6px; font-size: 18px; text-transform: none; color: var(--fw-teal); }
.tc-ar-audit { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(0, 168, 156, 0.25); font-size: 0.9em; opacity: 0.85; }

/* ---------- Sign in for licensees: hero panel + header button ---------- */
.tc-signin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 22px 0 0; max-width: 620px;
  padding: 16px 16px 16px 20px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tc-signin-txt { display: flex; flex-direction: column; gap: 3px; font-family: var(--font-body); font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.78); }
.tc-signin-txt b { font-size: 17px; color: #fff; }
.tc-signin-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--fw-navy); border: 0; font-weight: 700; }
.tc-signin-btn:hover { background: var(--fw-teal-300); color: var(--fw-navy); }
.nav-signin { display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; color: var(--fw-navy); background: transparent; border: 1.5px solid var(--fw-teal); font-weight: 700; }
.nav-signin:hover { background: var(--fw-teal); color: #fff; }
html[data-theme="dark"] .nav-signin { color: #fff; }
@media (max-width: 900px) {
  /* the header's Get in touch hides on phones; Sign in stays, just before the menu button */
  .nav-signin { margin-left: auto; margin-right: 8px; padding: 7px 12px; }
  .tc-signin-btn { width: 100%; justify-content: center; }
}

/* ---------- The book: a 3D cover with page edges and spine ---------- */
.tc-book-wrap { display: none; }
@media (min-width: 1180px) {
  .tc-book-wrap { display: block; position: absolute; z-index: 2; top: 128px; right: max(32px, calc((100vw - 1320px) / 2 + 40px)); width: 300px; height: 410px; perspective: 1400px; pointer-events: none; }
}
.tc-book { --w: 300px; --h: 410px; --t: 38px; position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(7deg); }
.tc-book > div { position: absolute; backface-visibility: hidden; }
.tc-book-cover { inset: 0; transform: translateZ(calc(var(--t) / 2)); border-radius: 4px 10px 10px 4px; overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 38%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px),
    linear-gradient(165deg, #12307c 0%, var(--fw-navy) 55%, var(--fw-navy-900) 100%);
  box-shadow: inset 6px 0 10px -6px rgba(0, 0, 0, 0.5), 0 40px 80px -30px rgba(0, 0, 0, 0.65);
  display: flex; flex-direction: column; padding: 30px 28px; color: #fff; }
.tc-book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.06)); }
.tc-book-mark { font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: 0.16em; }
.tc-book-mark b { color: var(--fw-teal); font-weight: 500; }
.tc-book-kicker { margin-top: auto; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--fw-teal-300); }
.tc-book-title { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: 38px; line-height: 0.92; margin: 10px 0 0; }
.tc-book-title span { color: var(--fw-teal); }
.tc-book-rule { width: 56px; height: 3px; background: var(--fw-teal); margin: 18px 0 14px; }
.tc-book-sub { font-family: var(--font-body); font-size: 11.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.7); }
.tc-book-back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: var(--fw-navy-900); border-radius: 10px 4px 4px 10px; }
.tc-book-pages { width: var(--t); top: 5px; bottom: 5px; left: calc(var(--w) - var(--t) / 2 - 3px); transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f6f3ec 0 2px, #d8d2c4 2px 3px); }
.tc-book-top { height: var(--t); left: 4px; right: 6px; top: calc(var(--t) / -2 + 4px); transform: rotateX(90deg);
  background: repeating-linear-gradient(0deg, #f6f3ec 0 2px, #d8d2c4 2px 3px); }
.tc-book-spine { width: var(--t); top: 0; bottom: 0; left: calc(var(--t) / -2); transform: rotateY(-90deg); background: linear-gradient(90deg, var(--fw-navy-900), #0c2063); border-radius: 4px 0 0 4px;
  display: flex; align-items: center; justify-content: center; }
.tc-book-spine span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.82); }
.tc-book-shadow { position: absolute; left: 8%; right: 0; bottom: -46px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), transparent); filter: blur(6px); }
/* law references drifting around the book at different depths */
.tc-chip { position: absolute; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: #fff; padding: 9px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tc-chip i { font-style: normal; color: var(--fw-teal-300); margin-right: 8px; }
.tc-chip.c1 { left: -236px; top: 22px; }
.tc-chip.c2 { left: -128px; top: 304px; }
.tc-chip.c3 { right: -24px; bottom: -34px; }

/* ---------- Reading progress (top edge) ---------- */
.tc-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 200; pointer-events: none; background: var(--fw-teal); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Ghost words: the section label, huge and outlined, drifting behind ---------- */
/* clip (not hidden): crops the ghost words without breaking the sticky split headings */
.tc-section, .faq-section { position: relative; overflow: clip; }
.tc-section > .container, .faq-section > .container { position: relative; z-index: 1; }
.tc-ghost { position: absolute; z-index: 0; right: -2vw; bottom: -0.12em; pointer-events: none; white-space: nowrap; user-select: none;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: clamp(110px, 17vw, 260px); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px var(--border-1); opacity: 0.9; }
html[data-theme="dark"] .tc-ghost { -webkit-text-stroke-color: rgba(255, 255, 255, 0.08); }

/* ---------- Motion hooks (only once compendium-motion.js has started) ---------- */
/* the headline reveal belongs to compendium-motion.js (line by line), not the site-wide entry fade */
.tcm .tc-hero h1 { opacity: 1; transform: none; transition: none; }
@media (min-width: 761px) {
  /* split sections: the heading stays in view while the copy scrolls past it */
  .tcm .tc-split > div:first-child { position: sticky; top: 112px; }
}
/* chapter parts: the teal rule draws in */
.tcm .tc-part h3 { border-bottom-color: transparent; background: linear-gradient(var(--fw-teal), var(--fw-teal)) left bottom / var(--rule, 100%) 2px no-repeat; }
/* Contents scroll-spy (desktop, built by compendium-motion.js): heading + live status on the left,
   the chapter list on the right lighting up chapter by chapter */
.tc-spy-on > .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.tc-spy-col { position: sticky; top: 112px; }
.tc-spy-on .tc-toc { grid-template-columns: 1fr; gap: 44px; margin-top: 8px; }
.tc-spy { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border-1); }
.tc-spy-tag { font-size: 12px; letter-spacing: 0.16em; color: var(--fw-teal); }
.tc-spy-title { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; color: var(--fw-navy); font-size: clamp(40px, 4.4vw, 64px); line-height: 0.92; margin: 10px 0 0; min-height: 1.84em; }
html[data-theme="dark"] .tc-spy-title { color: #fff; }
.tc-spy-count { margin-top: 26px; font-size: 12px; letter-spacing: 0.16em; color: var(--fg-3); }
.tc-spy-count b { font-family: var(--font-display); font-weight: 500; font-size: 40px; letter-spacing: 0; color: var(--fw-navy); vertical-align: -0.12em; margin: 0 4px; }
html[data-theme="dark"] .tc-spy-count b { color: #fff; }
.tc-spy-bar { position: relative; height: 3px; margin-top: 14px; background: var(--border-1); overflow: hidden; }
.tc-spy-bar i { position: absolute; inset: 0; background: var(--fw-teal); transform-origin: 0 50%; transform: scaleX(0); }
.tc-spy-parts { display: flex; gap: 6px; margin-top: 18px; }
.tc-spy-parts button { appearance: none; cursor: pointer; flex: 1; padding: 8px 0; border: 1px solid var(--border-1); border-radius: 6px; background: transparent;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--fg-3); transition: background 220ms var(--ease-standard), color 220ms var(--ease-standard), border-color 220ms var(--ease-standard); }
.tc-spy-parts button:hover { border-color: var(--fw-teal); color: var(--fw-teal); }
.tc-spy-parts button.is-done { color: var(--fw-teal); border-color: rgba(0, 168, 156, 0.35); }
.tc-spy-parts button.is-on { background: var(--fw-teal); border-color: var(--fw-teal); color: #fff; }
.tc-spy-on .tc-part li { opacity: 0.42; transition: opacity 260ms var(--ease-standard), color 260ms var(--ease-standard), transform 260ms var(--ease-standard), background 260ms var(--ease-standard); }
.tc-spy-on .tc-part li.is-read { opacity: 0.7; }
.tc-spy-on .tc-part li.is-lit { opacity: 1; color: var(--fw-teal); transform: translateX(10px); font-weight: 600; }
.tc-spy-on .tc-part li.is-lit::marker { color: var(--fw-teal); }

/* Contents pin mode (≥1000×700): a 100vh stage over the 3D landmark gulf (compendium-landmarks.js) */
.tc-spy-pin { height: 100vh; padding: 0; display: flex; align-items: center; border-bottom: 0;
  background: linear-gradient(180deg, #8fc6ef 0%, #cfe6f6 46%, #f3e2c6 62%, #5fb7dd 63%, #2f8fcf 100%); }
.tc-spy-pin > .container { width: 100%; padding-top: 72px; }
.tc-spy-pin .tc-ghost { display: none; }
.tc-world { position: absolute; inset: 0; z-index: 0; }
.tc-world canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity 1.2s var(--ease-standard); }
.tc-world.is-ready canvas { opacity: 1; }
/* legibility: the scene softens under the heading column, stays vivid in the middle */
.tc-world::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg-1) 88%, transparent) 0%, color-mix(in srgb, var(--bg-1) 62%, transparent) 22%, transparent 36%); }
/* three zones: heading column | the landmark, centre stage | the chapter window */
.tc-spy-pin.tc-spy-on > .container { grid-template-columns: minmax(0, 340px) minmax(0, 1fr) minmax(0, 460px); column-gap: 32px; }
.tc-spy-pin .tc-spy-col { position: relative; top: auto; grid-column: 1; grid-row: 1; }
.tc-spy-pin .tc-spy-window { grid-column: 3; grid-row: 1; }
.tc-spy-pin .tc-spy-title { font-size: clamp(34px, 3.4vw, 52px); }
.tc-spy-pin .tc-spy-parts button { background: color-mix(in srgb, var(--bg-1) 70%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tc-spy-pin .tc-spy-parts button.is-on { background: var(--fw-teal); color: #fff; }
.tc-spy-pin .tc-spy { border-top-color: color-mix(in srgb, var(--fw-navy) 18%, transparent); }
.tc-spy-window { position: relative; height: calc(100vh - 168px); border-radius: 18px; overflow: hidden;
  background: color-mix(in srgb, var(--bg-1) 80%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid color-mix(in srgb, #fff 55%, transparent); box-shadow: 0 30px 60px -30px rgba(8, 23, 68, 0.45); }
/* the reading marker (positioned by compendium-motion.js): it travels with the lit chapter */
.tc-spy-line { position: absolute; left: 0; top: 0; width: 4px; height: 30px; margin-top: -15px; background: var(--fw-teal); border-radius: 0 3px 3px 0; z-index: 2; will-change: transform; }
.tc-spy-mask { height: 100%; padding: 0 30px 0 34px; -webkit-mask-image: linear-gradient(transparent 0%, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(transparent 0%, #000 5%, #000 95%, transparent 100%); }
.tc-spy-pin .tc-toc { position: relative; margin: 0; will-change: transform; }
html[data-theme="dark"] .tc-spy-window { border-color: rgba(255, 255, 255, 0.12); }

/* subscription steps: a line that draws itself through the numbered circles */
.tcm .tc-steps { position: relative; }
.tcm .tc-steps::before { content: ""; position: absolute; left: 17px; top: 20px; bottom: 44px; width: 2px; background: var(--border-1); }
.tcm .tc-steps::after { content: ""; position: absolute; left: 17px; top: 20px; bottom: 44px; width: 2px; background: var(--fw-teal); transform-origin: 50% 0; transform: scaleY(var(--steps, 0)); }
.tcm .tc-steps li::before { z-index: 1; }
/* cards: a little depth for the pointer tilt */
.tcm .tc-grid, .tcm .tc-plans { perspective: 1200px; }
.tcm .tc-card, .tcm .tc-plan { transform-style: preserve-3d; will-change: transform; transition: box-shadow 240ms var(--ease-standard), border-color 240ms var(--ease-standard); }
.tcm .tc-card:hover, .tcm .tc-plan:hover { box-shadow: var(--shadow-3, 0 24px 48px -24px rgba(14, 35, 94, 0.35)); border-color: rgba(0, 168, 156, 0.45); }

@media (max-width: 760px) {
  .page-hero.tc-hero { padding: 88px 0 56px; }
  .tc-ghost { font-size: 34vw; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-progress { display: none; }
}

/* ---------- What's inside: navy bento over a layered parallax backdrop ----------
   The backdrop's layers (glow orbs, a grid, two depths of legal glyphs) are moved by
   compendium-motion.js at different speeds as the section scrolls; without JS or with
   reduced motion they simply sit still. */
.tc-section.tc-inside { position: relative; overflow: clip; isolation: isolate; border-bottom: 0; color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, #17398a 0%, var(--fw-navy) 48%, var(--fw-navy-900) 100%); }
.tc-inside .container { position: relative; z-index: 1; }
.tc-inside .eb { color: var(--fw-teal-300); }
.tc-inside .tc-h2 { color: #fff; }
.tc-inside .tc-ghost { -webkit-text-stroke-color: rgba(255, 255, 255, 0.07); }
.tc-inside-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tib-layer { position: absolute; left: -6%; right: -6%; top: -35%; bottom: -35%; will-change: transform; }
.tib-orbs i { position: absolute; border-radius: 50%; filter: blur(50px); }
.tib-orbs .o1 { width: 52vw; height: 52vw; left: -14vw; top: 12%; background: radial-gradient(circle, rgba(0, 168, 156, 0.5), transparent 64%); }
.tib-orbs .o2 { width: 42vw; height: 42vw; right: -10vw; top: 40%; background: radial-gradient(circle, rgba(92, 120, 255, 0.42), transparent 64%); }
.tib-orbs .o3 { width: 34vw; height: 34vw; left: 34%; bottom: 4%; background: radial-gradient(circle, rgba(0, 153, 102, 0.34), transparent 64%); }
.tib-grid { background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, #000 25%, transparent 78%); }
.tib-glyphs span { position: absolute; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; line-height: 1; white-space: nowrap;
  color: rgba(255, 255, 255, 0.055); font-size: clamp(44px, 7vw, 124px); }
.tib-near span { color: transparent; -webkit-text-stroke: 1.5px rgba(94, 234, 212, 0.2); font-size: clamp(80px, 13vw, 230px); }

.tc-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; margin-top: 48px; perspective: 1400px; }
.tc-b { position: relative; display: flex; flex-direction: column; grid-column: span 4; padding: 28px; border-radius: 20px; overflow: hidden; transform-style: preserve-3d; --mx: 50%; --my: 0%;
  background: linear-gradient(160deg, rgba(23, 52, 128, 0.82), rgba(10, 26, 72, 0.78)); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6); }
.tc-b > * { position: relative; z-index: 1; }
.tc-b::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(94, 234, 212, 0.14), transparent 45%); }
.tc-b::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(94, 234, 212, 0.85), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tc-b:hover::before, .tc-b:hover::after { opacity: 1; }
.b-3 { grid-column: span 3; } .b-4 { grid-column: span 4; } .b-5 { grid-column: span 5; } .b-7 { grid-column: span 7; } .b-8 { grid-column: span 8; }
.r-2 { grid-row: span 2; }
.tc-b h3 { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; color: #fff; font-size: 22px; line-height: 1.05; margin: 0 0 12px; }
.tc-b p { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.74); }
.tc-b-num { display: block; margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: clamp(64px, 7vw, 112px); line-height: 0.82; letter-spacing: -0.02em;
  color: var(--fw-teal-300); font-variant-numeric: tabular-nums; }
.tc-b-num-side { position: absolute; top: 18px; right: 22px; margin: 0; font-size: clamp(54px, 5vw, 84px); color: rgba(94, 234, 212, 0.22); }
.tc-b-num-side + h3 { padding-right: clamp(90px, 9vw, 150px); }
.tc-b-glyph { position: absolute !important; z-index: 0 !important; right: -8px; bottom: -42px; font-family: var(--font-display); font-size: 260px; line-height: 1;
  color: rgba(255, 255, 255, 0.05); pointer-events: none; user-select: none; }
.b-ar { background: linear-gradient(160deg, rgba(0, 168, 156, 0.42), rgba(8, 60, 90, 0.85)); border-color: rgba(94, 234, 212, 0.4); }
.b-ar .tc-ar-h { color: var(--fw-teal-300); }
.b-ar .tc-b-glyph { font-family: "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif; color: rgba(255, 255, 255, 0.08); bottom: -60px; }
.tc-inside .tc-ar-audit { border-top-color: rgba(94, 234, 212, 0.3); color: rgba(255, 255, 255, 0.82); }

.tc-b-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.tc-b-chips li { margin: 0; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-body); font-size: 13.5px; line-height: 1.3; color: #fff; transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.tc-b-chips li:hover { background: rgba(0, 168, 156, 0.25); border-color: rgba(94, 234, 212, 0.6); transform: translateY(-2px); }

.tc-b-parts { display: flex; gap: 5px; margin-top: 18px; }
.tc-b-parts i { flex: 1; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--fw-teal), var(--fw-teal-300)); transform-origin: left; }
.tc-b-redline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.22);
  font-family: var(--font-mono); font-size: 12.5px; color: rgba(255, 255, 255, 0.85); }
.tc-b-redline del { color: #f7aca2; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / var(--strike, 100%) 1.5px; }
.tc-b-redline ins { color: #93e6c1; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / var(--under, 100%) 2px; }
.tc-b-asat { margin-left: auto; color: rgba(255, 255, 255, 0.6); }
.tc-b-asat b { color: var(--fw-teal-300); font-weight: 600; }
.tc-b-try { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 9px 16px; border-radius: 999px; background: var(--fw-teal); color: #fff;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.tc-b-try::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid var(--fw-teal); animation: tcbPulse 2.2s ease-out infinite; }
@keyframes tcbPulse { 0% { opacity: 0.85; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22); } }
.tc-b-mods { display: flex; gap: 8px; margin-top: 18px; }
.tc-b-mods span { flex: 1; position: relative; padding-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.6); }
.tc-b-mods span::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.tc-b-mods i { position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 3px; background: var(--fw-teal-300); transform-origin: left; }
.tc-b-stats { display: flex; gap: 24px; margin-top: 18px; }
.tc-b-stats span { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.tc-b-stats b { font-family: var(--font-display); font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: 0; color: #fff; }
.tc-b-ping { position: absolute !important; top: 24px; right: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--fw-teal-300); }
.tc-b-ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--fw-teal-300); animation: tcbPing 1.8s ease-out infinite; }
@keyframes tcbPing { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3.2); opacity: 0; } }

.tc-b-calc { margin-top: auto; padding: 16px 18px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--font-body); font-size: 14px; }
.tc-b-chips:has(+ .tc-b-calc) { margin-bottom: 22px; }
.tc-b-calc > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: rgba(255, 255, 255, 0.7); border-bottom: 1px dashed rgba(255, 255, 255, 0.1); }
.tc-b-calc > div:last-child { border-bottom: 0; }
.tc-b-calc b { font-family: var(--font-mono); font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.tc-b-calc .tc-b-calc-h { display: block; padding: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fw-teal-300); }
.tc-b-calc .tc-b-calc-h em { font-style: normal; color: rgba(255, 255, 255, 0.45); margin-left: 6px; }
.tc-b-calc .tot { margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(94, 234, 212, 0.4); color: #fff; font-weight: 600; }
.tc-b-calc .tot b { color: var(--fw-teal-300); font-size: 17px; }@media (max-width: 1100px) {
  .tc-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .b-3, .b-4, .b-5 { grid-column: span 3; }
  .b-7, .b-8 { grid-column: span 6; }
  .r-2 { grid-row: auto; }
}
@media (max-width: 760px) {
  .tc-bento { grid-template-columns: 1fr; gap: 14px; }
  .tc-b { grid-column: auto !important; padding: 24px; }
  .tib-near { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-b-try::after, .tc-b-ping::after { animation: none; }
}
