/* Proxy Modal Styles */

#proxyModal .modal-content {
    min-height: 780px;
    max-height: 85vh;
}

#proxyModal .modal-body {
    min-height: 650px;
}

.proxy-type-buttons,
.proxy-state-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.proxy-type-btn,
.state-mode-btn {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 8px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.proxy-type-btn:hover,
.state-mode-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: translateY(-2px);
    color: #000;
}

.proxy-type-btn.active,
.state-mode-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: #fff;
}

/* Флаги в proxy */
#proxyCountryOptions .country-flag {
    font-size: 1.5rem;
    margin-right: 12px;
}

#proxyCountrySelected .country-flag {
    font-size: 1.5rem;
    margin-right: 8px;
}

/* Поиск стран */
#proxyCountrySearchInput:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Стили для ползунка длительности IP */
#proxyLifetimeSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    outline: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

#proxyLifetimeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

#proxyLifetimeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.5);
}

#proxyLifetimeSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

#proxyLifetimeSlider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.5);
}

/* Тумблер для ротации IP */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background: linear-gradient(135deg, #fff, #f0f0f0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-switch:hover .toggle-slider {
    border-color: #667eea;
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Mobile Proxies Styles */
.mp-plan-btn {
    transition: all 0.3s ease;
}

.mp-plan-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    transform: scale(1.05);
}

.mp-plan-btn:hover:not(.active) {
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.mp-proxy-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.mp-proxy-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.mp-proxy-expired {
    opacity: 0.6;
    background: #f9fafb;
}

.mp-proxy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.mp-proxy-location {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mp-proxy-flag {
    font-size: 2rem;
}

.mp-proxy-location h4 {
    margin: 0;
    color: #1f2937;
    font-size: 1.1rem;
}

.mp-proxy-location p {
    margin: 0.25rem 0 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.mp-proxy-status {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.mp-status-active {
    background: #d1fae5;
    color: #065f46;
}

.mp-status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.mp-proxy-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mp-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.mp-info-row span {
    color: #6b7280;
}

.mp-info-row strong {
    color: #1f2937;
}

.mp-connected {
    color: #059669 !important;
}

.mp-disconnected {
    color: #dc2626 !important;
}

.mp-proxy-string {
    margin-bottom: 1rem;
}

.mp-copy-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.mp-copy-btn:hover {
    background: #7c3aed;
    transform: scale(1.1);
}

.mp-proxy-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mp-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.mp-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mp-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.mp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Кнопка с IP */
.mp-ip-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
}

.mp-ip-icon {
    font-size: 1rem;
}

.mp-ip-text {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.mp-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.mp-btn-warning:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.mp-btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.mp-btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.mp-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.mp-btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ========== ADMIN MOBILE PROXIES STYLES ========== */

.admin-mp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-mp-stat-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.admin-mp-stat-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.admin-mp-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.admin-mp-stat-info {
    flex: 1;
}

.admin-mp-stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.admin-mp-stat-value {
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 700;
}

.admin-mp-controls {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-mp-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-filter-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.admin-filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
}

.admin-mp-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-refresh-btn {
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.admin-refresh-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.admin-mp-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-mp-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.admin-mp-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.admin-mp-expired {
    opacity: 0.65;
    background: #f9fafb;
}

.admin-mp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.admin-mp-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-mp-user-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.admin-mp-user strong {
    color: #1f2937;
    font-size: 1rem;
}

.admin-mp-user small {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.admin-mp-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-mp-location strong {
    color: #1f2937;
    font-size: 1rem;
}

.admin-mp-location small {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.admin-mp-details {
    padding-top: 1rem;
}

.admin-mp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
}

.admin-mp-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.admin-mp-label {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
}

.admin-mp-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-mp-value code {
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

.admin-mp-copy-btn {
    background: rgba(102, 126, 234, 0.1);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.admin-mp-copy-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.admin-mp-activity {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-mp-activity small {
    color: #6b7280;
    font-size: 0.8rem;
}

/* ========== НОВЫЙ ДИЗАЙН PROXY STRINGS ========== */

.mp-proxy-strings-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 2px solid #e5e7eb;
}

.mp-format-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.mp-format-selector label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.mp-format-dropdown {
    flex: 1;
    padding: 0.65rem 1rem;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    color: #111827;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mp-format-dropdown:hover {
    border-color: #8b5cf6;
}

.mp-format-dropdown:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.mp-proxy-string-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mp-string-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mp-format-dropdown-inline {
    flex: 1;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 240px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.mp-format-dropdown-inline:hover {
    border-color: #a78bfa;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.mp-format-dropdown-inline:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(139, 92, 246, 0.1);
    background: white;
}

.mp-protocol-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mp-http-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.mp-socks5-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.mp-host-info {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.mp-string-box {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 2px solid #374151;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mp-string-box:hover {
    border-color: #6b7280;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mp-string-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.mp-string-code {
    flex: 1;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    word-break: break-all;
    color: #e5e7eb;
    padding-left: 0.75rem;
}

.mp-http-code {
    color: #10b981 !important;
}

.mp-socks5-code {
    color: #60a5fa !important;
}

.mp-string-copy-btn {
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mp-string-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    color: white;
}

.mp-string-copy-btn:active {
    transform: scale(0.95);
}

.mp-string-copy-btn svg {
    width: 18px;
    height: 18px;
}

/* Большой блок для одной строки */
.mp-string-code-large {
    flex: 1;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 1.05rem;
    line-height: 1.8;
    word-break: break-all;
    color: #10b981;
    padding-left: 0.75rem;
    font-weight: 600;
}

.mp-string-copy-btn-large {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.mp-string-copy-btn-large:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.mp-string-copy-btn-large:active {
    transform: translateY(0);
}

.mp-string-copy-btn-large svg {
    width: 20px;
    height: 20px;
}

/* Улучшенные стили для info блока */
.mp-info-label {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
}

.mp-info-value {
    color: #111827;
    font-weight: 600;
}

.mp-location-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mp-location-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mp-location-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mp-operator-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.mp-operator-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.mp-plan-badge {
    padding: 0.25rem 0.65rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Компактная инфо-строка */
.mp-proxy-info-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.mp-timer-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mp-timer-box.mp-timer-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: pulse-warning 2s infinite;
}

.mp-timer-icon {
    font-size: 1.2rem;
}

.mp-timer-text {
    letter-spacing: 0.5px;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

.mp-auto-extend-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mp-auto-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

/* Toggle Switch для автопродления */
.mp-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.mp-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mp-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 26px;
}

.mp-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mp-toggle-switch input:checked + .mp-toggle-slider {
    background: linear-gradient(135deg, #10b981, #059669);
}

.mp-toggle-switch input:checked + .mp-toggle-slider:before {
    transform: translateX(24px);
}

.mp-location-isp {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-mp-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-mp-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-mp-info-grid {
        grid-template-columns: 1fr;
    }

    .mp-string-box {
        flex-direction: column;
        align-items: stretch;
    }

    .mp-string-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .mp-string-header {
        flex-wrap: wrap;
    }
}

/* ========== OpenVPN Button ========== */
.mp-openvpn-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mp-openvpn-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    color: white;
}

.mp-openvpn-btn svg {
    fill: currentColor;
}

/* ========== Settings Modal ========== */
.mp-settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mp-settings-modal {
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.mp-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px 16px 0 0;
}

.mp-settings-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.mp-settings-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mp-settings-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mp-settings-body {
    padding: 1.5rem;
}

.mp-settings-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.mp-settings-flag {
    font-size: 1.5rem;
}

.mp-settings-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mp-settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mp-settings-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.mp-settings-hint {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 0.25rem;
}

.mp-settings-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.mp-settings-input {
    flex: 1;
    min-width: 80px;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.mp-settings-input:focus {
    outline: none;
    border-color: #667eea;
}

.mp-settings-input-wide {
    min-width: 200px;
}

.mp-settings-select {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
}

.mp-settings-select:focus {
    outline: none;
    border-color: #667eea;
}

.mp-settings-select-wide {
    min-width: 320px;
    font-size: 0.85rem;
}

.mp-settings-select optgroup {
    font-weight: bold;
    color: #667eea;
}

.mp-settings-select option {
    font-weight: normal;
    color: #1f2937;
}

.mp-settings-unit {
    color: #6b7280;
    font-weight: 500;
}

.mp-settings-save-btn {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.mp-settings-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.mp-settings-save-btn:disabled,
.mp-settings-save-btn.mp-btn-loading {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mp-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: mp-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes mp-spin {
    to {
        transform: rotate(360deg);
    }
}

.mp-settings-current {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.mp-settings-current code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

/* ========== IP Button Group ========== */
.mp-ip-btn-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.mp-ip-main-btn {
    border-radius: 8px 0 0 8px !important;
    flex: 1;
}

.mp-ip-link-btn {
    padding: 0.75rem 0.75rem;
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.mp-ip-link-btn:hover {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
}

.mp-ip-link-btn:active {
    transform: scale(0.95);
}

/* ========== Extend Modal ========== */
.mp-extend-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.mp-extend-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.mp-extend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.mp-extend-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.mp-extend-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mp-extend-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mp-extend-info {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.mp-extend-proxy-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #374151;
}

.mp-extend-plans {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
}

.mp-extend-plan {
    flex: 1;
    padding: 1.25rem 1rem;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mp-extend-plan:hover:not(.disabled) {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateY(-2px);
}

.mp-extend-plan.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.mp-extend-plan.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mp-extend-plan-name {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.mp-extend-plan-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

.mp-extend-plan.disabled .mp-extend-plan-price {
    color: #9ca3af;
}

.mp-extend-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f0fdf4;
    color: #065f46;
    font-size: 0.95rem;
}

.mp-extend-btn {
    display: block;
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mp-extend-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.mp-extend-btn:disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
