/* ZEMIO IPTV — shared production stylesheet.
 * Design source: "ZEMIO Complete Redesign Prototype" (approved). Logic/behavior stays
 * with the real production JavaScript in app.js / activate.js — this file is visuals only.
 */

:root {
    /* color */
    --ink: #f3f6fc;
    --muted: #a9b5d0;
    --subtle: #6d7ba0;
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.08);
    --blue: #3865d6;
    --blue-bright: #6690ff;
    --blue-deep: #101c3d;
    --purple: #7c4dff;
    --success: #7ee2a8;
    --danger: #ffadad;
    --panel: rgba(20, 30, 58, 0.72);
    --panel-strong: rgba(20, 30, 58, 0.8);
    --field: rgba(255, 255, 255, 0.05);
    --focus: #8fb4ff;
    --surface-hover: rgba(255, 255, 255, 0.06);

    /* type: family */
    --font-heading: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    --font-body: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    /* type: scale — body/UI text */
    --text-xs: 12px;                              /* small uppercase labels (11–12px) */
    --text-sm: 14px;                               /* helper text, footer, buttons lower end */
    --text-base: 16px;                             /* body copy */
    --text-lg: 18px;                                /* card titles, FAQ questions */
    --text-xl: clamp(1.0625rem, 1vw, 1.125rem);     /* lead paragraphs (17–18px) */

    /* type: scale — headings */
    --heading-sm: 18px;                             /* card titles */
    --heading-md: clamp(1.5rem, 2vw, 1.75rem);      /* subsection titles (24–28px) */
    --heading-lg: clamp(2rem, 2.6vw, 2.25rem);      /* section / page titles (32–36px) */
    --heading-hero: clamp(2.5rem, 3.6vw, 3.5rem);   /* home hero title (40–56px) */

    /* layout */
    --content-width: 1240px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 22px;

    /* shadow */
    --shadow-card: 0 30px 75px rgba(2, 5, 14, 0.45);
    --shadow-btn: 0 12px 30px -10px rgba(102, 144, 255, 0.55);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { min-height: 100%; background: #080d1a; overflow-x: clip; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(1100px 640px at 82% -12%, rgba(56, 101, 214, 0.22), transparent 62%),
        radial-gradient(900px 700px at -10% 100%, rgba(124, 77, 255, 0.14), transparent 62%),
        linear-gradient(165deg, #0a0f1e 0%, #0d1836 50%, #0a1024 100%);
    background-attachment: fixed;
    font-family: var(--font-body);
    /* Root-level baseline: buttons, nav/lang pills, and dropdown options all
       center their text with flexbox align-items, which centers the text's
       line box, not its glyph ink. With no line-height set here they fell
       back to the browser's font-derived "normal", whose extra leading isn't
       symmetric around the glyphs, leaving text visibly off-center in both
       LTR and RTL. Paragraphs/headings set their own line-height already and
       are unaffected. */
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

a { color: #8fb4ff; text-decoration: none; }
a:hover { color: #ffffff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-heading); margin: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.wrap { width: min(var(--content-width), 100% - 48px); margin-inline: auto; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    z-index: 100;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--blue-bright);
    color: #06101f;
    font-weight: 800;
    transition: top 140ms ease;
}
.skip-link:focus { top: 12px; }

/* =========================== header / nav =========================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(8, 13, 26, 0.72);
    border-bottom: 1px solid var(--line-soft);
    direction: ltr;
}

.site-header .wrap {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex: none;
}
.brand-logo { display: block; width: 150px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; min-width: 0; flex-shrink: 1; }

.nav-links { display: flex; align-items: center; gap: 6px; }
/* .site-header forces direction:ltr to keep the logo/language picker fixed in
   place across languages, but that also pins the nav links in LTR order.
   Reverse just this inner group so Arabic reads right-to-left as
   Home -> Features -> Support, without touching the rest of the header. */
[dir="rtl"] .nav-links { flex-direction: row-reverse; }

.nav-link {
    position: relative;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: #c3cee8;
    white-space: nowrap;
}
.nav-link:hover { color: #ffffff; background: var(--purple); }
.nav-link[aria-current="page"] { color: #ffffff; }
.nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue-bright);
}

.nav-divider { width: 1px; height: 26px; margin-inline: 8px; background: var(--line); flex: none; }

.lang-picker { position: relative; flex: none; }

.lang-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 44px;
    min-width: 150px;
    padding: 0 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--purple);
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px -14px rgba(124, 77, 255, 0.8);
}
.lang-button:hover { background: #8f66ff; }
.lang-button-label { display: inline-flex; align-items: center; gap: 9px; }
.lang-flag { flex: none; display: block; width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); background-size: cover; background-position: center; }
.lang-caret { flex: none; width: 0; height: 0; border-inline-start: 5px solid transparent; border-inline-end: 5px solid transparent; border-top: 6px solid #ffffff; }

.lang-list {
    position: absolute;
    top: 52px;
    inset-inline-end: 0;
    z-index: 40;
    width: 230px;
    max-height: 330px;
    overflow-y: auto;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #101c3d;
    box-shadow: 0 30px 70px rgba(2, 5, 14, 0.6);
}
.lang-list li { margin: 0; }
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 9px;
    background: none;
    color: #c3cee8;
    text-align: start;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.lang-option:hover { background: rgba(255, 255, 255, 0.06); }
.lang-option[aria-selected="true"] { background: rgba(124, 77, 255, 0.22); color: #ffffff; }
.lang-option .lang-flag { width: 24px; height: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    padding: 0 22px;
    border-radius: 11px;
    background: linear-gradient(160deg, var(--blue-bright), var(--blue));
    color: #f6f9ff;
    font-size: var(--text-sm);
    font-weight: 600;
    box-shadow: 0 12px 30px -14px rgba(102, 144, 255, 0.7);
    white-space: nowrap;
    flex: none;
}
.nav-cta:hover { color: #ffffff; box-shadow: 0 16px 34px -12px rgba(102, 144, 255, 0.8); }
.nav-cta .play-icon {
    border-top-width: 5.5px;
    border-bottom-width: 5.5px;
    border-inline-start-width: 8px;
}
/* .site-header forces direction:ltr (see above), so .nav-cta's icon never
   moves to the other side for RTL, and its .play-icon's border-inline-start
   resolves against that forced ltr context instead of the document's real
   rtl, so it never mirrors either. Fix both explicitly: icon to the right,
   triangle pointing left. */
[dir="rtl"] .nav-cta { flex-direction: row-reverse; }
[dir="rtl"] .nav-cta .play-icon {
    border-inline-start-width: 0;
    border-inline-end: 8px solid #f6f9ff;
}

.play-icon {
    flex: none;
    width: 0; height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-inline-start: 7px solid #f6f9ff;
}
[dir="rtl"] .device-visual-link { left: auto; right: 100%; }
[dir="rtl"] .device-visual-link-dot { animation-direction: reverse; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    cursor: pointer;
    flex: none;
}
.nav-toggle:hover { background: var(--surface-hover); }
.nav-toggle-bars { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: background 120ms ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease, top 160ms ease, opacity 160ms ease;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* The existing menu is part of the header's normal flow, not a separate layer. */
.mobile-nav-panel {
    display: block;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
}
.mobile-nav-panel.is-open { opacity: 1; transform: translateY(0); }
[dir="rtl"] .mobile-nav-panel { direction: rtl; }

.mobile-nav-scroll {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 4px 24px calc(clamp(24px, 4vh, 40px) + env(safe-area-inset-bottom));
}

.mobile-nav-top {
    flex: none;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    padding: max(14px, env(safe-area-inset-top)) 0 6px;
}
.mobile-nav-close {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    cursor: pointer;
}
.mobile-nav-close:hover { background: var(--surface-hover); }
.mobile-nav-close-icon { position: relative; display: block; width: 15px; height: 15px; }
.mobile-nav-close-icon::before, .mobile-nav-close-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
    background: currentColor;
    border-radius: 2px;
}
.mobile-nav-close-icon::before { transform: rotate(45deg); }
.mobile-nav-close-icon::after { transform: rotate(-45deg); }
.mobile-nav-logo { justify-self: center; display: block; height: 35px; width: auto; }

/* All sections stay in normal flow within the content-sized panel. */
.mobile-nav-links {
    flex: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: clamp(60px, 9.5vh, 90px) auto 0;
    gap: clamp(6px, 1.6vh, 12px);
}
.mobile-nav-links .nav-link {
    padding: 15px 14px;
    border-radius: var(--radius-sm);
    font-size: 19px;
    text-align: center;
}
.mobile-nav-links .nav-link[aria-current="page"] { background: rgba(102, 144, 255, 0.12); }
.mobile-nav-links .nav-link[aria-current="page"]::after { content: none; }

.mobile-nav-bottom {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}
.mobile-nav-bottom .lang-picker { flex: none; }
.mobile-nav-bottom .lang-button {
    height: 38px;
    min-width: 0;
    padding: 0 14px;
    gap: 8px;
    border-radius: 999px;
    background: rgba(124, 77, 255, 0.14);
    border: 1px solid rgba(124, 77, 255, 0.4);
    color: #dcd2ff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}
.mobile-nav-bottom .lang-button:hover { background: rgba(124, 77, 255, 0.22); }
.mobile-nav-bottom .lang-button-label { gap: 7px; }
.mobile-nav-bottom .lang-flag { width: 18px; height: 12px; }
.mobile-nav-bottom .lang-caret { border-top-color: #dcd2ff; }
/* Positioning, rounding and shadow live on this outer clip wrapper rather than
   on the scrollable <ul> itself: Chromium does not clip a native scrollbar to
   its own element's border-radius, so at the scroll extremes the thumb pokes
   out past the rounded corners. A separate overflow:hidden ancestor clips the
   whole child (including its scrollbar) correctly. */
.mobile-nav-bottom .lang-list-clip {
    position: absolute;
    top: auto;
    bottom: 46px;
    /* Physical offsets keep the same centered anchor in both LTR and RTL. */
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #101c3d;
    box-shadow: 0 30px 70px rgba(2, 5, 14, 0.6);
    z-index: 40;
}
.mobile-nav-bottom .lang-list {
    position: static;
    inset-inline-end: auto;
    width: 100%;
    max-height: min(260px, 45vh);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: none;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    z-index: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
/* Keep the thin scrollbar always rendered instead of the browser's default
   fade-on-idle overlay thumb. */
.mobile-nav-bottom .lang-list::-webkit-scrollbar { width: 4px; }
.mobile-nav-bottom .lang-list::-webkit-scrollbar-track { background: transparent; }
.mobile-nav-bottom .lang-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}
.mobile-nav-cta { width: 100%; height: 54px; border-radius: 13px; font-size: 16px; }

@media (min-width: 900px) {
    .nav-toggle, .mobile-nav-panel { display: none; }
    .site-header .wrap { height: 86px; }
}
@media (max-width: 899px) {
    .site-header { position: relative; }
    html.nav-open .site-header {
        background: linear-gradient(180deg, #0a0f1e, #060a14);
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .main-nav > .nav-links, .main-nav > .lang-picker, .main-nav > .nav-divider { display: none; }
    .nav-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
    .main-nav > .nav-cta { display: none; }
}
@media (max-width: 340px) {
    .mobile-nav-scroll { padding-left: 16px; padding-right: 16px; }
    .mobile-nav-links .nav-link { font-size: 17px; }
}

/* =========================== buttons =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: box-shadow 160ms ease, background 160ms ease, opacity 160ms ease, transform 160ms ease;
}
.btn-primary { background: linear-gradient(160deg, var(--blue-bright), var(--blue)); color: #f6f9ff; }
.btn-primary:hover:not(:disabled) { box-shadow: var(--shadow-btn); }
.btn-primary:disabled { cursor: default; opacity: 0.5; box-shadow: none; }
.btn-secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.04); color: #e4e9f8; }
.btn-secondary:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.btn-tonal { border-color: rgba(102, 144, 255, 0.4); background: rgba(102, 144, 255, 0.1); color: #8fb4ff; }
.btn-tonal:hover { color: #ffffff; background: rgba(102, 144, 255, 0.18); }

/* =========================== eyebrow / section heads =========================== */

.eyebrow { margin: 0 0 14px; font-family: var(--font-heading); color: var(--blue-bright); font-size: clamp(12px, 0.9vw, 13.5px); font-weight: 700; letter-spacing: 0.16em; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.section-head h2 { font-size: var(--heading-lg); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; }
.section-lede { max-width: 44ch; margin: 0; color: var(--muted); font-size: var(--text-base); line-height: 1.6; }

/* =========================== page shell =========================== */

main { flex: 1 1 auto; }

.page-head { max-width: 60ch; margin-bottom: clamp(32px, 4vh, 52px); }
.page-head h1 { font-size: var(--heading-lg); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 14px; }
.page-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: var(--text-xl); line-height: 1.6; }
.page-section { padding: clamp(40px, 5vh, 72px) 0 clamp(48px, 6vh, 88px); }

/* =========================== home / hero =========================== */

.hero-section { padding: clamp(48px, 6vh, 84px) 0 clamp(48px, 6vh, 88px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) {
    .hero-section { padding-top: clamp(64px, 7vh, 96px); padding-bottom: clamp(56px, 7vh, 96px); }
}
.hero-copy { flex: 1 1 360px; max-width: 560px; min-width: 0; }
.hero-copy h1 { font-size: var(--heading-hero); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; }
.hero-copy p { margin: 22px 0 0; color: var(--muted); font-size: var(--text-xl); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-actions .btn { height: 58px; padding: 0 30px; font-size: var(--text-base); border-radius: 13px; }
.hero-actions .btn .play-icon {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-inline-start-width: 9px;
}
.hero-fine { margin: 22px 0 0; color: var(--subtle); font-size: 14px; line-height: 1.6; }

.hero-visual { position: relative; flex: 1 1 620px; min-width: 0; max-width: 620px; }
.hero-visual-glow { position: absolute; inset: -14% 0; background: radial-gradient(circle at 60% 40%, rgba(90, 133, 240, 0.30), transparent 64%); filter: blur(6px); pointer-events: none; }
.hero-frame { position: relative; padding: 2px; border-radius: 13px; border: 1px solid var(--line); background: linear-gradient(160deg, #2b3d6b, #17234a 55%, #101a38); box-shadow: 0 40px 90px -20px rgba(2, 6, 16, 0.75), 0 0 150px -30px rgba(90, 133, 240, 0.5); }
.hero-frame-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 11px; overflow: hidden; background: #070c17; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6); }
.hero-frame-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-visual-neck { width: 11%; height: 34px; margin: 0 auto; background: linear-gradient(180deg, #33456f, #1a2547); border: 1px solid var(--line); border-top: none; border-radius: 0 0 4px 4px; }
.hero-visual-base { width: 30%; height: 16px; margin: 0 auto; border: 1px solid var(--line); border-radius: 4px 4px 10px 10px; background: linear-gradient(180deg, #3a4c78, #141c34); box-shadow: 0 26px 40px -14px rgba(56, 101, 214, 0.45); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

.qr-route-status { width: min(var(--content-width), 100% - 48px); margin: 44px auto; color: var(--subtle); text-align: center; font-size: 18px; }
.qr-route-status.is-error { color: #ffbcbc; }

/* =========================== playlist transfer =========================== */
.playlist-transfer-main { min-height: calc(100vh - 190px); }
.playlist-transfer-view { width: min(680px, calc(100% - 40px)); padding-top: clamp(46px, 8vw, 90px); padding-bottom: clamp(64px, 10vw, 110px); }
.playlist-transfer-head { text-align: center; margin-bottom: 30px; }
.playlist-transfer-card { padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: rgba(8, 15, 36, 0.82); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3); }
#playlist-transfer-fields { display: grid; gap: 20px; }
#playlist-transfer-fields select { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--text); font: inherit; }
#playlist-transfer-fields select:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(143, 180, 255, 0.2); outline: none; }
#playlist-transfer-save { width: 100%; justify-content: center; }
.playlist-transfer-spinner { width: 18px; height: 18px; margin-inline-end: 10px; border: 2px solid rgba(255,255,255,0.38); border-top-color: #fff; border-radius: 50%; animation: playlist-transfer-spin 700ms linear infinite; }
.playlist-transfer-message { margin: 0; padding: 14px 16px; border: 1px solid rgba(102, 144, 255, 0.3); border-radius: 12px; background: rgba(102, 144, 255, 0.1); color: #a9c5ff; font-size: 15px; line-height: 1.55; }
.playlist-transfer-message.is-success { border-color: rgba(126, 226, 168, 0.34); background: rgba(126, 226, 168, 0.1); color: #9aebbb; }
.playlist-transfer-message.is-error { border-color: rgba(255, 173, 173, 0.3); background: rgba(255, 173, 173, 0.08); color: #ffbcbc; }
@keyframes playlist-transfer-spin { to { transform: rotate(360deg); } }
.feature-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)), rgba(20, 30, 58, 0.6); }
.feature-card h3 { font-size: var(--heading-sm); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.feature-card--icon { text-align: center; }
.feature-card-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--blue-bright)); box-shadow: 0 14px 28px -10px rgba(124, 77, 255, 0.55); }
.feature-card-icon svg { width: 22px; height: 22px; color: #fff; }
.feature-card-icon svg.icon-flat { width: 23px; height: 17.25px; }
.feature-card-icon svg.icon-boost { width: 30px; height: 30px; }

.steps-section { border-top: 1px solid var(--line-soft); padding: clamp(32px, 4vh, 52px) 0; display: flex; flex-wrap: wrap; gap: clamp(24px, 3.5vw, 48px); align-items: center; }
.steps-copy { flex: 1 1 300px; min-width: 0; }
.steps-copy h2 { font-size: var(--heading-md); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 12px; }
.steps-copy p { max-width: 38ch; margin: 0 0 18px; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }
.steps-list { flex: 1 1 420px; min-width: 0; display: grid; gap: 10px; }
.step-row { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)), rgba(20, 30, 58, 0.6); }
.step-row-index { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(102, 144, 255, 0.4); background: rgba(102, 144, 255, 0.12); font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: #8fb4ff; }
.step-row p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }

.about-band { border-top: 1px solid var(--line-soft); background: rgba(8, 13, 26, 0.35); padding: clamp(28px, 3.5vh, 44px) 0; }
.about-card { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.03); }
.about-card h2 { flex: none; font-size: var(--text-lg); font-weight: 700; letter-spacing: 0.01em; color: #e4e9f8; white-space: nowrap; }
.about-card p { flex: 1 1 420px; min-width: 0; margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }

/* =========================== activation page =========================== */

.activate-grid { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); align-items: start; }
.activate-primary { flex: 1 1 420px; min-width: 0; }

.device-visual { position: relative; margin-bottom: 34px; }
.device-visual-glow { position: absolute; inset: -10%; background: radial-gradient(circle at 50% 45%, rgba(90, 133, 240, 0.26), transparent 66%); filter: blur(6px); pointer-events: none; }
.device-visual-frame { position: relative; padding: 13px; border-radius: var(--radius-xl); border: 1px solid var(--line-soft); background: linear-gradient(160deg, #2b3d6b, #17234a 55%, #101a38); box-shadow: 0 34px 80px -20px rgba(2, 6, 16, 0.7), 0 0 140px -28px rgba(90, 133, 240, 0.45); }
.device-visual-screen { aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(22px, 3vw, 34px); border-radius: 13px; background-color: #05080f; background-image: radial-gradient(circle at 24% 16%, rgba(56, 101, 214, 0.28), transparent 58%); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6); }
.device-visual-brand { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-heading); color: #d9e2fb; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; }
.device-visual-brand::before { content: ""; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-inline-start: 6px solid var(--blue-bright); }
.device-visual-label { margin: 0 0 4px; font-family: var(--font-heading); color: var(--subtle); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; }
.device-visual-value { margin: 0; font-family: var(--font-mono); font-size: clamp(17px, 2vw, 24px); font-weight: 700; letter-spacing: 0.04em; color: #8fb4ff; }
.device-visual-neck { width: 13%; height: 18px; margin: 0 auto; background: linear-gradient(180deg, #141c34, #0a0e1c); }
.device-visual-base { width: 42%; height: 9px; margin: 0 auto; border-radius: 6px; background: linear-gradient(180deg, #131a30, #090c17); box-shadow: 0 20px 32px -12px rgba(56, 101, 214, 0.35); }

.device-visual-link { display: none; }
.device-visual-link::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 2px dashed rgba(143, 180, 255, 0.4); transform: translateY(-50%); }
.device-visual-link-dot { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 10px 2px rgba(143, 180, 255, 0.65); animation: device-visual-link-move 2.6s ease-in-out infinite; }
@keyframes device-visual-link-move {
    0% { left: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: calc(100% - 8px); opacity: 0; }
}

.activate-primary h2 { font-size: var(--heading-md); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.activate-primary > p { max-width: 52ch; margin: 0 0 22px; color: var(--muted); font-size: var(--text-base); line-height: 1.7; }
.credential-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.credential-steps li { display: flex; gap: 14px; align-items: center; color: #c3cee8; font-size: var(--text-base); }
.credential-steps li::before { content: attr(data-step); flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }

.lookup-card {
    flex: 1 1 400px;
    max-width: 480px;
    min-width: 0;
    padding: clamp(28px, 3vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)), var(--panel-strong);
    box-shadow: var(--shadow-card);
}
.lookup-card h2 { font-size: var(--heading-md); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }

.activation-form { display: grid; gap: 20px; }
.field { display: grid; gap: 9px; }
.field label { color: #e4e9f8; font-size: 15px; font-weight: 700; }
#playlist-transfer-fields .field label,
#playlist-transfer-fields .field input,
#playlist-transfer-fields .field input::placeholder { direction: ltr; text-align: left; }
.field input {
    width: 100%;
    height: 60px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    color: var(--ink);
    background: var(--field);
    font: inherit;
    font-family: var(--font-mono);
    font-size: 17px;
    letter-spacing: 0.05em;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.field input::placeholder { color: #6d7896; opacity: 1; }
.field.has-password-toggle { position: relative; }
.password-toggle {
    position: absolute;
    right: 12px;
    bottom: 10px;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
}
.password-toggle:hover, .password-toggle:focus-visible { color: var(--text-primary); }
.password-toggle-eye-icon { display: block; width: 28px; height: 28px; }
[dir="rtl"] .password-toggle { left: 12px; right: auto; }
/* Keep Arabic placeholders at the RTL start of the field while input values
 * remain LTR so MAC addresses and device keys can be entered unchanged. */
[dir="rtl"] .activation-form .field input::placeholder {
    direction: rtl;
    text-align: right;
    letter-spacing: normal;
}
[dir="rtl"] #playlist-transfer-fields .field label,
[dir="rtl"] #playlist-transfer-fields .field input,
[dir="rtl"] #playlist-transfer-fields .field input::placeholder { direction: rtl; text-align: right; }
.field input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(143, 180, 255, 0.2); background: rgba(255, 255, 255, 0.08); }
.field input.has-error { border-color: #ff8b8b; }
.field input:disabled { opacity: 0.6; }
.field-error { margin: 0; color: var(--danger); font-size: 14px; line-height: 1.4; }
.field-error:empty { display: none; }

.lookup-card .btn-primary { width: 100%; min-height: 58px; font-size: var(--text-base); }
.form-error { display: flex; gap: 10px; margin: 0; padding: 14px 16px; border: 1px solid rgba(255, 173, 173, 0.3); border-radius: 12px; background: rgba(255, 173, 173, 0.08); color: #ffbcbc; font-size: 15px; line-height: 1.55; }

/* =========================== device dashboard =========================== */

.device-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 3.5vh, 44px); }
.device-head .page-head { margin-bottom: 0; }

.device-summary { padding: clamp(26px, 2.6vw, 38px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)), rgba(20, 30, 58, 0.72); box-shadow: 0 30px 75px rgba(2, 5, 14, 0.4); }
.device-summary dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(20px, 2.5vw, 40px); margin: 0; }
.device-summary dt { margin: 0 0 10px; font-family: var(--font-heading); color: var(--subtle); font-size: 13.5px; font-weight: 700; letter-spacing: 0.14em; }
.device-summary dd { margin: 0; font-family: var(--font-mono); font-size: clamp(19px, 1.7vw, 24px); font-weight: 700; letter-spacing: 0.03em; }
.device-status-summary { text-align: center; }
.device-status-summary dd { display: flex; justify-content: center; }
.device-summary dd.muted-value { color: #c3cee8; font-size: clamp(15px, 1.3vw, 18px); font-weight: 600; }

.status-pill { display: inline-flex; padding: 8px 16px; border-radius: 999px; font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.08em; }
.status-pill.status-trial { border: 1px solid rgba(102, 144, 255, 0.38); background: rgba(102, 144, 255, 0.14); color: #8fb4ff; }
.status-pill.status-expired { border: 1px solid rgba(255, 173, 173, 0.34); background: rgba(255, 173, 173, 0.12); color: #ffadad; }
.status-pill.status-active { border: 1px solid rgba(126, 226, 168, 0.34); background: rgba(126, 226, 168, 0.12); color: #7ee2a8; }

.device-note { display: flex; align-items: center; gap: 14px; margin: 20px 0 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.035); color: #c3cee8; font-size: 16px; line-height: 1.6; }

.plans-section { margin-top: clamp(36px, 4.5vh, 60px); }
.plans-head { margin-bottom: 28px; }
.plans-head h2 { font-size: var(--heading-lg); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; }
.plans-head p { margin: 0; color: var(--muted); font-size: var(--text-xl); line-height: 1.6; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(26px, 2.6vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), rgba(20, 30, 58, 0.6);
    color: var(--ink);
    text-align: start;
    font: inherit;
    cursor: pointer;
    min-height: 250px;
}
.plan-card:hover { border-color: rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.06); }
.plan-card.is-emphasized { border-color: var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), rgba(20, 30, 58, 0.6); }
.plan-card.is-emphasized:hover { border-color: rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.06); }
.plan-card[aria-pressed="true"] { border-color: var(--purple); background: linear-gradient(160deg, rgba(124, 77, 255, 0.18), rgba(102, 144, 255, 0.08)), rgba(20, 30, 58, 0.72); box-shadow: inset 0 0 0 2px var(--purple), 0 0 0 4px rgba(124, 77, 255, 0.18); }
.plan-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-card-name { font-family: var(--font-heading); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.plan-card-check { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.76); background: rgba(255, 255, 255, 0.08); display: inline-flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.72); font-size: 15px; font-weight: 800; }
.plan-card[aria-pressed="true"] .plan-card-check { background: var(--purple); border-color: var(--purple); color: #ffffff; }
.plan-card-desc { color: var(--muted); font-size: 16px; line-height: 1.6; }
.plan-card-price { margin-top: auto; display: grid; gap: 6px; }
.plan-card-price-value { font-family: var(--font-mono); font-size: clamp(28px, 3vw, 36px); font-weight: 800; letter-spacing: -0.03em; color: var(--purple); }

.success-grid { margin-top: clamp(28px, 3.5vh, 44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.success-card { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(30px, 3vw, 44px); border: 1px solid rgba(126, 226, 168, 0.28); border-radius: var(--radius-xl); background: linear-gradient(160deg, rgba(126, 226, 168, 0.12), rgba(126, 226, 168, 0.02)), rgba(20, 30, 58, 0.6); }
.success-check { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(126, 226, 168, 0.4); background: rgba(126, 226, 168, 0.14); color: #7ee2a8; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; }
.success-card h2 { font-size: var(--heading-md); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.success-card p { margin: 0; max-width: 44ch; color: #c3cee8; font-size: var(--text-xl); line-height: 1.6; }
.next-steps-card { display: grid; gap: 14px; padding: clamp(26px, 2.6vw, 38px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(255, 255, 255, 0.03); align-content: start; }
.next-steps-card h3 { font-size: var(--heading-sm); font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.next-steps-card p { margin: 0; color: var(--muted); font-size: var(--text-base); line-height: 1.65; }
.next-steps-card .btn-secondary { justify-self: start; margin-top: 6px; }

/* =========================== confirmation modal =========================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 7, 16, 0.74);
    backdrop-filter: blur(4px);
}
.modal {
    width: 100%;
    max-width: 460px;
    padding: clamp(26px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)), #101c3d;
    box-shadow: 0 40px 90px rgba(2, 5, 14, 0.6);
}
.modal h2 { font-size: var(--heading-md); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 22px; }
.modal-meta { display: grid; gap: 16px; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.modal-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal-row dt { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.modal-row dd { margin: 0; font-size: 16px; font-weight: 700; font-family: var(--font-mono); }
.modal-note { margin: 0 0 24px; color: var(--muted); font-size: var(--text-base); line-height: 1.65; }
.modal-status { margin: -8px 0 22px; padding: 14px 16px; border: 1px solid rgba(102, 144, 255, 0.3); border-radius: 12px; background: rgba(102, 144, 255, 0.1); color: #8fb4ff; font-size: 15px; line-height: 1.55; }
.modal-actions { display: flex; gap: 14px; }
.modal-actions .btn { flex: 1; min-height: 50px; font-size: 16px; }
.modal-actions .btn-primary { flex: 1.2; }

/* =========================== support =========================== */

.support-grid { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); align-items: start; }
.faq-list { flex: 1 1 480px; min-width: 0; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), rgba(20, 30, 58, 0.55); overflow: hidden; }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 24px 26px;
    border: none;
    background: none;
    color: var(--ink);
    text-align: start;
    font: inherit;
    font-family: var(--font-heading);
    font-size: var(--heading-sm);
    font-weight: 700;
    cursor: pointer;
}
.faq-question:hover { color: #ffffff; background: rgba(255, 255, 255, 0.04); }
.faq-icon { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: #8fb4ff; font-size: 17px; font-weight: 700; line-height: 1; transition: transform 140ms ease; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { margin: 0; padding: 0 26px 26px; color: var(--muted); font-size: var(--text-base); line-height: 1.7; max-width: 70ch; }

.support-aside { flex: 1 1 300px; max-width: 380px; min-width: 0; display: grid; gap: 16px; padding: clamp(26px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)), rgba(20, 30, 58, 0.7); position: sticky; top: 100px; }
.support-aside h2 { font-size: var(--heading-md); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.support-aside p { margin: 0; color: var(--muted); font-size: var(--text-base); line-height: 1.65; }
.support-aside a[href^="mailto"] { font-family: var(--font-mono); font-size: var(--text-base); font-weight: 600; word-break: break-all; }
.support-aside-divider { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.support-aside-label { margin: 0 0 10px; font-family: var(--font-heading); color: var(--subtle); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; }

/* =========================== legal pages =========================== */

.legal-meta { margin: 0; color: var(--subtle); font-size: var(--text-sm); }
.legal-meta span { font-family: var(--font-mono); }

.legal-grid { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); align-items: start; }
.legal-toc { flex: 0 1 230px; position: sticky; top: 100px; display: grid; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.03); }
.legal-toc-label { margin: 0 0 10px; font-family: var(--font-heading); color: var(--subtle); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; }
.legal-toc a { display: block; padding: 7px 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.4; }
.legal-toc a:hover { color: #ffffff; }

.legal-article { flex: 1 1 460px; min-width: 0; display: grid; gap: 34px; max-width: 74ch; }
.legal-article section h2 { font-size: var(--heading-md); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.legal-article section p { margin: 0 0 14px; color: #c3cee8; font-size: var(--text-base); line-height: 1.7; }
.legal-article section p:last-child { margin-bottom: 0; }
.legal-article section ul { margin: 0 0 14px; padding-inline-start: 22px; display: grid; gap: 8px; color: var(--muted); font-size: var(--text-base); line-height: 1.7; }

/* =========================== footer =========================== */

.site-footer { border-top: 1px solid var(--line-soft); background: rgba(6, 10, 20, 0.5); }
.site-footer .wrap { padding: 44px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-tagline { margin: 0; color: var(--subtle); font-size: 15px; font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--muted); font-size: 15px; font-weight: 700; }
.footer-nav a:hover { color: #ffffff; }
[dir="rtl"] .site-footer .wrap { flex-direction: row-reverse; }
@media (max-width: 899px) {
    .site-footer .wrap > div { order: 2; }
    .footer-nav { order: 1; }
    /* row-reverse makes flex-start the left edge in an RTL row, so a lone
       wrapped item (only one per stacked line here) would hug the left;
       reset to row so each line's item lands on the right, matching RTL. */
    [dir="rtl"] .site-footer .wrap { flex-direction: row; }
}

/* =========================== RTL heading adjustments =========================== */
/* Arabic diacritics/glyph extents need more vertical room than the Latin line-heights
   above provide; negative Latin tracking also crowds joined Arabic letterforms. */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .faq-question {
    letter-spacing: normal;
}

[dir="rtl"] .hero-copy h1 { line-height: 1.28; }

[dir="rtl"] .section-head h2,
[dir="rtl"] .page-head h1,
[dir="rtl"] .steps-copy h2,
[dir="rtl"] .plans-head h2 {
    line-height: 1.35;
}

[dir="rtl"] .activate-primary h2,
[dir="rtl"] .lookup-card h2,
[dir="rtl"] .support-aside h2,
[dir="rtl"] .modal h2,
[dir="rtl"] .legal-article section h2,
[dir="rtl"] .success-card h2 {
    line-height: 1.4;
}

[dir="rtl"] .feature-card h3,
[dir="rtl"] .next-steps-card h3,
[dir="rtl"] .faq-question {
    line-height: 1.45;
}

/* =========================== responsive =========================== */

@media (max-width: 1024px) {
    .support-aside, .legal-toc { position: static; }
}

@media (min-width: 761px) {
    .device-visual { max-width: 88%; margin-inline: auto; }
    .device-visual-link { display: block; position: absolute; top: 50%; left: 100%; width: calc(6.82% + clamp(28px, 4vw, 64px)); transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .device-visual-link-dot { animation: none; left: calc(50% - 4px); opacity: 1; }
}

@media (max-width: 760px) {
    .device-visual-frame { padding: 10px; }
}

@media (max-width: 430px) {
    .plan-grid { grid-template-columns: 1fr; }
    .modal { padding: 22px; border-radius: 16px; }
    .device-summary dl { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .brand-logo { width: 142px; }
    .lookup-card, .device-summary { padding: 22px; }
}
