html, body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Vazirmatn', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


.username-box {
    position: relative;
}

.username-box[data-tooltip-text]:hover::after {
    content: attr(data-tooltip-text);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 110%; 
    background-color: #1f2937; 
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem; 
    white-space: nowrap;
    z-index: 50; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none; 
}

.light-theme .username-box[data-tooltip-text]:hover::after {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}





.bg-gradient-to-r.from-teal-500.to-cyan-500 {
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    border: none;
    color: white;
}

.bg-gradient-to-r.from-teal-500.to-cyan-500:hover {
    background: linear-gradient(135deg, #0d9488, #0891b2);
}

.light-theme .bg-gradient-to-r.from-teal-500.to-cyan-500 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.alert {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}
.hajm {
font-size: 0.7rem;
}


.light-theme .bg-tarikh{
	background-color: #ffffff;
	border: 1px solid #d1d5db;
}

.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #475569, #334155);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border-radius: 9999px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    background: linear-gradient(150deg, #ffffff, #dbe2ea);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

input:checked + .slider {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.25), 0 0 12px -1px rgba(59, 130, 246, 0.75);
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.switch:active .slider:before {
    width: 19px;
}
.switch:active input:checked + .slider:before {
    transform: translateX(13px);
}

.slider.round {
    border-radius: 9999px;
}

.slider.round:before {
    border-radius: 50%;
}

.slider.disabled {
    background: linear-gradient(180deg, #4b5563, #374151);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
}

.slider.disabled:before {
    background: linear-gradient(150deg, #d1d5db, #9ca3af);
}

.switch:has(input:disabled) {
    opacity: 0.65;
}

.light-theme .slider {
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.light-theme .slider:before {
    background: linear-gradient(150deg, #ffffff, #f1f5f9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.light-theme input:checked + .slider {
    background: linear-gradient(180deg, #60a5fa, #2563eb);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.15), 0 0 12px -2px rgba(37, 99, 235, 0.55);
}
.light-theme .slider.disabled {
    background: linear-gradient(180deg, #e5e7eb, #d1d5db);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.light-theme .slider.disabled:before {
    background: linear-gradient(150deg, #ffffff, #f3f4f6);
}
@media (prefers-reduced-motion: reduce) {
    .slider, .slider:before { transition: none; }
}

details[open] .details-arrow-down {
    display: none;
}

details[open] .details-arrow-up {
    display: block;
}

.text-red-500 {
    color: #ef4444;
}

.text-orange-500 {
    color: #f97316;
}

.text-green-500 {
    color: #22c55e;
}

.status-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-circle.online {
    background-color: #22c55e;
    animation: pulse 0.8s infinite;
}

.status-circle.offline {
    background-color: #6b7280;
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#onlineUsersCount, #totalUsersCount, #disabledUsersCount, #expiredUsersCount {
    font-size: 1.5rem;
    color: #22c55e;
}

#disabledUsersCount {
    color: #f97316;
}

#expiredUsersCount {
    color: #ef4444;
}

.light-theme {
    background-color: #ffffff;
    color: #1a1a1a;
}

.light-theme .bg-gray-800 {
    background-color: #f3f4f6;
    color: #1a1a1a;
}

.light-theme .bg-gray-700 {
    background-color: #e5e7eb;
    color: #1a1a1a;
}

.light-theme .bg-gray-600 {
    background-color: #d1d5db;
    color: #1a1a1a;
}

.light-theme .bg-gray-600.hover\:bg-gray-500:hover {
    background-color: #9ca3af;
}

.light-theme .bg-gray-600\/50 {
    background-color: rgba(209, 213, 219, 0.5);
    color: #1a1a1a;
}

.light-theme .text-white {
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-blue-600.to-cyan-600 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;

}
.light-theme .bg-gradient-to-r.from-blue-600.to-indigo-600 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}
.light-theme .bg-gradient-to-r.from-purple-600.to-blue-600 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-yellow-600.to-orange-600 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-red-600.to-pink-600 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-green-600.to-teal-600 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-green-500.to-teal-500 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-pink-600.to-purple-600 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.light-theme .theme-toggle-button {
    background: linear-gradient(90deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.light-theme .theme-toggle-button:hover {
    background: linear-gradient(90deg, #d1d5db, #9ca3af);
}

.light-theme .bg-gradient-to-r.from-purple-600.to-blue-600,
.light-theme .bg-gradient-to-r.from-yellow-600.to-orange-600,
.light-theme .bg-gradient-to-r.from-red-600.to-pink-600,
.light-theme .bg-gradient-to-r.from-green-600.to-teal-600,
.light-theme .bg-gradient-to-r.from-green-500.to-teal-500,
.light-theme .bg-gradient-to-r.from-pink-600.to-purple-600 {
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-purple-600.to-blue-600 .text-sm,
.light-theme .bg-gradient-to-r.from-yellow-600.to-orange-600 .text-sm,
.light-theme .bg-gradient-to-r.from-red-600.to-pink-600 .text-sm,
.light-theme .bg-gradient-to-r.from-green-600.to-teal-600 .text-sm,
.light-theme .bg-gradient-to-r.from-green-500.to-teal-500 .text-sm,
.light-theme .bg-gradient-to-r.from-pink-600.to-purple-600 .text-sm {
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-purple-600.to-blue-600 .text-white,
.light-theme .bg-gradient-to-r.from-yellow-600.to-orange-600 .text-white,
.light-theme .bg-gradient-to-r.from-red-600.to-pink-600 .text-white,
.light-theme .bg-gradient-to-r.from-green-600.to-teal-600 .text-white,
.light-theme .bg-gradient-to-r.from-green-500.to-teal-500 .text-white,
.light-theme .bg-gradient-to-r.from-pink-600.to-purple-600 .text-white {
    color: #1a1a1a;
}

.traffic-details {
  position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0.4rem;
        background: rgba(17, 24, 39, 0.97);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(96, 165, 250, 0.25);
        border-radius: 0.65rem;
        padding: 8px 12px;
        color: #e5e7eb;
        font-size: 0.8rem;
        z-index: 100;
        box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.5);
        display: none;
        min-width: 130px;
        white-space: nowrap;
}
.light-theme .traffic-details {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.2);
    color: #1f2937;
}

.traffic-details span {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.traffic-details span:last-child {
    margin-bottom: 0;
}

.bg-gradient-to-r.from-purple-600.to-blue-600:hover .traffic-details {
    display: block;
}


.hover-traffic {
    position: relative;
}
.hover-traffic:hover .traffic-details {
    display: block;
}

.bg-gradient-to-r.from-purple-600.to-blue-600 {
    background: linear-gradient(135deg, #6b46c1, #3b82f6);
}

.bg-gradient-to-r.from-yellow-600.to-orange-600 {
    background: linear-gradient(135deg, #d97706, #f97316);
}

.bg-gradient-to-r.from-red-600.to-pink-600 {
    background: linear-gradient(135deg, #dc2626, #ec4899);
}

.bg-gradient-to-r.from-green-500.to-emerald-500 {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
}



.light-theme .bg-gradient-to-r.from-green-500.to-emerald-500 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.text-orange-500.data-limit {
    color: #f97316;
    font-weight: bold;
}

.text-red-500.expired {
    color: #ef4444;
    font-weight: bold;
}

.traffic-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 4px;
}

.glass-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.gradient-text {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.status-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.progress-bar {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.5s ease;
}

.download-btn {
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}


.node-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid #6b7280;
}

.node-card:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-2px);
}

.node-card.online {
    border-left-color: #22c55e;
}

.node-card.offline {
    border-left-color: #ef4444;
}

.node-card.error {
    border-left-color: #f97316;
}

.node-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.node-status.online {
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 1.5s infinite;
}

.node-status.offline {
    background-color: #ef4444;
}

.node-status.error {
    background-color: #f97316;
}

.node-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.node-action-btn {
    flex: 1;
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.node-action-btn.sync {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.node-action-btn.sync:hover {
    background: rgba(59, 130, 246, 0.4);
}

.node-action-btn.delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.node-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.4);
}

.node-action-btn.status {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.node-action-btn.status:hover {
    background: rgba(156, 163, 175, 0.4);
}

@keyframes progress-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

#syncProgressBar {
    animation: progress-pulse 1.5s infinite;
}

.sync-step {
    transition: all 0.3s ease;
}

.sync-step.completed {
    color: #22c55e;
}

.sync-step.completed i {
    color: #22c55e;
    animation: none;
}

.sync-step.failed {
    color: #ef4444;
}

.sync-step.failed i {
    color: #ef4444;
    animation: none;
}


.connection-badge {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.connection-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	z-index:25;
}

.server-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.server-icon.main svg {
    color: #8b5cf6;
}

.server-icon.node svg {
    color: #3b82f6;
}

.download-option {
    transition: all 0.2s ease;
}

.download-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-option .server-icon {
    margin-right: 8px;
}





#addNodeModal .modal-content {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}


.progress-tracker {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; 
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
}

#addNodeProgress.visible {
    max-height: 500px; 
    opacity: 1;
    margin-top: 1.5rem; 
}

.step-item {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0.5; 
}

.step-item.in-progress {
    opacity: 1;
}
.step-item.completed, .step-item.failed {
    opacity: 1;
}

.step-icon {
    flex-shrink: 0;
    width: 2.25rem; 
    height: 2.25rem; 
    border-radius: 9999px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #4b5563; 
    background-color: #374151; 
    transition: all 0.3s ease;
}

.step-item.in-progress .step-icon {
    border-color: #3b82f6; 
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa; 
}

.step-item.completed .step-icon {
    border-color: #22c55e; 
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80; 
}

.step-item.failed .step-icon {
    border-color: #ef4444; 
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171; 
}

.step-text {
    margin-left: 0.75rem; 
    font-size: 0.875rem; 
    font-weight: 500; 
    color: #9ca3af; 
    transition: color 0.3s ease;
}

.step-item.in-progress .step-text {
    color: #e5e7eb; 
}
.step-item.completed .step-text, .step-item.failed .step-text {
    color: #f9fafb; 
}


.light-theme #addNodeModal .modal-content {
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
    border-color: #e5e7eb;
}

.light-theme .step-icon {
    border-color: #d1d5db; 
    background-color: #e5e7eb; 
}

.light-theme .step-item.in-progress .step-icon {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.light-theme .step-item.completed .step-icon {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}
.light-theme .step-item.failed .step-icon {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.light-theme .step-text { color: #6b7280; }
.light-theme .step-item.in-progress .step-text { color: #374151; }
.light-theme .step-item.completed .step-text, .light-theme .step-item.failed .step-text { color: #111827; }







details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] .arrow-down { display: none; }
details:not([open]) .arrow-up { display: none; }

.light-mode .download-btn {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb) !important;
    color: #1f2937 !important; 
}

.light-mode .download-btn span,
.light-mode .download-btn i,
.light-mode .download-btn strong {
    color: #1f2937 !important; 
}

.light-mode .download-btn .text-green-300 {
    color: #047857 !important; 
}

.light-mode details > summary {
    color: #1f2937 !important; 
}

.light-mode details > summary i {
    color: #4f46e5 !important; 
}


.light-mode details > summary > span,
.light-mode details > summary > span > i {
    color: #1f2937 !important; 
}

.light-mode details > summary > span > .arrow-down,
.light-mode details > summary > span > .arrow-up {
    color: #1f2937 !important; 
}

.light-mode .download-btn {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb) !important;
    color: #1f2937 !important; 
}

.light-mode .download-btn span,
.light-mode .download-btn i,
.light-mode .download-btn strong {
    color: #1f2937 !important; 
}

.light-mode .download-btn .text-green-300 {
    color: #047857 !important; 
}



.light-mode .wr {color: #047857;}


details.bg-gray-800\/50 {
    border-color: rgba(55, 65, 81, 0.8) !important; 
}

.light-mode details.bg-gray-800\/50 {
    border-color: rgba(55, 65, 81, 0.1) !important; 
}


.smart-download-modal-content {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

.download-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #cbd5e1; 
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}

.download-group-details {
    background-color: rgba(17, 24, 39, 0.5); 
    border-radius: 0.75rem;
    border: 1px solid rgba(55, 65, 81, 1); 
    transition: all 0.3s ease;
	margin-bottom: 0.5rem;
}

.download-group-details[open] {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-color: rgba(79, 70, 229, 0.5); 
}

.download-group-summary {
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-weight: 500;
    color: #e5e7eb; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    border-radius: 0.75rem;
}

.download-group-details[open] > .download-group-summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.download-group-summary:hover {
    background-color: rgba(55, 65, 81, 0.5); 
}

.download-group-summary > span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.download-group-summary > span > i {
    color: #a5b4fc; 
}

.download-group-details[open] .details-arrow {
    transform: rotate(180deg);
}
.details-arrow {
    transition: transform 0.3s ease;
}

.download-group-content {
    padding: 0.75rem;
    border-top: 1px solid rgba(55, 65, 81, 1);
    space-y: 0.5rem;
}

.download-modal-link {
    background: rgba(55, 65, 81, 0.6);
    color: #d1d5db; 
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
	margin-bottom: 0.5rem;
}

.download-modal-link:hover {
    background: #4f46e5; 
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.download-modal-link > span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.default-badge {
    font-size: 0.7rem;
    background-color: rgba(16, 185, 129, 0.2); 
    color: #6ee7b7; 
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}


.light-theme .smart-download-modal-content {
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
    border-color: #e5e7eb;
}
.light-theme .smart-download-modal-content .border-white\/10 {
    border-color: #e5e7eb;
}
.light-theme .download-group-title {
    color: #374151; 
}
.light-theme .download-group-details {
    background-color: #ffffff;
    border-color: #e5e7eb;
}
.light-theme .download-group-details[open] {
    border-color: #6366f1; 
}
.light-theme .download-group-summary {
    color: #1f2937; 
}
.light-theme .download-group-summary:hover {
    background-color: #f3f4f6; 
}
.light-theme .download-group-summary > span > i {
    color: #4f46e5; 
}
.light-theme .download-group-content {
    border-color: #e5e7eb;
}
.light-theme .download-modal-link {
    background-color: #eef2ff; 
    color: #4338ca; 
}
.light-theme .download-modal-link:hover {
    background: #4f46e5; 
    color: #ffffff;
}
.light-theme .default-badge {
    background-color: #dcfce7; 
    color: #15803d; 
}
.light-theme #smartDownloadModal button {
    border-color: #d1d5db; 
}
.light-theme #smartDownloadModal button:hover {
    background-color: #e5e7eb; 
}


#multiServerContainer {
    transition: all 0.4s ease-in-out;

}
.endpoint-group {
    background-color: rgba(17, 24, 39, 0.6);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}
.endpoint-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #9ca3af; 
    margin-bottom: 0.5rem;
}
.endpoint-ports {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.server-option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #374151; 
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #d1d5db; 
    cursor: pointer;
    border: 1px solid #4b5563; 
    transition: all 0.2s ease;
}
.server-option-item:hover {
    border-color: #6366f1; 
}
.server-option-item input[type="checkbox"] {
    display: none;
}
.server-option-item input:checked + i {
    color: #4ade80; 
}
.server-option-item input:checked + i + span {
    color: #ffffff;
}

.light-theme .endpoint-group { background-color: #f3f4f6; }
.light-theme .endpoint-name { color: #6b7280; }
.light-theme .server-option-item {
    background-color: #e5e7eb; 
    color: #374151; 
    border-color: #d1d5db; 
}
.light-theme .server-option-item:hover { border-color: #4f46e5; }
.light-theme .server-option-item input:checked + i + span { color: #1f2937; }

.multi-server-link {
    background: linear-gradient(135deg, #14b8a6, #0891b2) !important; 
    border: 1px solid rgba(45, 212, 191, 0.3);
}
.multi-server-link:hover {
    background: linear-gradient(135deg, #0f766e, #0e7490) !important;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.light-theme .multi-server-link {
    background: linear-gradient(135deg, #14b8a6, #0891b2) !important;
    color: #ffffff !important;
}
.light-theme .multi-server-link:hover {
    background: linear-gradient(135deg, #0f766e, #0e7490) !important;
}






.settings-modal-content {
    background: #1e293b; 
}


.tab-button {
    background-color: transparent;
    color: #94a3b8; 
    transition: all 0.2s ease-in-out;
    border-left: 3px solid transparent;
}
.tab-button:hover {
    background-color: rgba(51, 65, 85, 0.5); 
    color: #f1f5f9; 
}
.tab-button.active {
    background-color: rgba(79, 70, 229, 0.1); 
    color: #c7d2fe; 
    font-weight: 600;
    border-left-color: #6366f1; 
}
.tab-button.active i {
    color: #818cf8; 
}


.tab-button-mobile {
    flex-grow: 1;
    padding: 0.5rem 0.5rem;
    font-size: 0.75rem; 
    font-weight: 500;
    color: #9ca3af; 
    border-radius: 9999px; 
    background-color: #374151; 
    transition: all 0.2s ease-in-out;
    border: 1px solid #4b5563; 
}
.tab-button-mobile.active {
    color: #ffffff;
    background-color: #4f46e5; 
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}



.light-theme .settings-modal-content {
    background-color: #ffffff; 
    border-color: #e5e7eb; 
}

.light-theme .border-gray-700 {
    border-color: #e5e7eb;
}

.light-theme .text-white {
    color: #111827; 
}

.light-theme .bg-gray-900\/30 {
    background-color: #f9fafb; 
}

.light-theme .tab-content,
.light-theme .bg-gray-700,
.light-theme .bg-gray-700\/30,
.light-theme .bg-gray-700\/50 {
    background-color: #ffffff; 
}

.light-theme .bg-gray-900,
.light-theme .bg-gray-900\/50 {
    background-color: #f9fafb;
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-gray-600.to-gray-700 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}


.light-theme input:not([type=checkbox]):not([type=radio]),
.light-theme select,
.light-theme textarea {
    background-color: #f9fafb !important; 
    color: #1f2937 !important;            
    border: 1px solid #d1d5db !important; 
}



.light-theme .tab-button {
    color: #4b5563;
}
.light-theme .tab-button:hover {
    background-color: #f3f4f6;
    color: #312e81;
}
.light-theme .tab-button.active {
    background-color: #eef2ff;
    color: #4338ca;
    border-left-color: #4f46e5;
}
.light-theme .tab-button.active i {
    color: #4f46e5;
}


.light-theme .tab-button-mobile {
    color: #374151;
    background-color: #e5e7eb;
    border-color: #d1d5db;
}
.light-theme .tab-button-mobile.active {
    color: #ffffff;
    background-color: #4f46e5;
    border-color: transparent;
}












.server-group > summary, .endpoint-group > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    background-color: rgba(55, 65, 81, 0.6); 
    transition: background-color 0.2s ease;
    user-select: none; 
    list-style: none; 
}


.server-group > summary::-webkit-details-marker,
.endpoint-group > summary::-webkit-details-marker {
    display: none;
}

.server-group > summary:hover, .endpoint-group > summary:hover {
    background-color: rgba(75, 85, 99, 0.6); 
}

.details-arrow {
    transition: transform 0.3s ease;
    color: #9ca3af; 
}

.server-group[open] > summary .details-arrow,
.endpoint-group[open] > summary .details-arrow {
    transform: rotate(180deg);
}

.server-options {
    padding-left: 1rem;
    border-left: 2px solid #4b5563; 
    margin-top: 0.5rem;
    margin-left: 0.5rem;
}

.endpoint-group {
    background-color: transparent;
    padding: 0;
    margin-top: 0.5rem;
}

.endpoint-ports {
    padding: 0.75rem;
    border-top: 1px solid #4b5563; 
}


.light-theme .server-group > summary, .light-theme .endpoint-group > summary {
    background-color: #f3f4f6; 
}
.light-theme .server-group > summary:hover, .light-theme .endpoint-group > summary:hover {
    background-color: #e5e7eb; 
}
.light-theme .server-options {
    border-left-color: #d1d5db; 
}
.light-theme .endpoint-ports {
    border-top-color: #d1d5db; 
}
.light-theme .details-arrow {
    color: #6b7280; 
}







.server-group > summary, .endpoint-group > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    background-color: rgba(55, 65, 81, 0.6); 
    transition: background-color 0.2s ease;
    user-select: none; 
    list-style: none; 
}


.server-group > summary::-webkit-details-marker,
.endpoint-group > summary::-webkit-details-marker {
    display: none;
}

.server-group > summary:hover, .endpoint-group > summary:hover {
    background-color: rgba(75, 85, 99, 0.6); 
}

.details-arrow {
    transition: transform 0.3s ease;
    color: #9ca3af; 
}

.server-group[open] > summary .details-arrow,
.endpoint-group[open] > summary .details-arrow {
    transform: rotate(180deg);
}

.server-options {
    padding-left: 1rem;
    border-left: 2px solid #4b5563; 
    margin-top: 0.5rem;
    margin-left: 0.5rem;
}

.endpoint-group {
    background-color: transparent;
    padding: 0;
    margin-top: 0.5rem;
}

.endpoint-ports {
    padding: 0.75rem;
    border-top: 1px solid #4b5563; 
}


.light-theme .server-group > summary, .light-theme .endpoint-group > summary {
    background-color: #f3f4f6; 
}
.light-theme .server-group > summary:hover, .light-theme .endpoint-group > summary:hover {
    background-color: #e5e7eb; 
}
.light-theme .server-options {
    border-left-color: #d1d5db; 
}
.light-theme .endpoint-ports {
    border-top-color: #d1d5db; 
}
.light-theme .details-arrow {
    color: #6b7280; 
}







.port-server-selector-label {
    position: relative;
    display: block;
    cursor: pointer;
}

.server-select-card {
    display: flex;
    align-items: center;
    gap: 0.75rem; 
    padding: 0.75rem; 
    border: 2px solid #4b5563; 
    border-radius: 0.5rem; 
    background-color: rgba(55, 65, 81, 0.4); 
    transition: all 0.2s ease-in-out;
}

.port-server-selector-label:hover .server-select-card {
    border-color: #6b7280; 
    background-color: rgba(55, 65, 81, 0.7);
}

.port-server-selector-label input[type="checkbox"] {
    display: none; 
}


.port-server-selector-label input:checked + .server-select-card {
    border-color: #4f46e5; 
    background-color: rgba(79, 70, 229, 0.15); 
    box-shadow: 0 0 0 1px #4f46e5;
}

.server-select-card .icon {
    color: #9ca3af; 
    transition: color 0.2s ease-in-out;
}

.port-server-selector-label input:checked + .server-select-card .icon {
    color: #818cf8; 
}

.server-select-card .name {
    font-weight: 500; 
    color: #d1d5db; 
    transition: color 0.2s ease-in-out;
}

.port-server-selector-label input:checked + .server-select-card .name {
    color: #e5e7eb; 
}


.light-theme .server-select-card {
    border-color: #d1d5db;
    background-color: #f9fafb;
}
.light-theme .port-server-selector-label:hover .server-select-card {
    border-color: #9ca3af;
    background-color: #f3f4f6;
}
.light-theme .port-server-selector-label input:checked + .server-select-card {
    border-color: #4338ca;
    background-color: #eef2ff;
}
.light-theme .server-select-card .icon {
    color: #6b7280;
}
.light-theme .port-server-selector-label input:checked + .server-select-card .icon {
    color: #4f46e5;
}
.light-theme .server-select-card .name {
    color: #374151;
}
.light-theme .port-server-selector-label input:checked + .server-select-card .name {
    color: #111827;
}



.server-select-label {
    position: relative;
    display: block;
    cursor: pointer;
}

.server-select-card {
    display: flex;
    align-items: center;
    gap: 0.75rem; 
    padding: 0.75rem; 
    border: 2px solid #4b5563; 
    border-radius: 0.5rem; 
    background-color: rgba(55, 65, 81, 0.4); 
    transition: all 0.2s ease-in-out;
}

.server-select-label:hover .server-select-card {
    border-color: #6b7280; 
    background-color: rgba(55, 65, 81, 0.7);
}

.server-select-label input[type="checkbox"] {
    display: none; 
}


.server-select-label input:checked + .server-select-card {
    border-color: #4f46e5; 
    background-color: rgba(79, 70, 229, 0.15); 
    box-shadow: 0 0 0 1px #4f46e5;
}

.server-select-card .icon {
    color: #9ca3af; 
    transition: color 0.2s ease-in-out;
    width: 20px; 
    text-align: center;
}

.server-select-label input:checked + .server-select-card .icon {
    color: #818cf8; 
}

.server-select-card .name {
    font-weight: 500; 
    color: #d1d5db; 
    transition: color 0.2s ease-in-out;
}

.server-select-label input:checked + .server-select-card .name {
    color: #e5e7eb; 
}


.server-select-label.wg-selected .server-select-card {
    border-color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.15);
    box-shadow: 0 0 0 1px #4f46e5;
}

.server-select-label.wg-selected .server-select-card .icon {
    color: #818cf8;
}

.server-select-label.wg-selected .server-select-card .name {
    color: #e5e7eb;
}


.server-select-label.singbox-selected .server-select-card {
    border-color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.15);
    box-shadow: 0 0 0 1px #4f46e5;
}

.server-select-label.singbox-selected .server-select-card .icon {
    color: #818cf8;
}

.server-select-label.singbox-selected .server-select-card .name {
    color: #e5e7eb;
}


.light-theme .server-select-card {
    border-color: #d1d5db;
    background-color: #f9fafb;
}
.light-theme .server-select-label:hover .server-select-card {
    border-color: #9ca3af;
    background-color: #f3f4f6;
}
.light-theme .server-select-label input:checked + .server-select-card {
    border-color: #4338ca;
    background-color: #eef2ff;
}
.light-theme .server-select-card .icon {
    color: #6b7280;
}
.light-theme .server-select-label input:checked + .server-select-card .icon {
    color: #4f46e5;
}
.light-theme .server-select-card .name {
    color: #374151;
}
.light-theme .server-select-label input:checked + .server-select-card .name {
    color: #111827;
}




.light-theme #apiKeyList > div,
.light-theme #subAdminApiKeyList > div {
    background-color: #f3f4f6; 
    border-color: #e5e7eb; 
}

.light-theme #apiKeyList .font-semibold.text-white,
.light-theme #subAdminApiKeyList .font-semibold.text-white {
    color: #1f2937; 
}

.light-theme #apiKeyList .text-xs.text-gray-400,
.light-theme #subAdminApiKeyList .text-xs.text-gray-400 {
    color: #6b7280; 
}

.light-theme #apiKeyList .bg-gray-900\/50,
.light-theme #subAdminApiKeyList .bg-gray-900\/50 {
    background-color: #e5e7eb; 
}

.light-theme #apiKeyList .text-indigo-300,
.light-theme #subAdminApiKeyList .text-indigo-300 {
    color: #4338ca; 
}

.light-theme .quota-used-badge {
    background-color: #e0e7ff; 
    color: #4338ca; 
    border-color: #a5b4fc; 
}



    border: 1px solid #4b5563; 
    border-radius: 0.75rem; 
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.bulk-action-card:hover {
    border-color: #6366f1; 
    background-color: rgba(55, 65, 81, 0.7);
    transform: translateY(-2px);
}

.bulk-action-icon {
    flex-shrink: 0;
    width: 3rem; 
    height: 3rem; 
    border-radius: 9999px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem; 
}


.light-theme .bulk-action-card {
    background-color: #f9fafb; 
    border-color: #e5e7eb; 
}

.light-theme .bulk-action-card:hover {
    border-color: #4f46e5; 
    background-color: #ffffff;
}

.light-theme .bulk-action-card h4 {
    color: #1f2937; 
}

.light-theme .bulk-action-card p {
    color: #6b7280; 
}

.light-theme #bulkActionConfirmModal {
    border-color: #dc2626; 
}
.light-theme .bg-gradient-to-r.from-green-500.to-green-500 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}


.compact-card {
    position: relative;
    background: linear-gradient(155deg, rgba(var(--stat-rgb, 148,163,184), 0.10), rgba(17, 24, 39, 0.5) 65%);
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(var(--stat-rgb, 148,163,184), 0.22);
    box-shadow: 0 10px 26px -18px rgba(var(--stat-rgb, 148,163,184), 0.7);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.compact-card:hover {
    border-color: rgba(var(--stat-rgb, 148,163,184), 0.4);
}

.compact-card-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.85rem;
}
.compact-card-title i {
    font-size: 0.85rem;
    filter: drop-shadow(0 0 6px rgba(var(--stat-rgb, 148,163,184), 0.5));
}

.toggle-group {
    display: flex;
    background-color: rgba(15, 23, 42, 0.55);
    border-radius: 0.6rem;
    padding: 0.25rem;
    border: 1px solid rgba(75, 85, 99, 0.5);
}
.toggle-group label {
    flex: 1;
}
.toggle-input {
    display: none;
}
.toggle-option {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.toggle-input:checked + .toggle-option {
    background: linear-gradient(135deg, rgb(var(--stat-rgb, 59,130,246)), rgba(var(--stat-rgb, 59,130,246), 0.75));
    color: white;
    box-shadow: 0 3px 12px -2px rgba(var(--stat-rgb, 59,130,246), 0.55);
}

.compact-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background-color: rgba(15, 23, 42, 0.55);
    color: white;
    border: 1px solid rgba(75, 85, 99, 0.6);
    border-radius: 0.6rem;
    transition: all 0.2s ease-in-out;
    font-size: 0.875rem;
}

.compact-input:focus {
    outline: none;
    border-color: rgba(var(--stat-rgb, 59,130,246), 0.85);
    box-shadow: 0 0 0 3px rgba(var(--stat-rgb, 59,130,246), 0.2);
    background-color: rgba(15, 23, 42, 0.75);
}

.compact-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    white-space: nowrap;
}

.compact-label-row > .compact-label {
    min-width: 6.5rem;
    flex-shrink: 0;
}

.light-theme .bg-gray-800\/80 {
    background-color: rgba(249, 250, 251, 0.8);
}
.light-theme .border-gray-700\/50 {
    border-color: rgba(229, 231, 235, 0.8);
}
.light-theme .compact-card {
    background: linear-gradient(155deg, rgba(var(--stat-rgb-light, 100,116,139), 0.07), rgba(255, 255, 255, 0.9) 65%);
    border-color: rgba(var(--stat-rgb-light, 100,116,139), 0.22);
    box-shadow: 0 10px 22px -18px rgba(var(--stat-rgb-light, 100,116,139), 0.4);
}
.light-theme .compact-card:hover {
    border-color: rgba(var(--stat-rgb-light, 100,116,139), 0.45);
}
.light-theme .compact-card-title {
    color: #6b7280;
}
.light-theme .toggle-group {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}
.light-theme .toggle-option {
    color: #374151;
}
.light-theme .toggle-input:checked + .toggle-option {
    background: linear-gradient(135deg, rgb(var(--stat-rgb-light, 37,99,235)), rgba(var(--stat-rgb-light, 37,99,235), 0.85));
    box-shadow: 0 3px 12px -2px rgba(var(--stat-rgb-light, 37,99,235), 0.35);
}
.light-theme .compact-input {
    background-color: #f9fafb;
    color: #1f2937;
    border-color: #d1d5db;
}
.light-theme .compact-input:focus {
    border-color: rgba(var(--stat-rgb-light, 37,99,235), 0.85);
    box-shadow: 0 0 0 3px rgba(var(--stat-rgb-light, 37,99,235), 0.15);
    background-color: #fff;
}
.light-theme .compact-input::placeholder {
    color: #9ca3af;
}
.light-theme .compact-label {
    color: #4b5563;
}


.eyl-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.85rem;
    background: linear-gradient(155deg, rgba(var(--stat-rgb), 0.22), rgba(17, 24, 39, 0.45) 80%);
    border: 1px solid rgba(var(--stat-rgb), 0.32);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}
.eyl-nav-btn:hover {
    transform: translateY(-2px);
    border-color: rgb(var(--stat-rgb));
    box-shadow: 0 10px 20px -9px rgba(var(--stat-rgb), 0.5);
}
.eyl-nav-btn:active {
    transform: translateY(0);
}
.light-theme .eyl-nav-btn {
    background: linear-gradient(155deg, rgba(var(--stat-rgb-light), 0.14), rgba(255, 255, 255, 0.85) 80%);
    border-color: rgba(var(--stat-rgb-light), 0.32);
    color: #1f2937;
}
.light-theme .eyl-nav-btn:hover {
    border-color: rgb(var(--stat-rgb-light));
    box-shadow: 0 10px 20px -9px rgba(var(--stat-rgb-light), 0.3);
}
@media (prefers-reduced-motion: reduce) {
    .eyl-nav-btn { transition: none; }
    .eyl-nav-btn:hover, .eyl-nav-btn:active { transform: none; }
}

.eyl-nav-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 9999px;
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(var(--stat-rgb), 0.5);
    color: rgb(var(--stat-rgb));
    font-size: 0.75rem;
    flex-shrink: 0;
}
.eyl-nav-btn-icon svg {
    width: 0.85rem;
    height: 0.85rem;
}
.light-theme .eyl-nav-btn-icon {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(var(--stat-rgb-light), 0.45);
    color: rgb(var(--stat-rgb-light));
}


.system-status-glow {
    position: absolute;
    top: -4rem;
    right: -4rem;
    width: 14rem;
    height: 14rem;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.16), transparent 70%);
    border-radius: 9999px;
    filter: blur(10px);
    pointer-events: none;
}
.light-theme .system-status-glow {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08), transparent 70%);
}

.system-status-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
    
}
.system-status-icon-badge i {
    font-size: 0.8rem;
}

.light-theme .system-status-icon-badge.bg-blue-900 {
    background-color: rgba(37, 99, 235, 0.12);
}
.light-theme .system-status-icon-badge.bg-blue-900.text-blue-400 {
    color: #2563eb;
}
.light-theme .system-status-icon-badge.bg-purple-900 {
    background-color: rgba(124, 58, 237, 0.12);
}
.light-theme .system-status-icon-badge.bg-purple-900.text-purple-400 {
    color: #7c3aed;
}
.light-theme .system-status-icon-badge.bg-green-900 {
    background-color: rgba(22, 163, 74, 0.12);
}
.light-theme .system-status-icon-badge.bg-green-900.text-green-400 {
    color: #16a34a;
}
.light-theme .system-status-icon-badge.bg-yellow-900 {
    background-color: rgba(180, 83, 9, 0.12);
}
.light-theme .system-status-icon-badge.bg-yellow-900.text-yellow-400 {
    color: #b45309;
}
.light-theme .system-status-icon-badge.bg-red-900 {
    background-color: rgba(220, 38, 38, 0.12);
}
.light-theme .system-status-icon-badge.bg-red-900.text-red-400 {
    color: #dc2626;
}
.light-theme .system-status-icon-badge.bg-indigo-900 {
    background-color: rgba(79, 70, 229, 0.12);
}
.light-theme .system-status-icon-badge.bg-indigo-900.text-indigo-400 {
    color: #4f46e5;
}
.light-theme .system-status-icon-badge.bg-pink-900 {
    background-color: rgba(219, 39, 119, 0.12);
}
.light-theme .system-status-icon-badge.bg-pink-900.text-pink-400 {
    color: #db2777;
}


.mini-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(155deg, rgba(var(--stat-rgb), 0.14), rgba(17, 24, 39, 0.25) 65%);
    border: 1px solid rgba(var(--stat-rgb), 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mini-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--stat-rgb), 0.45);
    box-shadow: 0 12px 24px -10px rgba(var(--stat-rgb), 0.35);
}
.light-theme .mini-stat-card {
    background: linear-gradient(155deg, rgba(var(--stat-rgb-light), 0.09), rgba(255, 255, 255, 0.7) 65%);
    border-color: rgba(var(--stat-rgb-light), 0.25);
}
.light-theme .mini-stat-card:hover {
    border-color: rgba(var(--stat-rgb-light), 0.5);
    box-shadow: 0 12px 24px -10px rgba(var(--stat-rgb-light), 0.25);
}

.mini-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 0.15rem;
}
.light-theme .mini-stat-label {
    color: #4b5563;
}

.mini-stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    color: rgb(var(--stat-rgb));
    font-variant-numeric: tabular-nums;
}
.light-theme .mini-stat-value {
    color: rgb(var(--stat-rgb-light));
}

.mini-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    background-color: rgba(var(--stat-rgb), 0.18);
    color: rgb(var(--stat-rgb));
    box-shadow: 0 0 14px -3px rgba(var(--stat-rgb), 0.55);
    flex-shrink: 0;
}
.light-theme .mini-stat-icon {
    background-color: rgba(var(--stat-rgb-light), 0.12);
    color: rgb(var(--stat-rgb-light));
    box-shadow: 0 0 10px -3px rgba(var(--stat-rgb-light), 0.35);
}


.eyl-update-bar {
    background: linear-gradient(90deg, #7c3aed, #2563eb);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.5);
}
.eyl-update-bar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}
.eyl-update-bar-btn {
    background-color: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.eyl-update-bar-btn:hover {
    background-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}


.eyl-progress-track {
    width: 100%;
    height: 0.85rem;
    border-radius: 9999px;
    background-color: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.4);
    overflow: hidden;
}
.light-theme .eyl-progress-track {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
}
.eyl-progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    box-shadow: 0 0 12px -2px rgba(139, 92, 246, 0.7);
    transition: width 0.5s ease-out;
}

.eyl-log-console {
    width: 100%;
    height: 12rem;
    background-color: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.4);
    border-radius: 0.65rem;
    color: #d1d5db;
    font-family: monospace;
    font-size: 0.75rem;
    padding: 0.75rem;
    overflow-y: auto;
}
.light-theme .eyl-log-console {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    color: #374151;
}

.light-theme #updateModal .custom-scroll::-webkit-scrollbar-track {
    background: #f3f4f6;
}
.light-theme #updateModal .custom-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #a78bfa, #60a5fa);
    border-color: #f3f4f6;
}



.port-server-selector-label {
    position: relative;
    display: block;
    cursor: pointer;
}

.server-select-card {
    display: flex;
    align-items: center;
    gap: 0.75rem; 
    padding: 0.75rem; 
    border: 2px solid #4b5563; 
    border-radius: 0.5rem; 
    background-color: rgba(55, 65, 81, 0.4); 
    transition: all 0.2s ease-in-out;
}

.port-server-selector-label:hover .server-select-card {
    border-color: #6b7280; 
    background-color: rgba(55, 65, 81, 0.7);
}

.port-server-selector-label input[type="checkbox"] {
    display: none; 
}


.port-server-selector-label input:checked + .server-select-card {
    border-color: #4f46e5; 
    background-color: rgba(79, 70, 229, 0.15); 
    box-shadow: 0 0 0 1px #4f46e5;
}

.server-select-card .icon {
    color: #9ca3af; 
    transition: color 0.2s ease-in-out;
}

.port-server-selector-label input:checked + .server-select-card .icon {
    color: #818cf8; 
}

.server-select-card .name {
    font-weight: 500; 
    color: #d1d5db; 
    transition: color 0.2s ease-in-out;
}

.port-server-selector-label input:checked + .server-select-card .name {
    color: #e5e7eb; 
}


.light-theme .server-select-card {
    border-color: #d1d5db;
    background-color: #f9fafb;
}
.light-theme .port-server-selector-label:hover .server-select-card {
    border-color: #9ca3af;
    background-color: #f3f4f6;
}
.light-theme .port-server-selector-label input:checked + .server-select-card {
    border-color: #4338ca;
    background-color: #eef2ff;
}
.light-theme .server-select-card .icon {
    color: #6b7280;
}
.light-theme .port-server-selector-label input:checked + .server-select-card .icon {
    color: #4f46e5;
}
.light-theme .server-select-card .name {
    color: #374151;
}
.light-theme .port-server-selector-label input:checked + .server-select-card .name {
    color: #111827;
}





.cheater-glow {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5), inset 0 0 15px rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.4) !important;
}
.light-theme .cheater-glow {
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.4), inset 0 0 15px rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.4) !important;
}


.bg-gradient-to-r.from-red-cheater.to-pink-cheater {
    background: linear-gradient(135deg, #b91c1c, #be185d);
}
.light-theme .bg-gradient-to-r.from-red-cheater.to-pink-cheater {
    background: linear-gradient(135deg, #fee2e2, #fecdd3);
    color: #991b1b !important;
}
.light-theme .bg-gradient-to-r.from-red-cheater.to-pink-cheater .text-white {
     color: #991b1b !important;
}







.node-card-compact {
    background: rgba(30, 41, 59, 0.6); 
    border: 1px solid rgba(75, 85, 99, 0.7); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(3px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.node-card-compact:hover {
    transform: translateY(-4px);
    border-color: #4f46e5; 
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.25);
}

.node-card-compact-icon {
    flex-shrink: 0;
    width: 3rem;  
    height: 3rem; 
    border-radius: 0.75rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; 
    background-color: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.group:hover .node-card-compact-icon {
    transform: rotate(-10deg);
}

.node-stat-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #cbd5e1; 
}

.node-stat-item i {
    width: 1.1rem; 
    text-align: center;
    opacity: 0.8;
}

.node-stat-item .stat-value {
    margin-left: auto;
    font-weight: 600;
    font-family: monospace;
    color: #f1f5f9;
    background-color: rgba(15, 23, 42, 0.5);
    padding: 0.1rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(75, 85, 99, 0.5);
}
.node-stat-item .stat-value.stat-value-date {
    font-family: 'Vazirmatn', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.85rem;
}

.node-actions-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.node-action-btn-compact {
    padding: 0.6rem; 
    border-radius: 0.5rem;
    font-size: 0.8rem; 
    background-color: rgba(75, 85, 99, 0.3);
    color: #9ca3af;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.node-action-btn-compact:hover {
    background-color: #4f46e5;
    color: #ffffff;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.1);
}


.light-theme .node-card-compact {
    background: #ffffff;
    border-color: #e5e7eb; 
}
.light-theme .node-card-compact:hover {
    border-color: #4338ca; 
}
.light-theme .node-card-compact-icon {
    background-color: #f3f4f6; 
}
.light-theme .node-stat-item {
    color: #4b5563; 
}
.light-theme .node-stat-item .stat-value {
    color: #111827; 
    background-color: #eef2ff; 
    border-color: #d1d5db; 
}
.light-theme .node-action-btn-compact {
    background-color: #e5e7eb; 
    color: #4b5563; 
}
.light-theme .node-action-btn-compact:hover {
    background-color: #4f46e5;
    color: #ffffff;
    border-color: transparent;
}













#debugLogContainer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; 
}

.debug-log-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border-left-width: 4px;
    animation: fadeIn 0.3s ease-out;
}

.debug-log-entry .icon {
    margin-top: 0.2rem;
}

.debug-log-entry.info {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #93c5fd;
}
.debug-log-entry.info .icon { color: #60a5fa; }

.debug-log-entry.success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #86efac;
}
.debug-log-entry.success .icon { color: #4ade80; }

.debug-log-entry.warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #fcd34d;
}
.debug-log-entry.warning .icon { color: #fbbf24; }

.debug-log-entry.error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #fca5a5;
}
.debug-log-entry.error .icon { color: #f87171; }

.debug-log-entry.final {
    background-color: rgba(20, 184, 166, 0.1);
    border-color: #14b8a6;
    color: #5eead4;
    font-weight: 600;
}
.debug-log-entry.final .icon { color: #2dd4bf; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}


.light-theme .debug-log-entry.info { background-color: #eef2ff; color: #3730a3; border-color: #6366f1; }
.light-theme .debug-log-entry.success { background-color: #f0fdf4; color: #15803d; border-color: #22c55e; }
.light-theme .debug-log-entry.warning { background-color: #fffbeb; color: #b45309; border-color: #f59e0b; }
.light-theme .debug-log-entry.error { background-color: #fef2f2; color: #b91c1c; border-color: #ef4444; }
.light-theme .debug-log-entry.final { background-color: #f0fdfa; color: #0f766e; border-color: #14b8a6; }






.user-status-controls.processing .slider {
    background-color: #6b7280; 
    cursor: wait;
}

.user-status-controls.processing {
    opacity: 0.7;
    pointer-events: none; 
}


.light-theme .user-status-controls.processing .slider {
    background-color: #d1d5db; 
}


.user-status-controls.processing .slider {
    background-color: #6b7280; 
    cursor: wait;
}

.user-status-controls.processing {
    opacity: 0.7;
    pointer-events: none; 
}


.light-theme .user-status-controls.processing .slider {
    background-color: #d1d5db; 
}



.zip-icon-btn {
    background-color: rgba(245, 158, 11, 0.2); 
    color: #fcd34d; 
    padding: 0.5rem 0.6rem;
    border-radius: 0.375rem; 
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.zip-icon-btn:hover {
    background-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24; 
    transform: scale(1.05);
}


.zip-icon-btn.processing {
    color: #9ca3af; 
    background-color: rgba(75, 85, 99, 0.3);
    border-color: rgba(107, 114, 128, 0.5);
    pointer-events: none; 
}


.zip-icon-btn.success {
    background-color: rgba(34, 197, 94, 0.2);
    color: #86efac; 
    border-color: rgba(34, 197, 94, 0.4);
}


.light-mode .zip-icon-btn {
    background-color: #fffbeb; 
    color: #d97706; 
    border-color: #fcd34d; 
}
.light-mode .zip-icon-btn:hover {
    background-color: #fef3c7; 
    color: #b45309; 
}
.light-mode .zip-icon-btn.processing {
    background-color: #f3f4f6; 
    color: #6b7280; 
    border-color: #d1d5db; 
}
.light-mode .zip-icon-btn.success {
    background-color: #f0fdf4; 
    color: #16a34a; 
    border-color: #86efac; 
}

.sortable-ghost {
    opacity: 0.4;
    background-color: #4f46e5; 
    border-radius: 1rem;
}


.node-card-compact {
    cursor: grab; 
}


.node-card-compact:active {
    cursor: grabbing; 
}


.filename-formatter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .filename-formatter {
        grid-template-columns: 2fr 1fr; 
    }
}


.filename-tags-available {
    background-color: rgba(17, 24, 39, 0.7); 
    border: 1px solid #4b5563; 
    border-radius: 0.5rem;
    padding: 0.75rem;
    height: 100%;
}
.filename-tags-available-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 50px;
}
.light-theme .filename-tags-available {
    background-color: #f3f4f6; 
    border-color: #d1d5db; 
}


.filename-formula-builder {
    background-color: rgba(17, 24, 39, 0.7);
    border: 1px dashed #4b5563;
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-height: 50px;
}
.light-theme .filename-formula-builder {
    background-color: #f9fafb; 
    border-color: #9ca3af; 
}


.filename-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: grab;
    transition: all 0.2s;
    user-select: none;
}
.filename-tag.tag-item { 
    background-color: #3b82f6; 
    color: white;
}
.filename-tag.static-item { 
    background-color: #374151; 
    color: #d1d5db; 
}
.filename-tag.static-item input { 
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    width: 60px; 
    outline: none;
}
.filename-tag.static-item input:focus {
    outline: 1px dashed #6b7280;
}
.light-theme .filename-tag.tag-item {
    background-color: #2563eb; 
}
.light-theme .filename-tag.static-item {
    background-color: #e5e7eb; 
    color: #1f2937; 
}
.light-theme .filename-tag.static-item input:focus {
    outline: 1px dashed #4b5563;
}


.tag-delete-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tag-delete-btn:hover {
    color: white;
}
.light-theme .tag-delete-btn {
    color: #6b7280;
}
.light-theme .tag-delete-btn:hover {
    color: #111827;
}


.filename-preview {
    background-color: rgba(17, 24, 39, 0.7);
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-family: monospace;
    font-size: 0.875rem;
    color: #9ca3af; 
    word-break: break-all;
}
.filename-preview .preview-base {
    color: #e5e7eb; 
}
.light-theme .filename-preview {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #4b5563;
}
.light-theme .filename-preview .preview-base {
    color: #1f2937;
}







.port-section-details {
    background-color: rgba(30, 41, 59, 0.6); 
    border: 1px solid #4b5563; 
    border-radius: 0.75rem; 
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.port-section-details[open] {
    background-color: rgba(30, 41, 59, 0.9);
    border-color: #3b82f6; 
}
.port-section-summary {
    padding: 0.75rem 1.25rem;
    font-size: 1rem; 
    font-weight: 600;
    color: #e5e7eb; 
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.port-section-summary::-webkit-details-marker { display: none; }
.port-section-summary .details-arrow { transition: transform 0.3s ease; }
.port-section-details[open] .details-arrow { transform: rotate(180deg); }

.port-section-content {
    padding: 1.25rem;
    border-top: 1px solid #4b5563;
}


.port-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #4b5563;
    padding: 0.75rem 1rem; 
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}
.port-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}
.port-card-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.port-card-info .icon {
    font-size: 1.25rem; 
    color: #93c5fd; 
}
.port-card-info .port-text {
    font-size: 0.875rem; 
    font-weight: 600;
    color: #ffffff;
}
.port-card-info .server-text {
    font-size: 0.7rem; 
    color: #9ca3af; 
    font-family: monospace;
}


.default-port-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(17, 24, 39, 0.5); 
    border: 1px solid #374151; 
    padding: 0.6rem 1rem; 
    border-radius: 0.75rem;
}
.default-port-card-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.default-port-card-info .icon {
    color: #a5b4fc; 
    font-size: 1.125rem; 
}
.default-port-card-info .server-name {
    font-weight: 500;
    font-size: 0.875rem; 
    color: #e5e7eb; 
}
.default-port-card-info .port-text {
    font-size: 0.7rem; 
    font-family: monospace;
    color: #9ca3af;
}

.port-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem; 
}
.port-actions .action-btn {
    background: rgba(75, 85, 99, 0.3);
    color: #9ca3af;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    width: 2rem; 
    height: 2rem; 
    font-size: 0.875rem; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.port-actions .action-btn:hover {
    color: #ffffff;
    background: #4f46e5;
    border-color: #4f46e5;
}
.port-actions .action-btn.delete:hover {
    background: #dc2626;
    border-color: #dc2626;
}


.light-theme .port-section-details {
    background-color: #f9fafb;
    border-color: #e5e7eb;
}
.light-theme .port-section-details[open] {
    background-color: #ffffff;
    border-color: #4f46e5;
}
.light-theme .port-section-summary { color: #1f2937; }
.light-theme .port-section-content { border-top-color: #e5e7eb; }

.light-theme .port-card {
    background: #ffffff;
    border-color: #e5e7eb;
}
.light-theme .port-card:hover { border-color: #4f46e5; }
.light-theme .port-card-info .icon { color: #3b82f6; }
.light-theme .port-card-info .port-text { color: #111827; }
.light-theme .port-card-info .server-text { color: #4b5563; }

.light-theme .default-port-card {
    background: #f3f4f6;
    border-color: #e5e7eb;
}
.light-theme .default-port-card-info .icon { color: #4f46e5; }
.light-theme .default-port-card-info .server-name { color: #1f2937; }
.light-theme .default-port-card-info .port-text { color: #4b5563; }

.light-theme .port-actions .action-btn {
    background: #e5e7eb;
    color: #4b5563;
    border-color: #d1d5db;
}
.light-theme .port-actions .action-btn:hover {
    color: #ffffff;
    background: #4f46e5;
    border-color: #4f46e5;
}
.light-theme .port-actions .action-btn.delete:hover {
    background: #dc2626;
    border-color: #dc2626;
}


.wg-instance-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #4b5563;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}
.wg-instance-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
}
.wg-instance-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.wg-instance-meta {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.3rem;
    font-family: monospace;
}
.wg-instance-display {
    font-size: 0.78rem;
    color: #6ee7b7;
    margin-top: 0.2rem;
}
.wg-instance-servers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}
.wg-instance-server-tag {
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
    border-radius: 0.375rem;
    background: rgba(75, 85, 99, 0.4);
    color: #d1d5db;
    border: 1px solid #4b5563;
}
.wg-instance-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-weight: 700;
    letter-spacing: .02em;
}
.wg-instance-badge.default {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.35);
}
.wg-instance-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.wg-instance-badge.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.light-theme .wg-instance-card {
    background: #ffffff;
    border-color: #e5e7eb;
}
.light-theme .wg-instance-card:hover { border-color: #059669; }
.light-theme .wg-instance-name { color: #111827; }
.light-theme .wg-instance-meta { color: #4b5563; }
.light-theme .wg-instance-display { color: #047857; }
.light-theme .wg-instance-server-tag {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}




.flash-success {
    animation: flash-green 1.5s ease-out;
}
@keyframes flash-green {
    0% { background-color: #10b981; box-shadow: 0 0 15px #10b981; }
 
    100% { 
        background-color: transparent; 
        box-shadow: none;
    }
}




.method-selector input:checked + .method-card {
    border-color: #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.2) !important;
    box-shadow: 0 0 0 1px #3b82f6;
}

.method-selector input[value="direct_tcp"]:checked + .method-card {
    border-color: #22c55e !important;
    background-color: rgba(34, 197, 94, 0.2) !important;
    box-shadow: 0 0 0 1px #22c55e;
}






.ssl-pro-wrapper {
    background: rgba(30, 41, 59, 0.7); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}


.ssl-pro-header {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.ssl-status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}
.status-dot.active { background-color: #10b981; color: #10b981; }
.status-dot.inactive { background-color: #ef4444; color: #ef4444; }
.status-dot.processing { background-color: #f59e0b; color: #f59e0b; animation: pulse 1s infinite; }

.status-text {
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}


.ssl-domain-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.ssl-domain-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}


.ssl-pro-input, .ssl-pro-select {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.5);
    color: #f8fafc;
    padding: 0.5rem 0.75rem 0.5rem 2.2rem; 
    border-radius: 0.5rem;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.ssl-pro-input:focus, .ssl-pro-select:focus {
    border-color: #6366f1; 
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    outline: none;
}


.btn-ssl-add {
    width: 100%;
    background: rgba(59, 130, 246, 0.15); 
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-ssl-add:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

.btn-ssl-primary {
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%); 
    color: white;
    padding: 0.65rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-ssl-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-ssl-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}
.btn-ssl-primary:hover::after {
    left: 100%;
}



.ssl-role-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.badge-main { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-sub { background: rgba(236, 72, 153, 0.15); color: #f9a8d4; border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-reseller { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }


.light-theme .ssl-pro-wrapper {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.light-theme .ssl-pro-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}
.light-theme .ssl-pro-header h3 { color: #1e293b; }
.light-theme .ssl-status-pill {
    background: #ffffff;
    border-color: #cbd5e1;
}
.light-theme .status-text { color: #475569; }
.light-theme .ssl-domain-card {
    background: #f8fafc;
    border-color: #f1f5f9;
}
.light-theme .ssl-domain-card:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.light-theme .ssl-domain-card .font-mono { color: #334155; }
.light-theme .ssl-pro-input, .light-theme .ssl-pro-select {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
}
.light-theme .bg-gray-800\/30 {
    background-color: #f8fafc; 
}





.node-drag-handle {
    cursor: grab;
    touch-action: none;
    padding: 0.5rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.node-drag-handle:hover {
    color: #9ca3af;
}

.node-drag-handle:active {
    cursor: grabbing;
}


[class~="text-[5px]"] { font-size: 5px; }
[class~="text-[9px]"] { font-size: 9px; }
[class~="text-[10px]"] { font-size: 10px; }
[class~="text-[11px]"] { font-size: 11px; }

[class~="min-h-[180px]"] { min-height: 180px; }
[class~="min-h-[260px]"] { min-height: 260px; }

[class~="max-h-[85vh]"] { max-height: 85vh; }
[class~="max-h-[90vh]"] { max-height: 90vh; }
[class~="max-h-[95vh]"] { max-height: 95vh; }
[class~="max-h-[220px]"] { max-height: 220px; }
[class~="max-h-[800px]"] { max-height: 800px; }

[class~="min-w-[20px]"] { min-width: 20px; }
[class~="min-w-[80px]"] { min-width: 80px; }
[class~="min-w-[500px]"] { min-width: 500px; }
[class~="min-w-[600px]"] { min-width: 600px; }

[class~="max-w-[200px]"] { max-width: 200px; }
[class~="max-w-[220px]"] { max-width: 220px; }
[class~="max-w-[70%]"] { max-width: 70%; }
[class~="max-w-[75%]"] { max-width: 75%; }

[class~="w-[190px]"] { width: 190px; }
[class~="h-[190px]"] { height: 190px; }
[class~="w-[220px]"] { width: 220px; }
[class~="h-[220px]"] { height: 220px; }
[class~="h-[420px]"] { height: 420px; }

[class~="shadow-[0_0_15px_rgba(59,130,246,0.5)]"] { box-shadow: 0 0 15px rgba(59,130,246,0.5); }
[class~="shadow-[0_0_10px_rgba(168,85,247,0.2)]"] { box-shadow: 0 0 10px rgba(168,85,247,0.2); }
[class~="shadow-[0_0_10px_rgba(34,197,94,0.2)]"] { box-shadow: 0 0 10px rgba(34,197,94,0.2); }

.node-card-compact {
    cursor: default !important; 
}



.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
    background-size: 180% 180%;
    transition: 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.20);
    backdrop-filter: blur(4px);
}


.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}


@keyframes pulseModern {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

.pulse {
    animation: pulseModern 1.25s infinite ease-in-out;
}







.bg-fuchsia-400 {
    background-color: #E879F9 !important;
}


.bg-indigo-500 {
    background-color: #6366F1 !important;
}


.bg-blue-400 {
    background-color: #60A5FA !important;
}


.bg-cyan-400 {
    background-color: #22D3EE !important;
}


.bg-teal-400 {
    background-color: #2DD4BF !important;
}


.bg-yellow-500 {
    background-color: #F59E0B !important;
}


.bg-violet-500 {
    background-color: #8B5CF6 !important;
}


.bg-orange-400 {
    background-color: #FB923C !important;
}


.bg-rose-500 {
    background-color: #F43F5E !important;
}


.bg-amber-600 {
    background-color: #D97706 !important;
}


.bg-amber-500 {
    background-color: #F59E0B !important;
}


.bg-pink-600 {
    background-color: #DB2777 !important;
}


.bg-red-700 {
    background-color: #B91C1C !important;
}


.bg-green-500 {
    background-color: #22C55E !important;
}
.bg-red-500 {
    background-color: #EF4444 !important;
}
.bg-gray-500 {
    background-color: #6B7280 !important;
}
.bg-gray-600 {
    background-color: #4B5563 !important;
}









.renew-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.renew-option-box {
    background-color: rgba(55, 65, 81, 0.5); 
    border: 2px solid #4b5563; 
    border-radius: 0.75rem;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.renew-option-box:hover {
    background-color: rgba(75, 85, 99, 0.8);
    border-color: #9ca3af;
}

.renew-option-box.selected {
    background-color: rgba(79, 70, 229, 0.2); 
    border-color: #6366f1; 
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.renew-option-box .month-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f3f4f6;
    display: block;
}

.renew-option-box .month-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.renew-option-box.selected .month-val {
    color: #a5b4fc; 
}

.renew-option-box.selected .month-label {
    color: #c7d2fe; 
}


.light-theme .renew-option-box {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}
.light-theme .renew-option-box:hover {
    background-color: #e5e7eb;
}
.light-theme .renew-option-box.selected {
    background-color: #eef2ff;
    border-color: #4f46e5;
}
.light-theme .renew-option-box .month-val { color: #1f2937; }
.light-theme .renew-option-box .month-label { color: #6b7280; }
.light-theme .renew-option-box.selected .month-val { color: #4338ca; }



.light-theme .bg-gradient-to-r.from-emerald-600.to-teal-600 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}
.light-theme .bg-gradient-to-r.from-emerald-600.to-teal-600 .text-sm,
.light-theme .bg-gradient-to-r.from-emerald-600.to-teal-600 .text-white {
    color: #1a1a1a;
}

.light-theme #addWgInstanceModal .bg-gray-800\/95,
.light-theme #editWgInstanceModal .bg-gray-800\/95,
.light-theme #wgInstancesPickerModal .bg-gray-800\/95 {
    background-color: #ffffff;
    border-color: #e5e7eb;
}

.light-theme #addWgInstanceModal label,
.light-theme #editWgInstanceModal label,
.light-theme #wgInstancesPickerModal label,
.light-theme #addWgInstanceModal p,
.light-theme #editWgInstanceModal p,
.light-theme #wgInstancesPickerModal p,
.light-theme #addWgInstanceModal .text-gray-300,
.light-theme #editWgInstanceModal .text-gray-300,
.light-theme #addWgInstanceModal .text-gray-400,
.light-theme #editWgInstanceModal .text-gray-400,
.light-theme #wgInstancesPickerModal .text-gray-400,
.light-theme #addWgInstanceModal .text-gray-500,
.light-theme #editWgInstanceModal .text-gray-500 {
    color: #4b5563;
}

.light-theme #addWgInstanceModal .text-gray-400.hover\:text-white:hover,
.light-theme #editWgInstanceModal .text-gray-400.hover\:text-white:hover,
.light-theme #wgInstancesPickerModal .text-gray-400.hover\:text-white:hover {
    color: #111827;
}

.light-theme #addWgInstanceModal .bg-gray-600,
.light-theme #editWgInstanceModal .bg-gray-600,
.light-theme #wgInstancesPickerModal .bg-gray-600 {
    color: #ffffff;
}

.light-theme #wgServerSelector,
.light-theme #editWgServerSelector {
    background-color: #f9fafb;
    border-color: #e5e7eb;
}

.light-theme #wgPickerInstancesList {
    background-color: transparent;
}
.light-theme #wgPickerInstancesList > label,
.light-theme #wgPickerInstancesList > div {
    background-color: #f3f4f6 !important;
    border-color: #e5e7eb !important;
}
.light-theme #wgPickerInstancesList > label:hover,
.light-theme #wgPickerInstancesList > div:hover {
    background-color: #e5e7eb !important;
}
.light-theme #wgPickerInstancesList .text-gray-200 {
    color: #1f2937;
}
.light-theme #wgPickerInstancesList .text-gray-500 {
    color: #6b7280;
}

.light-theme #wgInstancesList .text-gray-400 {
    color: #4b5563;
}

.light-theme #portsTabOpenVpnBtn.bg-blue-600,
.light-theme #portsTabWireGuardBtn.bg-green-600 {
    color: #ffffff;
}
.light-theme #portsTabOpenVpnBtn.bg-gray-700,
.light-theme #portsTabWireGuardBtn.bg-gray-700 {
    color: #374151;
}


.light-theme .protocol-item-add .server-select-card .text-gray-400,
.light-theme .protocol-item-edit .server-select-card .text-gray-400 {
    color: #6b7280;
}





.currency-selector-label {
    cursor: pointer;
    position: relative;
    display: block;
}

.currency-select-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #4b5563; 
    border-radius: 0.5rem; 
    background-color: rgba(31, 41, 55, 0.5); 
    transition: all 0.2s ease-in-out;
}

.currency-selector-label:hover .currency-select-card {
    background-color: rgba(55, 65, 81, 0.5); 
    border-color: #6b7280;
}

.currency-selector-label input {
    display: none;
}

.currency-select-card .icon-box {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(75, 85, 99, 0.3);
    color: #9ca3af;
    transition: all 0.2s;
}

.currency-selector-label input[value="TOMAN"]:checked + .currency-select-card {
    border-color: #22c55e; 
    background-color: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}
.currency-selector-label input[value="TOMAN"]:checked + .currency-select-card .icon-box {
    color: #4ade80; 
    background-color: rgba(34, 197, 94, 0.2);
}
.currency-selector-label input[value="TOMAN"]:checked + .currency-select-card .currency-text {
    color: #ffffff;
}

.currency-selector-label input[value="DOLLAR"]:checked + .currency-select-card {
    border-color: #3b82f6; 
    background-color: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}
.currency-selector-label input[value="DOLLAR"]:checked + .currency-select-card .icon-box {
    color: #60a5fa; 
    background-color: rgba(59, 130, 246, 0.2);
}
.currency-selector-label input[value="DOLLAR"]:checked + .currency-select-card .currency-text {
    color: #ffffff;
}

.light-theme .currency-select-card {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}
.light-theme .currency-selector-label:hover .currency-select-card {
    background-color: #e5e7eb;
}
.light-theme .currency-select-card .currency-text {
    color: #374151;
}
.light-theme .currency-selector-label input:checked + .currency-select-card .currency-text {
    color: #111827;
}




.allocation-selector-label {
    cursor: pointer;
    position: relative;
    display: block;
    height: 100%;
}

.allocation-select-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #4b5563; 
    border-radius: 0.5rem; 
    background-color: rgba(31, 41, 55, 0.5); 
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.allocation-selector-label:hover .allocation-select-card {
    background-color: rgba(55, 65, 81, 0.5);
    border-color: #6b7280;
}

.allocation-selector-label input {
    display: none;
}

.allocation-select-card .icon-box {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(75, 85, 99, 0.3);
    color: #9ca3af;
    transition: all 0.2s;
    flex-shrink: 0;
}


.allocation-selector-label input[value="standard"]:checked + .allocation-select-card {
    border-color: #3b82f6; 
    background-color: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}
.allocation-selector-label input[value="standard"]:checked + .allocation-select-card .icon-box {
    color: #60a5fa;
    background-color: rgba(59, 130, 246, 0.2);
}
.allocation-selector-label input[value="standard"]:checked + .allocation-select-card .text-label {
    color: #ffffff;
    font-weight: 600;
}


.allocation-selector-label input[value="credit"]:checked + .allocation-select-card {
    border-color: #a855f7; 
    background-color: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}
.allocation-selector-label input[value="credit"]:checked + .allocation-select-card .icon-box {
    color: #c084fc;
    background-color: rgba(168, 85, 247, 0.2);
}
.allocation-selector-label input[value="credit"]:checked + .allocation-select-card .text-label {
    color: #ffffff;
    font-weight: 600;
}


.light-theme .allocation-select-card {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}
.light-theme .allocation-selector-label:hover .allocation-select-card {
    background-color: #e5e7eb;
}
.light-theme .allocation-select-card .text-label {
    color: #374151;
}
.light-theme .allocation-selector-label input:checked + .allocation-select-card .text-label {
    color: #111827;
}

.text-lg1 {
    font-size: 1.450rem;
	
}

.bg-amber-900\/20 { background-color: rgba(120, 53, 15, 0.2); }
.bg-blue-900\/20 { background-color: rgba(30, 58, 138, 0.2); }
.bg-blue-900\/30 { background-color: rgba(30, 58, 138, 0.3); }
.bg-blue-900\/40 { background-color: rgba(30, 58, 138, 0.4); }
.bg-emerald-900\/40 { background-color: rgba(6, 78, 59, 0.4); }
.bg-gray-500\/50 { background-color: rgba(107, 114, 128, 0.5); }
.bg-gray-600\/50 { background-color: rgba(75, 85, 99, 0.5); }
.bg-gray-600\/90 { background-color: rgba(75, 85, 99, 0.9); }
.bg-gray-700\/20 { background-color: rgba(55, 65, 81, 0.2); }
.bg-gray-700\/30 { background-color: rgba(55, 65, 81, 0.3); }
.bg-gray-700\/40 { background-color: rgba(55, 65, 81, 0.4); }
.bg-gray-700\/50 { background-color: rgba(55, 65, 81, 0.5); }
.bg-gray-700\/60 { background-color: rgba(55, 65, 81, 0.6); }
.bg-gray-700\/70 { background-color: rgba(55, 65, 81, 0.7); }
.bg-gray-700\/80 { background-color: rgba(55, 65, 81, 0.8); }
.bg-gray-800\/30 { background-color: rgba(31, 41, 55, 0.3); }
.bg-gray-800\/50 { background-color: rgba(31, 41, 55, 0.5); }
.bg-gray-900\/20 { background-color: rgba(17, 24, 39, 0.2); }
.bg-gray-900\/30 { background-color: rgba(17, 24, 39, 0.3); }
.bg-gray-900\/40 { background-color: rgba(17, 24, 39, 0.4); }
.bg-gray-900\/50 { background-color: rgba(17, 24, 39, 0.5); }
.bg-gray-900\/60 { background-color: rgba(17, 24, 39, 0.6); }
.bg-gray-950\/40 { background-color: rgba(3, 7, 18, 0.4); }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2); }
.bg-green-500\/30 { background-color: rgba(34, 197, 94, 0.3); }
.bg-green-900\/20 { background-color: rgba(20, 83, 45, 0.2); }
.bg-green-900\/30 { background-color: rgba(20, 83, 45, 0.3); }
.bg-green-900\/40 { background-color: rgba(20, 83, 45, 0.4); }
.bg-indigo-500\/20 { background-color: rgba(99, 102, 241, 0.2); }
.bg-indigo-500\/30 { background-color: rgba(99, 102, 241, 0.3); }
.bg-indigo-900\/40 { background-color: rgba(49, 46, 129, 0.4); }
.bg-orange-500\/20 { background-color: rgba(249, 115, 22, 0.2); }
.bg-orange-500\/40 { background-color: rgba(249, 115, 22, 0.4); }
.bg-orange-900\/40 { background-color: rgba(124, 45, 18, 0.4); }
.bg-pink-900\/40 { background-color: rgba(131, 24, 67, 0.4); }
.bg-purple-500\/20 { background-color: rgba(168, 85, 247, 0.2); }
.bg-purple-900\/40 { background-color: rgba(76, 29, 149, 0.4); }
.bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1); }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-red-500\/40 { background-color: rgba(239, 68, 68, 0.4); }
.bg-red-500\/80 { background-color: rgba(239, 68, 68, 0.8); }
.bg-red-900\/20 { background-color: rgba(127, 29, 29, 0.2); }
.bg-red-900\/30 { background-color: rgba(127, 29, 29, 0.3); }
.bg-red-900\/40 { background-color: rgba(127, 29, 29, 0.4); }
.bg-teal-900\/40 { background-color: rgba(19, 78, 74, 0.4); }
.bg-yellow-900\/20 { background-color: rgba(113, 63, 18, 0.2); }
.bg-yellow-900\/30 { background-color: rgba(113, 63, 18, 0.3); }
.bg-yellow-900\/40 { background-color: rgba(113, 63, 18, 0.4); }
.border-blue-500\/30 { border-color: rgba(59, 130, 246, 0.3); }
.border-blue-500\/50 { border-color: rgba(59, 130, 246, 0.5); }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.2); }
.border-gray-600\/30 { border-color: rgba(75, 85, 99, 0.3); }
.border-gray-600\/50 { border-color: rgba(75, 85, 99, 0.5); }
.border-gray-700\/60 { border-color: rgba(55, 65, 81, 0.6); }
.border-gray-800\/50 { border-color: rgba(31, 41, 55, 0.5); }
.border-green-500\/30 { border-color: rgba(34, 197, 94, 0.3); }
.border-green-500\/50 { border-color: rgba(34, 197, 94, 0.5); }
.border-green-600\/50 { border-color: rgba(22, 163, 74, 0.5); }
.border-indigo-500\/30 { border-color: rgba(99, 102, 241, 0.3); }
.border-orange-500\/50 { border-color: rgba(249, 115, 22, 0.5); }
.border-purple-500\/30 { border-color: rgba(168, 85, 247, 0.3); }
.border-red-500\/20 { border-color: rgba(239, 68, 68, 0.2); }
.border-red-500\/50 { border-color: rgba(239, 68, 68, 0.5); }
.border-red-600\/50 { border-color: rgba(220, 38, 38, 0.5); }
.border-yellow-500\/30 { border-color: rgba(234, 179, 8, 0.3); }

.filter-card-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    background-color: rgba(var(--stat-rgb), 0.08);
    border: 1px solid rgba(var(--stat-rgb), 0.2);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.filter-card-label:hover {
    border-color: rgba(var(--stat-rgb), 0.5);
    transform: translateY(-1px);
}
.filter-card-label.filter-card-active {
    background-color: rgba(var(--stat-rgb), 0.22);
    border-color: rgb(var(--stat-rgb));
}
.light-theme .filter-card-label {
    background-color: rgba(var(--stat-rgb-light), 0.06);
    border-color: rgba(var(--stat-rgb-light), 0.25);
}
.light-theme .filter-card-label:hover {
    border-color: rgba(var(--stat-rgb-light), 0.55);
}
.light-theme .filter-card-label.filter-card-active {
    background-color: rgba(var(--stat-rgb-light), 0.14);
    border-color: rgb(var(--stat-rgb-light));
}

.filter-icon {
    font-size: 1.05rem;
    color: rgb(var(--stat-rgb));
    transition: transform 0.2s ease;
}
.filter-card-label:hover .filter-icon {
    transform: scale(1.1);
}
.light-theme .filter-icon {
    color: rgb(var(--stat-rgb-light));
}

.filter-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #d1d5db;
}
.light-theme .filter-text {
    color: #374151;
}

.user-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
}
.user-status-pill.is-ok {
    background-color: rgba(74, 222, 128, 0.14);
    color: #4ade80;
}
.user-status-pill.is-warn {
    background-color: rgba(251, 146, 60, 0.14);
    color: #fb923c;
}
.user-status-pill.is-bad {
    background-color: rgba(248, 113, 113, 0.14);
    color: #f87171;
}
.light-theme .user-status-pill.is-ok {
    background-color: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}
.light-theme .user-status-pill.is-warn {
    background-color: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}
.light-theme .user-status-pill.is-bad {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.access-section-card {
    background: rgba(17, 24, 39, 0.55);
    border: 1px solid rgba(75, 85, 99, 0.8);
    border-radius: 1rem;
    overflow: hidden;
}

.access-section-header {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.access-section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    color: white;
}

.access-section-body {
    padding: 1rem;
}

.access-action-link {
    width: 100%;
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: white;
    transition: all 0.2s ease;
    border: 1px solid rgba(75, 85, 99, 0.65);
    background: rgba(31, 41, 55, 0.78);
}

.access-action-link:hover {
    transform: translateY(-1px);
    border-color: rgba(129, 140, 248, 0.8);
    background: rgba(55, 65, 81, 0.9);
}

.access-copy-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(75, 85, 99, 0.75);
    border-radius: 0.85rem;
    padding: 0.75rem;
}

.access-copy-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #e5e7eb;
    word-break: break-all;
    font-size: 0.8rem;
}

.access-pill {
    font-size: 0.68rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.12);
}

.access-server-card {
    background: rgba(31, 41, 55, 0.62);
    border: 1px solid rgba(75, 85, 99, 0.65);
    border-radius: 0.85rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.light-theme .access-section-card {
    background: #ffffff;
    border-color: #e5e7eb;
}

.light-theme .access-section-header {
    border-color: #e5e7eb;
}

.light-theme .access-section-title {
    color: #111827;
}

.light-theme .access-action-link {
    background: #f9fafb;
    color: #111827;
    border-color: #e5e7eb;
}

.light-theme .access-action-link:hover {
    background: #f3f4f6;
    border-color: #818cf8;
}

.light-theme .access-copy-box {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.light-theme .access-copy-value {
    color: #111827;
}

.light-theme .access-server-card {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.light-theme .access-pill {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(79, 70, 229, 0.35);
    color: #4338ca;
}

.protocol-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--stat-rgb), 0.35);
    color: rgb(var(--stat-rgb));
    background: rgba(var(--stat-rgb), 0.12);
    white-space: nowrap;
}
.protocol-chip i {
    font-size: 0.62rem;
}
.light-theme .protocol-chip {
    border-color: rgba(var(--stat-rgb-light), 0.35);
    color: rgb(var(--stat-rgb-light));
    background: rgba(var(--stat-rgb-light), 0.1);
}


.audit-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
}
.audit-modal-overlay.audit-modal-open { display: flex; }
@media (min-width: 640px) {
    .audit-modal-overlay { align-items: center; padding: 1rem; }
}

.audit-modal-dialog {
    width: 100%;
    max-width: 60rem;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: #1f2937;
    border: 1px solid rgba(75, 85, 99, 0.6);
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
@media (min-width: 640px) {
    .audit-modal-dialog { border-radius: 1rem; max-height: 88vh; }
}
.light-theme .audit-modal-dialog {
    background: #ffffff;
    border-color: #e2e8f0;
}

.audit-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.5);
    flex-shrink: 0;
}
.light-theme .audit-modal-head { border-bottom-color: #e2e8f0; }

.audit-modal-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.light-theme .audit-modal-title { color: #111827; }

.audit-modal-close {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.04);
    transition: background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.audit-modal-close:hover { background-color: rgba(255, 255, 255, 0.1); color: #fff; }
.light-theme .audit-modal-close { color: #6b7280; background-color: rgba(0, 0, 0, 0.04); }
.light-theme .audit-modal-close:hover { background-color: rgba(0, 0, 0, 0.08); color: #111827; }

.audit-modal-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.5);
    flex-shrink: 0;
    background: rgba(17, 24, 39, 0.3);
}
@media (min-width: 640px) {
    .audit-modal-filters { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .audit-modal-filters { grid-template-columns: repeat(5, 1fr); align-items: end; }
}
.light-theme .audit-modal-filters { border-bottom-color: #e2e8f0; background: #f8fafc; }

.audit-modal-filters select,
.audit-modal-filters input[type="text"] {
    width: 100%;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.6);
    border-radius: 0.6rem;
    padding: 0.55rem 0.75rem;
    color: #fff;
    font-size: 0.8rem;
}
.audit-modal-filters select:focus,
.audit-modal-filters input[type="text"]:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.7);
}
.light-theme .audit-modal-filters select,
.light-theme .audit-modal-filters input[type="text"] {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
}

.audit-modal-apply-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #fff;
    border-radius: 0.6rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.audit-modal-apply-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.audit-modal-apply-btn:active { transform: translateY(0); }

.audit-modal-body {
    flex: 1;
    overflow-y: auto;
    background: rgba(17, 24, 39, 0.15);
}
.light-theme .audit-modal-body { background: #ffffff; }

.audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.audit-table thead {
    position: sticky;
    top: 0;
    background: #1f2937;
    z-index: 5;
}
.light-theme .audit-table thead { background: #f1f5f9; }
.audit-table th {
    text-align: left;
    padding: 0.6rem 0.9rem;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    font-weight: 700;
    white-space: nowrap;
}
.light-theme .audit-table th { color: #475569; }
.audit-table td {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.6);
    color: #d1d5db;
    vertical-align: top;
}
.audit-table-time {
    white-space: nowrap;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}
.light-theme .audit-table td { border-bottom-color: #e2e8f0; color: #1e293b; }
.audit-table tbody tr { transition: background-color 0.15s ease; }
.audit-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.03); }
.light-theme .audit-table tbody tr:hover { background-color: #f8fafc; }

@media (max-width: 759px) {
    .audit-table { display: block; padding: 0.75rem; }
    .audit-table thead { display: none; }
    .audit-table tbody { display: block; }
    .audit-table tr {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid rgba(75, 85, 99, 0.5);
        border-radius: 0.85rem;
        padding: 0.75rem 0.9rem;
        background: rgba(31, 41, 55, 0.4);
    }
    .audit-table tr:last-child { margin-bottom: 0; }
    .light-theme .audit-table tr { border-color: #e2e8f0; background: #f8fafc; }
    .audit-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.4rem 0;
        border: none;
        text-align: right;
    }
    .audit-table td::before {
        content: attr(data-label);
        font-size: 0.66rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #6b7280;
        text-align: left;
        flex-shrink: 0;
        padding-top: 0.1rem;
    }
    .light-theme .audit-table td::before { color: #94a3b8; }
}

.audit-modal-empty,
.audit-modal-loading {
    padding: 3rem 1rem;
    text-align: center;
    color: #6b7280;
}
.audit-modal-loading i { font-size: 1.75rem; }

.audit-modal-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid rgba(75, 85, 99, 0.5);
    flex-shrink: 0;
}
.light-theme .audit-modal-foot { border-top-color: #e2e8f0; }

.light-theme .audit-table .bg-green-900\/40 { background-color: #dcfce7 !important; color: #166534 !important; border-color: #86efac !important; }
.light-theme .audit-table .bg-red-900\/40 { background-color: #fee2e2 !important; color: #991b1b !important; border-color: #fecaca !important; }
.light-theme .audit-table .bg-blue-900\/40 { background-color: #dbeafe !important; color: #1e40af !important; border-color: #bfdbfe !important; }
.light-theme .audit-table .bg-yellow-900\/40 { background-color: #fef9c3 !important; color: #854d0e !important; border-color: #fde047 !important; }
.light-theme .audit-table .bg-purple-900\/40 { background-color: #f3e8ff !important; color: #6b21a5 !important; border-color: #d8b4fe !important; }
.light-theme .audit-table .bg-emerald-900\/40 { background-color: #d1fae5 !important; color: #065f46 !important; border-color: #a7f3d0 !important; }
.light-theme .audit-table .bg-indigo-900\/40 { background-color: #e0e7ff !important; color: #3730a3 !important; border-color: #c7d2fe !important; }
.light-theme .audit-table .bg-orange-900\/40 { background-color: #ffedd5 !important; color: #9a3412 !important; border-color: #fed7aa !important; }
.light-theme .audit-table .bg-teal-900\/40 { background-color: #ccfbf1 !important; color: #115e59 !important; border-color: #5eead4 !important; }
.light-theme .audit-table .bg-pink-900\/40 { background-color: #fce7f3 !important; color: #9d174d !important; border-color: #f9a8d4 !important; }
.light-theme .audit-table .bg-gray-700\/50 { background-color: #f1f5f9 !important; color: #334155 !important; border-color: #cbd5e1 !important; }

.flatpickr-calendar {
    border-radius: 0.85rem !important;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(75, 85, 99, 0.5) !important;
    font-family: 'Vazirmatn', 'Segoe UI', ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0.85rem !important;
}
.light-theme .flatpickr-calendar {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.18) !important;
}
.light-theme .flatpickr-calendar.arrowTop:before,
.light-theme .flatpickr-calendar.arrowTop:after {
    border-bottom-color: #ffffff !important;
}
.light-theme .flatpickr-calendar.arrowBottom:before,
.light-theme .flatpickr-calendar.arrowBottom:after {
    border-top-color: #ffffff !important;
}
.light-theme .flatpickr-months .flatpickr-month {
    background: transparent !important;
    color: #1e293b !important;
    fill: #1e293b !important;
}
.light-theme .flatpickr-current-month {
    color: #1e293b !important;
}
.light-theme .flatpickr-current-month input.cur-year {
    color: #1e293b !important;
}
.light-theme .flatpickr-current-month .flatpickr-monthDropdown-months {
    color: #1e293b !important;
    background: transparent !important;
}
.light-theme .flatpickr-prev-month,
.light-theme .flatpickr-next-month {
    fill: #64748b !important;
    color: #64748b !important;
}
.light-theme .flatpickr-prev-month:hover,
.light-theme .flatpickr-next-month:hover {
    fill: #1e293b !important;
    color: #1e293b !important;
}
.light-theme .flatpickr-prev-month svg,
.light-theme .flatpickr-next-month svg {
    fill: inherit !important;
}
.light-theme span.flatpickr-weekday {
    background: transparent !important;
    color: #64748b !important;
    font-weight: 600;
}
.light-theme .flatpickr-day {
    color: #334155 !important;
}
.light-theme .flatpickr-day.today {
    border-color: #94a3b8 !important;
}
.light-theme .flatpickr-day:hover,
.light-theme .flatpickr-day:focus {
    background: #f1f5f9 !important;
    border-color: #f1f5f9 !important;
}
.light-theme .flatpickr-day.flatpickr-disabled,
.light-theme .flatpickr-day.flatpickr-disabled:hover,
.light-theme .flatpickr-day.prevMonthDay,
.light-theme .flatpickr-day.nextMonthDay {
    color: #cbd5e1 !important;
}
.light-theme .numInputWrapper span.arrowUp:after {
    border-bottom-color: #64748b !important;
}
.light-theme .numInputWrapper span.arrowDown:after {
    border-top-color: #64748b !important;
}
.light-theme .numInputWrapper:hover {
    background: #f1f5f9 !important;
}
.flatpickr-day {
    border-radius: 0.5rem !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    height: 2.15rem !important;
    line-height: 2.15rem !important;
    max-width: 2.15rem !important;
    margin: 1px !important;
}
.flatpickr-weekday {
    font-size: 0.74rem !important;
    font-weight: 600 !important;
}
.flatpickr-current-month {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
}
.flatpickr-current-month input.cur-year {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
}
.flatpickr-day.today {
    border-color: #6b7280 !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}
.flatpickr-day.inRange {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(37, 99, 235, 0.18) !important;
    box-shadow: -5px 0 0 rgba(37, 99, 235, 0.18), 5px 0 0 rgba(37, 99, 235, 0.18) !important;
    color: #bfdbfe !important;
}
.light-theme .flatpickr-day.inRange {
    color: #1e3a8a !important;
}

.jdp-alt-input {
    cursor: pointer;
    text-align: right;
}
.jdp-alt-input[dir="ltr"] {
    text-align: left;
}
.jdp-popup {
    position: fixed;
    z-index: 9999;
    width: 300px;
    background: #1f2937;
    border: 1px solid rgba(75, 85, 99, 0.6);
    border-radius: 0.85rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
    padding: 0.85rem;
    font-family: 'Vazirmatn', 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
    direction: rtl;
}
.light-theme .jdp-popup {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.2);
}
.jdp-popup-ltr {
    direction: ltr;
}
.jdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}
.jdp-title-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.jdp-title-btn {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f1f5f9;
    background: transparent;
    padding: 0.2rem 0.5rem;
    border-radius: 0.45rem;
    transition: background-color 0.15s ease;
}
.jdp-title-btn:hover { background: rgba(255, 255, 255, 0.08); }
.light-theme .jdp-title-btn { color: #1e293b; }
.light-theme .jdp-title-btn:hover { background: rgba(0, 0, 0, 0.05); }
.jdp-year-range-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f1f5f9;
}
.light-theme .jdp-year-range-label { color: #1e293b; }
.jdp-nav {
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.04);
    transition: background-color 0.15s ease, color 0.15s ease;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.jdp-nav:hover { background: rgba(255, 255, 255, 0.1); color: #f1f5f9; }
.light-theme .jdp-nav { color: #64748b; background: rgba(0, 0, 0, 0.04); }
.light-theme .jdp-nav:hover { background: rgba(0, 0, 0, 0.08); color: #1e293b; }
.jdp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.3rem;
}
.jdp-weekdays span {
    font-size: 0.74rem;
    font-weight: 700;
    color: #6b7280;
    padding: 0.2rem 0;
}
.jdp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.jdp-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e5e7eb;
    background: transparent;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.jdp-day:not(.jdp-day-empty):hover {
    background: rgba(255, 255, 255, 0.08);
}
.light-theme .jdp-day { color: #334155; }
.light-theme .jdp-day:not(.jdp-day-empty):hover { background: #f1f5f9; }
.jdp-day-empty { visibility: hidden; pointer-events: none; }
.jdp-day-today { border-color: #6b7280; }
.light-theme .jdp-day-today { border-color: #94a3b8; }
.jdp-day-selected,
.jdp-day-selected:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700;
}
.jdp-day-inrange {
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
}
.light-theme .jdp-day-inrange {
    background: #dbeafe;
    color: #1e3a8a;
}
.jdp-month-grid,
.jdp-year-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}
.jdp-month-cell,
.jdp-year-cell {
    padding: 0.6rem 0.3rem;
    border-radius: 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.jdp-month-cell:hover,
.jdp-year-cell:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}
.light-theme .jdp-month-cell,
.light-theme .jdp-year-cell {
    color: #334155;
    background: rgba(0, 0, 0, 0.03);
}
.light-theme .jdp-month-cell:hover,
.light-theme .jdp-year-cell:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.jdp-month-cell-active,
.jdp-year-cell-active {
    background: #2563eb !important;
    color: #ffffff !important;
}
.jdp-year-cell-current {
    box-shadow: inset 0 0 0 1.5px #6b7280;
}
.light-theme .jdp-year-cell-current {
    box-shadow: inset 0 0 0 1.5px #94a3b8;
}
.jdp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(75, 85, 99, 0.4);
}
.light-theme .jdp-footer { border-top-color: #e2e8f0; }
.jdp-today-btn,
.jdp-clear-btn {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease;
}
.jdp-today-btn {
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.12);
}
.jdp-today-btn:hover { background: rgba(96, 165, 250, 0.22); }
.light-theme .jdp-today-btn {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}
.light-theme .jdp-today-btn:hover { background: rgba(37, 99, 235, 0.16); }
.jdp-clear-btn {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.1);
}
.jdp-clear-btn:hover { background: rgba(248, 113, 113, 0.2); }
.light-theme .jdp-clear-btn {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}
.light-theme .jdp-clear-btn:hover { background: rgba(220, 38, 38, 0.16); }
