/* =============================================================
   Yemen Acad — Design System (RTL Arabic) v2
   Responsive-first, touch-friendly, smooth & professional
   ============================================================= */

:root {
    --primary: #0d6b5b;
    --primary-dark: #084c40;
    --primary-light: #18a48a;
    --primary-soft: #ccfbf1;
    --secondary: #d4a017;
    --secondary-soft: #fef3c7;
    --accent: #5b6fde;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #0ea5e9;

    --bg: #f6f9fb;
    --surface: #ffffff;
    --surface-2: #f0f4f8;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow: 0 4px 14px rgba(15,23,42,.08);
    --shadow-lg: 0 18px 38px rgba(15,23,42,.12);
    --shadow-soft: 0 8px 24px rgba(13,107,91,.10);

    --gradient-primary: linear-gradient(135deg, #0d6b5b 0%, #18a48a 100%);
    --gradient-warm: linear-gradient(135deg, #d4a017 0%, #f5c842 100%);
    --gradient-hero: linear-gradient(150deg, #084c40 0%, #0d6b5b 55%, #12a182 100%);

    --container: 1240px;
    --header-h: 64px;
    --touch: 44px;

    --font: 'Cairo', 'Tajawal', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
::selection { background: var(--primary-soft); color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid rgba(24,164,138,.45); outline-offset: 2px; border-radius: 6px; }

h1,h2,h3,h4,h5 { margin: 0 0 .5em; font-weight: 800; line-height: 1.35; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.2rem); }
h2 { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.flex { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.ya-wrap { flex-wrap: wrap; }
/* Long text / URLs never break layout (LTR or RTL) */
.ya-u-break, .ya-card__meta, .ya-card__title a { overflow-wrap: anywhere; word-break: break-word; }

/* ---------- Header ---------- */
.ya-header {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.ya-header__inner {
    display: flex; align-items: center; gap: 12px; min-height: var(--header-h);
    flex-wrap: wrap; padding-block: 6px;
}
.ya-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.ya-brand__logo {
    width: 36px; height: 36px; border-radius: 10px; flex: none;
    background: var(--gradient-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; box-shadow: var(--shadow-soft);
}
.ya-brand__text { overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
.ya-brand--small .ya-brand__logo { width: 28px; height: 28px; font-size: .8rem; }
.ya-nav { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; flex-wrap: wrap; }
.ya-nav__link { padding: 8px 12px; border-radius: 10px; color: var(--text); font-weight: 600; min-height: var(--touch); display: inline-flex; align-items: center; white-space: nowrap; }
.ya-nav__link:hover { background: var(--surface-2); color: var(--primary-dark); }
.ya-nav-toggle { display: none; flex: none; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px; cursor: pointer; min-width: var(--touch); min-height: var(--touch); align-items: center; justify-content: center; }
.ya-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.ya-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ya-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ya-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.ya-search { position: relative; flex: none; }
.ya-search input {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    width: 240px; max-width: 100%;
    min-height: var(--touch);
    font-family: inherit; font-size: 1rem;
}
.ya-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,107,91,.15); background: #fff; }
.ya-search__results {
    position: absolute; top: calc(100% + 6px); inset-inline-start: 0; inset-inline-end: 0;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 280px; max-height: min(360px, 60dvh); overflow: auto;
    list-style: none; padding: 6px; margin: 0; z-index: 60;
}
.ya-search__results li { list-style: none; }
.ya-search__results li a {
    display: block; padding: 10px 12px; color: var(--text);
    border-radius: 8px; min-height: var(--touch);
}
.ya-search__results li a:hover, .ya-search__results li a.is-active { background: var(--surface-2); }
.ya-search__results .label { font-weight: 700; display: block; }
.ya-search__results .sub { display: block; color: var(--text-muted); font-size: .85rem; }

.ya-user-menu { position: relative; }
.ya-user-menu__toggle {
    background: #fff; border: 1px solid var(--border); border-radius: 999px;
    padding: 6px 14px; cursor: pointer; font-family: inherit; font-weight: 600;
    min-height: var(--touch); max-width: 100%;
}
.ya-user-menu__menu {
    position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); list-style: none; padding: 6px; margin: 0;
    min-width: 210px; z-index: 60;
    max-height: min(70dvh, 420px); overflow: auto;
}
.ya-user-menu__menu li { list-style: none; }
.ya-user-menu__menu li a, .ya-user-menu__menu li button {
    display: flex; align-items: center; padding: 10px 14px; min-height: var(--touch);
    width: 100%; text-align: start; border-radius: 8px;
    background: transparent; border: 0; color: var(--text); cursor: pointer;
    font-family: inherit; font-size: .95rem;
}
.ya-user-menu__menu li a:hover, .ya-user-menu__menu li button:hover { background: var(--surface-2); }
.ya-link-btn { background: transparent; border: 0; color: var(--text); cursor: pointer; padding: 0; font: inherit; }

/* ---------- Buttons ---------- */
.ya-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 999px;
    font-weight: 700; border: 1px solid transparent;
    cursor: pointer; font-family: inherit; font-size: .95rem; line-height: 1.4;
    min-height: var(--touch); white-space: nowrap;
    transition: transform .16s ease, box-shadow .16s ease, background .2s, border-color .2s;
    text-align: center;
}
.ya-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.ya-btn:active { transform: translateY(0); }
.ya-btn--primary { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-soft); }
.ya-btn--primary:hover { filter: brightness(.95); color: #fff; }
.ya-btn--ghost { background: #fff; border-color: var(--border-strong); color: var(--text); }
.ya-btn--ghost:hover { background: var(--surface-2); }
.ya-btn--secondary { background: var(--gradient-warm); color: #1f2937; }
.ya-btn--outline { background: #fff; border-color: var(--primary); color: var(--primary); }
.ya-btn--outline:hover { background: var(--primary-soft); }
.ya-btn--danger { background: var(--danger); color: #fff; }
.ya-btn--sm { padding: 6px 12px; font-size: .85rem; min-height: 36px; }
.ya-table .ya-btn--sm { min-height: 36px; padding: 4px 10px; }
.ya-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
/* Stacked actions inside forms / auth cards */
.ya-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.ya-form-actions .ya-btn { flex: 1 1 auto; }

.ya-icon-btn { position: relative; padding: 8px 10px; border-radius: 10px; color: var(--text); min-width: var(--touch); min-height: var(--touch); display: inline-flex; align-items: center; justify-content: center; }
.ya-icon-btn:hover { background: var(--surface-2); }
.ya-badge { position: absolute; top: 0; inset-inline-end: 0; background: var(--danger); color: #fff; border-radius: 999px; padding: 1px 6px; font-size: .7rem; min-width: 20px; text-align: center; }

/* ---------- Main / Hero ---------- */
.ya-main { min-height: calc(100vh - var(--header-h)); }

.ya-hero {
    background: var(--gradient-hero);
    color: #fff; padding: 72px 0 92px; position: relative; overflow: hidden;
}
.ya-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background:
        radial-gradient(420px 220px at 85% 10%, rgba(255,255,255,.16), transparent 60%),
        radial-gradient(520px 260px at 10% 90%, rgba(0,0,0,.18), transparent 60%);
}
.ya-hero::after { content: ''; position: absolute; bottom: -38px; inset-inline: 0; height: 76px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.ya-hero .container { position: relative; }
.ya-hero h1 { color: #fff; max-width: 16em; }
.ya-hero p { color: rgba(255,255,255,.92); max-width: 640px; }
.ya-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ya-hero__stats { margin-top: 26px; }

/* ---------- Section ---------- */
.ya-section { padding: 52px 0; }
.ya-section__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.ya-section__title { margin: 0; }
.ya-section__link { font-weight: 700; min-height: var(--touch); display: inline-flex; align-items: center; }

/* ---------- Grid ---------- */
.ya-grid { display: grid; gap: 18px; }
.ya-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ya-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ya-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
    .ya-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .ya-grid--2, .ya-grid--3, .ya-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .ya-grid { gap: 12px; }
    .ya-grid--2, .ya-grid--3, .ya-grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.ya-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
    overflow: hidden; display: flex; flex-direction: column; min-width: 0;
}
.ya-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
@media (hover: none) { .ya-card:hover { transform: none; } }
.ya-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ya-card__title { font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 0; overflow-wrap: anywhere; }
.ya-card__meta { color: var(--text-muted); font-size: .85rem; }
.ya-card__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface-2); }
.ya-card__img { aspect-ratio: 16/9; background: linear-gradient(135deg, #cbd5e1, #94a3b8); overflow: hidden; }
.ya-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ya-card__img:empty { min-height: 8px; aspect-ratio: auto; background: linear-gradient(90deg, var(--primary-soft), var(--surface-2)); }

/* ---------- Badges / Pills ---------- */
.ya-pill {
    display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
    padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
    background: var(--surface-2); color: var(--text); max-width: 100%;
}
.ya-pill--success { background: #dcfce7; color: #166534; }
.ya-pill--warning { background: #fef3c7; color: #92400e; }
.ya-pill--danger { background: #fee2e2; color: #991b1b; }
.ya-pill--info { background: #e0f2fe; color: #075985; }
.ya-pill--secondary { background: #e2e8f0; color: #334155; }
.ya-pill--primary { background: var(--primary-soft); color: #115e59; }

/* ---------- Stats ---------- */
.ya-stat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.ya-stat__num { font-size: 1.55rem; font-weight: 800; color: var(--primary-dark); line-height: 1.2; }
.ya-stat__label { color: var(--text-muted); font-size: .88rem; }

/* ---------- Forms ---------- */
.ya-field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ya-field label { font-weight: 700; color: var(--text); }
.ya-field .hint { color: var(--text-muted); font-size: .85rem; }
.ya-field .error { color: var(--danger); font-size: .85rem; }
.ya-input, .ya-select, .ya-textarea {
    width: 100%; max-width: 100%; padding: 10px 14px; border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; line-height: 1.5;
    min-height: var(--touch);
    background: #fff; transition: border-color .15s, box-shadow .15s;
    color: var(--text);
}
.ya-input:focus, .ya-select:focus, .ya-textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,107,91,.15);
}
.ya-textarea { min-height: 110px; resize: vertical; }
.ya-select[multiple] { min-height: 150px; padding: 8px; }
.ya-select[multiple] option { padding: 10px 12px; border-radius: 8px; }
input[type="file"].ya-input { padding: 8px 12px; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }

/* Checkbox cards (touch-first alternative to multi-select) */
.ya-check-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
@media (max-width: 520px) { .ya-check-grid { grid-template-columns: 1fr; } }
.ya-check-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 52px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; font-weight: 600; }
.ya-check-card:hover { border-color: var(--primary); }
.ya-check-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.ya-check-card small { color: var(--text-muted); font-weight: 400; }

/* Quiz */
.ya-quiz-step { display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.ya-quiz-step[hidden] { display: none !important; }
.ya-quiz-option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; min-height: 56px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s, transform .15s; font-weight: 600; }
.ya-quiz-option:hover { border-color: var(--primary); }
.ya-quiz-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.ya-quiz-option input { width: 22px; height: 22px; }
.ya-quiz-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ya-quiz-nav .ya-btn { flex: 1 1 140px; }

/* File / doc rows */
.ya-doc-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ya-doc-row:last-child { border-bottom: 0; }
.ya-doc-row__name { overflow-wrap: anywhere; min-width: 0; flex: 1 1 200px; }
.ya-doc-row__actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ya-doc-reject { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; width: 100%; margin-top: 6px; }
.ya-doc-reject .ya-input { flex: 1 1 160px; min-width: 140px; min-height: 40px; }

/* Progress */
.ya-progress { background: var(--surface-2); border-radius: 999px; overflow: hidden; height: 10px; width: 100%; max-width: 100%; }
.ya-progress__bar { background: var(--gradient-primary); height: 100%; transition: width .4s ease; border-radius: 999px; }
.ya-progress--fixed { width: 240px; max-width: 100%; }

/* ---------- Tables ---------- */
.ya-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ya-table-wrap:focus-within { border-color: var(--primary); }
.ya-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.ya-table--compact { min-width: 0; }
.ya-table th, .ya-table td { padding: 12px 14px; text-align: start; vertical-align: middle; }
.ya-table thead th { background: var(--surface-2); font-size: .85rem; color: var(--text-muted); white-space: nowrap; }
.ya-table tbody tr { border-top: 1px solid var(--border); }
.ya-table tbody tr:hover { background: var(--surface-2); }
.ya-table td { overflow-wrap: anywhere; }
.ya-table a { overflow-wrap: anywhere; }

/* ---------- Lists / timeline (replaces bare ul.list) ---------- */
.ya-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ya-list > li { padding: 10px 2px; border-bottom: 1px solid var(--border); min-width: 0; }
.ya-list > li:last-child { border-bottom: 0; }
.ya-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.ya-timeline > li { position: relative; padding: 10px 0 10px 0; padding-inline-start: 22px; border-bottom: 1px solid var(--border); }
.ya-timeline > li:last-child { border-bottom: 0; }
.ya-timeline > li::before { content: ''; position: absolute; inset-inline-start: 6px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.ya-timeline > li::after { content: ''; position: absolute; inset-inline-start: 9px; top: 28px; bottom: -2px; width: 2px; background: var(--border); }
.ya-timeline > li:last-child::after { display: none; }

/* ---------- Alerts ---------- */
.ya-alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start; }
.ya-alert__msg { flex: 1; min-width: 0; }
.ya-alert__close { background: transparent; border: 0; cursor: pointer; font-size: 1.1rem; line-height: 1; color: inherit; min-width: 32px; min-height: 32px; border-radius: 8px; }
.ya-alert__close:hover { background: rgba(0,0,0,.06); }
.ya-alert--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.ya-alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.ya-alert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.ya-alert--danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ---------- Toasts ---------- */
.ya-toast-container {
    position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); inset-inline-start: max(16px, env(safe-area-inset-left));
    display: flex; flex-direction: column; gap: 8px; z-index: 120; max-width: min(340px, calc(100vw - 32px));
}
.ya-toast {
    background: #1f2937; color: #fff; padding: 12px 16px; min-height: var(--touch);
    display: flex; align-items: center;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    animation: ya-toast-in .25s ease;
    max-width: 100%; overflow-wrap: anywhere;
}
.ya-toast--success { background: #166534; }
.ya-toast--danger { background: #991b1b; }
.ya-toast--warning { background: #92400e; }
.ya-toast--info { background: #075985; }
@keyframes ya-toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- FAQ ---------- */
.ya-faq { padding: 14px 16px; }
.ya-faq summary { font-weight: 800; cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 8px; list-style: none; }
.ya-faq summary::-webkit-details-marker { display: none; }
.ya-faq summary::before { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--primary); }
.ya-faq[open] summary::before { content: '−'; background: var(--primary-soft); }
.ya-faq p { margin-bottom: 0; }

/* ---------- Pagination ---------- */
.ya-pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.ya-pagination .ya-btn--sm { min-height: 40px; min-width: 40px; padding: 6px 10px; justify-content: center; }
.ya-pagination__current { min-width: 40px; text-align: center; }

/* ---------- QR ---------- */
.ya-qr { width: 100%; max-width: 280px; height: auto; margin-inline: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 8px; background: #fff; }

/* ---------- Footer ---------- */
.ya-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 36px 0 18px; margin-top: 60px; }
.ya-footer__inner { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; }
.ya-footer__brand { margin-bottom: 12px; }
.ya-footer__brand .ya-brand__text { max-width: none; }
@media (max-width: 768px) { .ya-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ya-footer__inner { grid-template-columns: 1fr; } }
.ya-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ya-footer__links a { color: var(--text-muted); min-height: 32px; display: inline-flex; align-items: center; }
.ya-footer__links a:hover { color: var(--primary); }
.ya-footer__copy { text-align: center; color: var(--text-muted); margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .85rem; }

/* ---------- Dashboard ---------- */
.ya-dash { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.ya-sidebar {
    background: #0f1c2c; color: #cbd5e1;
    padding: 18px 14px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
}
.ya-sidebar .ya-brand { color: #fff; margin-bottom: 18px; }
.ya-sidebar__nav { display: flex; flex-direction: column; gap: 4px; }
.ya-sidebar__nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; min-height: var(--touch); border-radius: 10px; color: #cbd5e1; font-weight: 600;
    border-inline-start: 3px solid transparent;
}
.ya-sidebar__nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.ya-sidebar__nav a.active { background: rgba(24,164,138,.18); color: #fff; border-inline-start-color: var(--primary-light); }
.ya-sidebar__nav .group { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: #7d8da3; margin: 16px 12px 6px; }
.ya-sidebar-backdrop {
    display: none; position: fixed; inset: 0; border: 0; padding: 0; cursor: pointer;
    background: rgba(15, 23, 42, .48); z-index: 70;
}
.ya-sidebar-backdrop.is-open { display: block; }

.ya-dash__main { display: flex; flex-direction: column; min-width: 0; min-height: 100dvh; }
.ya-topbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 18px;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; min-height: 60px;
}
.ya-topbar__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex-wrap: wrap; }
.ya-breadcrumb { color: var(--text-muted); font-size: .9rem; min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ya-breadcrumb a { color: var(--text-muted); }
.ya-breadcrumb a:hover { color: var(--primary); }
.ya-dash__content { padding: 24px; flex: 1; min-width: 0; }
.ya-dash__content > :first-child { margin-top: 0; }

/* ---------- Modal ---------- */
.ya-modal-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,.6);
    display: none; align-items: center; justify-content: center; z-index: 110; padding: 16px;
}
.ya-modal-backdrop.is-open { display: flex; }
.ya-modal {
    background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 480px;
    max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; box-shadow: var(--shadow-lg);
}
.ya-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.ya-modal__close { background: var(--surface-2); border: 0; cursor: pointer; font-size: 1.2rem; color: var(--text-muted); min-width: var(--touch); min-height: var(--touch); border-radius: 10px; }
.ya-modal__close:hover { background: var(--border); }

/* ---------- Empty / skeleton ---------- */
.ya-empty { text-align: center; padding: 48px 16px; color: var(--text-muted); }
.ya-empty__icon { font-size: 2.4rem; opacity: .6; margin-bottom: 8px; }
.ya-skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%; animation: ya-shimmer 1.4s infinite;
    border-radius: 8px; min-height: 20px;
}
@keyframes ya-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Print ---------- */
@media print {
    .ya-header, .ya-sidebar, .ya-topbar, .ya-footer, .ya-toast-container, .ya-sidebar-backdrop { display: none !important; }
    body { background: #fff; color: #000; }
    .ya-dash { display: block; }
}

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.gap-1{gap:.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width:768px){.grid-2,.grid-3{grid-template-columns:1fr}}
.ya-span-all{grid-column:1/-1}

/* =============================================================
   Responsive hardening — phones first
   ============================================================= */
@media (max-width: 900px) {
    .ya-dash { grid-template-columns: 1fr; }
    .ya-sidebar {
        position: fixed; inset-block: 0; inset-inline-start: 0;
        width: min(280px, 84vw); max-width: 84vw; z-index: 80;
        height: 100dvh; border-start-end-radius: var(--radius-lg);
        box-shadow: 0 18px 44px rgba(15,23,42,.25);
        visibility: hidden; transform: translateX(110%);
        transition: transform .25s ease, visibility .25s;
    }
    [dir="rtl"] .ya-sidebar { transform: translateX(-110%); }
    .ya-sidebar.is-open { visibility: visible; transform: translateX(0); }
    [dir="rtl"] .ya-sidebar.is-open { transform: translateX(0); }
    .ya-dash__content { padding: 18px 14px; }
    .ya-topbar { padding: 10px 12px; }
    .ya-topbar__actions { gap: 4px; }
    .ya-breadcrumb { flex-basis: 100%; order: 5; white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
}

@media (max-width: 960px) {
    .ya-nav-toggle { display: inline-flex; }
    .ya-nav {
        position: fixed; inset-inline: 0; top: var(--header-h);
        background: #fff; flex-direction: column; align-items: stretch;
        padding: 12px; border-bottom: 1px solid var(--border);
        max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
        box-shadow: var(--shadow-lg); z-index: 55; margin: 0;
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .22s ease, transform .22s ease, visibility .22s;
    }
    .ya-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
    .ya-nav__link { width: 100%; justify-content: flex-start; }
    .ya-nav .ya-btn { width: 100%; justify-content: center; }
    .ya-search { width: 100%; order: 10; }
    .ya-search input { width: 100%; }
    .ya-search__results { inset-inline: 0; min-width: 0; width: 100%; }
    .ya-search + .ya-user-menu, .ya-nav > .ya-user-menu { width: 100%; }
}

@media (max-width: 600px) {
    :root { --header-h: 58px; }
    body { font-size: 14px; }
    /* Prevent iOS auto-zoom on focus */
    .ya-input, .ya-select, .ya-textarea { font-size: 16px; }
    .container { padding-inline: 12px; }
    .ya-header__inner { min-height: var(--header-h); gap: 8px; }
    .ya-brand { font-size: .98rem; gap: 7px; }
    .ya-brand__logo { width: 32px; height: 32px; }
    .ya-brand__text { max-width: 40vw; }
    .ya-hero { padding: 44px 0 66px; }
    .ya-hero::after { height: 48px; bottom: -24px; }
    .ya-hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .ya-hero__stats .ya-stat { padding: 10px 8px; text-align: center; }
    .ya-hero__stats .ya-stat__num { font-size: 1.15rem; }
    .ya-hero__stats .ya-stat__label { font-size: .72rem; }
    .ya-section { padding: 32px 0; }
    .ya-section__head { align-items: flex-start; flex-direction: column; }
    .ya-card__body { padding: 14px; }
    .ya-card__foot { padding: 10px 12px; }
    .ya-table th, .ya-table td { padding: 9px 10px; font-size: .88rem; }
    .ya-footer { padding-top: 28px; margin-top: 36px; }
    .ya-dash__content { padding: 14px 10px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
    .ya-topbar__actions .ya-user-menu__toggle { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 10px; }
    .ya-user-menu__menu { position: fixed; inset-inline: 10px; top: 62px; width: auto; }
    .ya-modal { padding: 18px; }
    .ya-quiz-step { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Conversational, single-question major discovery */
.ya-assessment { width: 100%; max-width: 760px; margin-inline: auto; }
.ya-assessment__form { display: flex; flex-direction: column; gap: 18px; }
.ya-assessment__intro h1 { margin-top: 12px; }
.ya-assessment__progress { display: grid; gap: 8px; color: var(--text-muted, #64748b); font-size: .88rem; }
.ya-assessment__chat { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-height: 220px; overflow-y: auto; padding: 4px 0; scroll-behavior: smooth; }
.ya-assessment__message { max-width: min(92%, 560px); margin: 0; padding: 10px 14px; border-radius: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.ya-assessment__message--assistant { background: var(--surface-2, #f1f5f9); color: var(--text, #172033); border-start-start-radius: 5px; }
.ya-assessment__message--student { align-self: flex-end; background: var(--primary, #0f766e); color: #fff; border-start-end-radius: 5px; }
.ya-assessment__question { min-width: 0; margin: 0; padding: 0; border: 0; }
.ya-assessment__question[hidden] { display: none !important; }
.ya-assessment__question legend { width: 100%; margin-bottom: 12px; padding: 0; font-size: 1.16rem; font-weight: 700; line-height: 1.6; }
.ya-assessment__question legend:focus { outline: none; }
.ya-assessment__question legend:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary, #0f766e) 55%, transparent); outline-offset: 5px; border-radius: 4px; }
.ya-assessment__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ya-assessment__option { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 14px; border: 1px solid var(--border, #dbe2ea); border-radius: 12px; background: var(--surface, #fff); cursor: pointer; line-height: 1.5; overflow-wrap: anywhere; }
.ya-assessment__option:hover { border-color: var(--primary, #0f766e); }
.ya-assessment__option.is-selected { border-color: var(--primary, #0f766e); background: #eff8f6; }
.ya-assessment__option input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--primary, #0f766e); }
.ya-assessment__option span { min-width: 0; }
.ya-assessment__controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ya-assessment__controls [hidden] { display: none !important; }
.ya-assessment-result { max-width: 900px; margin-inline: auto; }
.ya-assessment-result__card { min-width: 0; }
.ya-assessment-result__card--top { border-color: var(--primary, #0f766e); }
.ya-assessment-result__rank { font-size: .82rem; }
.ya-assessment-result__save { border-inline-start: 4px solid var(--primary, #0f766e); }

@media (max-width: 560px) {
    .ya-assessment__form { gap: 14px; padding: 18px !important; }
    .ya-assessment__chat { max-height: 180px; }
    .ya-assessment__choices { grid-template-columns: minmax(0, 1fr); }
    .ya-assessment__option { min-height: 50px; }
    .ya-assessment__controls { justify-content: stretch; }
    .ya-assessment__controls .ya-btn { flex: 1 1 42%; }
    .ya-assessment__controls [data-ya-submit] { flex-basis: 100%; }
}

.ya-nearby { margin-top: 18px; }
.ya-nearby__actions, .ya-nearby__manual { max-width: 620px; }
.ya-nearby__manual label { display: block; font-weight: 600; }
.ya-nearby__manual .ya-form-actions { align-items: end; }
.ya-nearby__manual .ya-select { min-width: 0; flex: 1 1 240px; }
.ya-nearby__status { min-height: 1.6em; }
.ya-nearby__result { min-width: 0; }
.ya-nearby__distance { color: var(--primary, #0f766e); font-weight: 700; }
.ya-nearby[aria-busy="true"] { opacity: .88; }

@media (max-width: 560px) {
    .ya-nearby__actions .ya-btn { width: 100%; }
    .ya-nearby__manual .ya-form-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Yemen Acad visual system refresh ---------- */
:root {
    --primary: #0b7463;
    --primary-dark: #075347;
    --primary-light: #3ab99b;
    --secondary: #edc96e;
    --accent: #245b78;
    --bg: #f4f8f7;
    --surface-2: #eef5f3;
    --border: #dfeae6;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow-soft: 0 14px 40px rgba(11, 116, 99, .11);
}

.ya-icon { display: inline-block; vertical-align: middle; flex: 0 0 auto; fill: currentColor; }
.ya-brand__logo-image { width: 38px; height: 38px; display: block; flex: 0 0 auto; }
.ya-brand--small .ya-brand__logo-image { width: 34px; height: 34px; }
.ya-brand__text { letter-spacing: -.02em; }
.ya-btn { min-height: 46px; justify-content: center; box-shadow: 0 3px 10px rgba(16, 59, 88, .04); }
.ya-btn .ya-icon { margin-inline-start: -2px; }
.ya-btn:focus-visible, .ya-nav__link:focus-visible, .ya-sidebar__nav a:focus-visible,
.ya-icon-btn:focus-visible, .ya-user-menu__toggle:focus-visible { outline: 3px solid rgba(237, 201, 110, .85); outline-offset: 3px; }
.ya-btn--light { color: #103b58; background: #fff; border-color: rgba(255,255,255,.65); }
.ya-btn--light:hover { color: #075347; background: #f2faf7; }
.ya-btn--hero-ghost { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }
.ya-btn--hero-ghost:hover { color: #fff; background: rgba(255,255,255,.2); }
.ya-btn--install { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--primary-dark); font: inherit; font-weight: 750; cursor: pointer; }
.ya-btn--install[hidden] { display: none !important; }
.ya-btn--install:hover { background: var(--surface-2); }
.ya-user-menu__toggle { display: inline-flex; gap: 8px; align-items: center; min-height: 42px; }
.ya-user-menu__toggle .ya-icon:last-child { color: var(--text-muted); }
.ya-link-btn { display: inline-flex !important; align-items: center; gap: 9px; min-height: 44px; }

.ya-header { background: rgba(255,255,255,.96); box-shadow: 0 4px 20px rgba(16,59,88,.035); }
.ya-nav__link { font-size: .94rem; }
.ya-hero { background: radial-gradient(circle at 78% 18%, rgba(237,201,110,.24), transparent 29%), linear-gradient(125deg, #0b7463 0%, #0c695b 48%, #103b58 100%); }
.ya-hero h1 { max-width: 780px; font-size: clamp(2rem, 4.8vw, 3.3rem); letter-spacing: -.035em; }
.ya-hero p { font-size: 1.08rem; line-height: 1.9; }
.ya-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ya-hero__actions .ya-btn { min-height: 50px; }
.ya-card { border-color: #e1eae7; box-shadow: 0 6px 20px rgba(16,59,88,.045); }
.ya-card:hover { box-shadow: 0 14px 32px rgba(16,59,88,.09); }
.ya-section__title { letter-spacing: -.02em; }

/* Refined role dashboards */
.ya-dash { background: var(--bg); }
.ya-sidebar { background: linear-gradient(165deg, #10283a 0%, #0d1d2c 60%, #102d35 100%); }
.ya-sidebar .ya-brand { padding: 5px 8px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ya-sidebar__nav a { gap: 12px; padding-inline: 12px; border-radius: 12px; }
.ya-sidebar__nav a .ya-icon { color: #93b2ba; transition: color .18s ease, transform .18s ease; }
.ya-sidebar__nav a:hover .ya-icon, .ya-sidebar__nav a.active .ya-icon { color: #8ee0c4; }
.ya-sidebar__nav a:hover .ya-icon { transform: translateY(-1px); }
.ya-sidebar__nav .group { margin-top: 19px; }
.ya-topbar { background: rgba(255,255,255,.95); box-shadow: 0 4px 18px rgba(16,59,88,.035); }
.ya-icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; }
.ya-icon-btn .ya-icon { width: 20px; height: 20px; }
.ya-dash__content { max-width: 1600px; width: 100%; margin-inline: auto; }
.ya-student-hero, .ya-university-hero, .ya-admin-hero {
    position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; padding: clamp(22px, 4vw, 38px);
    background: radial-gradient(circle at 83% 18%, rgba(255,255,255,.18), transparent 23%), linear-gradient(120deg, #0b7463 0%, #0f6459 54%, #173e5a 100%);
    color: #fff; box-shadow: 0 18px 44px rgba(11, 95, 82, .17);
}
.ya-student-hero { display: grid; min-height: 286px; grid-template-columns: minmax(0,1.35fr) minmax(210px,.65fr); align-items: center; }
.ya-student-hero h1, .ya-university-hero h1, .ya-admin-hero h1 { margin: 14px 0 8px; color: #fff; font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.025em; }
.ya-student-hero p, .ya-university-hero p, .ya-admin-hero p { max-width: 700px; margin-bottom: 20px; color: rgba(255,255,255,.82); font-size: 1rem; }
.ya-student-hero .ya-pill, .ya-university-hero .ya-pill, .ya-admin-hero .ya-pill { background: rgba(255,255,255,.16); color: #fff; }
.ya-student-hero .ya-form-actions, .ya-university-hero .ya-form-actions { gap: 9px; }
.ya-student-hero__art { position: relative; display: grid; place-items: center; min-height: 210px; }
.ya-student-hero__orbit { position: absolute; width: 200px; height: 200px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.ya-student-hero__orbit--two { width: 148px; height: 148px; border-style: dashed; border-color: rgba(237,201,110,.55); }
.ya-student-hero__book { display: grid; place-items: center; width: 116px; height: 116px; border: 1px solid rgba(255,255,255,.42); border-radius: 34px; color: #fff; background: rgba(255,255,255,.16); box-shadow: 0 18px 46px rgba(4,34,39,.24); transform: rotate(-7deg); }
.ya-student-hero__spark { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; color: #163c51; background: #f2c96d; box-shadow: 0 8px 20px rgba(6,40,42,.16); }
.ya-student-hero__spark--one { inset-block-start: 18px; inset-inline-start: 27%; }
.ya-student-hero__spark--two { inset-block-end: 23px; inset-inline-end: 21%; color: #fff; background: #4ab998; }
.ya-university-hero { padding: 26px 32px; }
.ya-admin-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 32px; }
.ya-stat--icon { position: relative; min-height: 126px; padding: 17px 18px; border-radius: 17px; }
.ya-stat__icon, .ya-section-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--primary); background: #e7f5f0; border-radius: 13px; }
.ya-stat__num { margin-top: 5px; font-size: 1.8rem; line-height: 1.2; }
.ya-stat__label { font-weight: 650; }
.ya-card__title--icon { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ya-card__title--icon .ya-section-icon { width: 36px; height: 36px; flex: 0 0 auto; }

/* Login */
.ya-login-page { min-height: calc(100vh - 64px); padding: clamp(26px, 5vw, 64px) 0; background: radial-gradient(circle at 12% 5%, rgba(18,143,118,.07), transparent 27%), var(--bg); }
.ya-login-shell { display: grid; grid-template-columns: minmax(0,.85fr) minmax(390px,1.15fr); max-width: 1040px; margin-inline: auto; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: #fff; box-shadow: 0 24px 70px rgba(16,59,88,.12); }
.ya-login-aside { position: relative; display: flex; flex-direction: column; min-height: 650px; overflow: hidden; padding: 32px; color: #fff; background: radial-gradient(circle at 22% 76%, rgba(237,201,110,.16), transparent 24%), linear-gradient(150deg,#0c7461,#103b58); }
.ya-login-brand { z-index: 1; display: inline-flex; align-items: center; gap: 11px; color: #fff; font-size: 1.1rem; font-weight: 800; }
.ya-login-brand img { width: 45px; height: 45px; }
.ya-login-brand:hover { color: #fff; }
.ya-login-aside__content { z-index: 1; margin-block: auto; padding-block: 58px; }
.ya-login-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #e2f8ef; background: rgba(255,255,255,.08); font-size: .86rem; font-weight: 700; }
.ya-login-aside h2 { margin-top: 22px; color: #fff; font-size: clamp(2rem,4vw,2.75rem); }
.ya-login-aside__content p { color: rgba(255,255,255,.78); line-height: 1.9; }
.ya-login-aside ul { display: grid; gap: 13px; list-style: none; margin: 26px 0 0; padding: 0; }
.ya-login-aside li { display: flex; align-items: center; gap: 10px; color: #f0faf6; }
.ya-login-aside li .ya-icon { color: #f2c96d; }
.ya-login-decoration { position: absolute; inset-inline-end: -75px; inset-block-end: -90px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.ya-login-decoration span { position: absolute; inset: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.ya-login-decoration span:nth-child(2) { inset: 62px; border-color: rgba(242,201,109,.3); }
.ya-login-decoration span:nth-child(3) { inset: 94px; background: rgba(255,255,255,.06); }
.ya-login-panel { padding: clamp(26px,5vw,54px); }
.ya-login-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ya-login-panel__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; color: var(--primary); background: #eaf6f2; }
.ya-login-panel h1 { margin-bottom: 6px; }
.ya-login-form { margin-top: 27px; }
.ya-login-form .ya-field { margin-bottom: 18px; }
.ya-input-wrap { position: relative; display: flex; align-items: center; }
.ya-input-wrap > .ya-icon { position: absolute; inset-inline-start: 13px; color: #81949b; pointer-events: none; }
.ya-input-wrap .ya-input { min-height: 50px; padding-inline-start: 42px; }
.ya-input-wrap--password .ya-input { padding-inline-end: 48px; }
.ya-password-toggle { position: absolute; inset-inline-end: 5px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 11px; color: #6c8087; background: transparent; cursor: pointer; }
.ya-password-toggle:hover { color: var(--primary); background: var(--surface-2); }
.ya-login-form__options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 20px; }
.ya-checkbox { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; cursor: pointer; }
.ya-checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }
.ya-login-submit { width: 100%; min-height: 52px; font-size: 1rem; }
.ya-login-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--text-muted); font-size: .86rem; }
.ya-login-divider::before, .ya-login-divider::after { content: ''; height: 1px; flex: 1; background: var(--border); }
.ya-login-signup .ya-btn { flex: 1 1 auto; }
.ya-login-security { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 20px 0 0; color: var(--text-muted); font-size: .8rem; }
.ya-login-security .ya-icon { color: var(--success); }

/* Location permission prompt: asks first, never blocks browsing. */
.ya-location-prompt { position: fixed; inset-inline-start: max(18px, env(safe-area-inset-left)); inset-block-end: max(18px, env(safe-area-inset-bottom)); z-index: 105; display: flex; align-items: center; gap: 13px; width: min(590px, calc(100vw - 36px)); padding: 17px; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,255,255,.98); box-shadow: 0 18px 52px rgba(16,59,88,.2); animation: ya-toast-in .25s ease; }
.ya-location-prompt[hidden] { display: none !important; }
.ya-location-prompt__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 15px; color: var(--primary); background: #e7f5f0; }
.ya-location-prompt__copy { flex: 1; min-width: 0; }
.ya-location-prompt__copy strong { display: block; }
.ya-location-prompt__copy p { margin: 2px 0 0; color: var(--text-muted); font-size: .83rem; line-height: 1.55; }
.ya-location-prompt__actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ya-location-prompt__actions .ya-btn { min-height: 40px; }

/* University map */
.ya-map-page { min-height: 75vh; }
.ya-map-heading, .ya-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 24px; }
.ya-map-heading h1, .ya-page-heading h1 { margin: 10px 0 5px; }
.ya-map-heading p, .ya-page-heading p { margin-bottom: 0; }
.ya-map-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px; margin-bottom: 14px; }
.ya-map-search { display: flex; flex: 1 1 260px; align-items: center; gap: 10px; min-height: 46px; padding-inline: 13px; border: 1px solid var(--border); border-radius: 13px; color: var(--text-muted); background: #fff; }
.ya-map-search .ya-icon { flex: 0 0 auto; }
.ya-map-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; }
.ya-map-location-status { width: 100%; min-height: 1.4em; margin: 0 4px; color: var(--text-muted); font-size: .86rem; }
.ya-map-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; min-height: 560px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.ya-map-canvas { min-width: 0; min-height: 560px; background: #e7efec; z-index: 1; }
.ya-map-results { display: flex; flex-direction: column; min-width: 0; max-height: 620px; padding: 17px; border-inline-start: 1px solid var(--border); }
.ya-map-results__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.ya-map-results__head h2 { margin: 0; font-size: 1.13rem; }
.ya-map-list { display: flex; flex-direction: column; gap: 5px; min-height: 0; overflow: auto; list-style: none; margin: 0; padding: 9px 0; }
.ya-map-list li { margin: 0; padding: 0; }
.ya-map-list__item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; min-height: 66px; padding: 10px 11px; border: 1px solid transparent; border-radius: 12px; color: var(--text); background: transparent; text-align: start; font: inherit; cursor: pointer; }
.ya-map-list__item:hover, .ya-map-list__item:focus-visible { border-color: var(--border); background: var(--surface-2); }
.ya-map-list__item span { color: var(--text-muted); font-size: .82rem; }
.ya-map-list__item .ya-map-list__distance { color: var(--primary); font-weight: 750; }
.ya-map-empty { padding: 22px 6px; color: var(--text-muted); text-align: center; }
.ya-map-note { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-muted); line-height: 1.7; }
.ya-map-attribution { margin: 8px 4px 0; color: var(--text-muted); font-size: .78rem; }
.ya-map-popup { min-width: 150px; line-height: 1.6; }
.ya-map-popup p { margin: 4px 0; color: #62747a; }
.ya-map-popup a { display: inline-flex; margin-top: 6px; font-weight: 750; }
.ya-icon--back { transform: rotate(180deg); }
.ya-assessment__controls [data-ya-next] .ya-icon { transform: rotate(180deg); }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { font-size: 10px !important; }

@media (max-width: 960px) {
    .ya-login-shell { grid-template-columns: minmax(0,.72fr) minmax(370px,1fr); }
    .ya-login-aside { padding: 25px; }
    .ya-map-layout { grid-template-columns: minmax(0,1fr) 300px; }
}
@media (max-width: 768px) {
    .ya-login-page { padding: 24px 0 34px; }
    .ya-login-shell { max-width: 560px; grid-template-columns: 1fr; }
    .ya-login-aside { min-height: 0; padding: 21px 24px; }
    .ya-login-aside__content { padding: 27px 0 16px; }
    .ya-login-aside h2 { font-size: 1.7rem; margin-top: 14px; }
    .ya-login-aside__content p { margin-bottom: 0; }
    .ya-login-aside ul, .ya-login-decoration { display: none; }
    .ya-login-panel { padding: 25px 24px; }
    .ya-student-hero { grid-template-columns: minmax(0,1fr) 170px; }
    .ya-map-layout { grid-template-columns: 1fr; }
    .ya-map-canvas { min-height: 430px; }
    .ya-map-results { max-height: 380px; border-inline-start: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
    .ya-student-hero { display: block; min-height: 0; padding: 22px; }
    .ya-student-hero__art { position: absolute; inset-block-start: 10px; inset-inline-end: -45px; width: 160px; min-height: 160px; opacity: .26; pointer-events: none; }
    .ya-student-hero__orbit { width: 150px; height: 150px; }
    .ya-student-hero__orbit--two { width: 110px; height: 110px; }
    .ya-student-hero__book { width: 86px; height: 86px; border-radius: 25px; }
    .ya-student-hero__book .ya-icon { width: 40px; height: 40px; }
    .ya-student-hero__spark { display: none; }
    .ya-student-hero__copy { position: relative; z-index: 1; }
    .ya-student-hero p { max-width: 95%; }
    .ya-student-hero .ya-form-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .ya-student-hero .ya-form-actions .ya-btn:first-child { grid-column: 1 / -1; }
    .ya-admin-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
    .ya-admin-hero h1 { font-size: 1.8rem; }
    .ya-university-hero { padding: 22px; }
    .ya-university-hero .ya-form-actions { display: grid; grid-template-columns: 1fr; }
    .ya-student-stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
    .ya-stat--icon { min-height: 112px; padding: 13px; }
    .ya-stat__icon { width: 34px; height: 34px; border-radius: 11px; }
    .ya-stat__num { font-size: 1.55rem; }
    .ya-map-heading, .ya-page-heading { align-items: flex-start; flex-direction: column; }
    .ya-map-heading .ya-btn, .ya-page-heading .ya-btn { width: 100%; }
    .ya-map-toolbar { align-items: stretch; }
    .ya-map-toolbar > .ya-btn { width: 100%; }
    .ya-map-canvas { min-height: 370px; }
    .ya-location-prompt { align-items: flex-start; flex-wrap: wrap; inset-inline: 10px; inset-block-end: max(10px,env(safe-area-inset-bottom)); width: auto; padding: 13px; }
    .ya-location-prompt__copy { flex-basis: calc(100% - 60px); }
    .ya-location-prompt__actions { width: 100%; }
    .ya-location-prompt__actions .ya-btn { flex: 1 1 45%; }
}

/* Shared icon, detail, and status treatments keep pages visually consistent. */
.ya-page-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ya-page-title > .ya-icon { width: 25px; height: 25px; color: var(--primary); }
.ya-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; overflow-wrap: anywhere; }
.ya-detail-meta > .ya-icon, .ya-card__meta > .ya-icon { color: var(--primary); }
.ya-contact-list { display: grid; gap: 12px; min-width: 0; }
.ya-contact-list__item { display: flex; align-items: flex-start; gap: 10px; min-width: 0; color: var(--text-muted); }
.ya-contact-list__item:hover { color: var(--primary-dark); }
.ya-contact-list__item > .ya-icon { margin-top: 2px; color: var(--primary); }
.ya-contact-list__item > span { min-width: 0; overflow-wrap: anywhere; }
.ya-health-state { display: flex; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
.ya-health-state > .ya-icon { margin-top: 2px; color: var(--primary); }
.ya-health-state.is-ok > .ya-icon { color: var(--success); }
.ya-health-state.is-error > .ya-icon { color: var(--danger); }
.ya-error-icon { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 18px; border: 1px solid var(--border); border-radius: 26px; color: var(--primary); background: var(--primary-soft); }
.ya-error-icon > .ya-icon { width: 48px; height: 48px; }
.ya-empty__icon { display: grid; place-items: center; }
.ya-empty__icon > .ya-icon { width: 28px; height: 28px; }
.ya-assessment__form { padding: clamp(16px, 3vw, 28px); }
.ya-footer__brand:hover { color: var(--primary-dark); }
.ya-footer__brand .ya-brand__logo-image { width: 36px; height: 36px; }

/* Yemen Acad — public smart assistant */
.ya-ai{position:fixed;right:20px;bottom:20px;z-index:9999;font-family:inherit}
.ya-ai__fab{position:relative;width:62px;height:62px;border:0;border-radius:22px;background:linear-gradient(145deg,#0d6b5b,#0a8f79);color:#fff;box-shadow:0 14px 35px rgba(8,91,77,.30),0 3px 10px rgba(0,0,0,.12);cursor:pointer;display:grid;place-items:center;transition:transform .2s ease,box-shadow .2s ease}
.ya-ai__fab:hover{transform:translateY(-3px) scale(1.03);box-shadow:0 18px 42px rgba(8,91,77,.38),0 5px 12px rgba(0,0,0,.14)}
.ya-ai__fab-icon{font-size:30px;line-height:1;position:relative;z-index:2;text-shadow:0 2px 8px rgba(0,0,0,.2)}
.ya-ai__fab-glow{position:absolute;inset:8px;border-radius:17px;background:rgba(255,255,255,.12);filter:blur(1px)}
.ya-ai__fab-dot{position:absolute;right:-2px;top:-2px;width:13px;height:13px;border-radius:50%;background:#43d17c;border:3px solid #fff;box-shadow:0 0 0 4px rgba(67,209,124,.13)}
.ya-ai__panel{position:absolute;right:0;bottom:76px;width:min(390px,calc(100vw - 28px));height:min(650px,calc(100vh - 115px));background:#fff;border:1px solid rgba(16,36,55,.08);border-radius:24px;overflow:hidden;box-shadow:0 25px 70px rgba(16,35,50,.22),0 4px 15px rgba(16,35,50,.08);display:flex;flex-direction:column;animation:yaAiIn .2s ease-out}
@keyframes yaAiIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.ya-ai__header{padding:15px 16px;background:linear-gradient(135deg,#0b6959,#0e806d);color:#fff;display:flex;align-items:center;justify-content:space-between}
.ya-ai__identity{display:flex;align-items:center;gap:10px}.ya-ai__identity strong{display:block;font-size:15px}.ya-ai__identity span{display:block;margin-top:3px;font-size:11px;opacity:.88}.ya-ai__identity i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#5bea8b;margin-left:4px}
.ya-ai__avatar{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.17);border:1px solid rgba(255,255,255,.22);font-size:21px}
.ya-ai__close{width:34px;height:34px;border:0;background:rgba(255,255,255,.12);color:#fff;border-radius:11px;font-size:25px;cursor:pointer;line-height:1}
.ya-ai__welcome{margin:12px 13px 8px;padding:12px;border-radius:16px;background:#f3f8f7;display:flex;gap:10px;align-items:flex-start}.ya-ai__welcome-badge{width:35px;height:35px;border-radius:12px;background:#fff;display:grid;place-items:center;flex:none;box-shadow:0 4px 10px rgba(0,0,0,.06)}.ya-ai__welcome strong{font-size:13px}.ya-ai__welcome p{font-size:12px;line-height:1.7;margin:3px 0 0;color:#58636b}
.ya-ai__quick{display:flex;gap:7px;overflow:auto;padding:2px 13px 9px;scrollbar-width:none}.ya-ai__quick::-webkit-scrollbar{display:none}.ya-ai__quick button{white-space:nowrap;border:1px solid #dce9e6;background:#fff;color:#0b6959;border-radius:999px;padding:7px 10px;font:inherit;font-size:11px;cursor:pointer}.ya-ai__quick button:hover{background:#edf7f4}
.ya-ai__messages{flex:1;overflow:auto;padding:10px 13px 14px;background:#fbfcfc;display:flex;flex-direction:column;gap:9px}.ya-ai__msg{max-width:88%;padding:10px 12px;border-radius:15px;font-size:13px;line-height:1.8;white-space:pre-wrap;word-break:break-word}.ya-ai__msg--assistant{align-self:flex-start;background:#fff;border:1px solid #e6eeee;border-bottom-right-radius:5px;color:#26343b;box-shadow:0 2px 8px rgba(0,0,0,.03)}.ya-ai__msg--user{align-self:flex-end;background:#0d6b5b;color:#fff;border-bottom-left-radius:5px}.ya-ai__typing{display:flex;gap:4px;align-items:center}.ya-ai__typing span{width:6px;height:6px;border-radius:50%;background:#8aa9a2;animation:yaAiBounce 1s infinite}.ya-ai__typing span:nth-child(2){animation-delay:.15s}.ya-ai__typing span:nth-child(3){animation-delay:.3s}@keyframes yaAiBounce{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.ya-ai__form{display:flex;align-items:flex-end;gap:8px;padding:10px;border-top:1px solid #edf1f1;background:#fff}.ya-ai__form textarea{flex:1;resize:none;min-height:42px;max-height:100px;border:1px solid #dfe8e6;border-radius:14px;padding:11px 12px;outline:none;font:inherit;font-size:13px;line-height:1.5}.ya-ai__form textarea:focus{border-color:#75b9ab;box-shadow:0 0 0 3px rgba(13,107,91,.08)}.ya-ai__form button{width:42px;height:42px;border:0;border-radius:13px;background:#0d6b5b;color:#fff;font-size:20px;cursor:pointer}.ya-ai__form button:disabled{opacity:.55;cursor:wait}.ya-ai__hint{text-align:center;color:#9aa6aa;font-size:9px;padding:0 8px 9px;background:#fff}
@media(max-width:600px){.ya-ai{right:14px;bottom:14px}.ya-ai__fab{width:58px;height:58px;border-radius:20px}.ya-ai__panel{right:-2px;bottom:70px;width:calc(100vw - 20px);height:min(74vh,620px);border-radius:22px}.ya-ai__welcome{margin-top:9px}.ya-ai__msg{font-size:12.5px}}
@media(prefers-reduced-motion:reduce){.ya-ai__panel,.ya-ai__fab{animation:none;transition:none}.ya-ai__typing span{animation:none}}

.ya-ai__sources{display:grid;gap:4px;margin-top:8px;padding-top:7px;border-top:1px solid #e6eeee;font-size:11px;white-space:normal}.ya-ai__sources strong{color:#65736f;font-size:10px}.ya-ai__sources a{color:#0b6959;text-decoration:underline;overflow-wrap:anywhere}.ya-ai__quick button:disabled{opacity:.55;cursor:wait}.ya-ai__form textarea:disabled{opacity:.7;cursor:wait}
@supports (height: 1dvh){@media(max-width:600px){.ya-ai__panel{height:min(74dvh,620px)}}}


/* Yemen Acad assistant refresh — accessible icon and stable viewport behavior. */
#ya-ai-assistant{z-index:10020;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom))}
#ya-ai-assistant .ya-ai__fab{width:64px;height:64px;border:1px solid rgba(255,255,255,.72);border-radius:22px;background:linear-gradient(145deg,#075a4d 0%,#0d8c75 60%,#12a486 100%);box-shadow:0 14px 34px rgba(5,74,64,.36),0 0 0 5px rgba(245,200,75,.13);transition:transform .2s ease,box-shadow .2s ease}
#ya-ai-assistant .ya-ai__fab:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(5,74,64,.42),0 0 0 7px rgba(245,200,75,.17)}
#ya-ai-assistant .ya-ai__fab:focus-visible,#ya-ai-assistant button:focus-visible,#ya-ai-assistant textarea:focus-visible{outline:3px solid #f5c84b;outline-offset:3px}
#ya-ai-assistant .ya-ai__fab-icon{position:relative;z-index:2;width:37px;height:37px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.16))}
#ya-ai-assistant .ya-ai__icon{display:block;width:100%;height:100%;color:currentColor}
#ya-ai-assistant .ya-ai__fab-glow{inset:7px;border:1px solid rgba(255,255,255,.18);border-radius:17px;background:linear-gradient(145deg,rgba(255,255,255,.15),rgba(255,255,255,.03));filter:none}
#ya-ai-assistant .ya-ai__fab-dot{right:auto;top:auto;inset-inline-end:-2px;inset-block-start:-2px;width:13px;height:13px;border:3px solid #fff;box-shadow:0 0 0 4px rgba(67,209,124,.17)}
#ya-ai-assistant .ya-ai__panel{right:0;bottom:78px;width:min(410px,calc(100vw - 28px));height:min(650px,calc(100vh - 112px));max-height:calc(100vh - 96px);border:1px solid rgba(7,90,77,.13);border-radius:24px;box-shadow:0 25px 70px rgba(16,35,50,.24),0 4px 18px rgba(16,35,50,.1)}
#ya-ai-assistant .ya-ai__panel[hidden]{display:none!important}
#ya-ai-assistant .ya-ai__header{padding:15px 17px;background:linear-gradient(130deg,#074e43,#0d7967 72%,#11947c)}
#ya-ai-assistant .ya-ai__avatar{width:43px;height:43px;border-radius:15px;color:#fff;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.23);padding:8px}
#ya-ai-assistant .ya-ai__welcome-badge{width:38px;height:38px;border-radius:13px;color:#0b6b59;padding:7px;background:linear-gradient(145deg,#fff,#eef8f4);box-shadow:0 5px 14px rgba(6,78,65,.1)}
#ya-ai-assistant .ya-ai__welcome{margin:12px 13px 8px;padding:12px 13px;border:1px solid #e1efeb;background:linear-gradient(145deg,#f4faf8,#eff6f4)}
#ya-ai-assistant .ya-ai__welcome p{font-size:12px;line-height:1.85;color:#465953}
#ya-ai-assistant .ya-ai__quick{gap:8px;padding:3px 13px 10px}
#ya-ai-assistant .ya-ai__quick button{padding:8px 11px;border-color:#d7e8e3;color:#075e50;background:#fff;font-size:11.5px;transition:background .15s ease,border-color .15s ease}
#ya-ai-assistant .ya-ai__quick button:hover{background:#edf8f4;border-color:#9bcbbc}
#ya-ai-assistant .ya-ai__messages{min-height:90px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b9d4cc transparent}
#ya-ai-assistant .ya-ai__msg{max-width:91%;font-size:13px;line-height:1.85}
#ya-ai-assistant .ya-ai__msg--assistant{border-color:#e2eeea;background:#fff}
#ya-ai-assistant .ya-ai__msg--user{background:linear-gradient(140deg,#0a6959,#0c806b)}
#ya-ai-assistant .ya-ai__form{padding:11px 12px}
#ya-ai-assistant .ya-ai__form textarea{min-width:0;min-height:44px;max-height:104px}
#ya-ai-assistant .ya-ai__form button{flex:none;width:44px;height:44px;background:linear-gradient(145deg,#075a4d,#0c8a73)}
#ya-ai-assistant .ya-ai__hint{padding:2px 12px 10px;color:#63736f;font-size:10px;line-height:1.6}
#ya-ai-assistant .ya-ai__sources a{color:#075e50}
@supports (height:1dvh){#ya-ai-assistant .ya-ai__panel{height:min(650px,calc(100dvh - 112px));max-height:calc(100dvh - 96px)}}
@media(max-width:600px){
    #ya-ai-assistant{right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom))}
    #ya-ai-assistant .ya-ai__fab{width:60px;height:60px;border-radius:21px}
    #ya-ai-assistant .ya-ai__panel{position:fixed;right:max(10px,env(safe-area-inset-right));bottom:calc(78px + env(safe-area-inset-bottom));width:calc(100vw - 20px);height:min(76vh,640px);max-height:calc(100vh - 100px);border-radius:21px}
    #ya-ai-assistant .ya-ai__msg{max-width:94%;font-size:12.5px}
}
@supports (height:1dvh){@media(max-width:600px){#ya-ai-assistant .ya-ai__panel{height:min(76dvh,640px);max-height:calc(100dvh - 100px)}}}
@media(prefers-reduced-motion:reduce){#ya-ai-assistant .ya-ai__fab,#ya-ai-assistant .ya-ai__quick button{transition:none!important}}


/* Full-screen assistant conversation: accessible, keyboard-ready, and safe-area aware. */
#ya-ai-assistant .ya-ai__backdrop{position:fixed;inset:0;z-index:1;width:100vw;height:100dvh;padding:0;border:0;border-radius:0;background:rgba(8,25,35,.62);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);cursor:default}
#ya-ai-assistant .ya-ai__backdrop[hidden]{display:none!important}
#ya-ai-assistant .ya-ai__fab{z-index:0}
#ya-ai-assistant.is-open .ya-ai__fab{visibility:hidden;opacity:0;pointer-events:none}
#ya-ai-assistant .ya-ai__panel{position:fixed;top:50%;left:50%;right:auto;bottom:auto;z-index:2;transform:translate(-50%,-50%);width:min(1000px,calc(100vw - 40px));height:min(920px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);border-radius:26px;animation:yaAiPanelFade .18s ease-out}
#ya-ai-assistant .ya-ai__panel[hidden]{display:none!important}
@keyframes yaAiPanelFade{from{opacity:0}to{opacity:1}}
#ya-ai-assistant .ya-ai__header,#ya-ai-assistant .ya-ai__form,#ya-ai-assistant .ya-ai__hint{flex:none}
#ya-ai-assistant .ya-ai__messages{flex:1;min-height:0}
#ya-ai-assistant .ya-ai__welcome{flex:none;max-width:1000px}
#ya-ai-assistant .ya-ai__quick{flex:none;flex-wrap:wrap;max-height:110px;overflow:auto;overscroll-behavior:contain}
#ya-ai-assistant .ya-ai__form textarea{font-size:15px;min-height:48px;max-height:130px}
#ya-ai-assistant .ya-ai__form button{width:48px;height:48px}
#ya-ai-assistant .ya-ai__msg{font-size:15px;max-width:86%;line-height:1.95}
body.ya-ai-open{overflow:hidden!important;overscroll-behavior:none}
@supports not (height:1dvh){#ya-ai-assistant .ya-ai__backdrop{height:100vh}#ya-ai-assistant .ya-ai__panel{height:min(920px,calc(100vh - 40px));max-height:calc(100vh - 40px)}}
@media(max-width:700px){
    #ya-ai-assistant .ya-ai__panel{top:0;left:0;right:0;bottom:0;transform:none;width:100vw;height:100vh;height:100dvh;max-height:100dvh;border:0;border-radius:0;box-shadow:none}
    #ya-ai-assistant .ya-ai__backdrop{height:100vh;height:100dvh}
    #ya-ai-assistant .ya-ai__header{padding-top:calc(15px + env(safe-area-inset-top,0px));padding-inline:16px}
    #ya-ai-assistant .ya-ai__welcome{margin:9px 10px 5px;padding:10px 11px}
    #ya-ai-assistant .ya-ai__welcome p{font-size:12px;line-height:1.7}
    #ya-ai-assistant .ya-ai__quick{gap:6px;max-height:100px;padding-inline:10px}
    #ya-ai-assistant .ya-ai__quick button{font-size:11px;padding:7px 9px}
    #ya-ai-assistant .ya-ai__messages{padding:10px 11px 14px}
    #ya-ai-assistant .ya-ai__msg{max-width:94%;font-size:14px}
    #ya-ai-assistant .ya-ai__form{padding:10px 11px calc(10px + env(safe-area-inset-bottom,0px))}
    #ya-ai-assistant .ya-ai__hint{padding:2px 10px calc(8px + env(safe-area-inset-bottom,0px));font-size:9px}
}
@media(prefers-reduced-motion:reduce){#ya-ai-assistant .ya-ai__panel{animation:none!important}}
   Yemen Acad 2.0 — intelligent home experience
   ============================================================= */
:root{--ink:#102a35;--navy:#103b58;--mint:#0f9079;--violet:#7568e8;--sun:#f3c451;--ice:#eef8f6}
.ya-home-hero{position:relative;isolation:isolate;overflow:hidden;color:#fff;padding:82px 0 0;background:radial-gradient(circle at 75% 12%,rgba(104,231,200,.2),transparent 25%),radial-gradient(circle at 10% 78%,rgba(91,111,222,.2),transparent 30%),linear-gradient(132deg,#062f3c 0%,#0a5f5b 53%,#0b806b 100%)}
.ya-home-hero__grid{position:absolute;inset:0;opacity:.12;background-image:linear-gradient(rgba(255,255,255,.22) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.22) 1px,transparent 1px);background-size:56px 56px;mask-image:linear-gradient(to bottom,black,transparent 80%);pointer-events:none}.ya-home-hero__orb{position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none}.ya-home-hero__orb--one{width:420px;height:420px;top:-180px;left:-130px;background:rgba(88,214,183,.14);box-shadow:0 0 120px rgba(88,214,183,.18)}.ya-home-hero__orb--two{width:300px;height:300px;right:25%;bottom:-230px;background:rgba(243,196,81,.12);box-shadow:0 0 100px rgba(243,196,81,.18)}
.ya-home-hero__layout{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(380px,.9fr);align-items:center;gap:60px;min-height:535px}.ya-home-hero__copy{padding-bottom:48px}.ya-eyebrow,.ya-kicker{display:inline-flex;align-items:center;gap:8px;color:#8ae2cb;font-size:.8rem;font-weight:800;letter-spacing:.05em;margin-bottom:18px}.ya-eyebrow__dot{width:8px;height:8px;border-radius:50%;background:#72ebaf;box-shadow:0 0 0 6px rgba(114,235,175,.12)}.ya-home-hero h1{font-size:clamp(2.7rem,5.5vw,5.4rem);line-height:1.08;letter-spacing:-.07em;margin:0 0 24px;color:#fff}.ya-home-hero h1 span{color:#a8edda}.ya-home-hero__lead{max-width:650px;color:rgba(255,255,255,.78);font-size:1.08rem;line-height:2;margin-bottom:28px}.ya-home-hero__actions{gap:12px}.ya-home-hero__actions .ya-btn{min-height:52px;padding-inline:20px}.ya-btn__arrow{font-size:1.15em;margin-inline-start:3px}.ya-btn--hero-ghost{color:#fff;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.35)}.ya-btn--hero-ghost:hover{color:#fff;background:rgba(255,255,255,.2)}.ya-home-trust{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:27px;color:rgba(255,255,255,.62);font-size:.76rem}.ya-home-trust b{color:#72ebaf;font-size:.55rem}.ya-home-trust__avatars{display:flex;direction:ltr;margin-inline-end:2px}.ya-home-trust__avatars i{display:grid;place-items:center;width:25px;height:25px;margin-inline-start:-6px;border:2px solid #0a6059;border-radius:50%;background:#f3c451;color:#173942;font-style:normal;font-size:.67rem;font-weight:900}.ya-home-trust__avatars i:nth-child(2){background:#b8e8df}.ya-home-trust__avatars i:nth-child(3){background:#9d9af2}
.ya-home-hero__visual{position:relative;min-height:490px;display:grid;place-items:center}.ya-hero-dashboard{width:min(390px,90%);padding:20px;border:1px solid rgba(255,255,255,.24);border-radius:28px;background:linear-gradient(150deg,rgba(255,255,255,.2),rgba(255,255,255,.06));box-shadow:0 30px 75px rgba(0,20,32,.3),inset 0 1px 0 rgba(255,255,255,.22);backdrop-filter:blur(18px);transform:rotate(2deg)}.ya-hero-dashboard__top{display:flex;justify-content:space-between;align-items:center;color:rgba(255,255,255,.72);font-size:.72rem}.ya-hero-dashboard__live{display:flex;align-items:center;gap:7px}.ya-hero-dashboard__live i{width:7px;height:7px;border-radius:50%;background:#72ebaf;box-shadow:0 0 0 4px rgba(114,235,175,.14)}.ya-hero-dashboard__dots{letter-spacing:3px}.ya-hero-dashboard__ring{display:grid;place-items:center;width:210px;height:210px;margin:25px auto;border-radius:50%;background:conic-gradient(#72ebaf 0 73%,rgba(255,255,255,.12) 73% 100%);box-shadow:0 0 0 10px rgba(255,255,255,.04)}.ya-hero-dashboard__ring>div{display:grid;place-items:center;width:166px;height:166px;border-radius:50%;background:linear-gradient(145deg,#0c5a59,#10455b);box-shadow:inset 0 0 35px rgba(0,0,0,.2)}.ya-hero-dashboard__ring strong{font-size:2.5rem;line-height:1}.ya-hero-dashboard__ring small{color:rgba(255,255,255,.67);font-size:.74rem;margin-top:6px}.ya-hero-dashboard__mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ya-hero-dashboard__mini-grid>div{display:grid;grid-template-columns:32px 1fr;align-items:center;column-gap:8px;padding:11px;border-radius:14px;background:rgba(5,40,49,.23)}.ya-hero-dashboard__mini-grid strong{font-size:1.1rem;line-height:1}.ya-hero-dashboard__mini-grid small{grid-column:2;color:rgba(255,255,255,.6);font-size:.67rem}.ya-mini-icon{grid-row:span 2;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;font-size:1.2rem}.ya-mini-icon--green{background:rgba(114,235,175,.17);color:#8bf0c5}.ya-mini-icon--gold{background:rgba(243,196,81,.17);color:#f3d77f}.ya-hero-dashboard__prompt{display:flex;align-items:center;gap:10px;margin-top:12px;padding:12px;border-radius:15px;background:#fff;color:var(--ink)}.ya-prompt-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:11px;background:#e7f7f2;color:var(--mint)}.ya-hero-dashboard__prompt div{display:grid;gap:2px;flex:1}.ya-hero-dashboard__prompt b{font-size:.76rem}.ya-hero-dashboard__prompt small{color:#708087;font-size:.66rem}.ya-prompt-arrow{color:var(--mint);font-weight:900}.ya-float-card{position:absolute;display:flex;align-items:center;gap:9px;padding:12px 15px;border:1px solid rgba(255,255,255,.3);border-radius:15px;background:rgba(255,255,255,.14);box-shadow:0 16px 30px rgba(0,0,0,.15);backdrop-filter:blur(12px);font-size:.72rem;color:#fff}.ya-float-card--top{top:82px;right:-2px}.ya-float-card--top b{font-size:1.05rem;color:#f3d77f}.ya-float-card--bottom{bottom:75px;left:-5px}.ya-float-card--bottom div{display:grid;gap:1px}.ya-float-card--bottom small{color:rgba(255,255,255,.65);font-size:.66rem}.ya-float-check{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#72ebaf;color:#075449;font-weight:900}
.ya-home-stats{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);gap:1px;padding:0;margin-top:-1px;border:1px solid rgba(255,255,255,.14);border-radius:20px 20px 0 0;overflow:hidden;background:rgba(255,255,255,.14);backdrop-filter:blur(12px)}.ya-home-stat{min-height:101px;padding:18px 20px;background:rgba(3,42,52,.5);display:flex;flex-direction:column;justify-content:center}.ya-home-stat strong{font-size:1.65rem;line-height:1;color:#fff}.ya-home-stat span{color:rgba(255,255,255,.82);font-size:.82rem}.ya-home-stat i{color:#82dabe;font-size:.66rem;font-style:normal;margin-top:5px}.ya-home-stat--action{background:rgba(255,255,255,.09);justify-content:center}.ya-home-stat--action span{font-size:.75rem;color:rgba(255,255,255,.68)}.ya-home-stat--action a{color:#fff;font-weight:800;margin-top:4px}.ya-home-stat--action a b{color:#f3d77f;margin-inline-start:5px}
.ya-section--tight{padding-block:75px 50px}.ya-section__head--center{justify-content:center;text-align:center}.ya-kicker{color:var(--mint);margin-bottom:10px;font-size:.73rem}.ya-section__head--center .ya-kicker{justify-content:center}.ya-section__title{font-size:clamp(1.7rem,3vw,2.45rem);letter-spacing:-.04em}.ya-home-path-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}.ya-home-path{position:relative;display:block;text-align:start;padding:28px 26px 25px;border:1px solid #e1ecea;border-radius:21px;background:#fff;box-shadow:0 8px 25px rgba(16,59,88,.045);transition:transform .22s,box-shadow .22s,border-color .22s;overflow:hidden;font:inherit;color:inherit}.ya-home-path:hover{transform:translateY(-6px);border-color:#b8ddd3;box-shadow:0 18px 35px rgba(16,59,88,.1)}.ya-home-path--button{cursor:pointer}.ya-home-path__number{position:absolute;top:20px;inset-inline-end:22px;color:#bac8cc;font-weight:900;font-size:.73rem;letter-spacing:.12em}.ya-home-path__icon{display:grid;place-items:center;width:49px;height:49px;border-radius:16px;font-size:1.5rem;margin-bottom:22px}.ya-home-path__icon--purple{background:#f0efff;color:#7568e8}.ya-home-path__icon--green{background:#e8f8f2;color:#0c8b73}.ya-home-path__icon--gold{background:#fff7df;color:#d69f15}.ya-home-path h3{font-size:1.2rem}.ya-home-path p{color:#6b7b81;font-size:.88rem;line-height:1.9;min-height:52px;margin-bottom:20px}.ya-home-path__link{color:var(--mint);font-size:.8rem;font-weight:800}.ya-home-path__link b{margin-inline-start:7px}
.ya-home-feature{background:#f1f8f6}.ya-home-feature__layout{display:grid;grid-template-columns:.95fr 1.05fr;gap:90px;align-items:center}.ya-home-feature__copy h2{font-size:clamp(2rem,4vw,3.25rem);letter-spacing:-.06em;line-height:1.2}.ya-home-feature__copy h2 em{color:var(--mint);font-style:normal}.ya-home-feature__copy>p{max-width:600px;color:#64747a;line-height:2;font-size:.98rem}.ya-feature-list{display:grid;gap:14px;margin:23px 0 27px}.ya-feature-list>div{display:grid;grid-template-columns:31px 1fr;align-items:center;column-gap:10px}.ya-feature-list span{grid-row:span 2;display:grid;place-items:center;width:28px;height:28px;border-radius:10px;background:#d9f2e9;color:#0b856e;font-weight:900}.ya-feature-list b{font-size:.87rem}.ya-feature-list small{color:#77868a;font-size:.72rem}.ya-home-feature__visual{position:relative;min-height:400px;display:grid;place-items:center}.ya-feature-glow{position:absolute;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle,#b4e9d8,transparent 68%);opacity:.8}.ya-feature-device{position:relative;width:260px;height:330px;padding:18px;border:7px solid #163f50;border-radius:30px;background:#fff;box-shadow:18px 22px 0 rgba(13,107,91,.1),0 24px 50px rgba(16,59,88,.18);transform:rotate(-8deg)}.ya-feature-device__bar{display:flex;gap:5px;margin-bottom:30px}.ya-feature-device__bar span{width:6px;height:6px;border-radius:50%;background:#d2dfdf}.ya-feature-device__line{height:9px;width:55%;margin:10px 0;border-radius:99px;background:#e2efed}.ya-feature-device__line--long{width:82%;background:#9bdccc}.ya-feature-device__cards{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:32px}.ya-feature-device__cards i{height:90px;border-radius:10px;background:linear-gradient(160deg,#d9f4ec,#f3d98a)}.ya-feature-device__cards i:nth-child(2){background:linear-gradient(160deg,#dcdafb,#c5ece4)}.ya-feature-device__pulse{position:absolute;display:grid;place-items:center;width:54px;height:54px;right:-23px;top:112px;border-radius:17px;background:#0d8e76;color:#fff;box-shadow:0 10px 20px rgba(13,107,91,.27);font-size:1.4rem}.ya-feature-chip{position:absolute;padding:10px 15px;border-radius:13px;background:#fff;box-shadow:0 10px 24px rgba(16,59,88,.12);font-size:.72rem;font-weight:800}.ya-feature-chip--one{top:62px;left:8px;color:#0b806b}.ya-feature-chip--two{bottom:66px;right:3px;color:#7568e8}
.ya-home-cta{padding:45px 0;background:linear-gradient(120deg,#103b58,#0b7667);color:#fff}.ya-home-cta__inner{position:relative;display:flex;align-items:center;gap:24px}.ya-home-cta__spark{display:grid;place-items:center;width:64px;height:64px;border:1px solid rgba(255,255,255,.24);border-radius:21px;background:rgba(255,255,255,.12);color:#f3d77f;font-size:1.7rem}.ya-home-cta h2{color:#fff;font-size:clamp(1.6rem,3vw,2.3rem);margin:0 0 5px}.ya-home-cta p{color:rgba(255,255,255,.72);margin:0}.ya-kicker--light{color:#9ce5d2;margin:0 0 6px}.ya-home-cta .ya-btn{margin-inline-start:auto;white-space:nowrap}
@media(max-width:900px){.ya-home-hero__layout{grid-template-columns:1fr;gap:0;text-align:center}.ya-home-hero__copy{padding-bottom:15px}.ya-home-hero__lead{margin-inline:auto}.ya-home-hero__actions,.ya-home-trust{justify-content:center}.ya-home-hero__visual{min-height:430px}.ya-home-stats{grid-template-columns:repeat(2,1fr);border-radius:18px}.ya-home-feature__layout{grid-template-columns:1fr;gap:25px}.ya-home-feature__visual{order:2}.ya-home-feature__copy{text-align:center}.ya-home-feature__copy>p{margin-inline:auto}.ya-feature-list{text-align:start;max-width:430px;margin-inline:auto;margin-bottom:25px}.ya-home-feature .ya-btn{margin-top:5px}.ya-home-cta__inner{flex-wrap:wrap}.ya-home-cta .ya-btn{margin-inline-start:0}}
@media(max-width:600px){.ya-home-hero{padding-top:52px}.ya-home-hero h1{font-size:clamp(2.35rem,12vw,3.5rem)}.ya-home-hero__lead{font-size:.94rem}.ya-home-hero__visual{min-height:365px}.ya-hero-dashboard{width:93%;padding:15px;transform:none}.ya-hero-dashboard__ring{width:170px;height:170px;margin:19px auto}.ya-hero-dashboard__ring>div{width:134px;height:134px}.ya-hero-dashboard__ring strong{font-size:2rem}.ya-float-card{display:none}.ya-home-stats{grid-template-columns:repeat(2,1fr)}.ya-home-stat{min-height:88px;padding:14px}.ya-home-stat strong{font-size:1.35rem}.ya-home-stat--action{grid-column:1/-1;min-height:74px}.ya-home-path-grid{grid-template-columns:1fr;gap:12px}.ya-home-path{padding:22px}.ya-home-path p{min-height:0}.ya-home-feature__visual{min-height:325px}.ya-feature-device{transform:rotate(-5deg) scale(.88)}.ya-home-cta__inner{align-items:flex-start}.ya-home-cta__spark{width:48px;height:48px}.ya-home-cta__inner>div:nth-child(2){flex:1}.ya-home-cta p{font-size:.82rem}.ya-home-cta .ya-btn{width:100%;justify-content:center}.ya-section--tight{padding-top:55px}}
@media(prefers-reduced-motion:reduce){.ya-home-path,.ya-hero-dashboard{transition:none;transform:none!important}}

/* Smart assistant signature */
#ya-ai-assistant .ya-ai__fab{animation:yaAiBreathe 3.8s ease-in-out infinite}.ya-ai__fab::after{content:'اسألني';position:absolute;inset-inline-end:calc(100% + 10px);top:50%;transform:translateY(-50%) translateX(4px);padding:6px 9px;border:1px solid rgba(12,103,88,.12);border-radius:9px;background:#fff;color:#0b6658;font-size:10px;font-weight:800;box-shadow:0 7px 18px rgba(16,59,88,.1);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.ya-ai__fab:hover::after,.ya-ai__fab:focus-visible::after{opacity:1;transform:translateY(-50%) translateX(0)}@keyframes yaAiBreathe{0%,100%{box-shadow:0 14px 34px rgba(5,74,64,.36),0 0 0 5px rgba(245,200,75,.13)}50%{box-shadow:0 16px 38px rgba(5,74,64,.42),0 0 0 9px rgba(245,200,75,.08)}}#ya-ai-assistant .ya-ai__header{position:relative;overflow:hidden}#ya-ai-assistant .ya-ai__header::after{content:'✦  دليل + مساعد + خطوات';position:absolute;left:18px;bottom:10px;font-size:9px;color:rgba(255,255,255,.47);letter-spacing:.03em}@media(max-width:600px){.ya-ai__fab::after{display:none}}@media(prefers-reduced-motion:reduce){#ya-ai-assistant .ya-ai__fab{animation:none}}

.ya-home-seo-image{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* Arabic typography: letter-spacing compresses connected Arabic glyphs and harms shaping. */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] .ya-brand__text,
html[lang="ar"] .ya-eyebrow,
html[lang="ar"] .ya-kicker,
html[lang="ar"] .ya-section__title {
    letter-spacing: normal;
}


/* =============================================================
   Yemen Acad — Signature refresh
   Neo-futurist academic luxury · Arabic-first · RTL
   ============================================================= */
:root {
    --primary: #0b806d;
    --primary-dark: #07584f;
    --primary-light: #37d2ad;
    --primary-soft: #e0f7f0;
    --secondary: #e9c675;
    --secondary-soft: #fff5df;
    --accent: #477c99;
    --bg: #f3f7f8;
    --surface: #ffffff;
    --surface-2: #edf3f5;
    --text: #142d39;
    --text-muted: #5f737e;
    --border: #dce7eb;
    --border-strong: #bfd0d7;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 32px;
    --shadow-sm: 0 3px 10px rgba(10, 35, 48, .055);
    --shadow: 0 12px 34px rgba(10, 35, 48, .085);
    --shadow-lg: 0 24px 62px rgba(6, 25, 39, .16);
    --shadow-soft: 0 10px 28px rgba(11, 128, 109, .16);
    --gradient-primary: linear-gradient(135deg, #0a7868 0%, #11a58b 100%);
    --gradient-warm: linear-gradient(135deg, #f0d28b 0%, #e4b95f 100%);
    --gradient-hero: linear-gradient(130deg, #071a2b 0%, #0a3848 48%, #075d58 100%);
    --container: 1280px;
    --header-h: 72px;
    --touch: 46px;
}

html { scroll-padding-top: var(--header-h); }
body { background: var(--bg); color: var(--text); }
::selection { background: rgba(55, 210, 173, .24); color: #073d3a; }

/* Dark glass navigation frames the academic identity. */
.ya-header {
    background: rgba(6, 22, 36, .94);
    border-bottom-color: rgba(209, 231, 236, .12);
    box-shadow: 0 8px 30px rgba(4, 18, 31, .12);
}
.ya-header__inner { min-height: var(--header-h); }
.ya-header .ya-brand { color: #f3fafb; }
.ya-header .ya-brand__logo { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 8px 22px rgba(7, 182, 145, .26); }
.ya-header .ya-nav__link { color: #d3e4e9; }
.ya-header .ya-nav__link:hover,
.ya-header .ya-nav__link:focus-visible { color: #fff; background: rgba(255,255,255,.09); }
.ya-header .ya-nav-toggle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.ya-header .ya-nav-toggle span { background: #effafa; }
.ya-header .ya-search input { color: #f2f8fa; background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.16); }
.ya-header .ya-search input::placeholder { color: rgba(225,239,242,.58); }
.ya-header .ya-search input:focus { background: rgba(255,255,255,.12); border-color: var(--primary-light); }
.ya-header .ya-btn--ghost,
.ya-header .ya-user-menu__toggle { color: #f2f8fa; background: rgba(255,255,255,.065); border-color: rgba(255,255,255,.18); }
.ya-header .ya-btn--ghost:hover,
.ya-header .ya-user-menu__toggle:hover { background: rgba(255,255,255,.12); }
.ya-header .ya-icon-btn { color: #effafa; }
.ya-header .ya-icon-btn:hover { background: rgba(255,255,255,.1); }
.ya-header .ya-btn--install { color: #07584f; }

/* Buttons and interactive controls share one deliberate motion language. */
.ya-btn { border-radius: 14px; font-weight: 750; letter-spacing: 0; box-shadow: none; }
.ya-btn--primary { background: linear-gradient(135deg, #0b806d 0%, #12a98c 100%); box-shadow: 0 8px 20px rgba(11,128,109,.20); }
.ya-btn--primary:hover { filter: brightness(1.04); box-shadow: 0 12px 26px rgba(11,128,109,.26); }
.ya-btn--secondary { color: #24313a; background: var(--gradient-warm); box-shadow: 0 8px 20px rgba(201,158,66,.16); }
.ya-btn--outline { border-color: rgba(11,128,109,.42); }
.ya-btn--ghost { border-color: var(--border); }
.ya-btn:focus-visible,
.ya-input:focus-visible,
.ya-select:focus-visible,
.ya-textarea:focus-visible { outline: 3px solid rgba(55,210,173,.48); outline-offset: 2px; }

/* Shared surfaces, headings, fields and data components. */
.ya-section { padding-block: clamp(38px, 5vw, 68px); }
.ya-page-heading { align-items: center; gap: 18px; margin-block-end: 28px; }
.ya-page-heading h1 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin-block-end: 8px; }
.ya-page-heading p { color: var(--text-muted); max-width: 680px; }
.ya-page-heading > div:first-child { position: relative; }
.ya-page-heading > div:first-child::before { content: ''; display: block; width: 42px; height: 3px; margin-block-end: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--primary-light), var(--secondary)); }
.ya-card,
.ya-stat,
.ya-table-wrap { border-color: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ya-card { background: linear-gradient(180deg, #fff 0%, #fcfefe 100%); }
.ya-card:hover { border-color: rgba(11,128,109,.25); box-shadow: var(--shadow); }
.ya-card__body { padding: clamp(16px, 2vw, 22px); }
.ya-card__foot { background: #f6f9fa; }
.ya-stat { padding: 20px; background: linear-gradient(145deg, #fff, #f8fbfb); }
.ya-stat__num { color: #0a6559; }
.ya-stat__icon,
.ya-section-icon { color: var(--primary); background: linear-gradient(145deg, #e8f8f2, #d9f3ec); }
.ya-input, .ya-select, .ya-textarea { border-color: var(--border-strong); border-radius: 13px; background-color: #fff; }
.ya-input:hover, .ya-select:hover, .ya-textarea:hover { border-color: #9abbb9; }
.ya-field label { font-size: .93rem; }
.ya-table-wrap { background: #fff; }
.ya-table thead th { color: #526c77; background: #f0f6f7; }
.ya-table tbody tr:hover { background: #f6fbfa; }
.ya-pill { border: 1px solid rgba(20,45,57,.045); }
.ya-empty { padding-block: 58px; }
.ya-pagination .ya-btn--sm { border-radius: 12px; }

/* Public hero: deep ink, emerald light and a quiet knowledge grid. */
.ya-hero {
    background:
        radial-gradient(ellipse at 82% 18%, rgba(55,210,173,.22), transparent 34%),
        radial-gradient(ellipse at 9% 88%, rgba(79,139,184,.15), transparent 32%),
        linear-gradient(128deg, #071a2b 0%, #0a3848 52%, #075d58 100%);
}
.ya-hero::before {
    opacity: .32;
    background-image: linear-gradient(rgba(228,248,247,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(228,248,247,.1) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
.ya-hero::after { background: var(--bg); }

.ya-home-hero {
    padding-top: clamp(54px, 6vw, 86px);
    background:
        radial-gradient(ellipse at 78% 10%, rgba(72,229,190,.2), transparent 29%),
        radial-gradient(ellipse at 9% 70%, rgba(86,154,197,.18), transparent 30%),
        linear-gradient(132deg, #061827 0%, #082f40 48%, #075e56 100%);
}
.ya-home-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .38;
    background: radial-gradient(ellipse at 50% 112%, rgba(10,179,142,.28), transparent 44%);
}
.ya-home-hero__grid { opacity: .14; background-size: 48px 48px; }
.ya-home-hero__orb--one { background: rgba(67,218,184,.13); box-shadow: 0 0 110px rgba(67,218,184,.2); }
.ya-home-hero__orb--two { background: rgba(233,198,117,.12); }
.ya-home-hero__layout { grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr); gap: clamp(28px, 5vw, 76px); min-height: 550px; }
.ya-home-hero__copy { max-width: 720px; padding-block: 24px 54px; }
.ya-eyebrow { color: #a6f0dc; font-size: .84rem; }
.ya-eyebrow__dot { background: #5be0ba; box-shadow: 0 0 0 6px rgba(91,224,186,.13); }
.ya-home-hero h1 { max-width: 13em; font-size: clamp(2.65rem, 5.4vw, 5rem); line-height: 1.2; letter-spacing: normal; text-wrap: balance; }
.ya-home-hero h1 span { color: #9ce9d2; }
.ya-home-hero__lead { color: rgba(236,247,248,.78); font-size: clamp(.98rem, 1.2vw, 1.1rem); line-height: 2; }
.ya-home-hero__actions .ya-btn { min-height: 54px; padding-inline: 22px; border-radius: 15px; }
.ya-btn--hero-ghost { background: rgba(232,247,247,.08); border-color: rgba(232,247,247,.25); }
.ya-btn--hero-ghost:hover { background: rgba(232,247,247,.14); }
.ya-home-trust { color: rgba(230,244,244,.7); }
.ya-home-trust__avatars i { border-color: #0a4649; }
.ya-home-hero__visual { min-height: 500px; }
.ya-home-hero__visual::before { content: ''; position: absolute; width: 72%; aspect-ratio: 1; border: 1px solid rgba(159,237,218,.16); border-radius: 50%; box-shadow: 0 0 0 28px rgba(159,237,218,.025), 0 0 0 56px rgba(159,237,218,.018); }
.ya-hero-dashboard {
    position: relative; z-index: 1; width: min(410px, 92%); padding: 22px;
    border-color: rgba(204,245,235,.23);
    background: linear-gradient(145deg, rgba(226,250,244,.18), rgba(226,250,244,.065));
    box-shadow: 0 32px 90px rgba(0,16,28,.35), inset 0 1px 0 rgba(255,255,255,.2);
    transform: rotate(-1deg);
}
.ya-hero-dashboard__ring { box-shadow: 0 0 0 9px rgba(255,255,255,.045), 0 16px 36px rgba(0,0,0,.16); }
.ya-hero-dashboard__prompt { box-shadow: 0 10px 28px rgba(2,28,37,.14); }
.ya-float-card { border-color: rgba(216,246,239,.27); background: rgba(8,42,53,.46); }
.ya-home-stats {
    border-color: rgba(213,246,238,.18); border-radius: 22px 22px 0 0;
    background: rgba(219,249,241,.12); box-shadow: 0 -10px 42px rgba(0,22,33,.08);
}
.ya-home-stat { background: rgba(5,31,43,.65); }
.ya-home-stat--action { background: rgba(6,54,58,.74); }
.ya-home-stat strong { font-variant-numeric: tabular-nums; }

/* Clear, tactile cards for the three steps and featured catalog. */
.ya-section--tight { padding-block: clamp(56px, 7vw, 88px) clamp(42px, 5vw, 64px); }
.ya-section__head { margin-block-end: 26px; }
.ya-section__title { color: #142e3b; }
.ya-kicker { color: #087864; font-weight: 800; }
.ya-home-path-grid { gap: 18px; }
.ya-home-path {
    min-height: 248px; padding: 28px; border-color: #dce9e9; border-radius: 22px;
    box-shadow: 0 9px 28px rgba(12,48,62,.055);
}
.ya-home-path:hover { transform: translateY(-4px); border-color: rgba(11,128,109,.36); box-shadow: 0 20px 40px rgba(12,48,62,.12); }
.ya-home-path__icon { width: 52px; height: 52px; border-radius: 17px; }
.ya-home-path h3 { margin-block-end: 10px; }
.ya-home-path p { color: #657980; }
.ya-home-path__link { color: #087864; }
.ya-home-feature { background: linear-gradient(180deg, #edf5f4 0%, #f5f8f8 100%); }
.ya-home-feature__layout { gap: clamp(35px, 7vw, 100px); }
.ya-feature-device { border-color: #143e50; box-shadow: 18px 22px 0 rgba(11,128,109,.1), 0 30px 70px rgba(16,59,88,.2); }
.ya-feature-chip { border: 1px solid #e8eff0; }
.ya-home-cta { background: radial-gradient(ellipse at 88% 20%, rgba(52,211,171,.2), transparent 35%), linear-gradient(120deg, #081e31, #0a514f 72%, #08745f); }
.ya-home-cta__spark { border-color: rgba(213,247,238,.2); background: rgba(255,255,255,.08); }
.ya-home-cta p { max-width: 720px; }
.ya-btn--light { box-shadow: 0 10px 26px rgba(0,0,0,.12); }

/* Login, account and dashboard surfaces follow the same signature. */
.ya-login-page { background: radial-gradient(ellipse at 92% 6%, rgba(55,210,173,.085), transparent 34%), var(--bg); }
.ya-login-shell { border-color: #dce7ea; border-radius: 28px; box-shadow: 0 28px 84px rgba(10,35,48,.13); }
.ya-login-aside {
    background: radial-gradient(ellipse at 18% 76%, rgba(233,198,117,.14), transparent 32%),
        radial-gradient(ellipse at 86% 12%, rgba(55,210,173,.2), transparent 38%),
        linear-gradient(150deg, #071b2d, #0a4850 74%, #08745f);
}
.ya-login-aside::before { content: ''; position: absolute; inset: 0; opacity: .12; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.ya-login-brand, .ya-login-aside__content, .ya-login-decoration { z-index: 1; }
.ya-login-kicker { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.ya-login-panel { background: linear-gradient(160deg, #fff, #fbfdfd); }
.ya-login-panel__icon { color: #0b806d; background: #e4f6f0; }
.ya-login-submit { min-height: 52px; }
.ya-dash { background: #f2f6f7; }
.ya-sidebar { background: linear-gradient(165deg, #0a2032 0%, #0b2938 58%, #0a393b 100%); border-inline-end: 1px solid rgba(255,255,255,.055); }
.ya-sidebar__nav a.active { color: #fff; background: linear-gradient(90deg, rgba(55,210,173,.2), rgba(55,210,173,.08)); border-inline-start-color: #52dfba; }
.ya-sidebar__nav a:hover { background: rgba(255,255,255,.075); }
.ya-topbar { border-bottom-color: #e0e9ec; box-shadow: 0 5px 20px rgba(11,35,48,.045); }
.ya-student-hero, .ya-university-hero, .ya-admin-hero {
    background: radial-gradient(ellipse at 86% 12%, rgba(55,210,173,.22), transparent 31%),
        linear-gradient(125deg, #071b2d 0%, #0a4650 64%, #087460 100%);
    border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 52px rgba(8,47,57,.19);
}
.ya-student-hero__book { border-color: rgba(220,249,242,.4); background: rgba(255,255,255,.12); }
.ya-stat--icon { border-radius: 19px; }

/* Reduce noise and retain comfortable stacking at tablet and phone widths. */
@media (max-width: 960px) {
    .ya-header { background: rgba(6,22,36,.98); }
    .ya-nav { background: #081f30; border-bottom: 1px solid rgba(224,242,242,.12); }
    .ya-nav__link { color: #e8f4f4; }
    .ya-nav__link:hover { background: rgba(255,255,255,.085); }
    .ya-nav .ya-search input { background: rgba(255,255,255,.08); }
    .ya-home-hero__layout { grid-template-columns: 1fr; gap: 0; }
    .ya-home-hero__copy { max-width: 850px; margin-inline: auto; }
    .ya-home-hero__visual { min-height: 440px; }
    .ya-home-feature__layout { gap: 32px; }
}
@media (max-width: 600px) {
    :root { --header-h: 60px; }
    .ya-header__inner { min-height: var(--header-h); }
    .ya-header .ya-brand__text { max-width: 38vw; }
    .ya-section { padding-block: 34px; }
    .ya-page-heading { align-items: stretch; }
    .ya-page-heading > .ya-btn { width: 100%; }
    .ya-home-hero { padding-top: 48px; }
    .ya-home-hero__copy { padding-block: 8px 12px; }
    .ya-home-hero h1 { font-size: clamp(2.2rem, 10.8vw, 3.25rem); line-height: 1.28; }
    .ya-home-hero__lead { font-size: .96rem; }
    .ya-home-hero__actions { display: grid; grid-template-columns: 1fr; }
    .ya-home-hero__actions .ya-btn { width: 100%; }
    .ya-home-hero__visual { min-height: 350px; }
    .ya-home-hero__visual::before { width: 82%; }
    .ya-hero-dashboard { width: 94%; padding: 16px; }
    .ya-home-stats { border-radius: 18px 18px 0 0; }
    .ya-home-path { min-height: 0; padding: 23px; }
    .ya-home-feature__visual { min-height: 310px; }
    .ya-home-cta { padding-block: 34px; }
    .ya-home-cta__inner { gap: 16px; }
    .ya-login-shell { border-radius: 22px; }
    .ya-login-aside { min-height: 310px; padding: 24px; }
    .ya-login-aside__content { padding-block: 34px; }
    .ya-login-panel { padding: 24px 20px; }
    .ya-student-hero, .ya-university-hero, .ya-admin-hero { border-radius: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .ya-card, .ya-btn, .ya-home-path, .ya-nav-toggle span { transition-duration: .01ms !important; }
}


/* =============================================================
   Yemen Acad Luxe Lab — premium visual layer
   ============================================================= */
:root {
    --ink: #071c2e;
    --ink-2: #0d2d43;
    --gold: #e9c875;
    --gold-soft: #fbf2d7;
    --mint: #8de0c2;
    --header-h: 72px;
}
.ya-header {
    color: #fff;
    background: linear-gradient(110deg, rgba(7,28,46,.98), rgba(11,50,68,.97));
    border-bottom: 1px solid rgba(233,200,117,.22);
    box-shadow: 0 14px 40px rgba(7,28,46,.18);
}
.ya-header__signal { min-height: 28px; background: rgba(0,0,0,.18); border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(235,248,244,.78); font-size: .72rem; letter-spacing: .01em; }
.ya-header__signal .container { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ya-header__signal span { display: inline-flex; align-items: center; gap: 7px; }
.ya-header__signal i, .ya-assessment__signal-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(141,224,194,.10), 0 0 14px rgba(141,224,194,.8); }
.ya-header__signal-note { color: var(--gold); }
.ya-header__inner { min-height: var(--header-h); }
.ya-header .ya-brand { color: #fff; gap: 11px; }
.ya-brand__mark { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(233,200,117,.72); border-radius: 15px 15px 15px 5px; background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.035)); box-shadow: inset 0 0 0 4px rgba(233,200,117,.08), 0 8px 20px rgba(0,0,0,.18); }
.ya-brand__mark::before { content: ''; position: absolute; inset: -5px; border: 1px solid rgba(233,200,117,.18); border-radius: 18px 18px 18px 8px; transform: rotate(-7deg); }
.ya-brand__mark i { position: absolute; width: 6px; height: 6px; inset-inline-end: 4px; inset-block-start: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.ya-brand__logo-image { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.25)); }
.ya-brand__wordmark { display: grid; gap: 0; line-height: 1.1; }
.ya-brand__text { color: #fff; font-size: 1.18rem; letter-spacing: -.04em; }
.ya-brand__wordmark small { color: rgba(235,248,244,.68); font-size: .58rem; font-weight: 600; letter-spacing: .02em; margin-top: 4px; }
.ya-brand--small .ya-brand__mark { width: 34px; height: 34px; border-radius: 11px 11px 11px 4px; }
.ya-brand--small .ya-brand__logo-image { width: 24px; height: 24px; }
.ya-brand--small .ya-brand__wordmark small { display: none; }
.ya-brand--small .ya-brand__text { font-size: .98rem; }
.ya-header .ya-nav { gap: 3px; }
.ya-header .ya-nav__link { color: rgba(255,255,255,.78); border: 1px solid transparent; }
.ya-header .ya-nav__link:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); }
.ya-header .ya-nav__link--featured { color: var(--gold); background: rgba(233,200,117,.1); border-color: rgba(233,200,117,.26); }
.ya-nav__spark { color: var(--gold); font-size: 1.05rem; }
.ya-nav__heading { display: none; }
.ya-header .ya-search input { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.15); }
.ya-header .ya-search input::placeholder { color: rgba(255,255,255,.62); }
.ya-header .ya-search input:focus { background: rgba(255,255,255,.15); border-color: var(--gold); }
.ya-header .ya-btn--ghost { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.ya-header .ya-btn--primary { color: var(--ink); background: linear-gradient(135deg, #f8dc91, #cda64e); box-shadow: 0 8px 20px rgba(233,200,117,.2); }
.ya-header .ya-icon-btn, .ya-header .ya-user-menu__toggle { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.ya-nav-toggle { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }
.ya-nav-toggle span { background: #fff; }

.ya-discover-stage { position: relative; min-height: calc(100vh - 100px); overflow: hidden; padding: clamp(32px, 5vw, 72px) 0 80px; background: radial-gradient(circle at 88% 10%, rgba(141,224,194,.18), transparent 28%), radial-gradient(circle at 8% 60%, rgba(233,200,117,.12), transparent 25%), #f5f8f8; }
.ya-discover-stage__glow { position: absolute; width: 420px; height: 420px; border: 1px solid rgba(11,116,99,.08); border-radius: 50%; pointer-events: none; }
.ya-discover-stage__glow::after { content: ''; position: absolute; inset: 32px; border: 1px dashed rgba(11,116,99,.12); border-radius: 50%; }
.ya-discover-stage__glow--one { inset-inline-start: -250px; inset-block-start: 220px; }
.ya-discover-stage__glow--two { inset-inline-end: -300px; inset-block-end: -120px; transform: scale(.8); }
.ya-discover-hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) 340px; align-items: center; gap: clamp(24px, 6vw, 110px); max-width: 1100px; margin: 0 auto 28px; }
.ya-discover-hero__copy h1 { margin: 14px 0 14px; color: var(--ink); font-size: clamp(2.15rem, 5vw, 4.4rem); line-height: 1.12; letter-spacing: -.055em; }
.ya-discover-hero__copy h1 span { color: var(--primary); }
.ya-discover-hero__copy p { max-width: 650px; color: #58717b; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 2; }
.ya-eyebrow--dark { color: var(--primary-dark); }
.ya-discover-hero__orbit { position: relative; width: 300px; height: 300px; justify-self: center; display: grid; place-items: center; border: 1px solid rgba(11,116,99,.17); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.88) 0 28%, rgba(221,245,237,.55) 29% 48%, transparent 49%), rgba(255,255,255,.42); box-shadow: 0 25px 60px rgba(11,116,99,.12), inset 0 0 0 22px rgba(255,255,255,.34); }
.ya-discover-hero__orbit::before, .ya-discover-hero__orbit::after { content: ''; position: absolute; border: 1px dashed rgba(11,116,99,.23); border-radius: 50%; }
.ya-discover-hero__orbit::before { inset: 28px; transform: rotate(35deg) scaleX(.7); }
.ya-discover-hero__orbit::after { inset: 28px; transform: rotate(-35deg) scaleX(.7); }
.ya-discover-hero__core { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 30px; color: #fff; background: linear-gradient(145deg, var(--ink), var(--primary)); box-shadow: 0 18px 30px rgba(7,28,46,.2); transform: rotate(-8deg); }
.ya-discover-hero__core strong { font-size: 1.6rem; letter-spacing: .08em; }
.ya-discover-hero__core small { color: var(--gold); font-weight: 700; }
.ya-discover-hero__orbit > i { position: absolute; z-index: 2; padding: 7px 13px; border: 1px solid rgba(11,116,99,.15); border-radius: 999px; color: var(--ink-2); background: rgba(255,255,255,.9); box-shadow: 0 8px 18px rgba(7,28,46,.08); font-size: .75rem; font-style: normal; font-weight: 800; }
.ya-discover-hero__orbit > i:nth-of-type(1) { inset-block-start: 21px; inset-inline-end: 23px; }
.ya-discover-hero__orbit > i:nth-of-type(2) { inset-block-end: 28px; inset-inline-start: 17px; }
.ya-discover-hero__orbit > i:nth-of-type(3) { inset-block-start: 47%; inset-inline-start: -18px; }
.ya-discover-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; max-width: 1100px; margin: 0 auto 22px; }
.ya-discover-metrics > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid rgba(11,116,99,.11); border-radius: 17px; background: rgba(255,255,255,.72); backdrop-filter: blur(8px); }
.ya-discover-metrics__icon { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--primary-dark); background: var(--gold-soft); font-size: .77rem; font-weight: 900; }
.ya-discover-metrics strong { color: var(--ink); font-size: .88rem; }
.ya-discover-metrics small { color: #71858d; font-size: .72rem; }
.ya-discover-content { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; }

.ya-assessment { max-width: 900px; margin: 0 auto; }
.ya-assessment__signal { display: flex; align-items: center; gap: 9px; margin: 16px 4px 10px; color: var(--primary-dark); font-size: .78rem; font-weight: 800; }
.ya-assessment__signal small { margin-inline-start: auto; color: #789099; font-weight: 500; }
.ya-assessment__form { position: relative; overflow: hidden; gap: 22px; padding: clamp(20px, 4vw, 38px) !important; border: 1px solid rgba(11,116,99,.15); border-radius: 28px; box-shadow: 0 24px 70px rgba(7,28,46,.11); }
.ya-assessment__form::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: 0; width: 42%; height: 4px; background: linear-gradient(90deg, var(--gold), var(--primary)); }
.ya-assessment__intro { padding-bottom: 4px; }
.ya-assessment__intro h1 { color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.04em; }
.ya-assessment__intro > p { max-width: 690px; font-size: 1rem; line-height: 1.9; }
.ya-assessment__promise { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 13px; border: 1px solid rgba(233,200,117,.38); border-radius: 15px; color: var(--ink-2); background: linear-gradient(135deg, #fffdf4, #f9fbf9); }
.ya-assessment__promise > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--gold); background: var(--ink); }
.ya-assessment__promise strong, .ya-assessment__promise small { display: block; }
.ya-assessment__promise strong { font-size: .78rem; }
.ya-assessment__promise small { color: #789099; font-size: .7rem; }
.ya-assessment__progress { padding: 13px 15px; border: 1px solid rgba(11,116,99,.1); border-radius: 16px; background: #f6fbf9; }
.ya-assessment__progress .ya-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #dfeee9; }
.ya-assessment__progress .ya-progress__bar { border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--gold)); box-shadow: 0 0 15px rgba(11,116,99,.3); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.ya-assessment__chat { max-height: 190px; padding: 3px 5px; }
.ya-assessment__message { border: 1px solid rgba(11,116,99,.08); box-shadow: 0 5px 15px rgba(7,28,46,.04); }
.ya-assessment__message--assistant { background: #f1f7f5; }
.ya-assessment__message--student { background: linear-gradient(135deg, var(--primary), var(--ink-2)); }
.ya-assessment__question legend { margin-bottom: 16px; color: var(--ink); font-size: clamp(1.12rem, 2vw, 1.45rem); }
.ya-assessment__choices { gap: 12px; }
.ya-assessment__option { position: relative; min-height: 65px; padding: 13px 15px; border: 1px solid #dce9e5; border-radius: 16px; background: linear-gradient(145deg, #fff, #fbfdfc); transition: transform .2s ease, border-color .2s, box-shadow .2s, background .2s; }
.ya-assessment__option::after { content: '↗'; position: absolute; inset-inline-end: 13px; color: #b8c9c7; font-size: .88rem; transition: color .2s, transform .2s; }
.ya-assessment__option:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 10px 22px rgba(11,116,99,.1); }
.ya-assessment__option.is-selected { border-color: var(--primary); background: linear-gradient(135deg, #edfaf5, #fffdf5); box-shadow: 0 9px 22px rgba(11,116,99,.12); }
.ya-assessment__option.is-selected::after { color: var(--gold); transform: translate(-2px, -2px); }
.ya-assessment__option input { width: 21px; height: 21px; }
.ya-assessment__controls { padding-top: 4px; border-top: 1px solid #edf2f0; }
.ya-assessment-result { max-width: 980px; }
.ya-assessment-result__card--top { border-color: var(--gold); box-shadow: 0 18px 38px rgba(233,200,117,.13); }

@media (max-width: 960px) {
    .ya-header .ya-nav { top: calc(var(--header-h) + 28px); color: var(--text); background: var(--ink); border-bottom-color: rgba(233,200,117,.2); }
    .ya-header .ya-nav__link { color: rgba(255,255,255,.82); }
    .ya-nav__heading { display: flex; align-items: center; gap: 10px; padding: 5px 8px 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--gold); font-size: .75rem; }
    .ya-nav__heading .ya-brand { margin-inline-end: auto; }
}
@media (max-width: 720px) {
    .ya-header__signal-note { display: none !important; }
    .ya-discover-hero { grid-template-columns: 1fr; gap: 20px; }
    .ya-discover-hero__copy { text-align: center; }
    .ya-discover-hero__copy p { margin-inline: auto; }
    .ya-discover-hero__orbit { width: 230px; height: 230px; }
    .ya-discover-hero__core { width: 82px; height: 82px; border-radius: 24px; }
    .ya-discover-metrics { grid-template-columns: 1fr; }
    .ya-discover-metrics > div { padding: 12px 14px; }
}
@media (max-width: 560px) {
    .ya-header__signal { font-size: .65rem; }
    .ya-header__inner { min-height: 64px; }
    .ya-brand__mark { width: 39px; height: 39px; }
    .ya-brand__logo-image { width: 27px; height: 27px; }
    .ya-brand__text { font-size: 1.02rem; }
    .ya-brand__wordmark small { display: none; }
    .ya-discover-stage { padding-top: 28px; }
    .ya-discover-hero__copy h1 { font-size: 2.25rem; }
    .ya-assessment__signal { align-items: flex-start; flex-wrap: wrap; }
    .ya-assessment__signal small { flex-basis: 100%; margin-inline-start: 16px; }
    .ya-assessment__form { border-radius: 22px; }
    .ya-assessment__choices { grid-template-columns: 1fr; }
    .ya-assessment__option { min-height: 59px; }
}

/* Hero typewriter copy */
.ya-hero-typewriter { display: inline-flex; align-items: baseline; gap: 4px; max-width: min(680px, 100%); min-height: 2.4em; margin-top: 2px; color: rgba(238,249,245,.84) !important; font-family: 'Cairo', 'Tajawal', sans-serif; font-size: clamp(.82rem, 1.2vw, 1rem) !important; font-weight: 600; line-height: 1.95 !important; letter-spacing: .01em; }
.ya-hero-typewriter b { display: inline-block; width: 2px; height: 1.1em; flex: 0 0 2px; background: var(--gold); box-shadow: 0 0 10px rgba(233,200,117,.78); animation: ya-typewriter-caret .82s steps(1,end) infinite; }
@keyframes ya-typewriter-caret { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
@media (max-width: 600px) { .ya-hero-typewriter { font-size: .78rem !important; line-height: 1.85 !important; } }
@media (prefers-reduced-motion: reduce) { .ya-hero-typewriter b { animation: none; opacity: 1; } }

/* Header navigation refinement — ordered groups, clean desktop and mobile */
.ya-header__inner { gap: 20px; }
.ya-header__inner > .ya-brand { flex: 0 0 auto; }
.ya-header .ya-nav { flex: 1 1 auto; justify-content: center; gap: 14px; min-width: 0; }
.ya-nav__links { display: flex; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
.ya-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex: 0 0 auto; }
.ya-header .ya-search { width: 206px; }
.ya-header .ya-search input { width: 100%; padding-inline: 14px 12px; font-size: .78rem; }
.ya-header .ya-nav__link { padding-inline: 10px; font-size: .82rem; }
.ya-header .ya-nav__link--featured { padding-inline: 12px; }
.ya-header .ya-btn { min-height: 40px; padding: 8px 13px; font-size: .8rem; }
.ya-header .ya-btn--install { min-height: 38px; padding-inline: 11px; }
.ya-header__actions .ya-user-menu__toggle { max-width: 156px; padding-inline: 10px; font-size: .8rem; }
.ya-header__actions .ya-user-menu__toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1160px) and (min-width: 961px) {
    .ya-header__inner { gap: 12px; }
    .ya-header .ya-nav { gap: 7px; }
    .ya-header .ya-search { width: 170px; }
    .ya-header .ya-nav__link { padding-inline: 7px; font-size: .75rem; }
    .ya-header .ya-btn { padding-inline: 10px; }
}
@media (max-width: 960px) {
    .ya-header__inner { gap: 10px; }
    .ya-header .ya-nav { display: flex; align-items: stretch; justify-content: flex-start; gap: 11px; padding: 16px; }
    .ya-nav__links, .ya-header__actions { display: flex; flex-direction: column; align-items: stretch; gap: 5px; width: 100%; }
    .ya-header__actions { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
    .ya-header .ya-nav__link { width: 100%; min-height: 43px; padding-inline: 13px; }
    .ya-header .ya-search { width: 100%; order: -1; }
    .ya-header .ya-search input { width: 100%; min-height: 45px; }
    .ya-header__actions .ya-user-menu, .ya-header__actions .ya-user-menu__toggle { width: 100%; max-width: none; }
    .ya-header__actions .ya-btn { width: 100%; }
    .ya-header__actions .ya-icon-btn { align-self: flex-start; }
    .ya-header__actions .ya-user-menu__menu { position: static; width: 100%; margin-top: 5px; }
    .ya-header .ya-nav__heading { margin-bottom: 2px; }
}
@media (max-width: 520px) {
    .ya-header__inner { padding-block: 8px; }
    .ya-header .ya-brand__text { font-size: .96rem; }
    .ya-nav__links { gap: 3px; }
}

/* Edge-aligned header: brand at the RTL edge, links in the middle, tools at the opposite edge. */
@media (min-width: 961px) {
    .ya-header__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
    .ya-header .ya-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; width: 100%; }
    .ya-nav__links { justify-content: center; }
    .ya-header__actions { justify-content: flex-start; padding-inline-start: 14px; border-inline-start: 1px solid rgba(233,200,117,.2); }
    .ya-header__inner > .ya-brand { justify-self: start; }
}
@media (max-width: 960px) {
    .ya-header .ya-nav { inset-inline-start: auto; inset-inline-end: 12px; width: min(88vw, 360px); max-height: calc(100dvh - var(--header-h) - 42px); border: 1px solid rgba(233,200,117,.22); border-radius: 0 0 22px 22px; box-shadow: -14px 20px 45px rgba(0,0,0,.26); transform: translateX(18px) translateY(-8px); }
    .ya-header .ya-nav.is-open { transform: translateX(0) translateY(0); }
    .ya-header .ya-nav__heading { border-radius: 14px; background: rgba(255,255,255,.05); }
}
