/* TSK SMS PRO — shared info panels & toasts */
.tsk-info-panel {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.2);
    display: none;
    animation: tskSlideIn 0.25s ease;
}
.tsk-info-panel.open { display: block; }
.tsk-info-panel h4 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #22d3ee;
}
.tsk-info-panel p { margin: 0 0 10px; font-size: 13px; color: #94a3b8; line-height: 1.5; }
.tsk-cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding: 2px 0;
}
.tsk-cat-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: #e9d5ff;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.tsk-cat-chip:hover, .tsk-cat-chip:focus {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.4);
    color: #fff;
    outline: none;
}
.tsk-cat-chip.selected {
    background: rgba(34, 211, 238, 0.2);
    border-color: #22d3ee;
    color: #fff;
}
.tsk-cat-chip-muted {
    cursor: default;
    opacity: 0.7;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
.tsk-cat-search-wrap { margin-bottom: 10px; }
.tsk-cat-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(3, 5, 11, 0.8);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    outline: none;
}
.tsk-cat-search:focus { border-color: #22d3ee; box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15); }
.tsk-cat-hint { transition: color 0.2s; cursor: pointer; user-select: none; }
.tsk-cat-hint:hover { color: #22d3ee !important; }
.tsk-cat-chip em { font-style: normal; color: #fbbf24; margin-left: 4px; }
@keyframes tskSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-options-layer.is-fixed,
.dropdown-options-layer.is-portal {
    position: fixed !important;
    z-index: 65000 !important;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transition: none !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    transform: none !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65) !important;
    background: #0d1124 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 6px 0 4px !important;
    max-width: calc(100vw - 24px);
}

.tsk-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 64000;
    background: rgba(2, 4, 12, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.tsk-dropdown-backdrop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.tsk-dropdown-open {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 767px) {
    .dropdown-options-layer.is-portal {
        border-radius: 14px !important;
        padding-bottom: 6px !important;
        /* anchored below trigger via JS — NOT bottom sheet */
    }
    .dropdown-options-scrollable {
        max-height: min(50vh, 320px) !important;
        -webkit-overflow-scrolling: touch;
    }
    .dropdown-search-input {
        font-size: 16px; /* prevent iOS zoom + keep input visible */
    }
}

/* Buy Number service dropdown — no overlap, clean scroll list */
.dropdown-options-scrollable {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.dropdown-single-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    position: relative;
    line-height: 1.35;
    padding: 12px 16px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.12s ease, padding-left 0.12s ease;
}

.dropdown-single-option:hover {
    background: rgba(34, 211, 238, 0.08);
    color: #fff;
    padding-left: 20px;
}

.dropdown-single-option.selected-active {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.15) 0%, transparent 100%);
    color: #22d3ee;
    border-left: 3px solid #22d3ee;
}

.dropdown-single-option span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.dropdown-single-option .opt-cost {
    flex-shrink: 0;
    white-space: nowrap;
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.dropdown-no-results {
    flex-shrink: 0;
    width: 100%;
    padding: 18px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    display: none;
}

body.tsk-dropdown-open .page-buy .btn-action-master {
    pointer-events: none;
}

/* Buy Number — service dropdown (trigger + list; portal layer in rules above) */
.page-buy .input-group { position: relative; z-index: 2; margin-bottom: 8px; }
.page-buy .custom-dropdown-wrapper { position: relative; width: 100%; user-select: none; }
.page-buy .custom-dropdown-wrapper.open { z-index: 3; }
.page-buy .btn-action-master { position: relative; z-index: 1; margin-top: 12px; }

.custom-dropdown-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.dropdown-trigger-box {
    width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #03050b;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 54px;
    box-sizing: border-box;
}

.dropdown-trigger-box #selected-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.dropdown-trigger-box i {
    color: #22d3ee;
    font-size: 15px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.custom-dropdown-wrapper.open .dropdown-trigger-box {
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);
}

.custom-dropdown-wrapper.open .dropdown-trigger-box i {
    transform: rotate(180deg);
}

.dropdown-options-layer:not(.is-portal) {
    display: none !important;
}

.dropdown-search-container {
    padding: 8px 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    background: #0d1124;
}

.dropdown-search-container i {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
}

.dropdown-search-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: #03050b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    box-sizing: border-box;
}

.dropdown-search-input:focus {
    border-color: rgba(34, 211, 238, 0.5);
}
