/* ========================================================
   Link Type Segmented Selector & Top Bar Help Button
   (Shared: Web + Native Android App)
   ======================================================== */

.link-type-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 18px;
    transition: border-color 0.22s ease, background 0.22s ease;
}

.link-type-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 4px;
}

.link-type-segmented {
    position: relative;
    display: flex;
    background: rgba(14, 12, 18, 0.65);
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    user-select: none;
}

.link-type-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.32) 0%, rgba(139, 92, 246, 0.45) 100%);
    border: 1px solid rgba(139, 92, 246, 0.7);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.28s ease,
                border-color 0.28s ease,
                box-shadow 0.28s ease;
    z-index: 1;
    pointer-events: none;
    will-change: transform, width;
    transform: translate3d(0, 0, 0);
}

.link-type-slider.location-mode {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.28) 0%, rgba(56, 189, 248, 0.42) 100%);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.btn-link-type {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-sub);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s ease;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    user-select: none;
    white-space: nowrap;
}

.btn-link-type span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-link-type.active {
    color: #ffffff !important;
    font-weight: 800;
}

.btn-link-type:active {
    transform: scale(0.97);
}

/* Top Bar Help / Guide Button */
.btn-help-guide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(28, 25, 23, 0.9);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.btn-help-guide svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.btn-help-guide:hover {
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.12);
    transform: translateY(-1px);
}

.btn-help-guide:active {
    transform: scale3d(0.92, 0.92, 1);
}

/* Top Bar Flex Alignment */
.top-bar-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
