/* =============================================================
   Al-Emtiaz — Design system
   White + light brown, accented by the logo gold. RTL/LTR aware
   (uses logical properties: margin-inline, inset-inline ...).
   ============================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cairo-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cairo-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cairo-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cairo-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/cairo-arabic-800-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cairo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cairo-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cairo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
    --c-cream: #F6F2E6;
    --c-sand: #EEE7D3;
    --c-latte: #DDD4BA;
    --c-tan: #A6A574;
    --c-brown: #4A5A2C;
    --c-brown-dark: #37441F;
    --c-espresso: #222A16;
    --c-gold: #B3AA6B;
    --c-gold-dark: #7F8145;
    --c-text: #262B1E;
    --c-muted: #6D7161;
    --c-border: #E4DDC9;
    --c-surface: #FFFFFF;
    --c-success: #4F8A5B;
    --c-danger: #B4483C;
    --c-warning: #C98A1B;
    --c-info: #4F7A8A;

    --accent: var(--c-brown);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-xs: 0 1px 2px rgba(34, 42, 22, .06);
    --shadow-sm: 0 2px 10px rgba(34, 42, 22, .06);
    --shadow: 0 10px 30px rgba(34, 42, 22, .08);
    --shadow-lg: 0 24px 60px rgba(34, 42, 22, .14);
    --sidebar-w: 268px;

    /* Bootstrap overrides */
    --bs-body-font-family: "Cairo", "Inter", system-ui, sans-serif;
    --bs-body-color: var(--c-text);
    --bs-body-bg: var(--c-cream);
    --bs-border-color: var(--c-border);
    --bs-primary: var(--c-brown);
    --bs-primary-rgb: 139, 107, 74;
    --bs-link-color: var(--c-brown-dark);
    --bs-link-color-rgb: 106, 79, 54;
    --bs-link-hover-color: var(--c-gold-dark);
    --bs-border-radius: var(--radius-sm);
    --bs-border-radius-lg: var(--radius);
    --bs-success-rgb: 79, 138, 91;
    --bs-danger-rgb: 180, 72, 60;
    --bs-warning-rgb: 201, 138, 27;
}
html[lang="en"] { --bs-body-font-family: "Inter", "Cairo", system-ui, sans-serif; }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--c-espresso); }
::selection { background: var(--c-latte); }
:focus-visible { outline: 3px solid rgba(179, 170, 107, .55); outline-offset: 2px; }

/* ---------- Buttons & forms ---------- */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .6rem 1.1rem; transition: all .18s ease; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.05rem; border-radius: 12px; }
.btn-primary {
    --bs-btn-bg: var(--c-brown); --bs-btn-border-color: var(--c-brown);
    --bs-btn-hover-bg: var(--c-brown-dark); --bs-btn-hover-border-color: var(--c-brown-dark);
    --bs-btn-active-bg: var(--c-espresso); --bs-btn-active-border-color: var(--c-espresso);
    --bs-btn-disabled-bg: var(--c-tan); --bs-btn-disabled-border-color: var(--c-tan);
    box-shadow: 0 6px 16px rgba(74, 90, 44, .25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(74, 90, 44, .3); }
.btn-gold {
    --bs-btn-color: var(--c-espresso); --bs-btn-bg: var(--c-gold); --bs-btn-border-color: var(--c-gold);
    --bs-btn-hover-color: var(--c-espresso); --bs-btn-hover-bg: #C4BC82; --bs-btn-hover-border-color: #C4BC82;
    --bs-btn-active-bg: var(--c-gold-dark); --bs-btn-active-border-color: var(--c-gold-dark);
}
.btn-soft {
    --bs-btn-color: var(--c-brown-dark); --bs-btn-bg: var(--c-sand); --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--c-espresso); --bs-btn-hover-bg: var(--c-latte); --bs-btn-hover-border-color: transparent;
}
.form-label { font-weight: 600; color: var(--c-espresso); font-size: .92rem; margin-bottom: .4rem; }
.form-control, .form-select {
    border-color: var(--c-border); border-radius: var(--radius-sm); padding: .7rem .95rem; background-color: #fff;
}
.form-control-lg { padding: .9rem 1rem; font-size: 1.02rem; border-radius: 12px; }
.form-control:focus, .form-select:focus { border-color: var(--c-tan); box-shadow: 0 0 0 .25rem rgba(166, 165, 116, .22); }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; font-size: 1.05rem; }
.input-icon > .form-control { padding-inline-start: 2.75rem; }
.input-icon > .pw-toggle { position: absolute; inset-inline-end: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--c-muted); padding: .35rem .5rem; border-radius: 8px; }
.input-icon > .pw-toggle:hover { color: var(--c-brown-dark); background: var(--c-sand); }
.input-icon.has-toggle > .form-control { padding-inline-end: 3rem; }

.alert { border: 0; border-radius: var(--radius-sm); font-size: .95rem; }
.alert-danger { background: #F8E6E3; color: #8C3127; }
.alert-success { background: #E6F1E8; color: #2F6B3B; }
.alert-warning { background: #FBF0DA; color: #7E5610; }
.alert-info { background: #E4EEF1; color: #2E5868; }

.card-soft { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.badge-soft { background: var(--c-sand); color: var(--c-brown-dark); font-weight: 600; border-radius: 999px; padding: .35em .8em; }
.text-muted { color: var(--c-muted) !important; }

/* ---------- Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-up { animation: fadeUp .6s cubic-bezier(.2, .7, .2, 1) both; }
.fade-in { animation: fadeIn .8s ease both; }
.delay-1 { animation-delay: .08s; } .delay-2 { animation-delay: .16s; } .delay-3 { animation-delay: .24s; } .delay-4 { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =============================================================
   Guest pages (welcome, login, errors, installer)
   ============================================================= */
.guest-body { min-height: 100vh; background: var(--c-cream); }
.guest-topbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1rem, 4vw, 2.5rem); }
.guest-topbar .brand-mini { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--c-espresso); font-weight: 700; }
.guest-topbar .brand-mini img { height: 38px; }

.lang-btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--c-border); background: #fff; color: var(--c-brown-dark); border-radius: 999px; padding: .4rem .95rem; font-weight: 600; font-size: .9rem; transition: all .18s; }
.lang-btn:hover { background: var(--c-sand); border-color: var(--c-latte); }

/* Welcome */
.welcome { position: relative; overflow: hidden; }
.welcome::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 420px at 50% -10%, rgba(179, 170, 107, .18), transparent 70%),
        radial-gradient(700px 400px at 100% 100%, rgba(166, 165, 116, .18), transparent 70%),
        linear-gradient(180deg, #FBF9F2 0%, var(--c-cream) 100%);
}
.welcome-hero { text-align: center; padding: clamp(1rem, 4vw, 2.5rem) 1rem 1.5rem; }
.welcome-logo { width: clamp(150px, 22vw, 210px); height: auto; filter: drop-shadow(0 14px 28px rgba(34, 42, 22, .15)); }
.welcome-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin: 1.2rem 0 .3rem; letter-spacing: -.01em; }
.welcome-hero .tagline { color: var(--c-muted); font-size: 1.1rem; }
.gold-divider { width: 84px; height: 3px; margin: 1.1rem auto; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--c-gold), transparent); }
.portal-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 1180px; margin: 0 auto; padding: .5rem clamp(1rem, 4vw, 2.5rem) 3rem; }
.portal-card {
    --accent: var(--c-brown);
    position: relative; display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--c-text);
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem 1.4rem;
    box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; overflow: hidden;
}
.portal-card::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--accent); opacity: .85; }
.portal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--c-border)); color: var(--c-text); }
.portal-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); margin-bottom: .6rem; }
.portal-card h2 { font-size: 1.2rem; margin: 0; }
.portal-type { font-size: .78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.portal-address { color: var(--c-muted); font-size: .92rem; display: flex; gap: .4rem; align-items: flex-start; min-height: 2.6em; }
.portal-cta { margin-top: .8rem; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--accent); }
.portal-cta .bi { transition: transform .2s; }
.portal-card:hover .portal-cta .bi { transform: translateX(-4px); }
[dir="ltr"] .portal-card:hover .portal-cta .bi { transform: translateX(4px); }
.guest-footer { text-align: center; color: var(--c-muted); font-size: .85rem; padding: 1.5rem 1rem 2rem; }

/* Login split screen */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-split { grid-template-columns: 1.05fr 1fr; } }
.auth-art {
    --accent: var(--c-brown);
    position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
    padding: 1.4rem 1.5rem; min-height: 210px;
    background:
        radial-gradient(600px 400px at 85% 10%, rgba(179, 170, 107, .35), transparent 65%),
        linear-gradient(150deg, #8E9466 0%, #5B6B37 42%, color-mix(in srgb, var(--accent) 55%, #2F3A1B) 100%);
}
@media (min-width: 992px) { .auth-art { padding: 2.5rem 3rem; min-height: 100vh; } }
.auth-art-img { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: auto; max-height: 62%; opacity: .95; pointer-events: none; }
@media (max-width: 991.98px) { .auth-art-img { opacity: .35; max-height: 100%; } }
.auth-art-top { position: relative; z-index: 1; }
.auth-art .loc-chip { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); padding: .45rem .95rem; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.auth-art h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin: .8rem 0 .4rem; text-shadow: 0 2px 18px rgba(0, 0, 0, .15); }
.auth-art p { max-width: 420px; opacity: .92; margin: 0; }
@media (min-width: 992px) { .auth-art-text { margin-top: clamp(1.5rem, 6vh, 4rem); } }
@media (max-width: 991.98px) { .auth-art-text p { display: none; } .auth-art h2 { font-size: 1.5rem; } }
.auth-form-side { background: #fff; display: flex; flex-direction: column; padding: 1.25rem clamp(1rem, 5vw, 3rem) 2rem; }
.auth-form-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.auth-form-top a { color: var(--c-muted); text-decoration: none; font-size: .9rem; }
.auth-form-top a:hover { color: var(--c-brown-dark); }
.auth-card { width: 100%; max-width: 430px; margin: auto; padding: 2rem 0 1rem; }
.auth-logo { height: 92px; width: auto; display: block; margin: 0 auto 1.1rem; }
.auth-portal-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, #fff); }
.auth-card h1 { font-size: 1.75rem; font-weight: 800; margin: .9rem 0 .25rem; }
.auth-card .sub { color: var(--c-muted); margin-bottom: 1.6rem; }
.auth-help { font-size: .86rem; color: var(--c-muted); background: var(--c-cream); border: 1px dashed var(--c-latte); border-radius: var(--radius-sm); padding: .75rem .9rem; display: flex; gap: .55rem; }
.auth-meta { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; font-size: .82rem; color: var(--c-muted); margin-top: 1.4rem; }
.auth-meta .bi { color: var(--c-gold-dark); }
.hours-closed { text-align: center; background: var(--c-cream); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.6rem 1.2rem; }
.hours-closed .bi { font-size: 2.2rem; color: var(--c-gold-dark); }

/* Error page */
.error-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.error-card { max-width: 460px; text-align: center; padding: 2.4rem 2rem; }
.error-code { font-size: 4.2rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--c-gold), var(--c-brown)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Installer */
.install-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.install-card { width: 100%; max-width: 560px; padding: 2rem; }
.install-logo { height: 90px; }
.check-list li { padding: .2rem 0; }
.check-list .ok .bi { color: var(--c-success); }
.check-list .bad { color: var(--c-danger); font-weight: 600; }
.install-log { max-height: 200px; overflow: auto; }

/* =============================================================
   Application shell
   ============================================================= */
.app-shell { min-height: 100vh; }
.app-sidebar {
    position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sidebar-w); z-index: 1040;
    background: linear-gradient(180deg, #FFFFFF 0%, #F4EFE1 100%); border-inline-end: 1px solid var(--c-border);
    display: flex; flex-direction: column; transition: transform .28s ease;
}
.app-main { margin-inline-start: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(100%); box-shadow: var(--shadow-lg); }
    [dir="ltr"] .app-sidebar { transform: translateX(-100%); }
    body.sidebar-open .app-sidebar { transform: none; }
    .app-main { margin-inline-start: 0; }
    .sidebar-backdrop { position: fixed; inset: 0; background: rgba(34, 42, 22, .35); z-index: 1035; opacity: 0; pointer-events: none; transition: opacity .25s; }
    body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
}
.sidebar-brand { display: flex; align-items: center; gap: .75rem; padding: 1.2rem 1.25rem; border-bottom: 1px solid var(--c-border); text-decoration: none; }
.sidebar-brand img { width: 48px; height: auto; }
.sidebar-brand strong { display: block; color: var(--c-espresso); font-size: 1rem; line-height: 1.3; }
.sidebar-brand small { color: var(--c-muted); font-size: .76rem; }
.sidebar-nav { list-style: none; margin: 0; padding: 1rem .75rem; overflow-y: auto; flex: 1; min-height: 0; }
.sidebar-nav .nav-section { font-size: .72rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; padding: .9rem .75rem .35rem; }
.sidebar-link { display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; margin-bottom: 2px; border-radius: 12px; color: #4C4038; text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .15s, color .15s; }
.sidebar-link .bi { font-size: 1.1rem; color: var(--c-tan); width: 1.3rem; text-align: center; }
.sidebar-link:hover { background: var(--c-sand); color: var(--c-espresso); }
.sidebar-link.active { background: linear-gradient(90deg, rgba(74, 90, 44, .16), rgba(74, 90, 44, .04)); color: var(--c-espresso); box-shadow: inset 3px 0 0 var(--c-brown); }
[dir="rtl"] .sidebar-link.active { box-shadow: inset -3px 0 0 var(--c-gold); }
.sidebar-link.active .bi { color: var(--c-gold-dark); }
.sidebar-link.disabled { opacity: .5; pointer-events: none; }
.sidebar-link .soon { margin-inline-start: auto; font-size: .66rem; background: var(--c-sand); color: var(--c-muted); padding: .1rem .5rem; border-radius: 999px; font-weight: 600; }
.sidebar-user { display: flex; align-items: center; gap: .7rem; padding: .95rem 1.25rem; border-top: 1px solid var(--c-border); }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--c-espresso); background: linear-gradient(135deg, var(--c-gold), var(--c-tan)); flex-shrink: 0; }
.sidebar-user .name { font-weight: 700; font-size: .9rem; color: var(--c-espresso); line-height: 1.2; }
.sidebar-user .role { font-size: .76rem; color: var(--c-muted); }

.app-topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .8rem; padding: .8rem clamp(1rem, 3vw, 2rem); background: rgba(246, 242, 230, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-border); }
.app-topbar .page-title { font-size: 1.15rem; margin: 0; font-weight: 700; }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--c-border); background: #fff; color: var(--c-brown-dark); font-size: 1.15rem; }
.icon-btn:hover { background: var(--c-sand); }
.loc-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--c-border); font-weight: 600; font-size: .88rem; color: var(--c-espresso); }
.loc-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.loc-switch { min-width: 190px; border-radius: 999px; font-weight: 600; font-size: .9rem; padding-block: .45rem; }
.user-menu-btn { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--c-border); background: #fff; border-radius: 999px; padding: .25rem .8rem .25rem .3rem; }
[dir="rtl"] .user-menu-btn { padding: .25rem .3rem .25rem .8rem; }
.user-menu-btn .avatar { width: 34px; height: 34px; border-radius: 50%; font-size: .85rem; }
.dropdown-menu { border: 1px solid var(--c-border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .55rem .8rem; font-weight: 500; }
.dropdown-item:active { background: var(--c-brown); }

.app-content { flex: 1; padding: clamp(1rem, 3vw, 2rem); }
.app-footer { padding: 1rem 2rem; color: var(--c-muted); font-size: .8rem; text-align: center; }

/* Dashboard bits */
.hero-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 1.8rem; color: #fff; background: radial-gradient(500px 260px at 90% 0%, rgba(179, 170, 107, .45), transparent 70%), linear-gradient(135deg, #6B7A45, #37441F); box-shadow: var(--shadow); }
.hero-card h2 { color: #fff; font-weight: 800; margin-bottom: .25rem; }
.hero-card .hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.hero-card .hero-meta span { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.hero-card .hero-art { position: absolute; inset-inline-end: -10px; bottom: -14px; font-size: 8rem; opacity: .12; line-height: 1; }
.stat-tile { padding: 1.25rem; display: flex; gap: 1rem; align-items: center; height: 100%; }
.stat-tile .tile-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--c-sand); color: var(--c-brown-dark); flex-shrink: 0; }
.stat-tile .tile-label { color: var(--c-muted); font-size: .85rem; font-weight: 600; }
.stat-tile .tile-value { font-size: 1.05rem; font-weight: 700; color: var(--c-espresso); }
.module-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.2rem; height: 100%; opacity: .75; }
.module-tile .bi { font-size: 1.5rem; color: var(--c-tan); }
.module-tile strong { color: var(--c-espresso); }

/* Password strength meter */
.pw-meter { height: 6px; border-radius: 6px; background: var(--c-sand); overflow: hidden; margin-top: .5rem; }
.pw-meter > span { display: block; height: 100%; width: 0; background: var(--c-danger); transition: width .25s, background .25s; }
.pw-meter[data-level="2"] > span { width: 50%; background: var(--c-warning); }
.pw-meter[data-level="3"] > span { width: 75%; background: var(--c-gold-dark); }
.pw-meter[data-level="4"] > span { width: 100%; background: var(--c-success); }
.pw-meter[data-level="1"] > span { width: 25%; }

@media print {
    .app-sidebar, .app-topbar, .app-footer, .no-print { display: none !important; }
    .app-main { margin: 0 !important; }
    body { background: #fff; }
}

/* =============================================================
   Phase 1 components: page header, filters, tables, forms
   ============================================================= */
.min-w-0 { min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.page-heading { font-size: 1.5rem; font-weight: 800; margin: 0 0 .15rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.section-title .bi { color: var(--c-gold-dark); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; padding: .85rem; margin-bottom: 1rem; align-items: center; }
.filter-bar .form-control, .filter-bar .form-select { flex: 1 1 170px; max-width: 280px; padding-block: .5rem; }
.filter-bar input[type="search"] { flex: 2 1 220px; max-width: 360px; }

.table-card { overflow: hidden; }
.card-head { padding: .9rem 1.1rem; font-weight: 700; border-bottom: 1px solid var(--c-border); display: flex; align-items: center; gap: .5rem; color: var(--c-espresso); }
.card-head .bi { color: var(--c-gold-dark); }
.table-modern { --bs-table-bg: transparent; margin: 0; }
.table-modern > thead th { background: var(--c-cream); color: var(--c-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--c-border); padding: .75rem 1rem; white-space: nowrap; }
.table-modern > tbody td { padding: .8rem 1rem; border-color: var(--c-border); }
.table-modern > tbody tr:last-child td { border-bottom: 0; }
.table-modern > tbody tr:hover td { background: #FAF8F0; }
.row-link { cursor: pointer; }
.row-muted td { opacity: .55; }
.code-link { text-decoration: none; color: var(--c-brown-dark); font-family: "Inter", monospace; white-space: nowrap; }
code { color: var(--c-brown-dark); background: var(--c-sand); padding: .1em .4em; border-radius: 6px; font-size: .85em; }
.ua-cell { max-width: 260px; }

.badge-status { display: inline-flex; align-items: center; gap: .25rem; font-size: .76rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.badge-status.ok { background: #E6F1E8; color: #2F6B3B; }
.badge-status.bad { background: #F8E6E3; color: #8C3127; }
.badge-status.warn { background: #FBF0DA; color: #7E5610; }
.badge-status.info { background: #E4EEF1; color: #2E5868; }
.action-chip { display: inline-block; text-decoration: none; font-weight: 600; color: var(--c-brown-dark); background: var(--c-sand); padding: .2rem .6rem; border-radius: 8px; }
.action-chip.danger { background: #F8E6E3; color: #8C3127; }

.avatar-sm { width: 34px; height: 34px; border-radius: 10px; font-size: .85rem; }
.avatar-lg { width: 76px; height: 76px; border-radius: 22px; font-size: 1.8rem; }

.info-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .55rem 1rem; font-size: .92rem; }
.info-list dt { color: var(--c-muted); font-weight: 600; }
.info-list dd { margin: 0; color: var(--c-espresso); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.info-inline { font-size: .85rem; }

.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.role-option, .unit-option { position: relative; cursor: pointer; margin: 0; }
.role-option input, .unit-option input { position: absolute; opacity: 0; }
.role-option > span { display: flex; flex-direction: column; border: 1.5px solid var(--c-border); border-radius: 12px; padding: .75rem .9rem; transition: all .15s; background: #fff; }
.role-option small { color: var(--c-muted); }
.role-option input:checked + span, .unit-option input:checked + span { border-color: var(--c-gold); background: #F7F5E6; box-shadow: 0 0 0 3px rgba(179, 170, 107, .18); }
.role-option input:disabled + span { opacity: .4; cursor: not-allowed; }
.role-option input:focus-visible + span, .unit-option input:focus-visible + span { outline: 3px solid rgba(179, 170, 107, .55); }
.unit-toggle { display: inline-flex; gap: .5rem; }
.unit-option > span { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--c-border); border-radius: 12px; padding: .6rem 1.1rem; font-weight: 600; background: #fff; }

.component-row { display: grid; grid-template-columns: 1fr 1fr 90px auto; gap: .5rem; margin-bottom: .5rem; }
@media (max-width: 575.98px) { .component-row { grid-template-columns: 1fr 80px auto; } .component-row input[dir="ltr"] { grid-column: 1 / -1; order: 3; } }
.btn-icon { padding: .45rem .7rem; }

.image-drop { aspect-ratio: 4 / 3; border: 2px dashed var(--c-latte); border-radius: var(--radius); display: grid; place-items: center; background: var(--c-cream); overflow: hidden; color: var(--c-tan); font-size: 2.6rem; }
.image-drop img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.item-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; border: 1px solid var(--c-border); background: #fff; display: inline-grid; place-items: center; }
.placeholder-thumb { color: var(--c-latte); background: var(--c-cream); font-size: 1.2rem; }
.thumb-cell { width: 64px; }
.item-hero { aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--c-cream); display: grid; place-items: center; overflow: hidden; color: var(--c-latte); font-size: 4rem; }
.item-hero img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pre-line { white-space: pre-line; }

.location-card { padding: 1.25rem; height: 100%; border-top: 4px solid var(--accent); }
.location-card.is-inactive { opacity: .6; }
.tree-cell { display: flex; align-items: center; gap: .6rem; }
.tree-cell.depth-1 { padding-inline-start: 1.6rem; } .tree-cell.depth-2 { padding-inline-start: 3.2rem; }
.tree-cell.depth-3 { padding-inline-start: 4.8rem; } .tree-cell.depth-4 { padding-inline-start: 6.4rem; }
[dir="ltr"] .tree-cell .bi-arrow-return-left { transform: scaleX(-1); }
.sticky-form { top: 90px; z-index: 1; }

.logo-preview { border: 1px solid var(--c-border); border-radius: var(--radius); background: repeating-conic-gradient(#F1ECDD 0% 25%, #fff 0% 50%) 50% / 18px 18px; display: grid; place-items: center; padding: 1.2rem; }
.logo-preview img { max-height: 140px; max-width: 100%; }
.json-box { background: var(--c-espresso); color: #E6E2C8; border-radius: var(--radius-sm); padding: 1rem; font-size: .8rem; max-height: 460px; overflow: auto; margin: 0; white-space: pre-wrap; word-break: break-word; }

/* Notifications */
.bell-btn { position: relative; text-decoration: none; }
.bell-badge { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--c-danger); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--c-cream); }
.notif-list { overflow: hidden; }
.notif-item button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--c-border); cursor: pointer; }
.notif-item button:hover { background: #FAF8F0; }
.notif-item button:focus-visible { outline: 3px solid rgba(179, 170, 107, .55); outline-offset: -3px; }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; background: transparent; flex-shrink: 0; }
.notif-item.unread .notif-dot { background: var(--c-gold); }
.notif-item.unread.level-danger .notif-dot { background: var(--c-danger); }
.notif-item.unread .notif-text { font-weight: 700; }
.notif-body { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.notif-time { font-size: .8rem; color: var(--c-muted); }
.pagination { --bs-pagination-color: var(--c-brown-dark); --bs-pagination-active-bg: var(--c-brown); --bs-pagination-active-border-color: var(--c-brown); --bs-pagination-border-color: var(--c-border); --bs-pagination-hover-bg: var(--c-sand); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(166, 165, 116, .3); }

/* =============================================================
   Phase 2: stock
   ============================================================= */
.tile-link { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.tile-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.stat-tile .tile-icon.warn { background: #FBF0DA; color: #9A6A12; }
.stat-tile .tile-icon.bad { background: #F8E6E3; color: #8C3127; }
.qty-pill { display: inline-grid; place-items: center; min-width: 42px; padding: .2rem .55rem; border-radius: 10px; font-weight: 800; font-size: .95rem; background: #E6F1E8; color: #2F6B3B; font-variant-numeric: tabular-nums; }
.qty-pill.st-low { background: #FBF0DA; color: #9A6A12; }
.qty-pill.st-out { background: #F8E6E3; color: #B4483C; }
.qty-pill.st-none { background: var(--c-cream); color: var(--c-latte); font-weight: 600; }
.qty-pill.lg { min-width: 64px; font-size: 1.35rem; padding: .35rem .7rem; }
.stock-row.st-out td { background: #FFF8F6; }
.qty-change.pos { color: var(--c-success); }
.qty-change.neg { color: var(--c-danger); }
.doc-type, .mov-type { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; padding: .25rem .65rem; border-radius: 8px; background: var(--c-sand); color: var(--c-brown-dark); white-space: nowrap; }
.doc-type.t-receipt, .mov-type.m-warehouse_receipt, .mov-type.m-transfer_in, .mov-type.m-customer_return, .mov-type.m-sale_cancel { background: #E6F1E8; color: #2F6B3B; }
.doc-type.t-opening, .mov-type.m-opening_balance { background: #E4EEF1; color: #2E5868; }
.doc-type.t-adjustment, .mov-type.m-adjustment { background: #FBF0DA; color: #7E5610; }
.mov-type.m-sale, .mov-type.m-transfer_out { background: #F4E9E2; color: #8A4B2C; }
.note-cell { max-width: 220px; }
.doc-line { display: grid; grid-template-columns: 1fr 130px auto; gap: .5rem; margin-bottom: .6rem; }
.doc-line .line-info { grid-column: 1 / -1; font-size: .82rem; color: var(--c-muted); margin-top: -.25rem; min-height: 0; }
.doc-line .line-info:empty { display: none; }
.doc-line .line-info.ok { color: var(--c-success); }
.doc-line .line-info.bad { color: var(--c-danger); font-weight: 600; }
.matrix-table th, .matrix-table td { white-space: nowrap; }
.matrix-legend { display: flex; flex-wrap: wrap; gap: 1rem; }
.matrix-legend .qty-pill { min-width: 30px; font-size: .75rem; padding: .05rem .4rem; }
.balance-strip { display: flex; flex-wrap: wrap; gap: .6rem; }
.balance-chip { display: flex; flex-direction: column; padding: .6rem 1rem; min-width: 130px; }
.balance-chip strong { font-size: 1.35rem; color: var(--c-espresso); }
.qty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--c-border); }
.qty-cell { background: #fff; padding: .9rem 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.loc-overview { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: .35rem; width: 100%; height: 100%; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--c-border); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.loc-overview:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.loc-overview:focus-visible { outline: 3px solid rgba(179, 170, 107, .55); }
.portal-icon.sm { width: 36px; height: 36px; border-radius: 11px; font-size: 1.05rem; }
.nav-badge { margin-inline-start: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: #FBF0DA; color: #9A6A12; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.bell-badge.warn { background: var(--c-warning); }
@media print {
    .page-actions, .filter-bar, .pagination { display: none !important; }
    .card-soft { box-shadow: none; border-color: #ccc; }
}

/* =============================================================
   Phase 3: requests & transfers
   ============================================================= */
.status-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.status-tab { text-decoration: none; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--c-border); background: #fff; color: var(--c-brown-dark); font-weight: 600; font-size: .88rem; }
.status-tab:hover { background: var(--c-sand); color: var(--c-espresso); }
.status-tab.active { background: var(--c-brown); border-color: var(--c-brown); color: #fff; }
.route { white-space: nowrap; font-weight: 600; }
.route .bi { color: var(--c-gold-dark); }
.route-arrow { text-align: center; color: var(--c-gold-dark); font-size: 1.5rem; margin: -.25rem 0 .25rem; }
.route-box { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--c-cream); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.route-box > div { display: flex; flex-direction: column; }
.route-box .bi { font-size: 1.6rem; color: var(--c-gold); }
.approve-input { max-width: 90px; margin-inline: auto; font-weight: 700; }
.row-diff td { background: #FFF8F0; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1rem; padding-inline-start: 1.4rem; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--c-gold); }
.timeline li.ok::before { background: var(--c-success); }
.timeline li.bad::before { background: var(--c-danger); }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 4px; top: 1.2rem; bottom: 0; width: 2px; background: var(--c-border); }
.timeline li:last-child::after { display: none; }
.timeline span { display: block; color: var(--c-muted); font-size: .8rem; }
.timeline em { display: block; color: var(--c-brown-dark); font-size: .82rem; }
.flow-tile.has-items { border-inline-start: 4px solid var(--c-gold); }

/* =============================================================
   Phase 4: point of sale, sales, deliveries
   ============================================================= */
.text-gold { color: var(--c-gold-dark); }
.pos-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.pos-search { display: flex; gap: .6rem; flex-wrap: wrap; }
.pos-search select { max-width: 240px; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.pos-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.pos-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pos-card.is-out { opacity: .55; }
.pos-card-img { aspect-ratio: 4 / 3; background: var(--c-cream); display: grid; place-items: center; color: var(--c-latte); font-size: 2rem; }
.pos-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pos-card-body { padding: .65rem .75rem .75rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.pos-card-name { font-weight: 700; color: var(--c-espresso); line-height: 1.3; }
.pos-card-code { font-size: .78rem; color: var(--c-muted); }
.pos-card-foot { margin-top: auto; padding-top: .4rem; display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.pos-card-foot .btn { padding: .3rem .65rem; }
.pos-empty { padding: 1.5rem; text-align: center; color: var(--c-muted); grid-column: 1 / -1; }
.pos-side { position: sticky; top: 86px; }
.pos-cart { max-height: 340px; overflow-y: auto; }
.pos-line { display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem; border-bottom: 1px solid var(--c-border); }
.pos-line-info { flex: 1; min-width: 0; }
.pos-stepper { display: flex; align-items: center; gap: .25rem; }
.pos-stepper input { width: 64px; padding: .35rem; font-weight: 700; }
.pos-stepper .btn { padding: .35rem .55rem; }
.pos-total { display: flex; justify-content: space-between; padding: .8rem 1rem; background: var(--c-cream); font-size: .95rem; }
.pos-total strong { font-size: 1.15rem; color: var(--c-espresso); }
.pos-max { margin: .5rem 1rem 0; padding: .4rem .7rem; border-radius: 8px; background: #FBF0DA; color: #7E5610; font-size: .85rem; font-weight: 600; }
@media (max-width: 1199.98px) { .pos-side { position: static; } }
.comp-chip { display: inline-block; background: var(--c-sand); border-radius: 6px; padding: 0 .4rem; margin: .1rem .15rem 0 0; }
.delivery-card { padding: 1.1rem 1.2rem; height: 100%; border-inline-start: 4px solid var(--c-warning); }
.delivery-card.st-out_for_delivery { border-inline-start-color: var(--c-info); }
.delivery-card.st-delivered { border-inline-start-color: var(--c-success); opacity: .85; }
.delivery-action { margin-top: .5rem; padding-top: .75rem; border-top: 1px dashed var(--c-border); }
.big-sale { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 1.6rem; font-size: 1.35rem; font-weight: 800; border-radius: var(--radius-lg); text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--c-brown), var(--c-brown-dark)); box-shadow: 0 12px 30px rgba(74, 90, 44, .35); transition: transform .2s; }
.big-sale:hover { color: #fff; transform: translateY(-3px); }
.big-sale .bi { font-size: 2rem; }

/* Phase 5: after-sale */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.choice-grid .unit-option > span { width: 100%; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--c-border); }
.version-box { border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: .55rem .8rem; margin-bottom: .5rem; background: #fff; }
.version-box summary { cursor: pointer; }

/* Phase 6: expenses */
.amount { font-variant-numeric: tabular-nums; }
.amount.neg, .amount-hero.neg { color: var(--c-danger); }
.amount-hero { text-align: center; font-size: 2rem; font-weight: 800; color: var(--c-espresso); margin: .25rem 0 .75rem; font-variant-numeric: tabular-nums; }
.currency-tile .tile-icon b { font-size: .8rem; }
.cur-usd .tile-icon { background: #E6F1E8; color: #2F6B3B; }
.currency-select { max-width: 100px; font-weight: 700; }
.receipt-img { width: 100%; max-height: 520px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--c-border); background: #fff; }

/* Phase 7: reports & charts */
.report-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; text-decoration: none; color: inherit; height: 100%; transition: transform .2s, box-shadow .2s; }
.report-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.report-card strong { display: block; color: var(--c-espresso); }
.report-card small { display: block; color: var(--c-muted); line-height: 1.4; }
.chart-card { position: relative; height: 300px; }
.chart-card canvas { width: 100% !important; }
.report-scroll { max-height: 70vh; }
.report-table thead th { position: sticky; top: 0; z-index: 1; }
.report-table .num { text-align: center; }
.report-table tfoot th { background: var(--c-sand); color: var(--c-espresso); font-weight: 800; }
.report-table .muted { color: var(--c-latte); }
.report-table .empty { text-align: center; color: var(--c-muted); padding: 2.5rem; }
.backup-name { max-width: 15rem; }

/* ---- Phones: compact top bar and two-column point of sale ---- */
@media (max-width: 575.98px) {
    .app-topbar { gap: .5rem; padding: .6rem .75rem; }
    .app-topbar .page-title { display: none; } /* the page heading in the content already shows it */
    .lang-btn { padding: .4rem .6rem; }
    .lang-btn span { display: none; }
    .pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
    .pos-card-img { aspect-ratio: 16 / 10; font-size: 1.5rem; }
    .pos-card-body { padding: .5rem .6rem .6rem; }
    .pos-card-name { font-size: .92rem; }
}
