:root {
  --bs-body-font-family: "Inter", system-ui, -apple-system, sans-serif;
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-950: #022c22;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
}

h1,
h2,
h3,
h4,
h5,
.font-heading {
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* Custom Utility Helpers */
.max-w-4xl {
  max-width: 56rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-2xl {
  max-width: 42rem;
}
.fs-7 {
  font-size: 0.875rem !important;
}
.fs-8 {
  font-size: 0.75rem !important;
}

.bg-emerald-50 {
  background-color: var(--emerald-50) !important;
}
.bg-emerald-100 {
  background-color: var(--emerald-100) !important;
}
.bg-emerald-600 {
  background-color: var(--emerald-600) !important;
}
.bg-emerald-700 {
  background-color: var(--emerald-700) !important;
}
.bg-emerald-800 {
  background-color: var(--emerald-800) !important;
}
.bg-emerald-950 {
  background-color: var(--emerald-950) !important;
}
.bg-slate-900 {
  background-color: var(--slate-900) !important;
}
.bg-slate-950 {
  background-color: var(--slate-950) !important;
}

.text-emerald-300 {
  color: var(--emerald-300) !important;
}
.text-emerald-400 {
  color: var(--emerald-400) !important;
}
.text-emerald-500 {
  color: var(--emerald-500) !important;
}
.text-emerald-600 {
  color: var(--emerald-600) !important;
}
.text-emerald-700 {
  color: var(--emerald-700) !important;
}
.text-emerald-800 {
  color: var(--emerald-800) !important;
}

.border-emerald-200 {
  border-color: var(--emerald-200) !important;
}
.border-emerald-800 {
  border-color: var(--emerald-800) !important;
}

.btn-emerald {
  background-color: var(--emerald-600);
  color: #ffffff;
  border: 1px solid var(--emerald-600);
  transition: all 0.2s ease-in-out;
}
.btn-emerald:hover,
.btn-emerald:focus {
  background-color: var(--emerald-700);
  color: #ffffff;
  border-color: var(--emerald-700);
  box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.4);
}

.btn-outline-emerald {
  border: 2px solid var(--emerald-600);
  color: var(--emerald-700);
  background-color: transparent;
}
.btn-outline-emerald:hover,
.btn-outline-emerald.active {
  background-color: var(--emerald-50);
  color: var(--emerald-800);
  border-color: var(--emerald-600);
}

.gradient-text {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-glow {
  background: radial-gradient(
    circle at 50% 20%,
    rgba(16, 185, 129, 0.12) 0%,
    rgba(255, 255, 255, 0) 70%
  );
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-500);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.2);
  }
}

.widget-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1055;
  overflow-x: hidden;
  overflow-y: auto;
}
.preview-modal-backdrop.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.badge-1percent {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.link-lookyheer {
  color: #ffffff !important;
}
.link-lookyheer:hover {
  color: var(--emerald-600) !important;
}
#size-btn-auto:hover,
#size-btn-sm:hover,
#size-btn-md:hover,
#size-btn-lg:hover {
  background-color: var(--emerald-600) !important;
  color: #ffffff !important;
  border: 1px solid var(--emerald-600) !important;
  transition: all 0.2s ease-in-out !important;
}

/* Mobile 100% Viewport Height Column */
@media (max-width: 767.98px) {
  .col-mobile-full-height {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically inside the screen */
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

.hero-section {
  min-height: 110vh;
}
@media (max-width: 767.98px) {
  .hero-section {
    min-height: auto;
  }
}

/* ----------------------------------------------------
   CREATOR DASHBOARD STYLE LAYERS (Consolidated from app.css)
   ---------------------------------------------------- */

:root {
  --app-bg: #f8f9fa; /* Ultra-light off-white background */
  --card-bg: #ffffff; /* Solid white component background */
  --border-color: #e5e7eb; /* Crisp, thin light-grey border */
  --text-primary: #111827; /* Rich charcoal text */
  --text-secondary: #6b7280; /* Slate grey secondary text */
  --brand-color: #0f5132; /* Solid Forest Green */
  --brand-hover: #0a3a24;
}

.btn-brand-primary {
  background-color: rgba(var(--bs-primary-rgb), .8) !important;
  border-color: rgba(var(--bs-primary-rgb), .8) !important;
  color: #ffffff !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn-brand-primary:hover {
  background-color: rgb(var(--bs-primary-rgb)) !important;
  border-color: rgb(var(--bs-primary-rgb)) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 81, 50, 0.3) !important;
  transform: translateY(-1px);
}
.btn-brand-primary:active {
  transform: translateY(0);
}

/* Scoped Dashboard Body Style */
.app-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--app-bg) !important;
  color: var(--text-secondary) !important;
  font-size: 0.925rem;
  letter-spacing: -0.011em;
  min-height: 100vh;
}

/* Sidebar & Layout Elements */
.sidebar-navigation {
  background-color: #f8fafc !important;
  border-right: 1px solid #e2e8f0 !important;
}

#sidebarMenu .position-sticky {
  padding: 1.5rem 1rem !important;
}

/* Sidebar Heading */
.sidebar-heading {
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: #64748b !important;
}

.brand-logo-gradient {
  background-color: var(--brand-color);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

/* Navigation Links overrides for Sidebar */
#sidebarMenu .nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  color: #475569 !important;
  border-left: 3.5px solid transparent;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#sidebarMenu .nav-link:hover {
  color: #0f172a !important;
  background-color: #f1f5f9 !important;
  transform: translateX(4px);
}

#sidebarMenu .nav-link.active {
  color: #047857 !important;
  background-color: #ecfdf5 !important;
  border-left-color: #059669 !important;
  border-radius: 0 8px 8px 0 !important;
  font-weight: 600;
}

/* Red Destructive Sign Out Hover State */
#sidebarMenu .nav-link.text-danger {
  color: #ef4444 !important;
}
#sidebarMenu .nav-link.text-danger:hover {
  color: #b91c1c !important;
  background-color: #fef2f2 !important;
  border-left-color: #ef4444 !important;
  border-radius: 0 8px 8px 0 !important;
  transform: translateX(4px);
}

.pulse-dot {
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Card Styling for App Dashboard */
#app-dashboard-layout .card {
  background-color: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  transition: border-color 0.15s ease-in-out;
}

#app-dashboard-layout .product-card:hover {
  border-color: #cbd5e1 !important;
  transform: none;
}

.icon-shape {
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-shape.bg-primary {
  background-color: rgba(15, 81, 50, 0.08) !important;
  color: var(--brand-color) !important;
}

.icon-shape.bg-success {
  background-color: rgba(25, 135, 84, 0.08) !important;
  color: #198754 !important;
}

.icon-shape.bg-info {
  background-color: rgba(13, 202, 240, 0.08) !important;
  color: #0dcaf0 !important;
}

/* Table overrides */
#app-dashboard-layout .table {
  --bs-table-bg: transparent;
  color: var(--text-secondary);
}

#app-dashboard-layout .table th {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

#app-dashboard-layout .table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

/* Form and Modal overrides */
#app-dashboard-layout .form-control {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
}

#app-dashboard-layout .form-control:focus {
  background-color: var(--card-bg);
  border-color: var(--brand-color);
  box-shadow: 0 0 0 0.2rem rgba(15, 81, 50, 0.15);
  color: var(--text-primary);
}

#app-dashboard-layout .form-control[readonly] {
  background-color: #f9fafb;
}

#app-dashboard-layout .input-group-text {
  background-color: #f3f4f6;
  border-color: var(--border-color);
  color: var(--text-secondary);
}

#app-dashboard-layout .btn-primary {
  background-color: var(--brand-color) !important;
  border: 1px solid var(--brand-color) !important;
  color: #ffffff !important;
  font-weight: 500;
  box-shadow: none !important;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

#app-dashboard-layout .btn-primary:hover {
  background-color: var(--brand-hover) !important;
  border-color: var(--brand-hover) !important;
  transform: none;
}

#app-dashboard-layout .btn-outline-light {
  border-color: var(--border-color) !important;
  color: var(--text-secondary) !important;
  background-color: transparent !important;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

#app-dashboard-layout .btn-outline-light:hover {
  background-color: #f3f4f6 !important;
  color: var(--text-primary) !important;
  border-color: #cbd5e1 !important;
}

/* Animations and Clamps */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.animate-fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.max-width-md {
  max-width: 500px;
}

.min-vh-50 {
  min-height: 50vh;
}

/* Dashboard Top Navbar Active Links */
#navbarDashboard .nav-link.active {
  color: #10b981 !important;
}

/* Stripe Status Badge Dark Overrides for Top Navbar */
#navbarDashboard #stripe-status-badge.bg-emerald-50 {
  background-color: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}
#navbarDashboard #stripe-status-badge.bg-amber-50 {
  background-color: rgba(245, 158, 11, 0.1) !important;
  color: #f59e0b !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}
#navbarDashboard #stripe-status-badge .text-emerald-500 {
  color: #10b981 !important;
}
#navbarDashboard #stripe-status-badge .text-amber-500 {
  color: #f59e0b !important;
}

/* Modern Underline Tab Navigation System */
.nav-tabs-modern {
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  padding-bottom: 0px;
}
/* Hide scrollbar on Chrome/Safari/Webkit browsers */
.nav-tabs-modern::-webkit-scrollbar {
  display: none;
}

.nav-tabs-modern .nav-item {
  margin-bottom: -1px;
  flex-shrink: 0;
}

.nav-tabs-modern .nav-link {
  background: none !important;
  border: none !important;
  color: #64748b !important;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease-in-out;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.nav-tabs-modern .nav-link:hover {
  color: #0f172a !important;
  box-shadow: inset 0 -2px 0 #cbd5e1 !important;
}

.nav-tabs-modern .nav-link.active {
  background: none !important;
  border: none !important;
  box-shadow: inset 0 -2px 0 #059669 !important;
}

.nav-tabs-modern .nav-link.active,
.nav-tabs-modern .nav-link.active span:not(.badge-count),
.nav-tabs-modern .nav-link.active i {
  color: #059669 !important;
}

/* Count Badges inside Tabs */
.nav-tabs-modern .badge-count {
  font-size: 0.75rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: #475569;
  font-weight: 600;
  line-height: 1 !important;
  transition: all 0.25s ease-in-out;
}

.nav-tabs-modern .nav-link.active .badge-count {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
}

/* Card hover and transition systems */
.hover-shadow {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}
.hover-shadow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

/* Custom Emerald styling override for Bootstrap 5 validation states */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: #059669 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23059669' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
}
.was-validated .form-control:valid:focus,
.was-validated .form-select:valid:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, 0.25) !important;
}
.was-validated .form-check-input:valid ~ .form-check-label {
  color: #0f172a !important;
}
.was-validated .form-check-input:valid {
  border-color: #059669 !important;
}
.was-validated .form-check-input:valid:checked {
  background-color: #059669 !important;
}

