/**
 * Dashboard Styles
 * Users Dashboard styles
 */

.adj-dashboard-wrap {
    max-width:  100%;
    margin: 0 auto;
    padding: 20px;
    background: #f2f2f2;
    border-radius: 10px;
    font-family: var(--adj-font-family);
}

/* Header */
.adj-dashboard-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.2);
}

.adj-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.adj-user-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
}

.adj-user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.adj-avatar-text {
    font-size: 32px;
    font-weight: 700;
    color: #8B5CF6;
}

.adj-user-info h1 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.adj-user-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 16px;
}

.adj-header-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.adj-btn {
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
        min-width: 140px;
}

.adj-btn-primary {
    background: #8B5CF6;
    color: white;
}

.adj-btn-primary:hover {
    background: #7C3AED;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.adj-btn-secondary {
    background: white;
    color: #8B5CF6;
}

.adj-btn-secondary:hover {
    background: #f9fafb;
}

.adj-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.adj-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Notice */
.adj-notice {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-right: 4px solid;
}

.adj-notice-warning {
    border-right-color: #f59e0b;
    background: #fffbeb;
}

.adj-notice-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: #f59e0b;
}

.adj-notice-content {
    flex: 1;
}

.adj-notice-content h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
}

.adj-notice-content p {
    margin: 0;
    font-size: 14px;
    color: #78350f;
}

.adj-notice-action {
    flex-shrink: 0;
}

/* Stats Grid */
.adj-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 10px;

}

.adj-stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

/* .adj-stat-card:hover {
    border: 1px solid #374151;
} */

.adj-stat-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 12px;
    color: #6b7280;
}

.adj-stat-content {
    flex: 1;
}

.adj-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.adj-stat-label {
    font-size: 14px;
    color: #6b7280;
}

.adj-stat-card.adj-stat-active .adj-stat-icon {
    background: #d1fae5;
}

.adj-stat-card.adj-stat-active .adj-stat-value {
    color: #10b981;
}

.adj-stat-card.adj-stat-inactive .adj-stat-icon {
    background: #fee2e2;
}

.adj-stat-card.adj-stat-inactive .adj-stat-value {
    color: #ef4444;
}

/* Dashboard Content */
.adj-dashboard-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
}

.adj-content-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.adj-content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cards */
.adj-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
        margin-bottom: 20px;
}

.adj-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.adj-card-header h2,
.adj-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.adj-card-body {
    padding: 24px;
}

/* Empty State */
.adj-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.adj-empty-state-small {
    padding: 40px 20px;
}

.adj-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #9ca3af;
}

.adj-empty-state h2 {
    color: #1f2937;
    margin: 0 0 12px 0;
    font-size: 24px;
}

.adj-empty-state p {
    color: #6b7280;
    margin: 0 0 24px 0;
    font-size: 16px;
}



.adj-empty-state-small p {
    margin: 0;
    font-size: 14px;
}

/* Progress */
.adj-progress-item {
    margin-bottom: 20px;
}

.adj-progress-item:last-child {
    margin-bottom: 0;
}

.adj-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.adj-progress-info span:first-child {
    color: #374151;
    font-weight: 500;
}

.adj-progress-value {
    color: #8B5CF6;
    font-weight: 600;
}

.adj-progress-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.adj-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6 0%, #7C3AED 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Info List */
.adj-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adj-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.adj-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.adj-info-label {
    color: #6b7280;
    font-size: 14px;
}

.adj-info-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
}

/* Link List */
.adj-link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adj-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.adj-link-item:hover {
    background: #f9fafb;
    color: #8B5CF6;
}

.adj-link-item svg {
    flex-shrink: 0;
}

/* Not Logged In */
.adj-not-logged-in {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal */
.adj-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.adj-modal {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: adjModalSlideIn 0.2s ease-out;
    font-family: var(--adj-font-family);
}

.adj-modal-large {
    max-width: 500px;
}

@keyframes adjModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adj-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adj-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.adj-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.adj-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.adj-modal-body {
    padding: 24px;
}

.adj-modal-body p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

.adj-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.adj-modal-footer .adj-btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Form Styles */
.adj-form-group {
    margin-bottom: 20px;
}

.adj-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.adj-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.adj-form-control:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.adj-form-control::placeholder {
    color: #9ca3af;
}

/* Spin Animation */
.adj-spin {
    animation: adjSpin 1s linear infinite;
}

@keyframes adjSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .adj-dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .adj-dashboard-wrap {
        padding: 20px 16px;
        margin: 20px auto;
    }
    
    .adj-dashboard-header {
        padding: 24px;
        border-radius: 12px;
    }
    
    .adj-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .adj-user-welcome {
        width: 100%;
    }
    
    .adj-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .adj-header-actions .adj-btn {
        width: 100%;
        justify-content: center;
    }
    
    .adj-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .adj-user-avatar {
        width: 56px;
        height: 56px;
    }
    
    .adj-avatar-text {
        font-size: 24px;
    }
    
    .adj-user-info h1 {
        font-size: 22px;
    }
    
    .adj-user-info p {
        font-size: 14px;
    }
}

/* کارت‌های میانگین */
.adj-card-tabs {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.adj-tab-btn {
    padding: 6px 16px;
    border: 2px solid #E5E7EB;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--adj-font-family);
}

.adj-tab-btn:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.adj-tab-btn.active {
    border-color: #8B5CF6;
    background: #8B5CF6;
    color: white;
}

.adj-average-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.adj-average-card {
    padding: 24px;
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.adj-card-tests {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.adj-card-study {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.adj-card-comparison {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.adj-average-label {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 16px;
    font-weight: 500;
}

.adj-average-value {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1;
}

.adj-average-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    opacity: 0.9;
}

.adj-average-detail strong {
    font-weight: 600;
    margin-right: 4px;
}

.adj-average-comparison {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adj-comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.adj-comparison-label {
    font-size: 14px;
    font-weight: 500;
}

.adj-comparison-value {
    font-size: 20px;
    font-weight: 700;
}

/* نمودارها */
.adj-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.adj-chart-container {
    background: #F9FAFB;
    padding: 20px;
    border-radius: 12px;
}

.adj-chart-container h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 16px 0;
}

.adj-chart-container canvas {
    max-height: 250px;
}

.adj-select-small {
    padding: 6px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.adj-select-small:hover {
    border-color: #8B5CF6;
}

.adj-select-small:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* حالت‌های بارگذاری و خطا */
.adj-loading-state,
.adj-error-state {
    text-align: center;
    padding: 40px 20px;
}

.adj-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid #E5E7EB;
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.adj-loading-state p,
.adj-error-state p {
    color: #6B7280;
    font-size: 14px;
    margin: 0;
}

.adj-error-state p {
    color: #EF4444;
}

/* Responsive */
@media (max-width: 768px) {
    .adj-average-grid,
    .adj-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .adj-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .adj-card-tabs,
    .adj-card-actions {
        width: 100%;
    }
    
    .adj-select-small {
        width: 100%;
    }
}

/* دکمه آیکون */
.adj-btn-icon {
    width: 105px;
    height: 44px;
    padding: 0 !important;
    min-width: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    border: 2px solid #E5E7EB;
    color: #6B7280;
    transition: all 0.2s;
}

.adj-btn-icon:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
    background: #F3F4F6;
}

/* Full Width Content */
.adj-dashboard-content-full {
    display: grid;
    gap: 24px;
}

/* اطلاعات کاربر در Modal */
.adj-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adj-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.adj-info-item:last-child {
    border-bottom: none;
}

.adj-info-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.adj-info-value {
    font-size: 14px;
    color: #1F2937;
    font-weight: 600;
}

/* Navigation Tabs */
.adj-nav-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    padding: 8px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.adj-nav-tab {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    font-family: var(--adj-font-family);
}

.adj-nav-tab svg {
    flex-shrink: 0;
}

.adj-nav-tab:hover {
    background: #F3F4F6;
    color: #8B5CF6;
}

.adj-nav-tab.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.adj-nav-tab.active svg {
    stroke: white;
}

/* Tab Contents */
.adj-tab-contents {
    position: relative;
}

.adj-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.adj-tab-content.active {
    display: block;
}

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

/* Empty State */
.adj-empty-state-small {
    text-align: center;
    padding: 60px 20px;
}

.adj-empty-state-small .adj-empty-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    border-radius: 50%;
}

.adj-empty-state-small .adj-empty-icon svg {
    stroke: #9CA3AF;
}

.adj-empty-state-small p {
    color: #6B7280;
    font-size: 15px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .adj-nav-tabs {
        gap: 8px;
        padding: 6px;
    }
    
    .adj-nav-tab {
        min-width: 120px;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .adj-nav-tab span {
        display: none;
    }
    
    .adj-nav-tab svg {
        margin: 0;
    }
}

/* Consultation Table */
.adj-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adj-consultation-table-wrap {
    overflow-x: auto;
}

.adj-consultation-table {
    width: 100%;
    border-collapse: collapse;
}

.adj-consultation-table thead th {
    background: #F9FAFB;
    padding: 12px 16px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #E5E7EB;
}

.adj-consultation-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #F3F4F6;
    font-size: 14px;
    color: #1F2937;
}

.adj-consultation-table tbody tr:hover {
    background: #F9FAFB;
}

.adj-empty-row td {
    padding: 0 !important;
    border: none !important;
}

.adj-empty-state-table {
    text-align: center;
    padding: 60px 20px;
}

.adj-empty-state-table svg {
    margin: 0 auto 16px;
    color: #9CA3AF;
}

.adj-empty-state-table p {
    color: #6B7280;
    font-size: 15px;
    margin: 0 0 20px 0;
}

.adj-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    max-width: 100px;
    text-align:center;
}

.adj-badge-online {
    background: #DBEAFE;
    color: #1E40AF;
}

.adj-badge-in-person {
    background: #FEE2E2;
    color: #991B1B;
}

.adj-badge-active {
    background: #D1FAE5;
    color: #065F46;
}

.adj-badge-expired {
    background: #FEE2E2;
    color: #991B1B;
}

.adj-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Packages Modal */
.adj-packages-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.adj-packages-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    animation: adjModalSlideIn 0.3s ease-out;
}

.adj-packages-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.adj-packages-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    font-family: var(--adj-font-family);
}

.adj-packages-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.adj-packages-modal-close:hover {
    background: #F3F4F6;
    color: #374151;
}

.adj-packages-modal-body {
    padding: 32px;
}

.adj-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
    gap: 24px;
}

.adj-package-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    font-family: var(--adj-font-family);
}

.adj-package-card:hover {
    border-color: #8B5CF6;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
    transform: translateY(-4px);
}

.adj-package-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    padding: 20px;
    color: white;
}

.adj-package-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.adj-package-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.adj-package-description {
    color: #6B7280;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.adj-package-features {
    margin-bottom: 16px;
    flex: 1;
}

.adj-package-features h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 10px 0;
}

.adj-package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.adj-package-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    color: #374151;
    font-size: 13px;
    line-height: 1.5;
}

.adj-package-features li svg {
    flex-shrink: 0;
    stroke: #10B981;
    margin-top: 2px;
}

.adj-package-pricing {
    border-top: 1px solid #E5E7EB;
    padding-top: 16px;
}

.adj-package-pricing h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 12px 0;
}

.adj-pricing-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adj-pricing-option {
    padding: 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.2s;
}

.adj-pricing-option:hover {
    border-color: #8B5CF6;
    background: #F3F4F6;
}

.adj-pricing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.adj-pricing-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
}

.adj-pricing-time svg {
    width: 14px;
    height: 14px;
    stroke: #6B7280;
}

.adj-pricing-price {
    font-size: 16px;
    font-weight: 700;
    color: #8B5CF6;
}

.adj-price-currency {
    font-size: 11px;
    font-weight: 500;
    color: #6B7280;
    margin-right: 2px;
}

.adj-pricing-details {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.adj-pricing-type,
.adj-pricing-consultant {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.adj-pricing-type-online {
    background: #DBEAFE;
    color: #1E40AF;
}

.adj-pricing-type-in-person {
    background: #FEE2E2;
    color: #991B1B;
}

.adj-pricing-consultant-consultant {
    background: #D1FAE5;
    color: #065F46;
}

.adj-pricing-consultant-manager {
    background: #FEF3C7;
    color: #92400E;
}

.adj-btn-select-package {
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .adj-packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .adj-packages-modal-content {
        max-height: 95vh;
    }
    
    .adj-packages-modal-header {
        padding: 20px;
    }
    
    .adj-packages-modal-body {
        padding: 20px;
    }
    
    .adj-packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .adj-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .adj-card-header .adj-btn {
        width: 100%;
    }
    
    .adj-consultation-table-wrap {
        overflow-x: scroll;
    }
    
    .adj-consultation-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .adj-packages-grid {
        grid-template-columns: 1fr;
    }
}

/* Action Buttons */
.adj-action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.adj-badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

/* Invoice Modal */
.adj-invoice-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.adj-invoice-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: adjModalSlideIn 0.3s ease-out;
    font-family: var(--adj-font-family);
}

.adj-invoice-modal-header {
    padding: 24px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adj-invoice-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
}

.adj-invoice-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.adj-invoice-modal-close:hover {
    background: #F3F4F6;
    color: #374151;
}

.adj-invoice-modal-body {
    padding: 24px;
}

.adj-invoice-info-section {
    margin-bottom: 24px;
}

.adj-invoice-info-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #E5E7EB;
}

.adj-invoice-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.adj-invoice-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.adj-invoice-info-label {
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}

.adj-invoice-info-value {
    font-size: 15px;
    color: #1F2937;
    font-weight: 600;
}

.adj-invoice-pricing-section {
    background: #F9FAFB;
    padding: 20px;
    border-radius: 12px;
}

.adj-invoice-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #374151;
}

.adj-invoice-pricing-row.adj-discount {
    color: #10B981;
}

.adj-invoice-pricing-row.adj-final {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid #E5E7EB;
    font-size: 18px;
    font-weight: 700;
}

.adj-invoice-pricing-row.adj-final .adj-invoice-info-value {
    color: #8B5CF6;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .adj-action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .adj-action-buttons .adj-btn {
        width: 100%;
        justify-content: center;
    }
    
    .adj-invoice-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Checkout Page */
.adj-checkout-wrap {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: var(--adj-font-family);
}

.adj-checkout-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.adj-checkout-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    padding: 32px;
    color: white;
    text-align: center;
}

.adj-checkout-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.adj-checkout-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.adj-checkout-content {
    padding: 32px;
}

.adj-checkout-section {
    margin-bottom: 32px;
}

.adj-checkout-section:last-child {
    margin-bottom: 0;
}

.adj-checkout-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #E5E7EB;
}

.adj-invoice-details-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
}

.adj-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.adj-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.adj-detail-row:first-child {
    padding-top: 0;
}

.adj-detail-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.adj-detail-value {
    font-size: 15px;
    color: #1F2937;
    font-weight: 600;
}

.adj-discount-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
}

.adj-discount-input-group {
    display: flex;
    gap: 12px;
}

.adj-discount-input-group .adj-form-control {
    flex: 1;
}

.adj-discount-success {
    margin: 12px 0 0 0;
    padding: 12px;
    background: #D1FAE5;
    border: 1px solid #10B981;
    border-radius: 8px;
    color: #065F46;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adj-discount-success svg {
    flex-shrink: 0;
    stroke: #10B981;
}

.adj-payment-summary {
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
}

.adj-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: #374151;
}

.adj-summary-row.adj-discount-row {
    color: #10B981;
}

.adj-summary-row.adj-total-row {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid #E5E7EB;
    font-size: 18px;
    font-weight: 700;
}

.adj-total-amount {
    color: #8B5CF6;
    font-size: 22px;
}

.adj-checkout-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.adj-btn-large {
    padding: 14px 32px;
    font-size: 16px;
    flex: 1;
}

.adj-checkout-actions .adj-btn-outline {
    flex: 0 0 auto;
    min-width: 120px;
}

/* Responsive */
@media (max-width: 768px) {
    .adj-checkout-wrap {
        margin: 20px auto;
        padding: 16px;
    }
    
    .adj-checkout-content {
        padding: 24px 20px;
    }
    
    .adj-checkout-actions {
        flex-direction: column-reverse;
    }
    
    .adj-checkout-actions .adj-btn {
        width: 100%;
    }
    
    .adj-discount-input-group {
        flex-direction: column;
    }
}

/* Payment Result Page */
.adj-result-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 48px 32px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.adj-result-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.adj-success-icon {
    background: #D1FAE5;
    color: #10B981;
}

.adj-failed-icon {
    background: #FEE2E2;
    color: #EF4444;
}

.adj-result-container h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1F2937;
}

.adj-result-message {
    font-size: 16px;
    color: #6B7280;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.adj-result-details {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: right;
}

.adj-result-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
    font-size: 15px;
}

.adj-result-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.adj-result-detail-item:first-child {
    padding-top: 0;
}

.adj-result-detail-item span {
    color: #6B7280;
}

.adj-result-detail-item strong {
    color: #1F2937;
    font-weight: 600;
}

.adj-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.adj-result-actions .adj-btn {
    min-width: 180px;
}

/* Responsive */
@media (max-width: 768px) {
    .adj-result-container {
        padding: 32px 24px;
    }
    
    .adj-result-actions {
        flex-direction: column;
    }
    
    .adj-result-actions .adj-btn {
        width: 100%;
    }
}

/* Purchase History Styles */
.adj-package-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.adj-package-info strong {
    font-weight: 600;
    color: var(--adj-text-primary);
}

.adj-package-info small {
    font-size: 0.875rem;
    color: var(--adj-text-secondary);
}

.adj-end-date-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.adj-remaining-days {
    font-size: 0.875rem;
    color: var(--adj-primary);
    font-weight: 500;
}

.adj-badge-expired {
    background-color: #fee;
    color: #c33;
}

.adj-badge-completed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.adj-badge-default {
    background-color: #f5f5f5;
    color: #666;
}

/* ============================================
   Checkout Page Styles
   ============================================ */

.adj-checkout-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.adj-checkout-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.adj-checkout-header {
    background: linear-gradient(135deg, var(--adj-primary) 0%, var(--adj-primary-dark) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.adj-checkout-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.adj-checkout-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.adj-checkout-content {
    padding: 2rem;
}

.adj-checkout-section {
    margin-bottom: 2rem;
}

.adj-checkout-section:last-child {
    margin-bottom: 0;
}

.adj-checkout-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--adj-text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--adj-border);
}

/* Invoice Details Box */
.adj-invoice-details-box {
    background: var(--adj-bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
}

.adj-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--adj-border);
}

.adj-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.adj-detail-label {
    font-weight: 500;
    color: var(--adj-text-secondary);
}

.adj-detail-value {
    font-weight: 600;
    color: var(--adj-text-primary);
}

/* Discount Box */
.adj-discount-box {
    background: var(--adj-bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
}

.adj-discount-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.adj-discount-input-group input {
    flex: 1;
    min-width: 0;
}

.adj-discount-input-group .adj-form-control {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--adj-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.adj-discount-input-group .adj-form-control:focus {
    border-color: var(--adj-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.adj-discount-input-group .adj-form-control:read-only {
    background-color: var(--adj-bg-tertiary);
    cursor: not-allowed;
}

.adj-discount-input-group .adj-btn {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
}

.adj-discount-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--adj-success);
    font-size: 0.875rem;
    margin: 0;
    padding: 0.75rem;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 6px;
}

.adj-discount-success svg {
    flex-shrink: 0;
}

/* Payment Summary */
.adj-payment-summary {
    background: var(--adj-bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
}

.adj-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
}

.adj-summary-row.adj-discount-row {
    color: var(--adj-success);
}

.adj-summary-row.adj-total-row {
    border-top: 2px solid var(--adj-border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.adj-total-amount {
    color: var(--adj-primary);
    font-size: 1.5rem;
}

.adj-discount-amount {
    font-weight: 600;
}

/* Checkout Actions */
.adj-checkout-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--adj-border);
}

.adj-checkout-actions .adj-btn {
    min-width: 150px;
}

.adj-checkout-actions .adj-btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Result Container */
.adj-result-container {
    padding: 3rem 2rem;
    text-align: center;
}

.adj-result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adj-success-icon {
    background: rgba(46, 125, 50, 0.1);
    color: var(--adj-success);
}

.adj-failed-icon {
    background: rgba(211, 47, 47, 0.1);
    color: var(--adj-error);
}

.adj-result-container h1 {
    font-size: 1.75rem;
    margin: 0 0 1rem 0;
    color: var(--adj-text-primary);
}

.adj-result-message {
    font-size: 1.125rem;
    color: var(--adj-text-secondary);
    margin: 0 0 2rem 0;
}

.adj-result-details {
    background: var(--adj-bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: right;
}

.adj-result-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--adj-border);
}

.adj-result-detail-item:last-child {
    border-bottom: none;
}

.adj-result-detail-item span {
    color: var(--adj-text-secondary);
}

.adj-result-detail-item strong {
    color: var(--adj-text-primary);
    font-weight: 600;
}

.adj-result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .adj-checkout-wrap {
        padding: 1rem 0.5rem;
    }
    
    .adj-checkout-content {
        padding: 1.5rem 1rem;
    }
    
    .adj-checkout-header h1 {
        font-size: 1.5rem;
    }
    
    .adj-discount-input-group {
        flex-direction: column;
    }
    
    .adj-discount-input-group .adj-btn {
        width: 100%;
    }
    
    .adj-checkout-actions {
        flex-direction: column-reverse;
    }
    
    .adj-checkout-actions .adj-btn {
        width: 100%;
    }
    
    .adj-result-actions {
        flex-direction: column;
    }
    
    .adj-result-actions .adj-btn {
        width: 100%;
    }
}

/* Spin Animation for Loading */
@keyframes adj-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.adj-spin {
    animation: adj-spin 1s linear infinite;
}

/* ============================================
   Simple Checkout Styles
   ============================================ */

.adj-checkout-simple {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    font-family: var(--adj-font-family);
}

.adj-checkout-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.adj-checkout-title h2 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}

.adj-package-info-simple {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.adj-package-info-simple h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.adj-package-details {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.adj-discount-simple {
    margin-bottom: 24px;
}

.adj-discount-simple label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.adj-discount-flex {
    display: flex;
    gap: 8px;
}

.adj-discount-flex input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: var(--adj-font-family);
}

.adj-discount-flex input:focus {
    outline: none;
    border-color: var(--adj-primary);
}

.adj-discount-flex button {
    padding: 12px 24px;
    background: var(--adj-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--adj-font-family);
}

.adj-discount-flex button:hover {
    background: var(--adj-primary-dark);
}

.adj-discount-success-simple {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.adj-payment-summary-simple {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.adj-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.adj-summary-item.adj-discount-item {
    color: #2e7d32;
}

.adj-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 2px solid #e0e0e0;
    font-size: 16px;
}

.adj-summary-total strong {
    font-size: 24px;
    font-weight: 700;
    color: var(--adj-primary);
}

.adj-checkout-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adj-btn-pay-simple {
    width: 100%;
    padding: 16px;
    background: var(--adj-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    /* display: block; */
    font-family:var(--adj-font-family);
}

.adj-btn-pay-simple:hover {
    background: var(--adj-primary-dark);
}

.adj-btn-cancel-simple {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
}

.adj-btn-cancel-simple:hover {
    background: #f8f9fa;
}

@media (max-width: 600px) {
    .adj-checkout-simple {
        margin: 20px auto;
        padding: 10px;
    }
    
    .adj-checkout-card {
        padding: 20px;
    }
}
