/* الصفحات العامة */
.public-body { font-family: Tajawal, system-ui, sans-serif; background: var(--bs-body-bg); }
.pub-container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.pub-nav { position: sticky; top: 0; z-index: 10; padding: 12px 0; background: color-mix(in srgb, var(--bs-body-bg) 88%, transparent);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--bs-border-color); }
.pub-nav nav a, .pub-footer a { color: var(--bs-secondary-color); text-decoration: none; }
.pub-nav nav a:hover, .pub-footer a:hover { color: var(--bs-primary); }
.pub-section { padding: 64px 0; }
.pub-section.alt { background: var(--bs-tertiary-bg); }
.pub-section h2 { font-weight: 800; margin-bottom: .5rem; }
.pub-lead { color: var(--bs-secondary-color); max-width: 640px; }
.hero { padding: 80px 0 64px; background: radial-gradient(1000px 400px at 80% -10%, rgba(99,102,241,.18), transparent),
    radial-gradient(800px 400px at 10% 0%, rgba(236,72,153,.12), transparent); }
.hero h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.25; }
.hero .pub-lead { font-size: 1.15rem; }
.feature { height: 100%; padding: 22px; border: 1px solid var(--bs-border-color); border-radius: 14px; background: var(--bs-body-bg); }
.feature i { font-size: 1.6rem; color: var(--bs-primary); }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
    background: var(--bs-primary); color: #fff; flex: none; }
.price-card { height: 100%; border: 1px solid var(--bs-border-color); border-radius: 16px; padding: 22px; background: var(--bs-body-bg);
    display: flex; flex-direction: column; gap: 6px; }
.price-card.best { border-color: var(--bs-primary); box-shadow: 0 8px 30px rgba(99,102,241,.18); }
.price-card .amount { font-size: 1.8rem; font-weight: 800; }
.pub-char { border-radius: 14px; overflow: hidden; border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); }
.pub-char img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pub-char .ph { aspect-ratio: 1; display: grid; place-items: center; font-size: 2.5rem; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); }
.pub-footer { padding: 24px 0; border-top: 1px solid var(--bs-border-color); }
.legal { max-width: 820px; margin: 0 auto; padding: 48px 16px; line-height: 1.9; }
.legal h1 { font-weight: 800; }
.legal h2 { font-size: 1.15rem; font-weight: 700; margin-top: 1.6rem; }
.legal-draft { border: 1px dashed #f59e0b; background: rgba(245,158,11,.08); border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.pub-table { width: 100%; font-size: .92rem; }
.pub-table th, .pub-table td { padding: 10px; border-bottom: 1px solid var(--bs-border-color); vertical-align: top; }

/* ---------- صفحات الحساب داخل تخطيط الصفحات العامة ---------- */
.auth-section { padding: 48px 0 64px; min-height: calc(100vh - 140px); display: flex; align-items: center;
    background: radial-gradient(900px 400px at 85% -10%, rgba(99,102,241,.14), transparent), radial-gradient(700px 380px at 5% 110%, rgba(236,72,153,.10), transparent); }
.auth-section > .pub-container { width: 100%; }
.auth-shell { display: grid; grid-template-columns: 1fr 1.1fr; max-width: 980px; margin: 0 auto; border-radius: 24px; overflow: hidden;
    background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); box-shadow: 0 30px 80px rgba(15, 23, 42, .14); }
.auth-side { position: relative; overflow: hidden; color: #fff; padding: 40px 36px;
    background: linear-gradient(135deg, #4338ca, #7c3aed 55%, #db2777); background-size: 200% 200%; animation: auth-grad 14s ease infinite alternate; }
@keyframes auth-grad { to { background-position: 100% 100%; } }
.auth-side-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.auth-mark { width: 52px; height: 52px; font-size: 1.5rem; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); margin-bottom: 1.25rem; }
.auth-side-title { font-weight: 800; font-size: 1.7rem; margin-bottom: .5rem; }
.auth-side-lead { opacity: .85; margin-bottom: 1.5rem; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.auth-points li { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; }
.auth-points i { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.16); }
.auth-floats { position: absolute; inset: auto 0 0 0; height: 120px; pointer-events: none; }
.auth-floats i { position: absolute; font-size: 2.2rem; opacity: .22; }
.auth-floats i:nth-child(1) { bottom: 18px; inset-inline-start: 6%; }
.auth-floats i:nth-child(2) { bottom: 64px; inset-inline-start: 34%; font-size: 1.6rem; }
.auth-floats i:nth-child(3) { bottom: 12px; inset-inline-start: 58%; }
.auth-floats i:nth-child(4) { bottom: 58px; inset-inline-start: 82%; font-size: 1.8rem; }
.auth-main { padding: 40px 40px 36px; }
.auth-main h1 { font-weight: 800; }
.auth-main .form-control, .auth-main .form-select { padding: .65rem .85rem; border-radius: 10px; }
.auth-main .form-control:focus { box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); border-color: #a5b4fc; }
.auth-main .btn-primary { padding: .7rem 1rem; border-radius: 10px; font-weight: 700; }
@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; max-width: 520px; }
    .auth-side { padding: 28px 24px; }
    .auth-side-title { font-size: 1.35rem; }
    .auth-points, .auth-floats { display: none; }
    .auth-main { padding: 28px 22px; }
}

/* ---------- حركة الصفحات العامة ---------- */
.pub-nav { transition: box-shadow .25s, background-color .25s; }
.pub-nav.scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .08); }
.pub-nav nav a { position: relative; }
.pub-nav nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--bs-primary); transform: scaleX(0); transition: transform .25s; }
.pub-nav nav a:hover::after { transform: scaleX(1); }
.feature, .price-card, .pub-char { transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s; }
.feature:hover, .price-card:hover, .pub-char:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(15, 23, 42, .12); border-color: #c7d2fe; }
.feature i { display: inline-block; transition: transform .3s; }
.feature:hover i { transform: scale(1.15) rotate(-6deg); }
.pub-char img { transition: transform .5s cubic-bezier(.22,1,.36,1); }
.pub-char:hover img { transform: scale(1.06); }
.step-num { box-shadow: 0 0 0 0 rgba(79,70,229,.45); animation: step-pulse 2.6s infinite; }
@keyframes step-pulse { 70% { box-shadow: 0 0 0 10px rgba(79,70,229,0); } 100% { box-shadow: 0 0 0 0 rgba(79,70,229,0); } }
.auth-side { padding-bottom: 120px; } .auth-floats i { opacity: .16; } @media (max-width: 860px) { .auth-side { padding-bottom: 28px; } }
.pub-nav .btn { white-space: nowrap; }
@media (max-width: 575.98px) {
    .pub-brand-name { display: none; }
    .pub-nav .pub-container { gap: .5rem !important; }
    .pub-nav .btn { padding: .3rem .6rem; font-size: .82rem; }
}
