* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #0f1523;
    color: #13d7ab;
    direction: rtl;
    min-height: 100vh;
    line-height: 1.6;
}


.page-wrapper {
    flex: 1;
    padding-top: 20px;
}


.logo img {
    max-height: 48px;
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .logo img {
        height: 40px;
    }
}


header {
    background: linear-gradient(135deg, #13d7ab 0%, #918b8b 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header .btn-light {
    background: #0f1523 !important;
    color: #13d7ab !important;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

header .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 221, 221, 0.04);
}

header .btn-outline-light {
    border: 2px solid #dfdcdc;
    color: #dddbdb;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

header .btn-outline-light:hover {
    background: #ffffff !important;
    color: #72e0ff !important;
    transform: translateY(-2px);
}

.sidebar-desktop {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.05);
    padding: 15px 10px;
}

.sidebar-sticky {
    padding: 0;
}

.admin-sidebar-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-sidebar-header h5 {
    color: #334155;
    font-weight: 700;
    margin: 0;
    font-size: 0.9rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #13d7ab !important;

    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid #13d7ab;

    background: transparent;
    font-weight: 500;
    font-size: 0.8rem;
    position: relative;
}

.nav-btn:hover {
    background: #d81111;
    color: #1e293b !important;
    border-color: #2563eb;

    transform: none;
}

.nav-btn.active {
    background: linear-gradient(135deg, #84da14 0%, #1e40af 100%);
    color: #fff !important;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nav-btn i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.admin-sidebar .nav-btn {
    font-size: 0.75rem;
    padding: 8px 10px;
}

.admin-sidebar .nav-btn i {
    font-size: 0.8rem;
}

.badge-notification {
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: white;
}

.sidebar-desktop::-webkit-scrollbar {
    width: 4px;
}

.sidebar-desktop::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.sidebar-desktop::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 2px;
}

.sidebar-desktop::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


.main-content {
    padding: 30px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 15px;
        padding-bottom: 40px;
    }
}

.admin-header {
    margin-bottom: 30px;
}

.page-title {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.9rem;
}

.admin-breadcrumb i {
    font-size: 0.8rem;
}

.global-alert {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    color: #1e40af;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 2px solid #bfdbfe;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.global-alert i {
    font-size: 1.2rem;
}


.stats-row {
    margin-bottom: 20px;
}

.stat-card {
    padding: 15px;
    border-radius: 12px;
    color: white;
    text-align: right;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 80px;
}

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

.stat-icon {
    font-size: 1.8rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.stat-info h5 {
    font-size: 0.75rem;
    opacity: 0.95;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-info h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
}

.wallet-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.profit-card {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.plans-card {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
}


@media (max-width: 768px) {
    .stat-card {
        padding: 12px;
        min-height: 70px;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-info h5 {
        font-size: 0.7rem;
    }

    .stat-info h3 {
        font-size: 1.1rem;
    }
}

.content-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.mobile-navbar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: auto;
    background: transparent;
    border-top: none;
    padding: 0;
    box-shadow: none;
    z-index: 1000;
}

.mobile-menu-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ea6673 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.mobile-menu-btn span {
    display: none;
}

.mobile-menu-btn .mobile-badge {
    position: absolute;
    left: -5px;
    top: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    padding: 3px 6px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: #fff;
    z-index: 1999;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.mobile-menu-sidebar.active {
    right: 0;
}

.mobile-menu-header {
    padding: 25px 20px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mobile-menu-header h5 {
    margin: 0;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: #64748b;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
    position: relative;
}

.mobile-nav-btn:hover {
    background: #f8fafc;
    color: #334155;
}

.mobile-nav-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-nav-btn i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.mobile-nav-btn .mobile-badge {
    background: #dc3545;
    color: white;
    border-radius: 10px;
    font-size: 0.7rem;
    padding: 2px 6px;
    margin-right: auto;
    margin-left: 8px;
}


.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h4 {
    color: #475569;
    margin-bottom: 10px;
    font-weight: 600;
}

@media (min-width: 769px) {

    .mobile-navbar,
    .mobile-menu-overlay,
    .mobile-menu-sidebar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .sidebar-desktop {
        display: none !important;
    }

    .main-content {
        margin-right: 0 !important;
        padding-bottom: 40px;
    }
}


.text-center {
    text-align: center;
}

.text-muted {
    color: #64748b !important;
}

.mb-4 {
    margin-bottom: 1.0rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.rounded {
    border-radius: 0.375rem !important;
}

.wallet-address code {
    word-break: break-all;
    font-size: 0.8rem;
    font-family: monospace;
    direction: ltr;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.copy-btn {
    font-size: 0.75rem;
    padding: 2px 8px;
    border: 1px solid #13d7ab !important;
 
    color: #0f1523 !important;

    background: transparent !important;
}

.copy-btn:hover {
    border-color: #5b5e63 !important;
    background: #f8fafc !important;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
}

.table td {
    font-size: 0.8rem;
    vertical-align: middle;
}

.form-control:focus {
    border-color: #13d7ab;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}


.btn {
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #13d7ab !important;

    color: #13d7ab !important;

    background: transparent !important;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: #13d7ab !important;

    background: #5d616a !important;

    color: #0f1523 !important;

}

.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.badge {
    font-weight: 500;
}

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

.fas,
.fab {
    line-height: 1;
}

code {
    direction: ltr;
    font-family: 'Courier New', monospace;
}

.status-pending {
    color: #fd7e14;
}

.status-approved {
    color: #28a745;
}

.status-rejected {
    color: #dc3545;
}

.auth-card {
    max-width: 450px;
    margin: 60px auto;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-card .card-body {
    padding: 3rem;
}

.hero-section {
    background: linear-gradient(135deg, #eacb66 0%, #764ba2 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.plan-card {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
}

.plan-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
}

.plan-card .profit {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
}

.plan-card .duration {
    font-size: 1.1rem;
    color: #6c757d;
}