/* /Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-v3k9aeqmgd] {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--ib-surface);
    display: flex;
    flex-direction: column;
}

.app-shell.guest[b-v3k9aeqmgd] {
    background:
        linear-gradient(180deg, #f3f8fb 0%, #eef4f8 42%, #f7f9fb 100%);
}

.app-content[b-v3k9aeqmgd] {
    flex: 1;
    padding-top: var(--ib-topbar-h);
    margin-inline-start: 0;
    transition: margin-inline-start var(--ib-transition);
}

.app-shell.authenticated .app-content[b-v3k9aeqmgd] {
    margin-inline-start: var(--ib-sidebar-w);
}

.app-shell.authenticated.sidebar-collapsed .app-content[b-v3k9aeqmgd] {
    margin-inline-start: var(--ib-sidebar-w-collapsed);
}

.app-content__article[b-v3k9aeqmgd] {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--ib-space-5) var(--ib-space-6);
    min-height: calc(100vh - var(--ib-topbar-h) - var(--ib-footer-h));
}

.app-shell--with-footer .app-content__article[b-v3k9aeqmgd] {
    padding-bottom: calc(var(--ib-footer-h) + var(--ib-space-6));
}

.app-shell.guest .app-content__article[b-v3k9aeqmgd] {
    max-width: none;
    padding: var(--ib-space-5) clamp(16px, 3vw, 40px);
}

.app-shell.guest .app-content__article:has(.ib-home)[b-v3k9aeqmgd] {
    padding-top: 0;
}

.content[b-v3k9aeqmgd] {
    padding-top: 0;
}

@media (max-width: 768px) {
    .app-shell.authenticated .app-content[b-v3k9aeqmgd] {
        margin-inline-start: 0;
    }

    .app-content__article[b-v3k9aeqmgd] {
        padding: var(--ib-space-4);
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════════
   i-Bina — Public Header (guest)
   ═══════════════════════════════════════════════════════════════ */

.ib-public-header[b-ajp8q7y9zp] {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(199, 214, 231, 0.72);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.ib-public-header__inner[b-ajp8q7y9zp] {
    display: flex;
    align-items: center;
    gap: var(--ib-space-4);
    padding: 0 clamp(16px, 3vw, 40px);
    height: var(--ib-topbar-h);
    max-width: 1400px;
    margin: 0 auto;
}

.ib-public-header__brand[b-ajp8q7y9zp] { flex-shrink: 0; }

.ib-public-header__menu-btn[b-ajp8q7y9zp] {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ib-outline-light);
    border-radius: var(--ib-radius-full);
    background: var(--ib-surface-card);
    color: var(--ib-on-surface);
    cursor: pointer;
    transition: all var(--ib-transition);
}

.ib-public-header__menu-btn:hover[b-ajp8q7y9zp] {
    background: var(--ib-surface-hover);
    border-color: var(--ib-outline);
}

.ib-public-header__logo-link[b-ajp8q7y9zp] {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ib-public-header__nav[b-ajp8q7y9zp] {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 4px;
    margin-inline-start: var(--ib-space-4);
}

.ib-public-header__nav[b-ajp8q7y9zp]  .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: var(--ib-radius-full);
    font-size: var(--ib-text-sm);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ib-on-surface-muted);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--ib-transition);
}

.ib-public-header__nav[b-ajp8q7y9zp]  .nav-link:hover {
    color: var(--ib-on-surface);
    background: var(--ib-surface-hover);
}

.ib-public-header__nav[b-ajp8q7y9zp]  .nav-link.active {
    background: var(--ib-primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(232, 32, 28, 0.24);
}

.ib-public-header__search[b-ajp8q7y9zp] {
    flex: 1 1 160px;
    min-width: 120px;
    max-width: 220px;
    margin-inline-start: 8px;
}

.search-form[b-ajp8q7y9zp] {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(244, 248, 252, 0.92);
    border: 1px solid rgba(199, 214, 231, 0.78);
    border-radius: var(--ib-radius-full);
    padding: 0 16px;
    height: 40px;
    transition: border-color var(--ib-transition), box-shadow var(--ib-transition);
}

.search-form:focus-within[b-ajp8q7y9zp] {
    border-color: var(--ib-primary);
    box-shadow: var(--ib-focus-ring);
}

.search-form__icon[b-ajp8q7y9zp] {
    color: var(--ib-on-surface-subtle);
    flex-shrink: 0;
}

.search-input[b-ajp8q7y9zp] {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
    font-size: var(--ib-text-sm);
    color: var(--ib-on-surface);
}

.search-input[b-ajp8q7y9zp]::placeholder { color: var(--ib-on-surface-subtle); }

.ib-public-header__actions[b-ajp8q7y9zp] {
    display: flex;
    align-items: center;
    gap: var(--ib-space-3);
    margin-inline-start: auto;
}

.auth-buttons[b-ajp8q7y9zp] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-buttons[b-ajp8q7y9zp]  .btn-login {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: var(--ib-radius-full);
    font-size: var(--ib-text-sm);
    font-weight: 600;
    color: var(--ib-on-surface);
    background: var(--ib-surface-card);
    border: 1px solid var(--ib-outline);
    text-decoration: none;
    transition: all var(--ib-transition);
}

.auth-buttons[b-ajp8q7y9zp]  .btn-login:hover {
    border-color: var(--ib-primary);
    color: var(--ib-primary-dark);
    background: var(--ib-primary-light);
}

.auth-buttons[b-ajp8q7y9zp]  .btn-register {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: var(--ib-radius-full);
    font-size: var(--ib-text-sm);
    font-weight: 600;
    color: #fff;
    background: var(--ib-primary-gradient);
    border: none;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(232, 32, 28, 0.26);
    transition: all var(--ib-transition);
}

.auth-buttons[b-ajp8q7y9zp]  .btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(232, 32, 28, 0.34);
}

/* ═══════════════════════════════════════════════════════════════
   i-Bina — App Header (authenticated)
   ═══════════════════════════════════════════════════════════════ */

.ib-app-header[b-ajp8q7y9zp] {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ib-outline-light);
    box-shadow: var(--ib-shadow);
}

.ib-app-header__inner[b-ajp8q7y9zp] {
    display: flex;
    align-items: center;
    gap: var(--ib-space-3);
    padding: 0 clamp(12px, 2vw, 24px);
    height: var(--ib-topbar-h);
}

.ib-app-header__menu-btn[b-ajp8q7y9zp],
.ib-app-header__collapse-btn[b-ajp8q7y9zp] {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ib-outline-light);
    border-radius: var(--ib-radius-full);
    background: var(--ib-surface-card);
    color: var(--ib-on-surface);
    cursor: pointer;
    transition: all var(--ib-transition);
}

.ib-app-header__menu-btn:hover[b-ajp8q7y9zp],
.ib-app-header__collapse-btn:hover[b-ajp8q7y9zp] {
    background: var(--ib-surface-hover);
    border-color: var(--ib-outline);
}

.ib-app-header__collapse-btn[b-ajp8q7y9zp] {
    display: inline-flex;
}

.ib-app-header__brand[b-ajp8q7y9zp] { flex-shrink: 0; }

.ib-app-header__logo-link[b-ajp8q7y9zp] {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ib-app-header__nav[b-ajp8q7y9zp] {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 4px;
    margin-inline-start: var(--ib-space-2);
}

.ib-app-header__nav[b-ajp8q7y9zp]  .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: var(--ib-radius-full);
    font-size: var(--ib-text-sm);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ib-on-surface-muted);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--ib-transition);
}

.ib-app-header__nav[b-ajp8q7y9zp]  .nav-link:hover {
    color: var(--ib-on-surface);
    background: var(--ib-surface-hover);
}

.ib-app-header__nav[b-ajp8q7y9zp]  .nav-link.active {
    background: var(--ib-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.ib-app-header__actions[b-ajp8q7y9zp] {
    display: flex;
    align-items: center;
    gap: var(--ib-space-3);
    margin-inline-start: auto;
}

.ib-token-chip[b-ajp8q7y9zp] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--ib-radius-full);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--ib-primary);
    font-size: var(--ib-text-sm);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background var(--ib-transition), border-color var(--ib-transition);
}

.ib-token-chip:hover[b-ajp8q7y9zp] {
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--ib-primary-dark);
}

.ib-token-chip__label[b-ajp8q7y9zp] {
    opacity: 0.85;
}

.ib-token-chip__value[b-ajp8q7y9zp] {
    font-variant-numeric: tabular-nums;
}

.ib-user-chip[b-ajp8q7y9zp] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: var(--ib-surface);
    border: 1px solid var(--ib-outline-light);
    border-radius: var(--ib-radius-full);
}

.ib-user-chip__avatar[b-ajp8q7y9zp] {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ib-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ib-text-sm);
    font-weight: 700;
}

.ib-user-chip__info[b-ajp8q7y9zp] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ib-user-chip__name[b-ajp8q7y9zp] {
    font-size: var(--ib-text-xs);
    font-weight: 700;
    color: var(--ib-on-surface);
}

.ib-user-chip__role[b-ajp8q7y9zp] {
    font-size: 11px;
    color: var(--ib-on-surface-muted);
    text-transform: capitalize;
}

.ib-app-header__logout[b-ajp8q7y9zp] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: none;
    border-radius: var(--ib-radius-full);
    background: var(--ib-primary-gradient);
    color: #fff;
    font-size: var(--ib-text-sm);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all var(--ib-transition);
}

.ib-app-header__logout:hover[b-ajp8q7y9zp] {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* ═══════════════════════════════════════════════════════════════
   i-Bina — Sidebar
   ═══════════════════════════════════════════════════════════════ */

.ib-sidebar-overlay[b-ajp8q7y9zp] {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1001;
    backdrop-filter: blur(2px);
}

.profile-sidebar[b-ajp8q7y9zp] {
    width: var(--ib-sidebar-w);
    background: var(--ib-surface-card);
    border-inline-end: 1px solid var(--ib-outline-light);
    position: fixed;
    inset-inline-start: 0;
    top: var(--ib-topbar-h);
    bottom: var(--ib-footer-h);
    z-index: 1002;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ib-shadow);
    transition: width var(--ib-transition), transform var(--ib-transition);
}

.ib-sidebar__head[b-ajp8q7y9zp] {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: var(--ib-space-4) var(--ib-space-5);
    border-bottom: 1px solid var(--ib-outline-light);
}

.ib-sidebar__title[b-ajp8q7y9zp] {
    font-size: var(--ib-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ib-on-surface-muted);
}

.ib-sidebar__close[b-ajp8q7y9zp] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--ib-radius-full);
    background: var(--ib-surface-hover);
    color: var(--ib-on-surface-muted);
    cursor: pointer;
}

.sidebar-content[b-ajp8q7y9zp] {
    padding: var(--ib-space-4) var(--ib-space-3);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-content[b-ajp8q7y9zp]  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--ib-radius-full);
    color: var(--ib-on-surface-muted);
    text-decoration: none;
    font-size: var(--ib-text-sm);
    font-weight: 500;
    transition: all var(--ib-transition);
    border: 1px solid transparent;
}

.sidebar-content[b-ajp8q7y9zp]  .sidebar-item:hover {
    background: var(--ib-surface-hover);
    color: var(--ib-on-surface);
}

.sidebar-content[b-ajp8q7y9zp]  .sidebar-item.active {
    background: var(--ib-primary-light);
    color: var(--ib-primary-dark);
    border-color: rgba(37, 99, 235, 0.15);
    font-weight: 600;
}

.sidebar-number[b-ajp8q7y9zp] {
    width: 28px;
    height: 28px;
    border-radius: var(--ib-radius-full);
    background: var(--ib-surface-hover);
    color: var(--ib-on-surface-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all var(--ib-transition);
}

.sidebar-content[b-ajp8q7y9zp]  .sidebar-item.active .sidebar-number {
    background: var(--ib-primary);
    color: #fff;
}

.sidebar-label[b-ajp8q7y9zp] {
    flex: 1;
    line-height: 1.35;
}

@media (min-width: 769px) {
    .profile-sidebar--collapsed[b-ajp8q7y9zp] {
        width: var(--ib-sidebar-w-collapsed);
    }

    .profile-sidebar--collapsed .sidebar-content[b-ajp8q7y9zp] {
        padding-inline: 8px;
        align-items: center;
    }

    .profile-sidebar--collapsed .sidebar-content[b-ajp8q7y9zp]  .sidebar-item {
        justify-content: center;
        width: 48px;
        height: 48px;
        gap: 0;
        padding: 0;
        border-radius: var(--ib-radius-full);
    }

    .profile-sidebar--collapsed .sidebar-label[b-ajp8q7y9zp] {
        display: none;
    }

    .profile-sidebar--collapsed .sidebar-number[b-ajp8q7y9zp] {
        width: 30px;
        height: 30px;
    }
}

/* Disabled states */
.nav-link--disabled[b-ajp8q7y9zp],
.sidebar-item--disabled[b-ajp8q7y9zp] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Language switcher alignment */
.nav-lang-switcher-wrap[b-ajp8q7y9zp] {
    display: flex;
    align-items: center;
}

/* Logo sizing */
.logo-image[b-ajp8q7y9zp] {
    width: auto;
    height: 48px;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */

/* Desktop: Login/Language stay in header actions — not duplicated in nav */
.ib-public-header__nav-mobile-extras[b-ajp8q7y9zp] {
    display: none;
}

@media (max-width: 1380px) {
    .ib-public-header__search[b-ajp8q7y9zp] { display: none; }
}

@media (max-width: 1024px) {
    .ib-public-header__search[b-ajp8q7y9zp] { display: none; }
    .ib-user-chip__info[b-ajp8q7y9zp] { display: none; }

    /* Collapse the public nav to a hamburger drawer on tablet & below so the
       top bar never crowds (logo + nav + language + auth would overflow). */
    .ib-public-header__menu-btn[b-ajp8q7y9zp] { display: flex; }
    .ib-public-header__nav[b-ajp8q7y9zp] {
        display: none;
        position: fixed;
        top: calc(var(--ib-topbar-h) + 10px);
        left: clamp(12px, 3vw, 24px);
        right: clamp(12px, 3vw, 24px);
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        max-height: calc(100dvh - var(--ib-topbar-h) - 24px);
        overflow-y: auto;
        padding: 10px;
        background: var(--ib-surface-card);
        border: 1px solid var(--ib-outline-light);
        border-radius: var(--ib-radius-lg);
        box-shadow: var(--ib-shadow-lg);
        z-index: 1001;
        margin-inline-start: 0;
    }
    .ib-public-header__nav--open[b-ajp8q7y9zp] { display: flex; }
    .ib-public-header__nav[b-ajp8q7y9zp]  .nav-link {
        border-radius: var(--ib-radius-full);
        padding: 13px 16px;
        color: var(--ib-on-surface);
    }

    /* Login + Language appear inside the hamburger drawer on tablet/phone */
    .ib-public-header__nav-mobile-extras[b-ajp8q7y9zp] {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 4px;
    }
    .ib-public-header__nav-divider[b-ajp8q7y9zp] {
        height: 1px;
        margin: 6px 4px;
        background: var(--ib-outline-light);
        flex-shrink: 0;
    }

    /* Header must not keep a second language/login control — it crowds the bar
       and the absolute dropdown paints over drawer auth buttons. */
    .ib-public-header__actions .nav-lang-switcher-wrap[b-ajp8q7y9zp] {
        display: none !important;
    }
    .auth-buttons[b-ajp8q7y9zp]  .btn-login {
        display: none !important;
    }

    /* Drawer language: full-width trigger + menu expands IN FLOW (not absolute) */
    .ib-public-header__nav-lang[b-ajp8q7y9zp] {
        padding: 2px 4px 4px;
        width: 100%;
    }
    .ib-public-header__nav-lang[b-ajp8q7y9zp]  .ib-lang-switcher {
        width: 100%;
        z-index: 1;
    }
    .ib-public-header__nav-lang[b-ajp8q7y9zp]  .ib-lang-switcher__btn {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        border-radius: var(--ib-radius-full);
        padding: 12px 16px;
    }
    .ib-public-header__nav-lang[b-ajp8q7y9zp]  .ib-lang-switcher__label {
        display: inline !important;
    }
    .ib-public-header__nav-lang[b-ajp8q7y9zp]  .ib-lang-switcher__short {
        display: none !important;
    }
    .ib-public-header__nav-lang[b-ajp8q7y9zp]  .ib-lang-switcher__caret {
        margin-inline-start: auto;
    }
    .ib-public-header__nav-lang[b-ajp8q7y9zp]  .ib-lang-switcher__menu {
        position: static;
        width: 100%;
        min-width: 0;
        inset: auto;
        top: auto;
        margin-top: 6px;
        box-shadow: none;
        z-index: 1;
    }
    .ib-public-header__nav-lang[b-ajp8q7y9zp]  .ib-lang-switcher__backdrop {
        display: none;
    }

    /* Stacked auth actions under language */
    .ib-public-header__nav-mobile-extras[b-ajp8q7y9zp]  a.nav-link {
        justify-content: center;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    .ib-public-header__nav-mobile-extras[b-ajp8q7y9zp]  a.nav-link:not(.ib-public-header__nav-signup) {
        border: 1px solid var(--ib-outline);
        background: var(--ib-surface-card);
    }
    .ib-public-header__nav-signup[b-ajp8q7y9zp] {
        background: var(--ib-primary) !important;
        color: #fff !important;
        text-align: center;
        justify-content: center;
        box-shadow: 0 10px 22px rgba(232, 32, 28, 0.22);
    }
}

@media (max-width: 768px) {
    .ib-app-header__menu-btn[b-ajp8q7y9zp] { display: flex; }
    .ib-app-header__collapse-btn[b-ajp8q7y9zp] { display: none; }
    .ib-app-header__nav[b-ajp8q7y9zp] { display: none; }
    .ib-app-header__logout span[b-ajp8q7y9zp] { display: none; }
    .ib-app-header__logout[b-ajp8q7y9zp] { padding: 9px 12px; }

    .ib-sidebar-overlay[b-ajp8q7y9zp] {
        display: block;
        z-index: 990;
    }

    .profile-sidebar[b-ajp8q7y9zp] {
        transform: translateX(-100%);
        transition: transform var(--ib-transition);
        box-shadow: var(--ib-shadow-xl);
    }

    [dir="rtl"] .profile-sidebar[b-ajp8q7y9zp] {
        transform: translateX(100%);
    }

    .profile-sidebar--open[b-ajp8q7y9zp] {
        transform: translateX(0) !important;
    }

    .ib-sidebar__head[b-ajp8q7y9zp] { display: flex; }

    /* Compact Sign Up CTA remains in the phone header */
    .auth-buttons[b-ajp8q7y9zp]  .btn-register { padding: 9px 15px; }
    .ib-public-header__inner[b-ajp8q7y9zp] { gap: var(--ib-space-2); }
}

@media (max-width: 560px) {
    .auth-buttons[b-ajp8q7y9zp]  .btn-register {
        padding: 9px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .logo-image[b-ajp8q7y9zp] { width: auto; height: 40px; }
    .ib-public-header__inner[b-ajp8q7y9zp] { padding: 0 12px; }
}
