:root {
    --dsstb-max-width: 480px;
    --dsstb-height: 64px;
    --dsstb-bottom-offset: 14px;
    --dsstb-side-margin: 12px;
    --dsstb-scroll-top-gap: 12px;
    --dsstb-bg-color: rgba(255, 255, 255, 0.75);
    --dsstb-blur: 16px;
    --capsule-active-color: #10b981;
    --dsstb-spinner-color: #10b981;
    --dsstb-spinner-stroke: 2.5px;
    --dsstb-spinner-speed: 0.75s;
    --dsstb-dim-opacity: 0.45;
    --dsstb-glow-color: rgba(16, 185, 129, 0.45);
    --dsstb-glow-spread: 24px;
    --dsstb-glow-duration: 1.2s;
}

.dsstb-main-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.dsstb-main-wrapper .dsstb-scroll-top-shell {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--dsstb-bottom-offset, 14px) + var(--dsstb-height, 64px) + var(--dsstb-scroll-top-gap, 12px) + env(safe-area-inset-bottom, 0px));
    z-index: 100001;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    box-sizing: border-box;
    transition: bottom 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: bottom, transform;
}

.dsstb-main-wrapper .dsstb-scroll-top-shell.dsstb-docked {
    bottom: calc(var(--dsstb-bottom-offset, 14px) + 6px + env(safe-area-inset-bottom, 0px));
}

.dsstb-main-wrapper .dsstb-scroll-top-inner {
    position: relative;
    width: 100%;
    max-width: min(var(--dsstb-max-width, 480px), calc(100% - (var(--dsstb-side-margin, 12px) * 2)));
    height: 44px;
    padding: 0 4px;
    box-sizing: border-box;
    display: flex;
    margin: 0 auto;
}

.dsstb-main-wrapper .dsstb-pos-left .dsstb-scroll-top {
    left: 4px;
    right: auto;
}

.dsstb-main-wrapper .dsstb-pos-right .dsstb-scroll-top {
    right: 4px;
    left: auto;
}

.dsstb-main-wrapper .dsstb-scroll-top {
    position: absolute;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    transform: scale(0) translateY(12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease, visibility 0.25s ease;
    z-index: 100002;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    outline: none;
}

.dsstb-main-wrapper .dsstb-scroll-top.dsstb-visible {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dsstb-main-wrapper .dsstb-scroll-top:active {
    transform: scale(0.9);
}

.dsstb-main-wrapper .dsstb-scroll-top-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    line-height: 1;
    width: 100%;
    height: 100%;
}

.dsstb-main-wrapper .dsstb-scroll-top-icon i {
    font-size: 14px;
    color: inherit;
}

.dsstb-main-wrapper .dsstb-scroll-top-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.dsstb-main-wrapper .dsstb-progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    z-index: 1;
    pointer-events: none;
    display: block;
    overflow: visible;
}

.dsstb-main-wrapper .dsstb-progress-ring circle {
    fill: none;
    transform-origin: 50% 50%;
    cx: 22px;
    cy: 22px;
    r: 18px;
}

.dsstb-main-wrapper .dsstb-progress-ring-bg {
    stroke: rgba(0, 0, 0, 0.07);
    stroke-width: 2.8px;
}

.dsstb-main-wrapper .dsstb-progress-ring-bar {
    stroke: #10b981;
    stroke-width: 2.8px;
    stroke-linecap: round;
    stroke-dasharray: 113.097;
    stroke-dashoffset: 113.097;
    transition: stroke-dashoffset 0.08s linear;
}

.dsstb-main-wrapper .dsstb-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    padding: 0 var(--dsstb-side-margin, 12px) calc(var(--dsstb-bottom-offset, 14px) + env(safe-area-inset-bottom, 0px)) var(--dsstb-side-margin, 12px);
    margin: 0;
    box-sizing: border-box;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.dsstb-main-wrapper .dsstb-wrapper.dsstb-hidden,
.dsstb-main-wrapper .dsstb-wrapper.dsstb-keyboard-hidden {
    transform: translate3d(0, 140%, 0);
    -webkit-transform: translate3d(0, 140%, 0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s cubic-bezier(0.4, 0, 1, 1), opacity 0.2s ease;
}

.dsstb-main-wrapper .dsstb-scrim {
    position: absolute;
    left: -40px;
    right: -40px;
    bottom: -80px;
    width: calc(100% + 80px);
    height: 180px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.01) 25%,
        rgba(0, 0, 0, 0.04) 50%,
        rgba(0, 0, 0, 0.09) 75%,
        rgba(0, 0, 0, 0.16) 100%
    );
    z-index: 1;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.dsstb-main-wrapper .dsstb-container {
    --dsstb-morph-extra: 0px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: min(var(--dsstb-max-width, 480px), calc(100% - (var(--dsstb-side-margin, 12px) * 2)));
    height: calc(var(--dsstb-height, 64px) + var(--dsstb-morph-extra)) !important;
    min-height: calc(var(--dsstb-height, 64px) + var(--dsstb-morph-extra)) !important;
    max-height: calc(var(--dsstb-height, 64px) + var(--dsstb-morph-extra)) !important;
    padding: 6px 8px;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: var(--dsstb-bg-color, rgba(255, 255, 255, 0.75));
    -webkit-backdrop-filter: blur(var(--dsstb-blur, 16px)) saturate(180%);
    backdrop-filter: blur(var(--dsstb-blur, 16px)) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-radius: 50px;
    direction: rtl;
    touch-action: manipulation;
    transform: translateZ(0);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    overflow: hidden;
    transition: height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                min-height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                max-height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-radius 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.dsstb-main-wrapper .dsstb-container.dsstb-island-expanded {
    --dsstb-morph-extra: 36px;
    border-radius: 34px;
    box-shadow: 0 18px 40px -6px rgba(0, 0, 0, 0.25), 0 0 22px -2px var(--capsule-active-color);
}

.dsstb-main-wrapper .dsstb-island-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: height 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.dsstb-main-wrapper .dsstb-container.dsstb-island-expanded .dsstb-island-banner {
    height: 32px;
    opacity: 1;
    margin-bottom: 4px;
}

.dsstb-main-wrapper .dsstb-island-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--capsule-active-color, #10b981);
    font-size: 13px;
    animation: dsstbIslandSpin 1.8s linear infinite;
}

.dsstb-main-wrapper .dsstb-island-icon svg {
    width: 13px;
    height: 13px;
    fill: var(--capsule-active-color, #10b981);
}

.dsstb-main-wrapper .dsstb-island-text {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: normal;
    line-height: 1;
}

@keyframes dsstbIslandSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dsstb-main-wrapper .dsstb-nav-row {
    display: grid;
    align-items: center;
    justify-items: center;
    width: 100%;
    height: calc(var(--dsstb-height, 64px) - 12px);
}

.dsstb-main-wrapper .dsstb-container.dsstb-mode-normal .dsstb-nav-row {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.dsstb-main-wrapper .dsstb-container.dsstb-mode-normal .dsstb-slot-2,
.dsstb-main-wrapper .dsstb-container.dsstb-mode-normal .dsstb-slot-3 {
    display: flex;
}

.dsstb-main-wrapper .dsstb-container.dsstb-mode-normal .dsstb-merged-container {
    display: none;
}

.dsstb-main-wrapper .dsstb-container.dsstb-mode-single .dsstb-nav-row {
    grid-template-columns: 1fr 2.2fr 1fr 1fr;
    gap: 6px;
}

.dsstb-main-wrapper .dsstb-container.dsstb-mode-single .dsstb-slot-2,
.dsstb-main-wrapper .dsstb-container.dsstb-mode-single .dsstb-slot-3 {
    display: none;
}

.dsstb-main-wrapper .dsstb-container.dsstb-mode-single .dsstb-merged-container {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.dsstb-main-wrapper .dsstb-item:not(.dsstb-item-merged) {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    text-decoration: none;
    color: #4a5568;
    width: calc(var(--dsstb-height, 64px) - 16px);
    height: calc(var(--dsstb-height, 64px) - 16px);
    max-width: calc(var(--dsstb-height, 64px) - 16px);
    max-height: calc(var(--dsstb-height, 64px) - 16px);
    padding: 2px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 50%;
    box-sizing: border-box;
    overflow: visible;
    transition: transform 0.18s ease, background-color 0.25s ease, color 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    outline: none;
    touch-action: manipulation;
}

.dsstb-main-wrapper .dsstb-item:hover,
.dsstb-main-wrapper .dsstb-item:focus {
    text-decoration: none;
}

.dsstb-main-wrapper .dsstb-item:active {
    transform: scale(0.92);
}

.dsstb-main-wrapper .dsstb-mode-single .dsstb-slot-1::before,
.dsstb-main-wrapper .dsstb-mode-single .dsstb-slot-4::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.22;
    transition: opacity 0.25s ease;
}

.dsstb-main-wrapper .dsstb-mode-single .dsstb-slot-1::before {
    background: radial-gradient(circle at left center, var(--capsule-active-color) 0%, rgba(0, 0, 0, 0) 70%);
}

.dsstb-main-wrapper .dsstb-mode-single .dsstb-slot-1 {
    box-shadow: -4px 0 16px -4px var(--capsule-active-color);
}

.dsstb-main-wrapper .dsstb-mode-single .dsstb-slot-4::before {
    background: radial-gradient(circle at right center, var(--capsule-active-color) 0%, rgba(0, 0, 0, 0) 70%);
}

.dsstb-main-wrapper .dsstb-mode-single .dsstb-slot-4 {
    box-shadow: 4px 0 16px -4px var(--capsule-active-color);
}

.dsstb-main-wrapper .dsstb-item.dsstb-current-active:not(.dsstb-item-merged) {
    background-color: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.dsstb-main-wrapper .dsstb-item.dsstb-current-active .dsstb-icon-wrapper {
    color: #059669;
}

.dsstb-main-wrapper .dsstb-item.dsstb-current-active .dsstb-icon-wrapper svg {
    fill: #059669;
}

.dsstb-main-wrapper .dsstb-item.dsstb-current-active .dsstb-icon-wrapper i {
    color: #059669;
}

.dsstb-main-wrapper .dsstb-item.dsstb-current-active .dsstb-label {
    color: #059669;
    font-weight: 700;
}

.dsstb-main-wrapper .dsstb-icon-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
    order: 1;
    color: inherit;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.dsstb-main-wrapper .dsstb-icon-reload {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
    opacity: 0;
    pointer-events: none;
}

.dsstb-main-wrapper .dsstb-item.dsstb-ready-reload .dsstb-icon-main {
    transform: scale(0) rotate(180deg);
    opacity: 0;
}

.dsstb-main-wrapper .dsstb-item.dsstb-ready-reload .dsstb-icon-reload {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
}

.dsstb-main-wrapper .dsstb-item.dsstb-holding {
    transform: scale(0.90);
    transition: transform 0.6s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.dsstb-main-wrapper .dsstb-item.dsstb-icon-only,
.dsstb-main-wrapper .dsstb-item:not(:has(.dsstb-label)) {
    gap: 0;
    justify-content: center;
    align-items: center;
}

.dsstb-main-wrapper .dsstb-icon-wrapper i {
    font-size: 17px;
    line-height: 1;
    color: inherit;
}

.dsstb-main-wrapper .dsstb-icon-wrapper svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    display: block;
}

.dsstb-main-wrapper .dsstb-label {
    position: relative;
    z-index: 2;
    display: block;
    order: 2;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42px;
    text-align: center;
    color: inherit;
    margin: 0;
    padding: 0;
    letter-spacing: -0.2px;
    user-select: none;
    -webkit-user-select: none;
}

.dsstb-main-wrapper .dsstb-anchor-candidate {
    display: none;
}

.dsstb-main-wrapper .dsstb-anchor-candidate.dsstb-anchor-active {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: calc(var(--dsstb-height, 64px) - 16px);
    border-radius: 9999px;
    color: #ffffff;
    padding: 0 14px;
    border: none;
    gap: 8px;
    box-sizing: border-box;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    overflow: hidden;
    box-shadow: 0 6px 20px -2px var(--capsule-active-color), 
                -10px 0 18px -4px var(--capsule-active-color), 
                10px 0 18px -4px var(--capsule-active-color);
    transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    direction: rtl;
    outline: none;
    touch-action: manipulation;
}

.dsstb-main-wrapper .dsstb-anchor-candidate.dsstb-anchor-active:active {
    transform: scale(0.95);
}

.dsstb-main-wrapper .dsstb-anchor-candidate.dsstb-anchor-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.20) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translate3d(200%, 0, 0) skewX(-22deg);
    -webkit-transform: translate3d(200%, 0, 0) skewX(-22deg);
    animation: dsstbGlassShimmer 7s cubic-bezier(0.35, 0, 0.25, 1) infinite;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

@keyframes dsstbGlassShimmer {
    0% {
        transform: translate3d(210%, 0, 0) skewX(-22deg);
        -webkit-transform: translate3d(210%, 0, 0) skewX(-22deg);
    }
    32% {
        transform: translate3d(-210%, 0, 0) skewX(-22deg);
        -webkit-transform: translate3d(-210%, 0, 0) skewX(-22deg);
    }
    100% {
        transform: translate3d(-210%, 0, 0) skewX(-22deg);
        -webkit-transform: translate3d(-210%, 0, 0) skewX(-22deg);
    }
}

@-webkit-keyframes dsstbGlassShimmer {
    0% {
        -webkit-transform: translate3d(210%, 0, 0) skewX(-22deg);
    }
    32% {
        -webkit-transform: translate3d(-210%, 0, 0) skewX(-22deg);
    }
    100% {
        -webkit-transform: translate3d(-210%, 0, 0) skewX(-22deg);
    }
}

.dsstb-main-wrapper .dsstb-anchor-candidate.dsstb-anchor-active .dsstb-label {
    position: relative;
    z-index: 2;
    order: 1;
    font-size: 11px;
    font-weight: 700;
    max-width: 100%;
    color: inherit;
    letter-spacing: normal;
    line-height: 1.2;
}

.dsstb-main-wrapper .dsstb-anchor-candidate.dsstb-anchor-active .dsstb-icon-wrapper {
    position: relative;
    z-index: 2;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsstb-main-wrapper .dsstb-anchor-candidate.dsstb-anchor-active .dsstb-icon-wrapper svg {
    fill: currentColor;
    display: block;
}

.dsstb-main-wrapper .dsstb-anchor-candidate.dsstb-anchor-active .dsstb-icon-wrapper i {
    color: inherit;
}

.dsstb-nav-locking {
    pointer-events: none !important;
}

.dsstb-nav-locking .dsstb-item:not(.dsstb-navigating) {
    opacity: var(--dsstb-dim-opacity, 0.45) !important;
    filter: grayscale(40%) !important;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.dsstb-item.dsstb-navigating {
    opacity: 1 !important;
    border-color: transparent !important;
    background-color: rgba(16, 185, 129, 0.08) !important;
}

.dsstb-item.dsstb-navigating::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    padding: var(--dsstb-spinner-stroke, 2.5px);
    background: conic-gradient(from 0deg, var(--dsstb-spinner-color, #10b981) 0%, rgba(16, 185, 129, 0.1) 40%, transparent 65%, var(--dsstb-spinner-color, #10b981) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
    animation: dsstbSpinnerSpin var(--dsstb-spinner-speed, 0.75s) linear infinite;
}

@keyframes dsstbSpinnerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@-webkit-keyframes dsstbSpinnerSpin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

.dsstb-item.dsstb-glow-pulse {
    animation: dsstbLandedGlow var(--dsstb-glow-duration, 1.2s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes dsstbLandedGlow {
    0% {
        box-shadow: 0 0 0 0 var(--dsstb-glow-color, rgba(16, 185, 129, 0.75)), 0 4px 12px rgba(16, 185, 129, 0.25);
    }
    50% {
        box-shadow: 0 0 var(--dsstb-glow-spread, 24px) 6px var(--dsstb-glow-color, rgba(16, 185, 129, 0.45)), 0 6px 18px rgba(16, 185, 129, 0.35);
    }
    100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    }
}