/* ==========================================
   Idealjodi Biodata Maker - main.css
   ========================================== */

/* 1. Design Tokens & Root Variables */
:root {
  --primary-color: #7342EB;
  --secondary-color: #2C8EDC;
  --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --secondary-gradient: linear-gradient(135deg, var(--secondary-color) 0%, #00d2ff 100%);
  --dark-color: #0E0B25;
  --dark-purple: #130E32;
  --light-gray: #F7F6FB;
  --border-color: #E8E6F0;
  --text-dark: #1E1A3C;
  --text-muted: #6C6A84;
  --theme-color: var(--primary-color);

  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(115, 66, 235, 0.06);
  --shadow-md: 0 8px 24px rgba(115, 66, 235, 0.1);
  --shadow-lg: 0 16px 48px rgba(115, 66, 235, 0.14);
  --shadow-xl: 0 24px 64px rgba(115, 66, 235, 0.18);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* 2. Global Reset & Base Elements */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(115, 66, 235, 0.15);
  color: var(--primary-color);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  color: var(--text-dark);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
}

.section-padding {
  padding: 60px 0;
}

.bg-light-gray {
  background-color: var(--light-gray);
}

/* Subtitles and Titles */
.sub-title {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: transparent;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.section-underline {
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
  margin-top: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 3. Utility Classes */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-primary-gradient {
  background: var(--primary-gradient) !important;
}

.bg-primary-light {
  background-color: rgba(115, 66, 235, 0.07);
}

.bg-secondary-light {
  background-color: rgba(44, 142, 220, 0.07);
}

.bg-success-light {
  background-color: rgba(40, 167, 69, 0.07);
}

.bg-warning-light {
  background-color: rgba(255, 193, 7, 0.07);
}

.bg-info-light {
  background-color: rgba(23, 162, 184, 0.07);
}

.bg-danger-light {
  background-color: rgba(220, 53, 69, 0.07);
}

.hover-scale:hover {
  transform: scale(1.03);
}

.pulse {
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

@keyframes float {

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

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* 4. Buttons & Badges */
.btn-pill {
  border-radius: 50px;
  padding: 13px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
  letter-spacing: 0.2px;
}

.btn-primary-gradient {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  border: none;
  box-shadow: 0 4px 15px rgba(115, 66, 235, 0.25);
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary-gradient:hover {
  box-shadow: 0 8px 30px rgba(115, 66, 235, 0.4);
  transform: translateY(-2px);
}

.btn-primary-gradient iconify-icon {
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.btn-primary-gradient:hover iconify-icon {
  transform: translateX(4px);
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
}

.btn-outline-custom:hover {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(115, 66, 235, 0.3);
}

.btn-login {
  background: #fff;
  color: var(--text-dark);
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.btn-login:hover {
  color: var(--primary-color);
  background-color: rgba(115, 66, 235, 0.06);
}

.btn-ghost {
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
}

.btn-ghost:hover {
  background-color: var(--light-gray);
  color: var(--text-dark);
}

.badge-premium {
  background: linear-gradient(135deg, rgba(115, 66, 235, 0.1) 0%, rgba(44, 142, 220, 0.1) 100%);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(115, 66, 235, 0.15);
}

/* 5. Sticky Navigation Bar */
.site-nav {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 225, 236, 0.5);
  padding: 14px 0;
  z-index: 1050;
  transition: var(--transition-normal);
}

.site-nav.scrolled {
  box-shadow: 0 4px 30px rgba(115, 66, 235, 0.08);
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.96);
}

.brand-logo {
  max-height: 42px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  gap: 8px;
}

.nav-item {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  transition: var(--transition-fast);
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary-color);
  background-color: rgba(115, 66, 235, 0.05);
}

.navbar-toggler {
  border: none;
  background: transparent;
  font-size: 1.8rem;
  color: var(--text-dark);
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

/* Offcanvas Mobile Nav Drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  max-width: 85vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1075;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

@media (min-width: 992px) {
  .nav-drawer {
    display: none !important;
  }
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1070;
}

/* 6. Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, rgba(115, 66, 235, 0.04) 0%, rgba(44, 142, 220, 0.02) 50%, #FFFFFF 100%);
  padding: 20px 0 20px;
  overflow: hidden;
}

.hero-shape-1 {
  position: absolute;
  top: -15%;
  right: -8%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 66, 235, 0.06) 0%, transparent 65%);
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 142, 220, 0.06) 0%, transparent 65%);
  z-index: 0;
  animation: float 8s ease-in-out infinite 2s;
}

.hero-text-col,
.hero-media-col {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.benefit-item {
  transition: var(--transition-fast);
}

.benefit-item:hover {
  transform: translateX(4px);
}

.benefit-item span {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark);
}

/* Trust Stats */
.divider-vertical {
  width: 1px;
  height: 45px;
  background: linear-gradient(180deg, transparent, var(--border-color), transparent);
}

.stat-box .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px;
}

.stat-box .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
  font-weight: 500;
}

/* Hero Showcase Card Mockup */
.hero-image-wrapper {
  position: relative;
  max-width: 570px;
  margin: 0 auto;
}

.floating-badge {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 225, 236, 0.6);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  text-align: left;
  box-shadow: 0 8px 32px rgba(115, 66, 235, 0.1);
  transition: var(--transition-smooth);
}

.floating-badge:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.floating-badge h5 {
  font-size: 0.85rem;
  margin-bottom: 1px;
  font-weight: 700;
  text-transform: uppercase;
}

.floating-badge p {
  font-size: 0.75rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

.badge-top-left {
  top: 15%;
  left: -20%;
  animation: float 6s ease-in-out infinite;
}

.badge-bottom-right {
  bottom: 15%;
  right: -20%;
  animation: float 6s ease-in-out infinite 3s;
}

.hero-showcase-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid rgba(226, 225, 236, 0.6);
  box-shadow: 0 24px 64px rgba(115, 66, 235, 0.12), 0 8px 16px rgba(115, 66, 235, 0.06);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: var(--transition-smooth);
}

.hero-showcase-card:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 0 32px 80px rgba(115, 66, 235, 0.18);
}

.biodata-mock-photo-frame {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  border: 3px solid transparent;
  background-image: var(--primary-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  margin: 0 auto;
  padding: 3px;
}

.mock-avatar-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-avatar-placeholder .avatar-icon {
  font-size: 2.8rem;
  color: var(--text-muted);
}

.mock-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.mock-tagline {
  font-size: 0.82rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mock-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
  margin-bottom: 12px;
  text-align: left;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 15px;
  text-align: left;
  font-size: 0.83rem;
}

.mock-grid-item {
  color: var(--text-dark);
}

.mock-grid-item strong {
  font-weight: 600;
  color: var(--text-muted);
}

.mock-text {
  font-size: 0.83rem;
  color: var(--text-dark);
  text-align: left;
}

.biodata-mock-footer {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(115, 66, 235, 0.06), rgba(44, 142, 220, 0.06));
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* 7. Trust/Share Strip */
.trust-strip {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: #FFFFFF;
}

.trust-strip-title h5 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.share-badge-card {
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm) !important;
}

.share-badge-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
  border-color: rgba(115, 66, 235, 0.2);
}

.share-logo-img {
  max-height: 22px;
  object-fit: contain;
}

.share-badge-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* 8. How It Works Steps */
.steps-section {
  position: relative;
}

.step-card {
  position: relative;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  overflow: hidden;
  z-index: 2;
  background-color: #FFFFFF;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 2px 12px rgba(115, 66, 235, 0.04) !important;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(115, 66, 235, 0.1);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: var(--transition-normal);
  transform-origin: left;
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(135deg, rgba(115, 66, 235, 0.08), rgba(44, 142, 220, 0.08));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.step-card:hover .step-icon-wrap {
  background: var(--primary-gradient);
  box-shadow: 0 8px 24px rgba(115, 66, 235, 0.3);
  transform: scale(1.05);
}

.step-icon {
  font-size: 2.2rem;
  color: var(--primary-color);
  transition: var(--transition-normal);
}

.step-card:hover .step-icon {
  color: #FFFFFF;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 9. Templates Showroom Section */
.template-filters {
  z-index: 5;
}

.filter-btn {
  background-color: #FFFFFF;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 9px 26px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition-normal);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(115, 66, 235, 0.25);
  transform: translateY(-1px);
}

.template-slider-wrap {
  padding: 0 10px;
}

.template-slide-item {
  padding: 12px;
}

.template-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.template-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.template-img-holder {
  position: relative;
  overflow: hidden;
  background-color: var(--light-gray);
  aspect-ratio: 1 / 1;
}

.template-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.template-card:hover .template-img {
  transform: scale(1.08);
}

.template-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(14, 11, 37, 0.1) 0%, rgba(14, 11, 37, 0.5) 100%);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.template-info {
  padding: 16px 18px;
}

.template-info .template-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.template-info .template-tag {
  font-size: 0.78rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Custom Slick Slider Dots */
.slick-dots {
  display: flex !important;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 35px 0 0 0;
  gap: 8px;
}

.slick-dots li {
  display: inline-block;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
}

.slick-dots li button {
  background-color: var(--border-color);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: var(--transition-normal);
}

.slick-dots li button:before {
  display: none;
}

.slick-dots li.slick-active button {
  background: var(--primary-gradient);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(115, 66, 235, 0.3);
}

/* 10. Live Preview Builder Section */
.live-builder-section {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--light-gray) 100%);
}

.builder-form-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
}

.builder-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
}

.form-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control,
.form-select {
  border: 1px solid var(--border-color);
  padding: 11px 14px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  background-color: #FFFFFF;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(115, 66, 235, 0.1);
}

/* Select2 Custom Styles */
.select2-container--default .select2-selection--single {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  height: 44px;
  padding: 7px 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 10px;
}

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 42px 0 12px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  background-color: #fff !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default
.select2-selection--single
.select2-selection__rendered {
  color: #212529 !important;
  line-height: 42px !important;
  padding: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select2-container--default
.select2-selection--single
.select2-selection__arrow {
  width: 36px !important;
  height: 42px !important;
  top: 1px !important;
  right: 5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.select2-container--default
.select2-selection--single
.select2-selection__arrow b {
  border-color: #888 transparent transparent transparent !important;
  border-width: 5px 4px 0 4px !important;
}

.select2-container--default.select2-container--focus
.select2-selection--single,
.select2-container--default.select2-container--open
.select2-selection--single {
  border-color: var(--primary-color, #6c5ce7) !important;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.10) !important;
  outline: none !important;
}

.select2-container--default .select2-dropdown {
  margin-top: 4px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10) !important;
}

.select2-container--default
.select2-search--dropdown {
  padding: 8px !important;
}

.select2-container--default
.select2-search--dropdown
.select2-search__field {
  height: 38px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
  outline: none !important;
}

.select2-container--default
.select2-search--dropdown
.select2-search__field:focus {
  border-color: var(--primary-color, #6c5ce7) !important;
}

.select2-container--default
.select2-results__option {
  padding: 9px 14px !important;
  font-size: 14px !important;
  line-height: 20px !important;
  color: #2d2d3a !important;
  background: #fff !important;
  cursor: pointer;
}

.select2-container--default
.select2-results__option--highlighted[aria-selected] {
  color: #fff !important;
  background: var(--primary-color, #6c5ce7) !important;
}

.select2-container--default
.select2-results__option[aria-selected="true"] {
  color: #2d2d3a !important;
  background: #f3f1ff !important;
}

.select2-container--default
.select2-results__option[aria-selected="true"]:hover {
  color: #fff !important;
}

.select2-container--default
.select2-results > .select2-results__options {
  max-height: 240px !important;
  overflow-y: auto !important;
}

.select2-container--default
.select2-results > .select2-results__options::-webkit-scrollbar {
  width: 6px;
}

.select2-container--default
.select2-results > .select2-results__options::-webkit-scrollbar-track {
  background: transparent;
}

.select2-container--default
.select2-results > .select2-results__options::-webkit-scrollbar-thumb {
  background: #c7c7c7;
  border-radius: 10px;
}

/* Accent Color dots selection */
.color-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

.color-dot:hover {
  transform: scale(1.1);
}

.color-dot.active {
  box-shadow: 0 0 0 3px var(--primary-color);
  transform: scale(1.15);
}

/* Preview Panel Card styling */
.preview-panel-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
}

.preview-status-badge {
  background-color: rgba(40, 167, 69, 0.08);
  color: #28a745;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.btn-preview-tool {
  border: 1px solid var(--border-color);
  background-color: transparent;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.btn-preview-tool:hover {
  background-color: rgba(115, 66, 235, 0.06);
  color: var(--primary-color);
  border-color: rgba(115, 66, 235, 0.2);
}

/* Printable Biodata preview frame */
.biodata-preview-wrapper {
  width: 100%;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 12px;
  background: linear-gradient(135deg, #ECEBF3 0%, #E5E3EF 100%);
  border-radius: var(--radius-md);
  min-height: 520px;
}

.preview-biodata-theme {
  --theme-color: #7342EB;
  width: 100%;
  max-width: 440px;
  min-height: 580px;
  background-color: #FFFFFF;
  padding: 30px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform-origin: top center;
  transition: transform 0.2s ease-out;
}

/* Traditional Decorative Borders */
.biodata-border-accent {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid var(--theme-color);
  pointer-events: none;
}

.border-top-left {
  top: 15px;
  left: 15px;
  border-right: none;
  border-bottom: none;
}

.border-top-right {
  top: 15px;
  right: 15px;
  border-left: none;
  border-bottom: none;
}

.border-bottom-left {
  bottom: 15px;
  left: 15px;
  border-right: none;
  border-top: none;
}

.border-bottom-right {
  bottom: 15px;
  right: 15px;
  border-left: none;
  border-top: none;
}

.traditional-header {
  margin-top: 10px;
}

.traditional-icon {
  line-height: 1;
}

.biodata-heading-title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.biodata-personal-heading .p-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
}

.biodata-personal-heading .p-sub-profession {
  font-size: 0.88rem;
}

.biodata-block-title {
  font-size: 0.95rem;
  font-weight: 700;
  padding-bottom: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.biodata-details-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  font-size: 0.85rem;
  gap: 10px;
}

.detail-label {
  font-weight: 600;
  color: var(--text-muted);
}

.detail-val {
  color: var(--text-dark);
  font-weight: 500;
}

.detail-text {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.preview-actions-footer .btn-pill {
  padding: 14px 24px;
  font-size: 0.95rem;
}

/* 11. Features Section */
.features-section {
  background: linear-gradient(180deg, var(--light-gray) 0%, #FFFFFF 100%);
}

.feature-card {
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  position: relative;
  background-color: #FFFFFF;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 2px 12px rgba(115, 66, 235, 0.04) !important;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(115, 66, 235, 0.08);
}

.border-top-gradient-hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0);
  transition: var(--transition-normal);
  transform-origin: left;
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon-wrap {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.05);
}

.feature-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: rotateY(180deg);
  transition: transform 0.6s;
}

.bg-secondary-light .feature-icon {
  color: var(--secondary-color);
}

.bg-success-light .feature-icon {
  color: #28a745;
}

.bg-warning-light .feature-icon {
  color: #ffc107;
}

.bg-info-light .feature-icon {
  color: #17a2b8;
}

.bg-danger-light .feature-icon {
  color: #dc3545;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 12. Testimonials Section */
.testimonial-card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-4px);
}

.stars i {
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
}

.user-avatar-text {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.1rem;
}

.user-name {
  font-size: 1rem;
}

/* 13. Pricing Section */
.pricing-section {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--light-gray) 50%, #FFFFFF 100%);
}

.pricing-card {
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 2;
  border-radius: var(--radius-xl) !important;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.border-top-gray {
  border-top: 5px solid var(--border-color);
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 800;
}

.price-currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.price-period {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Pricing Features */
.plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  line-height: 1.5;
  text-align: left;
}

.plan-features li .feature-icon {
  flex: 0 0 18px;
  width: 18px;
  color: #00a878;
  font-weight: 700;
  line-height: 1.5;
}

.plan-features li .feature-text {
  flex: 1;
  min-width: 0;
}

/* Switch Toggle Styling */
.theme-switch {
  display: inline-block;
  height: 28px;
  position: relative;
  width: 55px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: var(--border-color);
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 20px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 20px;
}

input:checked+.slider {
  background: var(--primary-gradient);
}

input:checked+.slider:before {
  transform: translateX(27px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.toggle-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.toggle-label.active {
  color: var(--primary-color);
}

/* Premium Card specific */
.premium-card {
  background-color: var(--dark-purple) !important;
  color: #FFFFFF;
  border-radius: var(--radius-xl) !important;
}

.border-top-gradient {
  border-top: none;
}

.border-top-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary-gradient);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.popular-ribbon {
  position: absolute;
  top: 40px;
  right: -35px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 6px 40px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
}

.card-glow-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(115, 66, 235, 0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.text-light-purple {
  color: rgba(255, 255, 255, 0.7);
}

.border-light-purple {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* 14. FAQ Section Accordion */
.faq-item {
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  border-radius: var(--radius-md) !important;
}

.faq-item:hover {
  border-color: rgba(115, 66, 235, 0.15);
}

.faq-item.active {
  border-color: rgba(115, 66, 235, 0.3);
  box-shadow: 0 8px 32px rgba(115, 66, 235, 0.1) !important;
}

.faq-question {
  user-select: none;
  cursor: pointer;
}

.faq-question h4 {
  font-size: 1.02rem;
  transition: var(--transition-fast);
}

.faq-item.active .faq-question h4 {
  color: var(--primary-color);
}

.faq-icon i {
  font-size: 1.3rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon i {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
}

.faq-answer p {
  line-height: 1.7;
}

/* 15. Bottom CTA Banner */
.cta-banner-section {
  padding-bottom: 60px;
}

.cta-banner-card {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-xl) !important;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 75%);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.opacity-90 {
  opacity: 0.9;
}

.store-logo {
  height: 50px;
  transition: var(--transition-fast);
}

.store-logo:hover {
  transform: translateY(-2px);
}

.z-index-2 {
  position: relative;
  z-index: 2;
}

/* 16. Footer Section */
.bg-dark-purple {
  background-color: var(--dark-color);
}

.footer-logo {
  max-height: 48px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-gradient);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(115, 66, 235, 0.3);
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
  color: white;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background: var(--primary-gradient);
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-links li a:hover {
  color: #FFFFFF;
  padding-left: 5px;
}

.footer-bottom {
  font-size: 0.8rem;
}

/* 17. Scroll Progress / Back to Top styling */
.progress-wrap {
  position: fixed;
  right: 30px;
  bottom: 30px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(115, 66, 235, 0.15);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 200ms linear;
  background-color: #FFFFFF;
}

.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.progress-wrap::after {
  position: absolute;
  font-family: 'boxicons';
  content: '\eb11';
  text-align: center;
  line-height: 46px;
  font-size: 20px;
  color: var(--primary-color);
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 1;
  transition: all 200ms linear;
}

.progress-wrap:hover::after {
  opacity: 0;
}

.progress-wrap::before {
  position: absolute;
  font-family: 'boxicons';
  content: '\eb11';
  text-align: center;
  line-height: 46px;
  font-size: 20px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 2;
  opacity: 0;
  transition: all 200ms linear;
}

.progress-wrap:hover::before {
  opacity: 1;
}

.progress-wrap svg path {
  fill: none;
}

.progress-wrap svg.progress-circle path {
  stroke: var(--primary-color);
  stroke-width: 4;
  box-sizing: border-box;
  transition: all 200ms linear;
}

/* ==========================================
   18. Mobile Navigation Drawer
   ========================================== */

/* Desktop: nav-drawer is strictly hidden */
@media (min-width: 992px) {
  .nav-drawer {
    display: none !important;
  }

  .nav-drawer-head,
  .nav-drawer-header {
    display: none !important;
  }
}

/* Mobile: nav-drawer is slide-in panel */
@media (max-width: 991.98px) {
  .nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    right: auto;
    width: 340px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background-color: #FFFFFF;
    box-shadow: 8px 0 40px rgba(14, 11, 37, 0.15);
    z-index: 1100;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
  }

  .nav-drawer.open {
    left: 0;
    right: auto;
    visibility: visible;
  }

  .nav-drawer-head,
  .nav-drawer-header {
    display: flex !important;
  }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
  }

  .nav-links li {
    display: block;
    list-style: none;
  }

  .nav-links li .nav-item {
    display: block;
    padding: 13px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
  }

  .nav-links li .nav-item:hover,
  .nav-links li .nav-item.active {
    background-color: rgba(115, 66, 235, 0.06);
    color: var(--primary-color);
  }



  .nav-cta-wrap .btn-login {
    text-align: center;
    padding: 13px 30px;
    border-radius: 62px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    display: block;
    color: var(--text-dark);
  }

  .nav-cta-wrap .btn-login:hover {
    background-color: rgba(115, 66, 235, 0.06);
    color: var(--primary-color);
    border-color: rgba(115, 66, 235, 0.2);
  }

  .nav-cta-wrap .btn-pill {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .close-toggle {
    border: none;
    background: rgba(115, 66, 235, 0.06);
    font-size: 1.6rem;
    color: var(--text-dark);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
  }

  .close-toggle:hover {
    background-color: rgba(115, 66, 235, 0.12);
    color: var(--primary-color);
  }

  .site-nav-inner {
    width: 100%;
  }
}

/* 19. Mobile Menu Drawer Backdrop Overlay */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(14, 11, 37, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1090;
  display: none;
}

/* 20. Premium Select2 Dropdown Redesign */
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(115, 66, 235, 0.1) !important;
  outline: none;
}

.select2-dropdown {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-lg) !important;
  overflow: hidden;
  z-index: 1060;
  background-color: #FFFFFF;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--primary-gradient) !important;
  color: #FFFFFF !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: rgba(115, 66, 235, 0.06) !important;
  /* color: var(--primary-color) !important; */
  font-weight: 600;
}

.select2-results__option {
  padding: 10px 16px !important;
  font-size: 0.9rem !important;
  color: var(--text-dark) !important;
  transition: var(--transition-fast);
}

/* ==========================================
   21. Login Modal Popup
   ========================================== */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(14, 11, 37, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.login-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.login-modal-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 32px 80px rgba(14, 11, 37, 0.2), 0 0 0 1px rgba(226, 225, 236, 0.3);
  animation: loginSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: var(--light-gray);
  color: var(--text-muted);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.login-modal-close:hover {
  background-color: rgba(220, 53, 69, 0.08);
  color: #dc3545;
}

/* Icon Wrap */
.login-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(115, 66, 235, 0.1), rgba(44, 142, 220, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-icon-wrap iconify-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.login-icon-wrap.otp-icon {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 193, 7, 0.1));
}

.login-icon-wrap.otp-icon iconify-icon {
  color: #FF9800;
}

.login-icon-wrap.success-icon {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(0, 200, 83, 0.1));
  animation: successPulse 1.5s ease-in-out;
}

.login-icon-wrap.success-icon iconify-icon {
  color: #28a745;
  font-size: 2.4rem;
}

@keyframes successPulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Titles */
.login-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.login-modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Mobile Input Group */
.login-form {
  margin-top: 28px;
}

.mobile-input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 58px;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  overflow: visible;
  transition: border-color 0.2s ease,
  box-shadow 0.2s ease;;
  background-color: #FFFFFF;
}

.mobile-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(115, 66, 235, 0.1);
}

.country-code-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 104px;
  height: 54px;
  padding: 14px 14px 14px 16px;
  background-color: var(--light-gray);
  border: 0;
  border-right: 1px solid var(--border-color);
  border-radius: 14px 0 0 14px;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.country-code-badge:hover {
  background: #f0eff8;
}

.country-code-badge[aria-expanded="true"] {
  background: rgba(115, 66, 235, 0.07);
  color: var(--primary-color);
}

.country-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

/*.country-code-badge .country-flag {
  width: 25px;
  height: 25px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}*/

.country-code-text {
  white-space: nowrap;
}

.country-caret {
  font-size: 17px;
  color: #77758b;
  transition: transform 0.2s ease;
}

.country-code-badge[aria-expanded="true"] .country-caret {
  transform: rotate(180deg);
}

.login-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  font-weight: 500;
  letter-spacing: 1px;
  background: transparent;
}

.login-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.88rem;
}

.input-hint {
  font-size: 0.8rem;
  color: #dc3545;
  margin: 8px 0 0 4px;
  min-height: 18px;
}

.login-submit-btn {
  margin-top: 10px;
  padding: 14px 28px;
  font-size: 1rem;
}

/* OTP Input Group */
.otp-input-group {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.otp-box {
  width: 60px;
  height: 64px;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--text-dark);
  background-color: #FFFFFF;
  outline: none;
  transition: var(--transition-fast);
  caret-color: var(--primary-color);
}

.otp-box:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(115, 66, 235, 0.1);
  background-color: rgba(115, 66, 235, 0.02);
}

.otp-box.filled {
  border-color: var(--primary-color);
  background-color: rgba(115, 66, 235, 0.04);
}

.otp-box.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
  animation: otpShake 0.4s ease;
}

@keyframes otpShake {

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

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  gap: 12px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.login-divider span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Social Login Buttons */
.social-login-options {
  display: flex;
  gap: 12px;
}

.social-login-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: #FFFFFF;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.social-login-btn:hover {
  border-color: rgba(115, 66, 235, 0.2);
  background-color: var(--light-gray);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.social-login-btn iconify-icon {
  font-size: 1.3rem;
}

/* Terms Text */
.login-terms {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
  margin-bottom: 0;
  line-height: 1.5;
}

.login-terms a {
  color: var(--primary-color);
  font-weight: 600;
}

.login-terms a:hover {
  text-decoration: underline;
}

/* Photo Uploader Styles */
.photo-uploader-box {
  border: 2px dashed #c0b9e8;
  border-radius: 12px;
  background-color: #faf9ff;
  padding: 0;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-uploader-box:hover,
.photo-uploader-box.drag-over {
  border-color: var(--primary-color, #6f42c1);
  background-color: #f6f3ff;
  box-shadow: 0 0 0 4px rgba(115, 66, 235, 0.15);
}

.photo-upload-placeholder {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-uploader-icon {
  font-size: 2.5rem;
  color: var(--primary-color, #6f42c1);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-uploader-text {
  font-size: 0.9rem;
  color: var(--text-muted, #6c757d);
  margin-bottom: 5px;
}

.photo-uploader-text strong {
  color: var(--primary-color, #6f42c1);
}

.uploaded-image-preview-wrap {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 10px;
  overflow: hidden;
  z-index: 2;
  background: #fff;
}

.uploaded-image-preview-wrap img,
.form-image-preview {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
}
.photo-uploader-box {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 260px;
  border: 2px dashed #d5c8ff;
  border-radius: 16px;
  background: #faf8ff;
  overflow: hidden;
  cursor: pointer;
  transition: .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-uploader-box:hover,
.photo-uploader-box.drag-over {
  border-color: #7c4dff;
  background: #f7f3ff;
  box-shadow: 0 12px 24px rgba(124, 77, 255, .12);
}

.photo-upload-placeholder {
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.photo-uploader-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #efe9ff;
  color: #7c4dff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.photo-uploader-text strong {
  color: #6f42c1;
  font-size: 16px;
}

.photo-uploader-text {
  color: #6c757d;
}

.uploaded-image-preview-wrap {
  position: absolute;
  inset: 0;
}

.form-image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s ease;
}

.photo-uploader-box:hover .form-image-preview {
  transform: scale(1.04);
}

.remove-photo-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: .2s;
}

.remove-photo-btn:hover {
  background: #dc3545;
  color: #fff;
}


/* OTP Footer */
.otp-footer {
  margin-top: 24px;
}

.resend-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.resend-btn {
  border: none;
  background: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
}

.resend-btn:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.resend-btn:not(:disabled):hover {
  text-decoration: underline;
}

.resend-timer {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.change-number-btn {
  border: none;
  background: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.change-number-btn:hover {
  color: var(--primary-color);
  background-color: rgba(115, 66, 235, 0.06);
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
  .login-modal-card {
    padding: 30px 24px;
    border-radius: var(--radius-lg);
  }

  .otp-box {
    width: 52px;
    height: 56px;
    font-size: 1.4rem;
  }

  .login-modal-title {
    font-size: 1.3rem;
  }

  .social-login-options {
    flex-direction: column;
  }

  .photo-uploader-box {
    height: 200px;
    min-height: 200px;
  }
}

/* ==========================================================================
   Idealjodi Biodata Maker - builder.css
   ========================================================================== */

/* 1. Page Layout & Structure */
.builder-body {
  background-color: #f4f3f8;
  min-height: 100vh;
}

.builder-wrapper {
  margin-top: 20px;
  margin-bottom: 50px;
}

.builder-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.builder-form-panel {
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(115, 66, 235, 0.05);
  padding: 30px;
  min-width: 0;
  /* Prevents flex items from overflowing */
}

.builder-preview-panel {
  width: 480px;
  position: sticky;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.biodata-preview-page {
  min-height: calc(100vh - 70px);
  padding: 24px 32px;
  background: #f4f5fa;
}

.biodata-preview-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.preview-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e8ef;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(22, 24, 35, 0.1);
}

.preview-panel-header {
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff;
  border-bottom: 1px solid #e6e8ef;
}

.preview-panel-header .header-left {
  display: flex;
  flex-direction: column;
}

.preview-panel-header .header-left .kicker {
  margin-bottom: 2px;
  color: #5b2cdb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.preview-panel-header .header-left h2 {
  margin: 0;
  color: #1a1d2b;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.preview-actions-panel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  color: #fff;
  background: var(--primary-gradient);
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.btn-download-pdf:hover,
.btn-back-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  color: #2d3040;
  background: #f4f5fa;
  border: 1px solid #e6e8ef;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.preview-sheet-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 30px;
}

.biodata-frame-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.frame-bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
}

.biodata-frame-layer .frame-bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* .biodata-preview-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 1400px;
  padding: 40px 44px 44px;
} */

.biodata-top-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(115, 66, 235, 0.15);
}

.biodata-intro-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.biodata-intro-info .preview-field-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 15px;
  line-height: 1.6;
}

.biodata-intro-info .preview-field-row .preview-field-label {
  min-width: 120px;
  color: #3d4052;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.biodata-intro-info .preview-field-row .preview-field-separator {
  color: #a8adc0;
  font-weight: 300;
}

.biodata-intro-info .preview-field-row .preview-field-value {
  color: #1a1d2b;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .builder-preview-panel {
    width: 100%;
  }
  .biodata-preview-container {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 991px) {
  .builder-container {
    flex-direction: column;
  }

  .builder-preview-panel {
    width: 100%;
    position: static;
  }
}
@media (max-width: 768px) {
  .biodata-preview-page {
    padding: 12px 12px;
  }

  .preview-panel-header {
    padding: 12px 16px;
  }

  .biodata-preview-content {
    padding: 20px 16px;
    min-height: auto;
  }

  .customizer-toolbar {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
  }
}

/* 2. Stepper Progress Component */
.stepper-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
  padding: 0 10px;
}

.stepper-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 4px;
  background-color: #e8e6f0;
  z-index: 1;
}

.stepper-progress-bar {
  position: absolute;
  top: 20px;
  left: 30px;
  height: 4px;
  background: var(--primary-gradient);
  z-index: 2;
  transition: width 0.4s ease;
  width: 0%;
}

.step-item {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.step-item .step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid #e8e6f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.step-item.active .step-circle {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(115, 66, 235, 0.15);
  transform: scale(1.1);
}

.step-item.completed .step-circle {
  background: var(--primary-gradient);
  color: #ffffff;
}

.shape-options-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.step-item .step-label {
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-title);
  transition: all 0.3s ease;
  text-align: center;
}

.step-item.active .step-label {
  color: var(--primary-color);
  font-weight: 700;
}

.step-item.completed .step-label {
  color: var(--text-dark);
}

@media (max-width: 576px) {
  .step-item .step-label {
    display: none;
    /* Hide labels on mobile to fit screen */
  }
}

/* 3. Builder Form Styling */
.form-step-content {
  display: none;
}

.form-step-content.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.builder-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-dark);
  border-bottom: 2px solid #f4f3f8;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.builder-card-title iconify-icon {
  color: var(--primary-color);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-control,
.form-select {
  border: 1px solid #dcdbe5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  transition: var(--transition-fast);
  background-color: #faf9fd;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(115, 66, 235, 0.1);
  background-color: #ffffff;
}

.form-control::placeholder {
  color: #a09ebb;
}

.form-navigation {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #f4f3f8;
}

/* 4. Customizer Editor Toolbar (Match Image 4) */
.customizer-toolbar {
  background: #ffffff;
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 6px 20px rgba(115, 66, 235, 0.05);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  border: 1px solid #e8e6f0;
}

.toolbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f4f8;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 5px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-dark);
}

.toolbar-btn:hover {
  background: #eae7f3;
  color: var(--primary-color);
}

.toolbar-btn.active {
  background: #f1ecff;
  border-color: #d1c4f9;
  color: var(--primary-color);
}

.toolbar-btn .toolbar-icon {
  font-size: 22px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.toolbar-btn span {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-title);
}

/* Floating customizer panels */
.customizer-setting-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e8e6f0;
  margin-top: 10px;
  display: none;
  animation: slideDown 0.3s ease;
}

.customizer-setting-card.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.customizer-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  font-family: var(--font-title);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
  gap: 8px;
}

.shape-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border: 1px solid #e8e6f0;
  border-radius: 8px;
  cursor: pointer;
  background: #ffffff;
  transition: var(--transition-fast);
}

.shape-option:hover {
  border-color: var(--primary-color);
  background: #fbfaff;
}

.shape-option.active {
  border-color: var(--primary-color);
  background: #f1ecff;
}

.shape-preview-box {
  width: 32px;
  height: 32px;
  background: #7342EB;
  margin-bottom: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.shape-preview-circle {
  border-radius: 50%;
}

.shape-preview-square {
  border-radius: 4px;
}

.shape-preview-rounded {
  border-radius: 8px;
}

.shape-preview-leaf {
  border-radius: 0 16px 0 16px;
}

.shape-preview-squircle {
  border-radius: 40% 40% 40% 40% / 40% 40% 40% 40%;
  clip-path: inset(0 round 10px 10px 10px 10px);
}

.shape-preview-hexagon {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.shape-option span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

/* 5. Live Preview Container (Calibrated for A4 proportions) */
.biodata-preview-scroll-wrapper {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e8e6f0;
  max-height: calc(120vh - 280px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex: 1;
  justify-content: center;
  padding: 40px 30px;
  background-color: #f0f1f6;
  background-image: radial-gradient(
      #d8dbe4 1px,
      transparent 1px
  );
  background-size: 18px 18px;
  width: 100%;
  overflow: auto;
  min-height: 0;
}

.a4-preview-sheet {
  padding: 20px 30px 70px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--sheet-text-color, #222222);
  overflow: visible;
  box-sizing: border-box;
  transform-origin: top center;
  transition: font-family 0.3s ease, font-size 0.2s ease, color 0.3s ease;
  position: relative;
  width: min(100%, 794px);
  min-height: 1123px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow:
      0 16px 48px rgba(22, 24, 35, 0.14),
      0 4px 12px rgba(22, 24, 35, 0.06);
}

/* Fallback border frame styles */
.a4-preview-sheet[data-frame="marigold"] .biodata-frame:not(:has(img[src])) {
  border: 6px double #FF9800;
  margin: 4px;
}

.a4-preview-sheet[data-frame="royal"] .biodata-frame:not(:has(img[src])) {
  border: 4px double #7342EB;
  margin: 6px;
}

.a4-preview-sheet[data-frame="rose"] .biodata-frame:not(:has(img[src])) {
  border: 5px solid #E91E63;
  border-radius: 12px;
  margin: 5px;
}

.a4-preview-sheet[data-frame="navy"] .biodata-frame:not(:has(img[src])) {
  border: 2px solid #2C8EDC;
  margin: 8px;
}

.a4-preview-sheet[data-frame="sunset"] .biodata-frame:not(:has(img[src])) {
  border: 5px double #E67E22;
  margin: 5px;
}

/* Step 5: Frame Selector Gallery & Filter Pills */
.frame-gallery-container {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
  scroll-behavior: smooth;
}

.frame-gallery-container::-webkit-scrollbar {
  width: 6px;
}

.frame-gallery-container::-webkit-scrollbar-track {
  background: #f1f1f5;
  border-radius: 10px;
}

.frame-gallery-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.frame-gallery-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.frame-filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.frame-filter-pills::-webkit-scrollbar {
  display: none;
}

.frame-filter-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.frame-filter-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.frame-filter-btn.active {
  background: var(--primary-gradient, linear-gradient(135deg, #7342eb 0%, #5125bd 100%));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(115, 66, 235, 0.25);
}

.theme-frame-card {
  position: relative;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  overflow: hidden;
}

.theme-frame-card:hover {
  transform: translateY(-3px);
  border-color: #a78bfa;
  box-shadow: 0 8px 20px rgba(115, 66, 235, 0.12);
}

.theme-frame-card.active {
  border-color: #7342eb !important;
  box-shadow: 0 0 0 3px rgba(115, 66, 235, 0.2), 0 8px 24px rgba(115, 66, 235, 0.18);
  background: #fcfaff;
}

.frame-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.35;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.frame-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.theme-frame-card:hover .frame-card-thumb {
  transform: scale(1.04);
}

.frame-badge-active {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: #7342eb;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.25s ease;
}

.theme-frame-card.active .frame-badge-active {
  opacity: 1;
  transform: scale(1);
}

/* Watermark */
.preview-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(115, 66, 235, 0.07);
  text-transform: uppercase;
  letter-spacing: 5px;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  font-family: var(--font-title);
  white-space: nowrap;
}

/* Biodata Content Layout */
.biodata-preview-content {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.biodata-preview-content::-webkit-scrollbar {
  display: none;
}

.biodata-preview-content.biodata-preview-two-column {
  overflow: hidden;
}

.biodata-preview-content.biodata-preview-single-column {
  overflow-y: auto;
  overflow-x: hidden;
}

/* Header symbols (Religious symbols) */
.biodata-header-symbol {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 4px;
  color: var(--sheet-heading-color, var(--theme-color));
  line-height: 1;
}

.biodata-header-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sheet-heading-color, var(--theme-color));
  margin-bottom: 12px;
  font-family: inherit;
}

/* Top details & Image section */
.biodata-top-section {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  align-items: center;
}

.biodata-intro-info {
  flex: 1;
}

.biodata-image-container {
  width: 138px;
  height: 145px;
  border: 2px solid var(--sheet-heading-color, var(--theme-color));
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.biodata-image-container.cursor-pointer:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(115, 66, 235, 0.25);
  transform: scale(1.03);
}

.biodata-image-container.circle {
  border-radius: 50%;
  width: 95px;
  height: 95px;
}

.biodata-image-container.square {
  border-radius: 4px;
}

.biodata-image-container.rounded {
  border-radius: 12px;
}

.biodata-image-container.leaf {
  border-radius: 0 35px 0 35px;
}

.biodata-image-container.squircle {
  border-radius: 35% 35% 35% 35% / 35% 35% 35% 35%;
  clip-path: inset(0 round 15px);
}

.biodata-image-container.hexagon {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0;
}

.biodata-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.biodata-image-placeholder {
  font-size: 2.2rem;
  color: var(--sheet-label-color, var(--text-muted));
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.biodata-image-placeholder span {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Details Section Layout */
.preview-section {
  margin-bottom: 12px;
}

.preview-section-title-wrap {
  border-bottom: 1.5px solid var(--sheet-heading-color, var(--theme-color));
  margin-bottom: 8px;
  padding-bottom: 2px;
  display: flex;
  align-items: center;
}

.preview-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--sheet-heading-color, var(--theme-color));
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 5px;
  column-gap: 15px;
}

.preview-field-row {
  display: flex;
  align-items: flex-start;
  font-size: 11px;
}

.preview-field-label {
  width: 85px;
  font-weight: 600;
  color: var(--sheet-label-color, #333333);
  flex-shrink: 0;
}

.preview-field-separator {
  width: 15px;
  text-align: center;
  color: var(--sheet-separator-color, var(--sheet-label-color, #555555));
  flex-shrink: 0;
}

.preview-field-value {
  color: var(--sheet-value-color, #222222);
  word-break: break-word;
}

.preview-text-block {
  font-size: 0.85rem;
  color: var(--sheet-value-color, #222222);
  line-height: 1.5;
  text-align: justify;
}

/* Edit in Place elements */
.editable-header {
  position: relative;
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: var(--transition-fast);
}

.editable-header:hover {
  border-bottom-color: var(--theme-color);
  background: rgba(115, 66, 235, 0.05);
}

/* Custom Zoom and Download Controls */
.preview-actions-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e8e6f0;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zoom-btn {
  background: #f5f4f8;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.zoom-btn:hover {
  background: #7342EB;
  color: #ffffff;
}

.zoom-level {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--text-dark);
  min-width: 40px;
  text-align: center;
}

/* 6. Typography font-families loading classes */
.font-inter {
  font-family: 'Inter', sans-serif !important;
}

.font-outfit {
  font-family: 'Outfit', sans-serif !important;
}

.font-playfair {
  font-family: 'Playfair Display', serif !important;
}

.font-merriweather {
  font-family: 'Merriweather', serif !important;
}

.font-lora {
  font-family: 'Lora', serif !important;
}

.font-cinzel {
  font-family: 'Cinzel', serif !important;
}

.font-greatvibes {
  font-family: 'Great Vibes', cursive !important;
}

.font-sacramento {
  font-family: 'Sacramento', cursive !important;
}

/* Font option styles */
.font-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #e8e6f0;
  border-radius: 8px;
  cursor: pointer;
  background: #ffffff;
  transition: var(--transition-fast);
  margin-bottom: 8px;
}

.font-option:hover {
  border-color: var(--primary-color);
  background: #fbfaff;
}

.font-option.active {
  border-color: var(--primary-color);
  background: #f1ecff;
  font-weight: 600;
}

/* Spacing and margins option sliders */
.range-slider-wrap {
  margin-bottom: 12px;
}

.range-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.range-slider-input {
  width: 100%;
  accent-color: var(--primary-color);
}

/* 7. Print Media Rules (Perfect for A4 downloads) */
@media print {
  body {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Hide everything except the print template sheet */
  nav,
  footer,
  .builder-form-panel,
  .customizer-toolbar,
  .customizer-setting-card,
  .preview-actions-panel,
  .site-nav,
  .progress-wrap,
  .login-modal-overlay,
  .steps-section,
  .builder-preview-panel>*:not(.biodata-preview-scroll-wrapper),
  .biodata-preview-scroll-wrapper>*:not(.a4-preview-sheet) {
    display: none !important;
  }

  .builder-wrapper,
  .builder-container,
  .builder-preview-panel,
  .biodata-preview-scroll-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  .a4-preview-sheet {
    width: 210mm !important;
    height: 297mm !important;
    max-height: 297mm !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 20mm 15mm !important;
    /* Calibrated margins for standard printing */
    box-sizing: border-box !important;
    transform: scale(1) !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
  }

  /* Hide watermarks in final printed document */
  .preview-watermark {
    display: none !important;
  }

  .biodata-frame {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    border: none !important;
  }

  .biodata-frame img.frame-bg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .biodata-preview-content,
  .biodata-preview-split-content {
    position: relative !important;
    z-index: 10 !important;
  }
}

/* ==========================================================
   9. Custom Split Layout for Frames #3, #4, and #5
   ========================================================== */

/* Frame-toggle layout visibility rules */
.a4-preview-sheet[data-frame="frame_id_3"] .biodata-preview-content,
.a4-preview-sheet[data-frame="frame_id_4"] .biodata-preview-content,
.a4-preview-sheet[data-frame="frame_id_5"] .biodata-preview-content {
  display: none !important;
}

.a4-preview-sheet[data-frame="frame_id_3"] .biodata-preview-split-content,
.a4-preview-sheet[data-frame="frame_id_4"] .biodata-preview-split-content,
.a4-preview-sheet[data-frame="frame_id_5"] .biodata-preview-split-content {
  display: flex !important;
}

/* Split content structure */
.biodata-preview-split-content {
  display: none;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 4;
}

.biodata-split-left {
  width: 45%;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 70px 12px 20px 29px;
  border-right: 1px dashed rgba(255, 255, 255, 0.15);
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: auto;
  overflow: visible;
}

.biodata-split-right {
  width: 55%;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 55px 10px 30px 10px;
  height: auto;
  overflow: visible;
}

/* Split Left Column Colors (Dark Background Zone) */
.biodata-split-left {
  --sheet-label-color: #FFE5A3 !important;
  /* Light Gold / Yellow */
  --sheet-value-color: #FFFFFF !important;
  /* White */
  --sheet-heading-color: #FFD700 !important;
  /* Golden Heading */
  --sheet-separator-color: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
}

.biodata-split-left .preview-section-title-split {
  font-size: 11px;
  font-weight: 700;
  color: var(--sheet-heading-color);
  margin-top: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid var(--sheet-heading-color);
  padding-bottom: 2px;
}

.biodata-split-left .preview-field-label {
  width: 85px;
  color: var(--sheet-label-color) !important;
}

.biodata-split-left .preview-field-value {
  color: var(--sheet-value-color) !important;
}

/* Split Right Column Colors (Light Background Zone) */
.biodata-split-right {
  color: #2C1C05 !important;
}

.biodata-split-right .preview-section-title {
  color: var(--theme-color, #B8860B) !important;
}

.biodata-split-right .preview-field-label {
  color: #5C3D21 !important;
  /* Dark brown labels */
  width: 105px;
}

.biodata-split-right .preview-field-value,
.biodata-split-right .preview-text-block {
  color: #2C1C05 !important;
  /* Rich charcoal/brown values */
}

/* Specific theme refinements for right column */
.a4-preview-sheet[data-frame="frame_id_3"] .biodata-split-right .preview-section-title,
.a4-preview-sheet[data-frame="frame_id_3"] .biodata-split-right .preview-field-separator {
  color: #996515 !important;
}

.a4-preview-sheet[data-frame="frame_id_4"] .biodata-split-right .preview-section-title,
.a4-preview-sheet[data-frame="frame_id_4"] .biodata-split-right .preview-field-separator {
  color: #D35400 !important;
}

.a4-preview-sheet[data-frame="frame_id_5"] .biodata-split-right .preview-section-title,
.a4-preview-sheet[data-frame="frame_id_5"] .biodata-split-right .preview-field-separator {
  color: #E65100 !important;
}

/* Right top row for photo styling */
.biodata-split-right-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 15px;
}

#preview-image-container-split {
  margin-left: auto;
}

/* ==========================================
   Biodata List Card & Modal Manager Styling
   ========================================== */
.biodata-modal-content {
  border-radius: 24px !important;
}

.biodata-item-card {
  background: #ffffff;
  border: 1px solid #edf2f7 !important;
  border-radius: 20px !important;
  padding: 16px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.biodata-item-card:hover {
  box-shadow: 0 8px 24px rgba(115, 66, 235, 0.08);
  border-color: rgba(115, 66, 235, 0.2) !important;
  transform: translateY(-2px);
}

.biodata-avatar-wrap {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 18px !important;
  background-color: #e2e8f0;
  overflow: hidden;
}

.bg-light-gray-avatar {
  background: #e2e8f0;
}

.biodata-item-name {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.biodata-item-details {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.88rem;
  color: #94a3b8;
}

.biodata-chevron-link {
  color: #1e293b;
  transition: transform 0.2s ease, color 0.2s ease;
}

.biodata-chevron-link:hover {
  color: var(--primary-color, #7342EB);
  transform: translateX(3px);
}

/* Square Action Buttons */
.btn-action-sq {
  width: 42px;
  height: 42px;
  border-radius: 12px !important;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 1.15rem;
  padding: 0;
  transition: all 0.2s ease;
}

.btn-action-sq:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.05);
}

.btn-action-sq.btn-delete-biodata:hover {
  background: #fee2e2;
  color: #ef4444;
}

.btn-action-sq.btn-copy-biodata:hover {
  background: #e0f2fe;
  color: #0284c7;
}

.btn-action-sq.btn-edit-biodata:hover {
  background: #ede9fe;
  color: #7c3aed;
}

/* Download PDF Vibrant Pink Button */
.btn-download-pink {
  background: linear-gradient(135deg, #e91e63, #d81b60) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
}

.btn-download-pink:hover {
  background: linear-gradient(135deg, #d81b60, #c2185b) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.45);
  transform: scale(1.06) !important;
}

/* Custom Tabs inside Modal */
.custom-biodata-tabs .nav-link {
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  transition: all 0.25s ease;
}

.custom-biodata-tabs .nav-link:hover {
  color: var(--primary-color, #7342EB);
  background: #f1f5f9;
}

.custom-biodata-tabs .nav-link.active {
  background: var(--primary-gradient, linear-gradient(135deg, #7342EB 0%, #2C8EDC 100%)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(115, 66, 235, 0.25);
}

.custom-biodata-tabs .nav-link .badge {
  font-size: 0.75rem;
  padding: 0.3em 0.65em;
}

.custom-biodata-tabs .nav-link.active .badge {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Navigation Links in Navbar */
.nav-link-item {
  font-weight: 600;
  color: var(--text-dark, #1E1A3C);
  padding: 8px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: var(--primary-color, #7342EB);
  background-color: rgba(115, 66, 235, 0.06);
}

.nav-link-item .nav-icon {
  font-size: 1.15rem;
}

/* ==========================================
   Header Settings Dropdown Styling
   ========================================== */
.btn-settings-icon {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #1e293b;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.btn-settings-icon:hover,
.btn-settings-icon:focus,
.show>.btn-settings-icon {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--primary-color, #7342EB);
  transform: scale(1.05);
}

.custom-settings-menu {
  min-width: 270px;
  border-radius: 20px !important;
  padding: 10px !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12) !important;
  border: 1px solid #edf2f7 !important;
  background: #ffffff;
}

.custom-settings-item {
  color: #1e293b;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: normal;
}

.custom-settings-item:hover {
  background-color: #f8fafc;
  color: var(--primary-color, #7342EB);
}

.settings-item-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}

.custom-settings-item:hover .settings-item-icon {
  color: var(--primary-color, #7342EB);
}

.custom-settings-item .item-title {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
}

.custom-settings-item .item-subtitle {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

.custom-settings-item.item-logout {
  background-color: #f3f4f6;
  border-radius: 14px !important;
  margin-top: 6px;
}

.custom-settings-item.item-logout:hover {
  background-color: #e5e7eb;
}

/* ==========================================
   Improved Mobile Navigation Drawer Styling
   ========================================== */
.btn-close-drawer {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 50% !important;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-close-drawer:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
  transform: rotate(90deg);
}

.mobile-nav-item {
  background-color: #f8fafc;
  border: 1px solid #edf2f7;
  color: #0f172a !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  margin-top: 12px;
}

.mobile-nav-item:hover {
  background-color: #ffffff;
  border-color: rgba(115, 66, 235, 0.3);
  box-shadow: 0 4px 16px rgba(115, 66, 235, 0.08);
  transform: translateX(4px);
}

.mobile-nav-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-nav-label {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
}

/* ==========================================
   22. Delete Account Modal
   ========================================== */

/* Danger icon variant — same pattern as .otp-icon / .success-icon */
.login-icon-wrap.danger-icon {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.12), rgba(255, 87, 87, 0.1));
}

.login-icon-wrap.danger-icon iconify-icon {
  color: #dc3545;
  font-size: 2.2rem;
}

/* Confirmation checkbox row */
.delete-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: var(--light-gray);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 24px;
  cursor: pointer;
}

.delete-confirm-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #dc3545;
  cursor: pointer;
}

.delete-confirm-check label {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 0;
}

/* Danger gradient button — mirrors .btn-primary-gradient's shape/shadow, red tones instead */
.btn-danger-gradient {
  background: linear-gradient(135deg, #dc3545, #ff5757);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.25);
  transition: var(--transition-fast);
}

.btn-danger-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(220, 53, 69, 0.32);
  color: #FFFFFF;
}

.btn-danger-gradient:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Secondary outline button (Cancel) */
.btn-outline-secondary.btn-pill {
  background-color: #FFFFFF;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-outline-secondary.btn-pill:hover {
  border-color: var(--text-muted);
  background-color: var(--light-gray);
}

/* Shared pill shape, in case .btn-pill isn't already globally defined */
.btn-pill {
  border-radius: 50px;
  padding: 14px 28px;
  font-size: 1rem;
}

/* ---------- Skeleton ---------- */
.skeleton-image {
  aspect-ratio: 3 / 4;
  background: linear-gradient(90deg, #eef0f5 25%, #e2e5ee 37%, #eef0f5 63%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.4s ease infinite;
}

.skeleton-badge {
  height: 34px;
  width: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, #eef0f5 25%, #e2e5ee 37%, #eef0f5 63%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.4s ease infinite;
}

.skeleton-pulse {
  animation: skeletonPulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes skeletonPulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

@keyframes skeletonShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* country List Login Model */
.mobile-input-group .login-input {
  flex: 1;
  min-width: 0;
  height: 54px;
  border: 0 !important;
  outline: none !important;
  padding: 0 16px;
  background: transparent;
  font-size: 15px;
  color: var(--text-dark);
}

.mobile-input-group .login-input::placeholder {
  color: #8b899d;
  opacity: 1;
}

.country-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 340px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e6e4ef;
  border-radius: 14px;
  box-shadow:
    0 15px 40px rgba(25, 20, 55, 0.15),
    0 3px 10px rgba(25, 20, 55, 0.06);
  z-index: 9999;
  overflow: hidden;
}

.country-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid #eceaf2;
}

.country-search-icon {
  flex-shrink: 0;
  font-size: 19px;
  color: #858296;
  margin-right: 9px;
}

.country-search-wrap input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent;
  font-size: 14px;
  color: #28263a;
}

.country-search-wrap input::placeholder {
  color: #9996a8;
}

.country-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9693a5;
  cursor: pointer;
}

.country-search-clear:hover {
  color: var(--primary-color);
}

.country-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 270px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.country-list::-webkit-scrollbar {
  width: 5px;
}

.country-list::-webkit-scrollbar-thumb {
  background: #d8d6e1;
  border-radius: 10px;
}

.country-list-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.country-list-item:hover {
  background: rgba(115, 66, 235, 0.07);
}

.country-list-flag {
  width: 26px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.country-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: #353348;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-dial {
  flex-shrink: 0;
  font-size: 13px;
  color: #77758a;
  font-weight: 600;
}

.country-list-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 20px;
  color: #888598;
  font-size: 13px;
  list-style: none;
}

@media (max-width: 480px) {
  .country-code-badge {
    min-width: 94px;
    padding: 0 9px;
    gap: 6px;
  }

  .country-code-badge .country-flag {
    width: 23px;
    height: 23px;
  }

  .mobile-input-group .login-input {
    padding: 0 12px;
    font-size: 14px;
  }

  .country-dropdown-panel {
    width: 100%;
  }
}

/* custom fields css */
.custom-fields-wrap { border-top: 1px dashed #e6e4f5; padding-top: 16px; }

.custom-fields-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.custom-field-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  background: #f8f7fe;
  border: 1px solid #ebe8fb;
  border-radius: 10px;
  padding: 12px 40px 12px 16px;
  transition: background-color .15s ease, border-color .15s ease;
}

.custom-field-card:hover {
  background: #f2effd;
  border-color: #ded8f7;
}

.custom-field-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0; /* lets long values wrap instead of overflowing */
}

.custom-field-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2b2b2b;
  line-height: 1.3;
}

.custom-field-value {
  font-size: 0.85rem;
  color: #7a7a86;
  line-height: 1.4;
  word-break: break-word;
}

.btn-remove-custom-field {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(20, 20, 40, 0.12);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
  flex-shrink: 0;
}

.btn-remove-custom-field:hover {
  background: #dc3545;
  color: #fff;
  transform: scale(1.05);
}

.btn-remove-custom-field i { font-size: 1rem; line-height: 1; }

.add-custom-field-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 18px;
}

.add-custom-field-btn iconify-icon { font-size: 1.05rem; }

.modal-footer { gap: 10px; }
.modal-footer .btn-primary-gradient { display: inline-flex; align-items: center; gap: 6px; }

