/* ===== AFFILIATE PAGE CSS ===== */

:root {
  --af-primary: #991b1b;
  --af-primary-dark: #7f1d1d;
  --af-accent: #fbbf24;
  --af-accent-light: #fef3c7;
  --af-text: #1e293b;
  --af-text-muted: #64748b;
  --af-bg-light: #f8fafc;
  --af-white: #ffffff;
}

/* --- Hero Section --- */
.af-hero-section {
  position: relative;
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc6b26 100%);
  padding: 140px 0 110px;
  overflow: hidden;
  color: var(--af-white);
}

.af-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/hero-mandala-light.png") no-repeat center center;
  background-size: cover;
  opacity: 0.1;
  pointer-events: none;
}

.af-hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.af-hero-title {
  font-family: "Playfair Display", serif;
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.af-hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  max-width: 550px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.af-hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-af-primary {
  background: var(--af-white);
  color: var(--af-primary);
  padding: 15px 40px;
  border-radius: 100px;
  font-weight: 800;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
}

.btn-af-primary:hover {
  background: var(--af-accent);
  color: var(--af-primary-dark);
  transform: translateY(-3px);
}

.btn-af-outline {
  background: transparent;
  color: var(--af-white);
  padding: 13px 40px;
  border-radius: 100px;
  font-weight: 800;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--af-white);
  transition: all 0.3s;
}

.btn-af-outline:hover {
  background: var(--af-white);
  color: var(--af-primary);
  transform: translateY(-3px);
}

.af-hero-stats {
  display: flex;
  gap: 35px;
}

.af-stat-item {
  display: flex;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  flex-direction: column;
}

.af-stat-item iconify-icon {
  color: var(--af-accent);
  font-size: 20px;
}

.af-hero-img-wrap {
  position: relative;
  z-index: 1;
}

.af-hero-img {
  width: 100%;

}

.af-floating-coin {
  position: absolute;
  bottom: 100px;
  right: -20px;
  width: 60px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* --- Steps Section --- */
.af-steps-section {
  padding: 100px 0;
  background: var(--af-white);
}

.af-section-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fef2f2;
  color: var(--af-primary);
  width: max-content;
  margin: 0 auto 15px;
  padding: 5px 15px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.af-section-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--af-text);
  text-align: center;
  margin-bottom: 20px;
}

.af-section-title span {
  color: var(--af-primary);
}

.af-section-desc {
  text-align: center;
  color: var(--af-text-muted);
  max-width: 600px;
  margin: 0 auto 60px;
}

.af-step-card {
  text-align: center;
  padding: 30px;
  position: relative;
}

.af-step-icon {
  width: 100px;
  height: 100px;
  background: var(--af-white);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 40px;
  color: var(--af-primary);
  position: relative;
  transition: all 0.3s;
}

.af-step-card:hover .af-step-icon {
  border-color: var(--af-primary);
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(153, 27, 27, 0.1);
}

.af-step-num {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: var(--af-primary);
  color: var(--af-white);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--af-white);
}

.af-step-card h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 15px;
}

.af-step-card p {
  font-size: 14px;
  color: var(--af-text-muted);
  line-height: 1.6;
}

/* --- Trust Section --- */
.af-trust-section {
  padding: 100px 0;
  background: #fff8f1;
}

.af-trust-wrap {
  background: var(--af-white);
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  align-items: center;
}

.af-trust-left {
  flex: 1;
  background: #fdfdfd;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.af-trust-img {
  width: 100%;
  border-radius: 20px;
}

.af-trust-right {
  flex: 1;
  padding: 60px;
}

.af-trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.af-trust-stat-box {
  text-align: center;
  padding: 20px 10px;
  border: 1px solid #f1f5f9;
  border-radius: 15px;
}

.af-trust-stat-box iconify-icon {
  font-size: 24px;
  color: var(--af-primary);
  margin-bottom: 10px;
}

.af-trust-stat-box h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 5px;
}

.af-trust-stat-box p {
  font-size: 11px;
  font-weight: 700;
  color: var(--af-text-muted);
  text-transform: uppercase;
}

/* --- Benefits Section --- */
.af-benefits-section {
  padding: 100px 0;
}

.af-benefit-item {
  background: var(--af-white);
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 25px;
  transition: all 0.3s;
  cursor: pointer;
}

.af-benefit-item:hover {
  border-color: var(--af-primary);
  box-shadow: 0 10px 20px rgba(153, 27, 27, 0.05);
}

.af-benefit-num {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 800;
  color: #e2e8f0;
  transition: all 0.3s;
}

.af-benefit-item:hover .af-benefit-num {
  color: var(--af-primary);
}

.af-benefit-content h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.af-benefit-content p {
  font-size: 14px;
  color: var(--af-text-muted);
  margin: 0;
}

.af-talk-card {
  background: var(--af-white);
  border-radius: 30px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.af-talk-visual {
  width: 180px;
  height: 180px;
  margin: 0 auto 30px;
}

.af-talk-visual img {
  width: 100%;
}

.af-testimonial {
  background: #f8fafc;
  padding: 25px;
  border-radius: 20px;
  margin-top: 30px;
  display: flex;
  gap: 15px;
  text-align: left;
}

.af-testi-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.af-testi-content p {
  font-size: 13px;
  font-style: italic;
  margin-bottom: 10px;
}

.af-testi-author {
  font-size: 12px;
  font-weight: 800;
}

/* --- CTA Section --- */
.af-cta-section {
  padding-bottom: 100px;
}

.af-cta-card {
  background: linear-gradient(90deg, #991b1b 0%, #ea580c 100%);
  border-radius: 30px;
  padding: 60px;
  text-align: center;
  color: var(--af-white);
}

.af-cta-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
}

.af-cta-card h2 span {
  color: var(--af-accent);
}

.af-cta-card p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}


/* --- Affiliate Navbar --- */
.af-navbar {
  background: transparent;
  border: none;
  z-index: 100;
  padding: 25px 0;
  position: absolute;
  width: 100%;
}

.af-logo-white {
  filter: brightness(0) invert(1);
}

.af-nav-btn-signup {
  background: #991b1b;
  color: #ffffff !important;
  padding: 10px 30px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.3s;
  border: 1px solid #991b1b;
}

.af-nav-btn-signup:hover {
  background: #7f1d1d;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(153, 27, 27, 0.2);
}

.af-nav-btn-signin {
  background: #ffffff;
  color: #991b1b !important;
  padding: 10px 30px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.3s;
  border: 1px solid #ffffff;
}

.af-nav-btn-signin:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.af-btn-add-now {
  background: #991b1b;
  color: white !important;
  padding: 14px 35px;
  border-radius: 100px;
  font-weight: 700;
  border: none;
  transition: all 0.3s;
}

.af-btn-add-now:hover {
  background: #7f1d1d;
  transform: translateY(-3px);
}

.af-btn-outline-gold {
  background: transparent;
  color: #fbbf24 !important;
  border: 2px solid #fbbf24;
  padding: 12px 35px;
  border-radius: 100px;
  font-weight: 700;
  transition: all 0.3s;
}

.af-btn-outline-gold:hover {
  background: #fbbf24;
  color: #991b1b !important;
}

.af-talk-card h3 {

  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--af-text);
  text-align: center;
  margin-bottom: 20px;

}



/* --- Affiliate Login --- */
.af-login-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc6b26 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  position: relative;
}

.af-login-card {
  background: var(--af-white);
  border-radius: 40px;
  padding: 60px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.af-login-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--af-text);
  margin-bottom: 10px;
  text-align: center;
}

.af-login-subtitle {
  color: var(--af-text-muted);
  font-size: 16px;
  margin-bottom: 40px;
  text-align: center;
}

.af-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--af-text-muted);
  margin-bottom: 8px;
}

.af-input-group {
  position: relative;
  margin-bottom: 8px;
}

.af-input-group iconify-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
  z-index: 5;
}

.af-form-control {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s;
  height: 54px;
}

.af-form-control:focus {
  border-color: #991b1b;
  box-shadow: 0 0 0 4px rgba(153, 27, 27, 0.05);
  outline: none;
}

.af-login-divider {
  text-align: center;
  position: relative;
  margin: 35px 0;
}

.af-login-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #f1f5f9;
  z-index: 1;
}

.af-login-divider span {
  position: relative;
  z-index: 2;
  background: var(--af-white);
  padding: 0 15px;
  color: var(--af-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.btn-af-login {
  width: 100%;
  background: #991b1b;
  color: white !important;
  border: none;
  padding: 16px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(153, 27, 27, 0.2);
  margin-top: 10px;
}

.btn-af-login:hover {
  background: #7f1d1d;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(153, 27, 27, 0.3);
}

.af-login-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: var(--af-text-muted);
}

.af-login-footer a {
  color: #991b1b;
  font-weight: 700;
  text-decoration: none !important;
}

.af-password-toggle {
  position: absolute;
  right: 20px;
  left: auto !important;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #94a3b8;
  font-size: 18px;
  z-index: 5;
}

/* Custom Select2 for Affiliate */
.af-select-wrap .select2-container--default .select2-selection--single {
  height: 54px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.af-select-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: 14px;
  color: var(--af-text);
  padding-left: 5px;
}

.af-select-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
  display: none;
}



/* --- Affiliate Register --- */
.af-register-card {
  max-width: 900px !important;
}

.af-upload-box {
  border: 2px dashed #e2e8f0;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.af-upload-box:hover {
  border-color: #991b1b;
  background: #fef2f2;
}

.af-preview-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 2;
}

.af-upload-box.has-preview .af-preview-img {
  display: block;
}

.af-upload-box.has-preview .af-upload-content {
  opacity: 0;
  visibility: hidden;
}

.af-upload-content {
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.af-upload-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
  color: #94a3b8;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.af-upload-text {
  font-size: 14px;
  color: var(--af-text-muted);
}

.af-upload-text span {
  color: #991b1b;
  font-weight: 700;
}

.af-check-card-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.af-check-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.af-check-card:hover {
  border-color: #991b1b;
}

.af-check-card.active {
  background: #fef2f2;
  border-color: #991b1b;
  box-shadow: 0 4px 15px rgba(153, 27, 27, 0.05);
}

.af-custom-check {
  width: 24px;
  height: 24px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  transition: all 0.3s;
  background: #ffffff;
}

.af-check-card.active .af-custom-check {
  background: #991b1b;
  border-color: #991b1b;
}

.af-check-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--af-text);
}

.af-terms-check {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 25px;
}

.af-terms-check .af-check-card {
  padding: 0;
  border: none;
  background: transparent !important;
  box-shadow: none !important;
  gap: 12px;
}

.af-terms-check .af-check-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--af-text-muted);
}

.af-terms-check .af-check-label a {
  color: var(--af-text);
  font-weight: 700;
  text-decoration: none !important;
}

.af-terms-check .af-custom-check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.af-remove-preview {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  z-index: 10;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.af-upload-box.has-preview:hover .af-remove-preview {
  display: flex;
}

.af-remove-preview:hover {
  background: #ef4444;
  color: white;
}


/* --- Dashboard Styles --- */
.af-dash-header {
  background: white;
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.af-user-profile-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.af-profile-main {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid #f1f5f9;
}

.af-profile-img-wrap {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.af-profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-profile-info h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--af-text);
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.af-profile-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--af-text-muted);
  margin-bottom: 5px;
}

.af-profile-contact-item iconify-icon {
  color: #991b1b;
}

.af-referral-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.af-referral-link {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-copy-btn {
  background: white;
  border: 1px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
}

.af-copy-btn:hover {
  background: #991b1b;
  color: white;
  border-color: #991b1b;
}

.af-edit-profile-btn {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 10px 20px;
  border-radius: 60px;
  font-size: 14px;
  font-weight: 700;
  color: var(--af-text);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  text-decoration: none !important;
}

.af-edit-profile-btn:hover {
  background: #f8fafc;
  border-color: #991b1b;
}

.af-profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 30px 0;
}

.af-stat-item label {
  font-size: 14px;
  color: #94a3b8;
  display: block;
}

.af-stat-item p {
  font-size: 14px;
  font-weight: 700;
  color: var(--af-text);
  margin: 0;
}

.af-dash-tabs {
  background: #f8fafc;
  border-radius: 100px;
  display: flex;
  padding: 6px;
  margin-top: 10px;
}

.af-tab-item {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.3s;
  text-decoration: none !important;
}

.af-tab-item.active {
  background: #fef2f2;
  color: #991b1b;
  box-shadow: 0 4px 10px rgba(153, 27, 27, 0.05);
}

.af-tab-item.logout {
  color: #ef4444;
}

.af-section-card {
  background: white;
  border-radius: 24px;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.af-section-header {
  padding: 20px 30px;
  background: #fdfdfd;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.af-section-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--af-text);
  margin: 0;
  font-family: 'Playfair Display', serif;
}

.af-view-all-btn {
  width: 36px;
  height: 36px;
  background: #991b1b;
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.af-view-all-btn:hover {
  background: #7f1d1d;
  transform: translateY(-2px);
}

.af-table-responsive {
  padding: 10px 30px 30px;
  overflow-x: auto;
}

.af-table {
  width: 100%;
  min-width: 800px;
}

.af-table th {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  padding: 15px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.af-table td {
  font-size: 13px;
  font-weight: 600;
  color: var(--af-text);
  padding: 18px 10px;
  border-bottom: 1px solid #f8fafc;
}

.af-badge {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.af-badge-male {
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #dbeafe;
}

.af-badge-active {
  background: #f0fdf4;
  color: #22c55e;
  border: 1px solid #dcfce7;
}

.af-badge-active::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

/* Edit Profile Specific */
.af-edit-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 20px 0;
}

.af-edit-photo-section {
  text-align: center;
}

.af-edit-photo-wrap {
  width: 180px;
  height: 180px;
  border-radius: 24px;
  overflow: hidden;
  margin: 0 auto 20px;
  position: relative;
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.af-edit-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-photo-upload-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  color: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
}

.af-photo-upload-overlay:hover {
  background: rgba(0, 0, 0, 0.8);
}

.af-edit-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--af-text);
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
}

.af-edit-section-title iconify-icon {
  color: #991b1b;
  font-size: 20px;
}

.af-btn-save {
  background: #991b1b;
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 52px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 10px 25px rgba(153, 27, 27, 0.2);
}

.af-btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(153, 27, 27, 0.3);
  color: white;
}




/* --- Responsiveness --- */

@media (max-width: 1200px) {
  .af-profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .af-hero-title {
    font-size: 48px;
  }

  .af-trust-wrap {
    flex-direction: column;
  }

  .af-cta-card h2 {
    font-size: 36px;
  }

  .af-hero-stats {
    flex-wrap: wrap;
  }

  .af-referral-box {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    margin-top: 20px;
  }

  .af-dash-tabs {
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .af-tab-item {
    flex: 0 0 50%;
  }

  .af-edit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .af-profile-main {
    justify-content: center;
    text-align: center;
  }

  .af-tab-item {
    flex: 0 0 100%;
  }

  .af-profile-stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .af-user-profile-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
  }

  .af-login-card {
    padding: 40px 25px;
    border-radius: 30px;
  }

  .af-login-title {
    font-size: 32px;
  }
}


@media (max-width: 768px) {
  .af-hero-section {
    padding: 80px 0;
    text-align: center;
  }

  .af-hero-actions {
    justify-content: center;
    flex-direction: column;
  }

  .af-hero-subtitle {
    margin: 0 auto 40px;
  }

  .btn-af-primary,
  .btn-af-outline {
    justify-content: center;
  }

  .af-check-card-group {
    grid-template-columns: 1fr;
  }

  .af-nav-btn-signin {
    background: #ffffff;
    color: #991b1b !important;
    padding: 8px 19px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s;
    border: 1px solid #ffffff;
    font-size: 12px;
  }

  .af-nav-btn-signup {
    background: #991b1b;
    color: #ffffff !important;
    padding: 8px 19px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s;
    border: 1px solid #991b1b;
    font-size: 12px;
  }

}