/* ACGRC Registration Plugin Styles */

:root {
    --acgrc-primary: #2563eb;
    --acgrc-primary-hover: #1d4ed8;
    --acgrc-secondary: #64748b;
    --acgrc-success: #10b981;
    --acgrc-error: #ef4444;
    --acgrc-border: #e2e8f0;
    --acgrc-bg: #f8fafc;
    --acgrc-text: #1e293b;
}

/* Form Container */
.acgrc-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.acgrc-form-container h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--acgrc-text);
    font-size: 28px;
}

.form-description {
    color: var(--acgrc-secondary);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--acgrc-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--acgrc-border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--acgrc-primary);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--acgrc-secondary);
    font-size: 14px;
}

.required {
    color: var(--acgrc-error);
}

/* Checkbox Groups */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal !important;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.consent-label {
    padding: 15px;
    background: var(--acgrc-bg);
    border-radius: 8px;
}

/* Buttons */
.acgrc-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.acgrc-btn-primary {
    background: var(--acgrc-primary);
    color: #fff;
    width: 100%;
}

.acgrc-btn-primary:hover {
    background: var(--acgrc-primary-hover);
}

.acgrc-btn-secondary {
    background: var(--acgrc-secondary);
    color: #fff;
    margin-left: 10px;
}

.acgrc-btn-secondary:hover {
    background: #475569;
}

/* Messages */
.form-messages {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.form-messages.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid var(--acgrc-success);
    display: block;
}

.form-messages.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid var(--acgrc-error);
    display: block;
}

/* Form Footer */
.form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--acgrc-border);
    text-align: center;
}

.form-footer a {
    color: var(--acgrc-primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Social Login */
.social-login {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--acgrc-border);
}

.separator {
    text-align: center;
    color: var(--acgrc-secondary);
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--acgrc-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.google-btn:hover {
    background: #f8fafc;
    border-color: #db4437;
}

.linkedin-btn:hover {
    background: #f8fafc;
    border-color: #0077b5;
}

/* Dashboard */
.acgrc-dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.dashboard-header {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--acgrc-primary), #3b82f6);
    color: #fff;
    border-radius: 12px;
}

.dashboard-header h2 {
    margin: 0 0 10px 0;
}

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

.dashboard-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--acgrc-text);
}

.dashboard-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-links li {
    margin-bottom: 12px;
}

.dashboard-links a {
    color: var(--acgrc-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.dashboard-links a:hover {
    color: var(--acgrc-primary-hover);
    text-decoration: underline;
}

/* Donation Table */
.donation-table {
    width: 100%;
    border-collapse: collapse;
}

.donation-table th,
.donation-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--acgrc-border);
}

.donation-table th {
    background: var(--acgrc-bg);
    font-weight: 600;
}

/* User Menu */
.acgrc-user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-greeting {
    font-weight: 600;
    color: var(--acgrc-text);
}

.user-role {
    padding: 4px 12px;
    background: var(--acgrc-primary);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
}

.acgrc-user-menu a {
    color: var(--acgrc-primary);
    text-decoration: none;
    font-weight: 500;
}

.acgrc-user-menu a:hover {
    text-decoration: underline;
}

/* Profile Info */
.profile-info {
   
    padding: 25px;
  
    border-radius: 12px;
}

.profile-info h3 {
    margin-top: 0;
}

.profile-info p {
    margin: 10px 0;
}

/* Loading State */
.acgrc-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.acgrc-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 20px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .acgrc-form-container {
        padding: 20px;
        margin: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .acgrc-user-menu {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}


/* ============================================
   AWESOME DASHBOARD STYLES - IMPROVED
   ============================================ */

/* Reset and Base */
.acgrc-awesome-dashboard * {
    box-sizing: border-box;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.5); }
    50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.8); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-fade-in-up {
    animation: slideUp 0.8s ease-out;
}

.animate-slide-left {
    animation: slideLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideRight 0.6s ease-out;
}

/* Awesome Dashboard Container */
.acgrc-awesome-dashboard {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #f1f5f9;
    min-height: 100vh;
}

/* Hero Section */
.dashboard-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 30px;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* Profile Section */
.profile-section {
   
    gap: 10px;
    align-items: center;
}

.profile-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    background: #fff;
}

.profile-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
}

.profile-status.online {
    background: #10b981;
    animation: pulse 2s infinite;
}

.profile-info {
    color: #fff;
    flex: 1;
    background: rgba(255, 255, 255, 0.15)!important;
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.welcome-text {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 8px 0;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.user-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #fff;
    line-height: 1.2;
}

.user-role-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-email,
.user-phone,
.last-login {
    font-size: 13px;
    margin: 6px 0;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-email::before,
.user-phone::before,
.last-login::before {
    content: "•";
    font-size: 18px;
}

/* Profile Completion */
.profile-completion {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.completion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: #fff;
}

.completion-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.completion-percentage {
    font-size: 28px;
    font-weight: 700;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

.btn-complete-profile {
    display: block;
    text-align: center;
    padding: 11px 20px;
    background: #fff;
    color: #667eea;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-complete-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    color: #5568d3;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: -50px auto 30px;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.05;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-primary { 
    border-color: #3b82f6; 
}
.stat-primary::before {
    background: #3b82f6;
}

.stat-success { 
    border-color: #10b981; 
}
.stat-success::before {
    background: #10b981;
}

.stat-warning { 
    border-color: #f59e0b; 
}
.stat-warning::before {
    background: #f59e0b;
}

.stat-info { 
    border-color: #8b5cf6; 
}
.stat-info::before {
    background: #8b5cf6;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-primary .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.stat-success .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.stat-warning .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.stat-info .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-content h4 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1e293b;
    line-height: 1;
}

.stat-content p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

/* Main Dashboard Grid */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 40px;
}

.dashboard-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}

.dashboard-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    padding: 22px 24px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #fafbfc, #fff);
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.card-body {
    padding: 24px;
}

/* Badges */
.badge {
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    box-shadow: 0 2px 4px rgba(146, 64, 14, 0.1);
}

.badge-donor {
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
    color: #5b21b6;
    box-shadow: 0 2px 4px rgba(91, 33, 182, 0.1);
}

/* Action Buttons */
.action-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.action-btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.btn-info {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
}

.action-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    font-size: 22px;
    line-height: 1;
}

.btn-text {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s;
    font-weight: bold;
}

.action-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Opportunity Items */
.opportunity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.opportunity-item:hover {
    background: #fff;
    border-color: #e2e8f0;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.opportunity-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.opportunity-content {
    flex: 1;
    min-width: 0;
}

.opportunity-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.opportunity-content p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.opportunity-count {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

/* Submit Buttons */
.submit-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 12px;
    text-decoration: none;
    background: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f1f5f9;
}

.submit-btn:hover {
    background: #fff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.submit-icon {
    font-size: 26px;
    line-height: 1;
}

.submit-content {
    flex: 1;
}

.submit-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.submit-content p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 8px;
}

.activity-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.activity-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    bottom: -24px;
    width: 2px;
    background: linear-gradient(to bottom, #e2e8f0, transparent);
}

.activity-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    position: relative;
    z-index: 1;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.activity-content p {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.activity-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

/* ============================================
   USER ICON DROPDOWN STYLES
   ============================================ */

.acgrc-user-icon-dropdown {
    position: relative;
    display: inline-block;
}

.user-icon-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.user-avatar:hover {
    border-color: var(--acgrc-primary);
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guest-avatar {
    background: #e2e8f0;
    color: #64748b;
}

.guest-avatar svg {
    width: 24px;
    height: 24px;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.status-indicator.online {
    background: #10b981;
}

.user-name-mobile {
    font-weight: 600;
    color: var(--acgrc-text);
    display: none;
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    border: 1px solid #e2e8f0;
}

.acgrc-user-icon-dropdown:hover .user-dropdown-menu,
.acgrc-user-icon-dropdown.dropdown-open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Arrow pointer */
.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(45deg);
}

.dropdown-header {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-header h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--acgrc-text);
}

.dropdown-header p {
    margin: 0;
    font-size: 14px;
    color: var(--acgrc-secondary);
}

.logged-in-header {
    display: flex;
    gap: 15px;
    align-items: center;
    text-align: left;
}

.header-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.header-info p {
    margin: 0 0 8px 0;
    font-size: 13px;
}

.role-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Progress in Dropdown */
.dropdown-progress {
    padding: 15px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

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

.progress-percent {
    font-weight: 700;
    color: var(--acgrc-primary);
}

.progress-bar-mini {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, var(--acgrc-primary), #3b82f6);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.dropdown-body {
    padding: 10px;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.btn-login:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-register {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.btn-register:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.dropdown-btn svg {
    width: 20px;
    height: 20px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--acgrc-text);
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: var(--acgrc-primary);
    transform: translateX(5px);
}

.dropdown-item svg {
    width: 20px;
    height: 20px;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 10px 0;
}

.logout-item {
    color: #ef4444;
}

.logout-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .profile-completion {
        max-width: 500px;
    }
    
    .stats-grid {
        margin: -40px 30px 30px;
    }
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 35px 20px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .user-name {
        font-size: 26px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        margin: -35px 20px 25px;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .dashboard-main-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 30px;
        gap: 20px;
    }
    
    .card-header {
        padding: 18px 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .user-dropdown-menu {
        width: 280px;
    }
    
    .user-name-mobile {
        display: block;
    }
    
    .action-btn {
        padding: 14px 18px;
    }
}

@media (max-width: 480px) {
    .dashboard-hero {
        padding: 30px 15px;
    }
    
    .profile-image {
        width: 90px;
        height: 90px;
    }
    
    .user-name {
        font-size: 22px;
    }
    
    .welcome-text {
        font-size: 14px;
    }
    
    .stats-grid {
        margin: -30px 15px 20px;
        padding: 0 15px;
    }
    
    .stat-card {
        padding: 18px;
        gap: 14px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .stat-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .stat-content h4 {
        font-size: 24px;
    }
    
    .stat-content p {
        font-size: 12px;
    }
    
    .dashboard-main-grid {
        padding: 0 15px 25px;
        gap: 16px;
    }
    
    .card-header h3 {
        font-size: 16px;
    }
    
    .action-btn {
        padding: 13px 16px;
        gap: 12px;
    }
    
    .btn-text {
        font-size: 14px;
    }
}


/* ============================================
   PROFILE PAGE STYLES
   ============================================ */

.acgrc-profile-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #f1f5f9;
    min-height: 100vh;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.profile-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Profile Avatar Section */
.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-avatar-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    background: #fff;
}

.avatar-upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 0 0 80px 80px;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-avatar-wrapper:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.avatar-upload-btn svg {
    width: 20px;
    height: 20px;
}

/* Profile Completion Circle */
.profile-completion-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.completion-circle {
    width: 60px;
    height: 60px;
}

.completion-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 3;
}

.circle-progress {
    fill: none;
    stroke: #10b981;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

.completion-circle .percentage {
    fill: #fff;
    font-size: 8px;
    font-weight: 700;
    transform: rotate(90deg);
    transform-origin: center;
}

.profile-completion-mini span {
    font-size: 12px;
    font-weight: 600;
}

/* Profile Header Info */
.profile-header-info {
    flex: 1;
    color: #fff;
}

.profile-header-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #fff;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.profile-role {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-verified {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.profile-verified svg {
    width: 18px;
    height: 18px;
    color: #10b981;
}

.profile-member-since {
    font-size: 13px;
    opacity: 0.9;
}

/* Profile Content */
.profile-content {
    max-width: 1400px;
    margin: -30px auto 0;
    padding: 0 30px 40px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Profile Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.profile-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.quick-action-btn:hover {
    background: #fff;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateX(4px);
}

.quick-action-btn svg {
    width: 20px;
    height: 20px;
}

/* Profile Main Form */
.profile-main {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Profile Sections */
.profile-section {
    padding-bottom: 32px;
    border-bottom: 2px solid #f1f5f9;
}

.profile-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.section-header p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* Form Grid */
.form-grid {
    display: grid;
    
   
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.form-group label .social-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.field-note {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

.char-count {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    text-align: right;
}

/* Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.interest-checkbox {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.interest-checkbox:hover {
    background: #fff;
    border-color: #e2e8f0;
}

.interest-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.interest-checkbox input[type="checkbox"]:checked + .interest-label {
    color: #3b82f6;
    font-weight: 600;
}

.interest-checkbox:has(input:checked) {
    background: #eff6ff;
    border-color: #3b82f6;
}

.interest-label {
    font-size: 14px;
    color: #1e293b;
    transition: all 0.3s;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 2px solid #f1f5f9;
}

.btn-save-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-save-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-save-profile svg {
    width: 20px;
    height: 20px;
}

.btn-cancel {
    padding: 14px 28px;
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-cancel:hover {
    background: #fff;
    border-color: #cbd5e1;
    color: #475569;
}

/* Responsive Profile Page */
@media (max-width: 1024px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .profile-header {
        padding: 30px 20px;
    }
    
    .profile-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-header-info h1 {
        font-size: 28px;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .profile-content {
        margin-top: -20px;
        padding: 0 20px 30px;
    }
    
    .profile-main {
        padding: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-save-profile,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-avatar-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .profile-header-info h1 {
        font-size: 24px;
    }
    
    .profile-content {
        padding: 0 15px 25px;
    }
    
    .profile-main {
        padding: 20px;
    }
    
    .section-header h3 {
        font-size: 18px;
    }
}
