/* =====================================================
   KOHHOST MODERN REDESIGN v2
   Navy + Gold · Adaptive contrast · Alive UI
   ===================================================== */

html { scroll-behavior: smooth; }

/* ---------- CSS Variables (override) ---------- */
:root {
  --navy: #000080;
  --navy-dark: #000066;
  --navy-deeper: #00004d;
  --navy-deepest: #000033;
  --gold: #FFD700;
  --gold-hover: #FFC107;
  --gold-dark: #E6C200;
  --text-on-dark: #F8F9FA;
  --text-on-light: #1e293b;
  --text-muted-dark: #64748b;
  --text-muted-light: #94A3B8;
  --glass: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.12);
  --radius: 0.85rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base body ---------- */
body.tt-body-wrapper {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif !important;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  color: var(--text-on-light);
  background-color: #f1f5f9;
}

/* Homepage keeps dark gradient */
body.tt-body-wrapper.primary-bg-color,
body.tt-body-wrapper.bg-gray-light {
  background: linear-gradient(180deg, #000080 0%, #00004d 100%) !important;
  color: var(--text-on-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* =====================================================
   1. NAVBAR – Adaptive (white bar → dark text)
   ===================================================== */
.tt-header {
  background: #ffffff !important;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.tt-header .tt-main-header ul li a,
.tt-header .navbar-nav .nav-link,
.tt-header .tt-main-header ul li a.nav-link {
  color: #334155 !important;
  font-weight: 500;
  font-size: 0.925rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.5rem;
  transition: var(--transition);
}

.tt-header .tt-main-header ul li a:hover,
.tt-header .navbar-nav .nav-link:hover {
  color: var(--navy) !important;
  background: rgba(0, 0, 128, 0.06);
}

/* Sticky / scrolled state – keep readable */
.tt-header.affix,
.tt-header.scrolled {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 4px 24px rgba(0, 0, 80, 0.08);
  border-bottom: 1px solid rgba(0, 0, 128, 0.08);
  padding: 0.35rem 0 !important;
}

.tt-header.affix .tt-main-header ul li a,
.tt-header.scrolled .tt-main-header ul li a {
  color: #1e293b !important;
}

/* Gold CTA buttons in navbar */
.tt-header .btn-warning,
.tt-header .btn-primary,
.tt-header .btn-warning.sm {
  background: linear-gradient(135deg, #FFD700, #FFC107) !important;
  border: none !important;
  color: #000080 !important;
  font-weight: 600;
  border-radius: 0.65rem;
  padding: 0.5rem 1.15rem;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.35);
  transition: var(--transition);
}

.tt-header .btn-warning:hover,
.tt-header .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.45);
  color: #000066 !important;
}

/* Cart badge */
.tt-cart-badge {
  background: var(--gold) !important;
  color: #000080 !important;
  font-weight: 700;
}

/* Dropdown menus */
.tt-header .dropdown-menu {
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 32px rgba(0,0,80,0.12);
  padding: 0.5rem;
}

.tt-header .dropdown-menu a,
.tt-header .dropdown-item {
  color: #334155 !important;
  border-radius: 0.4rem;
  padding: 0.5rem 0.85rem;
}

.tt-header .dropdown-menu a:hover,
.tt-header .dropdown-item:hover {
  background: rgba(0,0,128,0.06) !important;
  color: var(--navy) !important;
}

/* =====================================================
   2. PAGE HEADER (blue gradient area)
   ===================================================== */
.tt-page-header,
.tt-page-header.bg-gradient {
  background: linear-gradient(145deg, #000080 0%, #000066 50%, #00004d 100%) !important;
  position: relative;
  overflow: hidden;
}

.tt-page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 30%, rgba(255,215,0,0.07) 0%, transparent 55%);
  pointer-events: none;
}

.tt-page-header h1,
.tt-page-header .h3,
.tt-page-header .text-white {
  color: #FFFFFF !important;
  position: relative;
  z-index: 1;
}

.tt-page-header p,
.tt-page-header .tt-breadcrumb,
.tt-page-header .breadcrumb,
.tt-page-header .breadcrumb a,
.tt-page-header .breadcrumb-item,
.tt-page-header .breadcrumb-item a {
  color: rgba(255,255,255,0.75) !important;
}

.tt-page-header .breadcrumb-item.active {
  color: #FFD700 !important;
}

.tt-breadcrumb {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 2rem;
  padding: 0.4rem 1.1rem;
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
}

/* =====================================================
   3. SIDEBAR – Yellow headers + readable body
   ===================================================== */
.sidebar .card,
.sidebar .card-sidebar,
.card-sidebar {
  border-radius: var(--radius) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,80,0.06);
  transition: var(--transition);
  margin-bottom: 1.25rem;
}

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

.sidebar .card-header,
.sidebar .panel-heading,
.card-sidebar .card-header {
  background: linear-gradient(135deg, #FFD700, #FFC107) !important;
  color: #000080 !important;
  font-weight: 700;
  border: none !important;
  padding: 0.85rem 1.15rem !important;
  border-radius: 0 !important;
}

.sidebar .card-header .card-title,
.sidebar .card-header h3,
.sidebar .card-header h5,
.sidebar .panel-heading h3,
.sidebar .panel-heading .panel-title,
.card-sidebar .card-title {
  color: #fff !important;
  font-weight: 700 !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
}

.sidebar .card-header a,
.sidebar .card-header i {
  color: #000080 !important;
}

.sidebar .card-body,
.sidebar .list-group,
.sidebar .list-group-item,
.card-sidebar .card-body {
  background: #ffffff !important;
  color: #334155 !important;
}

.sidebar .list-group-item {
  border-color: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 0.9rem;
  padding: 0.7rem 1.15rem !important;
  transition: var(--transition);
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item a:hover {
  background: rgba(0,0,128,0.04) !important;
  color: var(--navy) !important;
}

.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover {
  background: rgba(0,0,128,0.08) !important;
  color: var(--navy) !important;
  border-color: transparent !important;
  font-weight: 600;
}

.sidebar .list-group-item a {
  color: inherit !important;
}

.sidebar .card-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

/* =====================================================
   4. MAIN CONTENT CARDS / PANELS (white surfaces)
   ===================================================== */
.primary-content .card,
.primary-content .panel,
.primary-content .mc-promo-login,
.primary-content .mc-promo-manage,
#main-body .card,
#main-body .panel {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 4px 18px rgba(0,0,80,0.05);
  color: #1e293b !important;
  transition: var(--transition);
  overflow: hidden;
}

.primary-content .card:hover,
#main-body .card:hover {
  box-shadow: 0 10px 28px rgba(0,0,80,0.1);
  transform: translateY(-3px);
}

.primary-content .card-header,
.primary-content .panel-heading,
#main-body .card-header,
.panel .card-header {
  background: linear-gradient(135deg, #000080, #000066) !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 0.9rem 1.25rem !important;
  font-weight: 600;
}

.primary-content .card-header h3,
.primary-content .card-header .card-title,
.primary-content .panel-heading h3,
.panel .card-header h3,
.tt-client-home-cards .card-header h3 {
  color: #FFFFFF !important;
  margin: 0 !important;
  font-size: 1rem !important;
}

.primary-content .card-body,
.primary-content .panel-body,
#main-body .card-body {
  color: #334155 !important;
  background: #ffffff !important;
}

.primary-content .card-body h1,
.primary-content .card-body h2,
.primary-content .card-body h3,
.primary-content .card-body h4,
.primary-content .card-body h5,
.primary-content .card-title {
  color: #0f172a !important;
}

.primary-content .text-muted,
#main-body .text-muted {
  color: #64748b !important;
}

/* Data tables / labels inside cards */
.primary-content table,
.primary-content .table,
.primary-content dl,
.primary-content dt,
.primary-content dd {
  color: #334155 !important;
}

.primary-content .table th {
  color: #0f172a !important;
  font-weight: 600;
  border-color: #e2e8f0 !important;
}

.primary-content .table td {
  border-color: #f1f5f9 !important;
}

/* =====================================================
   5. BUTTONS – Gold primary + soft secondary
   ===================================================== */
.btn {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: 0.65rem;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled {
  background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%) !important;
  border: none !important;
  color: #000080 !important;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, #FFC107 0%, #E6C200 100%) !important;
  color: #000066 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 215, 0, 0.4) !important;
}

.btn-default,
.btn-secondary {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

.btn-default:hover,
.btn-secondary:hover {
  background: rgba(0,0,128,0.06) !important;
  border-color: rgba(0,0,128,0.15) !important;
  color: var(--navy) !important;
}

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.5) !important;
  color: #fff !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: #FFD700 !important;
  color: #FFD700 !important;
  transform: translateY(-2px);
}

.btn-warning {
  background: linear-gradient(135deg, #FFD700, #FFC107) !important;
  border: none !important;
  color: #000080 !important;
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,215,0,0.4);
  color: #000066 !important;
}

/* =====================================================
   6. HOMEPAGE – Dark sections remain vibrant
   ===================================================== */
.bg-gradient {
  background: linear-gradient(145deg, #000080 0%, #000066 45%, #00004d 100%) !important;
  position: relative;
  overflow: hidden;
}

.bg-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(255,215,0,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(26,26,158,0.35) 0%, transparent 50%);
  pointer-events: none;
}

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

.tt-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, #FFFFFF 0%, #F8F9FA 55%, #FFD700 130%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tt-hero .lead { font-size: 1.15rem; max-width: 520px; color: #CBD5E1; }

.tt-hero-btns {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tt-hero-btns .btn {
  padding: 0.9rem 1.85rem;
  font-size: 1rem;
  border-radius: 0.85rem;
}

.hero-img {
  filter: drop-shadow(0 25px 40px rgba(0,0,0,0.35));
  transition: transform 0.6s ease;
}
.hero-img:hover { transform: translateY(-8px) scale(1.02); }

/* Pricing */
#pricingSection {
  background: linear-gradient(180deg, #00004d 0%, #000066 50%, #000080 100%);
}
#pricingSection .tt-section-heading h2 {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 2.25rem;
}

.tt-price-single {
  background: rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 1.25rem !important;
  padding: 2.25rem 1.75rem !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: #F8F9FA !important;
}

.tt-price-single:hover {
  transform: translateY(-12px);
  border-color: rgba(255,215,0,0.45) !important;
  box-shadow: 0 24px 48px -12px rgba(0,0,128,0.55), 0 0 0 1px rgba(255,215,0,0.2);
  background: rgba(255,255,255,0.1) !important;
}

.tt-price-single.featured,
.tt-price-single:has(.tt-popular-badge) {
  border-color: rgba(255,215,0,0.5) !important;
  background: linear-gradient(165deg, rgba(255,215,0,0.12) 0%, rgba(0,0,128,0.35) 100%) !important;
}

.tt-price-single h2,
.tt-price-single .h5 { color: #FFFFFF !important; font-weight: 700; }
.tt-price { color: #FFD700 !important; font-weight: 800 !important; font-size: 1.85rem !important; }
.tt-price-single .text-muted { color: #94A3B8 !important; }
.tt-price-single p { color: #CBD5E1; font-size: 0.925rem; }

.tt-popular-badge {
  background: linear-gradient(90deg, #FFD700, #FFC107) !important;
  color: #000080 !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.04em;
  border-radius: 0 0 0.75rem 0 !important;
  padding: 0.35rem 0.9rem !important;
  width: auto !important;
  height: auto !important;
  left: 0 !important;
  top: 0 !important;
  box-shadow: 0 4px 12px rgba(255,215,0,0.3);
}
.tt-popular-badge:after { display: none !important; }

#pricingSection .bg-white {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem !important;
  color: #F8F9FA;
  transition: var(--transition);
}
#pricingSection .bg-white:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,215,0,0.3);
  transform: translateY(-4px);
}
#pricingSection .bg-white h5,
#pricingSection .bg-white .card-title { color: #FFFFFF !important; }
#pricingSection .bg-white p { color: #94A3B8; }
#pricingSection .tt-read-more { color: #FFD700 !important; font-weight: 600; }

/* Features */
.features-section {
  background: linear-gradient(180deg, #000080 0%, #000066 100%) !important;
  padding: 80px 20px !important;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 1.25rem !important;
  padding: 2rem 1.75rem !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,215,0,0.4) !important;
  box-shadow: 0 20px 40px -10px rgba(0,0,128,0.5);
}
.icon-wrapper {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #FFD700, #FFC107) !important;
  border-radius: 14px !important;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  color: #000080 !important;
  box-shadow: 0 8px 16px rgba(255,215,0,0.3);
  transition: transform 0.35s ease;
}
.feature-card:hover .icon-wrapper { transform: scale(1.1) rotate(6deg); }
.feature-title { font-size: 1.2rem !important; font-weight: 700 !important; color: #FFFFFF !important; margin-bottom: 0.6rem !important; }
.feature-desc { font-size: 0.925rem !important; line-height: 1.65 !important; color: #94A3B8 !important; margin: 0 !important; }

/* =====================================================
   7. FOOTER
   ===================================================== */
.tt-footer {
  background: linear-gradient(180deg, #00004d 0%, #000033 100%) !important;
  border-top: 1px solid rgba(255,215,0,0.12);
}
.tt-footer-widget h6 {
  color: #FFD700 !important;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.tt-footer address,
.tt-footer p,
.tt-footer-menu a {
  color: #94A3B8 !important;
  font-size: 0.9rem;
  line-height: 1.7;
}
.tt-footer-menu a:hover { color: #FFD700 !important; }
.tt-footer-bottom {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.tt-footer-bottom .copyright { color: #64748B !important; font-size: 0.85rem; }

/* =====================================================
   8. ALIVE EFFECTS – micro-interactions
   ===================================================== */
a, button, .btn, .list-group-item, .card, .panel {
  transition: var(--transition);
}

/* Soft glow on focus */
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(255,215,0,0.6);
  outline-offset: 2px;
}

/* Form controls */
.form-control {
  border-radius: 0.6rem !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--navy) !important;
  box-shadow: 0 0 0 3px rgba(0,0,128,0.12) !important;
}

/* Alerts */
.alert {
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Badges */
.badge {
  border-radius: 0.4rem;
  font-weight: 600;
}

/* Progress bars / meters if any */
.progress {
  border-radius: 1rem;
  background: #e2e8f0;
  height: 0.6rem;
}
.progress-bar {
  background: linear-gradient(90deg, #000080, #FFD700);
  border-radius: 1rem;
}

/* Subtle pulse for important CTA on homepage */
@keyframes soft-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(255,215,0,0.3); }
  50% { box-shadow: 0 6px 28px rgba(255,215,0,0.5); }
}
.tt-hero-btns .btn-primary {
  animation: soft-pulse 2.8s ease-in-out infinite;
}

/* =====================================================
   9. CLIENT AREA GENERAL POLISH
   ===================================================== */
#main-body {
  background: #f1f5f9;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

body.primary-bg-color #main-body,
body.bg-gray-light #main-body {
  background: transparent;
}

/* Links inside content */
.primary-content a:not(.btn) {
  color: var(--navy);
}
.primary-content a:not(.btn):hover {
  color: #0000a0;
}

/* Domain search, promo boxes etc that may appear */
.tt-promo,
.home-domain-search {
  transition: var(--transition);
  padding-top: 20px;
}

/* Ensure text-muted is always readable on light bg */
.text-muted { color: #64748b !important; }

/* Fix any remaining white-on-white or dark-on-dark */
.bg-white { background-color: #ffffff !important; color: #1e293b !important; }
.bg-dark { background-color: var(--navy-deeper) !important; color: #F8F9FA !important; }

/* =====================================================
   10. RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
  .tt-hero h1 { font-size: 2rem !important; }
  .tt-hero-btns { flex-direction: column; align-items: flex-start; }
  .tt-hero-btns .btn { width: 100%; max-width: 280px; }
  .sidebar { margin-bottom: 1.5rem; }
}

@media (max-width: 575px) {
  .tt-price-single { padding: 1.75rem 1.25rem !important; }
  .primary-content .card-header { padding: 0.75rem 1rem !important; }
}

/* =====================================================
   11. DARK MODE support (if switcher used)
   ===================================================== */
[data-bs-theme="dark"] body.tt-body-wrapper {
  background-color: #0f172a;
  color: #e2e8f0;
}
[data-bs-theme="dark"] .tt-header {
  background: #0f172a !important;
  border-bottom-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .tt-header .tt-main-header ul li a {
  color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .tt-header.affix {
  background: rgba(15,23,42,0.92) !important;
}
[data-bs-theme="dark"] .primary-content .card,
[data-bs-theme="dark"] #main-body .card {
  background: #1e293b !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .primary-content .card-body {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .sidebar .card-body,
[data-bs-theme="dark"] .sidebar .list-group-item {
  background: #1e293b !important;
  color: #cbd5e1 !important;
}

/* =====================================================
   12. TAILWIND SAFE CONTRAST LAYER (all pages)
   Ensures text never clashes with section backgrounds
   ===================================================== */

/* Dark sections → force light text */
.bg-navy-gradient,
.bg-gradient,
#pricingSection,
.features-section,
.tt-page-header,
.tt-footer,
section.bg-navy-gradient,
[class*="bg-navy"] {
  color: #F8F9FA;
}
.bg-navy-gradient h1, .bg-navy-gradient h2, .bg-navy-gradient h3,
.bg-gradient h1, .bg-gradient h2, .bg-gradient h3,
#pricingSection h1, #pricingSection h2, #pricingSection h3,
.features-section h1, .features-section h2, .features-section h3,
.tt-page-header h1, .tt-page-header h2, .tt-page-header h3 {
  color: #FFFFFF !important;
}

/* Light surfaces → force dark text */
.tt-header,
.primary-content .card,
.primary-content .panel,
#main-body .card,
#main-body .panel,
.sidebar .card-body,
.sidebar .list-group-item,
.bg-white,
.card-body {
  color: #1e293b;
}

/* Explicit utility helpers for templates */
.text-on-dark { color: #F8F9FA !important; }
.text-on-light { color: #1e293b !important; }
.text-muted-on-dark { color: #94A3B8 !important; }
.text-muted-on-light { color: #64748b !important; }

/* Tailwind text utilities – lock contrast when used on known surfaces */
.tt-header .text-white,
.tt-header .text-slate-100,
.tt-header .text-slate-200 { color: #1e293b !important; }

#pricingSection .text-white,
.features-section .text-white,
.tt-page-header .text-white,
.bg-gradient .text-white { color: #FFFFFF !important; }

#pricingSection .text-slate-300,
#pricingSection .text-slate-400,
.features-section .text-slate-300,
.features-section .text-slate-400,
.bg-gradient .text-slate-300 { color: #94A3B8 !important; }

/* Gold text always visible */
.text-gold,
.text-gold-400,
.text-gold-500 { color: #FFD700 !important; }

/* Navbar links stay dark on white bar even if Tailwind text-* is applied */
.tt-header a:not(.btn):not(.dropdown-item) {
  color: #334155 !important;
}
.tt-header a:not(.btn):not(.dropdown-item):hover {
  color: #000080 !important;
}

/* Premium card hover ring */
.primary-content .card:hover,
.sidebar .card:hover {
  box-shadow: 0 12px 32px rgba(0,0,80,0.12), 0 0 0 1px rgba(0,0,128,0.06);
}

/* Smooth page transitions */
.primary-content .card,
.tt-price-single,
.feature-card {
  will-change: transform, box-shadow;
}

/* Ensure buttons with Tailwind classes keep gold style */
.btn-primary.shadow-gold,
a.btn-primary {
  background: linear-gradient(135deg, #FFD700, #FFC107) !important;
  color: #000080 !important;
}

/* Client area body background soft */
body.tt-body-wrapper:not(.primary-bg-color):not(.bg-gray-light) {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
}

/* Homepage body stays dark */
body.tt-body-wrapper.primary-bg-color,
body.tt-body-wrapper.bg-gray-light {
  background: linear-gradient(180deg, #000080 0%, #00004d 100%) !important;
  color: #F8F9FA !important;
}
