/**
 * ETM Mobile Bar - Mobile Bar Styles (Complete)
 * استایل کامل نوار موبایل — نسخه نهایی 2.1.0
 *
 * @package ETM_MobileBar
 * @version 2.1.0
 */

/* ═══════════════════════════════════════════════════
   🎯 Wrapper اصلی
   ═══════════════════════════════════════════════════ */

.etm-mbu-bar {
    position: fixed;
    z-index: 9990;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    box-sizing: border-box;
}

.etm-mbu-bar *,
.etm-mbu-bar *::before,
.etm-mbu-bar *::after {
    box-sizing: border-box;
}

.etm-mbu-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--etm-bg, #ffffff);
    padding: var(--etm-padding-y, 8px) var(--etm-padding-x, 12px);
    min-height: var(--etm-bar-height, 64px);
    gap: 4px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    border-radius: var(--etm-radius, 16px);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--etm-border, #e2e8f0);
}

.etm-mbu-bar-inner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--etm-primary, #7c3aed), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.etm-mbu-bar:hover .etm-mbu-bar-inner::before {
    opacity: 0.5;
}

/* ─── Glass Effect ─── */
.etm-mbu-glass .etm-mbu-bar-inner {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

@media (prefers-color-scheme: dark) {
    .etm-mbu-glass .etm-mbu-bar-inner {
        background: rgba(26, 22, 37, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ═══════════════════════════════════════════════════
   📍 موقعیت‌ها
   ═══════════════════════════════════════════════════ */

.etm-mbu-position-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px env(safe-area-inset-left, 12px) calc(8px + env(safe-area-inset-bottom, 0)) env(safe-area-inset-right, 12px);
}

.etm-mbu-position-bottom .etm-mbu-bar-inner {
    max-width: calc(100% - 24px);
    margin: 0 auto;
    border-radius: var(--etm-radius, 16px) var(--etm-radius, 16px) 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}

.etm-mbu-position-top {
    top: 0;
    left: 0;
    right: 0;
    padding: calc(8px + env(safe-area-inset-top, 0)) env(safe-area-inset-right, 12px) 8px env(safe-area-inset-left, 12px);
}

.etm-mbu-position-top .etm-mbu-bar-inner {
    max-width: calc(100% - 24px);
    margin: 0 auto;
    border-radius: 0 0 var(--etm-radius, 16px) var(--etm-radius, 16px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* ─── Auto Hide ─── */
.etm-mbu-auto-hide.etm-mbu-hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.etm-mbu-position-top.etm-mbu-auto-hide.etm-mbu-hidden {
    transform: translateY(-120%);
}

/* ─── Input Focus Hide ─── */
.etm-mbu-input-focus .etm-mbu-bar {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

/* ─── Keyboard Open ─── */
.etm-mbu-bar.etm-mbu-keyboard-open {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   🔘 دکمه‌ها
   ═══════════════════════════════════════════════════ */

.etm-mbu-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 6px;
    min-width: 0;
    background: transparent;
    border: none;
    border-radius: calc(var(--etm-radius, 16px) - 4px);
    color: var(--etm-text, #1e293b);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}

.etm-mbu-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--etm-primary, #7c3aed);
    opacity: 0;
    border-radius: inherit;
    transition: opacity 0.25s;
    z-index: 0;
}

.etm-mbu-btn:hover::before,
.etm-mbu-btn:focus::before {
    opacity: 0.08;
}

.etm-mbu-btn:active {
    transform: scale(0.92);
}

.etm-mbu-btn:active::before {
    opacity: 0.15;
}

/* ─── Long Press ─── */
.etm-mbu-btn.etm-mbu-long-press {
    background: var(--etm-primary, #7c3aed);
    color: #fff;
}

.etm-mbu-btn.etm-mbu-long-press .etm-mbu-btn-icon-wrap {
    transform: scale(1.15);
}

/* ─── Icon Wrap ─── */
.etm-mbu-btn-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.etm-mbu-btn:hover .etm-mbu-btn-icon-wrap {
    transform: translateY(-2px);
}

/* ─── Icon ─── */
.etm-mbu-icon {
    display: block;
    width: var(--etm-icon-size, 22px);
    height: var(--etm-icon-size, 22px);
    color: currentColor;
    transition: all 0.2s;
}

.etm-mbu-btn-custom-icon {
    width: var(--etm-icon-size, 22px);
    height: var(--etm-icon-size, 22px);
    object-fit: contain;
    border-radius: 6px;
}

.etm-mbu-btn-emoji {
    font-size: var(--etm-icon-size, 22px);
    line-height: 1;
}

/* ─── Label ─── */
.etm-mbu-btn-label {
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    z-index: 1;
    color: var(--etm-text, #1e293b);
    transition: color 0.2s;
}

/* ─── Active State ─── */
.etm-mbu-btn-active {
    color: var(--etm-primary, #7c3aed);
}

.etm-mbu-btn-active::before {
    opacity: 0.12;
}

.etm-mbu-btn-active .etm-mbu-icon {
    color: var(--etm-primary, #7c3aed);
}

.etm-mbu-btn-active .etm-mbu-btn-label {
    color: var(--etm-primary, #7c3aed);
}

/* ─── Custom Color ─── */
.etm-mbu-btn-custom-color .etm-mbu-icon,
.etm-mbu-btn-custom-color .etm-mbu-btn-label {
    color: var(--etm-btn-color, var(--etm-primary, #7c3aed));
}

/* ═══════════════════════════════════════════════════
   🌊 Ripple Effect
   ═══════════════════════════════════════════════════ */

.etm-mbu-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.4);
    transform: scale(0);
    animation: etm-mbu-ripple-anim 0.6s ease-out;
    pointer-events: none;
    z-index: 0;
}

@keyframes etm-mbu-ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════
   🎯 Indicator (خط بالای دکمه فعال)
   ═══════════════════════════════════════════════════ */

.etm-mbu-indicator {
    position: absolute;
    bottom: calc(100% + 4px);
    height: 3px;
    width: 20px;
    background: var(--etm-primary, #7c3aed);
    border-radius: 3px;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px var(--etm-primary, #7c3aed);
}

.etm-mbu-bar.has-active .etm-mbu-indicator {
    opacity: 1;
    transform: translateX(var(--indicator-x, 0));
}

.etm-mbu-position-top .etm-mbu-indicator {
    bottom: auto;
    top: calc(100% + 4px);
}

/* ═══════════════════════════════════════════════════
   🔴 Badge
   ═══════════════════════════════════════════════════ */

.etm-mbu-btn-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 900;
    line-height: 18px;
    text-align: center;
    z-index: 2;
    border: 2px solid var(--etm-bg, #ffffff);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: etm-badge-bounce 2s ease-in-out infinite;
    direction: ltr;
}

@keyframes etm-badge-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ─── Badge Pulse ─── */
.etm-mbu-btn-badge.has-pulse {
    animation: etm-badge-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes etm-badge-ping {
    0% { transform: scale(1); }
    75%, 100% { transform: scale(1.2); }
}

/* ─── Edge Badge ─── */
.etm-mbu-edge-badge {
    position: fixed;
    top: 0;
    right: 0;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    margin: 8px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
    animation: etm-badge-blink 1.5s ease-in-out infinite;
    z-index: 9991;
}

.etm-mbu-edge-badge[data-count="0"] {
    display: none;
}

@keyframes etm-badge-blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

/* ═══════════════════════════════════════════════════
   🎨 چیدمان: Classic (پیش‌فرض)
   ═══════════════════════════════════════════════════ */

.etm-mbu-layout-classic .etm-mbu-btn {
    flex: 1;
    max-width: 90px;
}

/* ═══════════════════════════════════════════════════
   🎨 چیدمان: Centered
   ═══════════════════════════════════════════════════ */

.etm-mbu-layout-centered .etm-mbu-bar-inner {
    justify-content: center;
    gap: 8px;
}

.etm-mbu-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.etm-mbu-group-left {
    justify-content: flex-start;
}

.etm-mbu-group-right {
    justify-content: flex-end;
}

.etm-mbu-layout-centered .etm-mbu-btn {
    flex: 0 0 auto;
    min-width: 60px;
}

/* ═══════════════════════════════════════════════════
   🎨 چیدمان: Floating
   ═══════════════════════════════════════════════════ */

.etm-mbu-layout-floating {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0)) 12px;
    background: transparent;
    pointer-events: none;
}

.etm-mbu-floating-wrap {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--etm-bg, #ffffff);
    border-radius: 100px;
    padding: 8px 12px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--etm-border, #e2e8f0);
    pointer-events: auto;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.9);
}

@media (prefers-color-scheme: dark) {
    .etm-mbu-floating-wrap {
        background: rgba(26, 22, 37, 0.9);
    }
}

.etm-mbu-layout-floating .etm-mbu-btn {
    min-width: 50px;
    max-width: 70px;
    padding: 6px 4px;
    border-radius: 100px;
}

.etm-mbu-layout-floating .etm-mbu-btn-label {
    font-size: 9.5px;
}

/* ═══════════════════════════════════════════════════
   🎨 چیدمان: Pill
   ═══════════════════════════════════════════════════ */

.etm-mbu-layout-pill {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0)) 16px;
}

.etm-mbu-pill {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: linear-gradient(135deg, var(--etm-primary, #7c3aed), var(--etm-secondary, #2563eb));
    border-radius: 100px;
    padding: 6px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.35);
}

.etm-mbu-layout-pill .etm-mbu-btn {
    color: #fff;
    min-width: 50px;
    padding: 8px 6px;
    border-radius: 100px;
}

.etm-mbu-layout-pill .etm-mbu-btn .etm-mbu-btn-label {
    color: #fff;
    opacity: 0.95;
}

.etm-mbu-layout-pill .etm-mbu-btn .etm-mbu-icon {
    color: #fff;
}

.etm-mbu-layout-pill .etm-mbu-btn-active {
    background: rgba(255, 255, 255, 0.2);
}

.etm-mbu-layout-pill .etm-mbu-btn::before {
    background: #fff;
}

/* ═══════════════════════════════════════════════════
   🎨 چیدمان: Compact (فشرده)
   ═══════════════════════════════════════════════════ */

.etm-mbu-layout-compact .etm-mbu-bar-inner {
    padding: 6px 8px;
    min-height: 52px;
}

.etm-mbu-layout-compact .etm-mbu-btn {
    padding: 4px 2px;
}

.etm-mbu-layout-compact .etm-mbu-icon {
    width: 18px;
    height: 18px;
}

.etm-mbu-layout-compact .etm-mbu-btn-label {
    font-size: 9px;
}

/* ─── More Button ─── */
.etm-mbu-btn-more {
    flex: 0 0 auto;
    min-width: 60px;
}

/* ═══════════════════════════════════════════════════
   📏 Spacer & Divider
   ═══════════════════════════════════════════════════ */

.etm-mbu-spacer {
    flex: 1;
    min-width: 8px;
}

.etm-mbu-divider {
    width: 1px;
    height: 24px;
    background: var(--etm-border, #e2e8f0);
    margin: 0 4px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   🌊 Haptic Feedback (Visual)
   ═══════════════════════════════════════════════════ */

.etm-mbu-haptic .etm-mbu-btn:active {
    animation: etm-shake 0.3s ease-in-out;
}

@keyframes etm-shake {
    0%, 100% { transform: translateX(0) scale(0.92); }
    25% { transform: translateX(-2px) scale(0.92); }
    75% { transform: translateX(2px) scale(0.92); }
}

/* ═══════════════════════════════════════════════════
   🎬 انیمیشن‌های ورود
   ═══════════════════════════════════════════════════ */

.etm-mbu-animation-fade .etm-mbu-bar {
    animation: etm-fade-in 0.4s ease;
}

.etm-mbu-animation-slide .etm-mbu-bar {
    animation: etm-slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.etm-mbu-position-top.etm-mbu-animation-slide .etm-mbu-bar {
    animation: etm-slide-down 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.etm-mbu-animation-scale .etm-mbu-bar {
    animation: etm-scale-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.etm-mbu-animation-bounce .etm-mbu-bar {
    animation: etm-bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes etm-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes etm-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes etm-slide-down {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes etm-scale-in {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes etm-bounce-in {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════
   🔔 اعلان‌های Toast
   ═══════════════════════════════════════════════════ */

.etm-mbu-toast {
    position: fixed;
    bottom: calc(var(--etm-bar-height, 64px) + 24px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    z-index: 9995;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    animation: etm-toast-in 0.3s ease forwards;
    max-width: calc(100% - 32px);
    text-align: center;
    direction: rtl;
}

.etm-mbu-toast.etm-success { background: linear-gradient(135deg, #10b981, #059669); }
.etm-mbu-toast.etm-error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.etm-mbu-toast.etm-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.etm-mbu-toast.etm-info { background: linear-gradient(135deg, #3b82f6, #2563eb); }

@keyframes etm-toast-in {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ═══════════════════════════════════════════════════
   🖼️ حالت خالی
   ═══════════════════════════════════════════════════ */

.etm-mbu-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════
   📱 Responsive
   ═══════════════════════════════════════════════════ */

/* ─── موبایل کوچک (≤360px) ─── */
@media (max-width: 360px) {
    .etm-mbu-bar-inner {
        padding: 6px 8px;
        gap: 2px;
    }

    .etm-mbu-btn {
        padding: 6px 3px;
        font-size: 10px;
    }

    .etm-mbu-icon {
        width: 20px;
        height: 20px;
    }

    .etm-mbu-btn-label {
        font-size: 9px;
    }
}

/* ─── موبایل معمولی (≤480px) ─── */
@media (max-width: 480px) {
    .etm-mbu-floating-wrap {
        max-width: calc(100% - 24px);
    }

    .etm-mbu-pill {
        max-width: calc(100% - 24px);
    }
}

/* ─── تبلت (≤768px) ─── */
@media (max-width: 768px) {
    .etm-mbu-bar-inner {
        border-radius: var(--etm-radius, 16px);
    }
}

/* ─── دسکتاپ (> 1024px) ─── */
@media (min-width: 1025px) {
    .etm-mbu-bar.etm-mbu-mobile-bar {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════
   🌙 Dark Mode
   ═══════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
    .etm-mbu-bar {
        --etm-bg: #1a1625;
        --etm-text: #f1f5f9;
        --etm-border: #2d2640;
    }
}

.etm-mbu-dark-mode {
    --etm-bg: #1a1625;
    --etm-text: #f1f5f9;
    --etm-border: #2d2640;
}

/* ═══════════════════════════════════════════════════
   ⚡ State ها
   ═══════════════════════════════════════════════════ */

/* ─── Loading State ─── */
.etm-mbu-bar.is-loading .etm-mbu-btn {
    opacity: 0.5;
    pointer-events: none;
}

.etm-mbu-bar.is-loading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--etm-primary, #7c3aed), transparent);
    animation: etm-loading-bar 1.5s ease-in-out infinite;
}

@keyframes etm-loading-bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ─── Hidden State ─── */
.etm-mbu-bar.is-hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

/* ─── Fullscreen State ─── */
.etm-mbu-bar.is-fullscreen {
    padding: 0;
    bottom: 0;
    border-radius: 0;
}

.etm-mbu-bar.is-fullscreen .etm-mbu-bar-inner {
    border-radius: 0;
    max-width: 100%;
}

/* ═══════════════════════════════════════════════════
   🖨️ Print
   ═══════════════════════════════════════════════════ */

@media print {
    .etm-mbu-bar,
    .etm-mbu-fab-wrapper,
    .etm-mbu-edge-badge {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════
   ♿ Accessibility
   ═══════════════════════════════════════════════════ */

.etm-mbu-btn:focus-visible {
    outline: 2px solid var(--etm-primary, #7c3aed);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .etm-mbu-bar,
    .etm-mbu-btn,
    .etm-mbu-btn-icon-wrap,
    .etm-mbu-btn-badge,
    .etm-mbu-ripple {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .etm-mbu-bar-inner {
        border: 2px solid var(--etm-text, #1e293b);
    }

    .etm-mbu-btn-badge {
        border-width: 3px;
    }
}

/* ═══════════════════════════════════════════════════
   📱 iOS Specific
   ═══════════════════════════════════════════════════ */

.etm-mbu-bar.etm-mbu-ios-standalone.etm-mbu-position-bottom {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 20px));
}

.etm-mbu-bar.etm-mbu-ios-standalone.etm-mbu-position-top {
    padding-top: calc(8px + env(safe-area-inset-top, 20px));
}

/* ═══════════════════════════════════════════════════
   🎯 Custom Layouts (from settings)
   ═══════════════════════════════════════════════════ */

/* ─── Minimal ─── */
.etm-mbu-layout-minimal .etm-mbu-bar-inner {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: none;
    border-top: 1px solid var(--etm-border, #e2e8f0);
}

/* ─── Notched ─── */
.etm-mbu-layout-notched .etm-mbu-bar-inner {
    border-radius: 24px 24px 0 0;
    padding-top: 12px;
}

/* ─── Circle ─── */
.etm-mbu-layout-circle .etm-mbu-btn {
    border-radius: 50%;
    aspect-ratio: 1;
    max-width: 56px;
    padding: 12px;
}

.etm-mbu-layout-circle .etm-mbu-btn-label {
    font-size: 9px;
}

/* ─── Square ─── */
.etm-mbu-layout-square .etm-mbu-btn {
    border-radius: 12px;
    aspect-ratio: 1;
    max-width: 60px;
    padding: 12px 8px;
}

/* ─── Bottom Sheet ─── */
.etm-mbu-layout-bottom-sheet .etm-mbu-bar-inner {
    border-radius: 24px 24px 0 0;
    padding: 16px 12px 12px;
}

/* ─── Gradient ─── */
.etm-mbu-layout-gradient .etm-mbu-bar-inner {
    background: linear-gradient(135deg, var(--etm-primary, #7c3aed), var(--etm-secondary, #2563eb));
    color: #fff;
    border: none;
}

.etm-mbu-layout-gradient .etm-mbu-btn {
    color: rgba(255, 255, 255, 0.85);
}

.etm-mbu-layout-gradient .etm-mbu-btn-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.etm-mbu-layout-gradient .etm-mbu-icon {
    color: inherit;
}

.etm-mbu-layout-gradient .etm-mbu-btn-label {
    color: inherit;
}

/* ─── Neuromorphic ─── */
.etm-mbu-layout-neuromorphic .etm-mbu-bar-inner {
    background: #f0f0f3;
    box-shadow: 8px 8px 16px #d1d1d4, -8px -8px 16px #ffffff;
    border: none;
}

@media (prefers-color-scheme: dark) {
    .etm-mbu-layout-neuromorphic .etm-mbu-bar-inner {
        background: #1a1a1f;
        box-shadow: 8px 8px 16px #0d0d10, -8px -8px 16px #27272e;
    }
}
/* Dual Tab Layout */
.etm-mbu-dual-tab {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.etm-mbu-dual-tab-nav {
  display: flex;
  gap: 6px;
  padding: 6px 10px 4px;
  justify-content: center;
}
.etm-mbu-dual-tab-btn {
  flex: 1;
  max-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  color: var(--etm-text, #64748b);
  font-size: 12.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s;
}
.etm-mbu-dual-tab-btn.is-active {
  background: var(--etm-primary, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
}
.etm-mbu-dual-tab-btn svg {
  stroke: currentColor;
  fill: none;
}
.etm-mbu-dual-tab-panels {
  width: 100%;
}
.etm-mbu-dual-panel-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding: 4px 0 8px;
}
.etm-mbu-dual-empty {
  font-size: 12px;
  color: #94a3b8;
  padding: 12px;
}

/* Advanced appearance */
.etm-mbu-labels-none .etm-mbu-btn-label { display: none !important; }
.etm-mbu-labels-side .etm-mbu-btn {
  flex-direction: row !important;
  gap: 6px;
}
.etm-mbu-safe-area {
  padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
}
.etm-mbu-badge-pulse .etm-mbu-btn-badge {
  animation: etm-badge-pulse 1.6s ease-in-out infinite;
}
@keyframes etm-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.etm-mbu-indicator-line .etm-mbu-btn-active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--etm-primary, #7c3aed);
}
.etm-mbu-ripple .etm-mbu-btn {
  position: relative;
  overflow: hidden;
}
