﻿:root {
    --txt: #0f172a;
    --dim: #667085;
    --line: #e7eaf0;
    --panel: #ffffff;
    --pri: #2563eb;
    --pri2: #7c3aed;
    --shadow: 0 10px 30px rgba(16,24,40,.10);
    --shadow-lg: 0 20px 44px rgba(16,24,40,.16);
    --radius: 16px;
    --font: ui-sans-serif,system-ui,-apple-system,"Cairo","Segoe UI",Roboto,Arial;
}

/* ===== الصفحة كلها بنفس خلفية الرئيسية ===== */
html, body {
    height: 100%
}

body {
    margin: 0;
    color: var(--txt);
    font-family: var(--font);
    background: radial-gradient(1000px 600px at 95% -10%, rgba(124,58,237,.16), transparent 60%), radial-gradient(900px 550px at 10% 0%, rgba(236,72,153,.15), transparent 55%), radial-gradient(800px 520px at 60% 100%, rgba(16,185,129,.16), transparent 50%), linear-gradient(180deg,#fbfdff 0%,#f6f8ff 40%,#f7fafc 100%);
}

/* حاوية عامة */
.id-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ===== Header (زجاجي فاتح مثل الرئيسية) ===== */
.id-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(2,6,23,.06);
}

.id-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.id-header__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
}

/* شعار الهوية بنفس ستايل وهيراركي الصفحة الرئيسية */
.id-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.id-brand__name {
    font-size: clamp(22px, 2.2vw, 24px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: .2px;
}

/* Pro = متدرّج */
.id-brand__highlight {
    background: linear-gradient(90deg, var(--pri), var(--pri2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 1px rgba(37,99,235,.06);
}

/* Kitly = غامق واضح */
.id-brand__rest {
    color: #1e293b;
}


.id-grad {
    background: linear-gradient(90deg, var(--pri), var(--pri2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* لمسة خفيفة لزيادة الوضوح زي الرئيسية */
    text-shadow: 0 0 1px rgba(37,99,235,.06);
}


.id-nav {
    display: flex;
    gap: .6rem
}

.id-nav__link {
    color: #334155;
    text-decoration: none;
    border: 1px solid transparent;
    padding: .5rem .8rem;
    border-radius: 999px;
    font-weight: 700;
}

    .id-nav__link:hover {
        background: #fff;
        border-color: var(--line);
        box-shadow: var(--shadow);
    }

.id-actions {
    display: flex;
    gap: .5rem
}

.id-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    border-radius: 12px;
    font-weight: 800;
    border: 1px solid transparent;
    background: #fff;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(2,6,23,.08);
    transition: transform .12s, box-shadow .2s, filter .2s;
}

    .id-btn:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow)
    }

.id-btn--ghost {
    border: 1px solid var(--line)
}

.id-btn--primary {
    background: linear-gradient(90deg,var(--pri),var(--pri2));
    color: #fff;
    border: none;
}

/* ===== Main ===== */
.id-main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 24px 16px
}

.id-card {
    width: 100%;
    max-width: 520px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

/* عناوين ونصوص داخل النماذج */
.ax-title {
    margin: .2rem 0 1rem;
    font-size: clamp(22px,2.8vw,28px)
}

.ax-sub {
    margin: 0 0 1rem;
    color: #475569
}

.ax-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: .6rem 0
}

.ax-label {
    font-weight: 700
}

.ax-input, .ax-select {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #0f172a;
    padding: .75rem 1rem;
}

.ax-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: .6rem 0
}

.ax-remember {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #475569
}

.ax-error {
    color: #e11d48;
    font-size: .95rem;
    margin: .4rem 0
}

.ax-links {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: .8rem
}

.ax-link {
    color: #2563eb;
    text-decoration: none
}

    .ax-link:hover {
        text-decoration: underline
    }

.ax-btn { /* زر داخل النماذج */
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid transparent;
    background: #fff;
    color: #111827;
    padding: .65rem 1rem;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2,6,23,.08);
}

.ax-btn--pri {
    background: linear-gradient(90deg,var(--pri),var(--pri2));
    color: #fff
}

/* ===== Footer (فاتح وشفاف) ===== */
.id-footer {
    margin-top: 2rem;
    background: transparent;
    border-top: 1px solid var(--line);
}

.id-footer__grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.2rem;
    padding: 14px 0 10px;
}

.id-footer h4 {
    margin: 0 0 .6rem;
    font-weight: 800;
    color: #0f172a
}

.id-footer p, .id-footer li {
    color: #475569;
    margin: .35rem 0
}

.id-footer a {
    color: #0f172a;
    text-decoration: none;
    border-bottom: 1px solid transparent
}

    .id-footer a:hover {
        color: var(--pri);
        border-color: rgba(37,99,235,.25)
    }

.id-list {
    list-style: none;
    margin: 0;
    padding: 0
}

    .id-list li {
        margin: .3rem 0
    }

.id-pay {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap
}

    .id-pay img {
        height: 22px;
        border-radius: 6px;
        filter: grayscale(.05);
        opacity: .95
    }

.id-copy {
    text-align: center;
    color: #6b7280;
    padding: 10px 0 14px;
    border-top: none
}

/* ===== Responsive ===== */
@media (max-width:860px) {
    .id-nav, .id-actions {
        display: none
    }

    .id-footer__grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:580px) {
    .id-footer__grid {
        grid-template-columns: 1fr;
        text-align: center
    }

    .id-pay {
        justify-content: center
    }
}
