/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff; /* white background */
    min-height: 100vh;
    color: #000000; /* black text */
    overflow-x: hidden;
}

/* Main Container Layout */
.main-container {
    display: flex;
    min-height: 100vh;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgb(0, 0, 1); /* almost black background */
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #e10600 0%, #b30000 100%); /* red gradient */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-info h3 {
    color: #b8b8d1;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-info div {
    color: #ddd;
    font-size: 0.95rem;
}

/* Section layouts */
.how-it-works-section {
    margin: 60px auto 0 auto;
    max-width: 800px;
}

.benefits-section {
    margin: 60px auto 40px auto;
    max-width: 800px;
}

.how-it-works-section h3,
.benefits-section h3 {
    text-align: center;
    color: #e10600;
    margin-bottom: 30px;
}

/* Pop-up */
#birthdayPopup {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 300px;
  background: linear-gradient(135deg, #e10600, #b30000);
  color: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.6);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideIn 0.5s ease forwards;
}

#birthdayPopup h2 {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
}

#birthdayPopup p {
  margin: 0 0 15px 0;
  font-size: 1rem;
  text-align: center;
}

#birthdayPopup button {
  cursor: pointer;
  background: #fff;
  color: #e10600;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
}

@keyframes slideIn {
  from {
    opacity: 0;
    right: -350px;
  }
  to {
    opacity: 1;
    right: 30px;
  }
}

/* Branding Section */
.branding-section {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    color: #000000;
}
.index-branding-section {
    display: flex !important;           
    flex-direction: row !important;     
    justify-content: center;             
    align-items: stretch;                
    gap: 40px;                          
    padding: 40px;
    color: #000000;
    max-width: 1000px;
    margin: 0 auto;
}
/* 
.hero-content {
    flex: 1;
    text-align: left;
    /* other needed styles 
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;            
    align-items: center;
}

.hero-image img {
    height: 100%;                 
    width: auto;
    opacity: 0.9;                      
    background: transparent;
} */

.branding-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(225, 6, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.logo-container {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-icon {
    font-size: 4rem;
    margin-top: 5px;
    margin-bottom: 5px;
    /* background: linear-gradient(135deg, #e10600 0%, #b30000 100%); */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(225, 6, 0, 0.3));
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    /* margin-bottom: 10px; */
}

.branding-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 400px;
}

.branding-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000000;
}

.branding-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333333;
}

/* Form Section */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f9f9f9;
}

.form-container {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #e10600;
    box-shadow: 0 8px 20px rgba(225, 6, 0, 0.2);
}

.form-container h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: #555555;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Form Inputs and Labels */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 500;
    font-size: 0.95rem;
}

.required {
    color: #e10600;
}

input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="tel"] {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    color: #000000;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus, 
input[type="tel"]:focus {
    outline: none;
    border-color: #e10600;
    background: #fff;
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.3);
}

input::placeholder {
    color: #999999;
}
.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    z-index: 2;
    font-size: 1.1rem;
    color: #b8b8d1;
}


.password-toggle {
    position:absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 2;
}

.password-toggle:hover {
    color: #e10600;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-width: 120px;
}

.btn.primary {
    background: linear-gradient(135deg, #e10600 0%, #b30000 100%);
    color: white;
    width: 100%;
    margin-top: 10px;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(225, 6, 0, 0.5);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.85);
    color: #e10600;
    border: 1px solid #e10600;
}

.btn.secondary:hover {
    background: #e10600;
    color: white;
    transform: translateY(-1px);
}

.btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: auto;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333333;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: white;
    border: 1px solid #e10600;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(135deg, #e10600 0%, #b30000 100%);
    border-color: #b30000;
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.forgot-link {
    color: #e10600;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    color: #b30000;
    text-decoration: underline;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.form-footer p {
    color: #555555;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.form-footer a {
    color: #e10600;
    text-decoration: none;
}

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

/* Terms Notice */
.terms-notice {
    margin-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.4;
}

.link {
    color: #e10600;
    text-decoration: none;
}

.link:hover {
    color: #b30000;
    text-decoration: underline;
}

/* Help Section */
.help-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.help-section h3 {
    color: #000000;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.help-section p {
    color: #333333;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Message Styles */
.error {
    background: rgba(225, 6, 0, 0.1);
    border: 1px solid rgba(225, 6, 0, 0.3);
    color: #e10600;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.success {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: #48bb78;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Profile Page Styles */
.profile-body {
    background: #ffffff;
    color: #000000;
}

.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 4px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(225, 6, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    padding-bottom: 5px;
    padding-top: 5px;
    gap: 10px;
    margin-left: 0;      /* Ensure no left margin */
    padding-left: 0;     /* Ensure no left padding */
}

.nav-logo .logo-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #e10600 0%, #b30000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
}

.nav-menu {
     margin-left: auto;
    display: flex;
    align-items: center;
    /* gap: 20px; */
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #e10600;
    background: rgba(225, 6, 0, 0.1);
}

.logout-btn {
    background: linear-gradient(135deg, #e10600 0%, #b30000 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(225, 6, 0, 0.3);
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    color: #000000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Top bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.top-bar h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #000000;
}
.role-label {
    font-weight: 400;
    font-size: 1rem;
    color: #be2c2c;
    margin-left: 10px;
}

/* Button */
.actions-btn, .btn.primary {
    background: linear-gradient(135deg, #e10600 0%, #b30000 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}
.actions-btn:hover, .btn.primary:hover {
    box-shadow: 0 0 20px #e10600;
    transform: translateY(-2px);
}

/* Summary grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.summary-card {
    background-color: #fff;
    border: 1px solid #e10600;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.2);
    text-align: center;
    user-select: none;
}

.summary-card > div:first-child {
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    color: #333333;
}

.summary-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #e10600;
}

/* Search input */
#searchAmbassadors {
    width: 100%;
    max-width: 360px;
    margin: 0 0 1rem 0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #e10600;
    background: #fff;
    color: #000000;
    font-size: 1rem;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid #e10600;
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.2);
    color: #000000;
    overflow: hidden;
}

thead {
    background-color: #f5f5f5;
}

th, td {
    padding: 12px 18px;
    text-align: left;
    font-size: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

tbody tr:hover {
    background-color: #ffe6e6;
    cursor: pointer;
}

/* Status badges */
.status-active {
    background-color: #e10600;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    user-select: none;
}

.status-inactive {
    background-color: #555555;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    user-select: none;
}

/* Chart container */
#chart-container {
    background-color: #fff;
    border-radius: 15px;
    padding: 1rem;
    margin-top: 1.5rem;
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.2);
    width: 100%;
    max-width: 1200px;
    height: 320px;
}

#performanceChart {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Section headings */
h2 {
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #000000;
}

p {
    color: #333333;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Recent Leads Section */
#recentLeadsSection {
    margin-top: 40px;
}

#recentLeadsList {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recent-lead-item {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #000000;
}

.lead-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e10600;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 14px;
    box-shadow: 0 0 8px #b3000088;
}

.lead-info {
    flex: 1 1 auto;
    margin-left: 12px;
}

.lead-name {
    font-weight: 500;
    color: #000000;
    font-size: 1.07rem;
}

.lead-date {
    color: #666666;
    font-size: 0.96rem;
}

.lead-status {
    flex-shrink: 0;
    margin-left: 12px;
}

.lead-chip {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 13px;
    font-size: 0.97rem;
    font-weight: 500;
    color: #fff;
    background: #b30000;
    box-shadow: 0 0 6px #990000cc;
    user-select: none;
    text-transform: capitalize;
}

.lead-chip.converted {
    background: #e10600;
    box-shadow: 0 0 8px #e10600cc;
}

.lead-chip.new {
    background: #f44336;
    color: #fff;
    box-shadow: 0 0 8px #f44336cc;
}

.lead-chip.inprogress {
    background: #b30000;
    color: #fff;
    box-shadow: 0 0 8px #b30000cc;
}

.lead-chip.default {
    background: #999999;
    color: #fff;
    box-shadow: 0 0 8px #99999988;
}

/* Admin Dashboard top leads/performer section */
.top-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
  color: #000000;
  font-size: 0.95rem;
}

.top-list li .rank {
  min-width: 20px;
  font-weight: 800;
  color: #e10600;
}

.top-list li .avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #e10600 0%, #b30000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.top-list li .name {
  flex: 1 1 auto;
  font-weight: 600;
  color: #000000;
}

.top-list li .location {
  font-size: 0.85rem;
  opacity: 0.7;
  min-width: 120px;
}

.top-list li .leads,
.top-list li .conversion,
.top-list li .earnings,
.top-list li .monthly-earnings {
  min-width: 90px;
  text-align: right;
  font-weight: 500;
}

.insights {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.insight {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.insight.positive {
  background-color: #e10600;
  color: white;
}

.insight.neutral {
  background-color: #b30000;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .branding-section {
        min-height: 40vh;
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .branding-content h2 {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo-icon {
        font-size: 3rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nav-container {
        padding: 0 15px;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        width: 100%;
        justify-content: center;
    }
    
    .security-item,
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dashboard-container {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .branding-section {
        min-height: 30vh;
    }
    
    .form-container {
        padding: 25px 15px;
    }
    
    .form-container h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .profile-section {
        padding: 20px 15px;
    }
}


/* Base Reset */
.profile-body * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.profile-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #000000;
    overflow-x: hidden;
}

/* Navbar */
.profile-body .navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 4px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(225, 6, 0, 0.1);
}

.profile-body .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.profile-body .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-body .nav-logo .logo-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #e10600 0%, #b30000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-body .nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
}

.profile-body .nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-body .nav-link {
    color: #333333;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.profile-body .nav-link:hover {
    color: #e10600;
    background: rgba(225, 6, 0, 0.1);
}

.profile-body .logout-btn {
    background: linear-gradient(135deg, #e10600 0%, #b30000 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.profile-body .logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(225, 6, 0, 0.3);
}

/* Dashboard Container */
.profile-body .dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    color: #000000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Profile Header */
.profile-body .profile-header {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-body .profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-body .profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e10600 0%, #b30000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(225, 6, 0, 0.3);
}

.profile-body .profile-info-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 5px;
}

.profile-body .profile-subtitle {
    color: #555555;
    font-size: 1rem;
}

.profile-body .profile-actions {
    display: flex;
    gap: 15px;
}

/* Stats Grid */
.profile-body .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.profile-body .stat-card {
    background: rgb(0, 0, 1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
    color: white;
}

.profile-body .stat-card:hover {
    transform: translateY(-5px);
}

.profile-body .stat-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #e10600 0%, #b30000 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-body .stat-info h3 {
    color: #b8b8d1;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.profile-body .stat-info p, .profile-body .stat-info div {
    color: #ddd;
    font-size: 0.95rem;
}

/* Profile Content */
.profile-body .profile-content {
    display: grid;
    gap: 30px;
}

/* Profile Sections */
.profile-body .profile-section {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e5e5e5;
}

/* Profile Section Headings */
.profile-body .profile-section h3 {
    color: #e10600;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.profile-body .btn.primary {
    background: linear-gradient(135deg, #e10600 0%, #b30000 100%);
    color: white;
}

.profile-body .btn.secondary {
    background: rgba(255, 255, 255, 0.85);
    color: #e10600;
    border: 1px solid #e10600;
}

.profile-body .btn.secondary:hover {
    background: #e10600;
    color: white;
}

/* Other elements */
.profile-body .recent-lead-item {
    background: #fff;
    color: #000000;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-body .lead-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e10600;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 14px;
    box-shadow: 0 0 8px #b3000088;
}

/* Unique Referral Code Section Styling */
.profile-body #referralSection {
  max-width: 700px;
  background: white;
  padding: 25px 30px;
  margin: 40px auto;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(224, 27, 27, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #000;
}

.profile-body #referralSection .referral-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.profile-body #referralSection .referral-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-body #referralSection .referral-icon {
  font-size: 2rem;
  color: #e10600;
}

.profile-body #referralSection h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e10600;
  margin: 0;
}

.profile-body #referralSection p {
  margin: 0;
  color: #666;
  font-weight: 500;
}

.profile-body #referralSection .referral-code-card {
  background: linear-gradient(135deg, #fdf2f2 0%, #ffe6e6 100%);
  border-radius: 12px;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: inset 0 0 10px #e1060055;
}

.profile-body #referralSection .code-icon {
  font-size: 1.8rem;
  padding: 12px;
  background: white;
  border-radius: 10px;
  color: #b30000;
  box-shadow: 0 0 12px rgba(225, 6, 0, 0.25);
}

.profile-body #referralSection .code-text {
  flex-grow: 1;
}

.profile-body #referralSection .code-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #b30000;
  display: block;
  margin-bottom: 4px;
}

.profile-body #referralSection .code-text p {
  font-size: 0.9rem;
  color: #900000;
  font-weight: 500;
  margin-bottom: 0;
}

.profile-body #referralSection .copy-btn {
  background: linear-gradient(135deg, #e10600 0%, #b30000 100%);
  border: none;
  color: white;
  padding: 10px 30px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 18px rgba(225, 6, 0, 0.4);
}

.profile-body #referralSection .copy-btn:hover {
  background: #a00300;
  box-shadow: 0 8px 24px rgba(175, 0, 0, 0.6);
  transform: translateY(-1px);
}

/* Pro Tip */
.profile-body #referralSection .pro-tip {
  margin-top: 25px;
  font-size: 0.9rem;
  background: #ffe6e6;
  color: #b30000;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: inset 0 0 10px #e1060055;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-body #referralSection .pro-tip span {
  font-weight: 700;
  font-size: 1.1rem;
}
/* Responsive adjustments */
/* --- Layout Container Fixes --- */

.main-container {
  display: flex;
  flex-direction: row;
  max-width: 1200px;           /* Limit width and center on large screens */
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.branding-section,
.index-branding-section,
.dashboard-container,
.nav-container {
  max-width: 1200px;           /* Consistent centering & width */
  width: 100%;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.stats-grid,
.summary-grid,
.profile-body .stats-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Slightly wider on large screens */
}

/* --- Responsive Media Queries (Extend Existing) --- */

@media (max-width: 1024px) {
  .main-container,
  .branding-section,
  .index-branding-section,
  .dashboard-container,
  .nav-container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    max-width: 100vw;
    padding-left: 4px;
    padding-right: 4px;
  }
  .index-branding-section {
    flex-direction: column !important;
    gap: 20px;
    padding: 20px;
    align-items: center;
    max-width: 100vw;
  }
  .branding-section {
    min-height: 40vh;
    padding: 10vw 2vw;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .stats-grid,
  .summary-grid,
  .profile-body .stats-grid {
    grid-template-columns: 1fr;  /* Stacks single column for small devices */
    gap: 15px;
  }
  .main-container,
  .index-branding-section,
  .dashboard-container,
  .nav-container {
    max-width: 100vw;
    padding-left: 2px;
    padding-right: 2px;
  }
}

/* --- Image Responsiveness --- */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
