@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700&display=swap');



:root {
    --glass-bg: rgba(15, 20, 35, 0.65);
    --glass-bg-hover: rgba(15, 20, 35, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    --blur-amount: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #111827;
    background-image:
        radial-gradient(at 50% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    scroll-behavior: smooth;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


input,
textarea,
select {
    user-select: text !important;
    -webkit-user-select: text !important;
}

[lang="en"],
[dir="ltr"] {
    font-family: 'Inter', sans-serif;
}


.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount)) saturate(120%);
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(120%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-effect:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.15);
}


.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}


.btn-glow {
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-glow:active {
    transform: translateY(0);
}


.gradient-border {
    position: relative;
    border-radius: 0.5rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #353780, #562b80, #1d3f78);
    border-radius: 0.6rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}


.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

@keyframes notify-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.notify-pulse {
    animation: notify-pulse 1s infinite;
}


.language-switch {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.language-switch:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.language-switch i {
    font-size: 24px;
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }

    header>.flex {
        width: 100%;
        justify-content: center;
    }

    .notification-badge {
        top: -4px;
        right: -4px;
    }

    .card-hover:hover {
        transform: translateY(-3px);
    }
}


@media (max-width: 640px) {
    body {
        padding: 0.5rem;
    }

    .py-6 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .px-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    h1.text-2xl {
        font-size: 1.25rem;
    }

    h2.text-2xl,
    h2.text-xl {
        font-size: 1.125rem;
    }

    .mb-8 {
        margin-bottom: 1rem;
    }

    .grid.gap-6,
    .grid.gap-4 {
        gap: 0.75rem;
    }

    header .flex.items-center.space-x-4.space-x-reverse {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    header .glass-effect.rounded-full.p-2.px-4 {
        width: 100%;
        justify-content: center;
    }

    .flex.space-x-3.space-x-reverse {
        flex-direction: column;
        gap: 0.5rem;
    }

    .flex.space-x-3.space-x-reverse a {
        width: 100%;
        justify-content: center;
    }

    .language-switch {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}


@media (max-width: 480px) {
    .card-hover:hover {
        transform: none;
    }

    .glass-effect.rounded-xl.p-4,
    .glass-effect.rounded-xl.p-5,
    .glass-effect.rounded-xl.p-6 {
        padding: 0.75rem;
    }
}


.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
}

.toast {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}


:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}
.notification-badge {
            position: absolute;
            top: -6px;
            right: -6px;
            min-width: 18px;
            height: 18px;
            border-radius: 9px;
            background-color: #ef4444;
            color: white;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
        }
        @keyframes notify-pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        .notify-pulse {
            animation: notify-pulse 1s infinite;
        }
        .notification-alert {
            position: fixed;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(17, 24, 39, 0.9);
            color: white;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            transition: top 0.5s ease-in-out;
        }
        .notification-alert.show {
            top: 20px;
        }
        
        #custom-domain-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 9999;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            background: rgba(0, 0, 0, 0.6);
            animation: fadeIn 0.3s ease-in-out;
        }
        #custom-domain-modal.show {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        .modal-content {
            background: rgba(17, 24, 39, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            animation: slideUp 0.3s ease-in-out;
            position: relative;
        }
        .modal-header {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
            padding: 20px 30px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 20px 20px 0 0;
        }
        .modal-close {
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid rgba(239, 68, 68, 0.5);
            color: #ef4444;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        .modal-close:hover {
            background: rgba(239, 68, 68, 0.4);
            transform: rotate(90deg);
        }
        .modal-body {
            padding: 30px;
        }
        
        #detailed-stats-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 9998;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            background: rgba(0, 0, 0, 0.6);
            animation: fadeIn 0.3s ease-in-out;
            overflow-y: auto;
        }
        #detailed-stats-modal.show {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 20px;
        }
        #detailed-stats-modal .modal-content {
            max-width: 1200px;
            width: 100%;
            margin-top: 20px;
            margin-bottom: 20px;
        }
        .status-badge-modal {
            display: inline-flex;
            align-items: center;
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 600;
            margin: 5px;
        }
        .status-active {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            border: 1px solid #10b981;
        }
        .status-pending {
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
            border: 1px solid #fbbf24;
        }
        .status-inactive {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
            border: 1px solid #ef4444;
        }
        .code-block-modal {
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 12px;
            padding: 20px;
            position: relative;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            color: #e2e8f0;
            direction: ltr;
            text-align: left;
            overflow-x: auto;
            margin: 15px 0;
        }
        .copy-btn-modal {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #3b82f6;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 8px 16px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .copy-btn-modal:hover {
            background: #2563eb;
            transform: translateY(-2px);
        }
        .copy-btn-modal.copied {
            background: #10b981;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes slideUp {
            from { 
                opacity: 0;
                transform: translateY(30px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }
        .modal-content::-webkit-scrollbar {
            width: 8px;
        }
        .modal-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }
        .modal-content::-webkit-scrollbar-thumb {
            background: rgba(99, 102, 241, 0.5);
            border-radius: 10px;
        }
        .modal-content::-webkit-scrollbar-thumb:hover {
            background: rgba(99, 102, 241, 0.7);
        }
        #countdown-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(15px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10000;
        }
        #countdown-box {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 50px;
            border-radius: 25px;
            text-align: center;
            box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
        }
        #countdown-timer {
            font-size: 80px;
            font-weight: bold;
            color: white;
            margin: 25px 0;
            text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }
        .pulse-animation {
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(1.05); }
        }
        
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10001;
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-width: 400px;
        }
        .toast {
            background: rgba(17, 24, 39, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 16px 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideInRight 0.3s ease-in-out;
            min-width: 300px;
        }
        .toast.success {
            border-left: 4px solid #10b981;
        }
        .toast.error {
            border-left: 4px solid #ef4444;
        }
        .toast.info {
            border-left: 4px solid #3b82f6;
        }
        .toast-icon {
            font-size: 24px;
            flex-shrink: 0;
        }
        .toast.success .toast-icon {
            color: #10b981;
        }
        .toast.error .toast-icon {
            color: #ef4444;
        }
        .toast.info .toast-icon {
            color: #3b82f6;
        }
        .toast-content {
            flex: 1;
        }
        .toast-title {
            font-weight: 600;
            color: white;
            margin-bottom: 4px;
        }
        .toast-message {
            font-size: 14px;
            color: #9ca3af;
        }
        .toast-close {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 6px;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #9ca3af;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .toast-close:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }
        @keyframes slideInRight {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        @keyframes slideOutRight {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }
        .toast.removing {
            animation: slideOutRight 0.3s ease-in-out;
        }
        body {
            overflow-x: hidden;
        }
        .tooltip-container {
                            position: relative;
                            direction: ltr;
                            z-index: 100;
                        }
                        .custom-tooltip {
                            position: absolute;
                            top: -35px;
                            left: 50%;
                            background-color: rgba(0, 0, 0, 0.8);
                            color: #fff;
                            padding: 5px 10px;
                            border-radius: 4px;
                            white-space: nowrap;
                            z-index: 100;
                            opacity: 0;
                            pointer-events: none;
                            transition: opacity 0.1s ease-in-out;
                            overflow: hidden;
                        }
                        .tooltip-container:hover .custom-tooltip {
                            opacity: 1;
                            pointer-events: auto;
                        }
                        