:root {
  --navy: #0c2b4e;
  --navy-deep: #081d34;
  --teal: #0b6865;
  --gold: #bb9860;
  --gold-soft: #d6bf95;
  --ink: #18232f;
  --muted: #66717d;
  --line: #dfe3e3;
  --warm: #f6f5f1;
  --white: #ffffff;
  --danger: #9c3e35;
  --shadow: 0 22px 55px rgba(8, 29, 52, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--white); font-family: 'DM Sans', 'IBM Plex Sans Arabic', Arial, sans-serif; font-size: 16px; line-height: 1.65; }
[dir="rtl"] body { font-family: 'IBM Plex Sans Arabic', 'DM Sans', Arial, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
input, textarea, select { width: 100%; border: 1px solid #c8d0d2; border-radius: 4px; color: var(--ink); background: #fff; padding: .75rem .85rem; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 104, 101, .13); }
textarea { min-height: 120px; resize: vertical; }
input:disabled { color: #879096; background: #f2f3f3; }
label { display: grid; gap: .38rem; color: #34404a; font-size: .88rem; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.08; letter-spacing: -.035em; }
[dir="rtl"] h1, [dir="rtl"] h2 { font-family: 'IBM Plex Sans Arabic', Arial, sans-serif; line-height: 1.35; letter-spacing: 0; }
h1 { font-size: clamp(2.8rem, 5.8vw, 5.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.65rem); }
h3 { font-size: 1.24rem; line-height: 1.27; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; inset: 8px auto auto 8px; padding: .5rem .8rem; color: #fff; background: var(--navy); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin-bottom: .85rem; color: var(--teal); font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow--light { color: var(--gold-soft); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; border: 1px solid transparent; border-radius: 3px; padding: .7rem 1.13rem; font-size: .87rem; font-weight: 700; line-height: 1.2; text-align: center; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button--small { min-height: 38px; padding: .53rem .82rem; font-size: .77rem; }
.button--wide { width: 100%; }
.button--gold { color: #1b2530; background: var(--gold); }
.button--gold:hover { background: #d0b177; }
.button--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.button--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.button--outline { color: var(--navy); border-color: var(--navy); }
.button--outline:hover { color: #fff; background: var(--navy); }
.button--dark { color: #fff; background: var(--navy); }
.button--dark:hover { background: var(--teal); }
.text-link { display: inline-flex; gap: .45rem; align-items: center; color: var(--navy); font-size: .88rem; font-weight: 700; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
[dir="rtl"] .text-link:hover span { transform: translateX(-4px); }
.fine-print { margin: .8rem 0 0; color: var(--muted); font-size: .73rem; line-height: 1.5; }

.site-header { position: sticky; z-index: 20; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid #eceeec; backdrop-filter: blur(14px); }
.header-inner { display: grid; grid-template-columns: 200px 1fr auto; align-items: center; min-height: 78px; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; width: 180px; }
.brand img { width: 100%; height: 51px; object-fit: contain; object-position: left center; }
[dir="rtl"] .brand img { object-position: right center; }
.primary-nav { display: flex; justify-content: center; gap: clamp(.8rem, 1.8vw, 1.8rem); }
.primary-nav a { position: relative; padding: .6rem 0; color: #45505c; font-size: .77rem; font-weight: 600; white-space: nowrap; }
.primary-nav a::after { position: absolute; content: ''; right: 0; bottom: .22rem; left: 0; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--navy); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.language-toggle { color: var(--navy); font-size: .75rem; font-weight: 700; }
.icon-link { display: inline-flex; align-items: center; gap: .35rem; color: #394550; font-size: .73rem; font-weight: 700; }
.icon-link span { display: grid; width: 20px; height: 20px; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; font-size: .65rem; }
.menu-button { display: none; width: 42px; border: 0; background: transparent; padding: 8px; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--navy); }

.flash-stack { position: fixed; z-index: 50; top: 92px; right: 24px; display: grid; gap: .5rem; width: min(380px, calc(100% - 48px)); }
[dir="rtl"] .flash-stack { right: auto; left: 24px; }
.flash { padding: .85rem 1rem; color: #fff; background: var(--navy); border-radius: 4px; box-shadow: var(--shadow); font-size: .85rem; }
.flash--error { background: var(--danger); }

.hero { overflow: hidden; color: #fff; background: var(--navy-deep); }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; min-height: 590px; padding: 4.5rem 0; }
.hero-copy h1 { max-width: 680px; margin-bottom: 1.45rem; }
.hero-lead { max-width: 560px; color: #d8e0e6; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { display: flex; align-items: center; gap: .75rem; margin-top: 3.4rem; color: #bbc9d1; font-size: .78rem; }
.hero-note span { width: 28px; height: 1px; background: var(--gold); }
.hero-visual { position: relative; justify-self: end; width: min(100%, 545px); padding-bottom: 2.6rem; }
.hero-visual > img { width: 100%; height: 442px; object-fit: cover; filter: saturate(.73) contrast(1.05); }
.hero-visual::after { position: absolute; z-index: 0; top: -19px; right: -19px; width: 70%; height: 72%; border: 1px solid rgba(214,191,149,.8); content: ''; }
[dir="rtl"] .hero-visual::after { right: auto; left: -19px; }
.hero-card { position: absolute; z-index: 1; bottom: 0; left: -48px; max-width: 310px; padding: 1.6rem 1.55rem; color: var(--navy); background: #f5f2eb; box-shadow: 0 18px 38px rgba(0,0,0,.25); }
[dir="rtl"] .hero-card { right: -48px; left: auto; }
.hero-card__mark { display: block; margin-bottom: .6rem; color: var(--teal); font-size: 1.4rem; }
.hero-card p { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.12rem; line-height: 1.38; }
[dir="rtl"] .hero-card p { font-family: 'IBM Plex Sans Arabic', Arial, sans-serif; }
.pillar-strip { color: #e4e8e9; background: #112c45; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillars > div { display: grid; grid-template-columns: 31px 1fr; align-items: center; min-height: 92px; gap: .6rem; padding: 1rem 1.3rem; border-right: 1px solid rgba(255,255,255,.13); }
[dir="rtl"] .pillars > div { border-right: 0; border-left: 1px solid rgba(255,255,255,.13); }
.pillars > div:first-child { border-left: 1px solid rgba(255,255,255,.13); }
[dir="rtl"] .pillars > div:first-child { border-right: 1px solid rgba(255,255,255,.13); border-left: 0; }
.pillars span { color: var(--gold-soft); font-size: .69rem; }
.pillars strong { font-size: .78rem; font-weight: 600; }

.section { padding: clamp(4rem, 8vw, 8rem) 0; }
.section--warm { background: var(--warm); }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2.6rem; }
.section-heading h2 { max-width: 610px; margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.product-grid--four { grid-template-columns: repeat(4, 1fr); }
.product-card { position: relative; display: flex; min-height: 300px; flex-direction: column; overflow: hidden; padding: 1.7rem; border: 1px solid #e1e4e3; background: #fff; transition: transform .25s, box-shadow .25s; }
.product-card::before { position: absolute; top: 0; right: 0; width: 76px; height: 76px; content: ''; clip-path: polygon(100% 0, 0 0, 100% 100%); opacity: .14; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.product-card--navy::before { background: var(--navy); }
.product-card--teal::before { background: var(--teal); }
.product-card--gold::before { background: var(--gold); }
.product-card__tag { align-self: flex-start; margin-bottom: 1.5rem; color: var(--muted); font-size: .63rem; letter-spacing: .08em; }
.product-card h3 { max-width: 250px; margin-bottom: .65rem; color: var(--navy); }
.product-card > p:not(.eyebrow) { color: var(--muted); font-size: .86rem; line-height: 1.58; }
.product-card__meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: auto; color: #64717a; font-size: .7rem; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: 1.15rem; margin-top: .85rem; border-top: 1px solid #eaeded; }
.product-card__footer strong { color: var(--navy); font-size: 1rem; }
.split-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 10vw, 9rem); }
.split-feature__image { position: relative; }
.split-feature__image::before { position: absolute; z-index: -1; top: 30px; right: -28px; bottom: -30px; left: 30px; content: ''; background: #e9efee; }
[dir="rtl"] .split-feature__image::before { right: 30px; left: -28px; }
.split-feature__image img { width: 100%; height: 440px; object-fit: cover; filter: saturate(.72); }
.split-feature__copy { max-width: 500px; }
.split-feature__copy h2 { margin-bottom: 1.25rem; }
.split-feature__copy > p:not(.eyebrow) { margin-bottom: 1.8rem; color: var(--muted); }
.newsletter-band { padding: 3.1rem 0; color: #fff; background: var(--teal); }
.newsletter-layout { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.newsletter-layout .eyebrow { margin-bottom: .4rem; }
.newsletter-layout h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.newsletter-form, .interest-form { display: flex; gap: .55rem; min-width: min(100%, 435px); }
.newsletter-form input, .interest-form input { border: 0; }

.page-intro { padding: clamp(4rem, 8vw, 8.1rem) 0 clamp(3rem, 5vw, 4.8rem); color: #fff; background: var(--navy); }
.page-intro h1 { max-width: 850px; margin-bottom: 1rem; }
.page-intro p:not(.eyebrow) { max-width: 620px; margin: 0; color: #dbe4e8; font-size: 1.06rem; }
.page-intro--compact { padding: 4.2rem 0 3.5rem; }
.page-intro--compact h1 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.7rem); }
.store-toolbar { display: flex; justify-content: space-between; gap: 1.4rem; align-items: center; margin-bottom: 2rem; }
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-pills button { border: 1px solid #d7dddd; border-radius: 50px; padding: .48rem .8rem; color: #56616a; background: #fff; font-size: .73rem; }
.filter-pills button.is-active, .filter-pills button:hover { color: #fff; border-color: var(--navy); background: var(--navy); }
.store-search { width: min(100%, 230px); }
.store-search input { padding: .55rem .75rem; font-size: .77rem; }

.product-detail { padding: clamp(3rem, 7vw, 7rem) 0; background: #f7f7f5; }
.product-detail__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.product-detail__visual { position: sticky; top: 110px; min-height: 490px; padding: 2.2rem; overflow: hidden; border: 1px solid #dce1df; background: #fff; }
.product-detail__visual::before { position: absolute; right: 0; bottom: 0; left: 0; height: 42%; content: ''; background: var(--navy); }
.product-detail__visual .eyebrow, .product-detail__visual > p:last-child { position: relative; z-index: 1; }
.product-detail__visual > p:last-child { position: absolute; bottom: 1.4rem; color: #d5e0e5; font-size: .75rem; }
.document-stack { position: relative; z-index: 1; width: 65%; height: 260px; margin: 3.5rem auto 0; }
.document-stack span { position: absolute; display: block; width: 100%; height: 220px; border: 1px solid #d7dddd; background: #fff; box-shadow: 0 12px 22px rgba(0,0,0,.13); }
.document-stack span:nth-child(1) { top: 20px; left: -20px; transform: rotate(-5deg); }
.document-stack span:nth-child(2) { top: 12px; right: -15px; transform: rotate(5deg); }
.document-stack span:nth-child(3) { display: grid; top: 0; place-items: center; color: #fff; background: var(--teal); }
.document-stack b { display: grid; width: 74px; height: 74px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-family: 'Playfair Display', Georgia, serif; font-size: 2.6rem; }
.back-link { display: inline-flex; margin-bottom: 2.1rem; color: var(--muted); font-size: .8rem; }
.product-detail__copy h1 { max-width: 670px; color: var(--navy); font-size: clamp(2.4rem, 4.4vw, 4.8rem); }
.product-detail__lead { max-width: 670px; color: var(--muted); font-size: 1.04rem; }
.detail-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.6rem 0; margin: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-list div { display: grid; gap: .3rem; }
.detail-list span { color: var(--muted); font-size: .7rem; }
.detail-list strong { color: var(--navy); font-size: .85rem; }
.purchase-box { padding: 1.25rem; border: 1px solid #d6dddd; background: #fff; }
.purchase-box > div { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.purchase-box span { color: var(--muted); font-size: .74rem; }
.purchase-box strong { color: var(--navy); font-size: 1.4rem; }
.purchase-box > p { margin: .7rem 0 0; color: var(--muted); font-size: .72rem; text-align: center; }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.4fr .7fr; gap: 2rem; align-items: start; }
.cart-list { border-top: 1px solid var(--line); }
.cart-item { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.cart-item h3 { margin: .1rem 0 .35rem; color: var(--navy); }
.cart-item p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .78rem; }
.cart-item__side { display: grid; align-content: space-between; justify-items: end; gap: .7rem; min-width: 90px; }
.cart-item__side strong { color: var(--navy); }
.link-button { border: 0; padding: 0; color: var(--danger); background: transparent; font-size: .73rem; }
.order-summary { position: sticky; top: 104px; padding: 1.45rem; border: 1px solid #dce1df; background: #f7f8f7; }
.order-summary > div { display: flex; justify-content: space-between; gap: 1rem; margin: .8rem 0; color: var(--muted); font-size: .84rem; }
.order-summary > div strong { color: var(--ink); }
.order-summary hr { border: 0; border-top: 1px solid var(--line); }
.order-summary .order-summary__total { align-items: center; color: var(--navy); font-size: .95rem; }
.order-summary__total strong { font-size: 1.3rem; }
.order-summary .button { margin-top: 1rem; }
.empty-state, .success-card { grid-column: 1 / -1; max-width: 680px; padding: 3rem; margin: 0 auto; text-align: center; border: 1px solid #dfe5e4; background: #f8f9f8; }
.empty-state h2, .success-card h2 { color: var(--navy); }
.empty-state p, .success-card p:not(.eyebrow) { color: var(--muted); }
.success-icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 1.2rem; color: #fff; background: var(--teal); border-radius: 50%; font-size: 1.5rem; }
.order-number { color: var(--navy) !important; font-size: .82rem; font-weight: 700; letter-spacing: .08em; }
.checkout-card { max-width: 710px; padding: clamp(1.4rem, 4vw, 3rem); margin: 0 auto; border: 1px solid #dce1df; background: #f9f9f8; }
.checkout-card > div:first-child { padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.checkout-card h2 { margin: .55rem 0 .75rem; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.checkout-card p { color: var(--muted); }
.test-badge { display: inline-flex; border: 1px solid var(--gold); padding: .2rem .45rem; color: #7d633b; font-size: .63rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.checkout-card form { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

.viewer-shell { min-height: calc(100vh - 78px); padding: 1.5rem; background: #d8dddd; }
.viewer-topbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; max-width: 900px; margin: 0 auto 1rem; color: #55606a; font-size: .75rem; }
.viewer-topbar a { color: var(--navy); font-weight: 700; }
.viewer-document { position: relative; max-width: 900px; min-height: 920px; padding: clamp(2.2rem, 8vw, 7rem); margin: 0 auto; overflow: hidden; color: #25313b; background: #fff; box-shadow: 0 5px 22px rgba(12, 43, 78, .15); user-select: none; }
.viewer-document header { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.viewer-document h1 { margin-bottom: 1.1rem; color: var(--navy); font-size: clamp(2rem, 4vw, 3.8rem); }
.viewer-document h2 { margin: 2rem 0 .8rem; color: var(--navy); font-family: 'DM Sans', 'IBM Plex Sans Arabic', Arial, sans-serif; font-size: 1.25rem; letter-spacing: 0; }
.viewer-document p, .viewer-document li { max-width: 650px; color: #52606a; }
.viewer-document li { margin-bottom: .55rem; }
.viewer-callout { margin-top: 2rem; padding: 1.2rem; border-left: 3px solid var(--gold); background: #f7f4ee; }
[dir="rtl"] .viewer-callout { border-right: 3px solid var(--gold); border-left: 0; }
.viewer-callout p { margin: .35rem 0 0; }
.viewer-watermark { position: fixed; z-index: 30; top: 49%; left: 50%; width: 150vw; color: rgba(12, 43, 78, .13); font-size: 1.35rem; font-weight: 700; letter-spacing: .11em; pointer-events: none; text-align: center; transform: translate(-50%, -50%) rotate(-31deg); user-select: none; }
.viewer-message { max-width: 600px; padding: 3rem; margin: 10vh auto; text-align: center; background: #fff; box-shadow: var(--shadow); }
.viewer-message h1 { color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); }
.viewer-message p { color: var(--muted); }
@media print { .site-header, .site-footer, .viewer-topbar, .viewer-watermark { display: none !important; } .protected-view .viewer-document { display: none !important; } }

.service-hero, .platform-hero { color: #fff; background: var(--navy-deep); }
.service-hero__grid { display: grid; grid-template-columns: 1fr .9fr; min-height: 520px; gap: 4rem; align-items: center; padding: 4.5rem 0; }
.service-hero h1 { margin-bottom: 1.25rem; }
.service-hero p:not(.eyebrow) { max-width: 630px; color: #d5dfe4; font-size: 1.05rem; }
.service-hero__image { position: relative; }
.service-hero__image::after { position: absolute; top: -17px; right: -17px; width: 60%; height: 50%; border: 1px solid var(--gold); content: ''; }
[dir="rtl"] .service-hero__image::after { right: auto; left: -17px; }
.service-hero__image img { width: 100%; height: 370px; object-fit: cover; filter: saturate(.7); }
.service-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 9vw, 9rem); align-items: start; }
.service-list h2 { max-width: 500px; color: var(--navy); }
.service-list ul { display: grid; gap: .7rem; padding: 0; margin: 1.8rem 0 0; list-style: none; }
.service-list li { display: flex; gap: .7rem; align-items: start; padding-bottom: .7rem; border-bottom: 1px solid var(--line); color: #45515b; }
.service-list li::before { color: var(--teal); content: '—'; }
.contact-form { display: grid; gap: .9rem; padding: clamp(1.35rem, 3vw, 2.4rem); background: var(--warm); border-top: 3px solid var(--teal); }
.contact-form h2 { margin: -.3rem 0 .75rem; color: var(--navy); font-size: clamp(1.65rem, 3vw, 2.45rem); }
.platform-hero { min-height: 620px; padding: clamp(5rem, 11vw, 10rem) 0; background-image: radial-gradient(circle at 80% 5%, rgba(11,104,101,.8), transparent 34%), linear-gradient(120deg, var(--navy-deep), var(--navy)); }
.platform-hero h1 { max-width: 920px; margin-bottom: 1rem; }
.platform-hero p:not(.eyebrow) { max-width: 645px; color: #d8e0e6; font-size: 1.07rem; }
.interest-form { margin-top: 2rem; }

.prose-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(2rem, 12vw, 11rem); }
.prose-grid h2 { color: var(--navy); }
.prose-grid p { max-width: 720px; color: #4d5963; font-size: 1.05rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; padding-top: 1.6rem; margin-top: 2rem; border-top: 1px solid var(--line); }
.values > div { display: grid; gap: .35rem; }
.values span { color: var(--gold); font-size: .68rem; }
.values strong { color: var(--navy); font-size: .84rem; }
.faq-list { max-width: 860px; }
.faq-list details { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 1.2rem; cursor: pointer; color: var(--navy); font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--teal); font-size: 1.2rem; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { max-width: 720px; margin: 1rem 0 .2rem; color: var(--muted); font-size: .9rem; }
.contact-page { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 10vw, 10rem); align-items: start; }
.contact-details h2 { color: var(--navy); }
.contact-details > p { color: var(--muted); }
.contact-details dl { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-details dl > div { display: grid; gap: .2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact-details dt { color: var(--teal); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-details dd { margin: 0; color: #3f4d57; font-size: .92rem; }
.contact-details dd a { text-decoration: underline; }
.account-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; max-width: 940px; margin: 0 auto; border: 1px solid #dfe4e3; }
.account-panel { padding: clamp(1.8rem, 4vw, 3.4rem); background: #fff; }
.account-panel h2 { color: var(--navy); }
.account-panel form { display: grid; gap: 1rem; }
.divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: .7rem; align-items: center; margin: 1.5rem 0; color: var(--muted); font-size: .7rem; }
.divider::before, .divider::after { height: 1px; content: ''; background: var(--line); }
.google-button { display: flex; gap: .75rem; align-items: center; justify-content: center; min-height: 47px; border: 1px solid #ccd4d5; color: #35414c; font-size: .85rem; font-weight: 700; }
.google-button span { display: grid; width: 20px; height: 20px; place-items: center; color: #fff; background: #4285f4; border-radius: 50%; font-size: .75rem; }
.account-side { padding: clamp(1.8rem, 4vw, 3.4rem); color: #fff; background: var(--navy); }
.account-side h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.account-side p:not(.eyebrow) { color: #d7e1e5; }
.library { grid-column: 1 / -1; padding: clamp(1.8rem, 4vw, 3.4rem); }
.library-head { display: flex; justify-content: space-between; align-items: start; gap: 2rem; padding-bottom: 1.5rem; margin-bottom: .6rem; border-bottom: 1px solid var(--line); }
.library-head h2 { margin: 0; color: var(--navy); font-size: 2.1rem; }
.library-list { display: grid; }
.library-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.library-item h3 { margin: 0 0 .2rem; color: var(--navy); }
.library-item p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .78rem; }
.access-status { color: var(--muted); font-size: .75rem; font-weight: 700; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.role-card { padding: 1.5rem; border-top: 2px solid var(--teal); background: var(--warm); }
.role-card span { color: var(--gold); font-size: .72rem; }
.role-card h2 { margin: .7rem 0; color: var(--navy); font-size: 1.8rem; }
.role-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.legal-copy { max-width: 850px; }
.legal-copy h2 { color: var(--navy); }
.legal-copy p { color: #4d5963; }
.legal-note { padding: 1.1rem 1.2rem; margin-top: 1.6rem; border-left: 3px solid var(--gold); background: #f8f5ef; font-size: .84rem; }
[dir="rtl"] .legal-note { border-right: 3px solid var(--gold); border-left: 0; }

.dashboard-gate { display: grid; min-height: calc(100vh - 78px); place-items: center; padding: 4rem 24px; color: #fff; background: radial-gradient(circle at 75% 15%, rgba(11,104,101,.72), transparent 34%), var(--navy-deep); }
.dashboard-gate__panel { width: min(100%, 690px); padding: clamp(2rem, 6vw, 4.5rem); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.dashboard-gate h1 { margin-bottom: 1rem; }
.dashboard-gate p:not(.eyebrow) { max-width: 520px; color: #d5e0e5; }
.dashboard-gate form { display: inline-block; margin: 1rem .85rem 0 0; }
[dir="rtl"] .dashboard-gate form { margin-right: 0; margin-left: .85rem; }
.dashboard-gate .text-link { margin-top: 1rem; color: #fff; }
.dashboard-hero { color: #fff; background: var(--navy-deep); }
.dashboard-hero__inner { display: flex; justify-content: space-between; gap: 2rem; align-items: center; min-height: 240px; padding: 3rem 0; }
.dashboard-hero h1 { margin: 0 0 .65rem; font-size: clamp(2.5rem, 4.8vw, 4.35rem); }
.dashboard-hero p:not(.eyebrow) { margin: 0; color: #cfdae0; }
.dashboard-user { display: flex; gap: .8rem; align-items: center; min-width: 190px; padding: .8rem; background: rgba(255,255,255,.07); }
.dashboard-user > span { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; font-size: .85rem; font-weight: 700; }
.dashboard-user div { display: grid; }
.dashboard-user strong { font-size: .84rem; }
.dashboard-user small { color: var(--gold-soft); font-size: .69rem; }
.dashboard-shell { min-height: 720px; padding: 2.1rem 0 6rem; background: #f4f6f5; }
.dashboard-nav { display: flex; gap: .15rem; width: max-content; max-width: 100%; padding: .35rem; margin-bottom: 2.4rem; overflow-x: auto; border: 1px solid #dbe2e1; background: #fff; }
.dashboard-nav a { padding: .58rem .87rem; color: #65717a; border-radius: 2px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.dashboard-nav a:hover, .dashboard-nav a.is-active { color: #fff; background: var(--navy); }
.dashboard-quicklinks { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; padding: .8rem 0 1.6rem; }
.dashboard-quicklinks span { color: var(--teal); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.dashboard-quicklinks a { color: #52616b; font-size: .72rem; font-weight: 700; }
.dashboard-quicklinks a:hover { color: var(--teal); }
.dashboard-section-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 1.5rem; }
.dashboard-section-head .eyebrow { margin-bottom: .4rem; }
.dashboard-section-head h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.1rem); }
.dashboard-count { border: 1px solid #cad6d6; padding: .35rem .55rem; color: var(--teal); background: #fff; font-size: .72rem; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; margin-bottom: 1.4rem; }
.metric-grid article { display: grid; gap: .3rem; min-height: 148px; padding: 1.25rem; background: #fff; border-top: 3px solid var(--teal); box-shadow: 0 8px 18px rgba(12,43,78,.035); }
.metric-grid article:nth-child(2) { border-color: var(--gold); }
.metric-grid article:nth-child(3) { border-color: #597f96; }
.metric-grid article:nth-child(4) { border-color: #244d67; }
.metric-grid span { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.metric-grid strong { color: var(--navy); font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; line-height: 1.1; }
[dir="rtl"] .metric-grid strong { font-family: 'IBM Plex Sans Arabic', Arial, sans-serif; }
.metric-grid small { color: #859097; font-size: .67rem; line-height: 1.4; }
.dashboard-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.dashboard-two-col--wide { grid-template-columns: minmax(0, 1.5fr) minmax(300px, .72fr); }
.dashboard-panel { padding: clamp(1.2rem, 2.5vw, 1.8rem); background: #fff; border: 1px solid #e0e6e4; box-shadow: 0 8px 18px rgba(12,43,78,.025); }
.dashboard-panel--table { padding: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: 1.4rem; }
.dashboard-panel--table .panel-head { padding: 1.45rem 1.45rem 0; }
.panel-head h3, .dashboard-panel > h3 { margin: 0 0 .25rem; color: var(--navy); font-size: 1.08rem; }
.panel-head p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.panel-empty { display: grid; min-height: 178px; place-items: center; padding: 1.5rem; color: var(--muted); background: #fafbfa; font-size: .82rem; text-align: center; }
.dashboard-list { border-top: 1px solid #edf0ef; }
.dashboard-list > div { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .95rem 0; border-bottom: 1px solid #edf0ef; }
.dashboard-list > div > div { display: grid; gap: .15rem; }
.dashboard-list strong { color: var(--navy); font-size: .76rem; }
.dashboard-list span { color: var(--muted); font-size: .7rem; }
.dashboard-list b { color: var(--navy); font-size: .8rem; text-align: right; }
[dir="rtl"] .dashboard-list b { text-align: left; }
.status { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: .18rem .4rem; border-radius: 50px; font-size: .62rem; font-style: normal; font-weight: 700; line-height: 1.2; text-transform: capitalize; white-space: nowrap; }
.status--test_paid, .status--active, .status--reviewed { color: #1a655c; background: #e5f3ef; }
.status--refunded, .status--inactive { color: #8b5641; background: #f7eae4; }
.status--draft { color: #765d32; background: #f6efdb; }
.status--review { color: #3f607c; background: #e5eef6; }
.workflow-list { display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none; }
.workflow-list li { display: grid; grid-template-columns: 27px 1fr; gap: .65rem; }
.workflow-list li > span { display: grid; width: 27px; height: 27px; place-items: center; color: var(--teal); border: 1px solid #bcd4d2; border-radius: 50%; font-size: .62rem; font-weight: 700; }
.workflow-list strong { color: var(--navy); font-size: .78rem; }
.workflow-list p { margin: .15rem 0 0; color: var(--muted); font-size: .71rem; line-height: 1.45; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; min-width: 600px; border-collapse: collapse; }
.table-wrap th { padding: .72rem 1rem; color: #77828a; background: #f6f8f7; border-top: 1px solid #e4eae8; border-bottom: 1px solid #e4eae8; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
[dir="rtl"] .table-wrap th { text-align: right; }
.table-wrap td { padding: .85rem 1rem; color: #46525b; border-bottom: 1px solid #edf0ef; font-size: .75rem; vertical-align: middle; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td strong, .table-wrap td small { display: block; }
.table-wrap td strong { color: var(--navy); font-size: .78rem; }
.table-wrap td small { margin-top: .12rem; color: #7c878f; font-size: .65rem; line-height: 1.35; }
.table-action { padding: 0; color: var(--teal); border: 0; background: transparent; font-size: .69rem; font-weight: 700; }
.inline-form { display: flex; gap: .35rem; align-items: center; }
.inline-form select { min-width: 93px; padding: .35rem .25rem; font-size: .66rem; }
.empty-cell { padding: 2.5rem !important; color: var(--muted) !important; text-align: center; }
.dashboard-form { display: grid; gap: .8rem; margin-top: 1rem; }
.dashboard-form textarea { min-height: 64px; }
.role-pill { display: inline-flex; padding: .2rem .43rem; color: var(--navy); background: #edf2f3; border-radius: 50px; font-size: .65rem; font-weight: 700; text-transform: capitalize; }
.role-pill--manager { color: #fff; background: var(--navy); }
.role-pill--editor { color: #fff; background: var(--teal); }
.role-pill--author { color: #674d23; background: #f4e7c9; }
.page-editor-list { display: grid; gap: .85rem; }
.page-editor-list details { padding: 0; }
.page-editor-list summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; cursor: pointer; color: var(--navy); list-style: none; }
.page-editor-list summary::-webkit-details-marker { display: none; }
.page-editor-list summary > div { display: flex; gap: .8rem; align-items: center; }
.page-editor-list summary strong { font-size: .86rem; }
.page-editor-list summary span { color: var(--muted); font-size: .7rem; }
.page-editor-list summary > span { color: var(--teal); font-size: 1.2rem; }
.page-editor-list details[open] summary { border-bottom: 1px solid var(--line); }
.page-editor-list details[open] summary > span { transform: rotate(45deg); }
.page-editor-form { padding: 1.2rem; margin: 0; }
.checkbox-label { display: flex; grid-template-columns: auto 1fr; align-items: center; }
.checkbox-label input { width: 16px; height: 16px; }
.settings-form { display: grid; gap: 1rem; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.settings-grid__wide { grid-column: 1 / -1; }
.settings-save { justify-self: start; padding-right: 2rem; padding-left: 2rem; }

.site-footer { padding-top: 4rem; color: #c9d1d5; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3.2rem; }
.footer-brand { display: inline-block; margin-bottom: .65rem; color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: .08em; }
.site-footer p { margin-bottom: .45rem; font-size: .8rem; }
.footer-note { max-width: 280px; color: #aebcc4; }
.footer-title { margin-bottom: .85rem !important; color: var(--gold-soft); font-size: .67rem !important; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.site-footer a:not(.footer-brand) { display: block; margin-bottom: .48rem; color: #d3dce0; font-size: .78rem; }
.site-footer a:not(.footer-brand):hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.13); color: #95a4ae; font-size: .65rem; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .dashboard-hero__inner { display: grid; min-height: auto; padding: 2.4rem 0; }
  .dashboard-user { justify-self: start; }
  .dashboard-two-col, .dashboard-two-col--wide { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid__wide { grid-column: auto; }
}
@media (max-width: 540px) {
  .dashboard-gate { padding: 2rem 15px; }
  .dashboard-gate__panel { padding: 1.8rem 1.35rem; }
  .dashboard-shell { padding-top: 1.3rem; }
  .dashboard-section-head { align-items: start; flex-direction: column; }
  .dashboard-nav { margin-bottom: 1.5rem; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article { min-height: 105px; }
  .dashboard-list > div { align-items: start; flex-direction: column; }
  .dashboard-list b { text-align: left; }
  [dir="rtl"] .dashboard-list b { text-align: right; }
}

.checkout-coupon { display: grid; gap: .42rem; margin: 1rem 0; color: var(--navy); font-size: .86rem; font-weight: 700; }
.checkout-coupon span { display: flex; justify-content: space-between; gap: 1rem; }
.checkout-coupon small { color: #73808b; font-weight: 500; }
.checkout-coupon input { width: 100%; min-height: 46px; border: 1px solid #cfd7d8; border-radius: 4px; padding: .7rem .85rem; color: var(--navy); font: inherit; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 1050px) {
  .header-inner { grid-template-columns: 178px 1fr auto; gap: .7rem; }
  .primary-nav { gap: .8rem; }
  .header-actions .icon-link { display: none; }
  .product-grid--four { grid-template-columns: repeat(3, 1fr); }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .container { width: min(100% - 36px, 1180px); }
  .header-inner { grid-template-columns: 1fr auto auto; min-height: 68px; }
  .brand { width: 157px; }
  .brand img { height: 43px; }
  .menu-button { display: block; order: 2; }
  .primary-nav { position: absolute; top: 68px; right: 0; left: 0; display: none; flex-direction: column; gap: 0; padding: .5rem 18px 1rem; border-bottom: 1px solid #e6e9e8; background: #fff; box-shadow: 0 15px 28px rgba(8,29,52,.09); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .7rem 0; border-bottom: 1px solid #edf0ef; }
  .primary-nav a::after { display: none; }
  .header-actions { order: 3; }
  .header-actions .button { display: none; }
  .hero-grid, .split-feature, .service-hero__grid, .service-layout, .contact-page, .product-detail__grid, .prose-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 3rem; padding: 4rem 0 5rem; }
  .hero-copy h1 { max-width: 680px; }
  .hero-visual { justify-self: stretch; width: 100%; padding-right: 25px; }
  [dir="rtl"] .hero-visual { padding-right: 0; padding-left: 25px; }
  .hero-visual > img { height: 390px; }
  .hero-card { left: 0; }
  [dir="rtl"] .hero-card { right: 0; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars > div:nth-child(3) { border-left: 1px solid rgba(255,255,255,.13); }
  [dir="rtl"] .pillars > div:nth-child(3) { border-right: 1px solid rgba(255,255,255,.13); border-left: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .split-feature { gap: 3rem; }
  .split-feature__copy { max-width: 640px; }
  .newsletter-layout { display: grid; }
  .product-detail__visual { position: relative; top: auto; min-height: 400px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: relative; top: auto; }
  .service-hero__grid { gap: 2rem; min-height: auto; }
  .service-hero__image img { height: 330px; }
  .service-layout { gap: 3rem; }
  .contact-details { max-width: 600px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { order: -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  body { font-size: 15px; }
  .container { width: min(100% - 30px, 1180px); }
  h1 { font-size: clamp(2.45rem, 12vw, 3.6rem); }
  h2 { font-size: clamp(1.9rem, 9vw, 2.7rem); }
  .header-actions { gap: .55rem; }
  .hero-actions, .newsletter-form, .interest-form { flex-direction: column; align-items: stretch; }
  .hero-visual { padding-right: 10px; }
  [dir="rtl"] .hero-visual { padding-right: 0; padding-left: 10px; }
  .hero-visual > img { height: 315px; }
  .hero-card { max-width: calc(100% - 10px); padding: 1.15rem; }
  .hero-card p { font-size: 1rem; }
  .pillars > div { min-height: 74px; padding: .75rem; }
  .section-heading, .store-toolbar, .library-head, .library-item { align-items: flex-start; flex-direction: column; }
  .section-heading { gap: 1rem; }
  .product-grid, .product-grid--four, .admin-grid, .detail-list, .values, .form-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 270px; }
  .store-search { width: 100%; }
  .product-detail__visual { min-height: 330px; padding: 1.35rem; }
  .document-stack { width: 57%; height: 210px; margin-top: 1.5rem; }
  .document-stack span { height: 180px; }
  .cart-item { gap: .7rem; }
  .cart-item__side { align-items: end; }
  .empty-state, .success-card, .viewer-message { padding: 2rem 1.2rem; }
  .viewer-shell { padding: .6rem; }
  .viewer-topbar { align-items: start; flex-wrap: wrap; font-size: .68rem; }
  .viewer-document { min-height: 700px; padding: 2rem 1.4rem; }
  .viewer-watermark { font-size: .87rem; }
  .service-hero__image img { height: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-bottom { flex-direction: column; }
  .flash-stack { top: 80px; right: 15px; width: calc(100% - 30px); }
  [dir="rtl"] .flash-stack { right: auto; left: 15px; }
}
