/* ══ Mobil menü — hesap.com.tr tarzı offcanvas ══ */
.mm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147482900;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.mm-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.mm-offcanvas {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 2147482901;
    width: min(100vw, 420px);
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    background: #0f0f14;
    transform: translateX(-105%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
}

.mm-offcanvas.open {
    transform: translateX(0);
}

.mm-inner {
    display: flex;
    height: 100%;
    min-height: 0;
}

.mm-sidebar {
    width: 80px;
    flex-shrink: 0;
    background: #0a0a0f;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mm-sidebar::-webkit-scrollbar {
    display: none;
}

.mm-close {
    height: 60px;
    width: 100%;
    border: none;
    border-radius: 0;
    background: #ff4454;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 22px;
}

.mm-close:active {
    filter: brightness(0.92);
}

.mm-sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 78px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    color: rgba(240, 240, 248, 0.45);
    text-decoration: none;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: 'Inter', sans-serif;
}

.mm-sidebar-item i {
    font-size: 20px;
    line-height: 1;
}

.mm-sidebar-item img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

.mm-sidebar-thumb {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(240, 240, 248, 0.55);
    font-size: 18px;
}

.mm-sidebar-thumb img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

.mm-sidebar-item.active .mm-sidebar-thumb {
    color: #f59e0b;
}

.mm-sidebar-item span {
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mm-sidebar-item.active {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border-left-color: #f59e0b;
}

.mm-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #12121a;
}

.mm-search-wrap {
    position: relative;
    padding: 12px 16px 10px;
    flex-shrink: 0;
}

.mm-search-wrap > i {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(240, 240, 248, 0.35);
    font-size: 15px;
    pointer-events: none;
}

.mm-search-input {
    width: 100%;
    height: 45px;
    padding: 0 14px 0 44px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #f0f0f8;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.mm-search-input:focus {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.mm-search-input::placeholder {
    color: rgba(240, 240, 248, 0.35);
}

.mm-search-results {
    margin: 0 16px 8px;
    max-height: 180px;
    overflow-y: auto;
    border-radius: 10px;
    background: #0e0e16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
}

.mm-search-results.open {
    display: block;
}

.mm-search-results .bn-sr-item {
    padding: 10px 12px;
}

.mm-search-results .bn-sr-empty {
    padding: 12px;
    font-size: 13px;
    color: rgba(240, 240, 248, 0.4);
    text-align: center;
}

.mm-panels {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.mm-panel {
    display: none;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 12px 24px;
    -webkit-overflow-scrolling: touch;
}

.mm-panel.active {
    display: flex;
}

.mm-cat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #f0f0f8;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s;
}

.mm-cat-row:hover,
.mm-cat-row:active {
    background: rgba(255, 255, 255, 0.05);
}

.mm-cat-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 16px;
}

.mm-cat-row-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-cat-row-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.mm-cat-row > i.fa-chevron-right {
    font-size: 11px;
    color: rgba(240, 240, 248, 0.25);
    flex-shrink: 0;
}

.mm-panel-head {
    padding: 4px 12px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(240, 240, 248, 0.35);
}

.mm-panel-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 12px 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: #f59e0b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

body.mm-menu-open {
    overflow: hidden !important;
}

@media (min-width: 769px) {
    .mm-backdrop,
    .mm-offcanvas {
        display: none !important;
    }
}
