:root {
  --accent: #191919;
  --accent-light: #282828;
  --accent-dim: rgba(0, 0, 0, .12);
  --accent-glow: rgba(0, 0, 0, .22);
  --secondary: #383838;
  --secondary-dim: rgba(0, 0, 0, .12);
  --notice: #333333;
  --page: #bcbcbc;
  --card: #ffffff;
  --elevated: #eaeaea;
  --hover: #e0e0e0;
  --border: #bdbdbd;
  --border-soft: #d6d6d6;
  --text: #171717;
  --text-2: #494949;
  --text-3: #494949;
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: clip; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--text); background: var(--page); font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; opacity: .025; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
a { color: inherit; }
.skip-link { position: fixed; z-index: 20; top: 12px; right: 12px; padding: 10px 14px; border-radius: 8px; background: var(--accent); transform: translateY(-150%); }
.skip-link { color: white; }
.skip-link:focus { transform: translateY(0); }

.site-header { direction: ltr; position: sticky; z-index: 10; top: 0; width: min(var(--content), calc(100% - 48px)); height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-soft); background: rgba(188, 188, 188, .94); backdrop-filter: blur(18px); }
.brand, .footer-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 38%; border: 1px solid var(--border); }
.brand-copy { display: grid; gap: 1px; }
.brand-name, .footer-brand { font-family: "Space Grotesk", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.brand-name b, .footer-brand b { color: var(--accent-light); }
.brand-name i, .footer-brand i { color: var(--secondary); font-style: normal; }
.brand-copy small { direction: ltr; color: var(--text); font: 600 11px/1.4 "Space Grotesk", sans-serif; }
.social-links { display: grid; gap: 4px; width: 42px; }
.social-links a { display: inline-flex; min-height: 30px; align-items: center; justify-content: center; padding: 3px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-2); text-decoration: none; transition: .2s ease; }
.social-links a:hover { border-color: rgba(0, 0, 0, .55); color: var(--text); background: var(--elevated); }
.social-links svg { width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; }
.social-links .telegram-link svg { fill: #171717; }
nav { display: flex; gap: 6px; }
nav a { padding: 9px 13px; color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; border-radius: 8px; transition: .2s ease; }
nav a:hover { color: var(--text); background: var(--elevated); }

.home-hero { position: relative; width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: 92px 0 104px; }
.home-hero::after { content: ""; position: absolute; right: -10vw; bottom: 0; left: -10vw; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.home-intro { max-width: 720px; margin-bottom: 40px; }
.home-kicker { margin: 0 0 13px; color: var(--accent-light); font: 700 11px/1.5 "Space Grotesk", sans-serif; letter-spacing: .12em; }
.home-intro h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 4.8rem); line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.home-intro h1 span { color: var(--accent-light); }
.home-intro > .home-description { max-width: 670px; margin: 22px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.9; }
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-card { display: flex; min-height: 310px; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: 16px; color: var(--text); background: var(--card); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.guide-card:hover { transform: translateY(-3px); border-color: rgba(0, 0, 0, .55); color: var(--text); background: var(--elevated); }
.guide-card > svg { width: 30px; height: 30px; margin-bottom: 28px; fill: none; stroke: var(--accent-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.guide-card:nth-child(2) > svg { stroke: var(--secondary); }
.guide-card h2 { margin: 0 0 10px; color: var(--text); font-size: 24px; line-height: 1.3; }
.guide-card p { margin: 0 0 20px; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.card-topics { margin-top: auto; margin-bottom: 24px; color: var(--text-3); font-size: 11px; font-weight: 600; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--accent-light); font-size: 13px; font-weight: 700; }
.guide-card:nth-child(2) .card-link { color: var(--secondary); }
.card-link b { direction: ltr; font-size: 18px; }
.home-page { min-height: 100svh; }
.home-page .home-hero { padding: clamp(40px, 6vh, 72px) 0; display: flex; flex-direction: column; justify-content: center; }
.home-page .home-intro { margin-bottom: clamp(24px, 4vh, 38px); }
.home-page .guide-card { min-height: clamp(220px, 29vh, 275px); }
.guide-page .hero { min-height: 420px; padding: 70px 0 72px; }
.guide-page .hero h1 { direction: rtl; font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; font-size: clamp(2.7rem, 5.8vw, 5.2rem); line-height: 1.18; letter-spacing: -.045em; }
.guide-page .hero h1 em { color: var(--accent-light); }
.guide-page .hero::after { right: 0; left: 0; }
.guide-page .hero-glow { width: min(780px, 100%); }

.hero { position: relative; width: min(var(--content), calc(100% - 48px)); min-height: 520px; margin: 0 auto; padding: 96px 0 88px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero::after { content: ""; position: absolute; right: -30vw; bottom: 0; left: -30vw; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.hero-glow { position: absolute; z-index: -1; top: -180px; left: 50%; width: 780px; height: 530px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .17) 0, rgba(0, 0, 0, .05) 38%, transparent 70%); filter: blur(8px); }
.eyebrow, .section-label { color: var(--accent-light); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 5px var(--secondary-dim); }
.hero h1 { direction: ltr; margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(3.2rem, 7vw, 6.2rem); line-height: .94; letter-spacing: -.065em; }
.hero h1 span, .guide h2 span { color: var(--accent-light); }
.guide h2 .title-ar { color: var(--secondary); }
.hero h1 em { color: var(--secondary); font-style: normal; }
.hero-copy { max-width: 700px; margin: 28px 0 0; color: var(--text-2); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.9; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 13px; margin-top: 28px; color: var(--text-3); font-size: 13px; font-weight: 600; }
.hero-meta b { color: var(--secondary); }

.page-shell { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 58px 0 130px; }
.guide { width: min(820px, 100%); min-width: 0; margin-right: 0; margin-left: auto; direction: rtl; }
.top-guide-toolbar { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding-top: 32px; display: flex; justify-content: flex-end; direction: ltr; }
.back-home { direction: rtl; display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid var(--border); border-radius: 9px; color: var(--text-2); background: var(--card); font-size: 13px; font-weight: 700; text-decoration: none; transition: .2s ease; }
.back-home:hover { color: var(--text); border-color: rgba(0, 0, 0, .55); background: var(--elevated); }
.back-home span { color: var(--accent-light); font-size: 17px; line-height: 1; }
.contents { position: sticky; top: 32px; align-self: start; display: grid; gap: 5px; }
.contents p { margin: 0 12px 12px; color: var(--text-3); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.contents a { display: flex; gap: 11px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--text-3); font-size: 13px; font-weight: 600; text-decoration: none; transition: .2s ease; }
.contents a span { direction: ltr; font-family: "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; opacity: .6; }
.contents a:hover { color: var(--text-2); background: var(--card); }
.contents a.active { color: var(--text); background: var(--accent-dim); }
.contents a.active span { color: var(--accent-light); opacity: 1; }

.guide-section { padding: 0 0 105px; margin-bottom: 105px; border-bottom: 1px solid var(--border-soft); scroll-margin-top: 110px; }
.guide-section:last-child { padding-bottom: 0; margin-bottom: 0; border: 0; }
.guide-page #template.guide-section { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.guide-page #required.guide-section { padding-bottom: 0; margin-bottom: 0; border: 0; }
.required-subsection { padding-top: 90px; margin-top: 90px; border-top: 1px solid var(--border-soft); scroll-margin-top: 30px; }
.section-label { margin-bottom: 13px; }
.mint-label { color: var(--accent-light); }
.green-label { color: var(--secondary); }
.guide h2 { margin: 0; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.12; letter-spacing: -.035em; }
.guide h3 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.3; }
#pengu > h2 { margin-bottom: 58px; }
.lead, .guide-section > p, .walkthrough-step > p { max-width: 730px; margin: 22px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.9; }
.lead a { color: var(--secondary); text-underline-offset: 4px; }
.green-link { color: var(--secondary); text-underline-offset: 4px; }

.requirement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 32px; }
.requirement-grid a { display: flex; min-height: 132px; flex-direction: column; justify-content: space-between; padding: 17px; border: 1px solid var(--border); border-radius: 13px; background: var(--card); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.requirement-grid a:hover { transform: translateY(-2px); border-color: rgba(0, 0, 0, .55); background: var(--elevated); }
.requirement-grid span { direction: ltr; color: var(--accent-light); font: 800 11px/1 "Space Grotesk", sans-serif; }
.requirement-grid strong { margin-top: auto; font-size: 15px; }
.requirement-grid small { margin-top: 3px; color: var(--text-3); font-size: 10px; line-height: 1.5; }

.copy-block { margin: 34px 0 48px; display: flex; align-items: stretch; border: 1px solid rgba(0, 0, 0, .3); border-radius: 14px; overflow: hidden; background: var(--card); }
.copy-block > div { flex: 1; min-width: 0; padding: 14px 17px; display: grid; gap: 3px; }
.copy-block > div span { color: var(--text-3); font: 700 10px/1.4 "Space Grotesk", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.copy-block code { color: var(--text-2); font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { min-width: 132px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-left: 1px solid rgba(0, 0, 0, .3); color: white; background: var(--accent); font-family: inherit; font-weight: 700; cursor: pointer; transition: .2s ease; }
.copy-button:hover { background: #353535; }
.copy-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.step-heading { display: flex; gap: 18px; align-items: flex-start; }
.step-heading.compact { margin-top: 8px; }
.step-number { direction: ltr; flex: 0 0 auto; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: white; background: var(--accent); box-shadow: 0 10px 32px var(--accent-glow); font: 800 14px/1 "Space Grotesk", sans-serif; }
.step-number.mint { background: var(--accent); box-shadow: 0 10px 32px var(--accent-glow); }
.step-heading .section-label { margin: 1px 0 6px; }

.instance-group { margin-top: 28px; }
.group-title { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.group-title h4 { margin: 0; font-size: 14px; }
.group-title small { margin-right: 5px; color: var(--text-3); font: 600 11px/1 "Space Grotesk", sans-serif; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.stable { background: var(--secondary); box-shadow: 0 0 0 5px var(--secondary-dim); }
.status-dot.nightly { background: var(--accent-light); box-shadow: 0 0 0 5px var(--accent-dim); }
.instance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.instance-card { direction: ltr; position: relative; display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--card); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.instance-card:hover { transform: translateY(-2px); border-color: rgba(0, 0, 0, .5); background: var(--elevated); }
.instance-card.nightly-card:hover { border-color: rgba(0, 0, 0, .65); }
.instance-card strong { font: 700 14px/1.2 "Space Grotesk", sans-serif; }
.instance-card span { color: var(--secondary); font: 600 10px/1.2 "Space Grotesk", sans-serif; }
.nightly-card span { color: var(--accent-light); }

.callout { margin-top: 28px; padding: 20px 22px; border: 1px solid rgba(0, 0, 0, .25); border-radius: 14px; background: linear-gradient(135deg, var(--accent-dim), rgba(0, 0, 0, .035)); }
.callout.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.callout strong { font-size: 14px; }
.callout p { margin: 5px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.7; }
.callout small { grid-column: 1 / -1; padding-top: 13px; border-top: 1px solid rgba(0, 0, 0, .18); color: var(--text-3); font-size: 12px; }
.callout.warning { border-color: rgba(0, 0, 0, .3); background: rgba(0, 0, 0, .08); }
.callout.warning strong { color: #333333; }
.callout.security { border-color: rgba(0, 0, 0, .3); background: var(--secondary-dim); }
.callout.security strong { color: var(--secondary); }

.walkthrough { margin-top: 80px; }
.walkthrough-step { padding: 0 0 82px; margin-bottom: 82px; border-bottom: 1px solid var(--border-soft); }
.walkthrough-step.finish-step { padding-bottom: 0; margin-bottom: 0; border: 0; }
.required-step { padding-bottom: 82px; }
.required-dropdowns { display: grid; gap: 12px; margin-top: 28px; }
.required-dropdown { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.required-dropdown[open] { border-color: rgba(0, 0, 0, .52); }
.required-dropdown > summary { display: flex; align-items: center; gap: 15px; padding: 16px 19px; list-style: none; cursor: pointer; }
.required-dropdown > summary::-webkit-details-marker { display: none; }
.required-dropdown > summary > span:first-child { direction: ltr; flex: 0 0 auto; color: var(--accent-light); font: 800 13px/1 "Space Grotesk", sans-serif; }
.required-dropdown > summary > span:nth-child(2) { display: grid; gap: 2px; }
.required-dropdown > summary strong { font-size: 15px; }
.required-dropdown > summary small { color: var(--text-3); font-size: 12px; }
.required-dropdown > summary > b { margin-right: auto; color: var(--accent-light); font-size: 23px; line-height: 1; transition: transform .2s ease; }
.required-dropdown[open] > summary > b { transform: rotate(180deg); }
.required-dropdown-content { padding: 0 20px 22px; }
.required-dropdown-content .required-subsection { padding-top: 24px; margin-top: 0; border-top: 1px solid var(--border-soft); scroll-margin-top: 105px; }
.required-dropdown-content .required-subsection h2 { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.2; }
figure { margin: 30px 0 0; padding: 8px; border: 1px solid var(--border); border-radius: 17px; background: var(--card); box-shadow: 0 18px 55px rgba(0,0,0,.06); }
figure img { display: block; width: 100%; height: auto; border-radius: 11px; background: #050505; }
figcaption { padding: 10px 7px 4px; color: var(--text-3); font-size: 11px; font-weight: 600; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.action-row { margin-top: 27px; }
.primary-link { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 10px; color: white; background: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; transition: .2s ease; }
.primary-link:hover { transform: translateY(-2px); background: #353535; }
.tmdb-steps { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 10px; }
.tmdb-steps li { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.tmdb-steps li > span { direction: ltr; color: var(--accent-light); font: 800 12px/1.5 "Space Grotesk", sans-serif; }
.tmdb-steps strong { font-size: 14px; }
.tmdb-steps p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.tmdb-steps code { padding: 2px 5px; border-radius: 4px; background: var(--hover); color: var(--accent-light); }
.sample-block { margin-top: 22px; padding: 19px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.sample-block > span { color: var(--text-3); font-size: 11px; font-weight: 700; }
.sample-block p { margin: 10px 0 0; color: var(--text-2); font: 500 13px/1.7 "Space Grotesk", sans-serif; }

.service-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.service-link { display: flex; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--border); border-radius: 13px; background: var(--card); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.service-link:hover { transform: translateY(-2px); border-color: rgba(0, 0, 0, .55); background: var(--elevated); }
.service-mark { direction: ltr; flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 11px; background: white; }
.service-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.service-link strong { display: block; font: 700 15px/1.3 "Space Grotesk", sans-serif; }
.service-link small { display: block; margin-top: 5px; color: var(--text-3); font-size: 11px; }
.subtitle-walkthrough { margin-top: 70px; }

.page-navigation { margin-top: 72px; padding-top: 34px; border-top: 1px solid var(--border-soft); }
.guide-page .page-navigation { margin-top: 28px; }
.guide-page .page-navigation { border-top: 1px solid var(--border-soft); }
.guide-page .page-shell { padding-bottom: 38px; }
.guide-page footer { display: flex; }
.next-page { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 112px; padding: 22px 26px; border: 1px solid rgba(0, 0, 0, .32); border-radius: 16px; background: linear-gradient(135deg, var(--accent-dim), rgba(0, 0, 0, .035)); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.next-page:hover { transform: translateY(-2px); border-color: rgba(0, 0, 0, .65); background: rgba(0, 0, 0, .16); }
.next-page span { display: grid; gap: 4px; }
.next-page small { color: var(--text-3); font-size: 11px; font-weight: 700; }
.next-page strong { color: var(--accent-light); font-size: 22px; }
.next-page > b { direction: ltr; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: white; background: var(--accent); font-size: 20px; }

.apple-page .hero { min-height: 420px; padding-bottom: 72px; }
.apple-page .hero h1 { direction: rtl; letter-spacing: -.04em; }
.apple-page .page-shell { grid-template-columns: minmax(0, 820px); }
.apple-intro { min-height: 330px; padding: 42px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, var(--card), rgba(0, 0, 0, .07)); }
.apple-intro h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; }
.apple-intro p { max-width: 620px; margin: 20px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.9; }

footer { width: min(var(--content), calc(100% - 48px)); margin: auto; padding: 34px 0 48px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-soft); color: var(--text-3); font-size: 12px; }
.footer-brand { color: var(--text-2); font-size: 14px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 38%; }
.toast { position: fixed; z-index: 30; bottom: 24px; left: 50%; padding: 10px 17px; border: 1px solid rgba(0, 0, 0, .4); border-radius: 10px; color: white; background: #191919; font-size: 13px; font-weight: 700; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 880px) {
  .page-shell { grid-template-columns: 1fr; gap: 50px; }
  .apple-page .page-shell { grid-template-columns: 1fr; }
  .contents { position: static; display: flex; flex-wrap: wrap; }
  .contents p { width: 100%; }
  .contents a { border: 1px solid var(--border); }
}
@media (max-width: 680px) {
  .site-header { position: relative; top: auto; }
  .skip-link { display: none; }
  .site-header, .hero, .home-hero, .page-shell, footer { width: min(100% - 32px, var(--content)); }
  .site-header { width: 100%; height: 72px; padding-inline: 16px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 15px; }
  .social-links { width: 40px; }
  .social-links a { min-height: 29px; }
  nav { gap: 2px; }
  nav a { display: block; padding: 8px 9px; font-size: 11px; }
  .home-hero { padding: 58px 0 72px; }
  .home-page .home-hero { padding: 38px 0 48px; }
  .home-intro { margin-bottom: 30px; }
  .home-page .home-intro { margin-bottom: 16px; }
  .home-intro h1 { font-size: clamp(2.15rem, 10.5vw, 3.3rem); }
  .home-intro > .home-description { margin-top: 14px; font-size: 13px; line-height: 1.65; }
  .guide-cards { grid-template-columns: 1fr; gap: 12px; }
  .guide-card, .home-page .guide-card { min-height: 0; padding: 15px 17px; }
  .guide-card > svg { width: 23px; height: 23px; margin-bottom: 8px; }
  .guide-card h2 { margin-bottom: 5px; font-size: 19px; }
  .guide-card p { margin-bottom: 8px; font-size: 12px; line-height: 1.55; }
  .card-topics { margin-bottom: 8px; font-size: 10px; }
  .card-link { font-size: 11px; }
  .hero { min-height: 470px; padding: 78px 0 72px; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .hero-copy { font-size: 15px; }
  .page-shell { padding: 60px 0 90px; }
  .top-guide-toolbar { width: min(100% - 32px, var(--content)); padding-top: 20px; }
  .back-home { padding: 8px 11px; font-size: 12px; }
  .guide-section { padding-bottom: 78px; margin-bottom: 78px; }
  .copy-block { flex-direction: column; }
  .copy-button { min-height: 48px; border-top: 1px solid rgba(0, 0, 0, .3); border-left: 0; }
  .instance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callout.comparison, .figure-pair { grid-template-columns: 1fr; }
  .service-links { grid-template-columns: 1fr; }
  .requirement-grid { grid-template-columns: 1fr; }
  .requirement-grid a { min-height: 104px; }
  .required-subsection { padding-top: 68px; margin-top: 68px; }
  #pengu > h2 { margin-bottom: 42px; }
  .callout small { grid-column: auto; }
  .walkthrough { margin-top: 65px; }
  .walkthrough-step { padding-bottom: 62px; margin-bottom: 62px; }
  .step-number { width: 46px; height: 46px; border-radius: 12px; }
  footer { align-items: flex-start; gap: 18px; flex-direction: column; }
  .apple-intro { min-height: 280px; padding: 28px 22px; }
}
@media (max-width: 390px) { .instance-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Apple guide */
.apple-page .hero { min-height: 420px; padding: 70px 0 72px; }
.apple-page .hero h1 { direction: rtl; font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; font-size: clamp(2.7rem, 5.8vw, 5.2rem); line-height: 1.18; letter-spacing: -.045em; }
.apple-page .hero h1 em { color: var(--accent-light); }
.apple-shell { width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 62px 0 32px; }
.apple-page .page-navigation { margin-top: 38px; }
.apple-page footer { padding: 20px 0 28px; }
.apple-alert { display: flex; gap: 20px; align-items: flex-start; padding: 23px; border: 1px solid rgba(0, 0, 0, .32); border-radius: 17px; background: linear-gradient(120deg, rgba(0, 0, 0, .1), var(--card)); }
.apple-alert img { flex: 0 0 auto; width: 56px; height: 56px; object-fit: contain; border-radius: 13px; background: white; }
.apple-alert strong { color: #333333; font-size: 18px; }
.apple-alert p { margin: 5px 0 9px; color: var(--text-2); font-size: 14px; }
.apple-alert a { color: #333333; font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.apple-section { margin-top: 78px; }
.apple-section h2, .method-intro h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.2; letter-spacing: -.035em; }
.apple-section > .lead { margin-top: 12px; }
.method-chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.method-choice { min-height: 148px; display: flex; align-items: flex-start; gap: 17px; text-align: right; padding: 23px; border: 1px solid var(--border); border-radius: 16px; color: var(--text); background: var(--card); font: inherit; cursor: pointer; transition: .2s ease; }
.method-choice:hover, .method-choice.active { border-color: rgba(0, 0, 0, .7); background: linear-gradient(130deg, rgba(0, 0, 0, .17), var(--card)); }
.method-index { flex: 0 0 auto; color: var(--accent-light); font: 800 14px/1.6 "Space Grotesk", sans-serif; }
.method-choice > span:nth-child(2) { display: grid; gap: 8px; }
.method-choice strong { font: 800 22px/1.2 "Space Grotesk", sans-serif; direction: ltr; text-align: right; }
.method-choice small { color: var(--text-2); font-size: 13px; line-height: 1.8; }
.method-chevron { margin-right: auto; color: var(--text-3); font-size: 26px; line-height: 1; transition: transform .2s ease; }
.method-choice.active .method-chevron { transform: rotate(180deg); color: var(--accent-light); }
.method-panel { margin-top: 24px; padding: 34px; border: 1px solid var(--border); border-radius: 20px; background: #ededed; }
.method-panel[hidden] { display: none; }
.method-intro h2 span { color: var(--accent-light); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.pros-cons > div { padding: 17px 19px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.pros-cons > div:first-child { border-color: rgba(0, 0, 0, .25); }
.pros-cons strong { color: var(--secondary); font-size: 14px; }
.pros-cons > div:last-child strong { color: #333333; }
.pros-cons p { margin: 5px 0 0; color: var(--text-2); font-size: 13px; }
.apple-subsection { margin-top: 65px; padding-top: 56px; border-top: 1px solid var(--border-soft); scroll-margin-top: 105px; }
.apple-subsection h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.apple-subsection > p { color: var(--text-2); }
.key-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 24px 0 40px; }
.key-grid a { min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); text-decoration: none; transition: .2s ease; }
.key-grid a:hover { border-color: var(--accent-light); transform: translateY(-2px); }
.key-grid b { font: 800 16px/1.3 "Space Grotesk", sans-serif; }
.key-grid span { color: var(--accent-light); font-size: 11px; }
.key-explain { margin-top: 45px; }
.key-explain h4 { margin: 0; font: 800 22px/1.3 "Space Grotesk", sans-serif; }
.key-explain p { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }
.apple-steps { list-style: none; padding: 0; margin: 28px 0 0; }
.apple-steps > li { padding: 38px 0; border-bottom: 1px solid var(--border-soft); }
.apple-steps > li:last-child { border-bottom: 0; padding-bottom: 0; }
.apple-step-head { display: flex; align-items: flex-start; gap: 17px; }
.apple-step-head > span { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: white; background: var(--accent); font: 800 13px/1 "Space Grotesk", sans-serif; }
.apple-step-head h4 { margin: 0; font-size: 21px; line-height: 1.4; }
.apple-step-head p { margin: 7px 0 0; color: var(--text-2); font-size: 14px; }
.apple-step-head a { color: var(--secondary); text-underline-offset: 4px; }
.apple-steps .copy-block { margin: 22px 0; }
.apple-server-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.apple-server-grid a { direction: ltr; padding: 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--card); font: 700 13px/1.4 "Space Grotesk", sans-serif; text-align: center; text-decoration: none; transition: .2s ease; }
.apple-server-grid a:hover { border-color: var(--secondary); color: var(--secondary); }
.apple-steps figure { margin-top: 22px; }
.apple-steps .figure-pair { width: 100%; gap: 8px; }
.apple-steps .figure-pair figure { min-width: 0; }
.step-note { margin: 18px 0 0; padding: 15px 18px; border-right: 3px solid var(--secondary); color: var(--text-2); background: var(--secondary-dim); font-size: 13px; }
.apps-section { padding-top: 65px; border-top: 1px solid var(--border-soft); }
.app-accordions { display: grid; gap: 12px; margin-top: 30px; }
.app-detail { border: 1px solid var(--border); border-radius: 15px; background: var(--card); overflow: hidden; }
.app-detail[open] { border-color: rgba(0, 0, 0, .52); }
.app-detail summary { display: flex; align-items: center; gap: 18px; padding: 16px 20px; list-style: none; cursor: pointer; }
.app-detail summary::-webkit-details-marker { display: none; }
.app-detail summary img { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 13px; object-fit: contain; background: #ffffff; }
.app-detail summary > span:nth-child(2) { display: grid; gap: 3px; }
.app-detail strong { font: 800 20px/1.3 "Space Grotesk", sans-serif; }
.app-detail small { color: var(--text-3); font-size: 12px; }
.app-expand { margin-right: auto; color: var(--accent-light); font-size: 26px; transition: transform .2s ease; }
.app-detail[open] .app-expand { transform: rotate(180deg); }
.app-detail-body { padding: 0 20px 22px; }
.app-detail-body figure { margin: 0 0 16px; }
.app-detail-body p { margin: 0 0 9px; color: var(--text-2); font-size: 13px; }
.app-detail-body p b { color: var(--text); }
.app-detail-body a { display: inline-block; margin-top: 8px; color: var(--secondary); font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 700px) {
  /* Keep iOS browsers on the layout viewport when a child has a long intrinsic width. */
  body { width: 100%; max-width: 100%; overflow-x: clip; }
  .site-header, .hero, .top-guide-toolbar, .apple-shell, footer { margin-inline: auto; }
  .apple-shell { width: min(100% - 32px, 980px); padding-top: 38px; }
  .apple-page .hero { min-height: 0; padding: 55px 0 24px; }
  .method-chooser, .pros-cons, .key-grid { grid-template-columns: 1fr; }
  .method-choice { min-height: 115px; }
  .method-panel { padding: 23px 18px; }
  .apple-server-grid { grid-template-columns: repeat(2,1fr); }
  .apple-alert { gap: 12px; padding: 17px; }
  .apple-alert img { width: 42px; height: 42px; }
  .app-detail-body { padding-right: 20px; }
  .apple-steps .figure-pair { width: 100%; margin-inline: 0; grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 700px) {
  /* Let guide screenshots use the full available phone width. */
  figure { padding: 0; overflow: hidden; }
  figure img { border-radius: 11px 11px 0 0; }
  figcaption { padding: 10px 12px 12px; }
}
.apple-page .hero::after { right: 0; left: 0; }
.apple-page .hero-glow { width: min(780px, 100%); }
@media (max-width: 700px) {
  .apple-page .hero h1 { width: 100%; font-size: clamp(2.05rem, 9vw, 3rem); }
  .apple-page .hero-copy, .apple-page .hero-meta { width: 100%; }
  .guide-page .hero { min-height: 0; padding: 55px 0 24px; }
  .guide-page .hero h1 { width: 100%; font-size: clamp(2.05rem, 9vw, 3rem); }
}
#tmdb-key { scroll-margin-top: 105px; }

.torbox-dropdown { border: 1px solid rgba(0, 0, 0, .3); border-radius: 17px; background: linear-gradient(120deg, rgba(0, 0, 0, .08), var(--card)); overflow: hidden; }
.torbox-dropdown > summary { display: flex; align-items: center; gap: 16px; padding: 20px 23px; cursor: pointer; list-style: none; }
.torbox-dropdown > summary::-webkit-details-marker { display: none; }
.torbox-dropdown > summary img { flex: 0 0 auto; width: 56px; height: 56px; object-fit: contain; border-radius: 13px; background: white; }
.torbox-dropdown > summary > span:nth-child(2) { display: grid; gap: 3px; }
.torbox-dropdown > summary strong { color: var(--text); font-size: 18px; }
.torbox-dropdown > summary small { color: var(--text-2); font-size: 13px; }
.torbox-chevron { margin-right: auto; color: var(--secondary); font-size: 27px; transition: transform .2s ease; }
.torbox-dropdown[open] .torbox-chevron { transform: rotate(180deg); }
.torbox-content { padding: 0 23px 24px; }
.torbox-intro { margin: 0 0 8px; color: var(--text-2); font-size: 14px; }
.torbox-link { display: inline-block; margin-bottom: 10px; color: var(--secondary); font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.torbox-steps { margin-top: 0; }
.torbox-steps > li { padding: 30px 0; }
.torbox-steps figure img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; }
.torbox-steps figure figcaption { color: var(--text-3); font-size: 12px; }
@media (max-width: 640px) { .torbox-dropdown > summary { padding: 16px; gap: 12px; } .torbox-dropdown > summary img { width: 44px; height: 44px; } .torbox-content { padding: 0 16px 18px; } }

.torbox-dropdown { border-color: rgba(0, 0, 0, .38); background: linear-gradient(120deg, rgba(0, 0, 0, .12), var(--card)); }
.torbox-dropdown > summary strong { color: #333333; }
.torbox-chevron { color: #333333; }
.torbox-link { color: #333333; }
.torbox-dropdown[open] { border-color: rgba(0, 0, 0, .42); background: linear-gradient(120deg, rgba(0, 0, 0, .1), var(--card)); }
.torbox-dropdown[open] > summary strong, .torbox-dropdown[open] > summary small, .torbox-dropdown[open] .torbox-chevron { color: var(--secondary); }

.torbox-link { color: var(--secondary); }
.aio-overview { margin-bottom: 52px; }
.aio-overview .overview-icon { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #333333; background: rgba(0, 0, 0, .13); font-size: 27px; font-weight: 700; }
.aio-overview[open] .overview-icon { color: var(--secondary); background: var(--secondary-dim); }
.aio-overview h3 { margin: 22px 0 0; font-size: 19px; }
.aio-features { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 18px 0 0; padding: 0 22px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.8; }
.aio-features li { padding-right: 3px; }
.apple-page footer, .guide-page footer { position: relative; min-height: 96px; padding-bottom: 48px; }
.apple-page .footer-credit, .guide-page .footer-credit { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--text-2); font: 800 16px/1.5 "Space Grotesk", sans-serif; }
.apple-page .footer-credit, .guide-page .footer-credit { display: flex; align-items: center; gap: 9px; top: 46%; font-size: 19px; font-weight: 800; }
.apple-page .footer-credit img, .guide-page .footer-credit img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; object-fit: cover; }

.guide-page .hero h1 .title-ar { color: var(--secondary); }
.apple-page .footer-credit, .guide-page .footer-credit { font-size: 14px; }

.apple-page .key-explain a, .apple-page .apple-steps a { color: var(--secondary); text-underline-offset: 3px; }

/* Standalone Wiki guides reuse the existing walkthrough components. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.hero-glow { display: none; }
.standalone-page .hero { min-height: 0; padding: 58px 0 42px; }
.standalone-page .page-shell { width: min(900px, calc(100% - 48px)); padding-top: 42px; }
.standalone-page .guide { width: 100%; margin-inline: auto; }
.standalone-page .guide-section { padding-bottom: 0; margin-bottom: 0; border: 0; }
.wiki-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.wiki-topics a { padding: 8px 15px; border: 1px solid var(--border); background: var(--card); border-radius: 9px; color: var(--text); font-size: 13px; text-decoration: none; }
.wiki-topics a:hover { background: var(--elevated); border-color: var(--accent); }
.token-guide { margin-top: 32px; padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--elevated); }
.token-guide h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.key-explain, .walkthrough-step, #torbox-api-key, .token-guide { scroll-margin-top: 110px; }
.standalone-page .torbox-link { margin-top: 24px; }
footer .footer-credit { position: static; transform: none; display: flex; align-items: center; gap: 9px; color: var(--text-2); font: 700 14px/1.5 "Space Grotesk", sans-serif; }
footer .footer-credit img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.apple-page footer .footer-credit, .guide-page footer .footer-credit { position: static; transform: none; font-size: 14px; }
@media (max-width: 700px) {
  .standalone-page .hero { padding: 38px 0 28px; }
  .standalone-page .page-shell { width: calc(100% - 32px); padding-top: 30px; }
  .token-guide { padding: 18px; }
  .home-page .guide-card { padding: 22px; }
}

.site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; }
.site-header .brand { justify-self: start; }
.site-header .social-links { justify-self: end; }
.wiki-search-button { justify-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 140px; min-height: 44px; padding: 9px 22px; border: 1px solid white; border-radius: 24px; background: #191919; color: white; font: 600 14px/1.4 "IBM Plex Sans Arabic", sans-serif; cursor: pointer; }
.wiki-search-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.wiki-search-button:hover { background: #353535; }
.wiki-search-dialog { width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 26px; border: 1px solid var(--border); border-radius: 20px; color: var(--text); background: #f5f5f5; box-shadow: 0 24px 80px rgba(0,0,0,.25); overflow-y: auto; }
.wiki-search-dialog::backdrop { background: rgba(0,0,0,.45); backdrop-filter: blur(4px); }
.search-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.search-heading h2 { margin: 0; font-size: 23px; }
.search-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 50%; color: var(--text); background: white; font: 28px/1 sans-serif; cursor: pointer; }
.search-label { display: block; margin-bottom: 8px; color: var(--text-2); font-size: 13px; }
#wiki-search-input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #777; border-radius: 10px; color: var(--text); background: white; font: inherit; font-size: 16px; }
.search-status { min-height: 24px; margin: 14px 0; color: var(--text-2); font-size: 13px; }
.search-results { display: grid; gap: 9px; }
.search-result { display: grid; gap: 5px; padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: white; text-decoration: none; }
.search-result:hover { border-color: var(--accent); background: var(--elevated); }
.search-result strong { font-size: 16px; }
.search-result span { color: var(--text-2); font-size: 13px; line-height: 1.7; }
@media (max-width: 680px) {
  .site-header { gap: 6px; }
  .wiki-search-button { min-width: 108px; padding: 9px 14px; }
  .wiki-search-dialog { padding: 20px; }
}


@media (max-width: 360px) {
  .site-header .brand { gap: 8px; }
  .site-header .brand img { width: 34px; height: 34px; }
  .site-header .brand-name { font-size: 14px; }
}


/* New Wiki sections, search filters and compact guide-to-guide navigation. */
.home-page { min-height: 100svh; overflow-x: hidden; }
.home-page .home-hero { height: auto; min-height: 0; overflow: visible; }
.home-extra-section { width: 100%; margin-top: clamp(34px, 6vw, 64px); padding: clamp(20px, 4vw, 34px); border: 1px solid var(--border); border-radius: 18px; background: var(--elevated); }
.home-extra-section .section-label { margin-bottom: 8px; }
.home-extra-section h2 { margin: 0; color: var(--text); font-size: clamp(1.5rem, 3vw, 2rem); }
.home-extra-section > .lead { margin: 10px 0 22px; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.home-picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.home-picks a { display: flex; min-height: 104px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--card); text-decoration: none; font-weight: 700; }
.home-picks a:hover { border-color: var(--accent); background: #fff; }
.home-picks img { width: 38px; height: 38px; object-fit: contain; }
.search-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 15px; }
.search-filter { min-height: 36px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 20px; color: var(--text-2); background: #fff; font: 500 13px/1.4 "IBM Plex Sans Arabic", sans-serif; cursor: pointer; }
.search-filter:hover, .search-filter[aria-pressed="true"] { border-color: #111; color: #fff; background: #191919; }
.search-result-categories { color: #555 !important; font-size: 11px !important; }
.general-checklist { display: grid; gap: 12px; margin-top: 24px; }
.general-checklist > article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.general-checklist > article > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: white; background: #222; font: 700 13px/1 "Space Grotesk", sans-serif; }
.general-checklist h3 { margin: 0 0 7px; font-size: 17px; }
.general-checklist p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.general-checklist .privacy-note { margin-top: 9px; }
.wiki-guide-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(900px, calc(100% - 48px)); margin: 0 auto 44px; direction: rtl; }
.wiki-guide-nav:empty { display: none; }
.wiki-step-link { display: flex; min-width: 0; min-height: 66px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 15px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--card); text-decoration: none; }
.wiki-step-link:hover { border-color: #333; background: #fff; }
.wiki-step-link span { display: grid; min-width: 0; gap: 3px; }
.wiki-step-link small { color: var(--text-2); font-size: 11px; }
.wiki-step-link strong { overflow: hidden; font-size: 13px; line-height: 1.45; text-overflow: ellipsis; }
.wiki-step-link b { flex: 0 0 auto; font: 500 22px/1 sans-serif; }
.wiki-step-next { text-align: right; }
.wiki-step-previous { text-align: left; }
@media (max-width: 680px) {
  .home-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-picks a:last-child { grid-column: 1 / -1; }
  .home-extra-section { margin-top: 24px; padding: 18px; }
  .general-checklist > article { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 15px; }
  .general-checklist > article > span { width: 32px; height: 32px; }
  .wiki-guide-nav { width: calc(100% - 32px); gap: 8px; margin-bottom: 28px; }
  .wiki-step-link { min-height: 62px; gap: 7px; padding: 9px; }
  .wiki-step-link strong { font-size: 11px; }
}

/* Feedback refinements: roomier filter chips, compact arrows and a shared right-aligned footer signature. */
.search-filters { justify-content: flex-start; gap: 12px 10px; margin: 16px 0 21px; padding: 2px 1px; }
.search-filter { min-height: 40px; padding: 8px 15px; }
.wiki-step-link { min-height: 54px; }
.wiki-step-link span { display: block; }
.wiki-step-link small { font-size: 12px; }
footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; direction: rtl; }
footer .footer-brand { gap: 13px; }
footer .footer-credit { min-height: 20px; padding-inline-start: 47px; gap: 0; font-weight: 800; }
footer .footer-credit strong { font-weight: 800; }
.apple-app-picks { margin: 20px 0 28px; }
.apple-app-picks a { min-height: 82px; }
@media (max-width: 680px) {
  .search-filters { gap: 10px 8px; margin: 14px 0 19px; }
  .search-filter { min-height: 38px; padding: 7px 12px; }
  footer { padding: 25px 0 34px; }
}
.search-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.search-filter { width: 100%; white-space: nowrap; }
footer .footer-credit { width: 100%; text-align: right; padding-right: 47px; padding-inline-start: 0; }

/* A pair of unobstructed previous/next links, with one Arabic category tab per issue group. */
.wiki-guide-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(900px, calc(100% - 48px)); margin: 0 auto 36px; }
.wiki-step-link { display: inline-flex; min-height: 0; align-items: center; justify-content: flex-start; gap: 9px; padding: 4px 0; border: 0; border-radius: 0; color: var(--text); background: transparent; text-decoration: none; }
.wiki-step-link:hover { border: 0; color: #000; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.wiki-step-link span { display: block; min-width: 0; }
.wiki-step-link small { color: var(--text); font-size: 13px; font-weight: 600; }
.wiki-step-link b { font: 600 25px/1 sans-serif; }
.problem-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.problem-tabs button { min-height: 40px; padding: 8px 18px; border: 1px solid var(--border); border-radius: 22px; color: var(--text); background: var(--card); font: 600 13px/1.4 "IBM Plex Sans Arabic", sans-serif; cursor: pointer; }
.problem-tabs button:hover, .problem-tabs button[aria-pressed="true"] { border-color: #111; color: #fff; background: #191919; }
.general-checklist > article[hidden] { display: none; }
/* Align the two-line Wixct signature beside its single circular mark. */
footer { display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; justify-content: start; align-items: center; column-gap: 13px; row-gap: 0; direction: rtl; }
footer .footer-brand { display: contents; }
footer .footer-brand img { grid-column: 1; grid-row: 1; width: 34px; height: 34px; }
footer .footer-brand span { grid-column: 2; grid-row: 1; justify-self: start; }
footer .footer-credit { grid-column: 2; grid-row: 2; justify-self: start; width: auto; min-height: 20px; margin-top: -2px; padding: 0; text-align: left; }
@media (max-width: 680px) {
  .wiki-guide-nav { width: calc(100% - 32px); gap: 20px; margin-bottom: 28px; }
  .wiki-step-link small { font-size: 12px; }
  .problem-tabs { gap: 8px; margin-top: 20px; }
}
footer .footer-brand span, footer .footer-credit { width: 100%; justify-self: stretch; }

/* Final footer and navigation alignment: logo right, byline left, same footer height site-wide. */
footer, body.home-page footer, body.apple-page footer, body.guide-page footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  min-height: 96px;
  padding: 30px 0;
}
footer .footer-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; direction: rtl; }
footer .footer-brand img { grid-column: auto; grid-row: auto; flex: 0 0 34px; }
footer .footer-brand span { grid-column: auto; grid-row: auto; width: auto; }
footer .footer-credit { display: flex; width: auto; min-height: 34px; grid-column: auto; grid-row: auto; flex: 0 0 auto; align-items: center; justify-self: auto; margin: 0; padding: 0; text-align: left; }
.wiki-guide-nav { display: flex; align-items: center; justify-content: space-between; direction: rtl; }
.wiki-step-link, .wiki-step-link:hover {
  min-height: 34px;
  padding: 5px 9px;
  gap: 8px;
  border: 1px solid #222;
  border-radius: 7px;
  color: #171717;
  background: transparent;
  text-decoration: none;
}
.wiki-step-link:hover { background: rgba(255,255,255,.18); }
.wiki-step-link small { font-size: 12px; }
.wiki-step-link b { font-size: 20px; }
@media (max-width: 680px) {
  footer, body.home-page footer, body.apple-page footer, body.guide-page footer { flex-direction: row; min-height: 86px; padding: 24px 0; }
  .wiki-step-link, .wiki-step-link:hover { padding: 5px 7px; }
  .wiki-step-link small { font-size: 11px; }
}

/* Notice headers change from yellow to green when their details are expanded. */
.torbox-dropdown.color-notice { border-color: #f4cd67; background: var(--card); }
.torbox-dropdown.color-notice > summary { background: #f4cd67; transition: background-color .2s ease; }
.torbox-dropdown.color-notice > summary strong,
.torbox-dropdown.color-notice > summary small,
.torbox-dropdown.color-notice > summary .torbox-chevron { color: #17140b; }
.torbox-dropdown.color-notice .overview-icon { color: #17140b; background: rgba(0, 0, 0, .1); }
.torbox-dropdown.color-notice[open] { border-color: #84d8a9; }
.torbox-dropdown.color-notice[open] > summary { background: #84d8a9; }
.torbox-dropdown.color-notice[open] > summary strong,
.torbox-dropdown.color-notice[open] > summary small,
.torbox-dropdown.color-notice[open] > summary .torbox-chevron { color: #0c2116; }
.torbox-dropdown.color-notice[open] .overview-icon { color: #0c2116; background: rgba(0, 0, 0, .1); }
.torbox-dropdown.color-notice .torbox-content { padding-top: 23px; }

/* Align the AIOStreams next-guide link with the article's right edge, a little lower. */
.aiostreams-page .wiki-guide-nav { width: min(var(--content), calc(100% - 48px)); margin-top: 22px; }
@media (max-width: 680px) {
  .aiostreams-page .wiki-guide-nav { width: calc(100% - 32px); margin-top: 16px; }
}

/* The existing search pill stretches sideways to reveal its input in the same row. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wiki-header-search { --search-rest-width: 140px; --search-open-width: min(360px, calc(100vw - 300px)); position: relative; justify-self: center; align-self: center; width: var(--search-rest-width); height: 44px; margin: 0; transition: width .55s cubic-bezier(.22, .61, .36, 1); }
.wiki-header-search.is-open { width: var(--search-open-width); }
.header-search-shell { display: flex; align-items: center; width: 100%; height: 44px; direction: rtl; border: 1px solid var(--border); border-radius: 24px; color: var(--text); background: var(--card); overflow: hidden; transition: border-color .22s ease; }
.wiki-header-search.is-open .header-search-shell { border-color: var(--text-3); }
.wiki-header-search .wiki-search-button,
.wiki-header-search .wiki-search-button:hover { width: 100%; min-width: 0; min-height: 42px; height: 42px; padding: 7px 14px; border: 0; color: var(--text); background: transparent; }
.wiki-header-search.is-open .wiki-search-button { flex: 0 0 40px; width: 40px; padding: 0; }
.wiki-header-search.is-open .wiki-search-button > span { display: none; }
.header-search-panel { flex: 1; min-width: 0; height: 42px; padding: 0 0 0 12px; }
.header-search-panel[hidden] { display: none; }
#header-search-input { width: 100%; height: 42px; min-height: 0; padding: 0; border: 0; border-radius: 0; color: var(--text); background: transparent; font: inherit; font-size: 16px; outline: none; }
#header-search-input::placeholder { color: var(--text-3); }
.wiki-header-search:focus-within .header-search-shell { border-color: var(--accent-light); }
.wiki-header-search.has-results { --search-status-color: #9fd8b5; --search-status-fill: rgba(92, 158, 119, .14); }
.wiki-header-search.no-results { --search-status-color: #e4adb6; --search-status-fill: rgba(183, 103, 120, .14); }
.wiki-header-search:is(.has-results, .no-results) .header-search-shell { border-color: var(--search-status-color); background: var(--search-status-fill); }
.wiki-header-search:is(.has-results, .no-results) .wiki-search-button svg { color: var(--search-status-color); }

/* Homepage filters open in one row and apply directly to the guide cards. */
.home-intro h1 { font-size: clamp(2.2rem, 4.9vw, 3.9rem); }
.home-filter-panel { margin-top: 18px; min-width: 0; }
.home-filter-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 39px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 11px; color: var(--text); background: transparent; font: 600 13px/1.4 "IBM Plex Sans Arabic", sans-serif; cursor: pointer; }
.home-filter-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-filter-toggle:hover, .home-filter-toggle[aria-expanded="true"], .home-filter-toggle.has-active-filter { border-color: var(--accent-light); }
.filter-chevron { font: 18px/1 sans-serif; transition: transform .18s ease; }
.home-filter-toggle[aria-expanded="true"] .filter-chevron { transform: rotate(180deg); }
.home-filter-options { display: flex; flex-wrap: nowrap; gap: 9px; max-width: 100%; margin-top: 12px; padding: 2px 0 5px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.home-filter-options[hidden] { display: none; }
.home-filter-options button { flex: 0 0 auto; min-height: 37px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text-2); background: var(--card); white-space: nowrap; font: 500 13px/1.4 "IBM Plex Sans Arabic", sans-serif; cursor: pointer; }
.home-filter-options button:hover, .home-filter-options button[aria-pressed="true"] { border-color: var(--accent-light); color: var(--text); background: var(--elevated); }
.guide-cards > .guide-card[hidden] { display: none; }
@media (max-width: 680px) {
  .wiki-header-search { --search-rest-width: 108px; --search-open-width: min(180px, 100%); }
  .site-header:has(.wiki-header-search.is-open) { grid-template-columns: max-content minmax(0, 1fr) max-content; }
  .wiki-header-search.is-open .wiki-search-button { flex-basis: 32px; width: 32px; }
  .header-search-panel { padding-left: 8px; }
  .home-intro h1 { font-size: clamp(1.95rem, 9vw, 2.75rem); }
  .home-filter-panel { margin-top: 15px; }
  .home-filter-options { gap: 7px; }
  .home-filter-options button { padding: 7px 11px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wiki-header-search, .header-search-shell, .filter-chevron { transition: none; }
}

/* Accessible shared controls and guide layout. */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
#guide, #guides, #apple-guide, .apple-section, details[id] { scroll-margin-top: 110px; }
.wiki-search-dialog { overscroll-behavior: contain; }
.search-close:hover { border-color: var(--text); background: var(--elevated); }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(159, 216, 181, .2); }
.header-search-panel { animation: search-reveal .35s cubic-bezier(.22, .61, .36, 1) .12s both; }
@keyframes search-reveal { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .header-search-panel { animation: none; } }
.home-empty-state { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--text-2); }
.apple-step-head .step-title { margin: 0; font-size: 21px; line-height: 1.4; }
.key-explain .key-heading { margin: 0; font: 800 22px/1.3 "Space Grotesk", sans-serif; }
.guide .service-heading, .aio-overview .overview-heading { margin: 22px 0 0; font-size: 19px; line-height: 1.3; letter-spacing: normal; }
footer { flex-wrap: nowrap; }
h1, h2, h3 { text-wrap: balance; }

/* Nuvio release links and TV Downloader code, matching the supplied reference. */
.nuvio-tv-page .guide-section + .guide-section { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--border-soft); }
.nuvio-download-list { display: grid; gap: 16px; margin-top: 28px; }
.nuvio-download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px;
  margin-top: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: linear-gradient(115deg, #121419, #08090b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
.nuvio-download-list > .nuvio-download-card { margin-top: 0; }
.nuvio-download-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid #373a42; border-radius: 14px; color: #e6e7eb; background: #202228; }
.nuvio-download-icon svg { width: 25px; height: 25px; }
.nuvio-download-copy { flex: 1; min-width: 0; }
.nuvio-download-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.guide .nuvio-download-title h3 { margin: 0; font-size: 19px; line-height: 1.5; letter-spacing: normal; }
.nuvio-download-badge { padding: 3px 7px; border: 1px solid #30353b; border-radius: 5px; color: #9fd8b5; background: #15191c; font: 600 10px/1.4 ui-monospace, monospace; letter-spacing: .07em; }
.nuvio-download-copy p { margin: 7px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.nuvio-download-copy a { color: var(--text); text-underline-offset: 4px; }
.nuvio-download-copy a:hover { color: #fff; }
.nuvio-download-action { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 18px; border: 1px solid #343740; border-radius: 15px; color: var(--text); background: #1d2027; font: 600 13px/1.5 "IBM Plex Sans Arabic", sans-serif; text-decoration: none; cursor: pointer; transition: transform .18s cubic-bezier(.22, .61, .36, 1), background-color .18s cubic-bezier(.22, .61, .36, 1), border-color .18s cubic-bezier(.22, .61, .36, 1); }
.nuvio-download-action svg { width: 18px; height: 18px; flex: 0 0 18px; }
.nuvio-download-action b { font: 18px/1 sans-serif; }
.nuvio-download-action:hover { border-color: #858997; background: #2b2e38; }
.nuvio-download-action:active { transform: scale(.98); }
.nuvio-code-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nuvio-code-actions code { display: block; padding: 12px 15px; border: 1px solid #373a42; border-radius: 15px; color: #f4f4f7; background: #16181c; font: 500 24px/1.2 ui-monospace, monospace; letter-spacing: .13em; font-variant-numeric: tabular-nums; }
.nuvio-download-copy .nuvio-code-verify { display: inline-block; margin-top: 7px; color: var(--text-3); font-size: 12px; }
.nuvio-download-note { margin: 16px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.9; }
@media (max-width: 900px) {
  .nuvio-download-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 22px; }
  .nuvio-download-action, .nuvio-code-actions { grid-column: 2; justify-self: start; }
}
@media (max-width: 540px) {
  .nuvio-download-card { padding: 18px; border-radius: 18px; }
  .nuvio-download-action, .nuvio-code-actions { grid-column: 1 / -1; width: 100%; }
  .nuvio-code-actions { flex-wrap: wrap; }
  .nuvio-code-actions code, .nuvio-code-actions .nuvio-download-action { flex: 1; width: auto; }
  .guide .nuvio-download-title h3 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .nuvio-download-action { transition: none; } }
