/* MB Drawer Menu — Frontend CSS */

.mb-burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 0;
    transition: background 0.2s;
    position: relative;
    z-index: 999;
}
.mb-burger-btn:hover { background: rgba(0,0,0,0.05); }
.mb-bar {
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    display: block;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    transform-origin: center;
}
.mb-burger-btn.mb-open .mb-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mb-burger-btn.mb-open .mb-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mb-burger-btn.mb-open .mb-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 999997;
    transition: background 0.35s ease;
}
.mb-overlay.active { background: rgba(0,0,0,0.45); }

.mb-main-drawer {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 999998;
    transform: translateY(-100%);
    transition: transform 0.42s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mb-main-drawer.mb-open { transform: translateY(0); }

.mb-dh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px 16px;
    border-bottom: 1px solid #f5f5f5;
    flex-shrink: 0;
}
.mb-dlogo {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.mb-dlogo img { height: auto; display: block; }
.mb-xbtn {
    width: 34px; height: 34px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #555;
    flex-shrink: 0;
    transition: background 0.2s;
}
.mb-xbtn:hover { background: #eee; }

.mb-mlist {
    list-style: none;
    padding: 4px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}
.mb-mlist > li {
    border-bottom: 1px solid #f7f7f7;
    opacity: 0;
    transform: translateY(-14px);
}
.mb-mlink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    height: 54px;
    font-size: 15px;
    color: #222;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.mb-mlink:hover { background: #fafafa; }
.mb-mlink-ico {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.mb-mlink-label { flex: 1; }
.mb-sub-badge {
    font-size: 10px;
    background: #f0f0f0;
    color: #888;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
    flex-shrink: 0;
}
.mb-arr { font-size: 16px; color: #ccc; }

.mb-df {
    padding: 16px 22px 36px;
    border-top: 1px solid #f5f5f5;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease 0.5s, transform 0.3s ease 0.5s;
}
.mb-main-drawer.mb-open .mb-df {
    opacity: 1;
    transform: translateY(0);
}
.mb-ctabtn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.mb-ctabtn:hover { background: #333; color: #fff; }

/* Sub Drawer */
.mb-sub-drawer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    z-index: 999999;
    transform: translateY(-100%);
    transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mb-sub-drawer.mb-open { transform: translateY(0); }

.mb-sdh {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid #f5f5f5;
    flex-shrink: 0;
}
.mb-backbtn {
    width: 34px; height: 34px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #444;
    flex-shrink: 0;
    transition: background 0.2s;
    line-height: 1;
}
.mb-backbtn:hover { background: #eee; }
.mb-sd-title { font-size: 16px; font-weight: 600; color: #111; }

.mb-slist {
    list-style: none;
    padding: 6px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}
.mb-slist li {
    border-bottom: 1px solid #f7f7f7;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.26s ease, transform 0.26s ease;
}
.mb-slink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    height: 50px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: background 0.15s;
}
.mb-slink:hover { background: #fafafa; color: #111; }
.mb-sdot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
}
.mb-slink-label { flex: 1; }
.mb-slink-arr { font-size: 14px; color: #ccc; }
