/* ============================================================
   World Hire Net - theme
   Corporate emerald + gold. Clean white space, strong type.
   Uses logical properties so the same CSS works LTR and RTL
   (English, French = LTR; Arabic, Urdu = RTL).
   ============================================================ */
:root {
    --brand: #0b4d3c;
    --brand-2: #0f6b52;
    --brand-dark: #062e24;
    --teal: #14a37f;
    --accent: #c8a24a;
    --accent-dark: #a8842f;
    --gold-soft: #f6eedb;
    --ink: #10201b;
    --muted: #5f6f69;
    --line: #e3e8e4;
    --bg: #f7f8f5;
    --card: #ffffff;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(16, 32, 27, .05), 0 1px 3px rgba(16, 32, 27, .06);
    --shadow: 0 18px 40px -18px rgba(var(--brand-dark-rgb), .28);
    --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    --brand-rgb: 11, 77, 60;
    --brand-dark-rgb: 6, 46, 36;
    --teal-rgb: 20, 163, 127;
    --accent-rgb: 200, 162, 74;
    --accent-light: #f1d58a;
    --brand-mid: color-mix(in srgb, var(--brand) 55%, var(--brand-dark));
    --brand-text: var(--brand);
    --surface-2: #f4f6f3;
    --bs-primary: var(--brand);
    --bs-primary-rgb: var(--brand-rgb);
    --bs-link-color: var(--brand-2);
    --bs-link-color-rgb: var(--brand-rgb);
    --bs-link-hover-color: var(--brand);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
}

body { background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .section-title, .brand-text { font-family: var(--font-head); }

/* ---------- Language fonts ---------- */
.lang-ar, .lang-font-ar { font-family: "IBM Plex Sans Arabic", "Inter", sans-serif; }
.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4, .lang-ar h5, .lang-ar h6, .lang-ar .section-title { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; }
.lang-ur, .font-ur, .lang-font-ur { font-family: "Noto Nastaliq Urdu", "Inter", serif; }
.lang-ur { line-height: 2.1; }
.lang-ur h1, .lang-ur h2, .lang-ur h3, .lang-ur h4, .lang-ur h5, .lang-ur h6, .lang-ur .section-title { font-family: "Noto Nastaliq Urdu", serif; letter-spacing: 0; line-height: 1.9; }
.lang-ur .navbar, .lang-ur .btn, .lang-ur .form-control, .lang-ur .form-select { line-height: 1.9; }
.lang-ar .brand-text, .lang-ur .brand-text { font-family: var(--font-head); }
[dir="rtl"] .flip-rtl { display: inline-block; transform: scaleX(-1); }
.min-w-0 { min-width: 0; }
a { text-decoration: none; }
.text-white-75 { color: rgba(255, 255, 255, .78); }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; }
.btn-lg { padding: .75rem 1.4rem; font-size: 1.02rem; }
.btn-primary, .btn-brand { --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-2); --bs-btn-hover-border-color: var(--brand-2); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-color: #fff; --bs-btn-disabled-bg: #8aa79d; --bs-btn-disabled-border-color: #8aa79d; }
.btn-outline-primary, .btn-outline-brand { --bs-btn-color: var(--brand); --bs-btn-border-color: rgba(var(--brand-rgb), .35); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-color: #fff; }
.btn-gold, .btn-accent { --bs-btn-color: #2a1f05; --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-color: #2a1f05; --bs-btn-hover-bg: #d6b15a; --bs-btn-hover-border-color: #d6b15a; --bs-btn-active-bg: var(--accent-dark); --bs-btn-disabled-bg: #dccb9f; --bs-btn-disabled-border-color: #dccb9f; box-shadow: 0 10px 24px -12px rgba(var(--accent-rgb), .8); }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { color: var(--brand-dark); background: var(--card); border-color: #fff; }
.btn-soft { background: rgba(var(--brand-rgb), .07); color: var(--brand-text); border: 0; }
.btn-soft:hover { background: rgba(var(--brand-rgb), .14); color: var(--brand-text); }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.badge-gold { background: linear-gradient(135deg, var(--accent-light), var(--accent)); color: #2a1f05; }
.badge-wait { background: #fff4d6; color: #8a6100; }

/* ---------- Brand ---------- */
.brand-text { font-weight: 800; letter-spacing: -.02em; font-size: 1.3rem; color: var(--brand-text); }
.brand-text span { color: var(--accent); }

/* ---------- Public: top bars ---------- */
.topbar { background: var(--brand-dark); color: rgba(255, 255, 255, .75); padding: .4rem 0; font-size: .85rem; position: relative; z-index: 1035; }
.topbar a, .topbar-link { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--accent); }
.btn-topbar { color: #fff; border: 1px solid rgba(255, 255, 255, .2); background: transparent; padding: .15rem .6rem; font-size: .82rem; border-radius: 8px; }
.btn-topbar:hover, .btn-topbar.show { color: var(--brand-dark); background: var(--card); }
.btn-topbar i { color: inherit; }
/* Language menu: the dropdown sits above the sticky main menu and keeps dark text even inside the dark top bar. */
.lang-menu .dropdown-menu { z-index: 1060; min-width: 13rem; padding: .4rem; border: 0; border-radius: 14px; font-size: .95rem; }
.lang-menu .dropdown-item, .topbar .lang-menu .dropdown-item { color: var(--ink); padding: .55rem .9rem; border-radius: 10px; line-height: 1.6; }
.lang-menu .dropdown-item:hover, .lang-menu .dropdown-item:focus { background: rgba(var(--brand-rgb), .07); color: var(--brand-text); }
.lang-menu .dropdown-item.active, .topbar .lang-menu .dropdown-item.active { background: var(--brand); color: #fff; }
.lang-menu .dropdown-item .small { color: var(--muted); opacity: 1 !important; }
.lang-menu .dropdown-item.active .small { color: rgba(255, 255, 255, .8); }
.lang-menu .lang-native { font-weight: 600; font-size: 1rem; }
.lang-menu .lang-font-ur { line-height: 2; }
.lang-ur .topbar { line-height: 1.6; }

.site-nav { background: rgba(255, 255, 255, .95); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); padding: .7rem 0; }
.site-nav .nav-link { font-weight: 600; color: #2b3a35; padding: .5rem .9rem !important; position: relative; }
.site-nav .nav-link:hover { color: var(--brand-text); }
.site-nav .nav-link.active { color: var(--brand-text); }
@media (min-width: 992px) {
    .site-nav .nav-link.active::after { content: ""; position: absolute; inset-inline: .9rem; bottom: -.15rem; height: 3px; border-radius: 3px; background: var(--accent); }
}
.site-nav .dropdown-menu { border-radius: 14px; padding: .5rem; }
.site-nav .dropdown-item { border-radius: 10px; padding: .5rem .8rem; }
.site-nav .dropdown-item i { color: var(--teal); margin-inline-end: .4rem; }
.site-nav .dropdown-item.active, .site-nav .dropdown-item:active { background: rgba(var(--brand-rgb), .08); color: var(--brand-text); }
.nav-signin { color: var(--brand-text); font-weight: 600; text-decoration: none; }

/* ---------- Hero (home) ---------- */
.hero-x { position: relative; overflow: hidden; color: #fff; padding: 5.5rem 0 3rem;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-2) 100%); }
.hero-x-bg { position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(700px 380px at 85% 10%, rgba(var(--accent-rgb), .28), transparent 60%),
      radial-gradient(600px 400px at 5% 100%, rgba(var(--teal-rgb), .35), transparent 60%),
      repeating-radial-gradient(circle at 78% 42%, rgba(255, 255, 255, .06) 0 1px, transparent 1px 46px); }
.hero-x .eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: var(--accent-light); margin-bottom: 1.25rem; }
.hero-x-title { font-weight: 800; letter-spacing: -.035em; font-size: clamp(2.2rem, 4.8vw, 3.9rem); line-height: 1.08; margin-bottom: 1.25rem; }
.lang-ar .hero-x-title, .lang-ur .hero-x-title { letter-spacing: 0; line-height: 1.5; }
.hero-x-title .gold { background: linear-gradient(90deg, var(--accent-light), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-x-lead { font-size: 1.15rem; color: rgba(255, 255, 255, .78); max-width: 38rem; margin-bottom: 2rem; }
.trust-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.trust-row i { color: var(--accent-light); margin-inline-end: .35rem; }

.hero-visual { position: relative; height: 360px; }
.ticket-demo { position: absolute; inset-inline-end: 1rem; top: 1.5rem; width: 320px; border-radius: 22px; padding: 1.4rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); transform: rotate(-3deg); }
[dir="rtl"] .ticket-demo { transform: rotate(3deg); }
.ticket-demo-top { display: flex; justify-content: space-between; align-items: center; }
.ticket-demo-top .brand-text { font-size: 1rem; }
.ticket-demo-no { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; letter-spacing: .04em; margin: 1rem 0 .6rem; }
.ticket-demo-bars { height: 46px; border-radius: 6px; background: var(--card);
    background-image: repeating-linear-gradient(90deg, #10201b 0 2px, transparent 2px 4px, #10201b 4px 7px, transparent 7px 9px, #10201b 9px 10px, transparent 10px 13px); background-clip: content-box; padding: 6px 10px; }
.ticket-demo-grid { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin-top: 1rem; font-weight: 600; }
.ticket-demo-grid span { display: block; font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.float-card { position: absolute; display: flex; align-items: center; gap: .75rem; background: var(--card); color: var(--ink); border-radius: 16px; padding: .75rem 1rem; box-shadow: var(--shadow); }
.float-card i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--accent-dark); font-size: 1.2rem; }
.float-card b { display: block; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.1; }
.float-card span { font-size: .8rem; color: var(--muted); }
.fc-1 { inset-inline-start: 0; bottom: 2.5rem; }
.fc-2 { inset-inline-end: 0; bottom: -.5rem; }

.search-x { position: relative; z-index: 2; margin-top: 3rem; display: flex; flex-wrap: wrap; gap: .5rem; background: var(--card); padding: .6rem; border-radius: 18px; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .5); }
.search-x .form-control, .search-x .form-select { border: 0; box-shadow: none; height: 52px; background-color: var(--surface-2); }
.search-x .input-icon { min-width: 220px; }
.search-x .form-select { flex: 0 1 220px; }
@media (max-width: 767px) { .search-x .form-select, .search-x .btn { flex: 1 1 100%; } }

.numbers-strip { background: var(--card); border-bottom: 1px solid var(--line); }
.num-item { padding: 1.8rem 1rem; border-inline-end: 1px solid var(--line); }
.col-6:last-child .num-item, .col-lg-3:last-child .num-item { border-inline-end: 0; }
.num-item b { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--brand-text); letter-spacing: -.02em; }
.num-item span { color: var(--muted); font-size: .9rem; }

/* Old hero (kept for any page still using it) */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); padding: 4rem 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero, .page-head { position: relative; overflow: hidden; color: #fff; padding: 3.5rem 0 3rem;
    background: radial-gradient(600px 300px at 90% 0%, rgba(var(--accent-rgb), .25), transparent 60%), linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.page-hero h1 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
.page-hero .lead { color: rgba(255, 255, 255, .78); max-width: 46rem; }
.page-hero .eyebrow { color: var(--accent-light); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; }
.page-head .breadcrumb a, .page-hero .breadcrumb a { color: rgba(255, 255, 255, .7); }
.page-head .breadcrumb-item.active, .page-head .breadcrumb-item + .breadcrumb-item::before,
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-tint { background: linear-gradient(180deg, #fff, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-title { font-weight: 800; letter-spacing: -.025em; font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: .35rem; }
.lang-ar .section-title, .lang-ur .section-title { letter-spacing: 0; }
.section-sub { color: var(--muted); margin-bottom: 0; max-width: 40rem; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-dark); margin-bottom: .5rem; }
.lang-ar .kicker, .lang-ur .kicker { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.kicker-light { color: var(--accent-light); }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 700; padding: 1rem 1.25rem; }
.card-body { padding: 1.25rem; }
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .2); }
.news-card h3 { color: var(--ink); }

/* ---------- Job card ---------- */
.job-card { height: 100%; display: flex; flex-direction: column; }
.job-card .logo, .logo-box {
    width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); display: inline-flex;
    align-items: center; justify-content: center; font-weight: 800; color: var(--brand-text); flex-shrink: 0; overflow: hidden; }
.job-card .logo img, .logo-box img { width: 100%; height: 100%; object-fit: contain; background: var(--card); }
.job-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.job-card h3 a { color: var(--ink); }
.job-card h3 a:hover { color: var(--brand-text); }
.job-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--muted); font-size: .85rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: #34433e; }
.chip-salary { background: #e8f6ef; color: #0b6b4a; }
.chip-open { background: var(--surface-2); color: #2552a3; }
.chip-trade { background: var(--gold-soft); color: #7a5a12; }
.chip-benefit { background: var(--surface-2); color: #0f6b52; }
.chip-tag { background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.job-card-actions { display: flex; justify-content: flex-end; gap: .5rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.apply-points { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .88rem; color: var(--muted); }
.apply-points li { display: flex; gap: .55rem; margin-bottom: .45rem; }
.apply-points i { color: var(--teal); }
.featured-ribbon { position: absolute; inset-block-start: 14px; inset-inline-end: -1px; background: var(--accent); color: #2a1f05; font-size: .7rem; font-weight: 800; padding: .2rem .6rem; border-start-start-radius: 6px; border-end-start-radius: 6px; }

/* ---------- Filters / forms ---------- */
.filter-bar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); }
.form-control, .form-select { border-radius: 12px; border-color: #d5ddd8; }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 .2rem rgba(var(--teal-rgb), .15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-label { font-weight: 600; font-size: .875rem; color: #34433e; margin-bottom: .35rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; inset-inline-start: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); z-index: 1; }
.input-icon > .form-control { padding-inline-start: 2.5rem; }

/* ---------- Tiles ---------- */
.tile { display: flex; align-items: center; gap: .8rem; padding: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: all .18s; }
.tile:hover { border-color: rgba(var(--brand-rgb), .3); box-shadow: var(--shadow); color: var(--brand-text); transform: translateY(-2px); }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--teal-rgb), .1); color: var(--brand-text); font-size: 1.2rem; flex-shrink: 0; }

/* ---------- Steps (old) ---------- */
.step { text-align: center; padding: 1.5rem; }
.step .n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; font-weight: 800; font-size: 1.3rem; background: var(--brand); color: #fff; }

/* ---------- How it works ---------- */
.how-card { position: relative; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 2rem 1.5rem 1.6rem; transition: all .2s; }
.how-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.how-card .how-num { position: absolute; inset-block-start: 1.2rem; inset-inline-end: 1.4rem; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: rgba(var(--brand-rgb), .12); }
.how-card > i { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.2rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--accent-light); }
.how-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.how-card p { color: var(--muted); margin: 0; font-size: .93rem; }

/* ---------- Why band ---------- */
.why-band { background: radial-gradient(600px 300px at 0% 0%, rgba(var(--accent-rgb), .2), transparent 60%), linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.why-card { height: 100%; border-radius: 18px; padding: 1.4rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; }
.why-card i { font-size: 1.6rem; color: var(--accent-light); }
.why-card h3 { font-size: 1.05rem; font-weight: 700; margin: .8rem 0 .3rem; }
.why-card p { color: rgba(255, 255, 255, .7); margin: 0; font-size: .92rem; }

/* ---------- CTA ---------- */
.cta-band, .cta-x { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; border-radius: 24px; padding: 2.5rem;
    background: linear-gradient(120deg, var(--gold-soft), #fff 70%); border: 1px solid #ecdfbd; }
.cta-x p { color: var(--muted); }

/* ---------- Campaign cards ---------- */
.campaign-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.6rem; border-radius: 22px; background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: all .2s; overflow: hidden; }
.campaign-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.campaign-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); color: var(--ink); border-color: rgba(var(--brand-rgb), .2); }
.campaign-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.campaign-flag { font-size: 2.4rem; line-height: 1; }
.campaign-country { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-dark); }
.campaign-title { font-size: 1.3rem; font-weight: 800; margin: .3rem 0 .5rem; letter-spacing: -.01em; }
.campaign-sub { color: var(--muted); font-size: .93rem; }
.campaign-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; color: var(--muted); margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--line); }
.campaign-stats strong { color: var(--ink); font-family: var(--font-head); }
.campaign-cta { margin-top: 1rem; font-weight: 700; color: var(--brand-text); }
.live-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(var(--teal-rgb), .14); color: #0b6b4a; font-weight: 700; font-size: .85rem; }
.live-pill.sm { font-size: .75rem; padding: .2rem .6rem; }
.campaign-hero .live-pill { background: rgba(255, 255, 255, .12); color: #9ff0cf; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #1ec98f; box-shadow: 0 0 0 0 rgba(30, 201, 143, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(30, 201, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 201, 143, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .card-hover:hover, .campaign-card:hover, .how-card:hover, .tile:hover { transform: none; } }

.campaign-hero { color: #fff; padding: 2.5rem 0 3rem; background: radial-gradient(600px 300px at 90% 0%, rgba(var(--accent-rgb), .25), transparent 60%), linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.campaign-hero .breadcrumb a { color: rgba(255, 255, 255, .7); }
.campaign-hero .breadcrumb-item.active, .campaign-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }
.campaign-hero .lead { color: rgba(255, 255, 255, .8); }
.hero-flag { font-size: 3rem; line-height: 1; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 18px; padding: 1rem; text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.hero-facts span { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: #fff; }

.cjob { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.4rem; transition: all .18s; }
.cjob:hover { border-color: rgba(var(--brand-rgb), .25); box-shadow: var(--shadow-sm); }
.cjob-main { flex: 1 1 340px; min-width: 0; }
.cjob-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.cjob-note { margin-top: .6rem; font-size: .85rem; color: #7a5a12; background: var(--gold-soft); border-radius: 10px; padding: .4rem .7rem; }
.cjob-cta { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; }
.side-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .9rem; }
.side-card h3 i { color: var(--teal); }
.side-card-gold { background: var(--gold-soft); border-color: #ecdfbd; }
.office-line { padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.office-line:last-of-type { border-bottom: 0; }
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li { position: relative; padding-inline-start: 1.7rem; margin-bottom: .55rem; }
.req-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; inset-inline-start: 0; top: .05rem; color: var(--teal); }
.how-strip { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 2.5rem 1.5rem; }
.empty-state.small-pad { padding: 2rem 1rem; background: var(--card); border-radius: 18px; border: 1px dashed var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255, 255, 255, .7); margin-top: 4rem; border-top: 4px solid var(--accent); }
.footer-top { padding: 4rem 0 2.5rem; }
.site-footer h6 { color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: 1rem; }
.footer-about { max-width: 22rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .7); display: inline-block; padding: .22rem 0; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-light); }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .7rem; }
.footer-contact i { color: var(--accent); }
.footer-langs { display: flex; flex-wrap: wrap; gap: .4rem; }
.footer-langs a { color: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .2rem .75rem; font-size: .85rem; }
.footer-langs a.active, .footer-langs a:hover { color: var(--brand-dark); background: var(--accent-light); border-color: var(--accent-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.whatsapp-fab { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 1050; background: #25d366; color: #fff; border-radius: 999px; padding: .75rem 1.1rem; font-weight: 700; box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .7); }
.whatsapp-fab:hover { color: #fff; background: #1ebe5a; }
button.whatsapp-fab { border: 0; }

/* ---------- WhatsApp chooser ---------- */
.wa-widget { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 1050; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.wa-widget .whatsapp-fab { position: static; }
.wa-panel { width: min(340px, calc(100vw - 32px)); background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px -12px rgba(var(--brand-dark-rgb), .45); border: 1px solid var(--line); animation: wa-in .18s ease-out; }
.wa-panel[hidden] { display: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wa-panel-head { display: flex; align-items: center; gap: .75rem; background: #075e54; color: #fff; padding: .9rem 1rem; }
.wa-panel-head > .bi { font-size: 1.6rem; }
.wa-panel-body { padding: .5rem; max-height: 60vh; overflow-y: auto; background: #f0f2f5; }
.wa-item { display: flex; align-items: center; gap: .75rem; padding: .7rem .75rem; border-radius: 12px; background: var(--card); color: var(--ink, #1c2b27); text-decoration: none; margin-bottom: .4rem; border-inline-start: 3px solid #25d366; }
.wa-item:last-child { margin-bottom: 0; }
.wa-item:hover { background: var(--surface-2); color: var(--brand-text); }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; flex-shrink: 0; font-size: 1.1rem; }
.wa-item.wa-channel { border-inline-start-color: var(--accent); }
.wa-item.wa-channel .wa-avatar { background: var(--accent); }

/* ---------- Social links ---------- */
.topbar-social { gap: .65rem; }
.topbar-social a { color: rgba(255, 255, 255, .75); }
.topbar-social a:hover { color: #fff; }
.footer-social, .contact-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-social a, .contact-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; transition: .15s; }
.footer-social a { background: rgba(255, 255, 255, .08); color: #fff; }
.footer-social a:hover { background: var(--accent); color: var(--brand-dark); }
.contact-social a { background: rgba(var(--brand-rgb), .07); color: var(--brand-text); }
.contact-social a:hover { background: var(--brand); color: #fff; }
.btn-wa-channel { background: #25d366; color: #fff; border-radius: 999px; font-weight: 600; }
.btn-wa-channel:hover { background: #1ebe5a; color: #fff; }
.footer-label { display: block; font-size: .75rem; opacity: .65; }
.footer-offices-link { display: inline-block; margin-top: .25rem; color: var(--accent); }

/* ---------- Contact page ---------- */
.contact-list li { display: flex; gap: .75rem; margin-bottom: .9rem; }
.contact-list li > .bi { color: var(--brand-text); font-size: 1.1rem; margin-top: .1rem; }
.btn-wa { background: #e8f9ef; color: #128c7e; border: 1px solid #c7efd6; border-radius: 12px; padding: .6rem .9rem; font-weight: 600; }
.btn-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.channel-card { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border-radius: 14px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #075e54, #128c7e); }
.channel-card:hover { color: #fff; filter: brightness(1.08); }
.channel-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.office-list { display: flex; flex-direction: column; gap: .75rem; max-height: 460px; overflow-y: auto; padding: 2px; }
.office-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; cursor: pointer; transition: .15s; }
.office-card:hover { border-color: rgba(var(--brand-rgb), .35); }
.office-card.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12); }
.office-card:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .35); }
.office-pin { width: 34px; height: 34px; border-radius: 50%; background: rgba(var(--brand-rgb), .08); color: var(--brand-text); display: grid; place-items: center; flex-shrink: 0; }
.office-card.active .office-pin { background: var(--brand); color: #fff; }
.office-actions { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .5rem; font-size: .85rem; }
.office-map { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); height: 460px; }
.office-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.office-map-sm { height: 260px; }
.office-map-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #7a8b85; gap: .5rem; }
.office-map-empty .bi { font-size: 2.5rem; }
@media (max-width: 991.98px) { .office-map { height: 320px; } .office-list { max-height: none; } }

/* ---------- Article ---------- */
.prose { font-size: 1.02rem; line-height: 1.8; }
.lang-ur .prose { line-height: 2.3; }
.prose img { max-width: 100%; border-radius: 12px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 160px); display: flex; align-items: center; padding: 3rem 0; }
.auth-card { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card); padding: 2rem; }
.auth-wrap .auth-card, .card.auth-card { padding: 0; }
.auth-side { background: radial-gradient(400px 200px at 100% 0%, rgba(var(--accent-rgb), .3), transparent 60%), linear-gradient(160deg, var(--brand-dark), var(--brand)); color: #fff; padding: 2.5rem; }
.auth-side li { margin-bottom: .75rem; }
.auth-side .bi { color: var(--accent-light); }

/* ============================================================
   Dashboard
   ============================================================ */
.dash-wrap { display: flex; min-height: 100vh; }
/* Sidebar. Bootstrap's .offcanvas-lg forces "background-color: transparent !important"
   on large screens, so the background is set with !important here. */
.dash-sidebar {
    width: 272px; flex-shrink: 0; color: #e2e8f0;
    background: radial-gradient(120% 60% at 0% 0%, rgba(var(--accent-rgb), .22) 0%, rgba(var(--accent-rgb), 0) 55%),
                linear-gradient(180deg, var(--brand) 0%, var(--brand-mid) 55%, var(--brand-dark) 100%) !important;
    box-shadow: 4px 0 24px -12px rgba(var(--brand-dark-rgb), .55);
}
[dir="rtl"] .dash-sidebar { box-shadow: -4px 0 24px -12px rgba(var(--brand-dark-rgb), .55); }
@media (min-width: 992px) {
    .dash-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
}
.dash-sidebar.offcanvas-lg { --bs-offcanvas-bg: var(--brand-mid); --bs-offcanvas-width: 280px; --bs-offcanvas-color: #e2e8f0; }
.dash-sidebar { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.dash-sidebar::-webkit-scrollbar { width: 6px; }
.dash-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 6px; }

.sidebar-brand { padding: 1.15rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sidebar-brand .brand-text { color: #fff; font-size: 1.3rem; }
.sidebar-brand .brand-text span { color: var(--accent-light); }

.sidebar-user {
    display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; margin: 1rem .9rem .5rem;
    border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1);
}
.sidebar-user .avatar { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px rgba(var(--accent-rgb), .25); }
.sidebar-user .text-white { color: #fff !important; font-size: 1rem; }
.sidebar-user .text-white-50 {
    display: inline-block; margin-top: .15rem; padding: .05rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
    color: var(--accent-light) !important; background: rgba(var(--accent-rgb), .16);
}

.sidebar-nav { padding: .25rem .9rem 2rem; }
.sidebar-section {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700;
    color: #9fc4b6; padding: 1.15rem .6rem .45rem;
}
.lang-ur .sidebar-section { letter-spacing: 0; font-size: .82rem; }

.sidebar-link {
    display: flex; align-items: center; gap: .75rem; margin-bottom: 3px; padding: .5rem .6rem;
    border-radius: 12px; color: #e3efe9; font-weight: 500; font-size: .95rem; text-decoration: none;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.sidebar-link i {
    display: inline-grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
    font-size: 1.05rem; color: #9fe0c4; background: rgba(255, 255, 255, .07);
    transition: background-color .15s ease, color .15s ease;
}
.sidebar-link:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateX(2px); }
[dir="rtl"] .sidebar-link:hover { transform: translateX(-2px); }
.sidebar-link:hover i { color: #fff; background: rgba(255, 255, 255, .14); }
.sidebar-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sidebar-link.active {
    color: #fff; font-weight: 600;
    background: linear-gradient(90deg, rgba(var(--accent-rgb), .24), rgba(var(--accent-rgb), .05));
    box-shadow: inset 3px 0 0 var(--accent);
}
[dir="rtl"] .sidebar-link.active {
    background: linear-gradient(270deg, rgba(var(--accent-rgb), .24), rgba(var(--accent-rgb), .05));
    box-shadow: inset -3px 0 0 var(--accent);
}
.sidebar-link.active i { color: #2a1f05; background: linear-gradient(135deg, var(--accent-light), var(--accent)); box-shadow: 0 6px 14px -6px rgba(var(--accent-rgb), .9); }

.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem; padding: .75rem 1.5rem; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.dash-content { padding: 1.5rem; }
@media (max-width: 575px) { .dash-content { padding: 1rem; } .dash-topbar { padding: .6rem 1rem; } }

.avatar { border-radius: 50%; object-fit: cover; background: #e2e8f0; flex-shrink: 0; }
.avatar-xs { width: 26px; height: 26px; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 96px; height: 96px; }
.avatar-text { display: inline-grid; place-items: center; font-weight: 700; color: var(--brand-text); background: #e0e7ff; }

/* Stat cards */
.stat-card { position: relative; overflow: hidden; }
.stat-card .stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-card .stat-label { color: var(--muted); font-size: .85rem; font-weight: 500; }
.stat-card .stretched-link::after { z-index: 1; }
.bg-soft-primary { background: rgba(var(--brand-rgb), .09); color: var(--brand-text); }
.bg-soft-teal { background: rgba(var(--teal-rgb), .13); color: #0b6b4a; }
.bg-soft-info { background: rgba(14, 165, 233, .13); color: #0369a1; }
.bg-soft-success { background: rgba(16, 185, 129, .13); color: #047857; }
.bg-soft-warning { background: rgba(245, 158, 11, .15); color: #a16207; }
.bg-soft-secondary { background: var(--surface-2); color: #475569; }
.bg-soft-amber { background: rgba(245, 165, 36, .17); color: #a35f00; }
.bg-soft-rose { background: rgba(244, 63, 94, .12); color: #be123c; }
.bg-soft-violet { background: rgba(139, 92, 246, .13); color: #6d28d9; }
.bg-soft-sky { background: rgba(14, 165, 233, .13); color: #0369a1; }
.bg-soft-green { background: rgba(16, 185, 129, .13); color: #047857; }

/* Tables */
.table-card { overflow: hidden; }
.table { --bs-table-hover-bg: #f6f8f6; margin-bottom: 0; }
.table > thead th { background: var(--surface-2); color: #4a5a54; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; padding: .75rem 1rem; }
.lang-ur .table > thead th { letter-spacing: 0; font-size: .85rem; text-transform: none; }
.table > tbody td { padding: .75rem 1rem; vertical-align: middle; border-color: #eef1f6; }
.sort-link { color: inherit; display: inline-flex; align-items: center; gap: .3rem; }
.sort-link.active { color: var(--brand-text); }

/* Soft badges */
.badge { font-weight: 600; padding: .4em .7em; border-radius: 999px; }
.badge-soft-light { background: var(--surface-2); color: #475569; }
.badge-soft-info { background: #e0f2fe; color: #0369a1; }
.badge-soft-primary { background: #e3f1ec; color: var(--brand-text); }
.badge-soft-success { background: #dcfce7; color: #15803d; }
.badge-soft-danger { background: #ffe4e6; color: #be123c; }
.badge-soft-warning { background: #fef3c7; color: #a16207; }
.badge-soft-secondary { background: #e2e8f0; color: #475569; }

/* Progress ring for profile completeness */
.ring { --p: 0; --size: 110px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center;
        background: conic-gradient(var(--teal) calc(var(--p) * 1%), #e2e8f0 0); }
.ring > div { width: calc(var(--size) - 18px); height: calc(var(--size) - 18px); border-radius: 50%; background: var(--card); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: var(--brand-text); }

/* Timeline */
.timeline { position: relative; padding-inline-start: 1.5rem; }
.timeline::before { content: ""; position: absolute; inset-inline-start: .45rem; top: .3rem; bottom: .3rem; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 1.25rem; }
.timeline-item::before { content: ""; position: absolute; inset-inline-start: -1.32rem; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 3px solid var(--teal); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.5rem; opacity: .4; display: block; margin-bottom: .75rem; }

.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem 1.5rem; }
.dl-grid dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.lang-ur .dl-grid dt { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.dl-grid dd { margin: 0; font-weight: 500; word-break: break-word; }

.doc-tile { border: 1px dashed #cbd5e1; border-radius: 12px; padding: 1rem; text-align: center; background: var(--surface-2); }
.doc-tile img { max-height: 120px; max-width: 100%; border-radius: 8px; }

/* CV print */
.cv-sheet { background: var(--card); max-width: 900px; margin: 0 auto; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.cv-head { background: linear-gradient(135deg, var(--brand-dark), var(--brand-2)); color: #fff; padding: 2rem; }
.cv-body { padding: 2rem; }
.cv-body h5 { color: var(--brand-text); border-bottom: 2px solid var(--line); padding-bottom: .4rem; margin-top: 1.75rem; font-weight: 800; }

/* ---------- Campaign page (project style) ---------- */
.cmp-hero { padding: 1.5rem 0 3rem; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%); }
.cmp-back { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; text-decoration: none; }
.cmp-back:hover { color: var(--brand-text); }
.cmp-card { position: relative; overflow: hidden; color: #fff; border-radius: 26px; padding: clamp(1.5rem, 4vw, 2.75rem);
    background: radial-gradient(520px 260px at 100% 0%, rgba(var(--accent-rgb), .28), transparent 60%), radial-gradient(420px 260px at 0% 100%, rgba(var(--teal-rgb), .22), transparent 60%), linear-gradient(135deg, var(--brand-dark), var(--brand)); box-shadow: 0 30px 60px -30px rgba(var(--brand-dark-rgb), .6); }
.cmp-eyebrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.cmp-country { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 600; color: rgba(255, 255, 255, .85); margin-bottom: .4rem; }
.cmp-flag { font-size: 1.6rem; line-height: 1; }
.cmp-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.15; margin-bottom: 1rem; max-width: 900px; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.cmp-chips > span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .85rem; font-weight: 600; }
.cmp-live { color: #9ff0cf; }
.cmp-live .dot, .head-chip-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); display: inline-block; }
.cmp-closed { color: #fecaca; }
.cmp-desc { color: rgba(255, 255, 255, .82); max-width: 820px; line-height: 1.7; }
.cmp-interview { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.25rem; padding: 1rem 1.2rem; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); max-width: 640px; }
.cmp-int-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--accent-rgb), .2); color: var(--accent); display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.cmp-int-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cmp-int-date { font-weight: 700; font-size: 1.05rem; }
.cmp-poster { display: flex; justify-content: center; }
.cmp-poster-btn { position: relative; border: 0; padding: 0; background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); max-width: 760px; width: 100%; cursor: zoom-in; }
.cmp-poster-btn img { display: block; width: 100%; max-height: 560px; object-fit: cover; object-position: top; }
.cmp-poster-hint { position: absolute; inset-inline: 0; bottom: 0; padding: 2.5rem 1rem .9rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #fff; font-weight: 600; font-size: .9rem; }
.trade-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.trade-filters button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; font-weight: 600; }
.trade-filters button.active, .trade-filters button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.positions { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.positions-head, .position-link { display: grid; grid-template-columns: minmax(180px, 1.4fr) 90px minmax(120px, .8fr) minmax(200px, 2fr) 28px; gap: 1rem; align-items: center; }
.positions-head { padding: .75rem 1.25rem; background: var(--surface-2); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.position { display: flex; align-items: center; border-top: 1px solid var(--line); transition: background .15s; }
.position:hover { background: var(--surface-2); }
.position[hidden] { display: none; }
.position-link { flex: 1; padding: 1rem 1.25rem; color: inherit; text-decoration: none; min-width: 0; }
.position-link:hover .p-title .fw-semibold { color: var(--accent-dark); }
.p-title { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.p-cat { font-size: .72rem; font-weight: 700; color: var(--brand-text); background: rgba(var(--brand-rgb), .08); border-radius: 6px; padding: .05rem .45rem; }
.p-open { text-align: center; }
.p-open b { font-size: 1.1rem; }
.p-salary { font-weight: 600; color: #0b6b4a; font-size: .92rem; }
.p-brief { color: var(--muted); font-size: .88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-go { color: #b6c2bd; }
.position-cta { padding-inline-end: 1.25rem; flex-shrink: 0; }
.positions-empty { padding: 2rem; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 767.98px) {
    .positions-head { display: none; }
    .position { flex-direction: column; align-items: stretch; }
    .position-link { grid-template-columns: 1fr auto; grid-template-areas: "t o" "s s" "b b"; gap: .35rem .75rem; padding-bottom: .5rem; }
    .p-title { grid-area: t; } .p-open { grid-area: o; text-align: end; } .p-salary { grid-area: s; } .p-brief { grid-area: b; } .p-go { display: none; }
    .position-cta { padding: 0 1.25rem 1rem; }
    .position-cta .btn { width: 100%; }
}
.how-list { list-style: none; counter-reset: how; padding: 0; margin: 0; }
.how-list li { counter-increment: how; position: relative; padding-inline-start: 2.4rem; margin-bottom: .9rem; display: flex; flex-direction: column; }
.how-list li::before { content: counter(how); position: absolute; inset-inline-start: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.how-list span { font-size: .85rem; color: var(--muted); }
.btn-wa-share { background: #25d366; color: #fff; }
.btn-wa-share:hover { background: #1ebe5a; color: #fff; }

/* ---------- Job page (details) ---------- */
.head-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); }
.page-head .head-chip { background: rgba(var(--brand-rgb), .08); border-color: rgba(var(--brand-rgb), .12); color: var(--brand-text); }
.salary-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; border-radius: 14px; background: var(--accent); color: var(--brand-dark); font-weight: 800; }
.project-box { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.project-box:hover { color: #fff; filter: brightness(1.08); }
.project-flag { font-size: 1.8rem; }
.employer-box { display: flex; gap: .85rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.employer-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-size: 1.2rem; color: var(--brand-text); }
.info-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.info-tile { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 12px; }
.info-tile > i { font-size: 1.1rem; margin-top: .1rem; }
.info-tile span { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.info-tile b { font-size: .92rem; }
.tone-blue { background: #eef4ff; color: #2b4a9b; } .tone-green { background: #e9f8ef; color: #0b6b4a; } .tone-orange { background: #fff4e6; color: #a65b00; }
.tone-violet { background: #f3effd; color: #5b3fb0; } .tone-gray { background: var(--surface-2); color: #3d4b46; } .tone-pink { background: #fdeff4; color: #a23a63; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.benefit { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: .9rem .6rem; border-radius: 14px; }
.benefit i { font-size: 1.3rem; } .benefit span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; } .benefit b { font-size: .9rem; }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-inline-start: 1.6rem; margin-bottom: .45rem; }
.tick-list li::before { content: "✓"; font-weight: 800; position: absolute; inset-inline-start: 0; top: .05rem; color: var(--teal); }
.journey { list-style: none; counter-reset: j; padding: 0; margin: 0; position: relative; }
.journey li { counter-increment: j; position: relative; padding: 0 0 1rem 2.6rem; font-weight: 600; }
[dir=rtl] .journey li { padding: 0 2.6rem 1rem 0; }
.journey li::before { content: counter(j); position: absolute; inset-inline-start: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgba(var(--brand-rgb), .08); color: var(--brand-text); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.journey li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: .93rem; top: 1.9rem; bottom: .1rem; width: 2px; background: var(--line); }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; text-align: center; font-size: .82rem; font-weight: 600; }
.how-steps b { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin: 0 auto .35rem; border-radius: 50%; background: var(--accent); color: var(--brand-dark); }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; }
.related-item { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: inherit; text-decoration: none; }
.related-item:hover { border-color: var(--brand); }

/* ---------- Admin campaign dashboard ---------- */
.status-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; }
.status-strip .ss { display: flex; flex-direction: column; padding: .75rem 1rem; border-radius: 12px; text-decoration: none; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.status-strip .ss b { font-size: 1.4rem; color: var(--ink); }
.ss-info { border-inline-start: 4px solid #0ea5e9 !important; } .ss-warning { border-inline-start: 4px solid #f59e0b !important; } .ss-secondary { border-inline-start: 4px solid #94a3b8 !important; }
.ss-success { border-inline-start: 4px solid #10b981 !important; } .ss-danger { border-inline-start: 4px solid #ef4444 !important; } .ss-muted { border-inline-start: 4px solid #cbd5e1 !important; }
.poster-thumb { width: 160px; flex-shrink: 0; }
.poster-thumb img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.poster-empty { height: 200px; border: 2px dashed var(--line); border-radius: 12px; display: grid; place-items: center; font-size: 2rem; color: #b6c2bd; }


/* ============================================================
   Colour themes (html[data-theme]) and dark mode (html[data-bs-theme="dark"]).
   Chosen by the visitor with the palette button; saved in the browser.
   ============================================================ */
html[data-theme="ocean"] {
    --accent-light: #ffd99a; --brand-mid: color-mix(in srgb, var(--brand) 55%, var(--brand-dark));
    --brand: #0b3d6b; --brand-2: #1366a6; --brand-dark: #062544; --teal: #0ea5e9;
    --accent: #f2a93b; --accent-dark: #c9811a; --gold-soft: #fdf1dc;
    --brand-rgb: 11, 61, 107; --brand-dark-rgb: 6, 37, 68; --teal-rgb: 14, 165, 233; --accent-rgb: 242, 169, 59;
}
html[data-theme="royal"] {
    --accent-light: #f5d995; --brand-mid: color-mix(in srgb, var(--brand) 55%, var(--brand-dark));
    --brand: #3b2a7a; --brand-2: #5a45b3; --brand-dark: #21174a; --teal: #8b5cf6;
    --accent: #e7b04a; --accent-dark: #bf8a26; --gold-soft: #f8efdc;
    --brand-rgb: 59, 42, 122; --brand-dark-rgb: 33, 23, 74; --teal-rgb: 139, 92, 246; --accent-rgb: 231, 176, 74;
}
html[data-theme="maroon"] {
    --accent-light: #f3d69a; --brand-mid: color-mix(in srgb, var(--brand) 55%, var(--brand-dark));
    --brand: #6d1a2c; --brand-2: #962a40; --brand-dark: #400d19; --teal: #e0566f;
    --accent: #d4a24c; --accent-dark: #a97c2d; --gold-soft: #f7ecda;
    --brand-rgb: 109, 26, 44; --brand-dark-rgb: 64, 13, 25; --teal-rgb: 224, 86, 111; --accent-rgb: 212, 162, 76;
}
html[data-theme="slate"] {
    --accent-light: #fcd77a; --brand-mid: color-mix(in srgb, var(--brand) 55%, var(--brand-dark));
    --brand: #1f2a37; --brand-2: #374151; --brand-dark: #0f1621; --teal: #10b981;
    --accent: #f59e0b; --accent-dark: #c27c06; --gold-soft: #fdf2dc;
    --brand-rgb: 31, 42, 55; --brand-dark-rgb: 15, 22, 33; --teal-rgb: 16, 185, 129; --accent-rgb: 245, 158, 11;
}
html[data-theme="teal"] {
    --accent-light: #fcc9ac; --brand-mid: color-mix(in srgb, var(--brand) 55%, var(--brand-dark));
    --brand: #0f5e63; --brand-2: #158087; --brand-dark: #08393c; --teal: #2dd4bf;
    --accent: #f08a5d; --accent-dark: #c96a40; --gold-soft: #fde9df;
    --brand-rgb: 15, 94, 99; --brand-dark-rgb: 8, 57, 60; --teal-rgb: 45, 212, 191; --accent-rgb: 240, 138, 93;
}

/* ---------- Dark mode ---------- */
html[data-bs-theme="dark"] {
    --bg: #0c1311; --card: #131c19; --surface-2: #19241f; --ink: #e5ece9; --muted: #9aaca5; --line: #26342f;
    --brand-text: #6fd6b2; --bs-link-color: #6fd6b2; --bs-link-hover-color: #9be6cb; --gold-soft: rgba(var(--accent-rgb), .14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
    --bs-body-bg: var(--bg); --bs-body-color: var(--ink); --bs-border-color: var(--line); --bs-secondary-color: var(--muted);
    --bs-tertiary-bg: var(--surface-2); --bs-secondary-bg: var(--surface-2);
    color-scheme: dark;
}
html[data-bs-theme="dark"][data-theme="ocean"] { --brand-text: #7cc3ff; --bs-link-color: #7cc3ff; --bs-link-hover-color: #a8d7ff; --bg: #0b1119; --card: #111a24; --surface-2: #17222e; --line: #24313f; }
html[data-bs-theme="dark"][data-theme="royal"] { --brand-text: #b7a6ff; --bs-link-color: #b7a6ff; --bs-link-hover-color: #cfc4ff; --bg: #0f0d18; --card: #171424; --surface-2: #1e1a2f; --line: #2c2742; }
html[data-bs-theme="dark"][data-theme="maroon"] { --brand-text: #ff9db0; --bs-link-color: #ff9db0; --bs-link-hover-color: #ffc0cc; --bg: #140c0e; --card: #1d1316; --surface-2: #26191d; --line: #3a262c; }
html[data-bs-theme="dark"][data-theme="slate"] { --brand-text: #93c5fd; --bs-link-color: #93c5fd; --bs-link-hover-color: #bfdbfe; --bg: #0b0f14; --card: #121821; --surface-2: #19212c; --line: #283241; }
html[data-bs-theme="dark"][data-theme="teal"] { --brand-text: #5eead4; --bs-link-color: #5eead4; --bs-link-hover-color: #99f6e4; --bg: #091213; --card: #10191a; --surface-2: #162324; --line: #233536; }

html[data-bs-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-bs-theme="dark"] .card, html[data-bs-theme="dark"] .modal-content, html[data-bs-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .list-group-item, html[data-bs-theme="dark"] .accordion-item, html[data-bs-theme="dark"] .accordion-button { background-color: var(--card); color: var(--ink); border-color: var(--line); }
html[data-bs-theme="dark"] .accordion-button:not(.collapsed) { background-color: var(--surface-2); color: var(--brand-text); }
html[data-bs-theme="dark"] .form-control, html[data-bs-theme="dark"] .form-select, html[data-bs-theme="dark"] .input-group-text { background-color: var(--surface-2); color: var(--ink); border-color: var(--line); }
html[data-bs-theme="dark"] .form-control::placeholder { color: #6f817a; }
html[data-bs-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: var(--line); --bs-table-hover-bg: var(--surface-2); --bs-table-hover-color: var(--ink); --bs-table-striped-bg: var(--surface-2); }
html[data-bs-theme="dark"] .table > thead th { background: var(--surface-2); color: var(--muted); }
html[data-bs-theme="dark"] .text-muted, html[data-bs-theme="dark"] .text-secondary { color: var(--muted) !important; }
html[data-bs-theme="dark"] .text-body, html[data-bs-theme="dark"] .text-dark { color: var(--ink) !important; }
html[data-bs-theme="dark"] .bg-light, html[data-bs-theme="dark"] .bg-white, html[data-bs-theme="dark"] .text-bg-light { background-color: var(--surface-2) !important; color: var(--ink) !important; }
html[data-bs-theme="dark"] .btn-light { --bs-btn-bg: var(--surface-2); --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: #23302b; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--line); }
html[data-bs-theme="dark"] .btn-outline-primary, html[data-bs-theme="dark"] .btn-outline-brand { --bs-btn-color: var(--brand-text); --bs-btn-border-color: rgba(var(--brand-rgb), .9); }
html[data-bs-theme="dark"] .btn-soft { background: rgba(255, 255, 255, .06); color: var(--brand-text); }
html[data-bs-theme="dark"] .btn-link { --bs-btn-color: var(--brand-text); }
html[data-bs-theme="dark"] .alert-info { --bs-alert-bg: rgba(14, 165, 233, .12); --bs-alert-color: #a5dcf7; --bs-alert-border-color: rgba(14, 165, 233, .3); }
html[data-bs-theme="dark"] .alert-warning { --bs-alert-bg: rgba(245, 158, 11, .12); --bs-alert-color: #fcd68a; --bs-alert-border-color: rgba(245, 158, 11, .3); }
html[data-bs-theme="dark"] .alert-success { --bs-alert-bg: rgba(16, 185, 129, .12); --bs-alert-color: #8be7c3; --bs-alert-border-color: rgba(16, 185, 129, .3); }
html[data-bs-theme="dark"] .alert-danger { --bs-alert-bg: rgba(239, 68, 68, .12); --bs-alert-color: #fca5a5; --bs-alert-border-color: rgba(239, 68, 68, .3); }
html[data-bs-theme="dark"] .alert-light { --bs-alert-bg: var(--surface-2); --bs-alert-color: var(--ink); --bs-alert-border-color: var(--line); }
html[data-bs-theme="dark"] .badge-soft-primary, html[data-bs-theme="dark"] .badge-soft-secondary { background: rgba(255, 255, 255, .08) !important; color: var(--ink) !important; }
html[data-bs-theme="dark"] .tone-blue { background: rgba(59, 130, 246, .14); color: #a5c4ff; }
html[data-bs-theme="dark"] .tone-green { background: rgba(16, 185, 129, .14); color: #86e5bf; }
html[data-bs-theme="dark"] .tone-orange { background: rgba(245, 158, 11, .14); color: #fcd08a; }
html[data-bs-theme="dark"] .tone-violet { background: rgba(139, 92, 246, .16); color: #c9b8ff; }
html[data-bs-theme="dark"] .tone-gray { background: rgba(255, 255, 255, .06); color: #cfd8d4; }
html[data-bs-theme="dark"] .tone-pink { background: rgba(236, 72, 153, .14); color: #f9a8d4; }
html[data-bs-theme="dark"] .p-salary, html[data-bs-theme="dark"] .salary-text { color: #7ee2b8; }
html[data-bs-theme="dark"] .page-head .head-chip { background: rgba(255, 255, 255, .08); color: var(--ink); border-color: var(--line); }
html[data-bs-theme="dark"] .site-nav, html[data-bs-theme="dark"] .navbar.bg-white { background: rgba(19, 28, 25, .92) !important; border-color: var(--line) !important; }
html[data-bs-theme="dark"] .nav-link { color: var(--ink); }
html[data-bs-theme="dark"] img.logo-dark-invert { filter: brightness(0) invert(1); }
html[data-bs-theme="dark"] .wa-panel-body { background: var(--surface-2); }
html[data-bs-theme="dark"] .wa-item { background: var(--card); color: var(--ink); }
html[data-bs-theme="dark"] .office-map { background: var(--surface-2); }
html[data-bs-theme="dark"] .office-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8); }
html[data-bs-theme="dark"] .cmp-poster-btn { background: var(--card); }
html[data-bs-theme="dark"] ::selection { background: rgba(var(--accent-rgb), .45); color: #fff; }

html[data-bs-theme="dark"] .site-nav .nav-link, html[data-bs-theme="dark"] .form-label { color: var(--ink); }
html[data-bs-theme="dark"] .table > thead th { color: var(--muted); }
html[data-bs-theme="dark"] .chip-salary, html[data-bs-theme="dark"] .news-cat.cat-guide { background: rgba(16, 185, 129, .15); color: #86e5bf; }
html[data-bs-theme="dark"] .chip-open, html[data-bs-theme="dark"] .news-cat.cat-news, html[data-bs-theme="dark"] .receipt-status.status-applied { background: rgba(59, 130, 246, .16); color: #a5c4ff; }
html[data-bs-theme="dark"] .chip-benefit, html[data-bs-theme="dark"] .live-pill, html[data-bs-theme="dark"] .bg-soft-teal, html[data-bs-theme="dark"] .slot-card .seats { color: #86e5bf; }
html[data-bs-theme="dark"] .bg-soft-info, html[data-bs-theme="dark"] .bg-soft-sky, html[data-bs-theme="dark"] .badge-soft-info { background: rgba(14, 165, 233, .15); color: #8fd3f7; }
html[data-bs-theme="dark"] .bg-soft-success, html[data-bs-theme="dark"] .bg-soft-green, html[data-bs-theme="dark"] .badge-soft-success { background: rgba(16, 185, 129, .15); color: #86e5bf; }
html[data-bs-theme="dark"] .bg-soft-secondary, html[data-bs-theme="dark"] .badge-soft-light { color: #cbd5e1; }
html[data-bs-theme="dark"] .btn-wa { background: rgba(37, 211, 102, .12); color: #7ee8a8; border-color: rgba(37, 211, 102, .3); }


/* ---------- Campaign picture cards ---------- */
.cmp-tile { display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); color: var(--ink);
    box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; isolation: isolate; }
.cmp-tile:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(var(--brand-dark-rgb), .55); border-color: rgba(var(--brand-rgb), .25); color: var(--ink); }
.cmp-tile-media { position: relative; height: 178px; overflow: hidden; background: var(--brand-dark); }
.cmp-tile-media > img, .cmp-tile-media > .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.cmp-tile:hover .cmp-tile-media > img, .cmp-tile:hover .cmp-tile-media > .scene { transform: scale(1.06); }
.cmp-tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, transparent 35%, transparent 55%, rgba(0, 0, 0, .55) 100%); pointer-events: none; }
.cmp-tile-badges { position: absolute; top: .85rem; inset-inline-end: .85rem; display: flex; gap: .35rem; z-index: 1; }
.cmp-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700; color: #fff;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); }
.cmp-badge .pulse { width: 7px; height: 7px; }
.cmp-badge-gold { background: linear-gradient(135deg, var(--accent-light), var(--accent)); color: #2a1f05; border-color: transparent; }
.cmp-badge-muted { background: rgba(0, 0, 0, .35); }
.cmp-tile-country { position: absolute; bottom: .8rem; inset-inline-start: .9rem; z-index: 1; display: flex; align-items: center; gap: .55rem; color: #fff;
    font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.flag-badge { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 6px 14px -4px rgba(0, 0, 0, .5); flex-shrink: 0; background: #fff; }
.cmp-tile-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.35rem 1.35rem; }
.cmp-tile-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .35rem; line-height: 1.3; }
.lang-ur .cmp-tile-title { line-height: 1.9; letter-spacing: 0; }
.cmp-tile-sub { color: var(--muted); font-size: .9rem; margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-tile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: auto; }
.cmp-tile-stats > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .55rem .25rem; border-radius: 12px; background: var(--surface-2); }
.cmp-tile-stats i { color: var(--brand-text); font-size: .95rem; opacity: .8; }
.cmp-tile-stats b { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.2; color: var(--ink); }
.cmp-tile-stats span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.lang-ur .cmp-tile-stats span { text-transform: none; letter-spacing: 0; font-size: .72rem; }
.cmp-tile-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding: .7rem 1rem; border-radius: 12px; font-weight: 700;
    color: var(--brand-text); background: rgba(var(--brand-rgb), .07); transition: background .2s, color .2s; }
.cmp-tile:hover .cmp-tile-cta { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
html[data-bs-theme="dark"] .cmp-tile-cta { background: rgba(255, 255, 255, .06); }
@media (prefers-reduced-motion: reduce) { .cmp-tile, .cmp-tile:hover, .cmp-tile:hover .cmp-tile-media > * { transform: none; transition: none; } }


/* ---------- Employers page ---------- */
.emp-head { padding-bottom: 3.5rem; }
.emp-head .eyebrow i { color: var(--accent-light); }
.emp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.emp-stats > div { padding: .9rem .75rem; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.emp-stats b { display: block; font-family: var(--font-head); font-size: 1.7rem; line-height: 1.1; color: var(--accent-light); }
.emp-stats span { font-size: .78rem; color: rgba(255, 255, 255, .75); }
.emp-search { display: flex; gap: .6rem; padding: .6rem; margin-top: -2.4rem; position: relative; z-index: 2; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.emp-search .form-select { max-width: 220px; }
@media (max-width: 767.98px) { .emp-search { flex-wrap: wrap; } .emp-search .input-icon { flex: 1 1 100%; } .emp-search .form-select { max-width: none; flex: 1; } }
.emp-chips { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.emp-chips a { flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem .35rem .4rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .87rem; font-weight: 600; }
.emp-chips a:first-child { padding-inline-start: .85rem; }
.emp-chips a .flag-badge { width: 22px; height: 22px; box-shadow: 0 0 0 1px var(--line); }
.emp-chips a small { color: var(--muted); font-weight: 700; }
.emp-chips a:hover { border-color: rgba(var(--brand-rgb), .4); }
.emp-chips a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.emp-chips a.active small { color: var(--accent-light); }
.emp-card { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.emp-card:hover { transform: translateY(-5px); box-shadow: 0 24px 46px -24px rgba(var(--brand-dark-rgb), .5); border-color: rgba(var(--brand-rgb), .25); }
.emp-cover { position: relative; height: 84px; background:
    radial-gradient(160px 80px at 85% 0%, rgba(var(--accent-rgb), .45), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, var(--brand-2)); }
.emp-card:not(.is-hiring) .emp-cover { filter: saturate(.55); }
.emp-flag { position: absolute; top: .75rem; inset-inline-start: .85rem; }
.emp-flag .flag-badge { width: 28px; height: 28px; }
.emp-hiring { position: absolute; top: .75rem; inset-inline-end: .85rem; display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.emp-hiring .pulse { width: 7px; height: 7px; }
.emp-logo { width: 76px; height: 76px; margin: -38px auto 0; position: relative; z-index: 1; border-radius: 20px; display: grid; place-items: center; overflow: hidden;
    background: var(--card); border: 4px solid var(--card); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .35); font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; }
.emp-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.emp-logo span { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 14px; }
.emp-logo.h1 span { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.emp-logo.h2 span { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.emp-logo.h3 span { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.emp-logo.h4 span { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #5b21b6; }
.emp-logo.h5 span { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #9f1239; }
.emp-logo.h6 span { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #155e75; }
.emp-body { display: flex; flex-direction: column; flex: 1; padding: .8rem 1.2rem 1.15rem; text-align: center; }
.emp-name { font-size: 1.05rem; font-weight: 800; margin: 0 0 .2rem; line-height: 1.35; }
.emp-name .bi { color: var(--teal); font-size: .9rem; vertical-align: 1px; }
.emp-place { font-size: .82rem; color: var(--muted); margin-bottom: .55rem; }
.emp-about { font-size: .86rem; color: var(--muted); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.emp-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .85rem; border-top: 1px dashed var(--line); }
.emp-jobs { display: flex; align-items: baseline; gap: .35rem; text-align: start; }
.emp-jobs b { font-family: var(--font-head); font-size: 1.35rem; color: var(--brand-text); }
.emp-jobs span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.emp-jobs.none b { color: var(--muted); }
.emp-icon-btn { position: relative; z-index: 2; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-text); border: 1px solid var(--line); }
.emp-icon-btn:hover { border-color: var(--brand); }
.emp-card:hover .emp-go { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.emp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; padding: 2rem; border-radius: 24px; color: #fff;
    background: radial-gradient(400px 200px at 100% 0%, rgba(var(--accent-rgb), .35), transparent 60%), linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.emp-cta-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; background: rgba(255, 255, 255, .12); color: var(--accent-light); }
html[data-bs-theme="dark"] .emp-logo.h1 span, html[data-bs-theme="dark"] .emp-logo.h2 span, html[data-bs-theme="dark"] .emp-logo.h3 span,
html[data-bs-theme="dark"] .emp-logo.h4 span, html[data-bs-theme="dark"] .emp-logo.h5 span, html[data-bs-theme="dark"] .emp-logo.h6 span { filter: saturate(.85) brightness(.9); }


/* ---------- Jobs page ---------- */
.jobs-head { padding-bottom: 3.5rem; }
.jobs-search { display: grid; grid-template-columns: 1fr 260px auto; gap: .6rem; padding: .7rem; margin-top: -2.4rem; position: relative; z-index: 2;
    border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.jobs-search-sel { position: relative; }
.jobs-search-sel > i { position: absolute; inset-inline-start: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); z-index: 1; pointer-events: none; }
.jobs-search-sel .form-select { padding-inline-start: 2.5rem; }
.jobs-search-btn { white-space: nowrap; }
.jobs-more { grid-column: 1 / -1; }
.jobs-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--brand-text); padding: .1rem .3rem; }
.jobs-more summary::-webkit-details-marker { display: none; }
.jobs-more[open] summary { color: var(--ink); }
@media (max-width: 767.98px) {
    .jobs-search { grid-template-columns: 1fr auto; }
    .jobs-search-q { grid-column: 1 / -1; }
    .jobs-search-btn span { display: none; }
}
.trade-chips { display: flex; gap: .45rem; overflow-x: auto; padding: 1.1rem 0 .3rem; scrollbar-width: thin; }
.trade-chips a { flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line);
    background: var(--card); color: var(--ink); font-size: .86rem; font-weight: 600; transition: border-color .2s, background .2s; }
.trade-chips a i { color: var(--brand-text); }
.trade-chips a small { color: var(--muted); font-weight: 700; }
.trade-chips a:hover { border-color: rgba(var(--brand-rgb), .45); }
.trade-chips a.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.trade-chips a.active i, .trade-chips a.active small { color: var(--accent-light); }
.jobs-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: 1.1rem 0 1.25rem; }
.jobs-count b { font-family: var(--font-head); font-size: 1.1rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.active-filters a { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .4rem .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: rgba(var(--brand-rgb), .08); color: var(--brand-text); border: 1px solid rgba(var(--brand-rgb), .18); }
.active-filters a:hover { background: rgba(var(--brand-rgb), .14); }
.active-filters a.clear { background: none; border-color: transparent; color: var(--muted); text-decoration: underline; }
.jobs-sort { border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; white-space: nowrap; }
.jobs-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.jobs-help-item { display: flex; gap: .9rem; padding: 1.15rem 1.25rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.jobs-help-item > i { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.jobs-help-item b { display: block; margin-bottom: .15rem; }
.jobs-help-item span { font-size: .86rem; color: var(--muted); }

/* ---------- Job card (jc) ---------- */
.jc { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 22px; background: var(--card); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.jc:hover { transform: translateY(-5px); box-shadow: 0 24px 46px -24px rgba(var(--brand-dark-rgb), .5); border-color: rgba(var(--brand-rgb), .25); }
.jc.is-featured { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .35), var(--shadow-sm); }
.jc-top { position: relative; height: 74px; display: flex; align-items: flex-start; justify-content: space-between; padding: .8rem .9rem;
    background: radial-gradient(160px 80px at 90% 0%, rgba(var(--accent-rgb), .4), transparent 70%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 12px),
        linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, var(--brand-2)); }
.jc.is-closed .jc-top { filter: grayscale(.7); }
.jc-trade { position: absolute; inset-inline-start: 1.15rem; bottom: -26px; width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center;
    font-size: 1.5rem; color: var(--brand-text); background: var(--card); border: 4px solid var(--card); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .4); }
.jc-trade i { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 12px; background: rgba(var(--brand-rgb), .09); }
.jc-badges { margin-inline-start: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.jc-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26); backdrop-filter: blur(6px); }
.jc-badge .flag-badge { width: 16px; height: 16px; }
.jc-badge.gold { background: var(--accent); border-color: var(--accent); color: #2a1f05; }
.jc-badge.new { background: #1ec98f; border-color: #1ec98f; color: #053b29; }
.jc-body { flex: 1; display: flex; flex-direction: column; padding: 2.1rem 1.2rem 1.1rem; }
.jc-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .2rem; }
.jc-title { font-size: 1.12rem; font-weight: 800; line-height: 1.3; margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jc-title a { color: var(--ink); }
.jc-title a::after { content: ""; position: absolute; inset: 0; }
.jc-title a:hover { color: var(--brand-text); }
.jc-company { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--muted); min-width: 0; margin-bottom: .9rem; }
.jc-logo { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; overflow: hidden; display: grid; place-items: center; font-size: .62rem; font-weight: 800;
    background: var(--surface-2); color: var(--brand-text); }
.jc-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.jc-verified { color: var(--teal); font-size: .85rem; }
.jc-salary { display: flex; align-items: center; gap: .45rem; padding: .6rem .8rem; border-radius: 14px; margin-bottom: .8rem;
    background: rgba(var(--brand-rgb), .06); border: 1px solid rgba(var(--brand-rgb), .12); }
.jc-salary i { color: var(--brand-text); font-size: 1.1rem; }
.jc-salary b { font-family: var(--font-head); font-size: 1.2rem; color: var(--brand-text); }
.jc-salary span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.jc-facts { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .84rem; color: var(--muted); margin-bottom: .7rem; }
.jc-facts i { color: var(--brand-text); opacity: .8; }
.jc-perks { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.jc-perks span { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
    background: rgba(var(--accent-rgb), .14); color: var(--accent-dark); }
.jc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.jc-deadline { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.jc-deadline.urgent { color: #c2410c; }
.jc-deadline.closed { color: #b91c1c; }
.jc-actions { position: relative; z-index: 2; display: flex; gap: .4rem; }
.jc-btn-ghost { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-text); border: 1px solid var(--line); }
.jc-btn-ghost:hover { border-color: var(--brand); color: var(--brand-text); }
.jc-btn-apply { display: inline-flex; align-items: center; gap: .4rem; height: 38px; padding: 0 1rem; border-radius: 12px; font-weight: 700; font-size: .88rem; color: #2a1f05;
    background: linear-gradient(135deg, var(--accent-light), var(--accent)); box-shadow: 0 8px 18px -10px rgba(var(--accent-rgb), .9); transition: transform .2s, box-shadow .2s; }
.jc-btn-apply:hover { color: #2a1f05; transform: translateX(2px); box-shadow: 0 10px 22px -8px rgba(var(--accent-rgb), .9); }
[dir="rtl"] .jc-btn-apply:hover { transform: translateX(-2px); }
html[data-bs-theme="dark"] .jc-deadline.urgent { color: #fb923c; }
html[data-bs-theme="dark"] .jc-perks span { color: var(--accent-light); }
html[data-bs-theme="dark"] .jc-kicker { color: var(--accent-light); }


/* ---------- Browse by trade tiles ---------- */
.trade-tile { --tc: var(--brand); --tb: rgba(var(--brand-rgb), .1); position: relative; height: 100%; display: flex; align-items: center; gap: .9rem; padding: 1.05rem 1.1rem;
    border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink); overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s; }
.trade-tile::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--tc); opacity: 0; transition: opacity .22s; }
.trade-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tc) 35%, transparent); box-shadow: 0 18px 34px -20px color-mix(in srgb, var(--tc) 70%, transparent); color: var(--ink); }
.trade-tile:hover::before { opacity: 1; }
.trade-ico { width: 50px; height: 50px; flex-shrink: 0; border-radius: 15px; display: grid; place-items: center; font-size: 1.35rem; color: var(--tc); background: var(--tb); transition: background .22s, color .22s; }
.trade-tile:hover .trade-ico { background: var(--tc); color: #fff; }
.trade-txt { min-width: 0; flex: 1; }
.trade-name { display: block; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trade-count { display: inline-block; margin-top: .25rem; padding: .05rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--tc); background: var(--tb); }
.trade-go { color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity .22s, transform .22s; }
.trade-tile:hover .trade-go { opacity: 1; transform: none; color: var(--tc); }
.trade-tile.t1 { --tc: #0f766e; --tb: rgba(15, 118, 110, .1); }
.trade-tile.t2 { --tc: #1d4ed8; --tb: rgba(29, 78, 216, .09); }
.trade-tile.t3 { --tc: #b45309; --tb: rgba(180, 83, 9, .1); }
.trade-tile.t4 { --tc: #7c3aed; --tb: rgba(124, 58, 237, .09); }
.trade-tile.t5 { --tc: #be123c; --tb: rgba(190, 18, 60, .08); }
.trade-tile.t6 { --tc: #0369a1; --tb: rgba(3, 105, 161, .09); }
html[data-bs-theme="dark"] .trade-tile.t1 { --tc: #2dd4bf; } html[data-bs-theme="dark"] .trade-tile.t2 { --tc: #93b4ff; }
html[data-bs-theme="dark"] .trade-tile.t3 { --tc: #fbbf24; } html[data-bs-theme="dark"] .trade-tile.t4 { --tc: #c4b5fd; }
html[data-bs-theme="dark"] .trade-tile.t5 { --tc: #fda4af; } html[data-bs-theme="dark"] .trade-tile.t6 { --tc: #7dd3fc; }
@media (max-width: 575.98px) { .trade-tile { flex-direction: column; align-items: flex-start; gap: .6rem; } .trade-go { display: none; } }


/* ---------- Case file (admin) ---------- */
.cf-list { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .5rem; }
.cf-item { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s, opacity .2s, background .3s; }
.cf-item[draggable="true"] { cursor: grab; }
.cf-item:hover { border-color: rgba(var(--brand-rgb), .3); }
.cf-item.dragging { opacity: .45; border-style: dashed; }
.cf-item.moved { background: rgba(var(--accent-rgb), .12); }
.cf-item.off { opacity: .55; }
.cf-item.off .cf-txt b { text-decoration: line-through; }
.cf-item.locked { background: var(--surface-2); }
.cf-grip { color: var(--muted); font-size: 1.1rem; cursor: grab; }
.cf-num { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--brand); color: #fff; }
.cf-item.off .cf-num { background: var(--line); color: var(--muted); }
.cf-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; background: rgba(var(--brand-rgb), .08); color: var(--brand-text); }
.cf-ico.cover { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.cf-ico.cv { background: rgba(var(--accent-rgb), .18); color: var(--accent-dark); }
.cf-txt { min-width: 0; flex: 1; }
.cf-txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-txt small { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.cf-type { padding: 0 .45rem; border-radius: 6px; font-size: .68rem; font-weight: 800; }
.cf-type.pdf { background: #fde2e2; color: #b42318; }
.cf-type.img { background: #e0f2fe; color: #0369a1; }
.cf-type.bad { background: #fef3c7; color: #92400e; }
.cf-actions { display: flex; align-items: center; gap: .25rem; }
.cf-actions .form-check-input { width: 2.3em; height: 1.2em; cursor: pointer; }
.cf-lock { color: var(--muted); }
.cf-side { position: sticky; top: 84px; }
.cf-preview { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .5rem; }
.cf-mini { aspect-ratio: 3 / 4; border-radius: 10px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .4rem; text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--card); overflow: hidden; }
.cf-mini.cover { justify-content: flex-start; padding: 0; background: linear-gradient(var(--brand), var(--brand-2)) top / 100% 48% no-repeat, var(--card); }
.cf-mini.cover span { color: #fff; padding: .6rem .4rem .2rem; font-size: .7rem; line-height: 1.2; max-height: 3.6em; overflow: hidden; }
.cf-mini.cover b { margin-top: auto; padding: .4rem; color: var(--ink); font-size: .72rem; }
.cf-mini i { font-size: 1.3rem; color: var(--brand-text); }
@media (max-width: 575.98px) { .cf-grip { display: none; } .cf-item { flex-wrap: wrap; } .cf-actions { width: 100%; justify-content: flex-end; } }

/* Anti-spam field: off-screen (not display:none, so browsers do not treat it as a normal field to fill). */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }


/* ---------- Completion (profile / CV) ---------- */
.ring.ring-success { background: conic-gradient(#16a34a calc(var(--p) * 1%), var(--line) 0); }
.ring.ring-warning { background: conic-gradient(#d97706 calc(var(--p) * 1%), var(--line) 0); }
.ring.ring-danger { background: conic-gradient(#dc2626 calc(var(--p) * 1%), var(--line) 0); }
.ring.ring-success > div { color: #15803d; } .ring.ring-warning > div { color: #b45309; } .ring.ring-danger > div { color: #b91c1c; }
.pct { position: relative; width: 74px; height: 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.pct i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; }
.pct span { position: relative; display: block; text-align: center; font-size: .7rem; font-weight: 800; line-height: 16px; color: var(--ink); }
.pct-success i { background: rgba(22, 163, 74, .35); } .pct-warning i { background: rgba(217, 119, 6, .35); } .pct-danger i { background: rgba(220, 38, 38, .3); }

/* ---------- Bulk selection bar ---------- */
.bulk-bar { position: sticky; bottom: 14px; z-index: 20; display: flex; align-items: center; gap: .6rem; margin-top: .8rem; padding: .65rem .9rem;
    border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); }
.bulk-bar[hidden] { display: none; }
.bulk-count b { font-size: 1.1rem; color: var(--accent-light); }

/* ---------- Download options ---------- */
.dl-label { font-weight: 700; font-size: .85rem; margin-bottom: .45rem; }
.dl-formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.dl-format input, .dl-template input, .dl-cv input { position: absolute; opacity: 0; pointer-events: none; }
.dl-format span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: .7rem .5rem; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; height: 100%; background: var(--card); }
.dl-format i { font-size: 1.4rem; color: var(--brand-text); }
.dl-format small, .dl-template small, .dl-cv small { color: var(--muted); font-size: .72rem; line-height: 1.3; }
.dl-format input:checked + span, .dl-template input:checked + span, .dl-cv input:checked + span { border-color: var(--brand); background: rgba(var(--brand-rgb), .06); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12); }
.dl-format input:focus-visible + span, .dl-template input:focus-visible + span, .dl-cv input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.dl-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .45rem; }
.dl-template span { display: flex; flex-direction: column; padding: .5rem .7rem; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; height: 100%; background: var(--card); }
.dl-template b, .dl-cv b { font-size: .84rem; }
.dl-cvs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
@media (max-width: 575.98px) { .dl-cvs { grid-template-columns: repeat(2, 1fr); } .dl-formats { grid-template-columns: 1fr; } }
.dl-cv span { display: flex; flex-direction: column; gap: .2rem; padding: .5rem; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; height: 100%; background: var(--card); }
.cv-thumb { display: block; position: relative; aspect-ratio: 3 / 4; border-radius: 6px; background: #fff; border: 1px solid var(--line); overflow: hidden; margin-bottom: .25rem; }
.cv-thumb em { position: absolute; display: block; border-radius: 2px; background: #d7dfdb; }
.cv-thumb.classic::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 26%; background: linear-gradient(135deg, #064e3b, #0f7a5f); }
.cv-thumb.classic::after { content: ""; position: absolute; top: 6%; left: 8%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.cv-thumb.classic em:nth-child(1) { top: 34%; left: 8%; width: 40%; height: 5%; background: #0f7a5f; }
.cv-thumb.classic em:nth-child(2) { top: 45%; left: 8%; width: 84%; height: 4%; }
.cv-thumb.classic em:nth-child(3) { top: 54%; left: 8%; width: 70%; height: 4%; }
.cv-thumb.classic em:nth-child(4) { top: 66%; left: 8%; width: 84%; height: 4%; }
.cv-thumb.modern::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 32%; background: linear-gradient(#064e3b, #0f7a5f); }
.cv-thumb.modern::after { content: ""; position: absolute; top: 6%; left: 7%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.cv-thumb.modern em:nth-child(1) { top: 8%; left: 40%; width: 50%; height: 6%; background: #11211c; }
.cv-thumb.modern em:nth-child(2) { top: 20%; left: 40%; width: 52%; height: 4%; }
.cv-thumb.modern em:nth-child(3) { top: 30%; left: 40%; width: 44%; height: 4%; }
.cv-thumb.modern em:nth-child(4) { top: 40%; left: 40%; width: 52%; height: 4%; }
.cv-thumb.gulf::before { content: ""; position: absolute; top: 5%; left: 6%; right: 6%; height: 8%; background: #064e3b; }
.cv-thumb.gulf::after { content: ""; position: absolute; top: 17%; right: 6%; width: 22%; height: 22%; border: 1px solid #9aa8a2; background: #eef4f1; }
.cv-thumb.gulf em { border: 1px solid #b9c5c0; background: transparent; }
.cv-thumb.gulf em:nth-child(1) { top: 17%; left: 6%; width: 62%; height: 22%; }
.cv-thumb.gulf em:nth-child(2) { top: 44%; left: 6%; right: 6%; height: 14%; }
.cv-thumb.gulf em:nth-child(3) { top: 62%; left: 6%; right: 6%; height: 14%; }
.cv-thumb.gulf em:nth-child(4) { top: 80%; left: 6%; right: 6%; height: 12%; }
.cv-thumb.compact::after { content: ""; position: absolute; top: 5%; right: 7%; width: 16%; height: 16%; background: #c9c9c9; }
.cv-thumb.compact em { background: #bdbdbd; height: 3%; left: 7%; }
.cv-thumb.compact em:nth-child(1) { top: 7%; width: 46%; height: 5%; background: #222; }
.cv-thumb.compact em:nth-child(2) { top: 26%; width: 86%; }
.cv-thumb.compact em:nth-child(3) { top: 34%; width: 86%; }
.cv-thumb.compact em:nth-child(4) { top: 42%; width: 60%; }
.dl-cats { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; counter-reset: cat; }
.dl-cats li { display: flex; align-items: center; gap: .55rem; padding: .4rem .55rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: grab; }
.dl-cats li.dragging { opacity: .45; border-style: dashed; }
.dl-cats li .bi:not(.bi-grip-vertical):not(.bi-arrow-up):not(.bi-arrow-down) { color: var(--brand-text); }
.dl-cat-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; background: var(--brand); }
.dl-cat-num::before { counter-increment: cat; content: counter(cat); }


/* ---------- Reports ---------- */
.report-tile { position: relative; height: 100%; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 18px;
    background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.report-tile:hover { transform: translateY(-3px); color: var(--ink); border-color: rgba(var(--brand-rgb), .3); box-shadow: 0 18px 34px -22px rgba(var(--brand-dark-rgb), .6); }
.report-tile b { display: block; }
.report-tile small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.report-ico { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.report-go { margin-inline-start: auto; color: var(--muted); opacity: 0; transition: opacity .2s; }
.report-tile:hover .report-go { opacity: 1; color: var(--brand-text); }
.report-table { max-height: 640px; }
.report-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); white-space: nowrap; font-size: .78rem; }
.report-table td { font-size: .84rem; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
@media print {
    .report-table { max-height: none; }
    .filter-bar, .sidebar, .topbar { display: none !important; }
}


/* ---------- Table tools (bar above every staff table) ---------- */
.grid-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem .75rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.grid-search { width: 240px; max-width: 100%; }
.grid-search .form-control { padding-inline-start: 2.1rem; border-radius: 10px; }
.grid-search > i { inset-inline-start: .75rem; font-size: .85rem; }
.grid-buttons { display: flex; flex-wrap: wrap; gap: .3rem; }
.grid-buttons .btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; }
.grid-buttons .btn:hover, .grid-buttons .btn.active { border-color: var(--brand); color: var(--brand-text); }
.grid-buttons .btn.btn-success { background: #16a34a; border-color: #16a34a; color: #fff; }
.grid-cols { min-width: 220px; max-height: 320px; overflow: auto; }
.grid-cols .form-check { padding: .25rem .25rem .25rem 1.9rem; margin: 0; }
.grid-empty { padding: 1.25rem; text-align: center; }
@media (max-width: 767.98px) { .grid-buttons .btn span { display: none; } .grid-search { width: 100%; } .grid-count { order: 3; } }
.table-card.grid-full { position: fixed; inset: 12px; z-index: 1080; margin: 0; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.table-card.grid-full .table-responsive { flex: 1; overflow: auto; }
.table-card.grid-full thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); }
body.grid-full-open { overflow: hidden; }
body.grid-full-open::after { content: ""; position: fixed; inset: 0; z-index: 1070; background: rgba(0, 0, 0, .45); }
@media print {
    body.print-one-grid .table-card:not(.print-this), body.print-one-grid .filter-bar, body.print-one-grid .bulk-bar, body.print-one-grid nav.pager,
    body.print-one-grid .pagination, body.print-one-grid .row.g-3 { display: none !important; }
    .table-card td:last-child .btn, .table-card td:last-child .btn-group, .table-card input[type=checkbox] { display: none !important; }
}


/* ---------- Departments & staff ---------- */
.form-actions { position: sticky; bottom: 0; z-index: 15; display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.5rem; padding: .8rem 1rem;
    background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .3); }
.dept-card { --dc: var(--brand); position: relative; height: 100%; display: flex; flex-direction: column; padding: 1.1rem; border-radius: 20px; background: var(--card);
    border: 1px solid var(--line); border-top: 4px solid var(--dc); transition: transform .2s, box-shadow .2s; color: var(--ink); }
.dept-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .45); }
.dept-card.off { opacity: .6; }
.dept-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.dept-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; color: #fff; background: var(--dc); }
.dept-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: auto; margin-bottom: .8rem; }
.dept-stats a { display: flex; flex-direction: column; align-items: center; padding: .5rem; border-radius: 12px; background: var(--surface-2); color: var(--ink); }
.dept-stats a:hover { background: color-mix(in srgb, var(--dc) 12%, var(--surface-2)); }
.dept-stats b { font-family: var(--font-head); font-size: 1.2rem; color: var(--dc); line-height: 1.2; }
html[data-bs-theme="dark"] .dept-stats b { color: color-mix(in srgb, var(--dc) 55%, #fff); }
.dept-stats span { font-size: .72rem; color: var(--muted); }
.dept-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.dept-new { align-items: center; justify-content: center; text-align: center; gap: .35rem; border: 2px dashed var(--line); border-top-width: 2px; min-height: 220px; }
.dept-new i { font-size: 2rem; color: var(--brand-text); }
.dept-new:hover { border-color: var(--brand); }
.dept-preview { --dc: var(--brand); display: flex; align-items: center; gap: .7rem; padding: .7rem; border-radius: 14px; background: color-mix(in srgb, var(--dc) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--dc) 30%, transparent); }
.dept-pill { --dc: var(--brand); display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
    color: var(--dc); background: color-mix(in srgb, var(--dc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--dc) 30%, transparent); }
html[data-bs-theme="dark"] .dept-pill { color: color-mix(in srgb, var(--dc) 50%, #fff); }
.swatches, .icon-picks { display: flex; flex-wrap: wrap; gap: .4rem; }
.swatch-pick input, .icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.swatch-pick span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px transparent; }
.swatch-pick input:checked + span { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--c); }
.icon-pick span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); cursor: pointer; background: var(--card); color: var(--muted); }
.icon-pick input:checked + span { border-color: var(--brand); color: var(--brand-text); background: rgba(var(--brand-rgb), .08); }
.icon-pick input:focus-visible + span, .swatch-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.staff-card { overflow: hidden; position: sticky; top: 84px; }
.staff-cover { --dc: var(--brand); height: 78px; background: linear-gradient(135deg, var(--dc), color-mix(in srgb, var(--dc) 60%, #000)); }
.staff-photo { width: 104px; height: 104px; margin-top: -52px; border-radius: 50%; object-fit: cover; border: 4px solid var(--card); background: var(--surface-2); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .4); }
.staff-facts > div { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.staff-facts dt { font-weight: 500; color: var(--muted); }
.staff-facts dd { margin: 0; font-weight: 600; text-align: end; }
.staff-tabs { gap: .35rem; flex-wrap: wrap; }
.staff-tabs .nav-link { border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; }
.staff-tabs .nav-link.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
/* Feature picker */
.fp-group { height: 100%; padding: .75rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.fp-group-head { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .5rem; cursor: pointer; }
.fp-item { display: flex; align-items: flex-start; gap: .55rem; padding: .55rem .6rem; margin-bottom: .35rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.fp-item:last-child { margin-bottom: 0; }
.fp-item .form-check-input { margin-top: .2rem; flex-shrink: 0; }
.fp-item.on { border-color: rgba(var(--brand-rgb), .45); background: rgba(var(--brand-rgb), .05); }
.fp-item.locked { opacity: .55; cursor: not-allowed; }
.fp-ico { color: var(--brand-text); font-size: 1rem; margin-top: .05rem; }
.fp-text { flex: 1; min-width: 0; }
.fp-text b { display: block; font-size: .86rem; }
.fp-text small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.3; }
.fp-badges { display: flex; flex-direction: column; gap: .2rem; align-items: flex-end; }
fieldset:disabled .fp-item { cursor: not-allowed; }

/* ---------- Theme menu ---------- */
.theme-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--brand-text); font-size: 1.05rem; padding: 0; }
.theme-btn:hover { border-color: rgba(var(--brand-rgb), .5); }
.topbar .theme-btn { width: 30px; height: 30px; font-size: .9rem; background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.dash-topbar .theme-btn { width: 34px; height: 34px; }
.theme-menu { width: 290px; padding: .9rem; border-radius: 16px; }
.theme-menu .tm-label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.tm-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin-bottom: .9rem; }
.tm-modes button { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 10px; padding: .45rem .25rem; font-size: .8rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.tm-modes button i { font-size: 1.05rem; }
.tm-modes button.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(var(--brand-rgb), .25); color: var(--brand-text); }
.tm-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; }
.tm-swatches > div { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.tm-swatches button { display: block; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); padding: 0; position: relative; cursor: pointer; transition: transform .12s; }
.tm-swatches button:hover { transform: scale(1.08); }
.tm-swatches button.active { box-shadow: 0 0 0 2px var(--ink); }
.tm-swatches button.active::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; }
.tm-swatches span { display: block; font-size: .65rem; text-align: center; color: var(--muted); margin-top: .2rem; }


/* ============================================================
   Mobile and finishing touches
   ============================================================ */
:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .55); outline-offset: 2px; }
.btn, .form-control, .form-select, .card, .dropdown-menu { transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s; }
.card { border-color: var(--line); }
img { max-width: 100%; }

/* Phone bottom bar */
.mobile-dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 1040; display: grid; grid-template-columns: repeat(5, 1fr);
    background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: saturate(180%) blur(14px); border-top: 1px solid var(--line);
    padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .35); }
.mobile-dock a { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .3rem 0; border-radius: 12px; color: var(--muted); font-size: .7rem; font-weight: 600; line-height: 1.2; text-align: center; }
.mobile-dock a i { font-size: 1.25rem; }
.mobile-dock a.active { color: var(--brand-text); }
.mobile-dock a.active i { transform: translateY(-1px); }
.mobile-dock .dock-main i { width: 44px; height: 44px; margin-top: -1.3rem; border-radius: 50%; display: grid; place-items: center; color: #2a1f05;
    background: linear-gradient(135deg, var(--accent-light), var(--accent)); box-shadow: 0 8px 18px -8px rgba(var(--accent-rgb), .9); border: 3px solid var(--card); }
.lang-ur .mobile-dock a { font-size: .66rem; line-height: 1.6; }
@media (max-width: 991.98px) {
    body.public { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .whatsapp-fab:not(.wa-widget .whatsapp-fab), .wa-widget { inset-block-end: calc(80px + env(safe-area-inset-bottom)); }
    .whatsapp-fab { padding: .7rem .85rem; }
}
@media (max-width: 575px) {
    .container { padding-inline: 1rem; }
    h1, .h1 { font-size: 1.65rem; }
    .section-title { font-size: 1.45rem; }
    .btn-lg { padding: .7rem 1.1rem; }
    .topbar { font-size: .78rem; }
    .topbar .topbar-link { display: none; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .cmp-card { border-radius: 20px; }
    .cmp-interview { flex-direction: row; }
    .info-tiles { grid-template-columns: 1fr 1fr; }
    .how-steps { font-size: .74rem; }
}

/* Sticky Apply bar on job pages (phones) */
.apply-bar { position: fixed; inset-inline: .6rem; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 1039; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .6rem .6rem .6rem 1rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .45); }
@media (max-width: 991.98px) { body.public:has(.apply-bar) { padding-bottom: calc(150px + env(safe-area-inset-bottom)); } body:has(.apply-bar) .wa-widget, body:has(.apply-bar) .whatsapp-fab:not(.wa-widget .whatsapp-fab) { inset-block-end: calc(150px + env(safe-area-inset-bottom)); } }

/* Application steps on phones: only the current step keeps its name */
@media (max-width: 575px) {
    .stepper-list li:not(.current) .lbl { display: none; }
    .stepper-list li .dot { width: 34px; height: 34px; font-size: .85rem; }
    .wizard-actions { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); background: var(--card); margin-inline: -1.25rem; padding: .9rem 1.25rem; z-index: 5; box-shadow: 0 -12px 24px -20px rgba(0, 0, 0, .5); }
    .wizard-actions > div { width: 100%; }
    .wizard-actions > div .btn { flex: 1 1 100%; }
}

/* Passport skip and document upload */
.skip-note { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem 1rem; border-radius: 12px; background: rgba(var(--accent-rgb), .12); color: var(--ink); font-size: .9rem; margin-bottom: 1.25rem; }
.skip-note i { color: var(--accent-dark); font-size: 1.1rem; }
.doc-safe { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); padding: .55rem .85rem; border-radius: 10px; background: var(--surface-2); }
.doc-safe i { color: var(--teal); font-size: 1.1rem; }
.doc-item { cursor: default; }
.doc-actions { display: flex; flex-direction: column; gap: .4rem; flex-shrink: 0; }
.doc-actions .btn { white-space: nowrap; cursor: pointer; }
.doc-item.picked { border-style: solid; border-color: var(--teal); }
.doc-item.error { border-color: #ef4444; }
.doc-item.busy { opacity: .75; }
.doc-preview { display: block; max-width: 140px; max-height: 110px; margin-top: .5rem; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
@media (max-width: 575px) {
    .doc-item { flex-wrap: wrap; }
    .doc-item .doc-text { flex: 1 1 calc(100% - 4rem); }
    .doc-actions { flex-direction: row; width: 100%; }
    .doc-actions .btn { flex: 1; }
}
.doc-mini .btn { cursor: pointer; }
.voice-text { margin-top: .5rem; padding: .6rem .8rem; border-radius: 10px; background: var(--surface-2); line-height: 1.8; }
.voice-script { padding: .75rem 1rem; border-radius: 12px; background: var(--surface-2); line-height: 1.9; }
[data-record].recording { animation: rec-pulse 1s infinite; }
@keyframes rec-pulse { 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, .25); } }
html[data-bs-theme="dark"] .doc-item { border-color: #34443e; }
html[data-bs-theme="dark"] .doc-item.picked { border-color: var(--teal); }

@media print {
    .dash-sidebar, .dash-topbar, .no-print, .alert { display: none !important; }
    .dash-content { padding: 0 !important; }
    body { background: var(--card); }
    .cv-sheet { box-shadow: none; border-radius: 0; }
    .cv-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Hide empty validation summaries (they carry alert classes). */
.validation-summary-valid { display: none !important; }

/* ============================================================
   Step-by-step application (wizard)
   ============================================================ */
.wizard-head, .wizard-card { width: calc(100% - 2rem); max-width: 780px; margin-inline: auto; }
.wizard-head { margin-top: 2rem; margin-bottom: 1rem; }
.wizard-campaign { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; color: var(--brand-text); font-weight: 700; font-size: .9rem; margin-bottom: .6rem; }
.wizard-campaign .flag { font-size: 1.3rem; }
.wizard-job { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1.2rem; margin-bottom: 1.2rem; }
.stepper { position: relative; }
.stepper-track { position: absolute; inset-inline: 22px; top: 21px; height: 3px; background: var(--surface-2); border-radius: 3px; }
.stepper-fill { height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--accent)); border-radius: 3px; transition: width .3s; }
[dir="rtl"] .stepper-fill { margin-inline-start: 0; }
.stepper-list { position: relative; list-style: none; padding: 0; margin: 0; display: flex; justify-content: space-between; }
.stepper-list li { display: flex; flex-direction: column; align-items: center; gap: .35rem; flex: 1 1 0; min-width: 0; }
.stepper-list .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid #d6ddd9; color: #8a9893; font-size: 1.05rem; transition: all .2s; }
.stepper-list .lbl { font-size: .75rem; color: var(--muted); font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stepper-list li.done .dot { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.stepper-list li.current .dot { background: var(--accent); border-color: var(--accent); color: #2a1f05; box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .22); }
.stepper-list li.current .lbl { color: var(--ink); }
.stepper-count { display: none; text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); margin-top: .5rem; }
@media (max-width: 575px) {
    .stepper-list .lbl { display: none; }
    .stepper-list .dot { width: 34px; height: 34px; font-size: .9rem; }
    .stepper-track { top: 16px; inset-inline: 17px; }
    .stepper-count { display: block; }
}
.wizard-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow-sm); margin-bottom: 3rem; }
@media (max-width: 575px) { .wizard-card { padding: 1.25rem; border-radius: 18px; } }
.wizard-q { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .35rem; }
.lang-ar .wizard-q, .lang-ur .wizard-q { letter-spacing: 0; }
.wizard-hint { color: var(--muted); margin-bottom: 1.5rem; }
.wizard-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem; background: var(--gold-soft); color: var(--accent-dark); }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.wizard-actions .btn-lg { min-width: 12rem; }
@media (max-width: 575px) { .wizard-actions { flex-direction: column-reverse; align-items: stretch; } .wizard-actions .btn-lg { min-width: 0; } }
.phone-input .form-select { border-start-end-radius: 0; border-end-end-radius: 0; background-color: var(--surface-2); }
.pin-input { letter-spacing: .5em; font-size: 1.6rem; font-weight: 700; max-width: 16rem; margin-inline: auto; }
.confirm-check { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem .9rem 2.6rem; }
[dir="rtl"] .confirm-check { padding: .9rem 2.6rem .9rem 1rem; }
.req-box { background: var(--gold-soft); border: 1px solid #ecdfbd; border-radius: 16px; padding: 1.1rem 1.25rem; }
.req-title { font-weight: 700; margin-bottom: .6rem; color: #6b4e0e; }

.choice-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; flex: 1 1 140px; cursor: pointer; margin: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1rem; border: 2px solid #dbe2de; border-radius: 14px; font-weight: 600; transition: all .15s; }
.choice input:checked + span { border-color: var(--brand); background: rgba(var(--brand-rgb), .06); color: var(--brand-text); }
.choice input:focus-visible + span { outline: 3px solid rgba(var(--accent-rgb), .5); outline-offset: 2px; }

.doc-list { display: flex; flex-direction: column; gap: .75rem; }
.doc-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 2px dashed #d6ddd9; border-radius: 16px; cursor: pointer; margin: 0; transition: all .15s; }
.doc-item:hover { border-color: var(--brand-2); background: var(--surface-2); }
.doc-item.done { border-style: solid; border-color: rgba(var(--teal-rgb), .4); background: var(--surface-2); }
.doc-item.picked { border-style: solid; border-color: var(--accent); background: #fffbf1; }
.doc-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: var(--surface-2); color: var(--brand-text); flex-shrink: 0; }
.doc-item.done .doc-icon { background: var(--brand-2); color: #fff; }
.doc-text { flex: 1 1 auto; min-width: 0; }

.pick-block { margin-bottom: 1.75rem; }
.pick-title { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin-bottom: .8rem; }
.pick-title .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: .8rem; }
.office-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.office-card, .slot-card, .day-pill { color: var(--ink); border: 2px solid #dbe2de; background: var(--card); transition: all .15s; }
.office-card { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: 16px; }
.office-card:hover, .slot-card:hover, .day-pill:hover { border-color: var(--brand-2); color: var(--ink); }
.office-card.selected, .slot-card.selected, .day-pill.selected { border-color: var(--brand); background: rgba(var(--brand-rgb), .05); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .1); }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b8c4be; flex-shrink: 0; margin-top: .15rem; }
.selected .radio-dot { border: 6px solid var(--brand); }
.day-strip { display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x mandatory; }
.day-pill { flex: 0 0 auto; width: 72px; text-align: center; border-radius: 16px; padding: .6rem .3rem; scroll-snap-align: start; display: flex; flex-direction: column; }
.day-pill .dow { font-size: .75rem; color: var(--muted); font-weight: 600; }
.day-pill .dnum { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.day-pill .mon { font-size: .75rem; color: var(--muted); }
.day-pill.selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.day-pill.selected .dow, .day-pill.selected .mon { color: rgba(255, 255, 255, .8); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.slot-card { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 1rem .5rem; border-radius: 16px; }
.slot-card .time { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; }
.slot-card .seats { font-size: .78rem; font-weight: 600; color: #0b6b4a; }
.slot-card .seats.low { color: #b45309; }
.slot-card.full { opacity: .5; background: var(--surface-2); cursor: not-allowed; }
.slot-card.full .seats { color: #b91c1c; }

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.review-box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.review-box header { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; background: var(--surface-2); font-weight: 700; font-size: .92rem; }
.review-box header i { color: var(--brand-text); margin-inline-end: .3rem; }
.review-box header a { font-size: .85rem; font-weight: 600; }
.review-box dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; padding: .9rem 1rem; margin: 0; font-size: .92rem; }
.review-box dt { color: var(--muted); font-weight: 500; }
.review-box dd { margin: 0; font-weight: 600; word-break: break-word; }

/* Voice guide */
.voice-guide { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .9rem; }
.voice-btn { display: inline-flex; align-items: center; gap: .55rem; border: 0; border-radius: 999px; padding: .4rem 1rem .4rem .4rem; font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light), var(--accent)); color: #2a1f05; box-shadow: 0 8px 20px -10px rgba(var(--accent-rgb), .9); }
[dir="rtl"] .voice-btn { padding: .4rem .4rem .4rem 1rem; }
.voice-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--accent-dark); }
.voice-wave { display: none; gap: 2px; align-items: flex-end; height: 16px; }
.voice-wave i { width: 3px; background: #2a1f05; border-radius: 2px; animation: wave 1s ease-in-out infinite; }
.voice-wave i:nth-child(2) { animation-delay: .15s; } .voice-wave i:nth-child(3) { animation-delay: .3s; } .voice-wave i:nth-child(4) { animation-delay: .45s; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.voice-guide.is-playing .voice-wave { display: inline-flex; }
.voice-guide.needs-tap .voice-btn { animation: tap 1.2s ease-in-out 3; }
@keyframes tap { 50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(var(--accent-rgb), .25); } }
.voice-auto { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); cursor: pointer; margin: 0; }
.voice-msg { flex-basis: 100%; }
@media (prefers-reduced-motion: reduce) { .voice-wave i, .voice-guide.needs-tap .voice-btn { animation: none; } }

/* ============================================================
   Receipt / token
   ============================================================ */
.receipt-page { max-width: 860px; }
.success-banner { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: 18px; background: #e9f7f0; border: 1px solid #bfe6d3; margin-bottom: 1rem; color: var(--brand-text); }
.success-check { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: var(--brand-2); box-shadow: 0 0 0 6px rgba(var(--teal-rgb), .18); }
.pin-card { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-radius: 16px; background: var(--gold-soft); border: 1px solid #ecdfbd; margin-bottom: 1rem; }
.pin-card > i { font-size: 1.6rem; color: var(--accent-dark); }
.pin-card .pin { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: .2em; background: var(--card); border-radius: 8px; padding: .05rem .5rem; }
.receipt { background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.receipt-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.6rem; color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.receipt-head .brand-text { color: #fff; font-size: 1.15rem; }
.receipt-head .brand-text span { color: var(--accent-light); }
.receipt-status { padding: .3rem .9rem; border-radius: 999px; font-weight: 700; font-size: .85rem; background: var(--card); color: var(--brand-text); }
.receipt-status.status-waitlist { background: #ffe9a8; color: #6b4e0e; }
.receipt-status.status-arrived { background: #c9f3dd; color: var(--brand-text); }
.receipt-status.status-cancelled, .receipt-status.status-noshow { background: #fde2e2; color: #9b1c1c; }
.receipt-token { text-align: center; padding: 1.6rem 1rem 1.2rem; border-bottom: 2px dashed var(--line); position: relative; }
.receipt-token::before, .receipt-token::after { content: ""; position: absolute; bottom: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.receipt-token::before { inset-inline-start: -15px; }
.receipt-token::after { inset-inline-end: -15px; }
.receipt-token .label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.receipt-token .number { font-family: var(--font-head); font-size: clamp(2.2rem, 7vw, 3.3rem); font-weight: 800; letter-spacing: .04em; color: var(--brand-text); line-height: 1.15; margin: .2rem 0 .8rem; }
.barcode { max-width: 100%; height: 60px; }
.receipt-body { display: grid; grid-template-columns: 1fr 170px; gap: 1.5rem; padding: 1.6rem; }
@media (max-width: 640px) { .receipt-body { grid-template-columns: 1fr; } }
.receipt-side { display: flex; flex-direction: column; align-items: center; }
.qr { padding: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.qr img, .qr canvas { display: block; }
.visit-box { display: flex; flex-wrap: wrap; gap: 1rem; background: var(--surface-2); border: 1px solid #cfe9dd; border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.visit-box.waitlist { background: #fff8e6; border-color: #f1dfaa; align-items: center; gap: .8rem; }
.visit-box.waitlist > i { font-size: 1.6rem; color: #a16207; }
.visit-item { display: flex; gap: .7rem; flex: 1 1 200px; }
.visit-item.wide { flex-basis: 100%; }
.visit-item > i { font-size: 1.3rem; color: var(--brand-text); }
.visit-item .k { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.lang-ar .visit-item .k, .lang-ur .visit-item .k { text-transform: none; letter-spacing: 0; }
.visit-item .v { font-weight: 700; font-size: 1.05rem; }
.receipt-dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; margin: 0; }
.receipt-dl dt { color: var(--muted); font-weight: 500; }
.receipt-dl dd { margin: 0; font-weight: 600; }
.receipt-foot { padding: 1.2rem 1.6rem 1.6rem; background: var(--surface-2); border-top: 1px solid var(--line); font-size: .92rem; }
.receipt-foot ul { padding-inline-start: 1.2rem; }
.fraud-note { margin-top: .8rem; padding: .6rem .8rem; border-radius: 10px; background: #fff1f1; color: #9b1c1c; font-weight: 600; font-size: .85rem; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.5rem; }


/* ============================================================
   News, guides and events
   ============================================================ */
.news-tabs { display: inline-flex; flex-wrap: wrap; gap: .35rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .3rem; }
.news-tabs a { padding: .45rem .95rem; border-radius: 10px; font-weight: 600; color: var(--muted); font-size: .92rem; }
.news-tabs a:hover { color: var(--brand-text); background: rgba(var(--brand-rgb), .06); }
.news-tabs a.active { background: var(--brand); color: #fff; }
.news-card-x { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: var(--ink); transition: all .2s; }
.news-card-x:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.news-cover { position: relative; display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--surface-2); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card-x:hover .news-cover img { transform: scale(1.04); }
.news-cat { position: absolute; inset-block-start: .8rem; inset-inline-start: .8rem; padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--card); color: var(--brand-text); }
.news-cat.static { position: static; display: inline-block; }
.news-cat.cat-guide { background: #e8f6ef; color: #0b6b4a; }
.news-cat.cat-event { background: var(--accent); color: #2a1f05; }
.news-cat.cat-news { background: #e7eefb; color: #1e40af; }
.photo-count { position: absolute; inset-block-end: .7rem; inset-inline-end: .7rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem; }
.news-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem 1.3rem; flex: 1; }
.news-meta { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .8rem; color: var(--muted); }
.news-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.lang-ur .news-title { font-family: "Noto Nastaliq Urdu", serif; line-height: 1.9; }
.lang-ar .news-title { font-family: "IBM Plex Sans Arabic", sans-serif; }
.news-sum { color: var(--muted); font-size: .9rem; }
.news-more { margin-top: auto; padding-top: .4rem; font-weight: 700; font-size: .88rem; color: var(--brand-text); }
.date-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 54px; padding: .35rem .5rem; border-radius: 12px; background: var(--brand); color: #fff; line-height: 1.1; flex-shrink: 0; }
.date-badge b { font-family: var(--font-head); font-size: 1.35rem; }
.date-badge span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-light); }
.date-badge.on-cover { position: absolute; inset-block-end: .7rem; inset-inline-start: .8rem; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
.date-badge.lg { min-width: 84px; padding: .7rem; border-radius: 16px; }
.date-badge.lg b { font-size: 2rem; }
.events-strip { background: linear-gradient(120deg, var(--gold-soft), #fff 70%); border: 1px solid #ecdfbd; border-radius: 20px; padding: 1.25rem; }
.event-mini { display: flex; align-items: center; gap: .9rem; padding: .8rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); transition: all .15s; }
.event-mini:hover { border-color: rgba(var(--brand-rgb), .3); box-shadow: var(--shadow-sm); color: var(--ink); }
.event-mini.plain { border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; padding: .8rem 0; }
.event-mini.plain:hover { box-shadow: none; color: var(--brand-text); }

.article-hero { color: #fff; padding: 2.5rem 0 5.5rem; background: radial-gradient(600px 300px at 90% 0%, rgba(var(--accent-rgb), .25), transparent 60%), linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.article-hero h1 { font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 50rem; }
.lang-ar .article-hero h1, .lang-ur .article-hero h1 { letter-spacing: 0; }
.article-hero .lead { color: rgba(255, 255, 255, .8); max-width: 46rem; }
.article-hero .breadcrumb a { color: rgba(255, 255, 255, .7); }
.article-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }
.article-wrap { margin-top: -4rem; padding-bottom: 3rem; }
.article-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .article-card { padding: 2rem 2.25rem; } }
.article-cover { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 16px; margin-bottom: 1.5rem; }
.event-box { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; padding: 1.2rem; border-radius: 18px; background: var(--gold-soft); border: 1px solid #ecdfbd; margin-bottom: 1.5rem; }
.event-box.past { background: var(--surface-2); border-color: var(--line); }
.event-box.past .date-badge { background: #6b7a74; }
.event-facts { flex: 1 1 260px; display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
.event-facts i { color: var(--accent-dark); width: 1.3rem; display: inline-block; }
.event-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.prose h2 { font-size: 1.2rem; font-weight: 700; margin: 1.6rem 0 .6rem; color: var(--brand-text); }
.prose-list { padding-inline-start: 0; list-style: none; margin-bottom: 1rem; }
.prose-list li { position: relative; padding-inline-start: 1.8rem; margin-bottom: .5rem; }
.prose-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; inset-inline-start: 0; top: .1rem; color: var(--teal); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.gallery-item { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap { position: absolute; inset-inline: 0; bottom: 0; padding: .4rem .6rem; font-size: .75rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); text-align: start; }
.lightbox { background: #0b0f0e; border: 0; border-radius: 16px; overflow: hidden; position: relative; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; background: #0b0f0e; }
.lightbox .btn-close { position: absolute; top: .8rem; inset-inline-end: .8rem; z-index: 2; }
.lightbox-cap { color: #e5e7e6; padding: .7rem 1rem; font-size: .9rem; min-height: 2.6rem; }
.lb-nav { position: absolute; top: 45%; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.3rem; }
.lb-nav:hover { background: rgba(255, 255, 255, .3); }
.lb-nav.prev { inset-inline-start: .8rem; }
.lb-nav.next { inset-inline-end: .8rem; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.more-item { display: flex; gap: .8rem; align-items: center; padding: .65rem 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.more-item:last-child { border-bottom: 0; }
.more-item:hover { color: var(--brand-text); }
.more-item img { width: 84px; height: 50px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }

/* ============================================================
   Back office: tokens, campaigns
   ============================================================ */
.page-tabs .nav-link { color: var(--muted); font-weight: 600; border-radius: 12px; }
.page-tabs .nav-link.active { background: var(--brand); color: #fff; }
.page-tabs .nav-link.active .badge { background: rgba(255, 255, 255, .2) !important; color: #fff; }
.scan-card { border: 2px solid rgba(var(--brand-rgb), .2); background: linear-gradient(135deg, #fff, #f3faf7); }
.mini-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: .9rem .5rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-align: center; transition: all .15s; }
.mini-stat i { font-size: 1.2rem; }
.mini-stat .n { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.mini-stat .l { font-size: .78rem; color: var(--muted); font-weight: 600; }
.mini-stat:hover, .mini-stat.active { box-shadow: var(--shadow-sm); border-color: currentColor; }
.mini-stat.tone-primary i { color: var(--brand-text); }
.receipt-status.status-applied { background: #dbeafe; color: #1e3a8a; }
.mini-stat.tone-success i { color: #15803d; }
.mini-stat.tone-warning i { color: #b45309; }
.mini-stat.tone-secondary i { color: #64748b; }
.scanned-card { border-width: 2px; }
.token-mini { border-top: 4px solid var(--brand); }
.btn-outline-brand.btn-sm { --bs-btn-padding-y: .25rem; }

/* Dashboard tweaks for the new palette */
.dashboard .dash-topbar h1 { font-family: var(--font-head); }
.lang-ar .table > thead th { letter-spacing: 0; text-transform: none; font-size: .85rem; }

@media print {
    .topbar, .site-nav, .site-footer, .whatsapp-fab, .wa-widget, .no-print { display: none !important; }
    body.public { background: var(--card); }
    .receipt-page { max-width: none; padding: 0 !important; }
    .receipt { box-shadow: none; border: 1px solid #999; border-radius: 12px; }
    .receipt-head, .visit-box, .receipt-foot, .fraud-note, .receipt-status { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .receipt-token::before, .receipt-token::after { display: none; }
    .table-card { border: 0; box-shadow: none; }
}

/* ---------- Register: header button, job seeker / employer switch ---------- */
.nav-register { font-weight: 600; }
.reg-menu { min-width: 280px; padding: .4rem; border-radius: 14px; }
.reg-menu .dropdown-item { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem .75rem; border-radius: 10px; white-space: normal; }
.reg-menu .dropdown-item > i { font-size: 1.35rem; color: var(--brand-text); line-height: 1.2; }
.reg-menu .dropdown-item b { display: block; }
.reg-menu .dropdown-item small { display: block; color: var(--muted); font-size: .78rem; }
.reg-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.reg-switch-btn { display: flex; align-items: center; gap: .7rem; text-align: start; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: .75rem .9rem; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; }
.reg-switch-btn > i { font-size: 1.6rem; color: var(--muted); }
.reg-switch-btn b { display: block; font-size: .98rem; }
.reg-switch-btn small { display: block; color: var(--muted); font-size: .78rem; }
.reg-switch-btn:hover { border-color: rgba(var(--brand-rgb), .4); }
.reg-switch-btn.active { border-color: var(--brand); background: rgba(var(--brand-rgb), .05); box-shadow: 0 8px 22px -14px rgba(var(--brand-rgb), .7); }
.reg-switch-btn.active > i { color: var(--brand-text); }
.reg-group { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; padding-bottom: .35rem; border-bottom: 1px dashed var(--line); }
.lang-ar .reg-group, .lang-ur .reg-group { letter-spacing: 0; }
.reg-note { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: .75rem .9rem; font-size: .88rem; }
html[data-bs-theme="dark"] .reg-switch-btn { color: var(--bs-body-color); }
@media (max-width: 575.98px) { .reg-switch-btn small { display: none; } }

/* ---------- Employer: waiting page, rights, review ---------- */
.emp-wait { max-width: 760px; margin: 0 auto; }
.emp-wait-hero { text-align: center; padding: 2.5rem 1.5rem 2rem; }
.emp-wait-icon { width: 88px; height: 88px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 2.6rem; margin-bottom: 1rem; }
.emp-wait-icon.tone-warning { background: #fef3c7; color: #b45309; }
.emp-wait-icon.tone-danger { background: #fee2e2; color: #b91c1c; }
.emp-wait-icon.tone-secondary { background: #e2e8f0; color: #475569; }
.emp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.emp-steps li { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: .9rem; background: var(--card); font-size: .88rem; }
.emp-steps li b { display: block; margin-bottom: .15rem; }
.emp-steps li.done { border-color: #86efac; background: #f0fdf4; }
.emp-steps li.now { border-color: #fcd34d; background: #fffbeb; }
html[data-bs-theme="dark"] .emp-steps li.done, html[data-bs-theme="dark"] .emp-steps li.now { background: transparent; }
.emp-steps li i { font-size: 1.3rem; display: block; margin-bottom: .35rem; }
.emp-locked { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.emp-locked span { display: flex; align-items: center; gap: .5rem; border: 1px dashed var(--line); border-radius: 12px; padding: .6rem .75rem; color: var(--muted); font-size: .88rem; }
.emp-locked span .bi-lock-fill { margin-inline-start: auto; font-size: .8rem; }
.emp-rights { display: flex; flex-wrap: wrap; gap: .4rem; }
.emp-rights .badge { font-weight: 500; }
.right-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.right-pick label { display: flex; gap: .65rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; cursor: pointer; background: var(--card); }
.right-pick label:has(input:checked) { border-color: var(--brand); background: rgba(var(--brand-rgb), .05); }
.right-pick label i { font-size: 1.2rem; color: var(--brand-text); }
.right-pick label b { display: block; font-size: .92rem; }
.right-pick label small { display: block; color: var(--muted); font-size: .78rem; }
.right-pick .sens { color: #b45309; font-size: .72rem; font-weight: 600; }
.review-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; }
.review-pill.pending { background: #fef3c7; color: #92400e; }
.review-pill.rejected { background: #fee2e2; color: #991b1b; }
.review-pill.approved { background: #dcfce7; color: #166534; }
.sidebar-link .badge { margin-inline-start: auto; }
@media (max-width: 767.98px) { .emp-steps { grid-template-columns: 1fr; } }

/* Employer dashboard banner: follows the site theme (light, dark and colour themes). */
.emp-hero { color: #fff; background: radial-gradient(420px 200px at 100% 0%, rgba(var(--accent-rgb), .28), transparent 60%), linear-gradient(120deg, var(--brand-dark), var(--brand)); box-shadow: var(--shadow); }
.emp-hero .logo-box { background: rgba(255, 255, 255, .95); color: var(--brand); }
.emp-hero .emp-rights .badge { background: rgba(255, 255, 255, .14) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .25); }
.emp-hero .emp-rights .badge .bi { color: var(--accent-light); }
