.copy-dashboard-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 30px 0;
}
.copy-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    transition: box-shadow 0.2s;
}
.copy-card:hover {
    box-shadow: 0 4px 16px rgba(0,123,255,0.10);
}
.copy-avatar {
    width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
    border: 2px solid #007bff;
}
.copy-status {
    font-size: 0.95rem;
}


.modal-backdrop.show { z-index: 1050; }
.modal { z-index: 1060; }

.popular-investors {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 30px 0; /* Reduced from default */
}

.section-title {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem; /* Reduced from 3rem */
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.investor-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,123,255,0.1);
    position: relative;
    overflow: hidden;
    padding: 1.5rem !important; /* Reduced from 2rem (p-4) */
}

.investor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.investor-card:hover::before {
    opacity: 1;
}

.investor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,123,255,0.15) !important;
    border-color: rgba(0,123,255,0.3);
}

.investor-avatar {
    border: 3px solid #007bff;
    transition: transform 0.3s ease;
}

.investor-card:hover .investor-avatar {
    transform: scale(1.1);
}

.investor-name {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem; /* Reduced spacing */
}

.investor-location {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.investor-location::before {
    content: '\f3c5';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
    color: #007bff;
}

.investor-header {
    margin-bottom: 1rem !important; /* Reduced from 1.5rem (mb-3) */
}

.copy-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 25px;
    padding: 6px 20px; /* Reduced padding */
    font-weight: 600;
    font-size: 0.9rem; /* Slightly smaller text */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.copy-button:not(:disabled) {
    color: white;
}

.copy-button:not(:disabled):hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
}

.copy-button:disabled {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.copy-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.copy-button:hover::after {
    width: 100px;
    height: 100px;
}

.investor-stats {
    padding: 15px 0; /* Reduced from 20px 0 */
    margin-top: 15px; /* Reduced from 20px */
    border-top: 1px solid rgba(0,123,255,0.1);
    background: rgba(248,249,250,0.5);
    border-radius: 15px;
}

.stat-item {
    flex: 1;
    position: relative;
}

.stat-label {
    font-size: 0.75rem; /* Slightly smaller */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 3px; /* Reduced from 5px */
}

.stat-value {
    font-size: 1rem; /* Reduced from 1.1rem */
    color: #2c3e50;
}

.stat-value.positive {
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value.positive::before {
    content: '\f062';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
    font-size: 0.8rem; /* Reduced from 0.9rem */
}

.investor-description {
    margin-top: 0.5rem !important; /* Reduced spacing */
}

.investor-description p {
    margin-bottom: 0;
    font-size: 0.9rem; /* Smaller text */
}

.section-cta {
    margin-top: 3rem !important; /* Reduced from 5rem */
}

.section-cta .btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    padding: 12px 35px; /* Reduced from 15px 40px */
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,123,255,0.3);
}

/* Container padding adjustments */
.container {
    padding-top: 1rem; /* Add minimal top padding */
    padding-bottom: 1rem; /* Add minimal bottom padding */
}

.investors-grid {
    margin-top: 2rem !important; /* Reduced from 3rem (mt-5) */
}

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

.modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    padding: 1rem 1.5rem; /* Reduced padding */
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 1.5rem; /* Reduced from default */
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px; /* Reduced from 8px */
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 10px 12px; /* Reduced from 12px 15px */
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.15);
}

.modal-footer {
    border-top: none;
    padding: 0 1.5rem 1.5rem; /* Reduced padding */
}

.modal-footer .btn {
    border-radius: 10px;
    padding: 10px 25px; /* Reduced from 12px 30px */
    font-weight: 600;
}

.empty-state {
    padding: 40px 20px; /* Reduced from 60px 20px */
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 3.5rem; /* Reduced from 4rem */
    color: #dee2e6;
    margin-bottom: 15px; /* Reduced from 20px */
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Mobile responsive styles */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .popular-investors {
        padding: 20px 0; /* Reduced mobile padding */
    }
    
    .investor-stats {
        padding: 12px 0; /* Further reduced on mobile */
        margin-top: 12px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
        padding: 0 4px;
    }
    
    .stat-label {
        font-size: 0.7rem;
        margin-bottom: 2px; /* Reduced spacing */
        line-height: 1.2;
    }
    
    .stat-value {
        font-size: 0.9rem; /* Reduced from 0.95rem */
        line-height: 1.2;
    }
    
    .stat-value.positive::before {
        font-size: 0.75rem; /* Smaller icon */
    }
    
    .investor-stats:last-of-type {
        margin-top: 8px; /* Reduced spacing */
        padding-top: 8px;
    }
    
    .copy-button {
        width: 100%;
        margin-top: 8px; /* Reduced from 10px */
        padding: 8px 16px; /* Reduced padding */
        font-size: 0.85rem; /* Smaller font */
    }
    
    .investor-card {
        padding: 1rem !important; /* Reduced mobile card padding */
    }
    
    .investor-avatar {
        width: 50px !important;
        height: 50px !important;
    }
    
    .investor-name {
        font-size: 1.1rem;
    }
    
    .investor-location {
        font-size: 0.8rem;
    }
    
    .investor-header {
        margin-bottom: 0.75rem !important; /* Reduced mobile spacing */
    }
    
    .section-cta {
        margin-top: 2rem !important; /* Reduced mobile spacing */
    }
    
    .investors-grid {
        margin-top: 1.5rem !important; /* Reduced mobile spacing */
    }
}

/* Additional breakpoint for very small screens */
@media (max-width: 480px) {
    .stat-label {
        font-size: 0.65rem;
        text-align: center;
    }
    
    .stat-value {
        font-size: 0.85rem; /* Further reduced */
        text-align: center;
    }
    
    .stat-item {
        padding: 0 2px; /* Tighter spacing */
    }
    
    .investor-stats + .investor-stats {
        margin-top: 6px; /* Tighter spacing */
        padding-top: 6px;
    }
    
    .investor-card {
        padding: 0.75rem !important; /* Even more compact */
    }
}

/* Fix input text color in modal */
#copyModal input, #copyModal input:focus, #copyModal input::placeholder {
    color: #212529 !important;
    background-color: #fff !important;
    caret-color: #007bff;
}
