
:root {
    --primary: #0d6efd;
    --primary-2: #3ab1ff;
    --dark-blue: #12345d;
    --ink: #17253a;
    --soft: #f4f8ff;
    --glass: rgba(255,255,255,.62);
    --glass-strong: rgba(255,255,255,.78);
    --glass-border: rgba(255,255,255,.62);
    --shadow: 0 22px 55px rgba(11, 42, 92, .12);
}
* { box-sizing: border-box; }
body {
    font-family: 'Cairo', sans-serif;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(58,177,255,.25), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(13,110,253,.18), transparent 32%),
        radial-gradient(circle at 50% 95%, rgba(255,200,87,.18), transparent 35%),
        linear-gradient(135deg, #eef7ff 0%, #f8fbff 42%, #eaf3ff 100%);
    background-attachment: fixed;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.26) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.1));
}
.container { position: relative; z-index: 1; }
.navbar {
    background: rgba(255,255,255,.66) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 14px 35px rgba(11,42,92,.08) !important;
}
.brand-logo { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(13,110,253,.18)); }
.brand-title { font-size: 1.28rem; color: var(--dark-blue); letter-spacing: -.5px; }
.nav-link { font-weight: 700; color: #274663; }
.nav-link:hover { color: var(--primary); }
.hero {
    background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.36));
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    left: -120px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(13,110,253,.22), transparent 65%);
}
.hero .hero-icon { width: 100%; max-width: 380px; object-fit: contain; }
.card,
.card-soft,
.feature-box,
.alert,
.dropdown-menu,
.modal-content {
    background: var(--glass) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.card,
.card-soft,
.feature-box { border-radius: 24px !important; overflow: hidden; }
.form-control, .form-select {
    border-radius: 14px;
    border: 1px solid rgba(13,110,253,.14);
    background: rgba(255,255,255,.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.form-control:focus, .form-select:focus {
    border-color: rgba(13,110,253,.5);
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.12);
}
.btn { border-radius: 14px; font-weight: 800; }
.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0aa3ff);
    border: 0;
    box-shadow: 0 12px 22px rgba(13,110,253,.22);
}
.btn-outline-primary {
    border-color: rgba(13,110,253,.35);
    background: rgba(255,255,255,.48);
}
.section-title { font-size: 1.55rem; font-weight: 900; color: var(--dark-blue); letter-spacing: -.4px; }
.badge-plan { font-size: .85rem; }
.provider-card img.cover, .offer-card img.cover { height: 190px; object-fit: cover; }
.stat-card { border-radius: 24px; }
.table { --bs-table-bg: transparent; }
.table thead th {
    background: rgba(255,255,255,.58);
    color: #15365e;
    font-weight: 800;
    border-bottom: 1px solid rgba(13,110,253,.1);
}
.table tbody td { border-color: rgba(13,110,253,.08); }
.site-footer {
    background: rgba(255,255,255,.62) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.logo-preview { max-width: 220px; }
.feature-box {
    padding: 20px;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature-box:hover,
.card-soft:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 65px rgba(11,42,92,.16);
}
.list-icon {
    width: 46px;
    height: 46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background: linear-gradient(135deg, rgba(13,110,253,.14), rgba(58,177,255,.22));
    color:var(--primary);
    border-radius:16px;
    font-weight: 900;
}
.rtl-number { direction:ltr; display:inline-block; }
.glass-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.7);
    backdrop-filter: blur(14px);
    color: #224b7a;
    font-weight: 800;
}
.university-mark {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .9rem;
    border-radius: 18px;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(255,255,255,.78);
}
.mini-badge {
    width: 34px; height: 34px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0d6efd, #0aa3ff);
    color: white; font-weight: 900;
}
.admin-grid .feature-box h5 { color: var(--dark-blue); }
@media (max-width: 768px) {
    .brand-logo { width: 44px; height: 44px; }
    .hero { border-radius: 24px; }
    .display-6 { font-size: 1.6rem; }
}

/* APP-LIKE UX UPGRADE */
:root {
    --diamond: #7c3aed;
    --gold: #d99b17;
    --silver: #718096;
    --success: #11a36a;
}
body { padding-bottom: 0; }
.app-shell { max-width: 1180px; }
.hero-app {
    min-height: 420px;
    display: flex;
    align-items: center;
}
.app-search {
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 22px;
    padding: 10px;
    box-shadow: 0 18px 35px rgba(13,110,253,.12);
}
.app-search .form-control,
.app-search .form-select { border: 0; background: transparent; box-shadow: none; }
.btn-app {
    border-radius: 18px;
    padding: 13px 22px;
    font-weight: 900;
}
.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    text-decoration: none;
    color: #143968;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(255,255,255,.75);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 35px rgba(11,42,92,.08);
    transition: .22s ease;
}
.quick-action:hover { transform: translateY(-4px); color: #0d6efd; }
.quick-icon {
    width: 48px; height: 48px; border-radius: 18px;
    display:flex; align-items:center; justify-content:center;
    background: linear-gradient(135deg, rgba(13,110,253,.16), rgba(58,177,255,.22));
    font-size: 22px;
}
.plan-pill {
    display:inline-flex; align-items:center; gap:6px;
    padding: 6px 12px;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(0,0,0,.12);
}
.plan-diamond { background: linear-gradient(135deg, #7c3aed, #2dd4bf); }
.plan-gold { background: linear-gradient(135deg, #f59e0b, #facc15); color: #3a2a00; }
.plan-silver { background: linear-gradient(135deg, #64748b, #cbd5e1); }
.verified-pill {
    display:inline-flex; align-items:center; gap:6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(17,163,106,.12);
    color: #0f7a50;
    font-weight: 900;
    border: 1px solid rgba(17,163,106,.18);
}
.service-card { border-radius: 30px !important; overflow: hidden; }
.service-card .cover { height: 210px; object-fit: cover; }
.service-card .card-body { padding: 18px; }
.action-row { display:flex; gap:10px; flex-wrap:wrap; }
.action-row .btn { flex:1 1 140px; }
.provider-hero-img {
    height: 310px;
    object-fit: cover;
    border-radius: 28px;
    width: 100%;
}
.profile-header-card { margin-top: -70px; position: relative; z-index: 2; }
.metric-card {
    border-radius: 24px;
    padding: 18px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(255,255,255,.76);
    box-shadow: var(--shadow);
}
.metric-card .metric-value { font-size: 2rem; font-weight: 900; color: var(--dark-blue); }
.filter-tabs { display:flex; gap:8px; flex-wrap:wrap; }
.filter-tabs a {
    text-decoration:none;
    color:#143968;
    padding: 9px 14px;
    border-radius:999px;
    background:rgba(255,255,255,.58);
    border:1px solid rgba(255,255,255,.72);
    font-weight:900;
}
.filter-tabs a.active { background: linear-gradient(135deg,#0d6efd,#0aa3ff); color:white; }
.mobile-bottom-nav { display: none; }
.pwa-install-hint {
    position: fixed;
    left: 18px;
    bottom: 96px;
    z-index: 998;
    display: none;
    max-width: 320px;
}
@media (max-width: 768px) {
    body { padding-bottom: 96px; }
    .container { padding-left: 16px; padding-right: 16px; }
    .navbar .navbar-collapse { margin-top: 12px; }
    .hero-app { min-height: auto; }
    .hero .hero-icon { max-width: 230px; }
    .section-title { font-size: 1.25rem; }
    .app-search { padding: 12px; }
    .app-search .row > * { margin-bottom: 8px; }
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 14px;
        left: 14px;
        right: 14px;
        z-index: 999;
        background: rgba(255,255,255,.78);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(255,255,255,.78);
        box-shadow: 0 20px 50px rgba(20,57,104,.22);
        border-radius: 26px;
        justify-content: space-around;
        padding: 9px 6px;
    }
    .mobile-bottom-nav a {
        text-decoration: none;
        color: #143968;
        font-size: 19px;
        text-align: center;
        font-weight: 900;
        min-width: 52px;
    }
    .mobile-bottom-nav span { display:block; font-size: 10px; margin-top: 2px; }
    .mobile-bottom-nav a.active { color: #0d6efd; }
    .provider-hero-img { height: 220px; }
    .profile-header-card { margin-top: -42px; }
    .action-row .btn { flex-basis: 100%; }
}


/* Clear notifications and offer action upgrades */
.notification-nav-btn {
    position: relative;
    padding-inline-end: 34px !important;
}
.notify-count {
    position: absolute;
    top: -9px;
    left: -9px;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff3b5c, #ff8a00);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.9);
    box-shadow: 0 10px 22px rgba(255, 59, 92, .25);
}
.notification-alert {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(255,255,255,.7);
}
.notification-bell {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,193,7,.35), rgba(13,110,253,.16));
    box-shadow: 0 12px 28px rgba(20,57,104,.13);
    font-size: 24px;
    flex: 0 0 48px;
}
.notification-line {
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 14px;
    padding: 7px 10px;
}
.btn-app-sm {
    border-radius: 16px;
    padding: 10px 18px;
    font-weight: 800;
}
.notifications-list {
    display: grid;
    gap: 14px;
}
.notification-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 14px 32px rgba(20,57,104,.08);
}
.notification-card.is-unread {
    background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(238,245,255,.78));
    border-color: rgba(13,110,253,.22);
}
.notification-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,110,253,.10);
    flex: 0 0 42px;
}
.mobile-nav-notify { position: relative; }
.mobile-nav-notify em {
    position: absolute;
    top: 2px;
    left: 50%;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ff3b5c;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
    border: 2px solid white;
}
.selected-offer-box {
    border-radius: 20px;
    padding: 14px 16px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(13,110,253,.15);
}
.offer-card .btn-primary {
    border-radius: 14px;
    font-weight: 800;
}
@media (max-width: 768px) {
    .notification-alert { padding: 14px; }
    .notification-card { padding: 14px; border-radius: 20px; }
}

/* V4 Development Upgrade */
.request-cards-list { display: grid; gap: 16px; }
.request-card { padding: 18px; border-radius: 26px; }
.request-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    position: relative;
}
.request-timeline span {
    text-align: center;
    font-size: 12px;
    font-weight: 900;
    color: #6b7b91;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.72);
    padding: 8px 6px;
    border-radius: 999px;
}
.request-timeline span.done {
    color: #075d3d;
    background: rgba(17,163,106,.14);
    border-color: rgba(17,163,106,.22);
}
.request-actions .btn { min-width: 92px; }
.dashboard-list-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(13,110,253,.08);
}
.dashboard-list-item:last-child { border-bottom: 0; }
.notification-focus {
    padding: 18px;
    border-radius: 24px;
    display:flex;
    gap: 14px;
    align-items:center;
    height:100%;
}
.live-notification-toast {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 1100;
    width: min(360px, calc(100vw - 36px));
    display: none;
}
.live-notification-toast.show { display: block; animation: toastIn .25s ease; }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.live-notification-toast .toast-box {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 24px 60px rgba(20,57,104,.22);
    backdrop-filter: blur(18px);
    border-radius: 22px;
    padding: 15px;
}
@media (max-width: 768px) {
    .request-timeline { grid-template-columns: 1fr; }
    .request-timeline span { text-align: right; }
    .live-notification-toast { bottom: 104px; right: 14px; left: 14px; width: auto; }
}


/* V5 Reference-Style Luxury Theme
   Premium deep purple/blue identity with warm gold accents, app-like glass cards. */
:root {
    --primary: #7c3aed;
    --primary-2: #a855f7;
    --accent: #f59e0b;
    --accent-2: #facc15;
    --dark-blue: #14112e;
    --ink: #f8fafc;
    --muted-ink: #cbd5e1;
    --soft: #0b1024;
    --glass: rgba(255,255,255,.095);
    --glass-strong: rgba(255,255,255,.14);
    --glass-border: rgba(255,255,255,.18);
    --shadow: 0 28px 70px rgba(2, 6, 23, .38);
    --deep-bg: #080b19;
    --deep-card: rgba(16, 20, 41, .76);
}
html { scroll-behavior: smooth; }
body {
    color: #f8fafc;
    background:
        radial-gradient(circle at 14% 12%, rgba(124,58,237,.42), transparent 30%),
        radial-gradient(circle at 86% 16%, rgba(245,158,11,.22), transparent 28%),
        radial-gradient(circle at 50% 90%, rgba(14,165,233,.20), transparent 32%),
        linear-gradient(135deg, #070814 0%, #111433 42%, #24134b 100%);
    background-attachment: fixed;
}
body::before {
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: .9;
}
body::after {
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.05), transparent 18%),
        radial-gradient(circle at 78% 78%, rgba(255,255,255,.035), transparent 18%);
    z-index:0;
}
.container { position: relative; z-index: 1; }
.text-muted, .text-secondary { color: #cbd5e1 !important; }
.text-dark { color: #f8fafc !important; }
.text-primary { color: #c4b5fd !important; }
.navbar {
    background: rgba(9, 11, 27, .74) !important;
    border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 55px rgba(0,0,0,.28) !important;
}
.navbar-toggler { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.navbar-toggler-icon { filter: invert(1); }
.brand-title { color: #fff; }
.nav-link { color: #e5e7eb !important; }
.nav-link:hover { color: #facc15 !important; }
.navbar .btn-outline-primary,
.btn-outline-primary {
    color: #fff;
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
}
.navbar .btn-outline-primary:hover,
.btn-outline-primary:hover {
    color: #190f30;
    background: linear-gradient(135deg,#facc15,#f59e0b);
    border-color: transparent;
}
.card,
.card-soft,
.feature-box,
.alert,
.dropdown-menu,
.modal-content,
.metric-card,
.quick-action,
.notification-alert,
.notification-card,
.selected-offer-box,
.live-notification-toast .toast-box {
    background: rgba(15, 18, 40, .72) !important;
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,.15) !important;
    box-shadow: 0 26px 70px rgba(0,0,0,.35);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
}
.card,
.card-soft,
.feature-box,
.metric-card,
.notification-card { border-radius: 28px !important; }
.card-header, .card-footer { background: rgba(255,255,255,.045) !important; border-color: rgba(255,255,255,.12) !important; }
.hero,
.hero-app {
    background:
        linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04)),
        radial-gradient(circle at 80% 25%, rgba(245,158,11,.16), transparent 35%);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 35px 90px rgba(0,0,0,.42);
}
.hero::after { background: radial-gradient(circle, rgba(245,158,11,.22), transparent 65%); }
.section-title,
.metric-card .metric-value,
.admin-grid .feature-box h5 { color: #fff; }
.glass-pill,
.university-mark,
.filter-tabs a,
.quick-action,
.notification-line,
.request-timeline span,
.dashboard-list-item {
    color: #f8fafc;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.14);
}
.quick-action:hover,
.feature-box:hover,
.card-soft:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 34px 85px rgba(124,58,237,.24);
    color: #fff;
}
.quick-icon,
.list-icon,
.mini-badge,
.notification-bell,
.notification-card-icon {
    background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(245,158,11,.32));
    color: #fff;
}
.form-label { color: #e5e7eb; font-weight: 800; }
.form-control,
.form-select,
textarea.form-control {
    color: #fff;
    background: rgba(255,255,255,.085);
    border: 1px solid rgba(255,255,255,.16);
    min-height: 48px;
}
.form-control::placeholder { color: rgba(255,255,255,.55); }
.form-control:focus,
.form-select:focus {
    color: #fff;
    background: rgba(255,255,255,.12);
    border-color: rgba(250,204,21,.75);
    box-shadow: 0 0 0 .25rem rgba(245,158,11,.18);
}
.form-select option { color: #111827; }
.btn { border-radius: 16px; }
.btn-primary,
.filter-tabs a.active {
    color: #1b1230 !important;
    background: linear-gradient(135deg, #facc15, #f59e0b) !important;
    border: 0 !important;
    box-shadow: 0 18px 38px rgba(245,158,11,.22);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-success {
    background: linear-gradient(135deg,#22c55e,#14b8a6) !important;
    border: 0 !important;
}
.btn-danger {
    background: linear-gradient(135deg,#ef4444,#f97316) !important;
    border: 0 !important;
}
.btn-light { color:#160f2e; background: rgba(255,255,255,.92); border:0; }
.app-search {
    background: rgba(12, 14, 35, .78);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 22px 60px rgba(0,0,0,.32);
}
.table { color: #f8fafc; }
.table thead th { background: rgba(255,255,255,.08); color:#facc15; border-color: rgba(255,255,255,.12); }
.table tbody td { border-color: rgba(255,255,255,.1); color:#f8fafc; }
.site-footer { background: rgba(8, 11, 25, .72) !important; border-top: 1px solid rgba(255,255,255,.1); color:#dbeafe; }
.plan-diamond { background: linear-gradient(135deg, #8b5cf6, #06b6d4); }
.plan-gold { background: linear-gradient(135deg, #facc15, #f59e0b); color:#1b1230; }
.plan-silver { background: linear-gradient(135deg, #64748b, #e2e8f0); color:#101827; }
.verified-pill { background: rgba(34,197,94,.15); color:#86efac; border-color: rgba(34,197,94,.25); }
.notify-count, .mobile-nav-notify em { background: linear-gradient(135deg,#f43f5e,#f59e0b); border-color: rgba(13,16,38,.96); }
.mobile-bottom-nav {
    background: rgba(11, 14, 32, .82) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    box-shadow: 0 26px 70px rgba(0,0,0,.44) !important;
}
.mobile-bottom-nav a { color: #e5e7eb !important; }
.mobile-bottom-nav a.active { color: #facc15 !important; }
.dropdown-menu .dropdown-item { color:#f8fafc; }
.dropdown-menu .dropdown-item:hover { background:rgba(250,204,21,.15); color:#facc15; }
.alert-danger { background: rgba(239,68,68,.16) !important; color:#fecaca; }
.alert-success { background: rgba(34,197,94,.16) !important; color:#bbf7d0; }
.alert-warning { background: rgba(245,158,11,.16) !important; color:#fde68a; }
.alert-info { background: rgba(14,165,233,.16) !important; color:#bae6fd; }

/* Reference-like login / auth pages */
.auth-shell {
    min-height: calc(100vh - 210px);
    display: grid;
    place-items: center;
    padding: 32px 0;
}
.auth-panel {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(10, 12, 30, .78);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 40px 110px rgba(0,0,0,.55);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
}
.auth-visual {
    position: relative;
    padding: 44px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(250,204,21,.26), transparent 26%),
        radial-gradient(circle at 80% 80%, rgba(124,58,237,.44), transparent 36%),
        linear-gradient(145deg, rgba(124,58,237,.35), rgba(15,23,42,.4));
}
.auth-visual::before,
.auth-visual::after {
    content:"";
    position:absolute;
    border-radius:999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
}
.auth-visual::before { width:190px; height:190px; right:-60px; top:-55px; }
.auth-visual::after { width:270px; height:270px; left:-90px; bottom:-100px; }
.auth-logo-mark {
    width: 92px;
    height: 92px;
    border-radius: 30px;
    padding: 12px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 22px 48px rgba(0,0,0,.3);
}
.auth-visual h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    margin: 24px 0 10px;
    letter-spacing: -1px;
}
.auth-visual p { color: #e2e8f0; font-size: 1.05rem; line-height: 1.9; max-width: 420px; }
.auth-points { display:grid; gap:12px; margin-top:28px; position:relative; z-index:1; }
.auth-points span {
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 12px 14px;
    border-radius:18px;
    background: rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.14);
    color:#fff;
    font-weight:800;
}
.auth-card {
    padding: 46px;
    background: rgba(255,255,255,.055);
}
.auth-card h1 { color:#fff; font-weight:900; letter-spacing:-.5px; }
.auth-card .form-control { min-height: 54px; border-radius:18px; }
.auth-card .btn-lg { min-height: 54px; border-radius:18px; font-weight:900; }
.auth-muted-link { color:#facc15; text-decoration:none; font-weight:900; }
.auth-muted-link:hover { color:#fff; }
@media (max-width: 992px) {
    .auth-panel { grid-template-columns:1fr; }
    .auth-visual { padding:32px; min-height: 320px; }
    .auth-card { padding:32px 22px; }
}
@media (max-width: 768px) {
    .auth-shell { padding: 12px 0 24px; }
    .auth-panel { border-radius:26px; }
    .auth-visual { min-height:260px; }
    .auth-logo-mark { width:74px; height:74px; border-radius:24px; }
}


.auth-gate-note { color:#facc15; font-weight:800; background: rgba(255,255,255,.08); padding: 8px 14px; border-radius: 999px; border:1px solid rgba(255,255,255,.12); }
.auth-logo-main { background: rgba(255,255,255,.08); padding: 8px; }


/* V9 refinements: Qena University branding, transparent logo, and auth UX */
.brand-logo { width: 64px !important; height: 64px !important; object-fit: contain !important; border-radius: 0 !important; padding: 0 !important; background: transparent !important; }
.hero .hero-icon { object-fit: contain !important; filter: drop-shadow(0 24px 42px rgba(0,0,0,.35)); }
#splash img { border-radius: 0 !important; object-fit: contain !important; filter: drop-shadow(0 18px 35px rgba(0,0,0,.45)); }
.auth-logo-large { width: min(240px, 60vw) !important; height: auto !important; max-height: 240px !important; border-radius: 0 !important; padding: 0 !important; background: transparent !important; object-fit: contain !important; filter: drop-shadow(0 26px 48px rgba(0,0,0,.42)); }
.auth-program-panel { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth-university { display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; padding: 8px 18px; border-radius: 999px; color: #facc15; background: rgba(250,204,21,.11); border: 1px solid rgba(250,204,21,.28); font-weight: 900; }
.auth-program-panel h2 { margin-top: 12px !important; margin-bottom: 8px !important; }
.auth-tagline { max-width: 560px !important; text-align: center; }
.auth-program-panel .auth-points { width: min(520px, 100%); }
.auth-program-panel .auth-points span { justify-content: flex-start; text-align: right; }
.offer-actions-cell { min-width: 210px; }
@media (max-width: 768px) {
  .brand-logo { width: 52px !important; height: 52px !important; }
  .auth-logo-large { width: min(190px, 70vw) !important; }
}


.chat-box {
    height: 430px;
    overflow-y: auto;
    padding: 18px;
    border-radius: 24px;
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.12);
}
.chat-message {
    display: flex;
    margin-bottom: 12px;
}
.chat-message.mine { justify-content: flex-start; }
.chat-message.theirs { justify-content: flex-end; }
.chat-bubble {
    max-width: min(78%, 520px);
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.14);
}
.chat-message.mine .chat-bubble {
    background: linear-gradient(135deg, rgba(250,204,21,.22), rgba(124,58,237,.18));
}
.chat-sender { font-size: .78rem; font-weight: 900; opacity: .8; margin-bottom: 3px; }
.chat-time { font-size: .7rem; opacity: .55; margin-top: 5px; direction:ltr; }

.profile-avatar{width:128px;height:128px;border-radius:34px;object-fit:cover;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);box-shadow:0 18px 45px rgba(0,0,0,.22)}


/* V13 fixed media sizes and compact thumbnails */
.fixed-thumb {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    object-fit: cover;
    flex: 0 0 92px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.fixed-thumb-md {
    width: 150px;
    height: 120px;
    border-radius: 20px;
}
.placeholder-thumb {
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 32px;
}
.store-item-card {
    display: flex;
    flex-direction: column;
}
.item-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}
.item-meta-grid div {
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
}
.item-meta-grid span {
    display:block;
    font-size: .76rem;
    color: var(--bs-secondary-color, #94a3b8);
    margin-bottom: 2px;
}
.item-meta-grid strong {
    font-size: .86rem;
}
.product-media,
.market-media,
.service-card .cover,
.offer-card .cover,
.provider-card img.cover {
    width: 100%;
    height: 210px;
    object-fit: cover;
}
.product-media-lg {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 24px;
}
.brand-logo {
    object-fit: contain !important;
}
.auth-logo-mark,
.hero .hero-icon {
    object-fit: contain !important;
}
@media (max-width: 768px) {
    .fixed-thumb { width:78px; height:78px; flex-basis:78px; }
    .item-meta-grid { grid-template-columns:1fr; }
}


/* V15 multi-image galleries */
.thumb-strip {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.thumb-strip img {
    width:52px;
    height:52px;
    object-fit:cover;
    border-radius:12px;
    border:2px solid rgba(255,255,255,.65);
    opacity:.88;
}
.thumb-strip img.active {
    border-color:#0d6efd;
    opacity:1;
    box-shadow:0 8px 18px rgba(13,110,253,.22);
}
.image-choice-box {
    padding:10px;
    border-radius:18px;
    background:rgba(255,255,255,.48);
    border:1px solid rgba(255,255,255,.72);
}
.member-request-cover {
    width:100%;
    height:210px;
    object-fit:cover;
    border-radius:24px 24px 0 0;
}
.request-gallery {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap:10px;
}
.request-gallery img {
    width:100%;
    height:130px;
    object-fit:cover;
    border-radius:18px;
    box-shadow:0 12px 28px rgba(11,42,92,.12);
}


.chat-form { display: grid; gap: .5rem; }
.chat-input-row { display: flex; gap: .5rem; align-items: center; }
.chat-input-row .form-control { min-width: 0; }
.chat-attach-btn { min-width: 54px; display: inline-flex; align-items: center; justify-content: center; }
.chat-text { white-space: pre-wrap; line-height: 1.7; }
.chat-attachment { display: block; margin-top: 8px; text-decoration: none; color: inherit; }
.chat-attachment img { width: min(260px, 100%); max-height: 260px; object-fit: contain; border-radius: 14px; display: block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.22); }
.chat-attachment span { display: block; margin-top: 5px; font-size: .78rem; opacity: .78; word-break: break-word; }
.chat-file-link { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); font-weight: 800; }
.welcome-modal-backdrop { position: fixed; inset: 0; z-index: 100000; background: rgba(11,18,32,.62); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(10px); }
.welcome-modal-card { width: min(520px, 100%); border-radius: 30px; padding: 30px; text-align: center; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.welcome-modal-card .welcome-icon { width: 84px; height: 84px; border-radius: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 42px; background: linear-gradient(135deg, rgba(13,110,253,.16), rgba(250,204,21,.24)); margin-bottom: 14px; }
@media (max-width: 576px) { .chat-input-row { flex-wrap: wrap; } .chat-input-row .form-control { flex: 1 1 100%; } .chat-input-row .btn { flex: 1; } }


/* V19 development pack */
.featured-provider-pill {
    background: rgba(250,204,21,.18) !important;
    color: #fde68a !important;
    border-color: rgba(250,204,21,.32) !important;
}
.unverified-pill {
    display:inline-flex; align-items:center; gap:6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(148,163,184,.12);
    color: #cbd5e1;
    border: 1px solid rgba(148,163,184,.22);
    font-weight: 900;
}
.provider-cover-wrap { position: relative; }
.provider-logo-floating {
    position: absolute;
    right: 28px;
    bottom: -34px;
    width: 112px;
    height: 112px;
    border-radius: 32px;
    object-fit: cover;
    border: 4px solid rgba(15,18,40,.92);
    background: rgba(255,255,255,.10);
    box-shadow: 0 22px 50px rgba(0,0,0,.32);
}
.provider-mini-cover {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 22px;
}
.provider-mini-logo {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 24px;
    border: 2px solid rgba(255,255,255,.18);
}
.review-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.18);
}
.accordion-item, .accordion-button {
    background: rgba(255,255,255,.06) !important;
    color: #f8fafc !important;
    border-color: rgba(255,255,255,.12) !important;
}
.accordion-button:not(.collapsed) { box-shadow: none; color:#facc15 !important; }
.input-group .form-control[readonly] { background: rgba(255,255,255,.10); }
@media (max-width: 768px) {
    .provider-logo-floating { width:86px; height:86px; right:18px; bottom:-24px; border-radius:24px; }
}


/* V20 review fixes */
.default-object-fit-contain { object-fit: contain !important; background: rgba(255,255,255,.10); }
.provider-logo-floating { object-fit: contain; background: rgba(255,255,255,.96); }
.provider-card-logo { width: 58px; height: 58px; border-radius: 18px; object-fit: contain; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.card-mini-logo-row { display:flex; align-items:center; gap:10px; }
.gallery-main-img { width:100%; height:210px; object-fit:cover; }
.offer-like-item-card .product-media { border-radius: 24px 24px 0 0; }
.request-gallery img, .thumb-strip img { background: rgba(255,255,255,.15); }

/* v21 from v20 feature polish */
.home-banner-slider { box-shadow: 0 22px 55px rgba(11, 42, 92, .12); border-radius: 34px; overflow: hidden; }
.home-banner-img { height: clamp(180px, 32vw, 420px); object-fit: cover; background: #fff7ed; }
.home-banner-caption { background: rgba(18,52,93,.45); border-radius: 18px; backdrop-filter: blur(10px); }
.welcome-modal-backdrop { animation: welcomeFade .25s ease both; }
.welcome-modal-card { animation: welcomePop .45s cubic-bezier(.2,1.2,.3,1) both; max-width: 430px; }
.welcome-icon { font-size: 3.5rem; filter: drop-shadow(0 10px 20px rgba(255,193,7,.35)); }
@keyframes welcomeFade { from { opacity:0 } to { opacity:1 } }
@keyframes welcomePop { from { transform: translateY(20px) scale(.92); opacity:0 } to { transform: translateY(0) scale(1); opacity:1 } }
@media (max-width: 991.98px){
  .mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100vh;
    padding: 96px 18px 24px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(22px);
    box-shadow: -20px 0 55px rgba(13,55,100,.18);
    border-radius: 0 0 0 30px;
    transform: translateX(105%);
    transition: transform .32s ease;
    overflow-y: auto;
    z-index: 1040;
  }
  .mobile-nav-panel.show { transform: translateX(0); }
  .navbar-toggler { z-index: 1051; }
  .navbar .dropdown-menu { border: 0; background: rgba(13,110,253,.06); border-radius: 18px; padding: 10px; margin: 6px 0 12px; animation: menuDrop .18s ease both; }
  .navbar .dropdown-item { border-radius: 12px; font-weight: 700; padding: 10px 12px; }
  .navbar-nav .nav-link { padding: 11px 12px; border-radius: 14px; }
  .navbar-nav .nav-link:hover { background: rgba(13,110,253,.08); }
}
@keyframes menuDrop { from { opacity:0; transform: translateY(-6px) } to { opacity:1; transform: translateY(0) } }

/* v22 details/cards polish from v21 */
.detail-main-image {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(11,42,92,.12);
    background: #fff;
}
.detail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.detail-gallery img {
    width: 92px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid rgba(13,110,253,.12);
    background: #fff;
}
.provider-mini-cover {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    min-height: 170px;
    background: rgba(255,255,255,.7);
}
.provider-mini-cover > img:first-child {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}
.provider-mini-logo {
    position: absolute;
    right: 18px;
    bottom: 14px;
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
    background: #fff;
}
.provider-card .cover,
.service-card .cover,
.offer-like-item-card .product-media,
.market-media,
.member-request-cover {
    min-height: 210px;
    max-height: 210px;
    object-fit: cover;
}
.provider-card-logo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 18px;
    background: #fff;
}
.action-row .btn.flex-fill {
    min-width: 0;
}
@media (max-width: 768px) {
    .detail-main-image { height: 280px; border-radius: 22px; }
    .provider-mini-cover, .provider-mini-cover > img:first-child { min-height: 140px; height: 140px; }
    .provider-mini-logo { width: 62px; height: 62px; border-radius: 20px; }
    .action-row { gap: 8px; }
    .action-row .btn { padding-inline: 10px; }
}


.training-card .market-media { height: 210px; object-fit: cover; }
.training-lessons-list .list-group-item { border-radius: 14px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,.45); }
.training-lessons-list .list-group-item.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; }


/* v26 focused UI fixes */
.home-search-only { max-width: 1080px; margin-inline: auto; }
.provider-card .cover { height: 170px; object-fit: cover; }
.provider-card .card-body { min-height: 190px; }
.provider-card-logo { width: 58px; height: 58px; border-radius: 18px; object-fit: cover; background:#fff; box-shadow: 0 10px 25px rgba(0,0,0,.12); }
.provider-cover-wrap { position: relative; border-radius: 32px; overflow: visible; margin-bottom: 72px !important; }
.provider-hero-img { width: 100%; height: clamp(180px, 28vw, 340px); object-fit: cover; border-radius: 32px; display:block; }
.provider-logo-floating { position: absolute; right: 28px; bottom: -48px; width: 104px; height:104px; object-fit: cover; border-radius: 28px; border: 5px solid rgba(255,255,255,.9); background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
@media (max-width: 576px) {
  .provider-card .cover { height: 155px; }
  .provider-card-logo { width: 52px; height: 52px; }
  .provider-logo-floating { width:82px; height:82px; right:18px; bottom:-38px; border-radius:22px; }
  .provider-cover-wrap { margin-bottom: 58px !important; }
}

/* v27 home cards + certificates */
.home-main-cards { position: relative; z-index: 1; }
.home-app-card {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    min-height: 235px;
    padding: 24px;
    border-radius: 30px;
    color: #173557;
    text-decoration: none;
    background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.38));
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: 0 24px 55px rgba(11,42,92,.13), inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.home-app-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    left: -45px;
    bottom: -55px;
    opacity: .22;
    background: currentColor;
}
.home-app-card:hover { transform: translateY(-7px) scale(1.01); box-shadow: 0 34px 75px rgba(11,42,92,.18); color: #0d3764; }
.home-app-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    border-radius: 23px;
    background: rgba(255,255,255,.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 25px rgba(11,42,92,.10);
}
.home-app-title { font-size: 1.22rem; font-weight: 900; }
.home-app-desc { color: #5b7189; line-height: 1.8; flex-grow: 1; }
.home-app-btn { font-weight: 900; color: var(--primary); }
.home-card-blue { color: #0d6efd; }
.home-card-cyan { color: #0aa3ff; }
.home-card-orange { color: #f59f00; }
.home-card-pink { color: #d63384; }
.home-card-purple { color: #6f42c1; }
.home-card-green { color: #198754; }
.complete-icon { font-size: 4rem; line-height: 1; filter: drop-shadow(0 12px 18px rgba(245,159,0,.22)); }
.course-complete-card { background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,248,220,.7)) !important; }
.certificate-sheet {
    max-width: 980px;
    background: #fffdf7;
    padding: 22px;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(11,42,92,.16);
}
.certificate-border {
    border: 5px double #c99a2e;
    border-radius: 22px;
    min-height: 650px;
    padding: 48px 42px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 15%, rgba(13,110,253,.08), transparent 26%),
        radial-gradient(circle at 85% 15%, rgba(245,159,0,.14), transparent 28%),
        linear-gradient(135deg, #fffdf7, #f8fbff);
}
.certificate-logo { font-size: 2rem; font-weight: 900; color: var(--dark-blue); }
.certificate-subtitle { color: #a07011; font-weight: 800; margin-bottom: 1rem; }
.certificate-border h1 { font-size: 2.4rem; font-weight: 900; color: #173557; margin-bottom: 2rem; }
.cert-line { font-size: 1.15rem; color: #5b7189; }
.student-name, .course-name {
    display: inline-block;
    min-width: 65%;
    padding: 12px 24px;
    margin: 10px 0 18px;
    border-bottom: 2px solid #c99a2e;
    font-size: 2rem;
    font-weight: 900;
    color: #12345d;
}
.course-name { font-size: 1.55rem; }
.cert-message { max-width: 720px; margin: 16px auto 28px; color: #50677f; line-height: 2; }
.cert-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 25px; color: #29445f; }
.signature-box { margin-top: 42px; text-align: left; }
.signature-name { display:inline-block; min-width: 220px; border-top: 2px solid #173557; padding-top: 10px; font-size: 1.35rem; font-weight: 900; color: #173557; text-align: center; }
.signature-title { color: #6a7c91; margin-top: 4px; }
@media (max-width: 767px) {
    .home-app-card { min-height: 210px; padding: 20px; }
    .cert-meta { flex-direction: column; align-items: center; }
    .certificate-border { padding: 32px 18px; }
    .student-name, .course-name { min-width: 100%; font-size: 1.35rem; }
}
@media print {
    .navbar, .site-footer, .certificate-actions { display:none !important; }
    body { background:#fff !important; }
    body::before { display:none !important; }
    .certificate-sheet { box-shadow:none; max-width:100%; padding:0; }
}

/* v28 color, compact cards, menu ordering/animation polish
   Final visual layer: calm Ibn Balady identity, cleaner cards, smoother navigation. */
:root {
    --primary: #15803d;
    --primary-2: #22c55e;
    --accent: #f59e0b;
    --accent-2: #facc15;
    --dark-blue: #123524;
    --ink: #10231a;
    --muted-ink: #64748b;
    --soft: #f5fbf6;
    --glass: rgba(255,255,255,.72);
    --glass-strong: rgba(255,255,255,.86);
    --glass-border: rgba(255,255,255,.78);
    --shadow: 0 18px 44px rgba(17, 86, 49, .12);
    --deep-bg: #f5fbf6;
    --deep-card: rgba(255,255,255,.82);
}
body {
    color: var(--ink) !important;
    background:
        radial-gradient(circle at 10% 8%, rgba(34,197,94,.18), transparent 26%),
        radial-gradient(circle at 86% 16%, rgba(250,204,21,.20), transparent 28%),
        radial-gradient(circle at 50% 92%, rgba(14,165,233,.10), transparent 34%),
        linear-gradient(135deg, #f7fff8 0%, #effaf2 48%, #fefce8 100%) !important;
    background-attachment: fixed !important;
}
body::before {
    background-image:
        linear-gradient(rgba(20,83,45,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20,83,45,.045) 1px, transparent 1px) !important;
    opacity: 1;
}
body::after { display: none; }
.text-muted, .text-secondary { color: #64748b !important; }
.text-dark { color: var(--ink) !important; }
.text-primary { color: var(--primary) !important; }
.navbar {
    background: rgba(255,255,255,.84) !important;
    border-bottom: 1px solid rgba(21,128,61,.12) !important;
    box-shadow: 0 14px 34px rgba(17,86,49,.10) !important;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.brand-title, .section-title, .metric-card .metric-value, .admin-grid .feature-box h5 { color: var(--dark-blue) !important; }
.nav-link {
    color: #1f3b2c !important;
    border-radius: 14px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-link:hover,
.nav-link:focus {
    color: var(--primary) !important;
    background: rgba(34,197,94,.10);
    transform: translateY(-1px);
}
.dropdown-menu {
    background: rgba(255,255,255,.96) !important;
    color: var(--ink) !important;
    border: 1px solid rgba(21,128,61,.12) !important;
    box-shadow: 0 20px 45px rgba(17,86,49,.14) !important;
    border-radius: 22px !important;
    padding: 10px !important;
    animation: v28MenuIn .18s ease both;
}
.dropdown-menu .dropdown-item {
    color: #183529 !important;
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 800;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(250,204,21,.16)) !important;
    color: #0f5f32 !important;
    transform: translateX(-3px);
}
.dropdown-divider { border-color: rgba(21,128,61,.12); }
@keyframes v28MenuIn { from { opacity:0; transform: translateY(8px) scale(.98); } to { opacity:1; transform: translateY(0) scale(1); } }
.navbar-toggler { border-color: rgba(21,128,61,.18) !important; background: rgba(255,255,255,.68) !important; }
.navbar-toggler-icon { filter: none !important; }
.card,
.card-soft,
.feature-box,
.alert,
.modal-content,
.metric-card,
.quick-action,
.notification-alert,
.notification-card,
.selected-offer-box,
.live-notification-toast .toast-box,
.request-timeline span,
.dashboard-list-item,
.glass-pill,
.university-mark,
.filter-tabs a {
    background: rgba(255,255,255,.78) !important;
    color: var(--ink) !important;
    border: 1px solid rgba(255,255,255,.86) !important;
    box-shadow: var(--shadow) !important;
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.card,
.card-soft,
.feature-box,
.metric-card,
.notification-card { border-radius: 24px !important; }
.card-header, .card-footer { background: rgba(255,255,255,.58) !important; border-color: rgba(21,128,61,.10) !important; }
.hero,
.hero-app {
    background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.48)) !important;
    border: 1px solid rgba(255,255,255,.86) !important;
    box-shadow: 0 24px 58px rgba(17,86,49,.13) !important;
}
.hero::after { background: radial-gradient(circle, rgba(34,197,94,.18), transparent 65%) !important; }
.form-label { color: #244236 !important; font-weight: 800; }
.form-control,
.form-select,
textarea.form-control {
    color: #123524 !important;
    background: rgba(255,255,255,.84) !important;
    border: 1px solid rgba(21,128,61,.14) !important;
}
.form-control::placeholder { color: rgba(36,66,54,.55) !important; }
.form-control:focus,
.form-select:focus {
    color: #123524 !important;
    background: #fff !important;
    border-color: rgba(21,128,61,.55) !important;
    box-shadow: 0 0 0 .25rem rgba(34,197,94,.15) !important;
}
.form-select option { color: #111827; }
.btn { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary,
.filter-tabs a.active {
    color: #fff !important;
    background: linear-gradient(135deg, #15803d, #22c55e) !important;
    border: 0 !important;
    box-shadow: 0 14px 28px rgba(21,128,61,.22) !important;
}
.btn-warning {
    color: #3a2700 !important;
    background: linear-gradient(135deg, #facc15, #f59e0b) !important;
    border: 0 !important;
    box-shadow: 0 14px 28px rgba(245,158,11,.18) !important;
}
.btn-outline-primary,
.navbar .btn-outline-primary {
    color: var(--primary) !important;
    border-color: rgba(21,128,61,.28) !important;
    background: rgba(255,255,255,.68) !important;
}
.btn-outline-primary:hover,
.navbar .btn-outline-primary:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #15803d, #22c55e) !important;
    border-color: transparent !important;
}
.btn-light { color: var(--ink) !important; background: #fff !important; }
.app-search {
    background: rgba(255,255,255,.86) !important;
    border: 1px solid rgba(255,255,255,.9) !important;
    box-shadow: 0 16px 36px rgba(17,86,49,.10) !important;
}
.table { color: var(--ink) !important; }
.table thead th { background: rgba(21,128,61,.07) !important; color:#14532d !important; border-color: rgba(21,128,61,.10) !important; }
.table tbody td { border-color: rgba(21,128,61,.08) !important; color:var(--ink) !important; }
.site-footer { background: rgba(255,255,255,.76) !important; border-top: 1px solid rgba(21,128,61,.12) !important; color:#294638 !important; }
.quick-icon,
.list-icon,
.mini-badge,
.notification-bell,
.notification-card-icon {
    background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(250,204,21,.24)) !important;
    color: var(--primary) !important;
}
.verified-pill { background: rgba(34,197,94,.12) !important; color:#0f7a50 !important; border-color: rgba(34,197,94,.22) !important; }
.featured-provider-pill { background: rgba(250,204,21,.18) !important; color: #8a5a00 !important; border-color: rgba(250,204,21,.28) !important; }
.alert-danger { background: rgba(239,68,68,.12) !important; color:#991b1b !important; }
.alert-success { background: rgba(34,197,94,.12) !important; color:#166534 !important; }
.alert-warning { background: rgba(245,158,11,.14) !important; color:#7c4a03 !important; }
.alert-info { background: rgba(14,165,233,.12) !important; color:#075985 !important; }

/* Compact six home cards */
.home-main-cards { margin-top: 18px; }
.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}
.home-app-card.compact-home-card {
    min-height: 118px !important;
    padding: 16px 10px !important;
    border-radius: 24px !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px !important;
    color: #123524 !important;
    background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.58)) !important;
    border: 1px solid rgba(255,255,255,.9) !important;
    box-shadow: 0 16px 34px rgba(17,86,49,.10), inset 0 1px 0 rgba(255,255,255,.92) !important;
    animation: v28CardIn .38s ease both;
}
.home-app-card.compact-home-card:nth-child(1) { animation-delay: .02s; }
.home-app-card.compact-home-card:nth-child(2) { animation-delay: .05s; }
.home-app-card.compact-home-card:nth-child(3) { animation-delay: .08s; }
.home-app-card.compact-home-card:nth-child(4) { animation-delay: .11s; }
.home-app-card.compact-home-card:nth-child(5) { animation-delay: .14s; }
.home-app-card.compact-home-card:nth-child(6) { animation-delay: .17s; }
.home-app-card.compact-home-card::before {
    width: 92px !important;
    height: 92px !important;
    left: -32px !important;
    bottom: -34px !important;
    opacity: .12 !important;
}
.home-app-card.compact-home-card:hover,
.home-app-card.compact-home-card:focus {
    transform: translateY(-5px) scale(1.018) !important;
    box-shadow: 0 24px 52px rgba(17,86,49,.16) !important;
    color: #0f5f32 !important;
}
.home-app-card.compact-home-card .home-app-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 18px !important;
    font-size: 1.65rem !important;
    background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(250,204,21,.18)) !important;
}
.home-app-card.compact-home-card .home-app-title {
    font-size: .92rem !important;
    line-height: 1.45;
    color: #173526 !important;
    max-width: 100%;
}
.home-app-desc,
.home-app-btn { display: none !important; }
.home-card-blue .home-app-icon { color:#2563eb !important; }
.home-card-cyan .home-app-icon { color:#0891b2 !important; }
.home-card-orange .home-app-icon { color:#d97706 !important; }
.home-card-pink .home-app-icon { color:#be185d !important; }
.home-card-purple .home-app-icon { color:#7c3aed !important; }
.home-card-green .home-app-icon { color:#15803d !important; }
@keyframes v28CardIn { from { opacity:0; transform: translateY(10px) scale(.98); } to { opacity:1; transform: translateY(0) scale(1); } }

/* General card/menu micro-interactions */
.card,
.card-soft,
.feature-box,
.service-card,
.provider-card,
.offer-card,
.store-item-card,
.market-card,
.training-card,
.quick-action {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover,
.card-soft:hover,
.feature-box:hover,
.service-card:hover,
.provider-card:hover,
.offer-card:hover,
.store-item-card:hover,
.market-card:hover,
.training-card:hover,
.quick-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(17,86,49,.14) !important;
    border-color: rgba(34,197,94,.24) !important;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 1199.98px) {
    .home-cards-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 576px) {
    .home-cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .home-app-card.compact-home-card { min-height: 104px !important; border-radius: 20px !important; padding: 12px 8px !important; }
    .home-app-card.compact-home-card .home-app-icon { width: 46px !important; height: 46px !important; border-radius: 16px !important; font-size: 1.42rem !important; }
    .home-app-card.compact-home-card .home-app-title { font-size: .82rem !important; }
    .mobile-nav-panel {
        background: rgba(255,255,255,.96) !important;
        border-left: 1px solid rgba(21,128,61,.12) !important;
        box-shadow: -20px 0 55px rgba(17,86,49,.14) !important;
        transition: transform .28s cubic-bezier(.2,.8,.2,1) !important;
    }
    .navbar .dropdown-menu { background: rgba(21,128,61,.06) !important; border: 1px solid rgba(21,128,61,.08) !important; }
    .mobile-bottom-nav {
        background: rgba(255,255,255,.90) !important;
        border: 1px solid rgba(255,255,255,.88) !important;
        box-shadow: 0 18px 44px rgba(17,86,49,.16) !important;
    }
    .mobile-bottom-nav a { color: #214433 !important; transition: transform .18s ease, color .18s ease; }
    .mobile-bottom-nav a.active { color: var(--primary) !important; }
    .mobile-bottom-nav a:hover { transform: translateY(-2px); color: var(--primary) !important; }
}

/* V29 Dark Glass full-site polish + WhatsApp-like messages + PWA prompt */
:root {
    --primary: #22c55e !important;
    --primary-2: #16a34a !important;
    --accent: #facc15 !important;
    --accent-2: #f59e0b !important;
    --dark-blue: #eafdf2 !important;
    --ink: #f8fafc !important;
    --muted-glass: #a7f3d0;
    --soft: #070b13 !important;
    --glass: rgba(10, 18, 28, .66) !important;
    --glass-strong: rgba(12, 24, 36, .82) !important;
    --glass-border: rgba(255,255,255,.13) !important;
    --shadow: 0 26px 70px rgba(0,0,0,.42) !important;
}
html { background:#05080f; }
body {
    color: var(--ink) !important;
    background:
        radial-gradient(circle at 12% 4%, rgba(34,197,94,.20), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(250,204,21,.12), transparent 26%),
        radial-gradient(circle at 52% 96%, rgba(14,165,233,.12), transparent 34%),
        linear-gradient(135deg, #05080f 0%, #07121b 42%, #0b1723 100%) !important;
    background-attachment: fixed !important;
}
body::before {
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) !important;
    opacity:.9;
}
body::after {
    content:"";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 22%, rgba(0,0,0,.18));
    z-index: 0;
}
.container, .container-fluid, nav, footer { position: relative; z-index: 1; }
.text-dark, .text-muted, .text-secondary { color: rgba(226,232,240,.72) !important; }
.text-warning { color: var(--accent) !important; }
a { color: #86efac; }
a:hover { color: #facc15; }
.navbar,
.site-footer,
.mobile-bottom-nav,
.mobile-nav-panel,
.card,
.card-soft,
.feature-box,
.metric-card,
.quick-action,
.notification-alert,
.notification-card,
.selected-offer-box,
.dashboard-list-item,
.modal-content,
.dropdown-menu,
.alert,
.hero,
.hero-app,
.app-search,
.auth-panel,
.table-responsive,
.system-check-card,
.certificate-card,
.training-card,
.market-card,
.provider-card,
.offer-card,
.store-item-card,
.service-card {
    background: linear-gradient(145deg, rgba(13,22,34,.78), rgba(7,15,25,.58)) !important;
    color: var(--ink) !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    box-shadow: 0 26px 72px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06) !important;
    backdrop-filter: blur(22px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
}
.navbar { border-bottom: 1px solid rgba(255,255,255,.12) !important; }
.brand-title, .section-title, h1, h2, h3, h4, h5, h6, .fw-bold, .admin-grid .feature-box h5 { color: #f8fafc !important; }
.nav-link, .navbar .nav-link, .navbar .text-dark { color: rgba(248,250,252,.86) !important; }
.nav-link:hover, .navbar .nav-link:hover { color: var(--accent) !important; }
.dropdown-menu { padding: 10px !important; border-radius: 20px !important; animation: v29MenuIn .18s ease both; }
.dropdown-item { color: rgba(248,250,252,.88) !important; border-radius: 14px; font-weight: 800; padding: 10px 12px; transition: transform .18s ease, background .18s ease, color .18s ease; }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(34,197,94,.16) !important; color: #bbf7d0 !important; transform: translateX(-3px); }
.dropdown-divider { border-color: rgba(255,255,255,.12) !important; }
.navbar-toggler { border-color: rgba(255,255,255,.2) !important; background: rgba(255,255,255,.08); }
.form-label { color: #d1fae5 !important; }
.form-control,
.form-select,
textarea.form-control,
.input-group-text {
    color: #f8fafc !important;
    background: rgba(2,8,16,.55) !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.form-control::placeholder { color: rgba(226,232,240,.48) !important; }
.form-control:focus,
.form-select:focus {
    color: #fff !important;
    background: rgba(3,12,24,.72) !important;
    border-color: rgba(34,197,94,.55) !important;
    box-shadow: 0 0 0 .25rem rgba(34,197,94,.15), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.form-select option { color: #111827; background: #f8fafc; }
.btn-primary,
.filter-tabs a.active {
    color: #02130a !important;
    background: linear-gradient(135deg, #facc15, #22c55e) !important;
    border: 0 !important;
    box-shadow: 0 16px 34px rgba(34,197,94,.24) !important;
}
.btn-outline-primary,
.navbar .btn-outline-primary {
    color: #bbf7d0 !important;
    border-color: rgba(34,197,94,.32) !important;
    background: rgba(34,197,94,.08) !important;
}
.btn-outline-primary:hover,
.navbar .btn-outline-primary:hover {
    color: #06120b !important;
    background: linear-gradient(135deg, #facc15, #22c55e) !important;
}
.btn-light { background: rgba(255,255,255,.12) !important; color:#f8fafc !important; border: 1px solid rgba(255,255,255,.16) !important; }
.btn-danger { background: linear-gradient(135deg,#ef4444,#f97316) !important; border:0 !important; }
.btn-success { background: linear-gradient(135deg,#15803d,#22c55e) !important; border:0 !important; }
.table { color: #f8fafc !important; }
.table thead th { background: rgba(34,197,94,.12) !important; color:#facc15 !important; border-color: rgba(255,255,255,.12) !important; }
.table tbody td { border-color: rgba(255,255,255,.08) !important; color:#e5e7eb !important; }
.glass-pill,
.university-mark,
.filter-tabs a,
.badge,
.verified-pill,
.featured-provider-pill {
    background: rgba(255,255,255,.08) !important;
    color: #d1fae5 !important;
    border: 1px solid rgba(255,255,255,.13) !important;
}
.quick-icon,
.list-icon,
.mini-badge,
.notification-bell,
.notification-card-icon,
.home-app-card.compact-home-card .home-app-icon {
    background: linear-gradient(135deg, rgba(34,197,94,.20), rgba(250,204,21,.18)) !important;
    color: #facc15 !important;
    border: 1px solid rgba(255,255,255,.12);
}
.home-app-card.compact-home-card {
    min-height: 92px !important;
    color: #f8fafc !important;
    background: linear-gradient(145deg, rgba(15, 26, 38, .82), rgba(5, 14, 24, .66)) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    box-shadow: 0 22px 56px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.home-app-card.compact-home-card:hover,
.home-app-card.compact-home-card:focus {
    color: #facc15 !important;
    transform: translateY(-5px) scale(1.025) !important;
    border-color: rgba(250,204,21,.32) !important;
}
.home-app-card.compact-home-card .home-app-title { color:#f8fafc !important; font-size:.88rem !important; }
.home-app-card.compact-home-card:hover .home-app-title { color:#facc15 !important; }
.card:hover,
.card-soft:hover,
.feature-box:hover,
.service-card:hover,
.provider-card:hover,
.offer-card:hover,
.store-item-card:hover,
.market-card:hover,
.training-card:hover,
.quick-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 34px 86px rgba(0,0,0,.46), 0 0 0 1px rgba(250,204,21,.10) !important;
    border-color: rgba(250,204,21,.26) !important;
}
.alert-success { background: rgba(34,197,94,.14) !important; color:#bbf7d0 !important; }
.alert-warning { background: rgba(250,204,21,.14) !important; color:#fde68a !important; }
.alert-danger { background: rgba(239,68,68,.14) !important; color:#fecaca !important; }
.alert-info { background: rgba(14,165,233,.14) !important; color:#bae6fd !important; }
.site-footer { color: rgba(226,232,240,.78) !important; }
.mobile-bottom-nav { background: rgba(4,10,20,.86) !important; border:1px solid rgba(255,255,255,.14) !important; }
.mobile-bottom-nav a { color: rgba(248,250,252,.75) !important; }
.mobile-bottom-nav a.active, .mobile-bottom-nav a:hover { color: var(--accent) !important; }
@keyframes v29MenuIn { from { opacity:0; transform: translateY(8px) scale(.985); } to { opacity:1; transform: translateY(0) scale(1); } }

/* WhatsApp-like messages */
.messages-shell {
    display: grid;
    grid-template-columns: 360px minmax(0,1fr);
    gap: 18px;
    min-height: calc(100vh - 220px);
}
.messages-sidebar,
.messages-chat { overflow: hidden; border-radius: 28px !important; }
.messages-sidebar-head,
.messages-chat-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:18px;
    border-bottom:1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.035);
}
.messages-count,
.conversation-unread {
    min-width: 28px;
    height: 28px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    color:#05220f;
    background:linear-gradient(135deg,#facc15,#22c55e);
}
.messages-list { max-height: calc(100vh - 290px); overflow:auto; padding: 10px; }
.conversation-row {
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:20px;
    color:inherit;
    text-decoration:none;
    border:1px solid transparent;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.conversation-row:hover,
.conversation-row.active {
    color:#f8fafc;
    background:rgba(34,197,94,.12);
    border-color:rgba(34,197,94,.22);
    transform:translateX(-3px);
}
.conversation-avatar {
    width:48px;
    height:48px;
    border-radius:18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 48px;
    background:linear-gradient(135deg,rgba(34,197,94,.20),rgba(250,204,21,.16));
    border:1px solid rgba(255,255,255,.14);
    font-size:1.35rem;
}
.conversation-avatar.big { width:58px; height:58px; flex-basis:58px; border-radius:22px; }
.conversation-main { min-width:0; flex:1; }
.conversation-topline { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.conversation-topline strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.conversation-topline small { color:rgba(226,232,240,.48); direction:ltr; white-space:nowrap; font-size:.68rem; }
.conversation-title { color:rgba(209,250,229,.75); font-size:.78rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.conversation-preview { color:rgba(226,232,240,.56); font-size:.76rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.messages-chat { display:flex; flex-direction:column; min-height: 640px; }
.messages-chat .chat-box,
.whatsapp-chat-box {
    flex:1;
    height:auto !important;
    min-height:460px;
    margin:0 !important;
    border-radius:0 !important;
    border-inline:0 !important;
    background:
        radial-gradient(circle at 12% 10%, rgba(34,197,94,.08), transparent 25%),
        radial-gradient(circle at 90% 90%, rgba(250,204,21,.06), transparent 28%),
        rgba(0,0,0,.16) !important;
}
.chat-message.mine { justify-content:flex-start !important; }
.chat-message.theirs { justify-content:flex-end !important; }
.chat-bubble {
    border-radius: 20px 20px 6px 20px !important;
    background: rgba(255,255,255,.08) !important;
    color:#f8fafc !important;
    border:1px solid rgba(255,255,255,.12) !important;
    box-shadow:0 12px 30px rgba(0,0,0,.18);
}
.chat-message.mine .chat-bubble {
    border-radius: 20px 20px 20px 6px !important;
    color:#05170c !important;
    background: linear-gradient(135deg, rgba(250,204,21,.95), rgba(34,197,94,.88)) !important;
    border-color: rgba(255,255,255,.18) !important;
}
.chat-message.mine .chat-sender,
.chat-message.mine .chat-time { color:rgba(5,23,12,.72) !important; }
.chat-sender { color:#bbf7d0; }
.chat-time { color:rgba(226,232,240,.56); }
.whatsapp-compose {
    padding: 14px;
    border-top:1px solid rgba(255,255,255,.10);
    background:rgba(2,8,16,.38);
}
.chat-input-row .form-control { border-radius:999px !important; }
.chat-attach-btn { border-radius:999px !important; }
.messages-empty-panel { margin:auto; padding:40px; }
.empty-state-mini { color:#e5e7eb; }

/* PWA install prompt */
.pwa-install-hint {
    display:none;
    background: linear-gradient(145deg, rgba(10,18,28,.92), rgba(4,10,18,.86)) !important;
    color:#f8fafc !important;
    border:1px solid rgba(250,204,21,.20) !important;
    box-shadow:0 26px 75px rgba(0,0,0,.48) !important;
    border-radius:24px !important;
    animation:v29PwaIn .24s ease both;
}
.pwa-install-hint.show { display:block !important; }
@keyframes v29PwaIn { from { opacity:0; transform: translateY(12px) scale(.98); } to { opacity:1; transform: translateY(0) scale(1); } }

@media (max-width: 991.98px) {
    .messages-shell { grid-template-columns: 1fr; }
    .messages-sidebar { max-height: 330px; }
    .messages-list { max-height: 230px; }
    .messages-chat { min-height: calc(100vh - 260px); }
    .messages-chat .chat-box, .whatsapp-chat-box { min-height: 360px; }
    .messages-chat-head { align-items:flex-start; }
}
@media (max-width: 576px) {
    .messages-shell { gap: 12px; }
    .messages-sidebar-head, .messages-chat-head { padding:14px; }
    .conversation-row { padding:10px; border-radius:18px; }
    .conversation-avatar { width:42px; height:42px; flex-basis:42px; border-radius:16px; }
    .messages-chat .action-row { width:100%; }
    .messages-chat .action-row .btn { flex:1; }
    .chat-bubble { max-width: 88% !important; }
    .pwa-install-hint { left:14px; right:14px; bottom:98px; max-width:none; }
}

/* v30 professional guided chatbot */
.ibn-chatbot{position:fixed;left:18px;bottom:92px;z-index:9998;font-family:'Cairo',sans-serif;direction:rtl}
.ibn-chatbot-toggle{position:relative;border:1px solid rgba(255,255,255,.20);background:linear-gradient(135deg,rgba(16,185,129,.92),rgba(245,158,11,.90));color:#fff;border-radius:999px;padding:12px 16px;display:flex;align-items:center;gap:9px;box-shadow:0 18px 55px rgba(0,0,0,.40);backdrop-filter:blur(18px);font-weight:900;transition:.25s ease;overflow:hidden}
.ibn-chatbot-toggle:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 24px 70px rgba(16,185,129,.28)}
.ibn-chatbot.hint .ibn-chatbot-toggle{animation:chatbotNudge 1.1s ease-in-out 2}
.chatbot-pulse{position:absolute;inset:-6px;border-radius:999px;border:2px solid rgba(16,185,129,.28);animation:chatbotPulse 2.2s infinite;pointer-events:none}
.chatbot-icon{font-size:22px;filter:drop-shadow(0 6px 15px rgba(0,0,0,.28))}.chatbot-label{font-size:14px;white-space:nowrap}
.ibn-chatbot-panel{position:absolute;left:0;bottom:62px;width:min(380px,calc(100vw - 28px));height:560px;max-height:calc(100vh - 135px);display:none;flex-direction:column;border-radius:26px;overflow:hidden;background:linear-gradient(160deg,rgba(10,15,29,.92),rgba(16,24,39,.86));border:1px solid rgba(255,255,255,.15);box-shadow:0 24px 85px rgba(0,0,0,.58);backdrop-filter:blur(24px);color:#f8fafc;transform-origin:bottom left}
.ibn-chatbot.open .ibn-chatbot-panel{display:flex;animation:chatbotOpen .22s ease both}
.ibn-chatbot-header{display:flex;align-items:center;gap:12px;padding:14px 15px;background:linear-gradient(135deg,rgba(16,185,129,.20),rgba(245,158,11,.15));border-bottom:1px solid rgba(255,255,255,.12)}
.chatbot-avatar{width:44px;height:44px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.12);font-size:24px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.ibn-chatbot-header strong{display:block;font-size:16px}.ibn-chatbot-header small{display:block;color:rgba(255,255,255,.66);font-size:12px}.ibn-chatbot-close{border:0;background:rgba(255,255,255,.11);color:#fff;border-radius:14px;width:34px;height:34px;font-size:24px;line-height:1;transition:.2s}.ibn-chatbot-close:hover{background:rgba(239,68,68,.32);transform:rotate(8deg)}
.ibn-chatbot-body{flex:1;padding:15px;overflow:auto;background:radial-gradient(circle at top right,rgba(16,185,129,.14),transparent 34%),radial-gradient(circle at bottom left,rgba(245,158,11,.10),transparent 38%)}
.ibn-chatbot-bubble{max-width:88%;padding:11px 13px;border-radius:18px;margin:0 0 10px;line-height:1.65;font-size:13.5px;box-shadow:0 10px 30px rgba(0,0,0,.18);animation:chatbotBubble .20s ease both;white-space:pre-wrap}
.ibn-chatbot-bubble.bot{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.11);color:#f8fafc;border-bottom-right-radius:6px;margin-left:auto}
.ibn-chatbot-bubble.user{background:linear-gradient(135deg,rgba(16,185,129,.90),rgba(5,150,105,.88));color:white;border-bottom-left-radius:6px;margin-right:auto;text-align:right}
.ibn-chatbot-options{display:grid;gap:8px;margin-top:10px}.ibn-chatbot-option{border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.085);color:#fff;text-align:right;border-radius:15px;padding:10px 12px;font-weight:800;font-size:13px;transition:.18s ease}.ibn-chatbot-option:hover{transform:translateX(-3px);background:rgba(16,185,129,.22);border-color:rgba(16,185,129,.36)}
.ibn-chatbot-actions{display:flex;gap:8px;justify-content:space-between;padding:10px 12px;background:rgba(2,6,23,.45);border-top:1px solid rgba(255,255,255,.10)}
.ibn-chatbot-actions .btn{border-radius:999px;font-weight:800}
@keyframes chatbotOpen{from{opacity:0;transform:translateY(16px) scale(.96)}to{opacity:1;transform:none}}
@keyframes chatbotBubble{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes chatbotPulse{0%{opacity:.8;transform:scale(.92)}70%{opacity:0;transform:scale(1.28)}100%{opacity:0;transform:scale(1.28)}}
@keyframes chatbotNudge{0%,100%{transform:none}35%{transform:translateY(-5px)}65%{transform:translateY(0)}}
@media(max-width:575.98px){.ibn-chatbot{left:10px;right:10px;bottom:82px}.ibn-chatbot-toggle{margin-right:auto;padding:10px 13px}.chatbot-label{display:none}.ibn-chatbot-panel{left:0;right:0;width:100%;height:min(560px,calc(100vh - 120px));border-radius:22px}.ibn-chatbot-bubble{font-size:13px;max-width:92%}}

/* =========================================================
   v31 Reference Luxury Glass Style + Separate Floating Chatbot
   Applied from uploaded reference style to Ibn Balady without changing functions
   ========================================================= */
:root{
  --bg1:#07111f !important;
  --bg2:#101a33 !important;
  --card:rgba(255,255,255,.12) !important;
  --card-strong:rgba(255,255,255,.16) !important;
  --stroke:rgba(255,255,255,.22) !important;
  --text:#ffffff !important;
  --muted:rgba(255,255,255,.72) !important;
  --primary:#8b5cf6 !important;
  --primary-2:#06b6d4 !important;
  --secondary:#06b6d4 !important;
  --accent:#fbbf24 !important;
  --success:#22c55e !important;
  --danger:#fb7185 !important;
  --ink:#ffffff !important;
  --dark-blue:#ffffff !important;
  --soft:#07111f !important;
  --glass:rgba(255,255,255,.12) !important;
  --glass-strong:rgba(255,255,255,.16) !important;
  --glass-border:rgba(255,255,255,.22) !important;
  --shadow:0 30px 90px rgba(0,0,0,.42) !important;
  --soft-shadow:0 18px 45px rgba(0,0,0,.22) !important;
  --input:rgba(255,255,255,.13) !important;
  --input-focus:rgba(255,255,255,.18) !important;
}
html{scroll-behavior:smooth;}
body{
  color:var(--text) !important;
  background:
    radial-gradient(circle at top right,rgba(139,92,246,.38),transparent 34%),
    radial-gradient(circle at bottom left,rgba(6,182,212,.32),transparent 34%),
    radial-gradient(circle at 45% 15%,rgba(34,197,94,.18),transparent 24%),
    linear-gradient(135deg,var(--bg1),var(--bg2)) !important;
  background-attachment:fixed !important;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.9),rgba(0,0,0,.18));
}
body::after{
  content:"";
  position:fixed;
  width:260px;
  height:260px;
  right:7%;
  top:8%;
  border-radius:999px;
  background:rgba(139,92,246,.34);
  filter:blur(8px);
  opacity:.65;
  pointer-events:none;
  z-index:0;
  animation:ibnRefFloat 8s ease-in-out infinite;
}
@keyframes ibnRefFloat{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-24px) scale(1.06)}}
.container,.container-fluid,main,.app-shell{position:relative;z-index:1;}
a{color:inherit;text-decoration:none;}
.text-muted,.text-secondary,.small.text-secondary,.home-app-desc{color:var(--muted) !important;}
.text-primary{color:var(--secondary) !important;}.text-warning{color:var(--accent) !important;}.text-success{color:var(--success) !important;}
.bg-white,.bg-light{background:rgba(255,255,255,.10) !important;color:var(--text) !important;}
.border,.border-top,.border-bottom{border-color:var(--stroke) !important;}
.navbar,.site-footer,.mobile-bottom-nav,.dropdown-menu,.modal-content,.offcanvas,
.card,.card-soft,.feature-box,.hero,.home-banner-slider,.home-app-card,.alert,.glass-pill,.university-mark,
.table-responsive,.list-group-item,.accordion-item,.accordion-button,.certificate-sheet,.course-complete-card,
.content-box,.panel,.stat-card,.app-search,.quick-action,.provider-mini-cover,.provider-cover-wrap{
  background:var(--card) !important;
  border:1px solid var(--stroke) !important;
  color:var(--text) !important;
  backdrop-filter:blur(22px) !important;
  -webkit-backdrop-filter:blur(22px) !important;
  box-shadow:var(--shadow) !important;
  position:relative;
  overflow:hidden;
}
.navbar::before,.site-footer::before,.card::before,.card-soft::before,.feature-box::before,.hero::before,
.home-app-card::after,.modal-content::before,.dropdown-menu::before,.certificate-sheet::before,.course-complete-card::before,
.panel::before,.content-box::before,.app-search::before,.quick-action::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.22),transparent 38%);
  pointer-events:none;
  z-index:0;
}
.navbar > *,.site-footer > *,.card > *,.card-soft > *,.feature-box > *,.hero > *,.home-app-card > *,
.modal-content > *,.dropdown-menu > *,.certificate-sheet > *,.course-complete-card > *,
.panel > *,.content-box > *,.app-search > *,.quick-action > *{position:relative;z-index:1;}
.navbar{border-radius:0 0 28px 28px !important;box-shadow:0 20px 55px rgba(0,0,0,.32) !important;}
.brand-title,.section-title,.page-title,.admin-grid .feature-box h5,.home-app-title,h1,h2,h3,h4,h5,h6{color:var(--text) !important;font-weight:900;}
.nav-link,.dropdown-item{color:rgba(255,255,255,.82) !important;font-weight:800;transition:.22s ease;border-radius:15px;}
.nav-link:hover,.nav-link.active,.dropdown-item:hover,.dropdown-item:focus{
  color:#fff !important;
  background:rgba(255,255,255,.14) !important;
  transform:translateY(-1px);
}
.dropdown-menu{border-radius:22px !important;padding:10px !important;animation:ibnMenuDrop .18s ease both;}
@keyframes ibnMenuDrop{from{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.card,.card-soft,.feature-box,.home-app-card,.hero,.modal-content,.certificate-sheet{border-radius:28px !important;}
.card:hover,.card-soft:hover,.feature-box:hover,.home-app-card:hover,.quick-action:hover{
  transform:translateY(-5px);
  box-shadow:0 34px 85px rgba(0,0,0,.46),0 0 34px rgba(6,182,212,.10) !important;
}
.home-app-card{
  min-height:128px !important;
  padding:18px 14px !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:10px !important;
}
.home-app-card::before{opacity:.18 !important;filter:blur(1px);}
.home-app-icon,.list-icon,.mini-badge,.brand-badge,.brand-logo{
  background:rgba(255,255,255,.16) !important;
  border:1px solid var(--stroke) !important;
  box-shadow:0 0 34px rgba(139,92,246,.25) !important;
}
.home-app-icon{width:56px !important;height:56px !important;border-radius:20px !important;font-size:1.75rem !important;animation:ibnPulseGlow 3s ease-in-out infinite;}
.home-app-title{font-size:1rem !important;line-height:1.35;}
.home-app-desc,.home-app-btn{display:none !important;}
@keyframes ibnPulseGlow{0%,100%{box-shadow:0 0 0 rgba(139,92,246,0)}50%{box-shadow:0 0 34px rgba(139,92,246,.38)}}
.btn{
  border-radius:16px !important;
  font-weight:900 !important;
  transition:.22s ease !important;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary,.btn-success,.btn-warning,.btn-info{
  border:0 !important;
  color:#fff !important;
  background:linear-gradient(135deg,var(--primary),var(--secondary)) !important;
  box-shadow:0 16px 38px rgba(6,182,212,.18) !important;
}
.btn-warning{background:linear-gradient(135deg,#f59e0b,#fbbf24) !important;color:#1f1300 !important;}
.btn-success{background:linear-gradient(135deg,#16a34a,#22c55e) !important;}
.btn-outline-primary,.btn-outline-secondary,.btn-outline-light,.btn-outline-warning,.btn-outline-success{
  background:rgba(255,255,255,.10) !important;
  border-color:var(--stroke) !important;
  color:var(--text) !important;
}
.form-control,.form-select,textarea,input[type="text"],input[type="email"],input[type="password"],input[type="number"],input[type="url"],input[type="date"]{
  background:var(--input) !important;
  border:1px solid var(--stroke) !important;
  color:var(--text) !important;
  border-radius:18px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09) !important;
}
.form-control::placeholder,textarea::placeholder{color:rgba(255,255,255,.55) !important;}
.form-control:focus,.form-select:focus,textarea:focus{
  background:var(--input-focus) !important;
  border-color:rgba(6,182,212,.82) !important;
  color:var(--text) !important;
  box-shadow:0 0 0 4px rgba(6,182,212,.14) !important;
  transform:translateY(-1px);
}
.table{--bs-table-bg:transparent !important;--bs-table-color:var(--text) !important;color:var(--text) !important;}
.table thead th{background:rgba(255,255,255,.12) !important;color:var(--text) !important;border-color:var(--stroke) !important;}
.table tbody td{border-color:rgba(255,255,255,.10) !important;color:rgba(255,255,255,.86) !important;}
.badge{border-radius:999px;padding:.48rem .75rem;}
.alert{border-radius:22px !important;}
.alert-info,.alert-primary{background:rgba(6,182,212,.12) !important;border-color:rgba(6,182,212,.32) !important;color:var(--text) !important;}
.alert-warning{background:rgba(251,191,36,.14) !important;border-color:rgba(251,191,36,.35) !important;color:#fff8df !important;}
.alert-danger{background:rgba(251,113,133,.14) !important;border-color:rgba(251,113,133,.35) !important;color:#ffe5ea !important;}
.alert-success{background:rgba(34,197,94,.14) !important;border-color:rgba(34,197,94,.35) !important;color:#e7fff0 !important;}
.list-group-item{background:rgba(255,255,255,.08) !important;color:var(--text) !important;border-color:rgba(255,255,255,.10) !important;}
.home-banner-slider{border-radius:34px !important;}
.home-banner-caption{background:rgba(7,17,31,.56) !important;border:1px solid var(--stroke);box-shadow:var(--soft-shadow);}
.provider-logo-floating,.provider-card-logo,.provider-mini-logo{background:rgba(255,255,255,.92) !important;box-shadow:0 18px 45px rgba(0,0,0,.32) !important;}
.mobile-bottom-nav{
  background:rgba(7,17,31,.82) !important;
  border:1px solid rgba(255,255,255,.16) !important;
  backdrop-filter:blur(22px) !important;
  -webkit-backdrop-filter:blur(22px) !important;
  box-shadow:0 -18px 50px rgba(0,0,0,.38) !important;
}
.mobile-bottom-nav a{color:rgba(255,255,255,.74) !important;}
.mobile-bottom-nav a.active,.mobile-bottom-nav a:hover{color:var(--accent) !important;transform:translateY(-2px);}
.pwa-install-hint{
  background:rgba(7,17,31,.90) !important;
  border:1px solid var(--stroke) !important;
  color:var(--text) !important;
  border-radius:24px !important;
  box-shadow:var(--shadow) !important;
  backdrop-filter:blur(22px) !important;
}
/* Separate floating chatbot icon, independent from page layout */
.ibn-chatbot{
  position:fixed !important;
  left:20px !important;
  bottom:24px !important;
  right:auto !important;
  z-index:10020 !important;
  pointer-events:none;
}
.ibn-chatbot-toggle{
  pointer-events:auto;
  width:66px !important;
  height:66px !important;
  min-width:66px !important;
  padding:0 !important;
  border-radius:50% !important;
  display:grid !important;
  place-items:center !important;
  background:linear-gradient(135deg,var(--primary),var(--secondary)) !important;
  border:1px solid rgba(255,255,255,.28) !important;
  box-shadow:0 18px 55px rgba(0,0,0,.45),0 0 34px rgba(139,92,246,.32) !important;
  overflow:visible !important;
}
.ibn-chatbot-toggle::after{
  content:"";
  position:absolute;
  inset:-7px;
  border-radius:50%;
  border:1px solid rgba(6,182,212,.30);
  animation:ibnChatbotRing 1.8s ease-in-out infinite;
}
@keyframes ibnChatbotRing{0%{transform:scale(.88);opacity:.75}100%{transform:scale(1.18);opacity:0}}
.chatbot-label{display:none !important;}
.chatbot-icon{font-size:28px !important;line-height:1;position:relative;z-index:2;}
.chatbot-pulse{display:none !important;}
.ibn-chatbot-panel{
  pointer-events:auto;
  left:0 !important;
  bottom:82px !important;
  width:min(390px,calc(100vw - 28px)) !important;
  border-radius:30px !important;
  background:rgba(7,17,31,.92) !important;
  border:1px solid var(--stroke) !important;
  box-shadow:0 30px 90px rgba(0,0,0,.62) !important;
  backdrop-filter:blur(26px) !important;
  -webkit-backdrop-filter:blur(26px) !important;
}
.ibn-chatbot-header{background:linear-gradient(135deg,rgba(139,92,246,.22),rgba(6,182,212,.16)) !important;}
.ibn-chatbot-option:hover{background:rgba(139,92,246,.25) !important;border-color:rgba(6,182,212,.44) !important;}
@media(max-width:991.98px){
  .mobile-nav-panel{background:rgba(7,17,31,.94) !important;border-left:1px solid var(--stroke) !important;box-shadow:-24px 0 70px rgba(0,0,0,.48) !important;}
  .navbar .dropdown-menu{background:rgba(255,255,255,.08) !important;border:1px solid var(--stroke) !important;}
}
@media(max-width:575.98px){
  .home-app-card{min-height:108px !important;padding:14px 8px !important;border-radius:22px !important;}
  .home-app-icon{width:50px !important;height:50px !important;font-size:1.55rem !important;border-radius:18px !important;}
  .home-app-title{font-size:.88rem !important;}
  .ibn-chatbot{left:14px !important;right:auto !important;bottom:92px !important;}
  .ibn-chatbot-toggle{width:58px !important;height:58px !important;min-width:58px !important;margin:0 !important;}
  .chatbot-icon{font-size:25px !important;}
  .ibn-chatbot-panel{left:0 !important;right:auto !important;width:calc(100vw - 28px) !important;height:min(560px,calc(100vh - 155px)) !important;bottom:74px !important;}
}

/* v32 menu visibility fix: keep dark glass style but stop dropdown clipping */
.navbar,
.navbar .container,
.navbar-collapse,
.navbar-nav,
.navbar-nav .nav-item,
.navbar-nav .dropdown {
  overflow: visible !important;
}
.navbar {
  z-index: 1045 !important;
}
.navbar .container {
  position: relative !important;
  z-index: 2 !important;
}
.navbar .dropdown-menu {
  position: absolute !important;
  z-index: 10080 !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  min-width: 230px !important;
  max-height: min(72vh, 520px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: rgba(7,17,31,.96) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  box-shadow: 0 28px 85px rgba(0,0,0,.55), 0 0 28px rgba(6,182,212,.10) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}
.navbar .dropdown-menu.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.navbar .dropdown-item {
  white-space: nowrap !important;
  color: rgba(255,255,255,.90) !important;
}
.navbar .dropdown-divider {
  border-top-color: rgba(255,255,255,.16) !important;
}
.navbar-toggler {
  position: relative !important;
  z-index: 10090 !important;
}

@media (max-width: 991.98px) {
  .navbar {
    overflow: visible !important;
  }
  .mobile-nav-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(86vw, 370px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 92px 18px 110px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 10070 !important;
    border-radius: 0 0 0 32px !important;
    transform: translateX(110%) !important;
    transition: transform .30s cubic-bezier(.2,.8,.2,1) !important;
    background: rgba(7,17,31,.97) !important;
    border-left: 1px solid rgba(255,255,255,.18) !important;
    box-shadow: -28px 0 90px rgba(0,0,0,.58) !important;
    backdrop-filter: blur(26px) !important;
    -webkit-backdrop-filter: blur(26px) !important;
  }
  .mobile-nav-panel.show {
    transform: translateX(0) !important;
  }
  .mobile-nav-panel .navbar-nav {
    width: 100% !important;
    gap: 8px !important;
  }
  .mobile-nav-panel .nav-link,
  .mobile-nav-panel .btn,
  .mobile-nav-panel .dropdown-item {
    width: 100% !important;
    text-align: right !important;
    border-radius: 16px !important;
  }
  .navbar .dropdown-menu {
    position: static !important;
    width: 100% !important;
    min-width: 100% !important;
    max-height: none !important;
    margin: 8px 0 12px !important;
    padding: 8px !important;
    overflow: visible !important;
    background: rgba(255,255,255,.08) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10) !important;
  }
  .navbar .dropdown-menu::before {
    border-radius: 18px !important;
  }
  .navbar .dropdown-item {
    white-space: normal !important;
    padding: 11px 12px !important;
  }
}


/* ===== v33 Mobile Compatibility + Admin Menu + Impersonation Polish ===== */
:root{
  --ibn-safe-bottom: env(safe-area-inset-bottom, 0px);
}
html, body{max-width:100%; overflow-x:hidden;}
img, video, iframe{max-width:100%; height:auto;}
.container{max-width:1180px;}
.min-w-0{min-width:0;}
.user-greeting{color:rgba(255,255,255,.86)!important; white-space:nowrap;}
.impersonation-bar{
  position:sticky; top:72px; z-index:1085;
  background:linear-gradient(135deg, rgba(245,158,11,.95), rgba(139,92,246,.88));
  color:#111827; font-weight:800; padding:10px 0;
  box-shadow:0 16px 40px rgba(0,0,0,.25);
}
.impersonation-bar .btn{font-weight:900; border-radius:999px;}
.admin-nav-group .dropdown-menu{min-width:250px;}
.dropdown-header{color:#67e8f9!important; font-weight:900; font-size:.82rem; letter-spacing:.2px;}
.admin-mobile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;}
.admin-user-card{height:100%;}
.admin-avatar{width:54px;height:54px;border-radius:18px;object-fit:cover;box-shadow:0 10px 28px rgba(0,0,0,.25);}
.admin-inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.admin-inline-form .form-control,.admin-inline-form .form-select{min-width:160px;flex:1 1 170px;}
.admin-inline-form .btn{flex:0 0 auto;}
.table-responsive{border-radius:18px; overflow:auto; -webkit-overflow-scrolling:touch;}
.table{min-width:760px;}
.card-soft,.feature-box,.stat-card,.provider-card,.store-card,.item-card,.offer-card,.course-card,.certificate-card{
  overflow-wrap:anywhere;
}
.form-control,.form-select,.btn{min-height:42px;}
.btn-sm{min-height:34px;}
.mobile-bottom-nav{padding-bottom:calc(6px + var(--ibn-safe-bottom));}
.chatbot-widget,.chatbot-window{max-width:calc(100vw - 20px);}
.pwa-install-hint{max-width:calc(100vw - 20px);}
@media (max-width: 991.98px){
  body{padding-bottom:calc(86px + var(--ibn-safe-bottom));}
  .navbar{top:0; z-index:1090;}
  .navbar > .container{padding-left:12px; padding-right:12px;}
  .navbar-brand{max-width:calc(100% - 58px);}
  .brand-logo{width:42px!important;height:42px!important;flex:0 0 auto;}
  .brand-title{font-size:.98rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px;}
  .navbar-toggler{border:1px solid rgba(255,255,255,.22)!important;border-radius:14px;padding:8px 10px;background:rgba(255,255,255,.10)!important;}
  .navbar-collapse.mobile-nav-panel{
    margin-top:12px; padding:14px; border-radius:22px;
    background:rgba(7,17,31,.96); border:1px solid rgba(255,255,255,.18);
    box-shadow:0 24px 60px rgba(0,0,0,.38); max-height:calc(100vh - 115px); overflow-y:auto;
  }
  .navbar-nav{gap:7px!important;}
  .nav-link,.dropdown-item{border-radius:14px; padding:.72rem .85rem!important;}
  .dropdown-menu{
    position:static!important; transform:none!important; display:none; width:100%;
    margin:.35rem 0 .65rem 0!important; padding:8px!important; background:rgba(255,255,255,.08)!important;
    border:1px solid rgba(255,255,255,.15)!important; box-shadow:none!important;
  }
  .dropdown-menu.show{display:block!important; animation:ibnDropIn .18s ease-out both;}
  .dropdown-divider{border-color:rgba(255,255,255,.15);}
  .navbar-nav.ms-auto{align-items:stretch!important; width:100%;}
  .navbar-nav.ms-auto .btn,.navbar-nav.ms-auto .nav-link{width:100%; text-align:center;}
  .impersonation-bar{top:64px;font-size:.86rem;}
  h1,.h1{font-size:1.55rem!important;}
  h2,.h2{font-size:1.32rem!important;}
  .section-title{font-size:1.35rem!important;line-height:1.35;}
  .hero,.hero-section,.home-hero{padding:22px 14px!important;border-radius:24px!important;}
  .home-shortcuts,.quick-cards,.main-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .home-shortcut-card,.quick-card,.main-card{min-height:92px!important;padding:14px 8px!important;}
  .home-shortcut-card .icon,.quick-card .icon,.main-card .icon{font-size:1.65rem!important;}
  .card,.card-soft,.glass-card{border-radius:20px!important;}
  .card-body{padding:1rem!important;}
  .row.g-4{--bs-gutter-y:1rem;--bs-gutter-x:.8rem;}
  .admin-mobile-grid{grid-template-columns:1fr;gap:12px;}
  .admin-inline-form{display:grid;grid-template-columns:1fr;gap:8px;}
  .admin-inline-form .form-control,.admin-inline-form .form-select,.admin-inline-form .btn{width:100%;min-width:0;}
  .admin-user-card .d-flex{min-width:0;}
  .messages-layout,.chat-layout{grid-template-columns:1fr!important;height:auto!important;}
  .conversation-list,.chat-sidebar{max-height:38vh;overflow:auto;border-radius:20px!important;}
  .chat-panel,.conversation-panel{min-height:62vh;border-radius:20px!important;}
  .chatbot-window{right:10px!important;left:10px!important;bottom:92px!important;width:auto!important;max-height:72vh!important;}
  .chatbot-fab{right:14px!important;bottom:96px!important;}
  .pwa-install-hint{left:10px!important;right:10px!important;bottom:92px!important;width:auto!important;}
  footer.site-footer{padding-bottom:95px!important;text-align:center;}
}
@media (max-width: 575.98px){
  .container{padding-left:12px!important;padding-right:12px!important;}
  .brand-title{max-width:145px;}
  .admin-avatar{width:48px;height:48px;border-radius:16px;}
  .d-flex.justify-content-between,.d-flex.align-items-center{gap:.75rem;}
  .btn{white-space:normal;}
  .table{min-width:680px;font-size:.86rem;}
  .modal-dialog{margin:.7rem;}
  .certificate-card{padding:16px!important;}
}
@keyframes ibnDropIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}

/* v34 WhatsApp exact-like messages page */
.wa-page{margin:-.5rem 0 0;min-height:calc(100vh - 150px)}
.wa-shell{height:calc(100vh - 148px);min-height:640px;display:grid;grid-template-columns:390px minmax(0,1fr);overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:30px;background:linear-gradient(135deg,rgba(7,17,31,.82),rgba(16,26,51,.70));box-shadow:0 30px 90px rgba(0,0,0,.45);backdrop-filter:blur(28px)}
.wa-sidebar{display:flex;flex-direction:column;min-width:0;border-left:1px solid rgba(255,255,255,.10);background:rgba(2,8,23,.38)}
.wa-side-header,.wa-chat-header{height:78px;display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(135deg,rgba(139,92,246,.18),rgba(6,182,212,.10));border-bottom:1px solid rgba(255,255,255,.12)}
.wa-user-chip{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.wa-me-avatar,.wa-avatar{width:48px;height:48px;flex:0 0 48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(139,92,246,.38),rgba(6,182,212,.24));border:1px solid rgba(255,255,255,.20);box-shadow:0 14px 34px rgba(0,0,0,.22);overflow:hidden}.wa-avatar img{width:100%;height:100%;object-fit:cover}.wa-avatar span{font-size:1.35rem}.wa-avatar.large{width:52px;height:52px;flex-basis:52px}.wa-overline{font-size:.72rem;color:rgba(226,232,240,.62);font-weight:800}.wa-side-header h1{font-size:1.15rem;font-weight:900;margin:0;color:#fff}.wa-icon-btn,.wa-back-btn{width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#f8fafc;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:900;transition:.18s ease}.wa-icon-btn:hover,.wa-back-btn:hover{background:rgba(6,182,212,.20);transform:translateY(-1px);color:#fff}.wa-back-btn{display:none;font-size:1.8rem;line-height:1}.wa-search-wrap{margin:12px 14px;display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}.wa-search-wrap input{border:0;outline:0;background:transparent;color:#fff;width:100%;font-weight:700}.wa-search-wrap input::placeholder{color:rgba(226,232,240,.52)}
.wa-conversation-list{overflow:auto;padding:0 8px 12px;scrollbar-width:thin}.wa-conv{position:relative;display:flex;gap:12px;align-items:center;padding:12px 10px;border-radius:20px;text-decoration:none;color:#f8fafc;border:1px solid transparent;transition:.18s ease}.wa-conv:hover,.wa-conv.active{background:linear-gradient(135deg,rgba(139,92,246,.18),rgba(6,182,212,.10));border-color:rgba(255,255,255,.14);transform:translateX(-2px)}.wa-conv-main{min-width:0;flex:1}.wa-conv-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.wa-conv-top strong{font-size:.94rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wa-conv-top time{font-size:.68rem;color:rgba(226,232,240,.48);white-space:nowrap}.wa-conv-subtitle{font-size:.72rem;color:rgba(103,232,249,.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wa-conv-preview{font-size:.78rem;color:rgba(226,232,240,.58);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wa-unread{position:absolute;left:12px;bottom:12px;min-width:24px;height:24px;border-radius:999px;background:#22c55e;color:#03130a;display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:900;font-size:.72rem}.wa-sent-mark,.wa-message-status{color:#67e8f9;font-weight:900;margin-inline-end:4px}.wa-empty-list,.wa-no-chat{height:100%;min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:rgba(226,232,240,.70);padding:30px}.wa-empty-icon,.wa-no-chat-icon{font-size:4rem;filter:drop-shadow(0 10px 25px rgba(6,182,212,.25))}.wa-chat-panel{position:relative;display:flex;flex-direction:column;min-width:0;background:radial-gradient(circle at 0 0,rgba(139,92,246,.15),transparent 35%),radial-gradient(circle at 100% 100%,rgba(6,182,212,.12),transparent 36%),rgba(2,6,23,.22)}.wa-chat-title{min-width:0;flex:1}.wa-chat-title h2{font-size:1.02rem;font-weight:900;margin:0;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wa-chat-title p{font-size:.76rem;margin:2px 0 0;color:rgba(226,232,240,.58);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wa-chat-actions{display:flex;gap:8px}.wa-chat-body{flex:1;overflow:auto;padding:18px 20px 16px!important;background-color:transparent!important;background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px)!important;background-size:42px 42px!important}.wa-loading{text-align:center;color:rgba(226,232,240,.70);padding:30px}.wa-compose{position:relative;display:flex;align-items:center;gap:10px;padding:12px 14px 26px;background:rgba(2,6,23,.72);border-top:1px solid rgba(255,255,255,.12)}.wa-message-input{flex:1;min-height:46px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.10);color:#fff;padding:0 16px;font-weight:700;outline:0}.wa-message-input::placeholder{color:rgba(226,232,240,.50)}.wa-attach,.wa-send{width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 46px;transition:.18s ease}.wa-attach{background:rgba(255,255,255,.08);color:#fff}.wa-send{background:linear-gradient(135deg,#8b5cf6,#06b6d4);color:#fff;font-weight:900;transform:rotate(180deg)}.wa-attach:hover,.wa-send:hover{transform:translateY(-2px) scale(1.03)}.wa-send:hover{transform:rotate(180deg) translateY(2px) scale(1.03)}.wa-attachment-name{position:absolute;right:74px;bottom:6px;font-size:.68rem;color:rgba(226,232,240,.48)}
.wa-shell .chat-message{display:flex;margin:7px 0}.wa-shell .chat-message.mine{justify-content:flex-end!important}.wa-shell .chat-message.theirs{justify-content:flex-start!important}.wa-shell .chat-bubble{max-width:min(74%,680px)!important;border-radius:18px 18px 18px 5px!important;padding:9px 12px 6px!important;background:rgba(255,255,255,.095)!important;border:1px solid rgba(255,255,255,.13)!important;color:#f8fafc!important;box-shadow:0 10px 26px rgba(0,0,0,.22)!important}.wa-shell .chat-message.mine .chat-bubble{border-radius:18px 18px 5px 18px!important;background:linear-gradient(135deg,rgba(139,92,246,.92),rgba(6,182,212,.78))!important;color:#fff!important}.wa-shell .chat-sender{font-size:.68rem;color:#a5f3fc!important;font-weight:900;margin-bottom:2px}.wa-shell .chat-message.mine .chat-sender{color:rgba(255,255,255,.76)!important}.wa-shell .chat-text{white-space:pre-wrap;word-break:break-word;line-height:1.7}.wa-shell .chat-time{text-align:left;font-size:.66rem;color:rgba(226,232,240,.58)!important;margin-top:2px;direction:ltr}.wa-shell .chat-message.mine .chat-time{color:rgba(255,255,255,.70)!important}.wa-shell .chat-attachment img{max-width:240px;border-radius:14px;display:block;margin-top:6px}.wa-shell .chat-file-link,.wa-shell .chat-image-link{display:block;color:#fff;text-decoration:none}.wa-shell .chat-file-link{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:10px;margin-top:6px}.wa-shell .chat-attachment span{display:block;font-size:.75rem;margin-top:4px;color:rgba(255,255,255,.75)}
@media(max-width:991.98px){.wa-page{margin:-1rem -10px 0}.wa-shell{height:calc(100vh - 112px);min-height:0;border-radius:0;grid-template-columns:1fr;border-inline:0}.wa-sidebar{border-left:0}.wa-chat-panel{position:absolute;inset:0;z-index:5;transform:translateX(-105%);transition:transform .23s ease}.wa-shell.chat-open .wa-chat-panel{transform:translateX(0)}.wa-back-btn{display:inline-flex}.wa-side-header,.wa-chat-header{height:68px;padding:10px 12px}.wa-conversation-list{padding-bottom:90px}.wa-chat-body{padding:12px!important}.wa-shell .chat-bubble{max-width:86%!important}.wa-compose{padding:9px 10px 22px}.wa-attachment-name{right:66px}.wa-chat-actions .wa-icon-btn{width:38px;height:38px}.wa-avatar.large{width:44px;height:44px;flex-basis:44px}}
@media(max-width:575.98px){.wa-page{margin:-1rem -12px 0}.wa-shell{height:calc(100vh - 88px)}.wa-search-wrap{margin:10px}.wa-conv{border-radius:16px;padding:10px 8px}.wa-avatar{width:43px;height:43px;flex-basis:43px}.wa-conv-subtitle{display:none}.wa-conv-preview{max-width:210px}.wa-chat-title h2{font-size:.94rem}.wa-chat-title p{font-size:.68rem}.wa-message-input{min-height:43px}.wa-attach,.wa-send{width:43px;height:43px;flex-basis:43px}.wa-shell .chat-attachment img{max-width:190px}}

/* v36 Messages mobile overlap fix: true WhatsApp-like single-screen mobile layout */
@media (max-width: 991.98px) {
  body:has(.wa-page) {
    overflow-x: hidden;
  }

  .wa-page {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: calc(100svh - 92px) !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .wa-shell {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: calc(100svh - 92px) !important;
    min-height: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    isolation: isolate !important;
    background: linear-gradient(145deg, rgba(7,17,31,.98), rgba(16,26,51,.96)) !important;
  }

  .wa-sidebar {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    background: linear-gradient(145deg, rgba(7,17,31,.99), rgba(16,26,51,.97)) !important;
    transition: opacity .18s ease, visibility .18s ease !important;
  }

  .wa-shell.chat-open .wa-sidebar {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .wa-chat-panel {
    position: absolute !important;
    inset: 0 !important;
    z-index: 10 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background:
      radial-gradient(circle at 0 0, rgba(139,92,246,.20), transparent 34%),
      radial-gradient(circle at 100% 100%, rgba(6,182,212,.18), transparent 36%),
      linear-gradient(145deg, rgba(7,17,31,.995), rgba(11,18,32,.985)) !important;
    transform: translateX(105%) !important;
    transition: transform .22s ease !important;
    overflow: hidden !important;
  }

  .wa-shell.chat-open .wa-chat-panel {
    transform: translateX(0) !important;
  }

  html[dir="rtl"] .wa-chat-panel,
  body[dir="rtl"] .wa-chat-panel {
    transform: translateX(-105%) !important;
  }

  html[dir="rtl"] .wa-shell.chat-open .wa-chat-panel,
  body[dir="rtl"] .wa-shell.chat-open .wa-chat-panel {
    transform: translateX(0) !important;
  }

  .wa-no-chat {
    display: none !important;
  }

  .wa-side-header,
  .wa-chat-header {
    height: 64px !important;
    min-height: 64px !important;
    flex: 0 0 64px !important;
    padding: 8px 10px !important;
    position: relative !important;
    z-index: 3 !important;
    background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,41,59,.90)) !important;
    backdrop-filter: blur(18px) !important;
  }

  .wa-chat-header {
    box-shadow: 0 10px 28px rgba(0,0,0,.28) !important;
  }

  .wa-chat-title h2 {
    font-size: .95rem !important;
    line-height: 1.25 !important;
    max-width: 42vw !important;
  }

  .wa-chat-title p {
    font-size: .67rem !important;
    max-width: 42vw !important;
  }

  .wa-chat-actions {
    gap: 6px !important;
    flex: 0 0 auto !important;
  }

  .wa-chat-actions .wa-icon-btn {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
  }

  .wa-back-btn {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    font-size: 1.65rem !important;
  }

  .wa-avatar.large,
  .wa-avatar {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  .wa-search-wrap {
    flex: 0 0 auto !important;
    margin: 10px !important;
  }

  .wa-conversation-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    padding: 0 8px 96px !important;
  }

  .wa-chat-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    padding: 12px 10px 14px !important;
    position: relative !important;
    z-index: 1 !important;
    background-color: rgba(2,6,23,.90) !important;
  }

  .wa-shell .chat-message {
    margin: 8px 0 !important;
    width: 100% !important;
  }

  .wa-shell .chat-bubble {
    max-width: 82% !important;
    font-size: .88rem !important;
    line-height: 1.6 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .wa-shell .chat-text {
    font-size: .93rem !important;
  }

  .wa-shell .chat-sender {
    font-size: .66rem !important;
  }

  .wa-shell .chat-time {
    font-size: .62rem !important;
  }

  .wa-shell .chat-attachment img {
    max-width: min(230px, 68vw) !important;
    height: auto !important;
  }

  .wa-compose {
    flex: 0 0 auto !important;
    position: relative !important;
    z-index: 4 !important;
    padding: 8px 8px 20px !important;
    gap: 7px !important;
    background: linear-gradient(135deg, rgba(2,6,23,.98), rgba(15,23,42,.94)) !important;
    box-shadow: 0 -10px 28px rgba(0,0,0,.26) !important;
  }

  .wa-message-input {
    min-width: 0 !important;
    min-height: 42px !important;
    font-size: .9rem !important;
    padding-inline: 14px !important;
  }

  .wa-attach,
  .wa-send {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  .wa-attachment-name {
    right: 58px !important;
    left: 58px !important;
    bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
  }

  .mobile-bottom-nav ~ .wa-page,
  body:has(.mobile-bottom-nav) .wa-page {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .wa-shell {
    height: calc(100svh - 88px) !important;
    border-radius: 0 !important;
    border-inline: 0 !important;
  }

  .wa-page {
    min-height: calc(100svh - 88px) !important;
  }

  .wa-chat-title h2,
  .wa-chat-title p {
    max-width: 36vw !important;
  }

  .wa-conv-preview {
    max-width: none !important;
  }

  .wa-shell .chat-bubble {
    max-width: 84% !important;
  }
}

/* v37 FINAL WhatsApp mobile rebuild: full-screen isolated messages app, no overlay bleed */
@media (max-width: 991.98px) {
  html:has(.wa-page),
  body.ibn-messages-screen {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #06101f !important;
  }

  body.ibn-messages-screen .wa-page {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 15% 5%, rgba(139,92,246,.30), transparent 32%),
      radial-gradient(circle at 90% 15%, rgba(6,182,212,.25), transparent 34%),
      linear-gradient(145deg, #06101f, #0f172a 45%, #101a33) !important;
  }

  body.ibn-messages-screen .wa-page > .alert {
    position: absolute !important;
    z-index: 30 !important;
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    margin: 0 !important;
    font-size: .8rem !important;
  }

  body.ibn-messages-screen .wa-shell {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    isolation: isolate !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.ibn-messages-screen .wa-sidebar,
  body.ibn-messages-screen .wa-chat-panel {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  body.ibn-messages-screen .wa-sidebar {
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background:
      radial-gradient(circle at 0 0, rgba(139,92,246,.18), transparent 32%),
      linear-gradient(145deg, rgba(7,17,31,.98), rgba(16,26,51,.98)) !important;
  }

  body.ibn-messages-screen .wa-shell.chat-open .wa-sidebar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.ibn-messages-screen .wa-chat-panel {
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    transform: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    background:
      radial-gradient(circle at 0 0, rgba(139,92,246,.22), transparent 35%),
      radial-gradient(circle at 100% 100%, rgba(6,182,212,.20), transparent 36%),
      linear-gradient(145deg, rgba(5,11,24,1), rgba(8,16,31,1)) !important;
  }

  body.ibn-messages-screen .wa-shell.chat-open .wa-chat-panel {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.ibn-messages-screen .wa-no-chat {
    display: none !important;
  }

  body.ibn-messages-screen .wa-side-header,
  body.ibn-messages-screen .wa-chat-header {
    position: relative !important;
    top: auto !important;
    flex: 0 0 70px !important;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px !important;
    z-index: 5 !important;
    background: linear-gradient(135deg, rgba(15,23,42,.97), rgba(30,41,59,.90)) !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.28) !important;
    backdrop-filter: blur(18px) !important;
  }

  body.ibn-messages-screen .wa-search-wrap {
    flex: 0 0 auto !important;
    height: 48px !important;
    margin: 10px 12px !important;
    padding: 0 14px !important;
  }

  body.ibn-messages-screen .wa-conversation-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 10px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.ibn-messages-screen .wa-conv {
    min-height: 72px !important;
    border-radius: 18px !important;
    margin-bottom: 6px !important;
    transform: none !important;
  }

  body.ibn-messages-screen .wa-conv-top strong,
  body.ibn-messages-screen .wa-conv-preview,
  body.ibn-messages-screen .wa-conv-subtitle {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.ibn-messages-screen .wa-chat-header {
    flex: 0 0 72px !important;
    height: 72px !important;
    min-height: 72px !important;
  }

  body.ibn-messages-screen .wa-back-btn {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    font-size: 1.7rem !important;
  }

  body.ibn-messages-screen .wa-avatar,
  body.ibn-messages-screen .wa-avatar.large,
  body.ibn-messages-screen .wa-me-avatar {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  body.ibn-messages-screen .wa-chat-title {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  body.ibn-messages-screen .wa-chat-title h2 {
    width: 100% !important;
    max-width: none !important;
    font-size: .96rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.ibn-messages-screen .wa-chat-title p {
    width: 100% !important;
    max-width: none !important;
    font-size: .68rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.ibn-messages-screen .wa-chat-actions {
    display: flex !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
  }

  body.ibn-messages-screen .wa-chat-actions .wa-icon-btn {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
  }

  body.ibn-messages-screen .wa-chat-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 12px 10px 12px !important;
    background-color: rgba(2,6,23,.88) !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.ibn-messages-screen .wa-shell .chat-message {
    display: flex !important;
    width: 100% !important;
    margin: 8px 0 !important;
  }

  body.ibn-messages-screen .wa-shell .chat-message.mine {
    justify-content: flex-end !important;
  }

  body.ibn-messages-screen .wa-shell .chat-message.theirs {
    justify-content: flex-start !important;
  }

  body.ibn-messages-screen .wa-shell .chat-bubble {
    max-width: 82vw !important;
    width: auto !important;
    min-width: 0 !important;
    font-size: .9rem !important;
    line-height: 1.65 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body.ibn-messages-screen .wa-shell .chat-text {
    font-size: .95rem !important;
  }

  body.ibn-messages-screen .wa-shell .chat-attachment img {
    display: block !important;
    max-width: min(72vw, 240px) !important;
    height: auto !important;
    border-radius: 14px !important;
  }

  body.ibn-messages-screen .wa-shell .chat-file-link {
    max-width: min(72vw, 260px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.ibn-messages-screen .wa-compose {
    flex: 0 0 auto !important;
    min-height: 62px !important;
    padding: 8px 8px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 7px !important;
    background: linear-gradient(135deg, rgba(2,6,23,.99), rgba(15,23,42,.96)) !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: 0 -10px 28px rgba(0,0,0,.28) !important;
  }

  body.ibn-messages-screen .wa-message-input {
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    font-size: .92rem !important;
  }

  body.ibn-messages-screen .wa-attach,
  body.ibn-messages-screen .wa-send {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  body.ibn-messages-screen .wa-attachment-name {
    display: none !important;
  }

  body.ibn-messages-screen .chatbot-fab,
  body.ibn-messages-screen .chatbot-widget,
  body.ibn-messages-screen .pwa-install-hint,
  body.ibn-messages-screen .mobile-bottom-nav {
    display: none !important;
  }
}


/* V38 Footer cleanup + true floating mobile app navigation */
.site-footer.copyright-footer{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: rgba(226,232,240,.72) !important;
  padding: 22px 12px 28px !important;
  margin-top: 28px !important;
  text-align: center !important;
  font-weight: 700 !important;
}
.site-footer.copyright-footer::before{display:none !important;content:none !important;}
.site-footer.copyright-footer .container{display:block !important;}
.site-footer.copyright-footer small{font-size:.82rem;letter-spacing:.01em;}

/* Desktop/tablet: hide bottom app buttons completely */
.mobile-bottom-nav{display:none !important;}
@media (min-width: 769px){
  .mobile-bottom-nav{display:none !important;visibility:hidden !important;pointer-events:none !important;}
  body{padding-bottom:0 !important;}
}

/* Mobile: floating app-like bottom navigation */
@media (max-width: 768px){
  :root{--ibn-bottom-nav-height:74px;}
  body:not(.ibn-messages-screen){
    padding-bottom: calc(var(--ibn-bottom-nav-height) + 18px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .mobile-bottom-nav{
    display:flex !important;
    position:fixed !important;
    left:12px !important;
    right:12px !important;
    bottom:calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    height:64px !important;
    min-height:64px !important;
    max-height:64px !important;
    z-index:1045 !important;
    align-items:center !important;
    justify-content:space-around !important;
    gap:2px !important;
    padding:7px 8px !important;
    margin:0 !important;
    border-radius:26px !important;
    background:linear-gradient(135deg, rgba(7,17,31,.78), rgba(16,26,51,.70)) !important;
    border:1px solid rgba(255,255,255,.18) !important;
    box-shadow:0 18px 48px rgba(0,0,0,.50), inset 0 1px 0 rgba(255,255,255,.14) !important;
    backdrop-filter:blur(24px) saturate(150%) !important;
    -webkit-backdrop-filter:blur(24px) saturate(150%) !important;
    overflow:visible !important;
  }
  .mobile-bottom-nav a{
    width:auto !important;
    min-width:0 !important;
    flex:1 1 0 !important;
    height:50px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:2px !important;
    padding:3px 1px !important;
    border-radius:18px !important;
    text-decoration:none !important;
    color:rgba(248,250,252,.78) !important;
    font-size:20px !important;
    line-height:1 !important;
    font-weight:900 !important;
    transition:transform .18s ease, background .18s ease, color .18s ease !important;
    position:relative !important;
  }
  .mobile-bottom-nav a span{
    display:block !important;
    font-size:10px !important;
    line-height:1.15 !important;
    margin:0 !important;
    max-width:48px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover{
    color:#facc15 !important;
    background:rgba(255,255,255,.09) !important;
    transform:translateY(-3px) !important;
  }
  .mobile-bottom-nav a.active::after{
    content:"";
    position:absolute;
    bottom:2px;
    width:18px;
    height:3px;
    border-radius:99px;
    background:linear-gradient(90deg,#8b5cf6,#06b6d4,#facc15);
    box-shadow:0 0 12px rgba(6,182,212,.45);
  }
  .mobile-nav-notify em{
    position:absolute !important;
    top:-7px !important;
    inset-inline-start:50% !important;
    min-width:20px !important;
    height:20px !important;
    padding:0 5px !important;
    border-radius:999px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-style:normal !important;
    font-size:11px !important;
    color:#fff !important;
    background:linear-gradient(135deg,#f43f5e,#f59e0b) !important;
    border:2px solid rgba(7,17,31,.95) !important;
  }
  body.ibn-messages-screen .mobile-bottom-nav{display:none !important;}
  .site-footer.copyright-footer{
    padding:18px 8px calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    margin-top:18px !important;
    font-size:.78rem !important;
  }
  .chatbot-fab{bottom:calc(92px + env(safe-area-inset-bottom, 0px)) !important;}
  .chatbot-widget{bottom:calc(154px + env(safe-area-inset-bottom, 0px)) !important;}
  .pwa-install-hint{
    bottom:calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    z-index:1050 !important;
  }
}

/* V39: sticky top bar, unified admin categories, mobile admin courses and editable login content */
.app-topbar,
.navbar.app-topbar{
  position: sticky !important;
  top: 0 !important;
  z-index: 1095 !important;
  isolation: isolate;
}
.user-top-avatar{
  border-radius: 50% !important;
  object-fit: cover !important;
  padding: 0 !important;
  background: rgba(255,255,255,.10) !important;
  border: 2px solid rgba(255,255,255,.24) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.30), 0 0 0 4px rgba(139,92,246,.10) !important;
}
.navbar-brand .brand-title{max-width: 170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.admin-category-manager .table td,
.admin-category-manager .table th{vertical-align: middle;}
.admin-category-manager form{margin:0;}
.admin-training-cards{display:none;}
.auth-login-content-grid{display:grid; grid-template-columns:1fr; gap:12px; margin-top:16px;}
.auth-login-info-box{
  padding:14px;
  border-radius:20px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}
.auth-login-info-box h6{font-weight:900; color:#fff; margin-bottom:10px;}
.auth-login-info-box .auth-points{gap:7px;}
.auth-login-info-box .auth-points span{font-size:.86rem; padding:8px 10px;}
@media (max-width: 768px){
  .navbar.app-topbar{border-radius:0 0 22px 22px !important;}
  .navbar-brand .brand-title{max-width: 130px; font-size:.95rem;}
  .navbar-brand small{font-size:.68rem;}
  .admin-category-manager .card-body{padding:14px !important;}
  .category-table-wrap table,
  .admin-category-manager table{min-width: 0 !important;}
  .admin-category-manager table thead{display:none;}
  .admin-category-manager table,
  .admin-category-manager tbody,
  .admin-category-manager tr,
  .admin-category-manager td{display:block; width:100%;}
  .admin-category-manager tr{
    margin:10px;
    padding:12px;
    border-radius:18px;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.12);
  }
  .admin-category-manager td{border:0 !important; padding:5px 0 !important;}
  .admin-category-manager td:last-child .d-flex{justify-content:flex-start;}
  .admin-training-table{display:none !important;}
  .admin-training-cards{display:grid; gap:12px;}
  .admin-course-card{
    padding:13px;
    border-radius:20px;
    background:rgba(255,255,255,.075);
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 12px 30px rgba(0,0,0,.22);
  }
  .admin-course-title{font-weight:900; font-size:1rem; margin-bottom:8px; color:#fff; overflow-wrap:anywhere;}
  .admin-course-meta{display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px;}
  .admin-course-meta span{font-size:.78rem; border-radius:999px; padding:4px 8px; background:rgba(255,255,255,.10); color:rgba(248,250,252,.86);}
  .admin-course-actions{display:flex; flex-wrap:wrap; gap:8px;}
  .admin-course-actions form{margin:0;}
  #lessonsTable{min-width:720px;}
  #courseForm .playlist-box,
  #courseForm .manual-box{overflow-x:auto;}
  .auth-login-content-grid{gap:10px;}
}

/* v42 أخبار بلدي + وسائط YouTube */
.news-headlines-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.news-headline-card{display:flex;align-items:center;gap:10px;padding:14px 16px;border-radius:20px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);text-decoration:none;color:#fff;transition:.18s ease}.news-headline-card:hover{transform:translateY(-2px);border-color:rgba(6,182,212,.45);box-shadow:0 12px 32px rgba(6,182,212,.18)}.news-headline-icon{font-size:1.35rem}.news-headline-title{font-weight:800}.news-thumb{height:190px;object-fit:cover}.news-content{font-size:1.05rem;line-height:2}.media-cover-wrap,.media-thumb-box{position:relative;display:block;overflow:hidden;border-radius:18px}.media-cover-wrap img{display:block;width:100%;object-fit:cover}.youtube-play-badge{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:54px;height:54px;border-radius:999px;display:grid;place-items:center;background:linear-gradient(135deg,#ff1744,#ff6b6b);color:#fff;font-weight:900;font-size:1.15rem;box-shadow:0 14px 38px rgba(255,23,68,.38);border:2px solid rgba(255,255,255,.55);pointer-events:none}.media-thumb-box .youtube-play-badge{width:34px;height:34px;font-size:.75rem}.media-thumb-box{width:max-content}.media-thumb-box .fixed-thumb{display:block}@media(max-width:575px){.news-thumb{height:150px}.youtube-play-badge{width:46px;height:46px}.news-headlines-grid{grid-template-columns:1fr}}

/* v43: YouTube playback modal for item/offer/market media */
.youtube-play-badge{
  cursor:pointer;
  z-index:5;
  pointer-events:auto !important;
  border:2px solid rgba(255,255,255,.72);
  outline:0;
}
.youtube-play-badge:hover,
.youtube-play-badge:focus{
  transform:translate(-50%,-50%) scale(1.08);
  box-shadow:0 18px 50px rgba(255,23,68,.55),0 0 0 6px rgba(255,255,255,.12);
}
.youtube-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(12px);
}
.youtube-modal-backdrop.show{display:flex;}
.youtube-modal-card{
  width:min(920px,96vw);
  border-radius:24px;
  overflow:hidden;
  background:rgba(8,16,32,.92);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 30px 90px rgba(0,0,0,.55);
}
.youtube-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.youtube-modal-close{
  border:0;
  border-radius:999px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-weight:900;
}
.youtube-modal-close:hover{background:rgba(255,255,255,.22);}
.youtube-iframe-wrap{position:relative;width:100%;aspect-ratio:16/9;background:#000;}
.youtube-iframe-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
@media(max-width:575px){
  .youtube-modal-backdrop{padding:10px;align-items:center;}
  .youtube-modal-card{width:100%;border-radius:18px;}
  .youtube-modal-head{padding:10px 12px;font-size:.92rem;}
}

/* v44: Home news slider with video support */
.home-news-showcase{position:relative;}
.home-news-slider{position:relative;border-radius:28px;overflow:hidden;background:rgba(15,23,42,.58);border:1px solid rgba(255,255,255,.14);box-shadow:0 20px 60px rgba(0,0,0,.28);backdrop-filter:blur(18px);}
.home-news-slider .carousel-inner{border-radius:28px;}
.home-news-card{display:grid;grid-template-columns:43% 1fr;gap:0;min-height:260px;overflow:hidden;}
.home-news-media{position:relative;display:block;min-height:260px;overflow:hidden;background:rgba(255,255,255,.06);}
.home-news-media img{width:100%;height:100%;min-height:260px;object-fit:cover;display:block;transition:transform .35s ease,filter .35s ease;}
.home-news-card:hover .home-news-media img{transform:scale(1.035);filter:saturate(1.08);}
.home-news-body{padding:28px 30px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:10px;}
.home-news-label{display:inline-flex;align-items:center;justify-content:center;padding:6px 14px;border-radius:14px;background:linear-gradient(135deg,#ef4444,#f97316);color:#fff;font-weight:900;box-shadow:0 12px 28px rgba(239,68,68,.24);}
.home-news-body h3{font-size:1.65rem;line-height:1.55;margin:0;font-weight:950;color:#fff;}
.home-news-body h3 a{color:inherit;text-decoration:none;}
.home-news-body p{margin:0;color:rgba(226,232,240,.82);font-size:1rem;line-height:1.9;}
.home-news-meta{font-size:.88rem;color:rgba(226,232,240,.66);}
.home-news-more{display:inline-flex;align-items:center;gap:8px;margin-top:6px;color:#7dd3fc;text-decoration:none;font-weight:900;}
.home-news-more:hover{color:#fde68a;}
.home-news-dots{position:static;margin:10px 0 14px;gap:6px;}
.home-news-dots [data-bs-target]{width:10px;height:10px;border-radius:999px;border:0;background:rgba(255,255,255,.35);}
.home-news-dots .active{width:26px;background:linear-gradient(135deg,#8b5cf6,#06b6d4);}
.home-news-control{width:42px;opacity:.9;}
.news-card-media{position:relative;display:block;overflow:hidden;border-radius:22px 22px 0 0;background:rgba(255,255,255,.06);}
.upgraded-news-card .news-thumb{width:100%;height:210px;object-fit:cover;display:block;}
.news-card-date{font-size:.82rem;color:rgba(226,232,240,.62);}
.news-detail-video{border-radius:24px;}
.news-detail-video .detail-main-image{margin:0;display:block;width:100%;height:auto;max-height:520px;object-fit:cover;}
.news-detail .youtube-play-badge,.home-news-media .youtube-play-badge,.news-card-media .youtube-play-badge{pointer-events:auto!important;}
@media(max-width:767px){
  .home-news-card{grid-template-columns:1fr;min-height:auto;}
  .home-news-media,.home-news-media img{min-height:190px;height:190px;}
  .home-news-body{padding:18px 18px 22px;gap:8px;}
  .home-news-body h3{font-size:1.16rem;line-height:1.55;}
  .home-news-body p{font-size:.9rem;line-height:1.75;}
  .home-news-label{padding:5px 12px;font-size:.88rem;}
  .home-news-control{display:none;}
  .home-news-slider,.home-news-slider .carousel-inner{border-radius:22px;}
  .upgraded-news-card .news-thumb{height:175px;}
}

/* v46: Restaurant menus, home menu/products and QR */
.restaurant-menu-shell{border-radius:32px;overflow:hidden;min-height:620px;background-size:cover;background-position:center;background-attachment:fixed;box-shadow:0 28px 80px rgba(0,0,0,.34);color:#fff;position:relative}
.restaurant-menu-overlay{min-height:620px;padding:34px;background:linear-gradient(180deg,rgba(4,9,20,.18),rgba(4,9,20,.56))}
.menu-theme-sunset{background:radial-gradient(circle at 15% 15%,#fb923c 0,#9a3412 34%,#31111d 100%)}
.menu-theme-emerald{background:radial-gradient(circle at 15% 10%,#34d399 0,#065f46 36%,#022c22 100%)}
.menu-theme-midnight{background:radial-gradient(circle at 70% 5%,#4f46e5 0,#172554 40%,#020617 100%)}
.menu-theme-cream{background:radial-gradient(circle at 20% 10%,#fbbf24 0,#92400e 34%,#431407 100%)}
.menu-theme-berry{background:radial-gradient(circle at 80% 10%,#f472b6 0,#9d174d 38%,#3b0a2a 100%)}
.restaurant-menu-head{max-width:760px;margin:0 auto 28px;padding:26px;border:1px solid rgba(255,255,255,.18);background:rgba(4,9,20,.34);backdrop-filter:blur(18px);border-radius:28px}
.restaurant-menu-logo{width:94px;height:94px;object-fit:cover;border-radius:24px;border:3px solid rgba(255,255,255,.85);box-shadow:0 12px 32px rgba(0,0,0,.28);margin-bottom:12px}
.restaurant-menu-intro{max-width:620px;margin-inline:auto;color:rgba(255,255,255,.82);line-height:1.9}
.menu-category-pills{display:flex;gap:10px;overflow:auto;padding:4px 2px 14px;margin-bottom:8px;scrollbar-width:thin}
.menu-category-pills a{white-space:nowrap;text-decoration:none;color:#fff;padding:9px 16px;border-radius:999px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(12px);font-weight:800}
.menu-category-pills a:hover{background:#fbbf24;color:#111827}
.menu-category-section{padding:24px 0;scroll-margin-top:95px}
.menu-category-title{display:flex;align-items:center;gap:10px;margin-bottom:15px}.menu-category-title span{font-size:1.5rem}.menu-category-title h2{font-size:1.45rem;font-weight:900;margin:0}
.restaurant-menu-card{overflow:hidden;border-radius:24px;background:rgba(8,15,30,.72);border:1px solid rgba(255,255,255,.15);box-shadow:0 18px 42px rgba(0,0,0,.24);backdrop-filter:blur(16px);display:flex;flex-direction:column;transition:transform .2s ease,border-color .2s ease}
.restaurant-menu-card:hover{transform:translateY(-4px);border-color:rgba(251,191,36,.65)}
.restaurant-menu-image-wrap{position:relative;height:210px;overflow:hidden}.restaurant-menu-image-wrap img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}.restaurant-menu-card:hover img{transform:scale(1.04)}
.menu-availability{position:absolute;top:12px;left:12px;padding:6px 11px;border-radius:999px;font-size:.78rem;font-weight:900}.menu-availability.available{background:#16a34a;color:#fff}.menu-availability.unavailable{background:#dc2626;color:#fff}
.restaurant-menu-card-body{padding:18px;display:flex;flex-direction:column;flex:1}.restaurant-menu-card-body p{color:rgba(255,255,255,.68);line-height:1.8}.menu-price{color:#fbbf24;white-space:nowrap}
.restaurant-menu-empty,.restaurant-menu-footer{padding:34px;border-radius:24px;background:rgba(4,9,20,.40);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(14px)}.restaurant-menu-footer{margin-top:28px}
.menu-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.menu-preset-option{min-height:80px;border-radius:18px;padding:12px;display:flex;align-items:end;cursor:pointer;border:2px solid transparent;color:#fff;box-shadow:inset 0 0 0 999px rgba(0,0,0,.18)}.menu-preset-option:has(input:checked){border-color:#fbbf24;box-shadow:0 0 0 3px rgba(251,191,36,.18),inset 0 0 0 999px rgba(0,0,0,.12)}.menu-preset-option input{margin-left:7px}.menu-preset-option span{font-weight:900}
.menu-admin-preview{width:100%;max-height:240px;object-fit:cover;border-radius:18px}.menu-admin-item-image{width:100%;height:170px;object-fit:cover;border-radius:18px}
.provider-store-tabs,.home-commerce-tabs{padding:7px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:20px;gap:7px}.provider-store-tabs .nav-link,.home-commerce-tabs .nav-link{border-radius:14px;font-weight:900;color:inherit}.provider-store-tabs .nav-link.active,.home-commerce-tabs .nav-link.active{background:linear-gradient(135deg,#f59e0b,#f97316);color:#fff;box-shadow:0 10px 25px rgba(249,115,22,.24)}
.menu-mini-card,.home-commerce-card{overflow:hidden;border-radius:20px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.12);display:flex;flex-direction:column}.menu-mini-card>img{width:100%;height:160px;object-fit:cover}.home-commerce-card>img{width:100%;height:180px;object-fit:cover}.home-commerce-card h3{line-height:1.6}.home-commerce-card{transition:transform .2s ease,border-color .2s ease}.home-commerce-card:hover{transform:translateY(-4px);border-color:rgba(245,158,11,.5)}
.provider-qr-box,.public-provider-qr{display:flex;align-items:center;justify-content:center;background:#fff;padding:16px;border-radius:24px;width:max-content;box-shadow:0 18px 50px rgba(0,0,0,.18)}.provider-qr-box{max-width:100%}.provider-qr-url{direction:ltr;overflow-wrap:anywhere;font-size:.85rem}.qr-print-card{overflow:visible}
@media(max-width:767px){.restaurant-menu-shell{border-radius:22px;background-attachment:scroll}.restaurant-menu-overlay{padding:16px}.restaurant-menu-head{padding:20px 14px;border-radius:22px}.restaurant-menu-head .display-5{font-size:1.75rem}.restaurant-menu-image-wrap{height:180px}.menu-preset-grid{grid-template-columns:1fr 1fr}.home-commerce-card>img{height:135px}.home-commerce-card .p-3{padding:12px!important}.home-commerce-card h3{font-size:.88rem}}
@media print{body{background:#fff!important}.app-topbar,.mobile-bottom-nav,.site-footer,.pwa-install-hint,.no-print,.chatbot-launcher,.chatbot-panel{display:none!important}.container{max-width:100%!important}.qr-print-card{border:0!important;box-shadow:none!important;background:#fff!important;color:#000!important}.provider-qr-box{box-shadow:none;border:1px solid #ddd}.qr-print-card .text-secondary{color:#333!important}}
.menu-preview-panel{background-size:cover!important;background-position:center!important;color:#fff;overflow:hidden;position:relative}.menu-preview-panel>.card-body{background:linear-gradient(135deg,rgba(3,7,18,.68),rgba(3,7,18,.48));backdrop-filter:blur(5px)}.menu-preview-panel .text-secondary,.menu-preview-panel .text-muted{color:rgba(255,255,255,.72)!important}.menu-preview-panel .menu-mini-card{background:rgba(4,9,20,.72);backdrop-filter:blur(12px)}


/* v47: multi-item order cart */
.cart-nav-btn{position:relative}.cart-nav-btn .notify-count{top:-9px;left:-7px;right:auto}
.cart-lines{display:grid;gap:14px}.cart-line-card{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.045);border-radius:20px}.cart-line-card>img{width:92px;height:92px;object-fit:cover;border-radius:16px}.cart-line-main{min-width:0}.cart-line-card .cart-remove-trigger{align-self:start}.request-items-box{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.045);border-radius:18px;padding:10px 14px}.request-item-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.09)}.request-item-row:last-child{border-bottom:0}.mobile-cart-link{position:relative}.mobile-cart-link em{position:absolute;top:3px;left:50%;transform:translateX(-18px);display:flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-style:normal;font-weight:900}
@media(max-width:575px){.cart-line-card{grid-template-columns:70px minmax(0,1fr);gap:10px}.cart-line-card>img{width:70px;height:70px}.cart-line-card .cart-remove-trigger{grid-column:1/-1;width:100%}.request-item-row{font-size:.9rem}}


/* v48: fixed top bar, market prices, admin permissions and referrals */
:root{--app-topbar-height:86px}
body{padding-top:var(--app-topbar-height)!important}
.app-topbar{position:fixed!important;top:0;right:0;left:0;width:100%;z-index:1045}
.app-topbar .navbar-collapse.show,.app-topbar .navbar-collapse.collapsing{max-height:calc(100vh - var(--app-topbar-height));overflow-y:auto;padding-bottom:14px}
.market-prices-news{border-radius:30px;padding:24px;background:linear-gradient(135deg,rgba(15,23,42,.86),rgba(30,41,59,.72));border:1px solid rgba(255,255,255,.14);box-shadow:0 24px 70px rgba(2,6,23,.28)}
.price-board{padding:18px;border-radius:24px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.11)}
.gold-board{background:linear-gradient(135deg,rgba(120,83,20,.24),rgba(255,255,255,.045))}
.price-board-title{font-weight:900;font-size:1.08rem;margin-bottom:14px;color:#fff}
.price-cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.market-price-card{padding:15px;border-radius:20px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.12)}
.market-price-name{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.market-price-name strong{color:#fff}.market-price-name span{font-size:.76rem;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.1);color:#cbd5e1}
.market-price-values{display:grid;grid-template-columns:1fr 1fr;gap:8px}.market-price-values>div{padding:9px;border-radius:14px;background:rgba(2,6,23,.28)}.market-price-values small{display:block;color:#94a3b8}.market-price-values b{display:block;color:#f8fafc;font-size:1.05rem;direction:ltr;text-align:right}
.market-price-unit{font-size:.76rem;color:#94a3b8;margin-top:9px}
.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.permission-option{padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.1)}
.referral-copy-input{font-weight:800}.referral-card .input-group{direction:rtl}.referral-card .referral-copy-input[dir=ltr]{text-align:left}
@media(max-width:767px){:root{--app-topbar-height:70px}.market-prices-news{padding:16px;border-radius:22px}.price-cards-grid{grid-template-columns:1fr}.market-price-card{padding:13px}.referral-card .input-group{display:grid;grid-template-columns:1fr}.referral-card .input-group>*{width:100%;border-radius:12px!important;margin:0 0 8px!important}}

@media print{body{padding-top:0!important}}
/* v61.5 admin support and persistent mobile navigation */
.admin-contact-card{display:flex;align-items:center;gap:1rem;padding:1.25rem;border-radius:1.5rem;background:var(--bs-body-bg);border:1px solid rgba(127,127,127,.18);box-shadow:0 12px 35px rgba(0,0,0,.08);color:inherit}.admin-contact-icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-size:1.8rem;background:rgba(13,110,253,.12)}.admin-contact-arrow{font-size:2rem}.support-thread{max-height:58vh;overflow:auto;padding:1rem;background:rgba(127,127,127,.06);border-radius:1.25rem}.support-message{max-width:82%;padding:.85rem 1rem;border-radius:1rem;margin-bottom:.75rem}.support-message.mine{margin-right:auto;background:rgba(13,110,253,.13)}.support-message.theirs{margin-left:auto;background:rgba(127,127,127,.15)}.support-message small{display:block;opacity:.65;margin-top:.35rem}.support-thread-link{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.9rem;border-radius:1rem;color:inherit;text-decoration:none}.support-thread-link:hover,.support-thread-link.active{background:rgba(13,110,253,.1)}.support-thread-link small{display:block;color:var(--bs-secondary-color)}
@media(max-width:991.98px){.mobile-bottom-nav{position:fixed!important;left:0;right:0;bottom:0;z-index:1040;display:grid!important}body{padding-bottom:calc(86px + env(safe-area-inset-bottom))!important}.admin-contact-card{padding:1rem}.support-thread{max-height:50vh}}

/* v65 chat actions */
.chat-bubble{position:relative}
.chat-delete-message{position:absolute;top:4px;left:6px;width:24px;height:24px;border:0;border-radius:50%;background:rgba(0,0,0,.1);color:inherit;opacity:0;transition:.2s;line-height:1;z-index:2}
.chat-bubble:hover .chat-delete-message,.chat-delete-message:focus{opacity:1}
.wa-blocked-notice{padding:10px 16px;text-align:center;font-size:.9rem;background:rgba(220,53,69,.12);border-top:1px solid rgba(220,53,69,.25);color:#b02a37}
.wa-compose.is-blocked{opacity:.55;pointer-events:none}
.wa-delete-conversation,.wa-block-btn{cursor:pointer}
@media (max-width:768px){.chat-delete-message{opacity:.7}}

/* v66: YouTube-only courses, user points chip, provider subscription editor */
.brand-identity{
    min-width:0;
    color:inherit;
    text-decoration:none;
}
.brand-identity:hover{color:inherit}
.nav-points-chip{
    display:inline-flex;
    align-items:center;
    gap:5px;
    flex:0 0 auto;
    min-height:36px;
    padding:7px 11px;
    border-radius:999px;
    text-decoration:none;
    color:#fff7d6!important;
    background:linear-gradient(135deg,rgba(245,158,11,.30),rgba(234,88,12,.22));
    border:1px solid rgba(251,191,36,.45);
    box-shadow:0 10px 28px rgba(245,158,11,.18),inset 0 1px 0 rgba(255,255,255,.16);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.nav-points-chip:hover{
    color:#fff!important;
    transform:translateY(-1px);
    border-color:rgba(253,224,71,.75);
    background:linear-gradient(135deg,rgba(245,158,11,.42),rgba(234,88,12,.32));
}
.nav-points-chip span{font-size:.9rem;line-height:1}
.nav-points-chip strong{font-size:.9rem;line-height:1;font-weight:900}
.nav-points-chip small{font-size:.68rem;font-weight:800;color:rgba(255,247,214,.78)}
.nav-points-menu-item{display:flex!important;align-items:center;justify-content:space-between;gap:18px}
.nav-points-menu-item strong{display:inline-grid;place-items:center;min-width:32px;padding:3px 8px;border-radius:999px;background:rgba(245,158,11,.18);color:#fbbf24}

.subscription-editor-row>td{
    padding:0 12px 18px!important;
    border-bottom:1px solid rgba(255,255,255,.08)!important;
}
.provider-subscription-editor{
    position:relative;
    overflow:hidden;
    padding:22px;
    border-radius:26px;
    color:var(--text,#f8fafc);
    background:
        radial-gradient(circle at 92% 5%,rgba(16,185,129,.18),transparent 34%),
        linear-gradient(135deg,rgba(15,23,42,.94),rgba(30,41,59,.86));
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 24px 65px rgba(2,6,23,.30),inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
}
.provider-subscription-editor::before{
    content:"";
    position:absolute;
    width:180px;
    height:180px;
    border-radius:50%;
    left:-80px;
    bottom:-110px;
    background:radial-gradient(circle,rgba(59,130,246,.22),transparent 68%);
    pointer-events:none;
}
.subscription-editor-head{
    position:relative;
    display:flex;
    align-items:center;
    gap:14px;
    padding-bottom:18px;
    margin-bottom:18px;
    border-bottom:1px solid rgba(255,255,255,.10);
}
.subscription-editor-icon{
    width:52px;
    height:52px;
    flex:0 0 52px;
    display:grid;
    place-items:center;
    border-radius:17px;
    font-size:1.4rem;
    background:linear-gradient(135deg,rgba(16,185,129,.30),rgba(6,182,212,.18));
    border:1px solid rgba(110,231,183,.28);
    box-shadow:0 12px 30px rgba(16,185,129,.16);
}
.subscription-editor-title{min-width:0;flex:1}
.subscription-editor-title>span{display:block;margin-bottom:2px;color:#86efac;font-size:.75rem;font-weight:900}
.subscription-editor-title h3{margin:0!important;color:#fff!important;font-size:1.15rem!important;line-height:1.45}
.subscription-editor-title p{margin:3px 0 0;color:#94a3b8;font-size:.82rem}
.subscription-editor-close{
    width:40px;
    height:40px;
    flex:0 0 40px;
    border:1px solid rgba(255,255,255,.13);
    border-radius:13px;
    background:rgba(255,255,255,.07);
    color:#e2e8f0;
    font-size:1.55rem;
    line-height:1;
    transition:.18s ease;
}
.subscription-editor-close:hover{background:rgba(239,68,68,.18);border-color:rgba(248,113,113,.30);color:#fff}
.subscription-editor-fields{position:relative}
.provider-subscription-editor .form-label{color:#cbd5e1;font-size:.78rem;font-weight:900;margin-bottom:7px}
.provider-subscription-editor .form-control,
.provider-subscription-editor .form-select{
    min-height:48px;
    color:#f8fafc;
    background:rgba(255,255,255,.075)!important;
    border:1px solid rgba(255,255,255,.13)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
.provider-subscription-editor .form-select option{color:#111827;background:#fff}
.provider-subscription-editor .form-control:focus,
.provider-subscription-editor .form-select:focus{
    border-color:rgba(52,211,153,.62)!important;
    box-shadow:0 0 0 .22rem rgba(16,185,129,.13)!important;
}
.subscription-editor-footer{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-top:20px;
    padding-top:18px;
    border-top:1px solid rgba(255,255,255,.10);
}
.subscription-editor-current{display:grid;grid-template-columns:auto auto;align-items:center;gap:2px 9px}
.subscription-editor-current span{color:#94a3b8;font-size:.72rem;font-weight:800}
.subscription-editor-current strong{color:#fff;font-size:.9rem}
.subscription-editor-current small{grid-column:1/-1;color:#86efac;font-size:.75rem}
.subscription-editor-actions{display:flex;gap:9px;flex-wrap:wrap}
.subscription-editor-actions .btn{min-width:120px}

@media(max-width:991.98px){
    .v614-topbar .navbar-brand{gap:7px!important;max-width:calc(100% - 58px)}
    .v614-topbar .brand-identity{min-width:0}
    .nav-points-chip{padding:7px 9px;min-height:34px}
    .nav-points-chip small{display:none}
    .subscription-editor-footer{align-items:stretch;flex-direction:column}
    .subscription-editor-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
    .subscription-editor-actions .btn{width:100%;min-width:0}
}
@media(max-width:575.98px){
    .v614-topbar .navbar-brand{margin:0;max-width:calc(100% - 50px)}
    .v614-topbar .brand-logo{width:38px!important;height:38px!important;flex:0 0 38px}
    .v614-topbar .navbar-brand .brand-title{max-width:92px;font-size:.82rem!important}
    .v614-topbar .brand-copy small{display:none}
    .nav-points-chip{gap:3px;padding:6px 8px}
    .nav-points-chip strong{font-size:.8rem}
    .provider-subscription-editor{padding:16px;border-radius:20px}
    .subscription-editor-head{gap:10px}
    .subscription-editor-icon{width:44px;height:44px;flex-basis:44px;border-radius:14px}
    .subscription-editor-title h3{font-size:1rem!important}
    .subscription-editor-title p{font-size:.72rem}
    .subscription-editor-actions{grid-template-columns:1fr}
}
