.iptv-modern-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: transparent;
    position: relative;
}

.iptv-modern-form .title {
    font-size: 26px;
    color: #fff;
    font-weight: 500;
    letter-spacing: -0.02em;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 30px;
    margin-bottom: 2px;
}

.iptv-modern-form .title::before,
.iptv-modern-form .title::after {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    border-radius: 50%;
    left: 0px;
    background-color: #ffffff;
}

.iptv-modern-form .title::before {
    width: 18px;
    height: 18px;
    background-color: #ffffff;
}

.iptv-modern-form .title::after {
    width: 18px;
    height: 18px;
    animation: iptvPulse 1s linear infinite;
}

@keyframes iptvPulse {
    from {
        transform: scale(0.9);
        opacity: 1;
    }
    to {
        transform: scale(1.8);
        opacity: 0;
    }
}

.iptv-modern-form .message {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

.iptv-modern-form label {
    position: relative;
    display: block;
}

.iptv-modern-form .input {
    width: 100%;
    padding: 14px;
    outline: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 15px;
    font-family: var(--font-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.iptv-modern-form .input::placeholder {
    color: var(--text-dim);
    opacity: 0.5;
}

.iptv-modern-form .input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.iptv-modern-form .flex-row {
    display: flex;
    width: 100%;
    gap: 8px;
}

.iptv-modern-form .flex-row label {
    flex: 1;
}

.iptv-status-msg {
    font-size: 13px;
    font-weight: 700;
    height: 16px;
    margin-top: -12px;
    margin-left: 6px;
}

/* ============================================================
   CUSTOM PREMIUM SELECTS
   ============================================================ */
.custom-select-container {
    position: relative;
    user-select: none;
    cursor: pointer;
    font-family: var(--font-main);
    z-index: 100;
}

.custom-select-container.open {
    z-index: 1000001;
}

.custom-select-trigger {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-select-trigger::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    margin-right: 4px;
    margin-top: -4px;
    transition: transform 0.3s ease;
}

.custom-select-container.open .custom-select-trigger {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
}

.custom-select-container.open .custom-select-trigger::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #111217;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 1000002;
}

.custom-select-options-portal {
    position: fixed;
    z-index: 2147483647;
}

.custom-select-container.open .custom-select-options,
.custom-select-options.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.custom-select-option {
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.custom-select-option.selected {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}
