/**
 * Frontend CSS for Reseller Affiliate System
 * Modern, Professional, and Mobile-Responsive Dashboard
 */

/* Reset and Base Styles */
.ras-form-container,
.ras-modern-dashboard,
.ras-modal-content {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ras-form-container *,
.ras-modern-dashboard *,
.ras-modal-content * {
    box-sizing: inherit;
}

/* Hide page title for dashboard */
.ras-modern-dashboard ~ h1.entry-title,
.ras-modern-dashboard + h1.entry-title {
    display: none !important;
}

/* Dashboard Container */
.ras-dashboard-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: #f8fafc;
    min-height: 100vh;
    position: relative;
}

/* Modern Dashboard Layout */
.ras-modern-dashboard {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Mobile Header */
.ras-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ras-mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    height: 100%;
    gap: 16px;
}

.ras-mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.ras-mobile-menu-toggle:hover {
    background-color: #f3f4f6;
}

.ras-mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #374151;
    margin: 2px 0;
    transition: 0.3s;
}

.ras-mobile-logo h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.ras-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Modern Sidebar */
.ras-modern-sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100vh;
    z-index: 10;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
    flex-shrink: 0;
}

.ras-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ras-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ras-logo-icon {
    font-size: 24px;
}

.ras-logo h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.ras-sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.ras-sidebar-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* User Profile Section */
.ras-user-profile {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.ras-user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0 auto 12px;
}

.ras-user-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.ras-user-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #6b7280;
}

.ras-user-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ras-user-status.active {
    background: #d1fae5;
    color: #065f46;
}

.ras-user-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Sidebar Navigation */
.ras-sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.ras-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ras-sidebar-nav li {
    margin: 0;
}

.ras-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.ras-nav-link:hover {
    background: #f8fafc;
    color: #374151;
    text-decoration: none;
}

.ras-nav-link.active {
    background: #f0f9ff;
    color: #7ad03a;
    border-left-color: #7ad03a;
    font-weight: 500;
}

.ras-nav-link .ras-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.ras-nav-link span {
    font-size: 14px;
}

/* Sidebar Footer */
.ras-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.ras-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.ras-logout-btn:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

/* Main Content */
.ras-main-content {
    flex: 1;
    padding: 32px;
    overflow-x: hidden;
    min-width: 0; /* Prevents flex item from overflowing */
}

/* Activation Banner */
.ras-activation-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.ras-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ras-banner-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ras-banner-text {
    flex: 1;
}

.ras-banner-text h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
}

.ras-banner-text p {
    margin: 0;
    font-size: 14px;
    color: #a16207;
}

.ras-banner-btn {
    background: #7ad03a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ras-banner-btn:hover {
    background: #5cb32a;
    transform: translateY(-1px);
}

/* Tab Content */
.ras-tab-content {
    display: none;
}

.ras-tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header */
.ras-page-header {
    margin-bottom: 32px;
}

.ras-page-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.ras-page-header p {
    margin: 0;
    font-size: 16px;
    color: #6b7280;
}

/* Stats Grid */
.ras-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.ras-stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.ras-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e2e8f0, #e2e8f0);
}

.ras-stat-card.primary::before {
    background: linear-gradient(90deg, #7ad03a, #5cb32a);
}

.ras-stat-card.success::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.ras-stat-card.info::before {
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

.ras-stat-card.warning::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.ras-stat-card.commission::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.ras-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Icon styles removed - no longer needed */

.ras-stat-content {
    flex: 1;
}

.ras-stat-content h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ras-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.ras-stat-value span {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.ras-stat-trend {
    font-size: 12px;
    font-weight: 500;
}

.ras-stat-trend.positive {
    color: #059669;
}

.ras-stat-trend.negative {
    color: #dc2626;
}

.ras-stat-trend.neutral {
    color: #6b7280;
}

/* Quick Actions */
.ras-quick-actions {
    margin-bottom: 32px;
}

.ras-quick-actions h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.ras-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.ras-action-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.ras-action-card:hover {
    border-color: #7ad03a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(122, 208, 58, 0.15);
}

.ras-action-card.disabled {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
}

.ras-action-card.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
}

.ras-action-card.disabled .ras-action-icon {
    opacity: 0.7;
}

.ras-action-card.disabled .ras-action-content h4 {
    color: #6c757d !important;
}

.ras-action-card.disabled .ras-action-content p {
    color: #adb5bd !important;
}

.ras-action-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    flex-shrink: 0;
}

.ras-action-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.ras-action-content p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

/* Recent Activity */
.ras-recent-activity {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.ras-recent-activity h3 {
    margin: 0;
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e2e8f0;
}

.ras-activity-list {
    padding: 0;
}

.ras-activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.ras-activity-item:last-child {
    border-bottom: none;
}

.ras-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ras-activity-icon.deposit {
    background: #dbeafe;
    color: #1d4ed8;
}

.ras-activity-icon.withdrawal {
    background: #fef3c7;
    color: #d97706;
}

.ras-activity-icon.commission {
    background: #d1fae5;
    color: #059669;
}

.ras-activity-icon.activation_fee {
    background: #e0e7ff;
    color: #5b21b6;
}

.ras-activity-content {
    flex: 1;
}

.ras-activity-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.ras-activity-content p {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: #6b7280;
}

.ras-activity-content small {
    font-size: 12px;
    color: #9ca3af;
}

.ras-activity-empty {
    padding: 40px 24px;
    text-align: center;
}

.ras-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ras-activity-empty p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Wallet Section */
.ras-wallet-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.ras-wallet-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.ras-wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.ras-wallet-card.balance::before {
    background: linear-gradient(90deg, #7ad03a, #5cb32a);
}

.ras-wallet-card.earned::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.ras-wallet-card.withdrawn::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.ras-wallet-icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    flex-shrink: 0;
}

.ras-wallet-info h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ras-wallet-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

/* Wallet Actions */
.ras-wallet-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.ras-wallet-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.ras-wallet-btn:hover {
    border-color: #7ad03a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(122, 208, 58, 0.15);
}

.ras-wallet-btn.deposit:hover {
    border-color: #7ad03a;
    box-shadow: 0 8px 25px rgba(122, 208, 58, 0.15);
}

.ras-wallet-btn.withdraw:hover {
    border-color: #7ad03a;
    box-shadow: 0 8px 25px rgba(122, 208, 58, 0.15);
}

.ras-wallet-btn.disabled {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
}

.ras-wallet-btn.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.ras-wallet-btn.disabled .ras-btn-icon {
    background: #e9ecef !important;
    opacity: 0.7;
}

.ras-wallet-btn.disabled .ras-btn-content h4 {
    color: #6c757d !important;
}

.ras-wallet-btn.disabled .ras-btn-content p {
    color: #adb5bd !important;
}

.ras-btn-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    flex-shrink: 0;
}

.ras-btn-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.ras-btn-content p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Transaction History */
.ras-transaction-history {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.ras-transaction-history h3 {
    margin: 0;
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e2e8f0;
}

/* Modern Table */
.ras-table-container {
    overflow-x: auto;
}

.ras-modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.ras-modern-table th,
.ras-modern-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.ras-modern-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ras-modern-table tbody tr:hover {
    background: #f8fafc;
}

.ras-modern-table .ras-amount {
    font-weight: 600;
    color: #059669;
}

.ras-transaction-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ras-transaction-type.deposit {
    background: #dcfce7;
    color: #7ad03a;
}

.ras-transaction-type.withdrawal {
    background: #fef3c7;
    color: #d97706;
}

.ras-transaction-type.commission {
    background: #d1fae5;
    color: #059669;
}

.ras-transaction-type.activation_fee {
    background: #e0e7ff;
    color: #5b21b6;
}

/* Status Badges */
.ras-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ras-status-pending {
    background: #ffc107;
    color: #212529;
}

.ras-status-approved {
    background: #d1fae5;
    color: #059669;
}

.ras-status-rejected {
    background: #fee2e2;
    color: #dc2626;
}

.ras-table-empty {
    text-align: center;
    padding: 40px !important;
}

.ras-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ras-empty-state .ras-empty-icon {
    font-size: 48px;
    opacity: 0.5;
}

.ras-empty-state p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Referral Section */
.ras-referral-section {
    margin-bottom: 32px;
}

.ras-referral-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.ras-referral-link-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

.ras-link-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.ras-link-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 14px;
    color: #374151;
}

.ras-copy-btn {
    padding: 12px 20px;
    background: #7ad03a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.ras-copy-btn:hover {
    background: #5cb32a;
    transform: translateY(-1px);
}

.ras-copy-btn.copied {
    background: #4a9622;
}

.ras-link-description {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Level Statistics */
.ras-level-stats {
    margin-bottom: 32px;
}

.ras-level-stats h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.ras-level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.ras-level-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.ras-level-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ras-level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ras-level-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.ras-level-badge {
    background: #7ad03a;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ras-level-commission {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
    margin: 0 0 4px 0;
}

.ras-level-content small {
    font-size: 12px;
    color: #6b7280;
}

/* Genealogy Container */
.ras-genealogy-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.ras-genealogy-placeholder {
    max-width: 400px;
    margin: 0 auto;
}

.ras-placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ras-genealogy-placeholder h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.ras-genealogy-placeholder p {
    margin: 0 0 8px 0;
    color: #6b7280;
    line-height: 1.5;
}

/* Transaction Filters */
.ras-transaction-filters {
    margin-bottom: 24px;
}

.ras-filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ras-filter-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #374151;
    min-width: 120px;
}

/* Settings Section */
.ras-settings-section {
    max-width: 800px;
}

.ras-settings-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

/* Profile Form Styles */
.ras-profile-form {
    margin-top: 20px;
}

.ras-profile-form .ras-form-group {
    margin-bottom: 20px;
}

.ras-profile-form .ras-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.ras-profile-form .ras-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.ras-profile-form .ras-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ras-profile-form .ras-form-group input:disabled {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.ras-profile-form .ras-form-group small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.ras-profile-form .ras-form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.ras-profile-form .ras-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ras-profile-form .ras-btn-primary {
    background: #3b82f6;
    color: white;
}

.ras-profile-form .ras-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.ras-profile-form .ras-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.ras-profile-form .ras-btn-spinner {
    animation: ras-spin 1s linear infinite;
}

@keyframes ras-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ras-settings-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

/* Settings Layout */
.ras-settings-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.ras-settings-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ras-settings-block {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.ras-settings-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ras-settings-block h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ras-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ras-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.ras-info-row:last-child {
    border-bottom: none;
}

.ras-info-key {
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
}

.ras-info-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.ras-security-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ras-security-row {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.ras-security-row:last-child {
    border-bottom: none;
}

.ras-security-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ras-security-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
}

.ras-security-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ras-security-title {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
}

.ras-security-status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ras-security-status.active {
    background: #d1fae5;
    color: #065f46;
}

.ras-activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ras-activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.ras-activity-row:last-child {
    border-bottom: none;
}

.ras-activity-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ras-activity-dot.registration {
    background: #3b82f6;
}

.ras-activity-dot.activation {
    background: #10b981;
}

.ras-activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ras-activity-title {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
}

.ras-activity-time {
    font-size: 12px;
    color: #6b7280;
}

.ras-quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ras-quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s;
}

.ras-quick-action-btn:hover {
    background: #e2e8f0;
    transform: translateX(4px);
    text-decoration: none;
    color: #1f2937;
}

.ras-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ras-info-item label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ras-info-item p {
    margin: 0;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

/* Responsive Settings */
@media (max-width: 768px) {
    .ras-settings-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ras-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .ras-security-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Alerts */
.ras-alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    border-left: 4px solid;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ras-alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: #10b981;
}

.ras-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left-color: #f59e0b;
}

.ras-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.ras-alert-info {
    background: #dcfce7;
    color: #16a34a;
    border-left-color: #7ad03a;
}

/* Buttons */
.ras-btn {
    background: linear-gradient(135deg, #7ad03a, #5cb32a);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.ras-btn:hover {
    background: linear-gradient(135deg, #5cb32a, #4a9622);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122, 208, 58, 0.4);
    text-decoration: none;
    color: white;
}

.ras-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.ras-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 20px 0;
}

.ras-modal-content {
    background-color: white;
    margin: 0 auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #7ad03a #f1f1f1;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar for webkit browsers */
.ras-modal-content::-webkit-scrollbar {
    width: 6px;
}

.ras-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ras-modal-content::-webkit-scrollbar-thumb {
    background: #7ad03a;
    border-radius: 3px;
}

.ras-modal-content::-webkit-scrollbar-thumb:hover {
    background: #5cb32a;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ras-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #9ca3af;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.ras-modal-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.ras-modal h3 {
    margin: 0;
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.ras-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #7ad03a #f1f1f1;
}

/* Scrollbar styles for modal body */
.ras-modal-body::-webkit-scrollbar {
    width: 6px;
}

.ras-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ras-modal-body::-webkit-scrollbar-thumb {
    background: #7ad03a;
    border-radius: 3px;
}

.ras-modal-body::-webkit-scrollbar-thumb:hover {
    background: #5cb32a;
}

/* Form Styles */
.ras-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.ras-form-group {
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ras-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ras-form-group input,
.ras-form-group select,
.ras-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background-color: #ffffff;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ras-form-group input:focus,
.ras-form-group select:focus,
.ras-form-group textarea:focus {
    outline: none;
    border-color: #7ad03a;
    box-shadow: 0 0 0 3px rgba(122, 208, 58, 0.1);
}

/* Mobile Responsive */
/* Button Spinner */
.ras-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: ras-spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes ras-spin {
    to { transform: rotate(360deg); }
}

/* Alert Styles for Instructions */
.ras-alert {
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid;
}

.ras-alert-info {
    background: #dcfce7;
    color: #16a34a;
    border-left-color: #7ad03a;
}

.ras-alert-warning {
    background: #fef3c7;
    color: #d97706;
    border-left-color: #f59e0b;
}

.ras-alert-success {
    background: #dcfce7;
    color: #16a34a;
    border-left-color: #22c55e;
}

.ras-alert-error {
    background: #fee2e2;
    color: #dc2626;
    border-left-color: #ef4444;
}

.ras-alert h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.ras-alert p {
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.ras-alert ol {
    margin: 8px 0;
    padding-left: 20px;
}

.ras-alert ol li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.ras-alert ul {
    margin: 8px 0;
    padding-left: 20px;
}

.ras-alert ul li {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Payment Instructions */
.payment-instruction,
.withdrawal-instruction,
.activation-instruction {
    margin-top: 12px;
}

.payment-instruction h4,
.activation-instruction h4,
.withdrawal-instruction h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.payment-instruction ol,
.activation-instruction ol,
.withdrawal-instruction ul {
    margin: 15px 0;
    padding-left: 20px;
}

.payment-instruction li,
.activation-instruction li,
.withdrawal-instruction li {
    margin: 8px 0;
    line-height: 1.5;
}

.payment-instruction p:last-child,
.activation-instruction p:last-child {
    margin: 15px 0 0 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #7ad03a;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

/* Manual payment instructions container */
#manual-payment-instructions {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#manual-payment-instructions .ras-alert-info {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 16px;
}

#manual-payment-instructions ol {
    padding-left: 20px;
    margin: 12px 0;
}

#manual-payment-instructions li {
    margin: 8px 0;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Form Small Text */
.ras-form-group small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

/* Activation Modal Styles */
.ras-activation-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #7ad03a;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ras-activation-info p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ras-activation-info p:first-child {
    margin-top: 0;
}

.ras-activation-info p:last-child {
    margin-bottom: 0;
}

/* Wallet payment info styles */
#wallet-payment-info .ras-alert-info {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#wallet-payment-info .ras-alert-info p {
    margin: 10px 0;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#wallet-payment-info .ras-alert-info h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Payment Method Specific Styles */
#upay-instructions h4,
#upay-activation-instructions h4,
#upay-withdrawal-info h4 {
    color: #00b894;
}

#bank-instructions h4,
#bank-activation-instructions h4,
#bank-withdrawal-info h4 {
    color: #2d3436;
}

/* Bank Details Styling */
.payment-instruction .bank-details,
.activation-instruction .bank-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 4px solid #2d3436;
}

.payment-instruction .bank-details p,
.activation-instruction .bank-details p {
    margin: 5px 0;
    color: #2d3436;
}

.payment-instruction .bank-details span,
.activation-instruction .bank-details span {
    font-weight: bold;
    color: #2d3436;
}

/* Upay Merchant Number Styling */
.payment-instruction .upay-merchant-number {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 4px solid #00b894;
}

.payment-instruction .upay-merchant-number span {
    font-weight: bold;
    color: #00b894;
}

/* Payment Method Icons */
.ras-payment-method-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 3px;
}

.ras-payment-method-icon.upay {
    background: #00b894;
}

.ras-payment-method-icon.bank {
    background: #2d3436;
}

@media (max-width: 768px) {
    .ras-mobile-header {
        display: flex;
    }
    
    .ras-mobile-header-content {
        padding: 0 16px;
        gap: 12px;
    }
    
    .ras-mobile-menu-toggle {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .ras-user-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .ras-modern-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
    }
    
    .ras-modern-sidebar.active {
        left: 0;
    }
    
    .ras-sidebar-close {
        display: block;
    }
    
    .ras-main-content {
        margin-left: 0;
        padding-top: 80px;
        width: 100%;
    }
    
    body.ras-sidebar-open {
        overflow: hidden;
    }
    
    .ras-modern-dashboard {
        flex-direction: column;
    }
    
    .ras-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ras-stat-card {
        padding: 20px;
        text-align: center;
    }
    
    .ras-stat-value {
        font-size: 22px;
    }
    
    .ras-stat-content h3 {
        font-size: 13px;
    }
    
    .ras-action-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ras-action-card {
        padding: 16px;
    }
    
    .ras-action-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .ras-action-content h4 {
        font-size: 13px;
    }
    
    .ras-action-content p {
        font-size: 11px;
    }
    
    .ras-wallet-summary {
        grid-template-columns: 1fr;
    }
    
    .ras-wallet-actions {
        grid-template-columns: 1fr;
    }
    
    .ras-level-grid {
        grid-template-columns: 1fr;
    }
    
    .ras-page-header h1 {
        font-size: 24px;
    }
    
    .ras-activation-banner {
        margin: 0 -10px 20px;
    }
    
    .ras-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .ras-table-container {
        overflow-x: auto;
        margin: 0 -20px;
        padding: 0 20px;
    }
    
    .ras-modern-table {
        min-width: 600px;
    }
    
    .ras-filter-group {
        flex-direction: column;
    }
    
    .ras-filter-select {
        margin-bottom: 10px;
    }
    
    .ras-link-input-group {
        flex-direction: column;
    }
    
    .ras-copy-btn {
        margin-top: 10px;
    }
    
    .ras-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ras-main-content {
        padding: 80px 10px 20px;
    }
    
    .ras-mobile-header-content {
        padding: 0 12px;
        gap: 10px;
    }
    
    .ras-mobile-menu-toggle {
        width: 36px;
        height: 36px;
        padding: 8px;
    }
    
    .ras-user-avatar {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .ras-stat-card,
    .ras-action-card {
        padding: 15px;
    }
    
    .ras-action-grid {
        gap: 10px;
    }
    
    .ras-action-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .ras-action-content h4 {
        font-size: 12px;
    }
    
    .ras-action-content p {
        font-size: 10px;
    }
    
    .ras-stat-value {
        font-size: 20px;
    }
    
    .ras-modal {
        padding: 10px;
    }
    
    .ras-modal-content {
        max-height: 90vh;
        width: 100%;
        margin: 0;
        border-radius: 8px;
    }
    
    .ras-modal h3 {
        font-size: 18px;
    }
    
    .ras-modal-body {
        max-height: 70vh;
    }
    
    .ras-activation-info {
        padding: 15px;
    }
    
    .ras-activation-info p {
        font-size: 14px;
    }
    
    #wallet-payment-info .ras-alert-info {
        padding: 15px;
    }
    
    #wallet-payment-info .ras-alert-info h4 {
        font-size: 16px;
    }
    
    #wallet-payment-info .ras-alert-info p {
        font-size: 14px;
    }
    
    .ras-genealogy-container {
        padding: 10px;
    }
    
    .ras-placeholder-icon {
        font-size: 48px;
    }
}

/* Print Styles */
@media print {
    .ras-modern-sidebar,
    .ras-mobile-header,
    .ras-action-grid,
    .ras-wallet-actions {
        display: none !important;
    }
    
    .ras-main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .ras-modern-dashboard {
        background: white !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .ras-stat-card,
    .ras-action-card,
    .ras-wallet-card {
        border-width: 2px;
    }
    
    .ras-nav-link.active {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Order Management Styles */
.ras-order-filters {
    margin-bottom: 20px;
}

.ras-order-summary {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.ras-order-summary h3 {
    margin-top: 0;
    color: #0073aa;
    margin-bottom: 20px;
}

.ras-order-summary .ras-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.ras-order-summary .ras-stat-card {
    background: white;
    border: 1px solid #dee2e6;
    padding: 20px;
}

.ras-order-summary .ras-stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.ras-order-summary .ras-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Order Status Colors */
.ras-status-completed {
    background: #28a745;
    color: white;
}

.ras-status-processing {
    background: #007bff;
    color: white;
}

.ras-status-pending {
    background: #ffc107;
    color: #212529;
}

.ras-status-cancelled {
    background: #dc3545;
    color: white;
}

.ras-status-refunded {
    background: #6c757d;
    color: white;
}

.ras-status-on-hold {
    background: #fd7e14;
    color: white;
}

/* Order Modal Improvements */
.ras-order-info .ras-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ras-order-info .ras-info-item label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    display: block;
}

.ras-order-info .ras-info-item p {
    margin: 0;
    color: #212529;
}

/* Responsive Order Management */
@media (max-width: 768px) {
    .ras-order-summary .ras-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .ras-order-summary .ras-stat-value {
        font-size: 18px;
    }
    
    .ras-order-info .ras-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .ras-order-summary .ras-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RANK SYSTEM STYLES
   ============================================ */

/* User Badge Container */
.ras-user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
    align-items: center;
}

/* Rank Badge Styles */
.ras-user-rank {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    min-width: 60px;
}

.ras-user-rank.no-rank {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
}

.ras-user-rank.rank-level-1 { background: linear-gradient(45deg, #17a2b8, #138496); color: white; }
.ras-user-rank.rank-level-2 { background: linear-gradient(45deg, #28a745, #1e7e34); color: white; }
.ras-user-rank.rank-level-3 { background: linear-gradient(45deg, #ffc107, #e0a800); color: #212529; }
.ras-user-rank.rank-level-4 { background: linear-gradient(45deg, #fd7e14, #e05d00); color: white; }
.ras-user-rank.rank-level-5 { background: linear-gradient(45deg, #dc3545, #c82333); color: white; }
.ras-user-rank.rank-level-6 { background: linear-gradient(45deg, #6f42c1, #5a32a3); color: white; }
.ras-user-rank.rank-level-7 { background: linear-gradient(45deg, #e83e8c, #d91a72); color: white; }
.ras-user-rank.rank-level-8 { background: linear-gradient(45deg, #20c997, #17a085); color: white; }
.ras-user-rank.rank-level-9 { background: linear-gradient(45deg, #fd7e14, #e05d00); color: white; }
.ras-user-rank.rank-level-10 { 
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700); 
    color: #212529; 
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    border: 2px solid #f39c12;
}

/* Rank Status Card */
.ras-rank-status-card {
    background: linear-gradient(135deg, #0A5A00C7 0%, #0A5A00 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.ras-rank-status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ras-rank-current {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.ras-rank-badge-large {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    min-width: 150px;
}

.ras-rank-level {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.ras-rank-name {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.ras-rank-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.ras-rank-info p {
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.9;
}

/* Progress Section */
.ras-rank-progress-section {
    position: relative;
    z-index: 1;
}

.ras-progress-info h4 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.ras-progress-info p {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.ras-progress-bar-container {
    margin-top: 20px;
}

.ras-progress-bar {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    height: 16px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ras-progress-fill {
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    height: 100%;
    border-radius: 20px;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(0,255,136,0.5);
}

.ras-progress-text {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

/* Max Rank Section */
.ras-rank-maxed {
    text-align: center;
    position: relative;
    z-index: 1;
}

.ras-maxed-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: crown-glow 2s ease-in-out infinite alternate;
}

@keyframes crown-glow {
    0% { transform: scale(1); text-shadow: 0 0 10px rgba(255,215,0,0.5); }
    100% { transform: scale(1.1); text-shadow: 0 0 20px rgba(255,215,0,0.8); }
}

.ras-rank-maxed h4 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Rank Overview */
.ras-rank-overview {
    margin-bottom: 30px;
}

.ras-rank-overview h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.ras-ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ras-rank-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ras-rank-item.achieved {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.ras-rank-item.locked {
    opacity: 0.6;
}

.ras-rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ras-rank-item.achieved:hover {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.25);
}

.ras-rank-level-badge {
    background: #0073aa;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 15px;
}

.ras-rank-item.achieved .ras-rank-level-badge {
    background: #28a745;
    color: white;
}

.ras-rank-details h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
}

.ras-rank-details p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.ras-rank-reward {
    color: #28a745 !important;
    font-weight: 600 !important;
}

.ras-rank-status-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
}

/* Achievement History */
.ras-achievement-history {
    margin-bottom: 30px;
}

.ras-achievement-history h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.ras-achievement-rank {
    display: flex;
    align-items: center;
}

.ras-rank-badge-small {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ras-rank-badge-small.rank-level-1 { background: #17a2b8; color: white; }
.ras-rank-badge-small.rank-level-2 { background: #28a745; color: white; }
.ras-rank-badge-small.rank-level-3 { background: #ffc107; color: #212529; }
.ras-rank-badge-small.rank-level-4 { background: #fd7e14; color: white; }
.ras-rank-badge-small.rank-level-5 { background: #dc3545; color: white; }
.ras-rank-badge-small.rank-level-6 { background: #6f42c1; color: white; }
.ras-rank-badge-small.rank-level-7 { background: #e83e8c; color: white; }
.ras-rank-badge-small.rank-level-8 { background: #20c997; color: white; }
.ras-rank-badge-small.rank-level-9 { background: #fd7e14; color: white; }
.ras-rank-badge-small.rank-level-10 { 
    background: linear-gradient(45deg, #ffd700, #ffed4e); 
    color: #212529; 
    font-weight: 900;
    border: 1px solid #f39c12;
}

/* Rank Info Box */
.ras-rank-info-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-radius: 16px;
    padding: 30px;
    border-left: 5px solid #0A5A00C7;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(10, 90, 0, 0.15);
}

.ras-rank-info-box .ras-info-icon {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    display: block;
}

.ras-rank-info-box h4 {
    color: #0A5A00;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Info Grid */
.ras-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ras-info-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ras-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ras-info-item-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.ras-info-item h5 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ras-info-item p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Order Breakdown */
.ras-order-breakdown {
    background: black;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    border-left: 3px solid #0A5A00C7;
}

.ras-order-breakdown p {
    margin: 5px 0;
    line-height: 1.4;
}

.ras-order-breakdown strong {
    color: #0A5A00;
    font-weight: 700;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .ras-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ras-rank-info-box {
        padding: 20px 15px;
    }
    
    .ras-rank-info-box h4 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ras-rank-info-box {
        padding: 15px 10px;
    }
    
    .ras-rank-info-box h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .ras-info-item {
        padding: 15px;
    }
    
    .ras-info-item h5 {
        font-size: 14px;
    }
    
    .ras-info-item p {
        font-size: 13px;
    }
}

/* Status Styles for Rank Achievements */
.ras-status-paid {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ras-status-pending {
    background: #ffc107;
    color: #212529;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive Rank Styles */
@media (max-width: 768px) {
    .ras-rank-current {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .ras-rank-badge-large {
        min-width: auto;
        padding: 20px;
    }
    
    .ras-rank-level {
        font-size: 28px;
    }
    
    .ras-ranks-grid {
        grid-template-columns: 1fr;
    }
    
    .ras-rank-status-card {
        padding: 20px;
    }
    
    .ras-rank-info h3 {
        font-size: 20px;
    }
    
    .ras-progress-info h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ras-user-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .ras-user-rank {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .ras-rank-badge-large {
        padding: 15px;
    }
    
    .ras-rank-level {
        font-size: 24px;
    }
    
    .ras-rank-name {
        font-size: 12px;
    }
    
    .ras-rank-info h3 {
        font-size: 18px;
    }
    
    .ras-rank-info p {
        font-size: 14px;
    }
}

/* Orders Section Styles */
.ras-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ras-header-left h1 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.ras-header-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.ras-header-right {
    display: flex;
    gap: 12px;
}

.ras-compact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f3f4f6;
    color: #374151;
}

.ras-compact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
}

.ras-compact-btn.primary {
    background: #3b82f6;
    color: white;
}

.ras-compact-btn.primary:hover {
    background: #2563eb;
    color: white;
}

.ras-compact-btn.success {
    background: #10b981;
    color: white;
}

.ras-compact-btn.success:hover {
    background: #059669;
    color: white;
}

.ras-compact-btn.warning {
    background: #f59e0b;
    color: white;
}

.ras-compact-btn.warning:hover {
    background: #d97706;
    color: white;
}

/* Stats Bar */
.ras-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ras-stat-item {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.ras-stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.ras-stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filters Row */
.ras-filters-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    align-items: center;
}

.ras-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ras-filter-item label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.ras-compact-select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
    min-width: 120px;
}

.ras-compact-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Orders Container */
.ras-orders-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Empty Orders State */
.ras-empty-orders {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.ras-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ras-empty-orders h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.ras-empty-orders p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #6b7280;
}

/* Order Cards */
.ras-order-card {
    border-bottom: 1px solid #e5e7eb;
    padding: 20px;
    transition: background-color 0.2s ease;
}

.ras-order-card:last-child {
    border-bottom: none;
}

.ras-order-card:hover {
    background: #f9fafb;
}

.ras-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.ras-order-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.ras-order-date {
    font-size: 14px;
    color: #6b7280;
}

.ras-order-status .ras-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Badge Colors */
.ras-status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.ras-status-badge.processing {
    background: #dbeafe;
    color: #1e40af;
}

.ras-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.ras-status-badge.on-hold {
    background: #fed7aa;
    color: #9a3412;
}

.ras-status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.ras-status-badge.refunded {
    background: #e0e7ff;
    color: #3730a3;
}

.ras-status-badge.failed {
    background: #fecaca;
    color: #7f1d1d;
}

/* Order Details */
.ras-order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ras-order-amounts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ras-amount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 200px;
}

.ras-amount-label {
    font-size: 14px;
    color: #6b7280;
}

.ras-amount-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.ras-amount-item.discount .ras-amount-value {
    color: #059669;
}

.ras-amount-item.final .ras-amount-value {
    font-size: 16px;
    color: #1f2937;
}

/* Responsive Design for Orders */
@media (max-width: 768px) {
    .ras-compact-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .ras-header-right {
        justify-content: center;
    }

    .ras-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .ras-filters-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .ras-filter-item {
        justify-content: space-between;
    }

    .ras-compact-select {
        min-width: auto;
        flex: 1;
    }

    .ras-order-header {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .ras-order-details {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ras-amount-item {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .ras-stats-bar {
        grid-template-columns: 1fr;
    }

    .ras-stat-number {
        font-size: 18px;
    }

    .ras-order-card {
        padding: 16px;
    }

    .ras-compact-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .ras-empty-orders {
        padding: 40px 20px;
    }

    .ras-empty-icon {
        font-size: 36px;
    }
}

/* Wallet Commission Success Message Styles */
.ras-wallet-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.ras-wallet-message.success small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #0f5132;
    opacity: 0.9;
}

.ras-wallet-message.success strong {
    color: #0a3622;
    font-weight: 600;
}

.ras-wallet-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    border: 2px solid #dc3545;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

/* Animation for success message */
.ras-wallet-message.success {
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Commission info highlighting */
.ras-wallet-message.success small strong {
    background: rgba(40, 167, 69, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Additional Commission Section */
.ras-additional-commission-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ras-commission-card.rank-royalty {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: 2px solid #f59e0b;
    color: #92400e;
}

.ras-commission-card.rank-royalty .ras-commission-icon {
    color: #92400e;
    font-size: 32px;
}

.ras-commission-card.rank-royalty .ras-commission-amount {
    color: #92400e;
    font-weight: 700;
}

.ras-commission-card.rank-incentive {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    border: 2px solid #7c3aed;
    color: white;
}

.ras-commission-card.rank-incentive .ras-commission-icon {
    color: white;
    font-size: 32px;
}

.ras-commission-card.rank-incentive .ras-commission-amount {
    color: white;
    font-weight: 700;
}

.ras-royalty-info,
.ras-incentive-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.ras-royalty-info p,
.ras-incentive-info p {
    margin: 4px 0;
    font-size: 13px;
    line-height: 1.4;
}

.ras-commission-card.rank-royalty .ras-royalty-info {
    border-top-color: rgba(146, 64, 14, 0.3);
}

.ras-commission-card.rank-royalty .ras-royalty-info p {
    color: #92400e;
}

.ras-commission-card.rank-incentive .ras-incentive-info p {
    color: rgba(255, 255, 255, 0.9);
}

/* Commission Summary Grid Enhancement */
.ras-commission-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ras-commission-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ras-commission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7ad03a, #5cb32a);
}

.ras-commission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ras-commission-card.total {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #3b82f6;
    color: #1e40af;
}

.ras-commission-card.total::before {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.ras-commission-card.woocommerce {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
    color: #065f46;
}

.ras-commission-card.woocommerce::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.ras-commission-card.activation {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    color: #92400e;
}

.ras-commission-card.activation::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.ras-commission-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
}

.ras-commission-info {
    flex: 1;
}

.ras-commission-info h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.ras-commission-amount {
    font-size: 24px;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1;
}

.ras-commission-info small {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.3;
    display: block;
    margin-top: 4px;
}

/* Responsive Design for Commission Cards */
@media (max-width: 768px) {
    .ras-commission-summary,
    .ras-additional-commission-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ras-commission-card {
        padding: 20px;
        gap: 12px;
    }
    
    .ras-commission-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .ras-commission-amount {
        font-size: 20px;
    }
    
    .ras-commission-info h3 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ras-commission-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .ras-commission-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .ras-commission-amount {
        font-size: 18px;
    }
}

/* Account Status Bar */
.ras-status-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}

.ras-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.ras-status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ras-status-item.active {
    border-left: 4px solid #10b981;
}

.ras-status-item.inactive {
    border-left: 4px solid #f59e0b;
}

.ras-status-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    flex-shrink: 0;
}

.ras-status-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ras-status-title {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ras-status-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

/* Quick Actions List */
.ras-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ras-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    width: 100%;
    text-align: left;
}

.ras-action-row:hover {
    background: #e2e8f0;
    transform: translateX(4px);
    border-color: #7ad03a;
    box-shadow: 0 2px 8px rgba(122, 208, 58, 0.2);
}

.ras-action-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ras-action-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ras-action-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.ras-action-desc {
    font-size: 12px;
    color: #6b7280;
}

.ras-action-arrow {
    font-size: 16px;
    color: #9ca3af;
    transition: all 0.2s;
}

.ras-action-row:hover .ras-action-arrow {
    color: #7ad03a;
    transform: translateX(2px);
}

/* Activity Timeline Enhancements */
.ras-activity-dot.login {
    background: #3b82f6;
}

/* Responsive Design for Status Bar and Actions */
@media (max-width: 768px) {
    .ras-status-bar {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        padding: 16px;
    }
    
    .ras-status-item {
        padding: 12px;
        gap: 8px;
    }
    
    .ras-status-icon {
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
    
    .ras-status-title {
        font-size: 11px;
    }
    
    .ras-status-value {
        font-size: 13px;
    }
    
    .ras-action-row {
        padding: 12px;
        gap: 10px;
    }
    
    .ras-action-icon {
        font-size: 18px;
        width: 32px;
        height: 32px;
    }
    
    .ras-action-title {
        font-size: 13px;
    }
    
    .ras-action-desc {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .ras-status-bar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .ras-status-item {
        padding: 10px;
    }
}

/* Clickable Commission Cards */
.ras-commission-card.clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ras-commission-card.clickable::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
}

.ras-commission-card.clickable:hover::after {
    width: 100%;
}

.ras-commission-card.clickable:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.ras-commission-card.clickable:active {
    transform: translateY(-2px);
    transition: transform 0.1s;
}

.ras-click-hint {
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ras-commission-card.clickable:hover .ras-click-hint {
    opacity: 1;
}

/* Pulse animation for clickable cards */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.ras-commission-card.clickable.woocommerce:hover {
    animation: pulse-border 1.5s infinite;
}

/* Simple Form Styles */
.ras-simple-form {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.ras-simple-form .ras-form-group {
    margin-bottom: 20px;
}

.ras-simple-form .ras-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.ras-simple-form .ras-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.ras-simple-form .ras-form-group input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.ras-simple-form .ras-form-actions {
    margin-top: 24px;
}

.ras-simple-form .ras-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ras-simple-form .ras-btn-primary {
    background: #10b981;
    color: white;
}

.ras-simple-form .ras-btn-primary:hover {
    background: #059669;
}

.ras-simple-form .ras-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ras-simple-form .ras-btn-spinner {
    display: none;
}

/* Direct Form Styles */
.ras-direct-form {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ras-direct-form .ras-form-group {
    margin-bottom: 20px;
}

.ras-direct-form .ras-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.ras-direct-form .ras-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.ras-direct-form .ras-form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.ras-direct-form .ras-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.ras-direct-form .ras-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.ras-direct-form .ras-btn-primary {
    background: #007cba;
    color: white;
}

.ras-direct-form .ras-btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.ras-direct-form .ras-btn-warning {
    background: #ffc107;
    color: #212529;
}

.ras-direct-form .ras-btn-warning:hover {
    background: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* Message Styles */
.ras-message {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid;
}

.ras-message-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.ras-message-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsive adjustments for direct form */
@media (max-width: 768px) {
    .ras-direct-form {
        padding: 16px;
    }
    
    .ras-direct-form .ras-form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .ras-direct-form .ras-btn {
        width: 100%;
        min-width: auto;
    }
}