/* ============================================================
   Public-facing pages: landing, login, signup, forgot-password.
   Loaded on top of Tabler via layouts/landing.php + layouts/auth.php.
   App screens keep using site.css only.
   ============================================================ */

:root {
    --pub-grad: linear-gradient(135deg, #4263eb 0%, #7048e8 100%);
    --pub-grad-deep: linear-gradient(135deg, #1e2b8f 0%, #4263eb 45%, #7048e8 100%);
    --pub-ink: #10163a;
    --pub-muted: #5b6480;
    --pub-surface: #f6f8fe;
}

.public-body {
    background: #fff;
    color: var(--pub-ink);
    font-feature-settings: "cv03", "cv04";
}

/* ---------- Landing navbar ---------- */
.pub-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 22, 58, .07);
}
.pub-nav .nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: .8rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.pub-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--pub-ink);
    text-decoration: none;
}
.pub-brand:hover { color: var(--pub-ink); }
.pub-brand .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--pub-grad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 16px rgba(66, 99, 235, .35);
}
.pub-nav .nav-links {
    display: flex;
    gap: .25rem;
    margin-left: .5rem;
}
.pub-nav .nav-links a {
    color: var(--pub-muted);
    text-decoration: none;
    font-weight: 500;
    padding: .45rem .8rem;
    border-radius: 8px;
    font-size: .95rem;
}
.pub-nav .nav-links a:hover { color: #4263eb; background: #eef1fd; }
.pub-nav .nav-cta { margin-left: auto; display: flex; gap: .6rem; align-items: center; }

.btn-pub-primary {
    background: var(--pub-grad);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: .55rem 1.15rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    box-shadow: 0 6px 18px rgba(66, 99, 235, .35);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-pub-primary:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(66, 99, 235, .4); }
.btn-pub-ghost {
    color: var(--pub-ink) !important;
    border: 1.5px solid rgba(16, 22, 58, .15);
    background: #fff;
    border-radius: 10px;
    padding: .5rem 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    transition: border-color .15s ease, background .15s ease;
}
.btn-pub-ghost:hover { border-color: #4263eb; background: #f4f6ff; }
.btn-pub-lg { padding: .8rem 1.6rem; font-size: 1.05rem; border-radius: 12px; }

/* ---------- Hero ---------- */
.pub-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 1.25rem 4.5rem;
    background:
        radial-gradient(600px 320px at 12% 0%, rgba(66, 99, 235, .12), transparent 65%),
        radial-gradient(520px 300px at 88% 10%, rgba(112, 72, 232, .12), transparent 65%),
        radial-gradient(460px 280px at 55% 100%, rgba(12, 166, 120, .08), transparent 60%),
        #fff;
}
.pub-hero .hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #eef1fd;
    color: #4263eb;
    font-weight: 600;
    font-size: .85rem;
    border-radius: 100px;
    padding: .35rem .9rem;
    margin-bottom: 1.1rem;
}
.pub-hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin-bottom: 1.1rem;
}
.pub-hero h1 .grad-text {
    background: var(--pub-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pub-hero .hero-sub {
    color: var(--pub-muted);
    font-size: 1.13rem;
    line-height: 1.65;
    max-width: 34rem;
    margin-bottom: 1.8rem;
}
.hero-points { display: flex; flex-wrap: wrap; gap: .9rem 1.5rem; margin-top: 1.6rem; }
.hero-points span { color: var(--pub-muted); font-size: .92rem; display: inline-flex; align-items: center; gap: .4rem; }
.hero-points i { color: #0ca678; }

/* Hero visual: CSS-drawn app mock */
.hero-visual { position: relative; min-height: 380px; }
.mock-card {
    position: absolute;
    background: #fff;
    border: 1px solid rgba(16, 22, 58, .08);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(16, 22, 58, .12);
    padding: 1rem 1.1rem;
}
.mock-sales { top: 8%; left: 0; width: 62%; }
.mock-sales .mock-title { font-size: .8rem; color: var(--pub-muted); font-weight: 600; }
.mock-sales .mock-amount { font-size: 1.65rem; font-weight: 800; letter-spacing: -.01em; }
.mock-bars { display: flex; align-items: flex-end; gap: 7px; height: 74px; margin-top: .8rem; }
.mock-bars i {
    flex: 1;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #7c93f5, #4263eb);
    opacity: .9;
}
.mock-receipt { right: 0; top: 0; width: 46%; z-index: 2; }
.mock-receipt .r-head { font-weight: 700; font-size: .85rem; text-align: center; padding-bottom: .45rem; border-bottom: 1px dashed #d6dbeb; margin-bottom: .5rem; }
.mock-receipt .r-line { display: flex; justify-content: space-between; font-size: .78rem; color: var(--pub-muted); padding: .16rem 0; }
.mock-receipt .r-total { border-top: 1px dashed #d6dbeb; margin-top: .45rem; padding-top: .45rem; font-weight: 700; color: var(--pub-ink); font-size: .85rem; display: flex; justify-content: space-between; }
.mock-stock { bottom: 4%; left: 12%; width: 58%; z-index: 3; }
.mock-stock .s-row { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; }
.mock-stock .s-dot { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.mock-stock .s-name { font-size: .82rem; font-weight: 600; flex: 1; }
.mock-stock .s-badge { font-size: .7rem; font-weight: 700; border-radius: 6px; padding: .12rem .5rem; }

/* ---------- Sections ---------- */
.pub-section { padding: 4.5rem 1.25rem; }
.pub-section.alt { background: var(--pub-surface); }
.pub-section .section-inner { max-width: 1140px; margin: 0 auto; }
.section-eyebrow { color: #4263eb; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.015em; margin-bottom: .6rem; }
.section-sub { color: var(--pub-muted); font-size: 1.05rem; max-width: 40rem; margin-bottom: 2.4rem; line-height: 1.6; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card {
    background: #fff;
    border: 1px solid rgba(16, 22, 58, .07);
    border-radius: 16px;
    padding: 1.5rem 1.4rem;
    transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16, 22, 58, .10); }
.feature-card .f-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .45rem; }
.feature-card p { color: var(--pub-muted); font-size: .93rem; line-height: 1.6; margin: 0; }

.f-blue   { background: linear-gradient(135deg, #4263eb, #6a83f2); }
.f-violet { background: linear-gradient(135deg, #7048e8, #9775fa); }
.f-teal   { background: linear-gradient(135deg, #0ca678, #38d9a9); }
.f-orange { background: linear-gradient(135deg, #f76707, #ffa94d); }
.f-pink   { background: linear-gradient(135deg, #d6336c, #f783ac); }
.f-cyan   { background: linear-gradient(135deg, #1098ad, #3bc9db); }
.f-indigo { background: linear-gradient(135deg, #364fc7, #748ffc); }
.f-lime   { background: linear-gradient(135deg, #74b816, #a9e34b); }
.f-slate  { background: linear-gradient(135deg, #3b4863, #6c7a96); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step-card { position: relative; background: #fff; border: 1px solid rgba(16,22,58,.07); border-radius: 16px; padding: 1.6rem 1.4rem 1.4rem; }
.step-num {
    position: absolute;
    top: -1rem;
    left: 1.3rem;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: var(--pub-grad);
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(66,99,235,.35);
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin: .4rem 0 .4rem; }
.step-card p { color: var(--pub-muted); font-size: .92rem; line-height: 1.6; margin: 0; }

/* Why / checklist split */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.why-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; line-height: 1.55; }
.why-list li i { color: #0ca678; font-size: 1.05rem; margin-top: .1rem; }
.why-list li b { font-weight: 700; }
.why-list li span { color: var(--pub-muted); }

/* CTA banner */
.cta-banner {
    background: var(--pub-grad-deep);
    border-radius: 22px;
    padding: 3.2rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(340px 200px at 15% 20%, rgba(255,255,255,.14), transparent 60%),
        radial-gradient(300px 190px at 85% 80%, rgba(255,255,255,.10), transparent 60%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.cta-banner p { opacity: .85; max-width: 34rem; margin: 0 auto 1.6rem; }
.cta-banner .btn-white {
    background: #fff;
    color: #4263eb !important;
    border-radius: 12px;
    padding: .8rem 1.7rem;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 10px 26px rgba(0,0,0,.25);
    transition: transform .15s ease;
}
.cta-banner .btn-white:hover { transform: translateY(-2px); }

/* FAQ */
.faq-list { max-width: 760px; display: grid; gap: .8rem; }
.faq-item {
    background: #fff;
    border: 1px solid rgba(16, 22, 58, .08);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.05rem 1.3rem;
    font-weight: 600;
    color: var(--pub-ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 700;
    color: #4263eb;
    flex-shrink: 0;
    line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid rgba(16, 22, 58, .06); }
.faq-item p {
    margin: 0;
    padding: 1rem 1.3rem 1.15rem;
    color: var(--pub-muted);
    font-size: .95rem;
    line-height: 1.65;
}

/* Footer */
.pub-footer { border-top: 1px solid rgba(16,22,58,.07); padding: 2rem 1.25rem; }
.pub-footer .foot-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.pub-footer .foot-links { margin-left: auto; display: flex; gap: 1.4rem; }
.pub-footer a { color: var(--pub-muted); text-decoration: none; font-size: .92rem; }
.pub-footer a:hover { color: #4263eb; }
.pub-footer .copy { color: #9aa3ba; font-size: .88rem; width: 100%; margin-top: .5rem; }

/* ---------- Auth pages (login / signup / forgot) ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    background:
        radial-gradient(700px 420px at 8% -5%, rgba(66, 99, 235, .14), transparent 60%),
        radial-gradient(640px 400px at 100% 105%, rgba(112, 72, 232, .13), transparent 60%),
        #f6f8fe;
}
.auth-shell {
    width: 100%;
    max-width: 960px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(16, 22, 58, .16);
    overflow: hidden;
    display: grid;
    grid-template-columns: 5fr 6fr;
    min-height: 560px;
}
.auth-shell.auth-narrow { max-width: 460px; grid-template-columns: 1fr; min-height: 0; }

.auth-side {
    background: var(--pub-grad-deep);
    color: #fff;
    padding: 2.6rem 2.4rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.auth-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(320px 220px at 90% 0%, rgba(255,255,255,.13), transparent 60%),
        radial-gradient(280px 200px at 0% 100%, rgba(12,166,120,.25), transparent 55%);
}
.auth-side > * { position: relative; }
.auth-side .side-brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.2rem; text-decoration: none; color: #fff; }
.auth-side .side-brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}
.auth-side .side-mid { margin: auto 0; padding: 2.2rem 0; }
.auth-side h2 { font-size: 1.85rem; font-weight: 800; line-height: 1.25; letter-spacing: -.015em; margin-bottom: .8rem; }
.auth-side .side-text { opacity: .82; line-height: 1.65; font-size: .98rem; }
.auth-side .side-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7rem; }
.auth-side .side-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; opacity: .95; }
.auth-side .side-list i { color: #63e6be; margin-top: .15rem; }
.auth-side .side-foot { font-size: .85rem; opacity: .65; }

.auth-main { padding: 2.8rem 2.6rem; display: flex; flex-direction: column; justify-content: center; }
.auth-main .auth-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.015em; margin-bottom: .35rem; color: var(--pub-ink); }
.auth-main .auth-sub { color: var(--pub-muted); font-size: .95rem; margin-bottom: 1.8rem; }

.auth-main .form-label { font-weight: 600; font-size: .88rem; color: var(--pub-ink); margin-bottom: .4rem; }
.auth-field { position: relative; }
.auth-field .field-icon {
    position: absolute;
    left: .95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3ba;
    font-size: 1rem;
    pointer-events: none;
    z-index: 5;
}
.auth-field .form-control {
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #e3e7f3;
    background: #fafbff;
    padding-left: 2.7rem;
    font-size: .97rem;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-field .form-control:focus {
    border-color: #4263eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(66, 99, 235, .13);
}
.auth-main .invalid-feedback { font-size: .82rem; }
.auth-main .form-control.is-invalid { border-color: #d63939; background-position: right .9rem center; }

.btn-auth-submit {
    width: 100%;
    background: var(--pub-grad);
    color: #fff;
    border: none;
    border-radius: 12px;
    height: 50px;
    font-weight: 700;
    font-size: 1.02rem;
    box-shadow: 0 8px 20px rgba(66, 99, 235, .35);
    transition: filter .15s ease, transform .15s ease;
}
.btn-auth-submit:hover { filter: brightness(1.07); transform: translateY(-1px); color: #fff; }
.btn-auth-submit:active { transform: translateY(0); }

.auth-alt { text-align: center; margin-top: 1.5rem; color: var(--pub-muted); font-size: .93rem; }
.auth-alt a, .auth-link { color: #4263eb; font-weight: 600; text-decoration: none; }
.auth-alt a:hover, .auth-link:hover { text-decoration: underline; }

.auth-main .form-check-input:checked { background-color: #4263eb; border-color: #4263eb; }
.auth-main .form-check-label { font-size: .92rem; color: var(--pub-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .pub-hero .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-visual { min-height: 340px; max-width: 480px; margin: 0 auto; width: 100%; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; gap: 1.9rem; }
    .why-grid { grid-template-columns: 1fr; gap: 2rem; }
    .auth-shell { grid-template-columns: 1fr; min-height: 0; }
    .auth-side { display: none; }
}
@media (max-width: 640px) {
    .pub-nav .nav-links { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .pub-hero { padding: 3.2rem 1.25rem 3rem; }
    .pub-section { padding: 3rem 1.25rem; }
    .auth-main { padding: 2rem 1.4rem; }
}

/* ---------- Legal / policy pages ---------- */
.legal-hero {
    background: linear-gradient(160deg, #101733 0%, #1c2a5e 60%, #2b3f8c 100%);
    color: #fff;
    padding: 3.4rem 1.25rem 2.8rem;
    text-align: center;
}
.legal-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.015em; margin-bottom: .5rem; }
.legal-hero .legal-meta { opacity: .75; font-size: .92rem; }
.legal-wrap { max-width: 860px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.legal-card {
    background: #fff;
    border: 1px solid rgba(16, 22, 58, .08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 22, 58, .06);
    padding: 2.4rem 2.6rem;
    line-height: 1.7;
    color: #2b3350;
}
.legal-card h2 { font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; margin: 2.1rem 0 .7rem; color: #10163a; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { font-size: 1.02rem; font-weight: 700; margin: 1.4rem 0 .5rem; color: #10163a; }
.legal-card p { margin: 0 0 .9rem; }
.legal-card ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.legal-card li { margin-bottom: .45rem; }
.legal-card li::marker { color: #4263eb; }
.legal-card a { color: #4263eb; font-weight: 600; text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }
.legal-card .legal-note {
    background: #f4f6ff;
    border: 1px solid #dbe2fb;
    border-radius: 12px;
    padding: .9rem 1.1rem;
    font-size: .93rem;
    margin: 1rem 0;
}
.legal-card table { width: 100%; border-collapse: collapse; margin: .6rem 0 1.2rem; font-size: .93rem; }
.legal-card table th, .legal-card table td { border: 1px solid #e3e7f4; padding: .55rem .8rem; text-align: left; vertical-align: top; }
.legal-card table th { background: #f6f7fc; font-weight: 700; color: #10163a; }
.legal-toc {
    background: #f8f9fe;
    border: 1px solid #e3e7f4;
    border-radius: 12px;
    padding: 1rem 1.3rem;
    margin-bottom: 1.6rem;
    font-size: .93rem;
}
.legal-toc b { display: block; margin-bottom: .4rem; color: #10163a; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.legal-toc a { color: #4263eb; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* Payment-process page */
.pay-flow { display: grid; gap: 1rem; margin: 1.4rem 0; }
.pay-step {
    display: flex; gap: 1.1rem; align-items: flex-start;
    background: #fff; border: 1px solid rgba(16, 22, 58, .08);
    border-radius: 14px; padding: 1.25rem 1.4rem;
    box-shadow: 0 6px 18px rgba(16, 22, 58, .05);
}
.pay-step .ps-num {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, #4263eb, #6a83f2); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05rem;
}
.pay-step .ps-num.ps-free  { background: linear-gradient(135deg, #0ca678, #38d9a9); }
.pay-step .ps-num.ps-money { background: linear-gradient(135deg, #f76707, #ffa94d); }
.pay-step h3 { font-size: 1.05rem; font-weight: 700; margin: .1rem 0 .35rem; color: #10163a; }
.pay-step p { margin: 0; color: #5a6382; font-size: .95rem; line-height: 1.6; }
.pay-step .ps-badge {
    display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; border-radius: 6px; padding: .18rem .55rem; margin-left: .5rem;
    vertical-align: 2px;
}
.ps-badge.free { background: #d3f9ee; color: #087f5b; }
.ps-badge.pay  { background: #fff0e0; color: #d9480f; }
.pay-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 1.4rem; }
.pay-account {
    background: #f8f9fe; border: 1px solid #e3e7f4; border-radius: 12px; padding: 1.1rem 1.3rem;
}
.pay-account .pa-head { font-weight: 800; color: #10163a; display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.pay-account .pa-head i { color: #4263eb; }
.pay-account .pa-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; padding: .22rem 0; }
.pay-account .pa-row span { color: #5a6382; }
.pay-account .pa-row b { text-align: right; word-break: break-all; }

/* Footer legal links */
.pub-footer .foot-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; width: 100%; margin-top: .3rem; }
.pub-footer .foot-legal a { color: var(--pub-muted); font-size: .88rem; text-decoration: none; }
.pub-footer .foot-legal a:hover { color: #4263eb; }
.pub-footer .foot-company { color: #9aa3ba; font-size: .85rem; margin-top: .35rem; width: 100%; }

@media (max-width: 640px) {
    .legal-card { padding: 1.6rem 1.3rem; }
    .legal-toc ol { columns: 1; }
    .pay-accounts { grid-template-columns: 1fr; }
}

/* ---------- Pricing page ---------- */
.pub-nav .nav-links a.is-active { color: #4263eb; background: #eef1fd; }

.pricing-hero { padding-bottom: 3.6rem; }
/* The landing hero is a two-column grid; the pricing hero is a single
   centred column, so override the grid at equal specificity. */
.pub-hero .pricing-hero-inner { display: block; max-width: 780px; margin: 0 auto; text-align: center; }
.pub-hero .pricing-hero-inner h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.15; margin: 1.1rem 0 .9rem; }
.pub-hero .pricing-hero-inner .hero-sub { margin: 0 auto; max-width: 620px; }

.price-wrap {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.price-card {
    position: relative;
    background: #fff;
    border: 2px solid #4263eb;
    border-radius: 18px;
    padding: 2.6rem 1.8rem 1.9rem;
    box-shadow: 0 18px 50px rgba(66, 99, 235, .14);
    text-align: center;
}
.price-ribbon {
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
    background: var(--pub-grad); color: #fff;
    font-size: .76rem; font-weight: 700; letter-spacing: .02em;
    padding: .35rem .9rem; border-radius: 999px; white-space: nowrap;
}
.price-plan { font-weight: 700; color: var(--pub-muted); font-size: .98rem; }
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: .18rem; margin: .5rem 0 .3rem; }
.price-amount .pa-cur { font-size: 1.4rem; font-weight: 700; color: var(--pub-ink); }
.price-amount .pa-num { font-size: 3.6rem; font-weight: 800; line-height: 1; color: var(--pub-ink); letter-spacing: -.02em; }
.price-amount .pa-per { font-size: 1.05rem; font-weight: 600; color: var(--pub-muted); }
.price-note { color: var(--pub-muted); font-size: .9rem; }
.price-trial {
    display: inline-flex; align-items: center; gap: .45rem;
    background: #e9fbf1; color: #0b7a44; border: 1px solid #bdf0d4;
    border-radius: 999px; padding: .4rem .95rem; font-weight: 700; font-size: .92rem;
    margin: 1.1rem 0 1.3rem;
}
.price-cta { width: 100%; justify-content: center; }
.price-fineprint { color: #8a93ab; font-size: .82rem; margin-top: .6rem; }
.price-list { list-style: none; padding: 0; margin: 1.4rem 0 0; text-align: left; border-top: 1px solid #eceffa; padding-top: 1.2rem; }
.price-list li { display: flex; align-items: flex-start; gap: .6rem; padding: .34rem 0; font-size: .95rem; }
.price-list li i { color: #12b76a; flex: 0 0 auto; margin-top: .18rem; }

.price-side-title { font-size: 1.45rem; font-weight: 800; margin: 0 0 1.1rem; }
.price-never { list-style: none; padding: 0; margin: 0; }
.price-never li { display: flex; align-items: flex-start; gap: .7rem; padding: .5rem 0; color: var(--pub-muted); }
.price-never li i { color: #e8590c; font-size: 1.1rem; flex: 0 0 auto; margin-top: .12rem; }
.price-never li b { color: var(--pub-ink); }
.price-side-note {
    display: flex; gap: .8rem; align-items: flex-start;
    background: #f6f8fe; border: 1px solid #e3e7f4; border-radius: 12px;
    padding: 1rem 1.1rem; margin-top: 1.3rem; color: var(--pub-muted); font-size: .93rem;
}
.price-side-note i { color: #4263eb; font-size: 1.15rem; flex: 0 0 auto; }

.incl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.1rem; margin-top: 2.2rem; }
.incl-item {
    display: flex; gap: .9rem; align-items: flex-start;
    background: #fff; border: 1px solid #e6eaf6; border-radius: 14px; padding: 1.1rem 1.2rem;
}
.incl-icon {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #eef1fd; color: #4263eb; font-size: 1.15rem;
}
.incl-item h3 { font-size: 1rem; font-weight: 700; margin: .1rem 0 .3rem; }
.incl-item p { margin: 0; color: var(--pub-muted); font-size: .9rem; line-height: 1.5; }

.price-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; margin-top: 1.6rem; }
.ps-item { display: flex; gap: .8rem; align-items: flex-start; }
.ps-item .ps-n {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--pub-grad); color: #fff; font-weight: 700; font-size: .9rem;
}
.ps-item b { display: block; margin-bottom: .18rem; }
.ps-item p { margin: 0; color: var(--pub-muted); font-size: .9rem; line-height: 1.5; }

.price-more { margin-top: 1.5rem; color: var(--pub-muted); font-size: .95rem; }
.price-more a { color: #4263eb; font-weight: 600; text-decoration: none; }
.price-more a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .price-wrap { grid-template-columns: 1fr; gap: 2.4rem; }
    .price-card { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .price-ribbon { font-size: .7rem; }
    .price-amount .pa-num { font-size: 3rem; }
    .incl-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile navigation (hamburger) ----------
   Above 640px the full link bar shows and the burger is hidden. On phones the
   links and Sign in move into a slide-down panel, leaving only the brand, the
   burger and the primary CTA in the bar — all at 44px tap targets. */
.nav-burger {
    display: none;
    margin-left: .35rem;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(16, 22, 58, .12);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--pub-ink);
    transition: transform .18s ease, opacity .18s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.pub-mobile-menu { display: none; }

@media (max-width: 640px) {
    .pub-nav .nav-links { display: none; }
    .pub-nav .nav-cta .btn-pub-ghost { display: none; }
    .pub-nav .nav-cta { gap: .5rem; }
    .pub-nav .nav-cta .btn-pub-primary { padding: .78rem 1rem; }
    .nav-burger { display: flex; }

    .pub-mobile-menu {
        display: none;
        border-top: 1px solid rgba(16, 22, 58, .08);
        background: #fff;
        padding: .5rem .85rem 1rem;
        box-shadow: 0 14px 30px rgba(16, 22, 58, .1);
    }
    .pub-mobile-menu.is-open { display: block; }
    .pub-mobile-menu a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: .2rem .6rem;
        color: var(--pub-ink);
        text-decoration: none;
        font-weight: 600;
        border-radius: 10px;
    }
    .pub-mobile-menu a:hover,
    .pub-mobile-menu a.is-active { color: #4263eb; background: #eef1fd; }
    .pub-mobile-menu .mm-signin {
        margin-top: .5rem;
        padding-top: .9rem;
        border-top: 1px solid rgba(16, 22, 58, .08);
        border-radius: 0;
        gap: .5rem;
        color: var(--pub-muted);
    }
}

/* ---------- Country sites: footer switcher + RTL (Arabic) ----------
   The public pages are served per country (/pk, /de, /sa ...). Saudi Arabia
   and the UAE render right-to-left: <html dir="rtl"> flips the flex/grid
   flows automatically; only the hand-positioned bits below need mirroring. */
.pub-footer .foot-countries { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; width: 100%; margin-top: .6rem; font-size: .86rem; }
.pub-footer .foot-countries i { color: #9aa3ba; }
.pub-footer .foot-countries a { color: var(--pub-muted); text-decoration: none; padding: .15rem .45rem; border-radius: 6px; }
.pub-footer .foot-countries a:hover { color: #4263eb; background: #eef1fd; }
.pub-footer .foot-countries a.is-active { color: #4263eb; font-weight: 700; background: #eef1fd; }

[dir="rtl"] body, body.is-rtl { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", Arial, sans-serif; }
[dir="rtl"] .pub-footer .foot-links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav-burger { margin-left: 0; margin-right: .35rem; }
[dir="rtl"] .auth-field .field-icon { left: auto; right: .95rem; }
[dir="rtl"] .auth-field .form-control { padding-left: .95rem; padding-right: 2.7rem; }
[dir="rtl"] .auth-main .form-control.is-invalid { background-position: left .9rem center; }
[dir="rtl"] .legal-card ul, [dir="rtl"] .legal-toc ol { padding-left: 0; padding-right: 1.3rem; }
[dir="rtl"] .legal-card table th, [dir="rtl"] .legal-card table td { text-align: right; }
[dir="rtl"] .pay-step .ps-badge { margin-left: 0; margin-right: .5rem; }
[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: .25rem !important; }
[dir="rtl"] .me-1, [dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: .35rem !important; }
[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .pub-hero h1, [dir="rtl"] .section-title, [dir="rtl"] .auth-side h2, [dir="rtl"] .auth-main .auth-title { letter-spacing: 0; }
