/* ==========================================================================
   AFAQ LAYOUT
   Path: assets/css/afaq-layout.css
   Purpose: sidebar + topbar + main + content layout only
   Sources checked:
   - views/partials/layout-sidebar.php
   - views/partials/layout-header.php
   - views/project-owner/dashboard.php
   ========================================================================== */

/* ==========================================================================
   01) MAIN APP STRUCTURE
   ========================================================================== */
body .afaq-app {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

body .afaq-main {
    width: calc(100% - var(--afaq-sidebar));
    min-height: 100vh;
    margin-right: var(--afaq-sidebar);
    position: relative;
    background: transparent;
}

body .afaq-main--standalone {
    width: 100%;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

body .afaq-content {
    width: 100%;
    max-width: none;
    padding: 18px var(--afaq-container-gap) 46px;
    position: relative;
    z-index: 1;
}

body .afaq-content--dashboard {
    max-width: none !important;
    margin: 0 !important;
}

/* ==========================================================================
   02) SIDEBAR BASE
   ========================================================================== */
body .afaq-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 900;
    width: var(--afaq-sidebar);
    height: 100vh;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 50% 0%, rgba(192, 140, 71, 0.13), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fffdf8 48%, #f8f1e7 100%);
    border-left: 1px solid var(--afaq-border);
    box-shadow: -12px 0 38px rgba(7, 19, 33, 0.08);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(192, 140, 71, 0.38) transparent;
    transition: transform var(--afaq-transition), box-shadow var(--afaq-transition);
}

body.admin-bar .afaq-sidebar {
    top: 32px;
    height: calc(100vh - 32px);
}

body .afaq-sidebar::-webkit-scrollbar {
    width: 5px;
}

body .afaq-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

body .afaq-sidebar::-webkit-scrollbar-thumb {
    background: rgba(192, 140, 71, 0.34);
    border-radius: 999px;
}

/* ==========================================================================
   03) SIDEBAR BRAND
   ========================================================================== */
body .afaq-sidebar__brand {
    flex-shrink: 0;
    text-align: center;
    padding: 4px 10px 18px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--afaq-border);
}

body .afaq-sidebar__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

body .afaq-sidebar__logo {
    width: 86px;
    max-height: 86px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
    filter: drop-shadow(0 12px 22px rgba(192, 140, 71, 0.18));
}

body .afaq-sidebar__logo--text {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--afaq-navy), var(--afaq-navy-3));
    color: var(--afaq-gold-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    box-shadow: var(--afaq-shadow-sm);
}

body .afaq-sidebar__brand-text strong {
    display: block;
    color: var(--afaq-heading);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

body .afaq-sidebar__brand-text span {
    display: block;
    margin-top: 4px;
    color: var(--afaq-gold);
    font-size: 11.5px;
    line-height: 1.6;
    font-weight: 800;
}

/* ==========================================================================
   04) SIDEBAR NAVIGATION
   ========================================================================== */
body .afaq-sidebar__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 4px 0 14px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(192, 140, 71, 0.34) transparent;
}

body .afaq-sidebar__nav::-webkit-scrollbar {
    width: 4px;
}

body .afaq-sidebar__nav::-webkit-scrollbar-track {
    background: transparent;
}

body .afaq-sidebar__nav::-webkit-scrollbar-thumb {
    background: rgba(192, 140, 71, 0.34);
    border-radius: 999px;
}

body .afaq-sidebar__link {
    min-height: 44px;
    width: 100%;
    padding: 0 13px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    color: var(--afaq-text) !important;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 850;
    border: 1px solid transparent;
    background: transparent;
    transform: none !important;
    opacity: 1 !important;
    transition:
        background var(--afaq-transition),
        border-color var(--afaq-transition),
        color var(--afaq-transition),
        box-shadow var(--afaq-transition),
        transform var(--afaq-transition);
}

body .afaq-sidebar__link .dashicons {
    width: 19px;
    min-width: 19px;
    height: 19px;
    font-size: 19px;
    color: var(--afaq-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body .afaq-sidebar__link-label {
    flex: 1;
    min-width: 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .afaq-sidebar__link-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--afaq-gold);
    color: var(--afaq-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1;
}

body .afaq-sidebar__link:hover {
    color: var(--afaq-heading) !important;
    background: rgba(192, 140, 71, 0.08);
    border-color: rgba(192, 140, 71, 0.22);
    box-shadow: var(--afaq-shadow-xs);
    transform: translateX(-2px) !important;
}

body .afaq-sidebar__link.is-active {
    color: var(--afaq-heading) !important;
    background:
        linear-gradient(135deg, rgba(192, 140, 71, 0.18), rgba(255, 255, 255, 0.78));
    border-color: var(--afaq-border-gold);
    box-shadow: var(--afaq-shadow-sm);
}

body .afaq-sidebar__link.is-active::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px;
    width: 5px;
    height: calc(100% - 14px);
    transform: translateY(-50%);
    border-radius: 999px 0 0 999px;
    background: linear-gradient(180deg, var(--afaq-gold-2), var(--afaq-gold));
}

/* logout area exists in layout-sidebar.php */
body .afaq-sidebar__logout {
    flex-shrink: 0;
    padding: 12px 0 0;
    margin-top: 4px;
    border-top: 1px solid var(--afaq-border);
}

body .afaq-sidebar__link--logout {
    color: var(--afaq-danger) !important;
    background: var(--afaq-danger-bg);
    border-color: var(--afaq-danger-border);
}

body .afaq-sidebar__link--logout .dashicons {
    color: var(--afaq-danger);
}

/* ==========================================================================
   05) SIDEBAR FOOTER
   ========================================================================== */
body .afaq-sidebar__footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--afaq-border);
}

body .afaq-sidebar__support {
    padding: 13px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 0% 0%, rgba(192, 140, 71, 0.12), transparent 36%),
        rgba(255, 255, 255, 0.70);
    border: 1px solid var(--afaq-border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: var(--afaq-shadow-xs);
}

body .afaq-sidebar__support > .dashicons {
    width: 20px;
    min-width: 20px;
    height: 20px;
    font-size: 20px;
    color: var(--afaq-gold);
    margin-top: 2px;
}

body .afaq-sidebar__support strong {
    display: block;
    color: var(--afaq-heading);
    font-size: 12.5px;
    line-height: 1.5;
    font-weight: 900;
}

body .afaq-sidebar__support small {
    display: block;
    margin-top: 3px;
    color: var(--afaq-muted);
    font-size: 11.5px;
    line-height: 1.65;
}

/* ==========================================================================
   06) TOPBAR
   ========================================================================== */
body .afaq-topbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 80;
    padding: 16px var(--afaq-container-gap) 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.admin-bar .afaq-topbar {
    top: 32px;
}

body .afaq-topbar__content {
    width: 100%;
    min-height: 78px;
    padding: 14px 16px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 0% 0%, rgba(192, 140, 71, 0.10), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fffdf8 100%);
    border: 1px solid var(--afaq-border);
    box-shadow: var(--afaq-shadow-sm);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
}

body .afaq-topbar--compact .afaq-topbar__content {
    min-height: 74px;
}

/* ==========================================================================
   07) MOBILE MENU BUTTON
   ========================================================================== */
body .afaq-mobile-menu-toggle {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--afaq-border);
    background: #ffffff;
    color: var(--afaq-heading) !important;
    box-shadow: var(--afaq-shadow-xs);
    display: none;
    align-items: center;
    justify-content: center;
}

body .afaq-mobile-menu-toggle .dashicons {
    width: 21px;
    height: 21px;
    font-size: 21px;
    color: var(--afaq-gold);
}

/* ==========================================================================
   08) PAGE TITLE / HEADER META
   ========================================================================== */
body .afaq-page-title {
    min-width: 0;
}

body .afaq-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--afaq-gold);
    font-size: 11.5px;
    line-height: 1.55;
    font-weight: 900;
}

body .afaq-page-title h1 {
    margin: 0;
    color: var(--afaq-heading);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

body .afaq-page-title p {
    margin: 7px 0 0;
    max-width: 820px;
    color: var(--afaq-muted);
    font-size: 13px;
    line-height: 1.75;
}

body .afaq-header-meta {
    margin-top: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body .afaq-header-meta__item {
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--afaq-bg-muted);
    border: 1px solid var(--afaq-border);
    color: var(--afaq-muted);
    font-size: 11.5px;
    line-height: 1.4;
    font-weight: 800;
}

body .afaq-header-meta__item .dashicons {
    width: 15px;
    height: 15px;
    font-size: 15px;
    color: var(--afaq-gold);
}

/* ==========================================================================
   09) TOPBAR ACTIONS
   ========================================================================== */
body .afaq-topbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================================================
   10) USER CARD
   ========================================================================== */
body .afaq-user-card {
    min-width: 172px;
    max-width: 240px;
    padding: 8px 9px;
    border-radius: 18px;
    border: 1px solid var(--afaq-border);
    background: #ffffff;
    box-shadow: var(--afaq-shadow-xs);
    display: flex;
    align-items: center;
    gap: 10px;
}

body .afaq-user-card__avatar {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--afaq-navy), var(--afaq-navy-3));
    color: var(--afaq-gold-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

body .afaq-user-card__avatar .dashicons {
    color: var(--afaq-gold-2);
}

body .afaq-user-card__meta {
    min-width: 0;
}

body .afaq-user-card__meta strong {
    display: block;
    color: var(--afaq-heading);
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .afaq-user-card__meta span {
    display: block;
    margin-top: 1px;
    color: var(--afaq-muted);
    font-size: 11.2px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .afaq-user-card__logout {
    margin-top: 3px;
    color: var(--afaq-danger) !important;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body .afaq-user-card__logout .dashicons {
    width: 13px;
    height: 13px;
    font-size: 13px;
}

/* ==========================================================================
   11) HEADER STATS
   ========================================================================== */
body .afaq-header-stats {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body .afaq-header-stat {
    min-height: 68px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--afaq-border);
    background: #ffffff;
    box-shadow: var(--afaq-shadow-xs);
}

body .afaq-header-stat strong {
    display: block;
    color: var(--afaq-heading);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

body .afaq-header-stat span {
    display: block;
    margin-top: 4px;
    color: var(--afaq-muted);
    font-size: 12px;
    line-height: 1.55;
    font-weight: 800;
}

body .afaq-header-stat--success {
    border-color: var(--afaq-success-border);
    background: var(--afaq-success-bg);
}

body .afaq-header-stat--warning {
    border-color: var(--afaq-warning-border);
    background: var(--afaq-warning-bg);
}

body .afaq-header-stat--danger {
    border-color: var(--afaq-danger-border);
    background: var(--afaq-danger-bg);
}

body .afaq-header-stat--info {
    border-color: var(--afaq-info-border);
    background: var(--afaq-info-bg);
}

/* ==========================================================================
   12) MOBILE SIDEBAR OVERLAY
   ========================================================================== */
@media (max-width: 1024px) {
    body .afaq-app::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 850;
        background: rgba(7, 19, 33, 0.42);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--afaq-transition);
    }

    body .afaq-app.is-sidebar-open::before,
    body.afaq-sidebar-open .afaq-app::before {
        opacity: 1;
        pointer-events: auto;
    }

    body .afaq-sidebar {
        width: 286px;
        transform: translateX(110%);
        box-shadow: -20px 0 55px rgba(7, 19, 33, 0.16);
    }

    body .afaq-app.is-sidebar-open .afaq-sidebar,
    body.afaq-sidebar-open .afaq-sidebar {
        transform: translateX(0);
    }

    body .afaq-main {
        width: 100%;
        margin-right: 0;
    }

    body .afaq-mobile-menu-toggle {
        display: inline-flex;
    }

    body .afaq-topbar__content {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body .afaq-topbar__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    body .afaq-user-card {
        display: none;
    }

    body .afaq-header-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   13) ADMIN BAR MOBILE
   ========================================================================== */
@media (max-width: 782px) {
    body.admin-bar .afaq-sidebar {
        top: 46px;
        height: calc(100vh - 46px);
    }

    body.admin-bar .afaq-topbar {
        top: 46px;
    }
}

/* ==========================================================================
   14) PHONE LAYOUT
   ========================================================================== */
@media (max-width: 760px) {
    body .afaq-sidebar {
        width: 286px;
        padding: 15px 12px;
    }

    body .afaq-topbar {
        padding: 9px 10px 6px;
    }

    body .afaq-content {
        padding: 9px 10px 32px;
    }

    body .afaq-topbar__content {
        min-height: auto;
        border-radius: 18px;
        padding: 12px;
        gap: 10px;
    }

    body .afaq-page-title h1 {
        font-size: 16px;
        line-height: 1.45;
    }

    body .afaq-page-title p {
        font-size: 12px;
        line-height: 1.7;
    }

    body .afaq-topbar__actions {
        gap: 6px;
    }

    body .afaq-header-stats {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   15) SMALL PHONE
   ========================================================================== */
@media (max-width: 420px) {
    body .afaq-sidebar {
        width: 84vw;
    }

    body .afaq-sidebar__logo {
        width: 74px;
        max-height: 74px;
    }

    body .afaq-sidebar__brand-text strong {
        font-size: 15px;
    }

    body .afaq-sidebar__link {
        min-height: 42px;
        font-size: 12.5px;
    }
}


/* ========================================================================== 
   AFAQ OWNER ROYAL WHITE STAGE 1 - LAYOUT OVERRIDE
   Purpose: white luxury owner dashboard shell + isolated mobile behavior
   ========================================================================== */
body .afaq-app[class*="afaq-owner-"] {
    --afaq-sidebar: 270px;
    --afaq-owner-page-bg: #ffffff;
    --afaq-owner-surface: #ffffff;
    --afaq-owner-paper: #fffdf9;
    --afaq-owner-cream: #fff8ef;
    --afaq-owner-ink: #071321;
    --afaq-owner-text: #172033;
    --afaq-owner-muted: #667085;
    --afaq-owner-gold: #c08c47;
    --afaq-owner-gold-2: #d9a15a;
    --afaq-owner-border: rgba(7, 19, 33, .075);
    --afaq-owner-border-gold: rgba(192, 140, 71, .22);
    --afaq-owner-shadow-xs: 0 6px 16px rgba(7, 19, 33, .035);
    --afaq-owner-shadow-sm: 0 14px 34px rgba(7, 19, 33, .055);
    --afaq-owner-shadow-md: 0 24px 70px rgba(7, 19, 33, .075);
    background:
        radial-gradient(circle at 10% -120px, rgba(192, 140, 71, .085), transparent 420px),
        radial-gradient(circle at 94% 0%, rgba(192, 140, 71, .045), transparent 420px),
        linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #fbfcfe 100%) !important;
    overflow-x: hidden !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-main {
    background: transparent !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-main:not(.afaq-main--standalone) {
    width: calc(100% - var(--afaq-sidebar)) !important;
    max-width: calc(100% - var(--afaq-sidebar)) !important;
    margin-right: var(--afaq-sidebar) !important;
    margin-left: 0 !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-content,
body .afaq-app[class*="afaq-owner-"] .afaq-content--dashboard {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px 20px 58px !important;
    background: transparent !important;
    overflow-x: hidden !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-sidebar {
    width: var(--afaq-sidebar) !important;
    background:
        radial-gradient(circle at 50% -120px, rgba(192, 140, 71, .16), transparent 320px),
        linear-gradient(180deg, #ffffff 0%, #ffffff 46%, #fffaf2 100%) !important;
    border-left: 1px solid rgba(7, 19, 33, .070) !important;
    box-shadow: -16px 0 48px rgba(7, 19, 33, .070) !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-sidebar__brand {
    border-bottom: 1px solid rgba(7, 19, 33, .065) !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-sidebar__logo-link {
    border-radius: 24px !important;
    transition: transform .22s ease, filter .22s ease !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-sidebar__logo-link:hover {
    transform: translateY(-2px) scale(1.02) !important;
    filter: drop-shadow(0 12px 22px rgba(192, 140, 71, .18)) !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-sidebar__link {
    min-height: 46px !important;
    color: #354154 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 16px !important;
    font-weight: 900 !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-sidebar__link .dashicons {
    color: var(--afaq-owner-gold) !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-sidebar__link:hover,
body .afaq-app[class*="afaq-owner-"] .afaq-sidebar__link.is-active {
    color: var(--afaq-owner-ink) !important;
    background: linear-gradient(135deg, rgba(192, 140, 71, .135), rgba(255, 255, 255, .92)) !important;
    border-color: rgba(192, 140, 71, .23) !important;
    box-shadow: 0 10px 24px rgba(7, 19, 33, .045) !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-topbar {
    padding: 14px 20px 8px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.86), rgba(255,255,255,0)) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-topbar__content {
    border: 1px solid rgba(7, 19, 33, .070) !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(192, 140, 71, .10), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #fffdf8 100%) !important;
    box-shadow: 0 14px 34px rgba(7, 19, 33, .052) !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-page-title h1,
body .afaq-app[class*="afaq-owner-"] .afaq-page-title strong {
    color: var(--afaq-owner-ink) !important;
    -webkit-text-fill-color: currentColor !important;
}

body .afaq-app[class*="afaq-owner-"] .afaq-card,
body .afaq-app[class*="afaq-owner-"] .afaq-stat-card,
body .afaq-app[class*="afaq-owner-"] .afaq-empty-state,
body .afaq-app[class*="afaq-owner-"] .afaq-compact-panel {
    background: #ffffff !important;
    border-color: rgba(7, 19, 33, .070) !important;
    box-shadow: 0 12px 30px rgba(7, 19, 33, .045) !important;
}

body .afaq-app[class*="afaq-owner-"] [data-afaq-pwa-install],
body .afaq-app[class*="afaq-owner-"] .afaq-pwa-install,
body .afaq-app[class*="afaq-owner-"] .afaq-install-pwa,
body .afaq-app[class*="afaq-owner-"] .afaq-install-button {
    display: none !important;
}

@media screen and (max-width: 1024px) {
    html, html body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    body .afaq-app[class*="afaq-owner-"] {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    body .afaq-app[class*="afaq-owner-"] .afaq-main,
    body .afaq-app[class*="afaq-owner-"] .afaq-main:not(.afaq-main--standalone),
    body .afaq-app[class*="afaq-owner-"] .afaq-content,
    body .afaq-app[class*="afaq-owner-"] .afaq-content--dashboard {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        overflow-x: hidden !important;
    }

    body .afaq-app[class*="afaq-owner-"] .afaq-content,
    body .afaq-app[class*="afaq-owner-"] .afaq-content--dashboard {
        padding: 8px 7px 24px !important;
    }

    body .afaq-app[class*="afaq-owner-"] .afaq-sidebar {
        top: 0 !important;
        right: 0 !important;
        width: min(86vw, 315px) !important;
        height: 100svh !important;
        max-height: 100svh !important;
        transform: translateX(112%) !important;
        box-shadow: -22px 0 70px rgba(7, 19, 33, .18) !important;
        border-radius: 0 0 0 24px !important;
    }

    body.admin-bar .afaq-app[class*="afaq-owner-"] .afaq-sidebar {
        top: 46px !important;
        height: calc(100svh - 46px) !important;
    }

    body .afaq-app[class*="afaq-owner-"].is-sidebar-open .afaq-sidebar,
    body.afaq-sidebar-open .afaq-app[class*="afaq-owner-"] .afaq-sidebar {
        transform: translateX(0) !important;
    }

    body .afaq-app[class*="afaq-owner-"] .afaq-sidebar-overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 850 !important;
        background: rgba(7, 19, 33, .36) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity .22s ease !important;
    }

    body .afaq-app[class*="afaq-owner-"].is-sidebar-open .afaq-sidebar-overlay,
    body.afaq-sidebar-open .afaq-app[class*="afaq-owner-"] .afaq-sidebar-overlay {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body .afaq-app[class*="afaq-owner-"] .afaq-topbar {
        padding: 6px 6px 4px !important;
    }

    body .afaq-app[class*="afaq-owner-"] .afaq-topbar__content {
        min-height: 58px !important;
        padding: 8px 9px !important;
        border-radius: 16px !important;
        grid-template-columns: minmax(0, 1fr) 42px !important;
        gap: 8px !important;
    }

    body .afaq-app[class*="afaq-owner-"] .afaq-mobile-menu-toggle {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        border: 1px solid rgba(255, 255, 255, .35) !important;
        border-radius: 14px !important;
        background-color: var(--afaq-owner-gold) !important;
        background-image:
            linear-gradient(#ffffff, #ffffff),
            linear-gradient(#ffffff, #ffffff),
            linear-gradient(#ffffff, #ffffff),
            linear-gradient(135deg, var(--afaq-owner-gold), var(--afaq-owner-gold-2)) !important;
        background-size: 18px 2px, 13px 2px, 18px 2px, 100% 100% !important;
        background-position: center calc(50% - 7px), center center, center calc(50% + 7px), center center !important;
        background-repeat: no-repeat !important;
        color: transparent !important;
        font-size: 0 !important;
        text-indent: -9999px !important;
        overflow: hidden !important;
        box-shadow: 0 12px 24px rgba(192, 140, 71, .24) !important;
    }

    body .afaq-app[class*="afaq-owner-"] [data-afaq-pwa-install],
    body .afaq-app[class*="afaq-owner-"] .afaq-pwa-install,
    body .afaq-app[class*="afaq-owner-"] .afaq-install-pwa,
    body .afaq-app[class*="afaq-owner-"] .afaq-install-button {
        position: fixed !important;
        left: 12px !important;
        bottom: 12px !important;
        z-index: 760 !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        min-height: 38px !important;
        padding: 0 13px !important;
        border-radius: 999px !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, var(--afaq-owner-gold), var(--afaq-owner-gold-2)) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 10.5px !important;
        font-weight: 950 !important;
        box-shadow: 0 14px 30px rgba(192,140,71,.26) !important;
    }
}
