@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;500;800&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --transition: all 0.2s ease;
    --bg-color: #e9c46a;
    --contrast-color: #fcfcff;

    --time: 2000ms;
    --animation-settings: var(--time) ease infinite;
}

/* ===== RESET & BASE STYLES ===== */
html {
    margin: 0;
    padding: 0;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body,
input,
button,
select,
textarea {
    font-family: 'Vazirmatn';
}

body {
    font-family: 'Vazirmatn';
    color: #1f2937;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
/* Duplicate shimmer animation removed - using the one below */

@keyframes elegant-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
}

/* ===== LOGIN STYLES ===== */

/* Recovery Options Styles */
.recovery-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.option-card:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.option-card.active {
    background: rgba(37, 99, 235, 0.2);
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.option-icon {
    font-size: 24px;
    margin-left: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.option-card.active .option-icon {
    background: rgba(37, 99, 235, 0.4);
    transform: scale(1.1);
}

.option-content h3 {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.option-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.4;
}

/* Recovery Forms Styles */
.recovery-forms {
    position: relative;
    margin: 20px 0;
}

.recovery-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.recovery-form.active {
    display: block;
}

/* Enhanced Form Actions */
.secondary-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-link {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    margin-left: 8px;
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* User Info Styles */
.user-info {
    margin: 25px 0;
}

.info-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.info-icon {
    font-size: 24px;
    margin-left: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
}

/* Token Help Section Styles */
.help-section {
    margin: 25px 0;
    padding: 20px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.help-section h4 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-section h4::before {
    content: "🤖";
    font-size: 18px;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-list li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    padding-right: 20px;
}

.help-list li::before {
    content: "▶";
    position: absolute;
    right: 0;
    color: #4a90e2;
    font-size: 12px;
}

/* Enhanced Footer */
.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.footer-link {
    color: #4a90e2;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: #ffffff;
    border-bottom-color: #4a90e2;
}

/* Responsive Design for Recovery Page */
@media (max-width: 768px) {
    .recovery-options {
        gap: 12px;
    }

    .option-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .option-icon {
        margin: 0 0 10px 0;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .secondary-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-link,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .sidebar {
        width: 100%;
        max-width: 300px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }


    .content-area {
        margin-right: 0;
        padding: 15px;
    }

    .stylish-logout-btn {
        display: flex;
    }

    .menu-link {
        padding: 12px 20px;
        margin-left: 8px;
    }

    .menu-icon {
        font-size: 16px;
        margin-left: 10px;
        width: 20px;
    }

    .logout-link {
        padding: 10px 14px;
    }

    .sidebar-overlay.active {
        opacity: 1;
    }

    .sidebar-overlay {
        display: block !important;
    }

    .main-header {
        height: 50px;
    }

    .header-content {
        padding: 0 15px;
    }

    .header-title {
        font-size: 14px;
    }

    .header-menu {
        display: none;
    }

    .header-logout-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .manage-container .content {
        padding: 5px !important;
    }

    .bot-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bot-table {
        min-width: 380px;
    }

    .bot-avatar {
        width: 32px;
        height: 32px;
    }

    .action-buttons {
        gap: 3px;
    }

    .btn-action {
        width: 26px;
        height: 26px;
        font-size: 9px;
    }

    .expiry-info {
        font-size: 9px;
        padding: 0;
        min-width: auto;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .bot-table th,
    .bot-table td {
        padding: 10px 8px;
    }

    .bot-username {
        font-size: 12px;
    }

    .status-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .footer-info {
        gap: 15px;
    }

    .footer-version,
    .footer-copyright {
        font-size: 11px;
    }

    .addbot-container {
        padding: 16px;
    }

    .header-content {
        flex-direction: row;
        text-align: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 20px;
    }

    .dashboard-container {
        padding: 1rem;
    }

    .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }

    .payment-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .payment-image {
        width: 150px;
        height: 150px;
    }

    .payment-title {
        font-size: 1.5rem;
    }

    .code-container {
        padding: 1rem;
    }

    .code-value {
        font-size: 1rem;
    }

    .steps-container {
        padding: 1.5rem;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .denied_header .denied_icon {
        font-size: 3rem;
    }

    .denied_header h1 {
        font-size: 1.5rem;
    }

    .denied_card {
        padding: 20px;
    }

    .denied_actions {
        flex-direction: column;
    }

    .denied_btn {
        width: 100%;
        justify-content: center;
    }

    .denied_reasons li {
        font-size: 0.9rem;
    }

    .logo-circle {
        width: 80px;
        height: 80px;
    }

    .logo-circle::before {
        width: 100px;
        height: 100px;
    }

    .logo-circle i {
        font-size: 2.5rem;
    }

    .loading-logo h2 {
        font-size: 2rem;
    }

    .loading-progress {
        width: 250px;
    }

    .loading-spinner {
        width: 100px;
        height: 100px;
    }

    .spinner-orbit:nth-child(1) {
        width: 100px;
        height: 100px;
    }

    .spinner-orbit:nth-child(2) {
        width: 70px;
        height: 70px;
        top: 15px;
        left: 15px;
    }

    .spinner-orbit:nth-child(3) {
        width: 40px;
        height: 40px;
        top: 30px;
        left: 30px;
    }

    .loading-wave span {
        height: 30px;
    }

    .alert {
        right: 10px;
        left: 10px;
        bottom: 10px;
        max-width: none;
    }

    .search-box {
        max-width: none;
    }

    .page-table {
        font-size: 12px;
    }

    .page-table th,
    .page-table td {
        padding: 10px 8px;
    }

    .pagination-container {
        flex-direction: column;
        gap: 15px;
    }

    .page-title {
        font-size: 22px;
    }

    .search-input {
        width: 88% !important;

    }

    .bot-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }

    .bot-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

    .bot-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .bot-info {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
    }

    .bot-card .bot-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        overflow: hidden;
        flex-shrink: 0;
    }

    .bot-card .bot-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .bot-details h3 {
        margin: 0 0 8px 0;
        font-size: 18px;
        font-weight: 600;
        color: #2d3748;
    }

    .bot-card .status-badge {
        font-size: 14px;
        padding: 4px 12px;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .bot-card .action-buttons {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }

    .bot-card .btn-action {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
    }

    .bot-card .btn-edit {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .bot-card .btn-settings {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        color: white;
    }

    .bot-card .btn-action:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .bot-card-body {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 16px;
    }

    .bot-meta {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
    }

    .meta-item i {
        color: #718096;
        width: 16px;
        flex-shrink: 0;
    }

    .meta-label {
        color: #718096;
        font-weight: 500;
        min-width: 80px;
    }

    .meta-value {
        color: #2d3748;
        font-weight: 600;
    }

    /* Filter adjustments for mobile */
    .bot-filters {
        padding: 0 16px;
        margin-bottom: 20px;
    }

    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .search-input,
    .filter-select {
        width: 100%;
        padding: 12px 16px;
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
    }

    .tabs .btn_actions {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
        margin: 0;
    }

    .stat-box {
        padding: 16px;
        min-height: 100px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .stat-box:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        margin: 0 auto;
    }

    .stat-icon svg {
        width: 22px;
        height: 22px;
    }

    .stat-content {
        align-items: center;
        gap: 4px;
    }

    .stat-number {
        font-size: 1.5rem;
        font-weight: 800;
        margin-bottom: 2px;
    }

    .stat-label {
        font-size: 0.75rem;
        font-weight: 600;
        opacity: 0.8;
        line-height: 1.2;
    }

    .tabs .info_data {
        font-size: 12px !important;
        padding: 10px 10px !important;
    }


    .mobile-view {
        display: block !important;
    }

    .user-card {
        display: block !important;
    }

    .desktop-view {
        display: none;
    }

    .agent_bot .data span {
        display: block;
    }

    .agent_bot .data {
        margin: 4px 0 !important;
    }

    .agent_bot {
        padding: 10 !important;
    }

    .manage-container .tabs {
        padding: 10px !important;
    }

    #user-card {
        display: block !important;
    }

    .table-container {
        background-color: transparent;
    }

    .btn-admin,
    .back-page {
        padding: 6px 8px !important;
    }

    .page-header h3,
    .manage-header h3 {
        font-size: 13px !important;
    }

    .bot-card {
        margin: 10px 0;
    }

    .page-table {
        display: none;
    }

    .card-list {
        display: block !important;
    }

    .table-container {
        background-color: transparent !important;
    }

    .card {
        background-color: #fff;
    }

    .actions {
        flex-direction: column;
    }

    .actions button {
        margin: 0 !important;
    }

    .btn-view {
        background: #23a7ff;
        color: #0369a1;
    }

    .btn-delete {
        background: #cc5b5b !important;
    }

    .input-wrapper-size-3 {
        flex-direction: column;
    }
}

.card-list {
    display: none;
}

.card {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
}

#user-card {
    display: none;
    ;
}

.user-card {
    display: none;
}

.mobile-view {
    display: none;

}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.boxlogin {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin: 20px auto;
}

.boxlogin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    border-radius: 24px 24px 0 0;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.boxlogin .title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

/* Alert Styles - Modern 2025 Design */
.alert {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: 24px;
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.12),
        0 16px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 10000;
    animation: alertSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
    direction: rtl;
}

.alert-error {
    background: #F44336;
    border-top: 3px solid #ef4444;
}

.alert-success {
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.95) 0%,
            rgba(22, 163, 74, 0.95) 50%,
            rgba(21, 128, 61, 0.95) 100%);
    border-top: 3px solid #22c55e;
    box-shadow:
        0 32px 64px rgba(34, 197, 94, 0.25),
        0 16px 32px rgba(34, 197, 94, 0.15),
        0 0 0 1px rgba(34, 197, 94, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.alert-warning {
    background: linear-gradient(135deg,
            rgba(245, 158, 11, 0.95) 0%,
            rgba(217, 119, 6, 0.95) 50%,
            rgba(180, 83, 9, 0.95) 100%);
    border-top: 3px solid #f59e0b;
    box-shadow:
        0 32px 64px rgba(245, 158, 11, 0.25),
        0 16px 32px rgba(245, 158, 11, 0.15),
        0 0 0 1px rgba(245, 158, 11, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.alert-info {
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.95) 0%,
            rgba(37, 99, 235, 0.95) 50%,
            rgba(29, 78, 216, 0.95) 100%);
    border-top: 3px solid #3b82f6;
    box-shadow:
        0 32px 64px rgba(59, 130, 246, 0.25),
        0 16px 32px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.alert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 15px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-message {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.alert::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2),
            transparent 50%,
            rgba(255, 255, 255, 0.1));
    border-radius: 21px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.alert:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.16),
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.alert:hover::after {
    opacity: 1;
}

.alert.fade-out {
    animation: alertSlideOut 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

/* Alert Animations */
@keyframes alertSlideIn {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(0.9);
        filter: blur(4px);
    }

    60% {
        opacity: 0.8;
        transform: translateY(-8px) scale(1.02);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes alertSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translateY(100%) scale(0.95);
        filter: blur(2px);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .alert {
        bottom: 16px;
        right: 16px;
        left: 16px;
        border-radius: 16px;
    }

    .alert-header {
        padding: 16px 20px 12px;
    }

    .alert-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .alert-title {
        font-size: 15px;
    }

    .alert-message {
        font-size: 14px;
    }

    .alert-close {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Form Styles */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    z-index: 2;
    pointer-events: auto;
    font-size: 12px;
    font-weight: 500;
    background: #f8fafc;
    width: auto;
    height: auto;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 4px 6px;
    border: 1px solid #e2e8f0;
    user-select: none;
}

.input-wrapper:focus-within .input-icon {
    color: #2563eb;
    background: #dbeafe;
    border-color: #2563eb;
    transform: translateY(-50%);
    box-shadow: none;
}

.input-icon:hover {
    color: #2563eb;
    background: #dbeafe;
    border-color: #2563eb;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Vazirmatn', sans-serif;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: right;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
    font-weight: 500;
}

.form-input::placeholder {
    color: #94a3b8;
    font-size: 14px;
    opacity: 1;
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: #0f172a;
}

.form-input:focus::placeholder {
    color: #cbd5e1;
    transform: translateY(-2px);
}

.form-input:focus~.input-icon {
    color: #2563eb;
}

/* Remove floating label styles since we're using placeholders */
.form-label {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    width: 100%;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Duplicate .btn-secondary removed - consolidated above */

.btn-link {
    background: transparent;
    color: #64748b;
    flex: 1;
    margin-right: 8px;
}

.btn-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.secondary-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Password Requirements */
.password-requirements {
    margin: 30px 0;
    padding: 0;
    background: none;
    border: none;
    animation: slideDown 0.6s ease-out;
}

.requirements-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    position: relative;
    padding-left: 16px;
}

.requirements-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #00e676, #00c853);
    border-radius: 2px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    margin: 12px 0;
    background: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    direction: rtl;
    text-align: right;
}

.req-icon {
    display: none;
}

.req-text {
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s ease;
    letter-spacing: 0.025em;
    position: relative;
    padding-left: 20px;
}

.req-text::before {
    display: none;
}

.requirement-item.valid {
    border-left: none;
    transform: none;
}

.requirement-item.valid .req-text {
    color: #00e676;
    font-weight: 600;
}

.requirement-item.valid .req-text::before {
    background: #00e676;
    transform: translateY(-50%) scale(1.2);
}

.requirement-item.invalid {
    border-left: none;
    opacity: 0.7;
}

.requirement-item.invalid .req-text {
    color: #ff5252;
}

.requirement-item.invalid .req-text::before {
    background: #ff5252;
    opacity: 0.6;
}

/* Token Validation Styles */
.token-validation {
    margin: 30px 0;
    padding: 0;
    background: none;
    border: none;
    animation: slideDown 0.6s ease-out;
}

.validation-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    margin: 12px 0;
    background: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    direction: rtl;
    text-align: right;
}

.validation-item.valid {
    border-left: none;
    transform: none;
}

.validation-item.valid .validation-text {
    color: #00e676;
    font-weight: 600;
}

.validation-item.valid .validation-text::before {
    background: #00e676;
    transform: translateY(-50%) scale(1.2);
}

.validation-item.invalid {
    border-left: none;
    opacity: 0.7;
}

.validation-item.invalid .validation-text {
    color: #ff5252;
}

.validation-item.invalid .validation-text::before {
    background: #ff5252;
    opacity: 0.6;
}

.validation-item .req-icon {
    display: none;
}

.validation-item .req-text {
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s ease;
    letter-spacing: 0.025em;
    position: relative;
    padding-left: 20px;
}

.validation-item .validation-text::before {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}





.requirements-list li {
    font-size: 13px;
    color: #64748b;
    padding: 4px 0;
    position: relative;
    padding-right: 20px;
}

.requirements-list li::before {
    content: '•';
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    right: 0;
}

/* Footer */
.login-footer {
    margin-top: 32px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.footer-text {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.footer-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Legacy styles for backward compatibility */
.btnpanel {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    flex-direction: column;
}

.button_submit {
    all: unset;
    width: 40%;
    border-radius: 6px;
    background: #2d76e1;
    padding: 5px;
    text-align: center;
    cursor: pointer;
}

.button_submit:hover {
    background: #fff;
    color: #2d76e1;
}

.button_register {
    margin: 30px 10px !important;
    cursor: pointer;
    all: unset;
    width: 40%;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
}

.button_forget {
    margin: 30px 20px !important;
    padding: 100px;
    cursor: pointer;
    all: unset;
    width: 40%;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
}

.btn_reg_pass {
    margin-top: 10px;
}

.managelogin {
    padding: 10px;
}

/* ===== MAIN LAYOUT ===== */
.main-container {
    display: flex;
    flex: 1;
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
}

.content-area {
    flex: 1;
    margin-right: 280px;
    padding: 0 20px 0 20px;
    background: linear-gradient(2deg, #d8d8d8, #d3d3d36b);
    overflow-y: auto;
    width: calc(100% - 280px);
    transition: margin-left 0.3s ease;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    width: 280px;
    background: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 7px rgb(209 209 209 / 40%);
    position: fixed;
    height: -webkit-fill-available;
    right: 0;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    overflow-y: auto;
}


.sidebar-menu {
    flex: 1;
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 8px;
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #000;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 16px 16px 0;
    margin-left: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.2), transparent);
    transition: left 0.5s ease;
}

.menu-link:hover::before {
    left: 100%;
}

.menu-link:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.1) 100%);
    color: #4facfe;
    transform: translateX(-6px);
    box-shadow: 0 6px 25px rgba(79, 172, 254, 0.3);
}

.menu-link.active {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.3) 0%, rgba(0, 242, 254, 0.2) 100%);
    color: #4facfe;
    border-left: 4px solid #4facfe;
    box-shadow: 0 6px 30px rgba(79, 172, 254, 0.4);
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.menu-icon {
    width: 22px;
    height: 22px;
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(79, 172, 254, 0.3));
    transition: all 0.3s ease;
    font-size: 18px;
    text-align: center;
    opacity: 0.8;
}

.menu-link:hover .menu-icon,
.menu-link.active .menu-icon {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(79, 172, 254, 0.5));
}

.menu-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 8px 5px 0 0;
    border-radius: 0 16px 16px 0;
    border-left: 2px solid transparent;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(-10px);
}

.submenu.active {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    border-left: 2px solid rgba(79, 172, 254, 0.3);
}

.submenu-item {
    padding: 14px 24px 14px 48px;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    border-radius: 0 12px 12px 0;
    margin: 4px 8px 4px 0;
    letter-spacing: 0.3px;
}

.submenu-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: rgba(79, 172, 254, 0.6);
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.submenu-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 12px 12px 0;
}

.submenu-item:hover {
    color: #4facfe;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.08) 100%);
    transform: translateX(-4px);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
    text-shadow: 0 0 8px rgba(79, 172, 254, 0.4);
}

.submenu-item:hover::before {
    background: #4facfe;
    opacity: 1;
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.6);
}

.submenu-item:hover::after {
    opacity: 1;
}

.submenu-item:active {
    transform: translateX(-2px) scale(0.98);
}

.submenu-arrow {
    margin-right: auto;
    font-size: 14px;
    color: #000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.menu-link:hover .submenu-arrow {
    color: #4facfe;
    background: rgba(79, 172, 254, 0.2);
    border-color: rgba(79, 172, 254, 0.4);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
    transform: rotate(180deg) scale(1.1);
}

.submenu.active+.menu-link .submenu-arrow,
.menu-item:has(.submenu.active) .submenu-arrow {
    transform: rotate(180deg) scale(1.1);
    color: #4facfe;
    background: rgba(79, 172, 254, 0.25);
    border-color: rgba(79, 172, 254, 0.5);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(79, 172, 254, 0.2);
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.05) 100%);
    margin-top: auto;
}

.logout-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    border: 1px solid rgba(255, 71, 87, 0.3);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
    position: relative;
    overflow: hidden;
}

.logout-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.logout-link:hover::before {
    left: 100%;
}

.logout-link:hover {
    background: linear-gradient(135deg, #ff3742 0%, #c44569 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    position: fixed;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    z-index: 1001;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    border-radius: 16px;
    width: 52px;
    height: 52px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 52, 96, 0.8) 100%);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 260px;
        transform: translateX(100%);
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content-area {
        margin-right: 0;
        padding: 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.right-positioned {
        right: -15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .stylish-logout-btn {
        display: flex;
    }

    .tabs .detail {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .tabcontent {
        padding: 10px !important;
    }

    .content-area {
        margin-left: 0;
        padding-top: 80px;
    }

    .header-menu-text {
        display: none;
    }

    .header-menu-link {
        padding: 12px 8px;
    }

    .header-menu-icon {
        margin-left: 0;
    }

    .header-submenu {
        min-width: 150px;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        min-width: auto;
    }

    .bot-table-container {
        overflow-x: auto;
    }

    .bot-table {
        min-width: 500px;
    }

    .expiry-info {
        font-size: 10px;
        padding: 0;
        min-width: auto;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .action-buttons {
        gap: 4px;
    }

    .btn-action {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
}

/* ===== HEADER STYLES ===== */
.main-header {
    height: 60px;
    position: sticky;
    top: 0;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(79, 172, 254, 0.3);
    backdrop-filter: blur(10px);
    margin: 0;
    padding: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    direction: rtl;
}

.header-content .right {
    display: flex;
    align-items: center;
    color: #dbdbdb;
}

.header-content .currentbot {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    color: #fff;
    border: 2px solid rgba(79, 172, 254, 0.3);
}

.currentbot {
    margin-right: 60px;
}

.header-title {
    font-size: 20px;
    font-weight: 800;
    color: #4facfe;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(79, 172, 254, 0.5);
    position: relative;
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.header-menu-item {
    position: relative;
}

.header-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin: 0 2px;
}

.header-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.2), transparent);
    transition: left 0.5s ease;
}

.header-menu-link:hover::before {
    left: 100%;
}

.header-menu-link:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.1) 100%);
    color: #4facfe;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.header-menu-link.active {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.3) 0%, rgba(0, 242, 254, 0.2) 100%);
    color: #4facfe;
    box-shadow: 0 4px 20px rgba(79, 172, 254, 0.4);
    text-shadow: 0 0 8px rgba(79, 172, 254, 0.5);
}

.header-menu-icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(79, 172, 254, 0.3));
    transition: all 0.3s ease;
    opacity: 0.8;
}

.header-menu-link:hover .header-menu-icon,
.header-menu-link.active .header-menu-icon {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(79, 172, 254, 0.5));
}

.header-menu-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.header-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(79, 172, 254, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.header-submenu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-submenu-item {
    display: block;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    border-bottom: 1px solid rgba(79, 172, 254, 0.1);
}

.header-submenu-item:last-child {
    border-bottom: none;
}

.header-submenu-item:hover {
    color: #4facfe;
    background: rgba(79, 172, 254, 0.1);
    padding-right: 20px;
}

.header-submenu-arrow {
    margin-right: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    transform: rotate(0deg);
}

.header-menu-link:hover .header-submenu-arrow {
    color: #4facfe;
}

.header-menu-item:has(.header-submenu.active) .header-submenu-arrow {
    transform: rotate(180deg);
    color: #4facfe;
}

.header-logout-btn {
    color: #000;
}



/* Bot List Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #b9b9b9;
    margin: 0;
}

.page-actions .btn {
    background: #0056b3;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.bot-filters {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.search-input {
    min-width: 250px;
    flex: 1;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select {
    min-width: 150px;
    cursor: pointer;
}

.bot-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 20px;
}

/* Expiry info styles */
.expiry-info {
    font-weight: 500;
    padding: 0;
    border: none;
    background: transparent;
    color: #059669;
    text-align: center;
    font-size: 12px;
    display: inline-block;
    min-width: auto;
    letter-spacing: normal;
    line-height: 1.4;
}

.expiry-info.warning {
    color: #d97706;
}

.expiry-info.expired {
    color: #dc2626;
}

.bot-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bot-table thead {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #000;
}

.bot-table th {
    padding: 15px 12px;
    text-align: right;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bot-table td {
    padding: 15px 12px;
    margin-top: 15px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.bot-table tbody tr {
    transition: all 0.3s ease;
}

.bot-table tbody tr:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-username {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.status-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.inactive {
    background: #fef2f2;
    color: #dc2626;
}

.status-badge.expired {
    background: #fef2f2;
    color: #dc2626;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge i {
    font-size: 8px;
}

.user-count {
    font-weight: 600;
    color: #374151;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
}

.btn-edit {
    background: #dbeafe;
    color: #2563eb;
}

.btn-edit:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.btn-settings {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-extend {
    background: #e8dfff;
    color: #6b7280;
}

.btn-settings:hover {
    background: #6b7280;
    color: white;
    transform: translateY(-2px);
}

.btn-stats {
    background: #ecfdf5;
    color: #059669;
}

.btn-stats:hover {
    background: #059669;
    color: white;
    transform: translateY(-2px);
}

.btn-delete {
    background: #fef2f2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-container {
    padding: 20px;
    max-width: 1500px;
    margin: 0 auto;
    direction: rtl;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
}

/* Stat Box */
.stat-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    color: #333;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 100px;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
}

/* Stat Icon */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-box:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-box:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-box:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-box:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Stat Content */
.stat-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stat-number {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a202c;
    line-height: 1;
    font-family: 'Vazirmatn', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== FOOTER STYLES ===== */
.main-footer {
    background: transparent;
    color: #666;
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    padding: 10px 0;
    margin-top: auto;
    text-align: center;
}

.footer-content {
    direction: rtl;
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-version,
.footer-copyright {
    font-size: 12px;
    margin: 0;
    color: #666;
}

/* Extend Bot Styles */
.box_extend {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.box_extend::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

/* Duplicate shimmer animation removed - using the one below */

.extend_header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.extend_icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.extend_header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.extend_header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.payment_options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.payment_card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.payment_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.payment_card:hover::before {
    left: 100%;
}

.payment_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

.rial_payment:hover {
    border-color: #28a745;
}

.crypto_payment:hover {
    border-color: #f39c12;
}

.payment_icon {
    text-align: center;
    margin-bottom: 20px;
}

.payment_icon i {
    font-size: 3rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.rial_payment .payment_icon i {
    color: #28a745;
}

.crypto_payment .payment_icon i {
    color: #f39c12;
}

.payment_card:hover .payment_icon i {
    transform: scale(1.1) rotate(5deg);
}

.payment_content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.payment_content p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.payment_features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.payment_features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.payment_features i {
    color: #28a745;
    margin-left: 10px;
    font-size: 0.9rem;
}

.payment_btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rial_btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

.crypto_btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
}

.payment_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.payment_btn i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.payment_btn:hover i {
    transform: translateX(-5px);
}



@media (max-width:651px) {
    .boxlogin {
        width: 100% !important;
        -webkit-width: 100% !important;
    }

    .box_extend {
        padding: 15px;
        margin: 10px;
        width: 95%;
    }

    .extend_header h1 {
        font-size: 1.4rem;
    }

    .extend_header p {
        font-size: 0.9rem;
    }

    .payment_options {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .payment_card {
        padding: 15px;
    }

    .extend_icon {
        font-size: 2rem;
    }

    .payment_icon i {
        font-size: 2rem;
    }

    .payment_content h3 {
        font-size: 1.2rem;
    }

    .payment_btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* AddBot Page Styles - Simple & Modern */
.addbot-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Vazir', sans-serif;
}

/* Page Header */
.page-header {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-icon {
    width: 48px;
    height: 48px;
    background: #6c757d;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #212529;
}

.page-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 4px 0 0 0;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.back-button:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* Form Container - consolidated with main form styles above */

.form-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.form-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #212529;
}

/* Error Alert */
.error-alert {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #721c24;
}

.error-alert i {
    font-size: 18px;
    margin-top: 2px;
}

.error-alert h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.error-alert ul {
    margin: 0;
    padding-right: 20px;
}

.error-alert li {
    margin-bottom: 4px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #dc3545;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-help {
    color: #6c757d;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 32px;
}

.submit-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background: #0056b3;
}

.cancel-button {
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cancel-button:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* Help Section */
.help-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
}

.help-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-section h3 i {
    color: #007bff;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.help-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 3px solid #007bff;
}

.help-item h4 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.help-item p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
    font-size: 13px;
}

/* Duplicate dashboard-container removed - consolidated above */

.payment-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin: 2rem auto;
    border: 1px solid var(--gray-200);
    text-align: center;
    max-width: 700px;
    transition: var(--transition);
}

.payment-container:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.payment-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.payment-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.payment-description {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.code-container {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--warning-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px solid #fbbf24;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.code-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.code-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.code-value {
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--gray-800);
    border: 1px solid rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    user-select: all;
    cursor: pointer;
    transition: var(--transition);
}

.code-value:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.contact-container {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: var(--success-color);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px solid #10b981;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0088cc;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.telegram-link:hover {
    background: #006ba3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.steps-container {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--gray-200);
}

.steps-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.steps-list {
    list-style: none;
    padding: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.step-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-text {
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 0.875rem;
}

.icon {
    font-size: 1.125rem;
}

/* Access Denied Styles */
.access_denied {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border: none;
    color: white;
}

.denied_header {
    text-align: center;
    margin-bottom: 30px;
}

.denied_header .denied_icon {
    color: #fff3cd;
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.denied_header h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.denied_header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.denied_content {
    margin-top: 30px;
}

.denied_card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333;
}

.denied_info {
    margin-bottom: 30px;
}

.denied_info i {
    color: #ff6b6b;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.denied_info h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.denied_reasons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.denied_reasons li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid #ff6b6b;
}

.denied_reasons li i {
    color: #ff6b6b;
    margin-left: 12px;
    font-size: 1rem;
    width: 20px;
}

.denied_actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.denied_btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.denied_btn i {
    margin-left: 8px;
    font-size: 1rem;
}

.primary_btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.primary_btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

.secondary_btn {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
}

.secondary_btn:hover {
    background: linear-gradient(135deg, #545b62, #3d4449);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
    color: white;
    text-decoration: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}


.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) {
    width: 20px;
    height: 20px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    width: 15px;
    height: 15px;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    width: 25px;
    height: 25px;
    left: 30%;
    animation-delay: 4s;
    animation-duration: 15s;
}

.particle:nth-child(4) {
    width: 18px;
    height: 18px;
    left: 50%;
    animation-delay: 6s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    width: 22px;
    height: 22px;
    left: 70%;
    animation-delay: 8s;
    animation-duration: 14s;
}

.particle:nth-child(6) {
    width: 16px;
    height: 16px;
    left: 80%;
    animation-delay: 10s;
    animation-duration: 16s;
}

.particle:nth-child(7) {
    width: 30px;
    height: 30px;
    left: 90%;
    animation-delay: 12s;
    animation-duration: 22s;
}

.particle:nth-child(8) {
    width: 12px;
    height: 12px;
    left: 60%;
    animation-delay: 14s;
    animation-duration: 10s;
}

.loading-container {
    text-align: center;
    color: white;
    z-index: 10;
    position: relative;
}

.loading-logo {
    margin-bottom: 40px;
    animation: logoFloat 4s ease-in-out infinite;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: 300% 300%;
    animation: gradientRotate 3s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    position: relative;
}

.logo-circle::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 2s linear infinite;
}

.logo-circle i {
    font-size: 3.5rem;
    color: #fff;
    z-index: 2;
    animation: robotPulse 2s ease-in-out infinite;
}

.loading-logo h2 {
    font-size: 2.8rem;
    margin: 15px 0 5px;
    font-weight: bold;
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.logo-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-weight: 300;
}

.loading-progress {
    width: 300px;
    margin: 30px auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}



.loading-text {
    margin-top: 30px;
}

.loading-text p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: #fff;
}

.loading-wave {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.loading-wave span {
    width: 8px;
    height: 40px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 4px;
    animation: waveAnimation 1.5s ease-in-out infinite;
}

.loading-wave span:nth-child(1) {
    animation-delay: 0s;
}

.loading-wave span:nth-child(2) {
    animation-delay: 0.1s;
}

.loading-wave span:nth-child(3) {
    animation-delay: 0.2s;
}

.loading-wave span:nth-child(4) {
    animation-delay: 0.3s;
}

.loading-wave span:nth-child(5) {
    animation-delay: 0.4s;
}

/* Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes gradientRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes robotPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }

    100% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes waveAnimation {

    0%,
    100% {
        transform: scaleY(0.5);
    }

    50% {
        transform: scaleY(1.5);
    }
}

/* Loading Screen Styles End */

/* Alert Messages Styles consolidated above */

@keyframes slideInUp {
    from {
        transform: translateY(100%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateY(100%) scale(0.8);
        opacity: 0;
    }
}

.page-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    direction: rtl;
}

/* ===== USER MANAGER STYLES ===== */

.manage-container {
    max-width: 1400px;
    margin: 0 auto;
    direction: rtl;
}

.table-container {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pagination-info {
    color: #64748b;
    font-size: 14px;
}

.table-wrapper {
    overflow-x: auto;
}

.page-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.page-table thead {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.page-table th {
    padding: 18px 15px;
    text-align: right;
    font-weight: 600;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.page-table th:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.page-table th i {
    margin-right: 8px;
    opacity: 0.6;
    font-size: 12px;
}

.page-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
}

.page-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    word-break: break-all;
}

.avatar-cell {
    width: 60px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #000000 100%);
    color: white;
    font-size: 18px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
}

.username {
    color: #667eea;
    font-weight: 500;
}

.user-id {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #1e293b;
    font-weight: 700;
}

.balance {
    direction: ltr;
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.active i {
    color: #22c55e;
}

.status-badge.inactive {
    background: #fef2f2;
    color: #991b1b;
}

.status-badge.inactive i {
    color: #ef4444;
}

.user-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.user-type.premium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.user-type.regular {
    background: #f1f5f9;
    color: #64748b;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-view {
    background: #e0f2fe;
    color: #0369a1;
}

.btn-view:hover {
    background: #0369a1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-page {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-page:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-number:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

@media (max-width: 1200px) {
    .page-container {
        padding: 15px;
    }

    .header-content .currentbot {
        display: none;
    }

    .content-area {
        padding: 0;
    }

    .manage-container {
        margin-top: 40px;
    }

    .manage-container .content {
        flex-direction: column;
    }

    .box_state_item {
        flex: 1 1 calc(50% - 10px) !important;
    }

    .manage-container .info_right {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .manage-container .info_left {
        width: 100% !important;
    }
}

.search-bar {
    padding: 20px;
}

.search-input {
    width: 90%;
    background: #f6f6f6;
    border: 0;

}

.form-control button {
    all: unset;
    border: 2px solid #d6d6d6;
    padding: 10px 25px;
}

.form-control {
    display: flex !important;
    justify-content: center;
    width: 100%;
    border-radius: 5px;
    font-size: 14px;
    gap: 10px;
    color: #334155;
}

.form-control .search-input {
    border: 0;
}

.form-control .search-input:focus {
    outline: 0;
    border: 0;
    box-shadow: none;
}

.manage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 32px;
    padding: 20px;
}

.manage-header a {
    color: #2563eb;
    text-decoration: none;
    background-color: #0056b3;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
}

.manage-header .back-page {
    transition: all 0.3s ease;
}

.manage-header .back-page:hover {
    transform: translateY(-2px);

}

.manage-container .content {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #f1f5f9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.manage-container .info_right {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 24.333%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: white;
    padding: 20px;
}

.manage-container .info_left {
    text-align: right;
    width: 75%;
}

.manage-container .avatar {
    font-size: 25px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #000000 100%);
    margin-bottom: 10px;
    color: white;
}

.info_right .username {
    font-size: 20px;
    font-weight: 600;
    margin-top: 10px;
    color: #1e293b;
}

.info_right .user_id_info {
    font-weight: normal;
    color: #969aa0;
}

.info_right .status_user {
    margin-top: 10px;
    border-radius: 6px;
}

.info_right .status_user.active {
    background: #dcfce7;
    color: #166534;
    padding: 5px 10px;
    display: inline-block;
    font-weight: 600;
}

.unverify {
    background: #fcf6dc;
    color: #655916;
    padding: 5px 10px;
    display: inline-block;
    font-weight: 600;
}

.info_right .status_user.inactive {
    background: #fef2f2;
    color: #991b1b;
    padding: 5px 10px;
    display: inline-block;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line-space {
    margin-top: 20px;
    width: 60%;
    margin-right: auto;
    margin-left: auto;
    border: 2px solid #e2e8f0;
}

.btn_block {
    background-color: #dc3545;
    color: #fff;
    padding: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
}

.btn_unban {
    margin-top: 10px;
    color: #fff;
    padding: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
}

.btn_verify {
    color: #fff;
    padding: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.box_state {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info_left .header {
    display: flex;
    align-items: center;
}

.info_left .header i {
    margin-left: 10px;
}

.boxs_state {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.box_state_item {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 2px solid #667eea;
    transition: all 0.3s ease;

}

.box_state_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.box_state_item .value_box_state_item {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 10px;
}

.box_state_item .title_box_state_item {
    color: #64748b;
    font-weight: normal;
    font-size: 15px;
    margin-top: 5px;
}

.box_username {
    margin: 20px 0;
    direction: rtl;
    text-align: center;
    padding: 12px;
    background-color: #0369a178;
    color: #fff;
    border-radius: 7px;
}

.info_right .Balance {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.info_right .Balance a {
    margin: 0 1px;
}

.primary {
    background-color: var(--primary-color);
    color: #fff;
    transition: all 0.3s ease;
}

.primary:hover {
    background-color: #275fbb;
    transform: translateY(-2px);
}

.Success {
    background-color: var(--success-color);
    color: #fff;
    transition: all 0.3s ease;
}

.Success:hover {
    background-color: #1a8f45;
    transform: translateY(-2px);
}

.Danger {
    background-color: var(--danger-color);
    color: #fff;
    transition: all 0.3s ease;
}

.Danger:hover {
    background-color: #c63e3e;
    transform: translateY(-2px);
}

.Warning {
    background-color: #F97316;
    color: #fff;
    transition: all 0.3s ease;
}

.Warning:hover {
    background-color: #b95916;
    transform: translateY(-2px);
}

.Secondary {
    background-color: #6B7280;
    color: #fff;
    transition: all 0.3s ease;
}

.btn_balance {
    width: 200px;
    padding: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_sendmessage {
    margin: 20px 0 10px 0;
    padding: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
}

.btn_add_order {
    margin: 10px 0 0 0;
    padding: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
}

.manage-container .tabs {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.manage-container .tabs .menu_tabs button {
    all: unset;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #a7bbcd17;
    border-radius: 8px;
    color: #000;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: bold;
}

.manage-container .tabs .menu_tabs button:hover {
    background-color: #0088ff4a;
    transform: scale(0.99);
}

.manage-container .tabs .menu_tabs button.active {
    background-color: #0088ff4a;
    color: #0056b3;
    border-bottom-color: #007bff;
}

.tabcontent {
    padding: 13px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    display: none;
    transition: opacity 0.5s ease-in-out;

}

.tabcontent.active {
    opacity: 1;
    height: auto;
    visibility: visible;
    display: block;
}

.tabs .detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tabs .info_data {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-radius: 6px;
    background-color: #e2e2e24a;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    direction: rtl;
}

.tabs .info_data:hover {
    background-color: #e2e2e270;
    transform: translateY(-2px);
}

.info_data h3 {
    color: #334155;
    font-weight: 600;
    font-size: 16px;
}

.tabs .menu_tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-box {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    width: 600px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-box p {
    margin-bottom: 20px;
}

.modal-box h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.modal-box input,
.modal-box select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}

.modal-box input:focus {
    border-color: #2563eb;
}

.modal-box .btns {
    display: flex;
    flex-direction: row-reverse;
    justify-content: left;
    gap: 10px;
}

.modal-box button,
.modal-box a {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.modal-box button.confirm {
    background: #16a34a;
    color: white;
}

.modal-box button.confirm:hover {
    background: #15803d;
}

.modal-box button.cancel {
    background: #e5e7eb;
}

.modal-box button.cancel:hover {
    background: #d1d5db;
}

.modal.show .modal-box {
    transform: scale(1);
    opacity: 1;
}

.tabs .btn_actions {
    margin-top: 40px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tabs .btn_actions a {
    padding: 10px 10px;
    border-radius: 6px;
    font-size: 13px;
    flex: 1 1 20%;
}

textarea {
    width: 100%;
    min-height: 60px;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    resize: none;
    overflow: auto;
    line-height: 1.5;
    background: #eeeeee;
    max-height: 300px;
}

textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.container_loading {
    position: fixed;
    width: 100%;
    background: rgb(0 0 0 / 90%);
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    height: 100vh;
}

@property --widthSquare {
    syntax: "<length>";
    initial-value: 20px;
    inherits: false;
}

.square {
    width: var(--widthSquare);
    aspect-ratio: 1/1;
    border: 3px solid var(--contrast-color);
    border-radius: .3rem;
    margin-bottom: .2rem;
    transform-origin: 100% 100%;
    animation: roll var(--animation-settings);
}

@keyframes roll {
    25% {
        transform: translate(calc(var(--widthSquare) * -1));
    }

    50% {
        transform:
            rotate(90deg) translateY(var(--widthSquare));
    }

    75% {
        transform:
            rotate(180deg) translateY(var(--widthSquare));
    }

    100% {
        transform:
            rotate(180deg) translate(var(--widthSquare), var(--widthSquare));
    }
}

@property --widthScroll {
    syntax: "<length>";
    initial-value: 90px;
    inherits: false;
}

.infinite-scroll {
    position: relative;
    width: calc(var(--widthSquare) * 3);
    height: 2px;
    overflow: hidden;
}

.infinite-scroll::before,
.infinite-scroll::after {
    content: "";
    position: absolute;
    width: var(--widthSquare);
    height: 100%;
    background: var(--contrast-color);
}

.infinite-scroll::before {
    left: calc(50% - var(--widthSquare) / 2);
    animation: moveBefore var(--animation-settings);
}

.infinite-scroll::after {
    left: 100%;
    animation: moveAfter var(--animation-settings);
}

@keyframes moveBefore {
    25% {
        left: 0;
    }

    50% {
        left: 0;
    }

    75% {
        left: 0;
    }

    100% {
        left: -30px;
    }
}

@keyframes moveAfter {
    25% {
        left: 100%;
    }

    50% {
        left: calc(100% - var(--widthSquare));
    }

    75% {
        left: calc(100% - var(--widthSquare));
    }

    100% {
        left: calc(50% - var(--widthSquare) / 2);
    }
}

@media (max-width: 480px) {
    .bot-card {
        padding: 16px;
    }

    .bot-card-header {
        flex-direction: column;
        gap: 16px;
    }

    .action-buttons {
        align-self: flex-end;
    }

    .filter-group {
        gap: 8px;
    }

    .page-table th:nth-child(4),
    .page-table td:nth-child(4),
    .page-table th:nth-child(5),
    .page-table td:nth-child(5) {
        display: none;
    }

    .stats-grid {
        display: flex;
        flex-direction: column;
        padding: 0 12px;
    }

    .stat-box {
        padding: 14px;
        min-height: 90px;
        display: flex;
        flex-direction: row;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .sidebar {
        width: 100vw;
    }

    .content-area {
        padding: 10px;
    }

    .menu-link {
        padding: 14px 20px;
        font-size: 15px;
    }

    .submenu-item {
        padding: 6px 35px;
        font-size: 13px;
    }
}

.click {
    cursor: pointer;
}


.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    box-shadow: 0 12px 35px rgba(44, 62, 80, 0.4), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle:active {
    background: linear-gradient(135deg, #16202b 0%, #1a252f 100%);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-icon-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    width: 24px;
    height: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-dot {
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 1;
    animation: elegant-pulse 1.5s ease-in-out infinite alternate;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle:hover .menu-dot {
    background: rgba(255, 255, 255, 1);
    opacity: 1;
    animation: elegant-pulse 1.2s ease-in-out infinite alternate;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.mobile-menu-toggle:hover .menu-dot::before {
    opacity: 1;
}

.mobile-menu-toggle:hover .menu-dot:nth-child(1) {
    animation-delay: 0s;
}

.mobile-menu-toggle:hover .menu-dot:nth-child(2) {
    animation-delay: 0.1s;
}

.mobile-menu-toggle:hover .menu-dot:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-menu-toggle:hover .menu-dot:nth-child(4) {
    animation-delay: 0.3s;
}

.mobile-menu-toggle:hover .menu-dot:nth-child(5) {
    animation-delay: 0.4s;
    transform: scale(1.1);
}

.mobile-menu-toggle:hover .menu-dot:nth-child(6) {
    animation-delay: 0.5s;
}

.mobile-menu-toggle:hover .menu-dot:nth-child(7) {
    animation-delay: 0.6s;
}

.mobile-menu-toggle:hover .menu-dot:nth-child(8) {
    animation-delay: 0.7s;
}

.mobile-menu-toggle:hover .menu-dot:nth-child(9) {
    animation-delay: 0.8s;
}

.affiliates_modal {
    display: flex;
    flex-direction: column;
}

.affiliates_not_exits {
    background-color: #eaf5ff;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
}

.list_affiliates {
    height: 500px;
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
}

.list_affiliates a {
    flex: 1 1 24%;
}

.user-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.manage-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.main-info {
    flex: 1;
    min-width: 0;
}

.main-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    word-break: break-all;
}

.main-info span {
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

.status {
    background: #dcfce7;
    color: #166534;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status.inactive {
    background: #fef2f2;
    color: #991b1b;
}

.user-details {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.user-details span {
    font-size: 14px;
    color: #4b5563;
    background: #f9fafb;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.actions {
    display: flex;
    gap: 8px;
}

.actions button {
    flex: 1;
    min-height: 44px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
}

.actions button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.actions button:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .user-card {
        padding: 20px;
    }

    .manage-header {
        margin-bottom: 16px;
    }

    .actions {
        max-width: 200px;
        margin-right: auto;
    }
}

@media (max-width: 360px) {
    .user-card {
        padding: 12px;
        margin: 0 -8px 12px -8px;
        border-radius: 8px;
    }

    .user-details {
        flex-direction: column;
        gap: 8px;
    }

    .main-info h4 {
        font-size: 15px;
    }
}

.agent_bot {
    padding: 20px;
    background-color: #00000008;
    box-shadow: 0 0 4px 1px #6e6e6e33;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    margin-top: 20px;
}

.agent_bot .header {
    margin-bottom: 20px;
    font-weight: normal;
    color: #00000096;
}

.agent_bot .data span {
    background-color: #f3f3f396;
    padding: 10px;
    margin-right: 20px;
    border-radius: 6px;
    gap: 10px;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
    margin: 10px 0;
}

.agent_bot .data {
    margin: 11px 0;
}

.custom-multiselect {
    width: 300px;
    position: relative;
}

.select_panel_hide {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
    width: 100%;
}

.select_panel_hide .selected-items {
    width: 100%;
}

.custom-multiselect select {
    display: none;
}

.custom-multiselect select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    height: 150px;
}

.custom-multiselect select option {
    padding: 6px;
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 6px;
    min-height: 40px;
    cursor: pointer;
    background-color: #fff;
    margin-bottom: 15px;
}

.selected-items .item {
    background-color: #3b82f6;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.selected-items .item span {
    cursor: pointer;
    font-weight: bold;
}

.option-list {
    position: absolute;
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 150px;
    overflow-y: auto;
    background-color: #fff;
    z-index: 100;
    display: none;
}

.option-list.top {
    bottom: 50px;
}

.option-list.bottom {
    top: 50px;
}

.option-list div {
    padding: 8px;
    cursor: pointer;
}

.option-list div:hover {
    background-color: #f0f0f0;
}

.empty_users {
    padding: 20px;
    text-align: center;
}

.btn-admin {
    padding: 10px;
    border-radius: 6px;
}

.footer_sid {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    align-items: center;
    padding: 10px;
    border-top: 2px solid #e6e6e6;
}

.footer_sid .avatar {
    width: 40px;
    height: 40px;
}

.theme-switcher {
    display: flex;
    width: clamp(250px, 80%, 400px);
    /* Better responsive width */
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;
    background-color: var(--gray-100);
    /* Use a variable for light background */
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
}

/* Add an indicator element for the active state */
.theme-switcher::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(50% - 4px);
    /* Half the width, minus padding */
    background: var(--bg-color);
    /* Light background for the indicator */
    border-radius: 10px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.theme-switcher.dark-active::before {
    right: calc(50% - 4px);
    /* Move the indicator to the right */
    background: var(--contrast-color);
    /* Dark background for the indicator */
}

.theme-btn {
    all: unset;
    /* Remove default button styles */
    flex: 1;
    display: flex;
    gap: 8px;
    color: var(--gray-600);
    /* Use a variable for text color */
    padding: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

.theme-btn:hover {
    transform: translateY(-2px);
}

.theme-btn.active {
    font-weight: 700;
    color: var(--primary-color);
    transform: scale(1.05);
}

.theme-btn.active.dark-active {
    color: var(--secondary-color);
}

.footer_sid p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 150px;
}

.with_text p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 150px;
}

.invoice_header {
    flex-direction: column;
}

.avatar-placeholder .material-symbols-outlined {
    font-size: 35px !important;
}

.tabcontent .subscriptions code {
    padding: 20px;
    background-color: #c6c6c640;
    color: #000;
    font-weight: bold;
    width: 100%;
    border-radius: 6px;
    margin-top: 10px;
    word-break: break-all;
}

.tabcontent .subscriptions {
    display: flex;
    flex-direction: column;
}

.tabcontent .box_config {
    display: flex;
    gap: 50px;
    flex-direction: column;
}

.tabcontent .configs code {
    padding: 20px;
    background-color: #c6c6c640;
    color: #000;
    width: 100%;
    border-radius: 6px;
    margin-top: 10px;
    word-break: break-all
}

.tabcontent .configs {
    display: flex;
    flex-direction: column;
}

.btn_remove_service {
    padding: 5px 5px;
    cursor: pointer;
    margin: 3px;
    border-radius: 5px;
}

.info_right .fa-circle {
    font-size: 7px;
    margin-left: 10px;
}

.empty-data {
    padding: 20px;
    text-align: center;
}

.amdin_table {
    display: table !important;
}

.btn-action .material-symbols-outlined {
    font-size: 20px;
}

.page-container .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-container .header button {
    padding: 10px 15px;
    width: auto;
    margin: 0;
    border-radius: 5px;
}

.form_control {
    display: flex;
    gap: 10px;
    align-items: center;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #000;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked+.custom-checkbox {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.custom-checkbox::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0.8);
    transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked+.custom-checkbox::after {
    opacity: 1;
}

.box_details {
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    background-color: #007bff30;
    border-radius: 10px;
}

#hide_panel .btns {
    display: flex;
    flex-direction: row-reverse;
    justify-content: left;
    gap: 10px;

}

#hide_panel button,
#hide_panel a {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

#hide_panel button.confirm {
    background: #16a34a;
    color: white;
}

#hide_panel button.confirm:hover {
    background: #15803d;
}

#hide_panel button.cancel {
    background: #e5e7eb;
}

.lable_panel {
    width: 30%;
}

.info_data label {
    display: block;
}

.info_data label>input[type=checkbox] {
    display: none;
}

.info_data .check-1 {
    position: fixed;
    top: 50%;
    left: 3%;
    transform: translateX(-50%) translateY(-50%);
    width: 50px;
    height: 30px;
    border-radius: 50px;
    position: relative;
}

.info_data .check-1 .inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    border: 2px solid #e8e8e8;
    background: #f9f9f9;
    transition: all .2s ease;
}

.info_data .check-1 .bullet {
    position: relative;
    width: 25px;
    height: 25px;
    background: #eee;
    border-radius: 50%;
    transition: all .3s ease;
    top: 2px;
    right: 2px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, .15);
}

.info_data .check-1 input:checked~.inner {
    border: 15px solid #2ecc71;
    transition: all .2s ease;
}

.info_data .check-1 input:checked~.bullet {
    right: 23px;
    transition: all .3s ease;
    animation: .2s bullet;
}

@keyframes bullet {

    0%,
    100% {
        width: 25px;
    }

    40% {
        width: 30px;
    }
}

.input-wrapper-size-3 {
    display: flex;
    margin-top: 60px;
    gap: 20px;
    justify-content: right;
    align-items: center;
    flex-wrap: wrap;
}

.input-wrapper-size-3 input {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-wrappe-size-3 input:focus {
    border-color: #007bff;
}
.warp-flex{
    flex: 1 1 32%;
}
.input_option {
    display: flex;
    flex-direction: row-reverse;
    justify-content: left;
    gap: 10px;

}

.input_option button,
.input_option a {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.input_option button.confirm {
    background: #16a34a;
    color: white;
}

.input_option button.confirm:hover {
    background: #15803d;
}

.input_option button.cancel {
    background: #e5e7eb;
}