:root {
    --hp-teal: #1BA7C8;
    --hp-teal-deep: #0E6F8A;
    --hp-teal-soft: #e6f7fb;
    --hp-ink: #0B1B2B;
    --hp-muted: #5b6b76;
    --hp-line: #d5e3ec;
    --hp-bg: #f7fafc;
    --hp-soft: #eef7fb;
    --hp-card: #ffffff;
    --hp-footer: #0B1B2B;
    --hp-shadow: 0 18px 40px rgba(11, 27, 43, 0.08);
    --hp-radius: 18px;
    --hp-font: "Plus Jakarta Sans", "Noto Sans Arabic", sans-serif;
    --hp-max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }

body {
    margin: 0;
    color: var(--hp-ink);
    background: var(--hp-bg);
    font-family: var(--hp-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] { font-family: "Noto Sans Arabic", "Plus Jakarta Sans", sans-serif; }

/* Keep Latin punctuation stable when page dir is RTL but copy is still English. */
.hp-lead,
.hp-hero-copy p,
.hp-section-head p,
.hp-feature-card p,
.hp-cta-banner p,
.hp-footer p {
    unicode-bidi: plaintext;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

[hidden] { display: none !important; }

.hp-skip {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    background: var(--hp-teal);
    color: #fff;
    z-index: 10000;
    text-decoration: none;
    border-radius: 8px;
}
.hp-skip:focus,
.hp-skip:focus-visible {
    position: fixed;
    inset-inline-start: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.6rem 1rem;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
}

.hp-container {
    width: min(100% - 2rem, var(--hp-max));
    margin-inline: auto;
}

.hp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 252, 254, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(220, 229, 234, 0.8);
}

.hp-header-inner {
    width: min(100% - 2rem, var(--hp-max));
    margin-inline: auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hp-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 0.92rem;
    color: var(--hp-ink);
    flex-shrink: 0;
}

.hp-brand-mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.hp-brand-light { color: #fff; }

.hp-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-inline: auto;
}

.hp-nav a {
    text-decoration: none;
    color: var(--hp-muted);
    font-weight: 600;
    font-size: 0.92rem;
}

.hp-nav a:hover,
.hp-nav a:focus-visible {
    color: var(--hp-teal);
}

.hp-header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-inline-start: auto;
}

.hp-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--hp-line);
    border-radius: 10px;
    background: #fff;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hp-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--hp-ink);
}

.hp-lang,
.hp-nav-signin {
    border: 0;
    background: transparent;
    color: var(--hp-muted);
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    padding: 0.4rem 0.55rem;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 46px;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hp-btn:hover { transform: translateY(-1px); }
.hp-btn-sm { min-height: 40px; padding: 0.55rem 1rem; font-size: 0.88rem; }

.hp-btn-primary {
    background: var(--hp-teal);
    color: #fff;
}
.hp-btn-primary:hover { background: var(--hp-teal-deep); }

.hp-btn-outline {
    background: transparent;
    border-color: var(--hp-teal);
    color: var(--hp-teal);
}
.hp-btn-outline:hover {
    background: var(--hp-teal-soft);
}

.hp-hero {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
    overflow: hidden;
}

.hp-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.hp-eyebrow {
    margin: 0 0 0.8rem;
    color: var(--hp-teal);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.hp-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    max-width: 12ch;
}

.hp-accent-text { color: var(--hp-teal); }

.hp-lead {
    margin: 1rem 0 0;
    color: var(--hp-muted);
    font-size: 1.05rem;
    max-width: 38ch;
}

.hp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hp-social-proof {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.hp-avatars {
    display: flex;
}
.hp-avatars span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-inline-end: -10px;
    background: linear-gradient(135deg, #9edced, var(--hp-teal));
}
.hp-avatars span:nth-child(2) { background: linear-gradient(135deg, #7bb8d9, #2f6f8f); }
.hp-avatars span:nth-child(3) { background: linear-gradient(135deg, #b7c7d8, #51657a); }
.hp-avatars span:nth-child(4) { background: linear-gradient(135deg, #8ecfc0, #2f7d6f); }

.hp-social-proof strong {
    display: block;
    font-size: 1rem;
}
.hp-social-proof span {
    color: var(--hp-muted);
    font-size: 0.85rem;
}

.hp-hero-visual {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.2rem;
}

.hp-glow {
    position: absolute;
    inset: 12% 8% auto;
    height: 70%;
    background: radial-gradient(circle at 50% 40%, rgba(13, 102, 103, 0.22), transparent 68%);
    pointer-events: none;
}

.hp-device {
    background: #101820;
    box-shadow: var(--hp-shadow);
}

.hp-device-laptop {
    width: 100%;
    max-width: 540px;
    margin-inline-start: auto;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.hp-laptop-lid {
    border-radius: 16px 16px 10px 10px;
    padding: 10px;
    background: linear-gradient(180deg, #1b2a35, #0f171e);
    box-shadow: 0 24px 48px rgba(24, 44, 57, 0.22);
}

.hp-laptop-base {
    height: 12px;
    margin: 0 auto;
    width: 108%;
    margin-inline-start: -4%;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(180deg, #243542, #152029);
    position: relative;
}
.hp-laptop-base i {
    position: absolute;
    left: 50%;
    top: 3px;
    width: 18%;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #3a5160;
}

.hp-device-phone {
    position: absolute;
    right: 2%;
    bottom: 0;
    width: 158px;
    border-radius: 24px;
    padding: 8px;
    border: 3px solid #243240;
    background: #0d141a;
    z-index: 2;
    box-shadow: 0 18px 36px rgba(24, 44, 57, 0.28);
}

body[dir="rtl"] .hp-device-phone {
    right: auto;
    left: 2%;
}

.hp-phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 42%;
    height: 8px;
    border-radius: 999px;
    background: #1a242c;
    z-index: 2;
}

.hp-device-screen {
    background: linear-gradient(180deg, #f8fcfc, #eef5f5);
    border-radius: 12px;
    overflow: hidden;
}

.hp-device-laptop .hp-device-screen { min-height: 280px; }
.hp-device-phone .hp-device-screen {
    min-height: 270px;
    padding: 18px 10px 10px;
    border-radius: 16px;
}

.hp-dash {
    display: grid;
    grid-template-columns: 54px 1fr;
    min-height: 280px;
}

.hp-dash-side {
    background: linear-gradient(180deg, #1BA7C8, #0E6F8A);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hp-dash-brand {
    height: 18px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.28);
    margin-bottom: 6px;
}
.hp-dash-nav {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}
.hp-dash-nav.active { background: rgba(255, 255, 255, 0.75); width: 86%; }

.hp-dash-main { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.hp-dash-topbar { display: flex; gap: 8px; align-items: center; }
.hp-dash-search {
    flex: 1;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d7e4e4;
}
.hp-dash-pill {
    width: 54px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1BA7C8, #2BB8D6);
}

.hp-dash-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.hp-kpi {
    background: #fff;
    border: 1px solid #d7e4e4;
    border-radius: 10px;
    padding: 8px;
    min-height: 62px;
}
.hp-kpi i {
    display: block;
    width: 42%;
    height: 6px;
    border-radius: 999px;
    background: #c9d9d9;
    margin-bottom: 6px;
}
.hp-kpi b {
    display: block;
    width: 58%;
    height: 10px;
    border-radius: 4px;
    background: #182c39;
    margin-bottom: 8px;
}
.hp-spark { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.hp-spark em {
    flex: 1;
    display: block;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, #4BC4DE, #1BA7C8);
    height: 40%;
}
.hp-spark em:nth-child(2) { height: 70%; }
.hp-spark em:nth-child(3) { height: 55%; }
.hp-spark em:nth-child(4) { height: 90%; }
.hp-spark em:nth-child(5) { height: 65%; }
.hp-spark.tall { height: 22px; }

.hp-dash-panels {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8px;
    flex: 1;
}
.hp-panel {
    background: #fff;
    border: 1px solid #d7e4e4;
    border-radius: 10px;
    padding: 8px;
}
.hp-chart { position: relative; overflow: hidden; }
.hp-chart-line {
    position: absolute;
    inset: 18% 10% 28%;
    border-radius: 40% 60% 30% 70%;
    border-top: 2px solid #1BA7C8;
    opacity: 0.55;
}
.hp-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 100%;
    min-height: 88px;
    padding-top: 12px;
}
.hp-chart-bars span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, rgba(13, 102, 103, 0.35), rgba(13, 102, 103, 0.9));
    height: 42%;
}
.hp-chart-bars span:nth-child(2) { height: 68%; }
.hp-chart-bars span:nth-child(3) { height: 52%; }
.hp-chart-bars span:nth-child(4) { height: 84%; }
.hp-chart-bars span:nth-child(5) { height: 60%; }
.hp-chart-bars span:nth-child(6) { height: 74%; }
.hp-chart-bars span:nth-child(7) { height: 48%; }

.hp-list { display: flex; flex-direction: column; gap: 8px; }
.hp-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.hp-list-row span {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #d7e4e4;
}
.hp-list-row em {
    width: 28px;
    height: 14px;
    border-radius: 999px;
    background: #e6f7fb;
    border: 1px solid #c5dddd;
}
.hp-list-row:nth-child(2) em { background: #1BA7C8; border-color: #1BA7C8; }

.hp-phone-status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.hp-phone-status span {
    width: 28%;
    height: 5px;
    border-radius: 999px;
    background: #c9d6d6;
}
.hp-phone-hero-card {
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1BA7C8, #2BB8D6);
    min-height: 54px;
}
.hp-phone-hero-card b,
.hp-phone-hero-card i {
    display: block;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
}
.hp-phone-hero-card b { width: 55%; height: 8px; margin-bottom: 8px; }
.hp-phone-hero-card i { width: 35%; height: 6px; opacity: 0.7; }

.hp-phone-block {
    height: 34px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #d7e4e4;
    margin-bottom: 8px;
    box-shadow: inset 0 -12px 0 #eef7f7;
}
.hp-phone-block.short { height: 24px; width: 72%; }

.hp-phone-dock {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.hp-phone-dock span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b7cbcb;
}

.hp-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: min(240px, 42vw);
}
.hp-user-link {
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--hp-teal);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 0.35rem 0.45rem;
}

.hp-trust {
    padding: 1.5rem 0 2rem;
    border-block: 1px solid var(--hp-line);
    background: #fff;
}

.hp-trust-label {
    margin: 0 0 1rem;
    text-align: center;
    color: var(--hp-muted);
    font-weight: 600;
    font-size: 0.92rem;
}

.hp-customer-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
    align-items: center;
}

.hp-customer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-align: center;
    opacity: 0.85;
    filter: grayscale(0.35);
}

.hp-customer-item img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.hp-customer-item span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--hp-muted);
}

.hp-section {
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.hp-section-soft { background: var(--hp-soft); }

.hp-section-head {
    margin-bottom: 2rem;
    max-width: 40rem;
}
.hp-section-head.hp-center {
    margin-inline: auto;
    text-align: center;
}
.hp-section-head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
}
.hp-section-head p {
    margin: 0.7rem 0 0;
    color: var(--hp-muted);
}

.hp-section-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
}

.hp-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.hp-feature-card,
.hp-product-card,
.hp-pack-card {
    background: var(--hp-card);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    padding: 1.25rem;
    box-shadow: var(--hp-shadow);
}

.hp-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--hp-teal-soft);
    color: var(--hp-teal);
    margin-bottom: 0.9rem;
}

.hp-feature-card h3,
.hp-product-card h3,
.hp-pack-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.hp-feature-card p,
.hp-product-card p,
.hp-pack-card p {
    margin: 0;
    color: var(--hp-muted);
    font-size: 0.94rem;
}

.ac-pack-icons {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    min-height: 44px;
}

.ac-pack-icons img,
.ac-pack-icon-fallback {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--hp-line);
    background: #fff;
    object-fit: cover;
}

.ac-pack-icon-fallback {
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--hp-teal-deep);
    background: var(--hp-teal-soft);
}

.ac-pack-icon-more {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hp-muted);
}

.ad-pack-hero-icons img,
.ad-pack-hero-icons .ac-pack-icon-fallback {
    width: 48px;
    height: 48px;
}

.ad-pack-included {
    margin-top: 1.25rem;
}

.ad-pack-included h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
}

.ad-pack-app-list {
    display: grid;
    gap: 0.5rem;
}

.ad-pack-app-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    background: #fff;
}

.ad-pack-app-row img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.hp-product-grid,
.hp-pack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.hp-product-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.hp-product-card:hover {
    transform: translateY(-3px);
    border-color: #9fc9c9;
}
.hp-product-card .hp-cta-row {
    margin-top: auto;
}
.hp-product-cta {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-weight: 800;
}

.hp-product-visual {
    border-radius: 14px;
    background: linear-gradient(160deg, #dff1f1, #fff 55%);
    border: 1px solid #d5e7e7;
    min-height: 140px;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.hp-product-visual img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.hp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hp-chip {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--hp-teal-deep);
    background: var(--hp-teal-soft);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
}

.hp-stats {
    background: var(--hp-teal);
    color: #fff;
    padding: 2rem 0;
}

.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    text-align: center;
}

.hp-stats strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.25rem;
}
.hp-stats span {
    opacity: 0.9;
    font-size: 0.9rem;
}

.hp-cta-banner {
    background: #f5f7f9;
}

.hp-cta-banner-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 24px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--hp-shadow);
}

.hp-cta-banner h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}
.hp-cta-banner p {
    margin: 0.45rem 0 0;
    color: var(--hp-muted);
}

.hp-footer {
    background: var(--hp-footer);
    color: #d7e0e6;
    padding: 3rem 0 1.25rem;
}

.hp-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 1.5rem;
}

.hp-footer h3 {
    margin: 0 0 0.8rem;
    color: #fff;
    font-size: 0.95rem;
}

.hp-footer a,
.hp-footer p {
    display: block;
    margin: 0 0 0.45rem;
    color: #b7c4cd;
    text-decoration: none;
    font-size: 0.9rem;
}

.hp-footer a:hover { color: #fff; }

.hp-footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hp-footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: #8fa0ab;
}

.hp-status {
    position: fixed;
    inset-inline: 1rem;
    bottom: 1rem;
    z-index: 80;
    background: var(--hp-ink);
    color: #fff;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    box-shadow: var(--hp-shadow);
}

@media (max-width: 980px) {
    .hp-hero-grid,
    .hp-feature-grid,
    .hp-product-grid,
    .hp-pack-grid,
    .hp-stats-grid,
    .hp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hp-hero h1 { max-width: none; }
    .hp-device-phone { width: 130px; }
}

@media (max-width: 820px) {
    .hp-menu-btn { display: inline-flex; margin-inline-start: auto; }

    .hp-nav {
        display: none;
        position: absolute;
        inset-inline: 1rem;
        top: calc(100% + 0.5rem);
        background: #fff;
        border: 1px solid var(--hp-line);
        border-radius: 16px;
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        box-shadow: var(--hp-shadow);
    }

    .hp-nav.is-open { display: flex; }

    .hp-nav a {
        padding: 0.75rem 0.85rem;
        border-radius: 10px;
    }
    .hp-nav a:hover { background: var(--hp-teal-soft); }

    .hp-header-actions { gap: 0.25rem; }
    .hp-nav-signin { display: none; }
    .hp-user-chip #navLogout { display: none; }

    .hp-hero-grid,
    .hp-feature-grid,
    .hp-product-grid,
    .hp-pack-grid,
    .hp-stats-grid,
    .hp-footer-grid {
        grid-template-columns: 1fr;
    }

    .hp-hero-visual { min-height: 300px; }
    .hp-device-laptop { margin-inline: auto; }
    .hp-dash { grid-template-columns: 44px 1fr; }
    .hp-device-phone {
        right: 6%;
        bottom: -2%;
        width: 120px;
    }
    body[dir="rtl"] .hp-device-phone {
        left: 6%;
        right: auto;
    }

    .hp-cta-banner-inner { align-items: flex-start; }
}

@media (max-width: 480px) {
    .hp-btn { width: 100%; }
    .hp-cta-row { width: 100%; }
    .hp-header-actions .hp-btn-sm { display: none; }
}

/* App detail page */
.ad-page { padding: 2rem 0 4rem; }
.ad-status { color: var(--hp-muted); }
.ad-status.is-error,
.ad-hint.is-error,
#formMessage.is-error,
#planMessage.is-error { color: #b42318; }
.ad-hero {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
    padding: 1.5rem;
    border-radius: var(--hp-radius);
    background: linear-gradient(180deg, #fff, var(--hp-soft));
    border: 1px solid var(--hp-line);
}
.ad-hero-top {
    display: grid;
    gap: 1.25rem;
}
.ad-hero-copy { display: flex; gap: 1.1rem; align-items: flex-start; }
.ad-hero-text { min-width: 0; flex: 1; }
.ad-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.35rem;
}
.ad-title-row h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ad-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #eef2f5;
    color: var(--hp-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.ad-status-pill.is-active { background: #e6f7fb; color: #0E6F8A; }
.ad-status-pill.is-pending { background: #fff4df; color: #9a6700; }
.ad-logo-wrap {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--hp-line);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.ad-logo-wrap img { width: 64px; height: 64px; object-fit: contain; }
.ad-hero-text .hp-lead {
    max-width: 62ch;
    margin: 0.35rem 0 0.85rem;
    line-height: 1.65;
    font-size: 1.05rem;
    color: var(--hp-ink);
}
.ad-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.ad-launch {
    padding: 1rem 0 0;
    border-top: 1px solid var(--hp-line);
}
.ad-launch-title {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hp-muted);
}
.ad-launch-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}
.ad-launch-btn {
    display: grid;
    gap: 0.2rem;
    text-align: start;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1.5px solid var(--hp-line);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    cursor: pointer;
    font: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.ad-launch-btn:hover {
    border-color: var(--hp-teal);
    background: var(--hp-teal-soft);
    transform: translateY(-1px);
}
.ad-launch-btn-primary {
    border-color: var(--hp-teal);
    background: var(--hp-teal);
    color: #fff;
}
.ad-launch-btn-primary:hover {
    background: #0a5253;
    border-color: #0a5253;
    color: #fff;
}
.ad-launch-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.8;
}
.ad-launch-btn strong {
    font-size: 1.05rem;
    font-weight: 800;
}
.ad-launch-note {
    font-size: 0.88rem;
    opacity: 0.85;
}
.ad-sub-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.2rem;
    border-radius: 16px;
    border: 1.5px solid #9edced;
    background: linear-gradient(135deg, #f3fbf6, #e8f6ee);
}
.ad-sub-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0E6F8A;
}
.ad-sub-banner h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #0B1B2B;
}
.ad-sub-expiry {
    margin: 0.35rem 0 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #0E6F8A;
}
.ad-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}
.ad-card-head h2 { margin: 0 0 0.25rem; }
.ad-card-head .ad-hint { margin: 0; }
.ad-card.is-collapsed {
    background: var(--hp-soft);
}
.ad-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.85rem;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--hp-line);
}
.ad-facts div {
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}
.ad-facts dt {
    margin: 0 0 0.25rem;
    color: var(--hp-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ad-facts dd { margin: 0; font-weight: 700; }
.ad-access {
    margin: 0.85rem 0 0;
    color: var(--hp-teal);
    font-weight: 700;
}
.ad-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.25rem;
    align-items: start;
}
.ad-card {
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    padding: 1.25rem;
    box-shadow: var(--hp-shadow);
}
.ad-card h2 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.ad-hint { margin: 0 0 1rem; color: var(--hp-muted); font-size: 0.92rem; }
.ad-offers { display: grid; gap: 0.75rem; }
.ad-offer {
    text-align: start;
    border: 1.5px solid var(--hp-line);
    background: #fff;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    display: grid;
    gap: 0.25rem;
    font: inherit;
}
.ad-offer.is-active {
    border-color: var(--hp-teal);
    background: var(--hp-teal-soft);
}
.ad-offer-mode {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--hp-teal);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ad-offer-price s { color: var(--hp-muted); margin-inline-end: 0.35rem; }
.ad-promo { margin-top: 1rem; }
.ad-promo-row { display: flex; gap: 0.5rem; }
.ad-promo input,
.ad-form input,
.ad-form select,
.ad-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font: inherit;
    background: #fff;
}
.ad-form label {
    display: block;
    margin: 0.85rem 0 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}
.ad-summary {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--hp-soft);
    font-weight: 600;
}
.ad-plan-actions { margin-top: 1rem; }
.ad-plan-actions .hp-btn { width: 100%; }
.ad-gate {
    padding: 1rem;
    border-radius: 14px;
    background: var(--hp-soft);
    border: 1px solid var(--hp-line);
    margin-bottom: 1rem;
}
.ad-gate p { margin: 0 0 0.85rem; font-weight: 600; }
.ad-gate-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.ad-captcha {
    margin: 1rem 0;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--hp-line);
    background: var(--hp-soft);
}
.ad-captcha-top {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}
.ad-captcha img {
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--hp-line);
    max-width: 100%;
    height: auto;
}
.ad-form .hp-btn { width: 100%; margin-top: 0.75rem; }
.ad-customers { margin-top: 2.5rem; }
.ad-customers h2 { margin-bottom: 1rem; }
.ad-reviews {
    margin-top: 1.5rem;
    box-shadow: var(--hp-shadow);
}
.ad-reviews-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.ad-reviews-head h2 { margin: 0 0 0.25rem; }
.ad-review-form {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 14px;
    background: var(--hp-soft);
    border: 1px solid var(--hp-line);
}
.ad-review-form h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.ad-review-form label {
    display: block;
    margin: 0.75rem 0 0.35rem;
    font-weight: 600;
}
.ad-review-form select,
.ad-review-form textarea {
    width: 100%;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font: inherit;
    background: #fff;
}
.ad-review-list { display: grid; gap: 0.85rem; }
.ad-review-item {
    border: 1px solid var(--hp-line);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #fff;
}
.ad-review-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}
.ad-stars { color: #c47f17; letter-spacing: 0.08em; font-size: 0.95rem; }
.ad-admin-reply {
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: var(--hp-teal-soft);
}
.ad-admin-reply p { margin: 0.35rem 0 0; }

@media (max-width: 820px) {
    .ad-hero-copy { flex-direction: column; }
    .ad-grid { grid-template-columns: 1fr; }
    .ad-promo-row { flex-direction: column; }
    .ad-sub-banner { align-items: stretch; }
    .ad-sub-banner .hp-btn { width: 100%; }
}
