/* =============================================================================
   citizendeveloper.css — Premium Design System
   citizendeveloper.codes
   Generated: 2026-09-08 | Replaces app.min.css + style.css + vendors.min.css +
                           typofix.css + tco-fixes.css (~812 KB total)
   ============================================================================= */

/* =============================================================================
   01. Google Fonts Import
   ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* =============================================================================
   02. CSS Custom Properties — Light Theme (default)
   ============================================================================= */
:root {
  /* Brand colours */
  --cd-primary:        #6366f1;
  --cd-primary-dark:   #4f46e5;
  --cd-primary-light:  #a5b4fc;
  --cd-accent:         #f59e0b;
  --cd-accent-dark:    #d97706;

  /* Surfaces */
  --cd-surface:        #f8faff;
  --cd-surface-card:   #ffffff;
  --cd-surface-nav:    rgba(248, 250, 255, 0.88);
  --cd-border:         rgba(99, 102, 241, 0.15);

  /* Text */
  --cd-text:           #1e1f2e;
  --cd-text-muted:     #6b7280;
  --cd-text-light:     #9ca3af;
  --cd-link:           #4f46e5;
  --cd-link-hover:     #6366f1;

  /* Shadows */
  --cd-shadow-sm:      0 1px 3px rgba(99,102,241,0.08);
  --cd-shadow:         0 4px 16px rgba(99,102,241,0.12);
  --cd-shadow-lg:      0 12px 40px rgba(99,102,241,0.18);
  --cd-shadow-hover:   0 16px 48px rgba(99,102,241,0.22);

  /* Spacing */
  --cd-radius:         0.75rem;
  --cd-radius-lg:      1.25rem;
  --cd-radius-pill:    50rem;

  /* Transitions */
  --cd-transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --cd-transition-fast: all 0.15s ease;

  /* Fonts */
  --cd-font-heading:   'Outfit', system-ui, sans-serif;
  --cd-font-body:      'Inter', system-ui, sans-serif;
  --cd-font-mono:      'JetBrains Mono', 'Fira Code', monospace;
}

/* =============================================================================
   03. Dark Mode Tokens — [data-bs-theme="dark"]
   ============================================================================= */
[data-bs-theme="dark"] {
  --cd-primary:        #818cf8;
  --cd-primary-dark:   #6366f1;
  --cd-primary-light:  #4f46e5;
  --cd-accent:         #fbbf24;
  --cd-accent-dark:    #f59e0b;

  --cd-surface:        #0f1117;
  --cd-surface-card:   #1a1d2e;
  --cd-surface-nav:    rgba(15, 17, 23, 0.92);
  --cd-border:         rgba(99, 102, 241, 0.25);

  --cd-text:           #e5e7eb;
  --cd-text-muted:     #9ca3af;
  --cd-text-light:     #6b7280;
  --cd-link:           #818cf8;
  --cd-link-hover:     #a5b4fc;

  --cd-shadow-sm:      0 1px 3px rgba(0,0,0,0.4);
  --cd-shadow:         0 4px 16px rgba(0,0,0,0.5);
  --cd-shadow-lg:      0 12px 40px rgba(0,0,0,0.6);
  --cd-shadow-hover:   0 16px 48px rgba(0,0,0,0.7);
}

/* =============================================================================
   04. CSS Reset + Base Styles
   ============================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--cd-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--cd-text);
  background-color: var(--cd-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cd-link);
  text-decoration: none;
  transition: var(--cd-transition-fast);
}

a:hover {
  color: var(--cd-link-hover);
}

/* =============================================================================
   05. Typography Scale
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--cd-font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cd-text);
  margin-top: 0;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--cd-text);
}

small, .small { font-size: 0.875em; }

code, pre {
  font-family: var(--cd-font-mono);
  font-size: 0.875em;
}

code {
  background: rgba(99, 102, 241, 0.08);
  color: var(--cd-primary-dark);
  padding: 0.15em 0.4em;
  border-radius: 0.3rem;
}

pre {
  background: var(--cd-surface-card);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

pre code {
  background: none;
  padding: 0;
}

/* =============================================================================
   06. Layout Utilities
   ============================================================================= */
.blog-area {
  padding: 2rem 0;
}

/* Home page specific spacing */
.blog-area.py-4 {
  padding: 2.5rem 0;
}

.container-fluid {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 1200px) {
  .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Footer widget spacing */
.footer-widget {
  margin-bottom: 1.5rem;
}

.footer-widget.pe-2 {
  padding-right: 0.5rem;
}

@media (min-width: 768px) {
  .footer-widget.pe-2 {
    padding-right: 1rem;
  }
}

/* =============================================================================
   07. Header Area
   ============================================================================= */
.header-area {
  position: relative;
  z-index: 1000;
}

.header-navbar-top {
  background: var(--cd-surface-card) !important;
  border-bottom: 1px solid var(--cd-border);
  min-height: 44px;
}

[data-bs-theme="dark"] .header-navbar-top {
  background: var(--cd-surface-card) !important;
}

/* =============================================================================
   08. News Ticker — Pure CSS marquee (replaces jQuery ticker plugin)
   ============================================================================= */
.header-newsticker-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  height: 44px;
}

.newsticker {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  gap: 0.5rem;
}

.newsticker-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cd-primary), var(--cd-primary-dark));
  color: #fff;
  padding: 0.2rem 0.75rem;
  border-radius: var(--cd-radius-pill);
  font-family: var(--cd-font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.newsticker-btn a {
  color: #fff !important;
  text-decoration: none;
}

.newsticker-list {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.newsticker-list ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
  animation: cd-ticker 300s linear infinite;
}

.newsticker-list ul:hover {
  animation-play-state: paused;
}

.newsticker-list li {
  padding: 0 2rem;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--cd-text-muted);
}

.newsticker-list li a {
  color: var(--cd-text-muted);
  text-decoration: none;
  transition: var(--cd-transition-fast);
}

.newsticker-list li a:hover {
  color: var(--cd-primary);
}

@keyframes cd-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================================================
   09. Social Icon Bar (.newsticker-social)
   ============================================================================= */
.newsticker-social {
  flex-shrink: 0;
}

.newsticker-social ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.newsticker-social li {
  display: inline-flex;
}

.newsticker-social .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--cd-text-muted);
  font-size: 0.85rem;
  border: 1px solid var(--cd-border);
  transition: var(--cd-transition);
}

.newsticker-social .icon:hover {
  color: #fff;
  background: var(--cd-primary);
  border-color: var(--cd-primary);
  transform: translateY(-2px);
  box-shadow: var(--cd-shadow-sm);
}

/* Footer social reuse */
.footer-area .newsticker-social {
  margin-top: 0.5rem;
}

.footer-area .newsticker-social ul {
  justify-content: center;
}

/* =============================================================================
   10. Navigation — Sticky Glassmorphism Navbar
   ============================================================================= */
.header-navbar-bottom {
  background: var(--cd-surface-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cd-border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-navbar-bottom.fixed {
  box-shadow: var(--cd-shadow);
  background: var(--cd-surface-nav);
}

.navbar {
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--cd-font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cd-primary) !important;
  letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
  font-family: var(--cd-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cd-text) !important;
  padding: 0.5rem 0.75rem;
  border-radius: var(--cd-radius);
  transition: var(--cd-transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--cd-primary) !important;
  background: rgba(99, 102, 241, 0.08);
}

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  box-shadow: var(--cd-shadow-lg);
  background: var(--cd-surface-card);
  padding: 0.5rem;
  animation: cd-fadeInDown 0.2s ease;
}

[data-bs-theme="dark"] .dropdown-menu {
  background: var(--cd-surface-card);
  border-color: var(--cd-border);
}

.dropdown-item {
  border-radius: calc(var(--cd-radius) - 2px);
  font-size: 0.875rem;
  color: var(--cd-text);
  padding: 0.45rem 0.75rem;
  transition: var(--cd-transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(99, 102, 241, 0.08);
  color: var(--cd-primary);
}

/* Search icon */
.search-modal .nav-link {
  color: var(--cd-text-muted) !important;
  padding: 0.5rem;
  border-radius: var(--cd-radius);
  transition: var(--cd-transition);
}

.search-modal .nav-link:hover {
  color: var(--cd-primary) !important;
  background: rgba(99, 102, 241, 0.08);
}

/* =============================================================================
   11. Mobile Nav (Bootstrap collapse)
   ============================================================================= */
.navbar-toggler {
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: 0.4rem 0.6rem;
  color: var(--cd-text);
  transition: var(--cd-transition);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236366f1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--cd-surface-card);
    border-radius: var(--cd-radius);
    border: 1px solid var(--cd-border);
    padding: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: var(--cd-shadow);
  }

  .navbar-nav .nav-link {
    padding: 0.6rem 0.75rem;
  }

  .dropdown-menu {
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--cd-border);
    border-radius: 0;
    padding-left: 0.75rem;
    margin-left: 0.5rem;
    background: transparent;
  }
}

/* =============================================================================
   12. Dark Mode Toggle Button (#darkModeToggle)
   ============================================================================= */
#darkModeToggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-pill);
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cd-text);
  cursor: pointer;
  transition: var(--cd-transition);
  white-space: nowrap;
}

#darkModeToggle:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--cd-primary);
  color: var(--cd-primary);
}

#darkModeToggle i {
  font-size: 0.9rem;
}

/* =============================================================================
   13. Preloader
   ============================================================================= */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--cd-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.lds-roller {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}

.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 32px 32px;
}

.lds-roller div::after {
  content: '';
  display: block;
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cd-primary);
  margin: -3px 0 0 -3px;
}

.lds-roller div:nth-child(1) { animation-delay: -0.036s; }
.lds-roller div:nth-child(1)::after { top: 50px; left: 50px; }
.lds-roller div:nth-child(2) { animation-delay: -0.072s; }
.lds-roller div:nth-child(2)::after { top: 54px; left: 45px; }
.lds-roller div:nth-child(3) { animation-delay: -0.108s; }
.lds-roller div:nth-child(3)::after { top: 57px; left: 39px; }
.lds-roller div:nth-child(4) { animation-delay: -0.144s; }
.lds-roller div:nth-child(4)::after { top: 58px; left: 32px; }
.lds-roller div:nth-child(5) { animation-delay: -0.18s; }
.lds-roller div:nth-child(5)::after { top: 57px; left: 25px; }
.lds-roller div:nth-child(6) { animation-delay: -0.216s; }
.lds-roller div:nth-child(6)::after { top: 54px; left: 19px; }
.lds-roller div:nth-child(7) { animation-delay: -0.252s; }
.lds-roller div:nth-child(7)::after { top: 50px; left: 14px; }
.lds-roller div:nth-child(8) { animation-delay: -0.288s; }
.lds-roller div:nth-child(8)::after { top: 45px; left: 10px; }

@keyframes lds-roller {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =============================================================================
   14. Hero / Main Content Area
   ============================================================================= */
.content {
  min-height: 60vh;
}

.blog-area .row {
  --bs-gutter-x: 1.5rem;
}

/* Home page section spacing */
.blog-area + .blog-area {
  margin-top: 1rem;
}

/* Add separation between hero CTA and content */
.blog-area.py-4 + .blog-area {
  margin-top: 0;
}

/* =============================================================================
   15. Featured Widgets — Rotating Images / Ads
   ============================================================================= */
.featured-widget,
.themeix-ads {
  text-align: center;
  margin-bottom: 1.5rem;
}

#rotating-image,
#rotating-ads {
  width: 100%;
  height: auto;
  border-radius: var(--cd-radius);
  box-shadow: var(--cd-shadow);
  transition: opacity 0.5s ease;
}

/* Enhanced featured images section */
.themeix-ads {
  position: relative;
  padding: 0.5rem;
  background: var(--cd-surface-card);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-lg);
  box-shadow: var(--cd-shadow-sm);
  transition: var(--cd-transition);
}

.themeix-ads:hover {
  box-shadow: var(--cd-shadow);
  transform: translateY(-2px);
}

.themeix-ads img {
  border-radius: var(--cd-radius);
  transition: var(--cd-transition);
}

.themeix-ads:hover img {
  transform: scale(1.02);
}

/* Brand logo section */
.themeix-ads .img-fluid {
  max-height: 120px;
  object-fit: contain;
}

/* =============================================================================
   16. Cards — Bootstrap Card Overrides + Platform Cards
   ============================================================================= */
.card {
  background: var(--cd-surface-card);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-lg);
  box-shadow: var(--cd-shadow-sm);
  transition: var(--cd-transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--cd-shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Hero CTA Card Styling */
.card.bg-primary {
  background: linear-gradient(135deg, var(--cd-primary) 0%, var(--cd-primary-dark) 50%, #4338ca 100%);
  border: none;
  box-shadow: var(--cd-shadow-lg);
  position: relative;
  overflow: hidden;
}

.card.bg-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: cd-horizontal-shimmer 6s ease-in-out infinite;
}

.card.bg-primary .card-title {
  color: #fff;
  position: relative;
  z-index: 1;
}

.card.bg-primary .card-text {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.card.bg-primary .btn-light {
  background: #fff;
  color: var(--cd-primary-dark);
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  transition: var(--cd-transition);
}

.card.bg-primary .btn-light:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: var(--cd-primary-dark);
}

/* TCO Calculator Promotional Card */
.tco-calculator-promo {
  background: linear-gradient(135deg, var(--cd-accent) 0%, var(--cd-accent-dark) 50%, #b45309 100%);
  border: none;
  box-shadow: var(--cd-shadow-lg);
  position: relative;
  overflow: hidden;
}

.tco-calculator-promo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: cd-shimmer 6s ease-in-out infinite;
}

.tco-calculator-promo .card-title {
  color: #fff;
  position: relative;
  z-index: 1;
}

.tco-calculator-promo .card-text {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.tco-icon-wrapper {
  position: relative;
  z-index: 1;
  color: #fff;
  opacity: 0.9;
  animation: cd-bounce 2s ease-in-out infinite;
}

.tco-features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tco-feature-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--cd-radius-pill);
  backdrop-filter: blur(4px);
  transition: var(--cd-transition);
}

.tco-feature-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.tco-calculator-promo .btn-primary {
  background: #fff;
  color: var(--cd-accent-dark);
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  transition: var(--cd-transition);
}

.tco-calculator-promo .btn-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: var(--cd-accent-dark);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--cd-border);
  font-family: var(--cd-font-heading);
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-family: var(--cd-font-heading);
  font-weight: 600;
  color: var(--cd-text);
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--cd-text-muted);
  font-size: 0.9rem;
}

/* Platform cards */
.platform-card {
  background: var(--cd-surface-card);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-lg);
  padding: 1.25rem;
  transition: var(--cd-transition);
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: cd-fadeInUp 0.4s ease both;
}

.platform-card:hover {
  box-shadow: var(--cd-shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}

.platform-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 0.5rem;
}

.platform-card .card-title {
  font-size: 1rem;
}

.platform-card .card-text {
  font-size: 0.8rem;
  flex: 1;
}

/* =============================================================================
   17. Platform Directory
   ============================================================================= */
#platforms-cards-section {
  padding: 1rem 0;
}

/* Category filter buttons */
.category-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cd-surface-card);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cd-text-muted);
  cursor: pointer;
  transition: var(--cd-transition);
  white-space: nowrap;
}

.category-filter-btn:hover,
.category-filter-btn.active {
  background: var(--cd-primary);
  border-color: var(--cd-primary);
  color: #fff;
  box-shadow: var(--cd-shadow-sm);
}

/* Keyword links */
.platform-keyword-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--cd-primary);
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--cd-radius-pill);
  padding: 0.15rem 0.6rem;
  margin: 0.15rem;
  transition: var(--cd-transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.platform-keyword-link:hover {
  background: var(--cd-primary);
  color: #fff;
  border-color: var(--cd-primary);
}

/* =============================================================================
   18. Platform Search Input
   ============================================================================= */
.platform-search-input,
#platformname {
  background: var(--cd-surface-card);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-pill);
  padding: 0.6rem 1.25rem;
  font-family: var(--cd-font-body);
  font-size: 0.9rem;
  color: var(--cd-text);
  width: 100%;
  transition: var(--cd-transition);
  outline: none;
}

.platform-search-input:focus,
#platformname:focus {
  border-color: var(--cd-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.platform-search-input::placeholder,
#platformname::placeholder {
  color: var(--cd-text-light);
}

/* Typeahead dropdown */
.typeahead.dropdown-menu {
  border-radius: var(--cd-radius);
  border: 1px solid var(--cd-border);
  box-shadow: var(--cd-shadow-lg);
  font-size: 0.875rem;
}

/* =============================================================================
   19. Google Charts Containers
   ============================================================================= */
#regions_div,
#category_div {
  background: var(--cd-surface-card);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
  min-height: 300px;
}

[data-bs-theme="dark"] #regions_div,
[data-bs-theme="dark"] #category_div {
  background: var(--cd-surface-card);
}

/* =============================================================================
   20. Sidebar
   ============================================================================= */
.sidebar-widget {
  background: var(--cd-surface-card);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--cd-shadow-sm);
}

.sidebar-widget h4,
.sidebar-widget h5,
.sidebar-widget .widget-title {
  font-family: var(--cd-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cd-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cd-primary);
  display: inline-block;
}

.counter-post {
  list-style: none;
  padding: 0;
  margin: 0;
}

.counter-post-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--cd-border);
  transition: var(--cd-transition-fast);
}

.counter-post-item:last-child {
  border-bottom: none;
}

.counter-post-item:hover {
  color: var(--cd-primary);
}

.counter-post-item img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 0.4rem;
  flex-shrink: 0;
}

.counter-post-item .post-info {
  flex: 1;
  min-width: 0;
}

.counter-post-item .post-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cd-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.counter-post-item .post-title:hover {
  color: var(--cd-primary);
}

.counter-post-item .post-date {
  font-size: 0.75rem;
  color: var(--cd-text-light);
  margin-top: 0.15rem;
}

/* =============================================================================
   21. Sidebar Tabs — Bootstrap .nav-tabs overrides
   ============================================================================= */
.nav-tabs {
  border-bottom: 2px solid var(--cd-border);
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: var(--cd-radius) var(--cd-radius) 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cd-text-muted);
  padding: 0.5rem 0.9rem;
  transition: var(--cd-transition-fast);
  background: transparent;
}

.nav-tabs .nav-link:hover {
  color: var(--cd-primary);
  background: rgba(99, 102, 241, 0.06);
}

.nav-tabs .nav-link.active {
  color: var(--cd-primary);
  background: transparent;
  border-bottom: 2px solid var(--cd-primary);
  margin-bottom: -2px;
  font-weight: 600;
}

.tab-content .tab-pane {
  padding-top: 1rem;
}

/* =============================================================================
   22. Blockquotes
   ============================================================================= */
blockquote,
.blockquote {
  border-left: 4px solid var(--cd-primary);
  background: rgba(99, 102, 241, 0.05);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--cd-radius) var(--cd-radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--cd-text-muted);
  position: relative;
  transition: var(--cd-transition);
}

blockquote:hover,
.blockquote:hover {
  background: rgba(99, 102, 241, 0.08);
  border-left-color: var(--cd-primary-dark);
  transform: translateX(4px);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Home page blockquote styling */
.footer-widget blockquote,
.footer-widget .blockquote {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-left: 4px solid var(--cd-primary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--cd-radius);
  margin: 1rem 0;
  font-style: italic;
  color: var(--cd-text);
  position: relative;
  box-shadow: var(--cd-shadow-sm);
}

.footer-widget blockquote::before,
.footer-widget .blockquote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 3rem;
  color: var(--cd-primary);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.footer-widget blockquote:hover,
.footer-widget .blockquote:hover {
  box-shadow: var(--cd-shadow);
  transform: translateY(-2px);
}

/* .typofix context blockquote */
.typofix blockquote {
  border-left: 3px solid var(--cd-border);
  background: transparent;
  padding: 0.5rem 1rem;
  font-style: italic;
}

/* =============================================================================
   23. Buttons
   ============================================================================= */
.btn {
  font-family: var(--cd-font-body);
  font-weight: 500;
  border-radius: var(--cd-radius-pill);
  padding: 0.5rem 1.25rem;
  transition: var(--cd-transition);
  font-size: 0.9rem;
}

.btn:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.4);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cd-primary), var(--cd-primary-dark));
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--cd-primary-dark), #4338ca);
  box-shadow: var(--cd-shadow);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline-primary {
  border: 1.5px solid var(--cd-primary);
  color: var(--cd-primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--cd-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--cd-shadow-sm);
}

.btn-accent {
  background: linear-gradient(135deg, var(--cd-accent), var(--cd-accent-dark));
  border: none;
  color: #fff;
}

.btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: var(--cd-shadow-sm);
  color: #fff;
}

/* =============================================================================
   24. Badges — Fixes .badge.text-bg-light (replaces tco-fixes.css Fix 1–3)
   ============================================================================= */
.badge {
  font-family: var(--cd-font-body);
  font-weight: 600;
  font-size: 0.75em;
  border-radius: var(--cd-radius-pill);
}

/* Fix: theme's global .badge { color: #fff } overrides Bootstrap text-bg-light */
.badge.text-bg-light {
  color: #343a40 !important;
  background-color: #f8f9fa !important;
}

.badge.bg-light {
  color: #343a40 !important;
}

.badge.rounded-pill.text-bg-light {
  color: #343a40 !important;
  background-color: #f8f9fa !important;
}

[data-bs-theme="dark"] .badge.text-bg-light {
  color: #1e1f2e !important;
  background-color: #e5e7eb !important;
}

/* =============================================================================
   25. Forms — Label & Input Visibility (replaces tco-fixes.css Fix 4–5)
   ============================================================================= */
.form-group label,
label.form-label {
  color: var(--cd-text);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-control {
  background-color: var(--cd-surface-card);
  border: 1px solid var(--cd-border);
  color: var(--cd-text);
  border-radius: var(--cd-radius);
  padding: 0.5rem 0.85rem;
  font-family: var(--cd-font-body);
  font-size: 0.9rem;
  transition: var(--cd-transition-fast);
}

.form-control:focus {
  border-color: var(--cd-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background-color: var(--cd-surface-card);
  color: var(--cd-text);
  outline: none;
}

.form-control::placeholder {
  color: var(--cd-text-light);
}

[data-bs-theme="dark"] .form-control {
  background-color: var(--cd-surface-card);
  border-color: var(--cd-border);
  color: var(--cd-text);
}

.form-select {
  background-color: var(--cd-surface-card);
  border: 1px solid var(--cd-border);
  color: var(--cd-text);
  border-radius: var(--cd-radius);
}

.form-select:focus {
  border-color: var(--cd-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

input.form-control[value=""] {
  background-color: var(--cd-surface-card);
}

/* =============================================================================
   26. Calculator / TCO Page Containers
   ============================================================================= */
.calculator-section,
.tco-section {
  background: var(--cd-surface-card);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--cd-shadow-sm);
}

.calculator-section h4,
.tco-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cd-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--cd-border);
}

/* =============================================================================
   27. Subscribe Form
   ============================================================================= */
.subscribe-area {
  background: linear-gradient(135deg, var(--cd-primary) 0%, var(--cd-primary-dark) 50%, #4338ca 100%);
  border-radius: var(--cd-radius-lg);
  padding: 2.5rem;
  color: #fff;
  text-align: center;
  margin: 2rem 0;
}

.subscribe-area h3,
.subscribe-area h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.subscribe-area p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.subscribe-area .form-control {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: var(--cd-radius-pill);
}

.subscribe-area .form-control::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.subscribe-area .form-control:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.subscribe-area .btn {
  background: #fff;
  color: var(--cd-primary-dark);
  font-weight: 600;
}

.subscribe-area .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* =============================================================================
   28. Footer
   ============================================================================= */
.footer-area {
  background: var(--cd-surface-card);
  border-top: 1px solid var(--cd-border);
  position: relative;
}

.footer-copyright {
  color: var(--cd-text-muted);
  font-size: 0.85rem;
}

.footer-copyright a {
  color: var(--cd-primary);
  font-weight: 500;
}

.footer-copyright a:hover {
  color: var(--cd-primary-dark);
  text-decoration: underline;
}

.footer-copyright p {
  color: var(--cd-text-muted);
  margin-bottom: 0.25rem;
}

.footer-copyright .fa-heart {
  animation: cd-pulse 1.5s ease infinite;
}

/* =============================================================================
   29. Back-to-Top Button (.footer-back)
   ============================================================================= */
.footer-back {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cd-primary), var(--cd-primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--cd-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
  z-index: 9999;
  text-decoration: none;
}

.footer-back.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer-back:hover {
  background: linear-gradient(135deg, var(--cd-primary-dark), #4338ca);
  box-shadow: var(--cd-shadow-hover);
  transform: translateY(-2px);
  color: #fff;
}

/* =============================================================================
   30. Cookie Consent Banner
   ============================================================================= */
.cookie-consent,
#cookieConsent,
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cd-surface-card);
  border-top: 1px solid var(--cd-border);
  padding: 1rem 1.5rem;
  z-index: 9998;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

.cookie-consent p,
#cookieConsent p {
  margin: 0;
  color: var(--cd-text-muted);
  flex: 1;
  min-width: 200px;
}

/* =============================================================================
   31. Inline CSS Removals (from scripts.html <style> block)
   ============================================================================= */
ul.no-bullets {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

sup {
  vertical-align: super;
  font-size: smaller;
  color: var(--cd-accent-dark);
}

.carousel-control-prev,
.carousel-control-next {
  top: 5px;
  bottom: auto;
  width: 10%;
  color: #000000;
}

/* =============================================================================
   32. Micro-animations
   ============================================================================= */
@keyframes cd-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cd-fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cd-slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cd-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}

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

@keyframes cd-horizontal-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes cd-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes cd-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.6); }
}

/* Animate-on-scroll (no AOS lib — uses IntersectionObserver via site.js) */
[data-cd-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-cd-animate].cd-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Home page entrance animations */
.blog-area .card {
  animation: cd-fadeInUp 0.6s ease both;
}

.blog-area .card:nth-child(1) { animation-delay: 0.1s; }
.blog-area .card:nth-child(2) { animation-delay: 0.2s; }
.blog-area .card:nth-child(3) { animation-delay: 0.3s; }

/* Button hover micro-interactions */
.btn-primary:hover {
  animation: cd-bounce 0.5s ease;
}



/* =============================================================================
   33. Responsive Breakpoints
   ============================================================================= */

/* sm: ≥576px */
@media (min-width: 576px) {
  .newsticker-list li { padding: 0 1.5rem; }
}

/* md: ≥768px */
@media (min-width: 768px) {
  .subscribe-area { padding: 3rem 2.5rem; }
  .platform-card { flex-direction: row; align-items: flex-start; }
  .platform-card img { flex-shrink: 0; }
}

/* lg: ≥992px */
@media (min-width: 992px) {
  .header-navbar-top { display: block !important; }

  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--cd-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
  }

  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
  }
}

/* xl: ≥1200px */
@media (min-width: 1200px) {
  .blog-area { padding: 2.5rem 0; }
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
  .newsticker-list ul { animation-duration: 240s; }
  .subscribe-area { padding: 1.5rem 1rem; }
  .footer-back { bottom: 1rem; right: 1rem; width: 40px; height: 40px; }
  .cookie-consent { flex-direction: column; align-items: flex-start; }

  /* Home page mobile improvements */
  .blog-area.py-4 {
    padding: 1.5rem 0;
  }

  .card.bg-primary .card-title {
    font-size: 1.25rem;
  }

  .card.bg-primary .card-text {
    font-size: 0.9rem;
  }

  .card.bg-primary .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .footer-widget blockquote,
  .footer-widget .blockquote {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .footer-widget blockquote::before,
  .footer-widget .blockquote::before {
    font-size: 2rem;
    top: -0.25rem;
  }

  .themeix-ads {
    padding: 0.25rem;
  }

  .themeix-ads .img-fluid {
    max-height: 80px;
  }

  /* Reduce animations on mobile for performance */
  .card.bg-primary::before {
    animation: none;
  }

  .blog-area .card {
    animation: none;
  }
}

/* =============================================================================
   34. Print Styles
   ============================================================================= */
@media print {
  .header-area,
  .header-navbar-top,
  .header-navbar-bottom,
  .footer-area,
  .footer-back,
  .preloader,
  .cookie-consent,
  #cookieConsent,
  .sidebar-widget,
  .subscribe-area,
  .newsticker,
  .newsticker-social,
  #darkModeToggle {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .card,
  .platform-card,
  .sidebar-widget {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
