/* هوية Amazon Talents: أسود زمردي + ذهبي. كل الألوان من المتغيرات دي */
:root {
    --ink: #07110e;
    --ink-2: #0b1915;
    --panel: #10221c;
    --panel-2: #152b24;
    --line: rgba(212, 175, 106, .16);
    --line-soft: rgba(255, 255, 255, .07);
    --emerald: #0f5a45;
    --emerald-2: #1fa97f;
    --gold: #d4af6a;
    --gold-2: #f3dfa8;
    --gold-3: #a67c37;
    --ivory: #f6f1e4;
    --text: #dfe6e1;
    --muted: #97aaa2;
    --danger: #e5766b;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
    --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --font-head: 'Playfair Display', 'El Messiri', serif;
    --gold-grad: linear-gradient(135deg, #f3dfa8, #d4af6a 55%, #a67c37);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.at { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ivory); line-height: 1.25; margin: 0; font-weight: 700; font-feature-settings: 'lnum'; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.at-container { width: min(1240px, 100%); margin-inline: auto; padding-inline: 20px; }
.at-num { font-family: 'Playfair Display', serif; font-feature-settings: 'lnum'; }
[hidden] { display: none !important; }

/* الأزرار */
.at-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; background: none; }
.at-btn:hover { transform: translateY(-2px); }
.at-btn--primary { background: var(--gold-grad) border-box; color: #1a1408; box-shadow: 0 10px 28px rgba(212, 175, 106, .25); }
.at-btn--primary:hover { box-shadow: 0 14px 36px rgba(212, 175, 106, .38); }
.at-btn--ghost { border-color: var(--line); color: var(--ivory); background: rgba(255, 255, 255, .03); }
.at-btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.at-btn--danger { border-color: rgba(229, 118, 107, .4); color: var(--danger); }
.at-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.at-btn--block { width: 100%; }
.at-icon-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--ivory); cursor: pointer; transition: border-color .2s, color .2s; font-size: 14px; font-weight: 600; }
.at-icon-btn:hover { border-color: var(--gold); color: var(--gold-2); }

/* الهيدر */
.at-header { position: sticky; top: 0; z-index: 900; background: rgba(7, 17, 14, .78); backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line-soft); }
.at-header__bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.at-header__logo img { height: 46px; width: auto; }
.at-nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.at-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; position: relative; }
.at-nav a:hover, .at-nav a.is-active { color: var(--gold-2); }
.at-nav a.is-active::after { content: ''; position: absolute; inset-inline: 14px; bottom: 1px; height: 1px; background: var(--gold); }
.at-header__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.at-shortlist-link { position: relative; }
.at-badge-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #1a1408; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.at-burger { display: none; }

/* درج الموبايل */
.at-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.at-drawer.is-open { visibility: visible; }
.at-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.at-drawer.is-open .at-drawer__backdrop { opacity: 1; }
.at-drawer__panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(340px, 86vw); background: var(--ink-2); border-inline-start: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; transform: translateX(100%); transition: transform .28s ease; }
[dir='rtl'] .at-drawer__panel { transform: translateX(-100%); }
.at-drawer.is-open .at-drawer__panel { transform: none; }
.at-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.at-drawer__head img { height: 40px; width: auto; }
.at-drawer__link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--text); font-weight: 500; }
.at-drawer__link i { color: var(--gold); width: 20px; text-align: center; }
.at-drawer__link.is-active, .at-drawer__link:hover { background: rgba(212, 175, 106, .08); color: var(--gold-2); }
.at-drawer__foot { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }

/* البار السفلي (موبايل) */
.at-tabbar { display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 890; background: rgba(11, 25, 21, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5, 1fr); }
.at-tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; color: var(--muted); font-size: 11px; font-weight: 500; background: none; border: 0; cursor: pointer; position: relative; line-height: 1.3; }
.at-tabbar__item i { font-size: 18px; }
.at-tabbar__item.is-active { color: var(--gold-2); }
.at-tabbar__center i { width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold-grad); color: #1a1408; border: 4px solid var(--ink-2); font-size: 19px; }

/* عناوين الأقسام */
.at-section { padding: 88px 0; position: relative; }
.at-section--alt { background: var(--ink-2); border-block: 1px solid var(--line-soft); }
.at-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.at-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.at-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.at-head h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 10px; }
.at-head p { color: var(--muted); max-width: 560px; margin-top: 10px; }

/* الهيرو: الاستاد مكان السلايدر */
.at-hero { position: relative; overflow: hidden; padding: 44px 0 56px; background: radial-gradient(1000px 500px at 50% -6%, rgba(31, 169, 127, .24), transparent 68%), var(--ink); }
.at-hero__text { position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto 26px; }
.at-hero h1 { font-size: clamp(34px, 5.4vw, 64px); margin: 10px 0 10px; }
.at-hero h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.at-hero__lead { color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); }
.at-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; justify-content: center; }
.at-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 30px; border-block: 1px solid var(--line); padding: 16px 0; text-align: center; }
.at-stats strong { display: block; font-family: 'Playfair Display', serif; font-feature-settings: 'lnum'; font-size: clamp(24px, 3vw, 36px); color: var(--gold-2); line-height: 1.2; }
.at-stats span { color: var(--muted); font-size: 13px; }

.stadium { position: relative; z-index: 1; perspective: 1700px; width: min(1020px, 100%); margin-inline: auto; }
.stadium__bowl { position: relative; padding: 14px; border-radius: 34px; background: linear-gradient(#17211e, #0c1512); border: 1px solid var(--line); box-shadow: 0 50px 90px rgba(0, 0, 0, .6); transform: rotateX(var(--rx, 16deg)) rotateY(var(--ry, 0deg)); transform-origin: 50% 70%; transition: transform .3s ease-out; display: grid; gap: 12px; }
/* كشافات الإضاءة في الأركان */
.stadium__bowl::before, .stadium__bowl::after { content: ''; position: absolute; top: -40px; width: 46%; height: 300px; pointer-events: none; z-index: 3; background: radial-gradient(ellipse at top, rgba(243, 223, 168, .2), transparent 68%); }
.stadium__bowl::before { left: 0; transform: skewX(14deg); }
.stadium__bowl::after { right: 0; transform: skewX(-14deg); }
.stands, .bench { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; padding: 12px; border-radius: 16px; overflow: hidden; }
.stands { min-height: 104px; background: repeating-linear-gradient(0deg, #1b2a25 0 9px, #101c18 9px 18px); }
.stands::before { content: ''; position: absolute; inset: 0; opacity: .55; background-image: radial-gradient(circle, rgba(212, 175, 106, .6) 1.3px, transparent 1.8px), radial-gradient(circle, rgba(246, 241, 228, .35) 1.3px, transparent 1.8px); background-size: 15px 18px, 21px 18px; background-position: 0 4px, 7px 13px; }
.bench { background: linear-gradient(#123429, #0d2820); border: 1px solid rgba(212, 175, 106, .25); min-height: 76px; }
/* العنوان في سطر لوحده عشان الكرسي المنوّر مايركبش عليه */
.stadium__label { position: relative; z-index: 2; flex: 0 0 100%; display: flex; justify-content: center; gap: 7px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--gold-2); text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.seat { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gold); background: rgba(7, 17, 14, .86); color: var(--gold-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; white-space: nowrap; box-shadow: 0 0 18px rgba(243, 223, 168, .22); }
.seat i { font-size: 12px; }
.seat b { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: rgba(212, 175, 106, .2); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.seat:hover, .seat.is-focus { background: var(--gold); color: #1a1408; transform: translateY(-3px); box-shadow: 0 0 26px rgba(243, 223, 168, .6); }
.seat:hover b, .seat.is-focus b { background: rgba(0, 0, 0, .15); }
.stadium .pitch { aspect-ratio: 105 / 56; border-radius: 10px; background: repeating-linear-gradient(90deg, #0f4a38 0 10%, #0c4031 10% 20%); box-shadow: 0 0 0 2px rgba(246, 241, 228, .3), inset 0 0 90px rgba(0, 0, 0, .3); }
.stadium .pitch__dot { left: calc((100 - var(--y)) * 1%); top: calc(var(--x) * 1%); text-decoration: none; }
.stadium .pitch__lines--v { display: none; }
/* الضوء فوق كل مركز */
.pitch__dot--lit::before { content: ''; position: absolute; left: 50%; bottom: 40%; width: 74px; height: 130px; transform: translateX(-50%); pointer-events: none; background: linear-gradient(transparent, rgba(243, 223, 168, .3)); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); opacity: .75; transition: opacity .2s; transform-origin: bottom; animation: spot 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.pitch__dot--lit::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(243, 223, 168, .5); animation: ping 2.6s ease-out infinite; animation-delay: var(--d, 0s); pointer-events: none; }
.pitch__dot--lit:hover::before, .pitch__dot--lit.is-focus::before { opacity: 1; background: linear-gradient(transparent, rgba(243, 223, 168, .55)); }
@keyframes spot { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }
@keyframes ping { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.stadium-dock { position: relative; z-index: 4; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 12px 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(16, 34, 28, .92); min-height: 72px; }
.stadium-dock__title { min-width: 170px; }
.stadium-dock__title small { display: block; color: var(--gold); font-size: 12px; font-weight: 600; }
.stadium-dock__title strong { font-family: var(--font-head); color: var(--ivory); font-size: 20px; line-height: 1.3; }
.stadium-dock__people { display: flex; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.stadium-dock__people a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--ivory); font-size: 13.5px; }
[dir='rtl'] .stadium-dock__people a { padding: 4px 4px 4px 12px; }
.stadium-dock__people a:hover { background: rgba(212, 175, 106, .16); }
.stadium-dock__people img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.stadium-dock__empty { color: var(--muted); font-size: 14px; flex: 1; }
.at-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; color: var(--muted); font-size: 13.5px; text-align: center; }
.at-how i { color: var(--gold); margin-inline-end: 6px; }

/* الملعب */
.pitch { position: relative; width: 100%; aspect-ratio: 68 / 100; border-radius: 12px; background: repeating-linear-gradient(0deg, #0e4635 0 10%, #0c3e2f 10% 20%); box-shadow: 0 0 0 1px rgba(212, 175, 106, .35), var(--shadow); overflow: hidden; }
.pitch__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pitch__lines * { fill: none; stroke: rgba(246, 241, 228, .58); stroke-width: 3; }
.pitch__lines .dot { fill: rgba(246, 241, 228, .7); stroke: none; }
.pitch__dot { position: absolute; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--gold); background: rgba(7, 17, 14, .82); color: var(--gold-2); font-size: 12px; font-weight: 700; font-family: var(--font-body); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.pitch__dot:hover, .pitch__dot.is-focus { transform: translate(-50%, -50%) scale(1.16); background: var(--gold); color: #1a1408; box-shadow: 0 0 0 8px rgba(212, 175, 106, .2); z-index: 3; }
.pitch__dot.is-on { background: var(--gold-grad); color: #1a1408; border-color: var(--gold-2); box-shadow: 0 0 0 7px rgba(212, 175, 106, .25), 0 0 26px rgba(243, 223, 168, .7); z-index: 2; }
.pitch__dot.is-second { background: rgba(31, 169, 127, .9); border-color: #7fe3c3; color: #04140e; }
.pitch__dot.is-off { opacity: .4; border-color: rgba(246, 241, 228, .4); color: var(--ivory); }
.pitch__count { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 999px; background: var(--emerald-2); color: #04140e; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pitch--sm .pitch__dot { width: 36px; height: 36px; font-size: 10px; }
.pitch-legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 12px; }
.pitch-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-inline-end: 6px; background: var(--gold); }
.pitch-legend .sec { background: var(--emerald-2); }

/* كارت اللاعب */
.at-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.at-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); border: 1px solid var(--line-soft); transition: transform .3s, border-color .3s, box-shadow .3s; }
.p-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.p-card__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel-2); }
.p-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.p-card:hover .p-card__img img { transform: scale(1.05); }
.p-card__img::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(7, 17, 14, .96)); }
.p-card__pos { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; min-width: 42px; height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(7, 17, 14, .75); border: 1px solid var(--gold); color: var(--gold-2); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.p-card__star { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; }
.p-card__body { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 16px; }
.p-card__name { font-size: 20px; display: flex; align-items: center; gap: 7px; }
.p-card__name i { color: var(--emerald-2); font-size: 14px; }
.p-card__club { color: var(--gold); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-card__meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.at-star { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: rgba(7, 17, 14, .7); color: var(--ivory); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.at-star:hover { color: var(--gold-2); border-color: var(--gold); }
.at-star.is-on { background: var(--gold-grad); color: #1a1408; border-color: var(--gold-2); }

/* كروت المميزات والخطوات */
.at-feature { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 28px 24px; transition: border-color .3s, transform .3s; }
.at-feature:hover { border-color: var(--line); transform: translateY(-3px); }
.at-feature > i { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(212, 175, 106, .1); color: var(--gold); font-size: 20px; margin-bottom: 16px; }
.at-feature h3 { font-size: 20px; margin-bottom: 8px; }
.at-feature p { color: var(--muted); font-size: 15px; }
.at-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.at-step { position: relative; padding-top: 24px; border-top: 1px solid var(--line); counter-increment: step; }
.at-step::before { content: counter(step, decimal-leading-zero); font-family: 'Playfair Display', serif; font-feature-settings: 'lnum'; font-size: 40px; color: var(--gold); line-height: 1; display: block; margin-bottom: 12px; }
.at-step h3 { font-size: 19px; margin-bottom: 6px; }
.at-step p { color: var(--muted); font-size: 15px; }
.at-cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 56px 40px; text-align: center; background: radial-gradient(600px 300px at 50% 0, rgba(31, 169, 127, .28), transparent 70%), var(--panel); }
.at-cta h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.at-cta p { color: var(--muted); max-width: 620px; margin: 0 auto 24px; }
.at-faq details { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.at-faq summary { cursor: pointer; font-weight: 600; color: var(--ivory); display: flex; justify-content: space-between; gap: 14px; list-style: none; }
.at-faq summary::-webkit-details-marker { display: none; }
.at-faq summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; }
.at-faq details[open] summary::after { content: '–'; }
.at-faq p { color: var(--muted); margin-top: 8px; }

/* رأس الصفحات الداخلية */
.at-page-head { padding: 44px 0 34px; background: radial-gradient(600px 240px at 75% 0, rgba(31, 169, 127, .16), transparent 70%); border-bottom: 1px solid var(--line-soft); }
.at-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.at-crumbs a:hover { color: var(--gold-2); }
.at-crumbs i { font-size: 9px; }
.at-page-head h1 { font-size: clamp(30px, 4.4vw, 46px); }
.at-page-head p { color: var(--muted); margin-top: 6px; }

/* الدليل */
.at-browse { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; padding: 34px 0 80px; align-items: start; }
.at-filters { position: sticky; top: 92px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 18px; display: grid; gap: 14px; max-height: calc(100vh - 110px); overflow-y: auto; }
.at-filters__title { display: flex; align-items: center; justify-content: space-between; color: var(--ivory); font-weight: 600; }
.at-filters__title a { color: var(--gold); font-size: 13px; font-weight: 500; }
.at-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.at-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: 13.5px; background: none; cursor: pointer; transition: all .2s; }
.at-chip.is-on, .at-chip:hover { background: rgba(212, 175, 106, .14); border-color: var(--gold); color: var(--gold-2); }
.at-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.at-toolbar strong { color: var(--ivory); }
.at-empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.at-empty i { font-size: 36px; color: var(--gold); margin-bottom: 12px; display: block; }
.at-empty h3 { font-size: 22px; margin-bottom: 6px; }
.at-pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 30px; }
.at-pager a, .at-pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line-soft); color: var(--text); }
.at-pager a:hover { border-color: var(--gold); }
.at-pager .is-on { background: var(--gold-grad); color: #1a1408; border-color: transparent; font-weight: 700; }
.at-pager .is-off { opacity: .4; }
.at-filter-toggle { display: none; }

/* الفورم */
.at-form { display: grid; gap: 16px; }
.at-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.at-form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.at-field { display: grid; gap: 6px; min-width: 0; }
.at-field > label, .at-label { font-size: 14px; font-weight: 500; color: var(--ivory); }
.at-field__label-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.at-field__label-row label { font-size: 14px; font-weight: 500; color: var(--ivory); }
.at-field__label-row a { color: var(--gold); }
.at-field__error { color: var(--danger); font-size: 13px; }
.at-field__hint { color: var(--muted); font-size: 13px; line-height: 1.6; }
.at-input, .at-field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), .at-field select, .at-field textarea, .qm-locsel select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--ink-2); color: var(--ivory); transition: border-color .2s; outline: 0; }
.at-field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.at-field input:focus, .at-field select:focus, .at-field textarea:focus, .qm-locsel select:focus { border-color: var(--gold); }
.at-field select option, .qm-locsel select option { background: var(--ink-2); color: var(--ivory); }
::placeholder { color: rgba(151, 170, 162, .6); }
.at-input-icon { position: relative; }
.at-input-icon > i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 14px; pointer-events: none; }
.at-input-icon input, .at-input-icon select { padding-inline-start: 40px !important; }
.at-input-icon__toggle { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; }
.at-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.at-check input { width: 18px; height: 18px; accent-color: var(--gold); margin-top: 3px; flex: none; }
.at-check a { color: var(--gold); }
.qm-locsel { display: grid; gap: 12px; }
.qm-locsel--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.at-filters .qm-locsel { grid-template-columns: 1fr; }
.qm-locsel__item.is-empty { display: none; }
.qm-locsel select:disabled { opacity: .5; }
.at-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* البروفايل */
.pf-hero { position: relative; padding: 46px 0 34px; overflow: hidden; background: var(--ink-2); border-bottom: 1px solid var(--line); }
.pf-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; filter: saturate(.9); }
.pf-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 17, 14, .4), var(--ink-2) 92%), radial-gradient(700px 400px at 80% 0, rgba(31, 169, 127, .22), transparent 70%); }
.pf-hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: end; }
.pf-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gold); box-shadow: var(--shadow); background: var(--panel); }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-number { position: absolute; bottom: 10px; inset-inline-end: 14px; font-family: 'Playfair Display', serif; font-feature-settings: 'lnum'; font-size: 54px; line-height: 1; color: var(--gold-2); text-shadow: 0 4px 18px rgba(0, 0, 0, .7); }
.pf-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pf-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); color: var(--gold-2); background: rgba(7, 17, 14, .55); }
.pf-tag--verified { border-color: rgba(31, 169, 127, .6); color: #8fe8cb; }
.pf-tag--available { border-color: rgba(31, 169, 127, .4); color: #8fe8cb; }
.pf-name { font-size: clamp(36px, 6vw, 66px); }
.pf-alt { color: var(--muted); font-size: 16px; margin-top: 2px; }
.pf-sub { color: var(--gold); margin-top: 6px; font-weight: 500; display: flex; gap: 14px; flex-wrap: wrap; }
.pf-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 22px; border-block: 1px solid var(--line); }
.pf-facts > div { padding: 14px 10px; border-inline-start: 1px solid var(--line-soft); min-width: 0; }
.pf-facts > div:first-child { border-inline-start: 0; }
.pf-facts strong { display: block; font-family: 'Playfair Display', 'El Messiri', serif; font-feature-settings: 'lnum'; color: var(--ivory); font-size: 24px; line-height: 1.3; }
.pf-facts strong small { font-size: 13px; color: var(--muted); font-family: var(--font-body); }
.pf-facts span { color: var(--muted); font-size: 12.5px; }
.pf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.pf-nav { position: sticky; top: 76px; z-index: 50; background: rgba(7, 17, 14, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.pf-nav__in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pf-nav a { padding: 14px 14px; color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.pf-nav a:hover, .pf-nav a.is-on { color: var(--gold-2); border-color: var(--gold); }
.pf-section { padding: 52px 0; scroll-margin-top: 130px; border-bottom: 1px solid var(--line-soft); }
.pf-section > .at-container > h2, .pf-h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 22px; }
.pf-overview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .8fr); gap: 22px; align-items: start; }
.pf-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 22px; min-width: 0; }
.pf-card h3 { font-size: 19px; margin-bottom: 12px; }
.pf-bio { white-space: pre-line; color: var(--text); }
.pf-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pf-skills span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-2); font-size: 13px; }
.pf-rows { display: grid; gap: 0; margin-top: 12px; }
.pf-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; }
.pf-rows span { color: var(--muted); }
.pf-rows b { color: var(--ivory); font-weight: 500; text-align: end; }
.radar { width: 100%; max-width: 320px; margin: 0 auto; display: block; overflow: visible; }
.radar text { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.radar .val { fill: var(--gold-2); font-weight: 700; }
.pf-note { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 8px; }
.video-feature { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 18px; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.video-side { display: grid; gap: 16px; align-content: start; }
.v-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel-2); border: 1px solid var(--line-soft); cursor: pointer; text-align: start; padding: 0; width: 100%; display: block; color: inherit; transition: border-color .25s, transform .25s; }
.v-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.v-card__img { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #123a2e, #0a1612); }
.v-card__img img { width: 100%; height: 100%; object-fit: cover; }
.v-card__play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(7, 17, 14, .7); border: 1px solid var(--gold); color: var(--gold-2); display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s; }
.v-card:hover .v-card__play { transform: scale(1.1); background: var(--gold); color: #1a1408; }
.v-card__body { padding: 11px 14px; }
.v-card__body strong { display: block; color: var(--ivory); font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-card__body small { color: var(--muted); }
.v-card--big .v-card__play { width: 78px; height: 78px; font-size: 22px; }
.v-card--big .v-card__body strong { font-size: 18px; }
.at-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; padding: 16px; }
.at-modal__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.at-modal__box { width: min(1000px, 100%); max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.at-modal__box video, .at-modal__box iframe { width: 100%; aspect-ratio: 16 / 9; max-height: 86vh; border: 0; border-radius: 12px; background: #000; }
.at-modal__box img { max-height: 88vh; border-radius: 12px; }
.pf-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.pf-total { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; text-align: center; }
.pf-total strong { display: block; font-family: 'Playfair Display', serif; font-feature-settings: 'lnum'; font-size: 34px; color: var(--gold-2); line-height: 1.2; }
.pf-total span { color: var(--muted); font-size: 13px; }
.pf-career { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.timeline { position: relative; display: grid; gap: 16px; padding-inline-start: 28px; }
.timeline::before { content: ''; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 7px; width: 1px; background: linear-gradient(var(--gold), var(--line-soft)); }
.tl-item { position: relative; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 18px; }
.tl-item::before { content: ''; position: absolute; top: 22px; inset-inline-start: -27px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); }
.tl-item.is-current { border-color: var(--line); }
.tl-item.is-current::before { background: var(--gold); box-shadow: 0 0 0 5px rgba(212, 175, 106, .2); }
.tl-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tl-top h3 { font-size: 19px; }
.tl-years { color: var(--gold); font-size: 14px; font-weight: 500; white-space: nowrap; }
.tl-sub { color: var(--muted); font-size: 13.5px; }
.tl-nums { display: flex; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.tl-nums div { font-size: 13px; color: var(--muted); }
.tl-nums b { color: var(--ivory); font-family: 'Playfair Display', serif; font-feature-settings: 'lnum'; font-size: 18px; margin-inline-end: 4px; }
.tl-notes { color: var(--text); font-size: 14px; margin-top: 8px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.ach:first-of-type { border-top: 0; }
.ach i { width: 38px; height: 38px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(212, 175, 106, .1); color: var(--gold); }
.ach strong { display: block; font-weight: 500; color: var(--ivory); font-size: 14.500px; line-height: 1.5; }
.ach small { color: var(--muted); }
.gallery { columns: 4 220px; column-gap: 12px; }
.gallery button { display: block; width: 100%; margin-bottom: 12px; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; break-inside: avoid; }
.gallery img { width: 100%; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); transition: border-color .2s; min-width: 0; }
.contact-item:hover { border-color: var(--gold); }
.contact-item > i { width: 42px; height: 42px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(212, 175, 106, .1); color: var(--gold); font-size: 17px; }
.contact-item div { min-width: 0; }
.contact-item small { display: block; color: var(--muted); }
.contact-item strong { color: var(--ivory); font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; }
.at-social { display: flex; gap: 10px; flex-wrap: wrap; }
.at-social a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ivory); transition: all .2s; }
.at-social a:hover { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.at-brand-icon { width: 17px; height: 17px; }
.at-banner { background: rgba(212, 175, 106, .1); border-bottom: 1px solid var(--line); color: var(--gold-2); padding: 10px 0; font-size: 14px; }
.at-modal__card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; width: min(380px, 100%); text-align: center; }
.at-modal__card h3 { font-size: 22px; margin-bottom: 14px; }
.at-qr { background: #fff; padding: 14px; border-radius: 14px; width: min(240px, 100%); margin: 0 auto 14px; }
.at-copy { display: flex; gap: 8px; }
.at-copy input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--ink-2); color: var(--ivory); }

/* الجوايز والشهادات والبطولات */
.at-chip b { color: var(--gold); font-size: 14px; }
.honors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.honor { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); min-width: 0; transition: border-color .25s; }
.honor:hover { border-color: var(--line); }
.honor__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(212, 175, 106, .12); color: var(--gold); font-size: 18px; }
.honor__body { min-width: 0; }
.honor__tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--gold); font-size: 12.5px; font-weight: 600; margin-bottom: 3px; }
.honor__scope { padding: 0 8px; border-radius: 999px; font-size: 11.5px; }
.honor__scope--official { background: rgba(31, 169, 127, .16); color: #8fe8cb; }
.honor__scope--friendly { background: rgba(255, 255, 255, .08); color: var(--text); }
.honor h3 { font-family: var(--font-body); font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.honor p { color: var(--muted); font-size: 13.5px; }
.honor__place { color: var(--gold-2) !important; }
.honor__view { margin-top: 6px; background: none; border: 0; padding: 0; color: var(--gold); font-size: 13px; cursor: pointer; }
.honor__view:hover { color: var(--gold-2); }

/* القايمة المختصرة والمقارنة */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--panel); margin-top: 28px; }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: center; border-top: 1px solid var(--line-soft); font-size: 14.5px; }
.cmp thead th { border-top: 0; color: var(--ivory); font-family: var(--font-head); font-size: 16px; }
.cmp thead img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; margin: 0 auto 6px; border: 1px solid var(--gold); }
.cmp tbody th { text-align: start; color: var(--muted); font-weight: 500; }
.cmp .best { color: var(--gold-2); font-weight: 700; }

/* الأخبار وقصص النجاح والتصفح */
.post-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); border: 1px solid var(--line-soft); transition: transform .3s, border-color .3s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.post-card__img { aspect-ratio: 16 / 9; background: var(--panel-2); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.post-card__meta { color: var(--gold); font-size: 12.5px; font-weight: 600; }
.post-card h3 { font-size: 19px; line-height: 1.45; }
.post-card p { color: var(--muted); font-size: 14.5px; }
.story-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line-soft); transition: border-color .3s; }
.story-card:hover { border-color: var(--gold); }
.story-card > i { color: var(--gold); font-size: 22px; }
.story-card > p { color: var(--text); flex: 1; }
.story-card__who { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); min-width: 0; }
.story-card__who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); flex: none; }
.story-card__who strong { display: block; color: var(--ivory); font-weight: 600; }
.story-card__who small { color: var(--muted); }
.league-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.league-box { padding: 16px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line-soft); min-width: 0; }
.league-box h3 { font-size: 18px; margin-bottom: 8px; }
.league-box a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); color: var(--text); font-size: 14px; transition: color .2s; }
.league-box a:hover { color: var(--gold-2); }
.league-box b { color: var(--gold); flex: none; }
.at-countries { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.at-countries b { color: var(--gold); font-size: 14px; }
.news-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.article { max-width: 820px; margin-inline: auto; padding: 34px 0 60px; }
.article__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 24px; border: 1px solid var(--line-soft); }
.article__meta { color: var(--gold); font-size: 13.5px; margin-bottom: 14px; display: flex; gap: 14px; flex-wrap: wrap; }

/* الصفحات النصية والتواصل */
.at-prose { max-width: 820px; color: var(--text); }
.at-prose p { margin-bottom: 14px; }
.at-prose h2, .at-prose h3 { margin: 22px 0 10px; }
.at-prose ul { list-style: disc; padding-inline-start: 22px; margin-bottom: 14px; }
.at-contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 26px; padding: 40px 0 80px; align-items: start; }

/* الفوتر */
.at-footer { position: relative; overflow: hidden; background: linear-gradient(#07110e, #040a08); border-top: 1px solid var(--line); }
.at-footer::before { content: ''; position: absolute; top: -220px; left: 50%; width: 520px; height: 520px; margin-inline-start: -260px; border: 1px solid rgba(212, 175, 106, .08); border-radius: 50%; pointer-events: none; }
.at-footer .at-container { position: relative; }
.at-footer__cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 44px 0 34px; border-bottom: 1px solid var(--line-soft); }
.at-footer__cta h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 4px; }
.at-footer__cta p { color: var(--muted); margin: 0; }
.at-footer__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.2fr); gap: 40px; padding: 40px 0; }
.at-footer__logo { display: inline-block; }
.at-footer__logo img { height: 54px; width: auto; margin-bottom: 14px; }
.at-footer__brand p { color: var(--muted); font-size: 14.5px; line-height: 1.85; max-width: 340px; margin-bottom: 18px; }
.at-footer h3 { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.at-footer ul { display: grid; gap: 10px; color: var(--muted); font-size: 14.5px; }
.at-footer nav ul a { display: inline-block; transition: color .2s, transform .2s; }
.at-footer nav ul a:hover { color: var(--gold-2); transform: translateX(3px); }
[dir='rtl'] .at-footer nav ul a:hover { transform: translateX(-3px); }
.at-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.at-footer__contact i { color: var(--gold); width: 16px; flex: none; margin-top: 5px; }
.at-footer__contact a:hover { color: var(--gold-2); }
.at-footer__contact bdi { unicode-bidi: isolate; }
.at-footer__bottom { position: relative; border-top: 1px solid var(--line-soft); padding: 16px 0; color: var(--muted); font-size: 13.5px; }
.at-footer__bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
/* شارة EnterHash */
.at-credit { display: inline-flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .55); }
.at-credit__mark { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-family: 'Montserrat', var(--font-body); font-weight: 500; transition: border-color .25s, background .25s; }
.at-credit__mark b { font-weight: 800; color: #c9a184; }
.at-credit__mark code { font-size: .8em; color: rgba(255, 255, 255, .55); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.at-credit:hover { color: rgba(255, 255, 255, .85); }
.at-credit:hover .at-credit__mark { border-color: rgba(201, 161, 132, .5); background: rgba(255, 255, 255, .04); }

/* صفحات الدخول */
.at-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.at-auth__brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 44px; background: radial-gradient(600px 420px at 30% 10%, rgba(31, 169, 127, .3), transparent 70%), var(--ink-2); border-inline-end: 1px solid var(--line); }
.at-auth__logo img { height: 58px; width: auto; }
.at-auth__brand h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 10px; }
.at-auth__brand p { color: var(--muted); }
.at-auth__points { display: grid; gap: 12px; }
.at-auth__points li { display: flex; gap: 12px; align-items: center; color: var(--text); }
.at-auth__points i { color: var(--gold); width: 20px; text-align: center; }
.at-auth__home { color: var(--muted); font-size: 14px; }
.at-auth__main { display: flex; flex-direction: column; padding: 24px; min-width: 0; }
.at-auth__top { display: flex; justify-content: space-between; align-items: center; }
.at-auth__mobile-logo { visibility: hidden; }
.at-auth__mobile-logo img { height: 44px; width: auto; }
.at-auth__card { width: min(520px, 100%); margin: auto; padding: 24px 0; }
.at-auth__card h1 { font-size: 34px; margin-bottom: 6px; }
.at-auth__sub { color: var(--muted); margin-bottom: 22px; }
.at-auth__switch { text-align: center; color: var(--muted); padding-bottom: 12px; }
.at-auth__switch a { color: var(--gold); font-weight: 600; }
.at-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.at-notice--error { background: rgba(229, 118, 107, .12); color: #f3b1a9; margin-bottom: 16px; }
.at-notice--gold { background: rgba(212, 175, 106, .1); color: var(--gold-2); border: 1px solid var(--line); }
.at-notice--green { background: rgba(31, 169, 127, .12); color: #8fe8cb; border: 1px solid rgba(31, 169, 127, .3); }
.at-steps-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.at-steps-mini li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.at-steps-mini b { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* لوحة اللاعب */
.pl { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 100vh; }
.pl-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink-2); border-inline-end: 1px solid var(--line-soft); padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; }
.pl-side__logo img { height: 46px; width: auto; margin: 0 8px 18px; }
.pl-me { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel); margin-bottom: 12px; min-width: 0; }
.pl-me img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--gold); }
.pl-me strong { display: block; color: var(--ivory); font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); font-weight: 500; font-size: 15px; transition: background .2s, color .2s; }
.pl-link i { width: 20px; text-align: center; }
.pl-link:hover { color: var(--ivory); background: rgba(255, 255, 255, .04); }
.pl-link.is-active { color: var(--gold-2); background: rgba(212, 175, 106, .1); }
.pl-link .at-badge-count { position: static; margin-inline-start: auto; }
.pl-side__foot { margin-top: auto; padding-top: 14px; display: grid; gap: 4px; }
.pl-main { min-width: 0; padding-bottom: 50px; }
.pl-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 10px 26px; background: rgba(7, 17, 14, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.pl-top h1 { font-size: 22px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-top__logo { display: none; }
.pl-body { padding: 26px; display: grid; gap: 20px; }
.pl-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 22px; min-width: 0; }
.pl-card > h2 { font-size: 20px; margin-bottom: 4px; }
.pl-card > .at-field__hint { display: block; margin-bottom: 16px; }
.pl-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pl-card__head h2 { font-size: 20px; }
.pl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pl-kpi { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; }
.pl-kpi i { color: var(--gold); }
.pl-kpi strong { display: block; font-family: 'Playfair Display', serif; font-feature-settings: 'lnum'; font-size: 30px; color: var(--ivory); line-height: 1.3; }
.pl-kpi span { color: var(--muted); font-size: 13px; }
.pl-progress { height: 8px; border-radius: 999px; background: var(--ink-2); overflow: hidden; }
.pl-progress i { display: block; height: 100%; background: var(--gold-grad); border-radius: 999px; }
.pl-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.pl-step { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-soft); color: var(--text); transition: border-color .2s; min-width: 0; }
.pl-step:hover { border-color: var(--gold); }
.pl-step > i { width: 34px; height: 34px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(212, 175, 106, .1); color: var(--gold); font-size: 13px; }
.pl-step.is-done > i { background: rgba(31, 169, 127, .18); color: #8fe8cb; }
.pl-step.is-done { color: var(--muted); }
.pl-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pl-save { position: sticky; bottom: 0; z-index: 30; display: flex; justify-content: flex-end; gap: 10px; padding: 12px 0; background: linear-gradient(transparent, var(--ink) 40%); }
.pl-pitch { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; align-items: start; }
.pl-mode { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 3px; margin-bottom: 12px; flex-wrap: wrap; }
.pl-mode button { border: 0; background: none; color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.pl-mode button.is-on { background: var(--gold-grad); color: #1a1408; font-weight: 600; }
.pl-slider { display: grid; grid-template-columns: 90px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 14px; }
.pl-slider input { accent-color: var(--gold); width: 100%; }
.pl-slider output { color: var(--gold-2); font-weight: 700; text-align: end; }
.pl-sliders { display: grid; gap: 10px; }
.pl-media { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
.pl-upload { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px dashed var(--line); background: var(--ink-2); cursor: pointer; transition: border-color .2s; }
.pl-upload:hover { border-color: var(--gold); }
.pl-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pl-upload img { width: 100%; height: 100%; object-fit: cover; }
.pl-upload--photo { aspect-ratio: 4 / 5; }
.pl-upload--cover { aspect-ratio: 16 / 7; }
.pl-upload__hint { position: absolute; inset-inline: 0; bottom: 0; padding: 8px; font-size: 13px; text-align: center; background: rgba(7, 17, 14, .75); color: var(--gold-2); pointer-events: none; }
.pl-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.pl-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ink-2); }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-thumb form { position: absolute; top: 6px; inset-inline-end: 6px; }
.pl-mini { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(7, 17, 14, .8); color: var(--ivory); cursor: pointer; }
.pl-mini:hover { color: var(--danger); }
.pl-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.pl-row:first-of-type { border-top: 0; }
.pl-row__main { flex: 1; min-width: 180px; }
.pl-row__main strong { display: block; color: var(--ivory); font-weight: 600; }
.pl-row__main small { color: var(--muted); }
.pl-row__thumb { width: 92px; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; background: var(--ink-2); flex: none; display: flex; align-items: center; justify-content: center; color: var(--gold); overflow: hidden; }
.pl-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-tabs { display: inline-flex; gap: 6px; margin-bottom: 10px; }
.pl-share-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; }
.pl-share-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pl-notif { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.pl-notif:first-of-type { border-top: 0; }
.pl-notif i { color: var(--gold); margin-top: 5px; }
.pl-notif p { color: var(--text); font-size: 14.5px; }
.pl-notif small { color: var(--muted); }
.pl-notif.is-new p { color: var(--gold-2); font-weight: 500; }
.at-upload-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.at-upload-overlay__card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; width: min(400px, 100%); text-align: center; }
.at-upload-overlay__card strong { font-size: 30px; color: var(--gold-2); font-family: 'Playfair Display', serif; font-feature-settings: 'lnum'; }

/* حركة الظهور */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .stadium__bowl { transform: none; }
    .pitch__dot--lit::before, .pitch__dot--lit::after { animation: none; }
}

/* زر الواتساب */
.at-whatsapp.is-away { opacity: 0; pointer-events: none; }
.at-whatsapp { transition: opacity .2s; position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 850; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }

@media (max-width: 1100px) {
    .at-nav { display: none; }
    .at-burger { display: inline-flex; }
    .at-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .at-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .at-browse { grid-template-columns: 1fr; }
    .at-filters { position: static; max-height: none; display: none; }
    .at-filters.is-open { display: grid; }
    .at-filter-toggle { display: inline-flex; }
    .pf-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .honors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .league-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-overview > :first-child { grid-column: 1 / -1; }
    .pf-hero__in { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
    .pf-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pf-facts > div:nth-child(4) { border-inline-start: 0; }
    .pf-facts > div:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
    .at-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .at-footer__brand { grid-column: 1 / -1; }
    .pl { grid-template-columns: 1fr; }
    .pl-side { display: none; }
    .pl-top__logo { display: block; height: 36px; width: auto; }
    .pl-top h1 { display: none; }
    .pl-top .at-actions-end { margin-inline-start: auto; }
    .pl-body { padding: 18px 16px 110px; }
    .pl-title-mobile { display: block !important; font-size: 26px; }
    .at-tabbar { display: grid; }
    .at-footer { padding-bottom: 80px; }
    .at-whatsapp { bottom: 88px; inset-inline-start: 14px; width: 48px; height: 48px; font-size: 24px; }
    .at-hide-tablet { display: none !important; }
}
.pl-title-mobile { display: none; }

@media (max-width: 760px) {
    .at-section { padding: 60px 0; }
    .at-grid, .at-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .at-section .at-grid--3:has(.post-card), .at-section .at-grid--3:has(.story-card) { grid-template-columns: 1fr; }
    .at-header__bar { min-height: 64px; gap: 10px; }
    .at-header__logo img { height: 38px; }
    .at-hide-mobile { display: none !important; }
    .at-hero { padding: 26px 0 44px; }
    .at-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
    .stadium__bowl { transform: none; padding: 8px; border-radius: 22px; gap: 8px; }
    /* الموبايل: الملعب بالطول */
    .stadium .pitch { aspect-ratio: 68 / 96; background: repeating-linear-gradient(0deg, #0f4a38 0 10%, #0c4031 10% 20%); }
    .stadium .pitch__dot { left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); }
    .stadium .pitch__lines--h { display: none; }
    .stadium .pitch__lines--v { display: block; }
    /* الكراسي كلها ظاهرة في عمودين من غير سحب */
    .stands, .bench { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
    .stands { min-height: 0; }
    .stadium__label { grid-column: 1 / -1; }
    .seat { min-width: 0; min-height: 42px; padding: 5px 10px; font-size: 12.5px; justify-content: flex-start; }
    .seat b { margin-inline-start: auto; flex: none; }
    .seat:hover, .seat.is-focus { transform: none; }
    .pitch__dot { width: 38px; height: 38px; font-size: 11px; }
    .pitch__dot--lit::before { width: 56px; height: 90px; }
    /* الشريط تحت الاستاد: العنوان فوق، والناس صف أفقي بيتسحب، والزرار تحتهم */
    .stadium-dock { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
    .stadium-dock__title { min-width: 0; }
    .stadium-dock__people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 112px; align-items: start; }
    .stadium-dock__people a, [dir='rtl'] .stadium-dock__people a { flex-direction: column; justify-content: flex-start; gap: 6px; min-width: 0; padding: 8px 4px; border-radius: 14px; text-align: center; font-size: 12.5px; line-height: 1.4; }
    .stadium-dock__people img { width: 44px; height: 44px; flex: none; }
    .stadium-dock__people span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: 100%; min-height: 2.8em; }
    .stadium-dock__empty { min-height: 112px; }
    .stadium-dock .at-btn { width: 100%; }
    .at-how { grid-template-columns: 1fr; text-align: start; gap: 4px; }
    .p-card__name { font-size: 16px; }
    .p-card__body { padding: 11px; }
    .p-card__meta { gap: 8px; font-size: 11.5px; }
    .at-star { width: 34px; height: 34px; }
    .at-form__row, .at-form__row--3, .qm-locsel--3 { grid-template-columns: 1fr; }
    .pf-hero { padding: 26px 0 22px; }
    .pf-hero__in { grid-template-columns: 1fr; gap: 18px; }
    .pf-photo { width: min(240px, 70%); margin-inline: auto; }
    .pf-tags, .pf-sub, .pf-actions { justify-content: center; }
    .pf-name, .pf-alt { text-align: center; }
    .pf-overview, .pf-career, .video-feature { grid-template-columns: 1fr; }
    .pf-nav { top: 64px; }
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .video-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .honors { grid-template-columns: 1fr; }
    .league-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .at-contact { grid-template-columns: 1fr; }
    .at-footer__cta { flex-direction: column; align-items: stretch; text-align: center; padding: 32px 0 26px; }
    .at-footer__cta .at-btn { width: 100%; }
    .at-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 28px 0; }
    .at-footer__brand, .at-footer__contact-col { grid-column: 1 / -1; }
    .at-footer__brand { text-align: center; }
    .at-footer__brand p { margin-inline: auto; }
    .at-footer__brand .at-social { justify-content: center; }
    .at-footer__bottom-in { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
    .at-auth { grid-template-columns: 1fr; }
    .at-auth__brand { display: none; }
    .at-auth__mobile-logo { visibility: visible; }
    .pl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pl-steps { grid-template-columns: 1fr; }
    .pl-pitch, .pl-media, .pl-share-card { grid-template-columns: 1fr; }
    .pl-upload--photo { max-width: 220px; }
    .at-cta { padding: 40px 20px; }
}

/* طباعة البروفايل (حفظه PDF) */
@media print {
    body.at { background: #fff; color: #111; font-size: 12px; }
    .at-header, .at-tabbar, .at-footer, .pf-nav, .pf-actions, .at-whatsapp, #similar, #videos, .at-star, .at-banner, .pf-hero__bg { display: none !important; }
    h1, h2, h3, .pf-rows b, .tl-nums b, .pf-facts strong, .pf-total strong, .ach strong { color: #111 !important; }
    .pf-hero, .pf-card, .tl-item, .pf-total, .contact-item { background: #fff !important; border-color: #ccc !important; }
    .pf-hero::after { display: none; }
    .pf-section { padding: 14px 0; break-inside: avoid; }
    .reveal { opacity: 1; transform: none; }
    .pf-rows span, .pf-facts span, .tl-sub, .pf-alt { color: #555 !important; }
}
.video-feature > .v-card { align-self: start; }
