/* Base Styles & Reset */
:root {
  --primary-color: #000000;
  --primary-hover: #333333;
  --accent-color: #455ae9; /* Warna biru elegan / modern vivid blue */
  --accent-hover: #3546b8;
  --bg-color: #ffffff;
  --bg-secondary: #f4f5f9;
  --text-main: #111111;
  --text-muted: #5f6368;
  --border-color: #e6e6e6;
  --font-family: "Inter", system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --hover-shadow: 0 12px 30px rgba(69, 90, 233, 0.22);
  --hover-border: rgba(69, 90, 233, 0.4);
  --btn-hover-shadow: 0 4px 12px rgba(69, 90, 233, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  top: 0px !important;
}

/* --- GOOGLE TRANSLATE FIXES (Refined) --- */
.goog-te-banner-frame, 
.goog-te-balloon-frame, 
#goog-gt-tt { 
    display: none !important; 
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.goog-text-highlight, 
font.goog-text-highlight, 
span.goog-text-highlight,
.goog-tooltip,
.goog-tooltip:hover,
[class*="VIpgJd-"],
[class*="goog-te-"],

font[style*="background-color"],
span[style*="background-color"],
font[style*="background"],
span[style*="background"] {
    background-color: transparent !important;
    /* background: transparent !important; */

    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}


/* Menangkap semua tag font yang mungkin disuntikkan secara dinamis (Global) */
font {
    /* background: none !important; */

    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* Reset posisi body yang sering diubah oleh widget Google Translate */
body { 
    top: 0px !important; 
    position: static !important; 
}
#google_translate_element { display: none !important; }

/* Menghilangkan seleksi otomatis oleh browser saat translasi (Chrome built-in) */
.goog-te-gadget-simple, .goog-te-menu-value span {
    background-color: transparent !important;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography (Mirip Gaya Modern Sans-Serif Wix) */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Buttons (Bentuk Capsul ala Modern UI) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--btn-hover-shadow);
  color: #ffffff !important;
}

.btn-large {
  padding: 16px 36px;
  font-size: 18px;
}

.btn-light {
  background-color: #ffffff;
  color: var(--text-main);
}

.btn-light:hover {
  background-color: #f4f5f9;
  transform: translateY(-2px);
}

/* Navbar Sticky ala Wix */
.navbar {
  display: flex;
  align-items: center;
  padding: 0 4%;
  height: 70px;
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  border-bottom: 1px solid var(--border-color);
  will-change: background-color, box-shadow;
}

.logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-right: 60px; /* Gap between Section 1 and 2 */
  flex-shrink: 0;
}

.nav-links ul {
  display: flex;
  gap: 20px; /* Small gap within Group 2 and 3 */
  align-items: center;
  height: 100%;
}

.nav-links > ul > li {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-main);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* nav-text: globally NO bottom border — prevents blue line on mobile */
.nav-text {
  position: relative;
  display: inline-block;
  width: fit-content;
  flex-shrink: 0;
  flex-grow: 0;
  max-width: max-content;
  border-bottom: none;
  transition: color 0.3s ease;
}


@media (min-width: 1051px) {
/* Wix-style Mega Menu (Click Based) */
.dropdown-item { height: 100%; }
.dropdown-toggle { padding: 30px 0; position: relative; }

/* 1. Efek Hover HANYA untuk mengubah warna teks dan panah */
.dropdown-item:hover .dropdown-toggle { font-weight: 600; color: var(--accent-color); }
.dropdown-item:hover .chevron { border-color: var(--accent-color); }

/* Desain bawaan Chevron (Panah) */
.chevron {
  display: inline-block; margin-left: 4px; border: solid var(--text-main); border-width: 0 1.5px 1.5px 0;
  padding: 3px; transform: rotate(45deg); transition: transform 0.2s ease; margin-bottom: 2px;
}

/* Base Mega Menu (Kondisi Sembunyi) */
.mega-menu {
  position: absolute; top: 100%; left: 0; width: 100vw; background-color: #ffffff;
  border-bottom: 1px solid var(--border-color); box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); z-index: 100002;
}

/* Desktop-only: transparent border slot for smooth transition */
.nav-text {
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}


/* Desktop-only: add transparent border slot + active blue underline */
.nav-text-desktop-border {
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

/* Efek Active: DESKTOP ONLY (inside @media min-width:1051px) */
.dropdown-item.active .dropdown-toggle .nav-text,
.nav-links a.active .nav-text {
  border-bottom: 2px solid var(--accent-color);
}

.dropdown-item.active .chevron { transform: rotate(-135deg); margin-bottom: -2px; border-color: var(--accent-color); }
.dropdown-item.active .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
}





.mega-menu-content {
  display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1200px; margin: 0 auto; padding: 50px 5%; gap: 30px;
}

.mega-column { padding: 0; }
.mega-column:not(:last-child) { border-right: none; }
.mega-column:not(:first-child) { padding-left: 0; }

/* --- PREMIUM BADGES & TAGS (Laragon Style) --- */
.column-title, .badge-premium, .page-hero-tag {
  display: inline-block !important;
  padding: 5px 14px !important;
  position: relative !important;
  border-radius: 6px !important;
  margin-bottom: 20px !important;
  
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  line-height: normal !important;
  
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  border-width: 1px !important;
  border-style: solid !important;
}

/* Inner Span for Gradient Text */
.column-title > span, 
.badge-premium > span, 
.page-hero-tag > span {
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block !important;
}

/* LIGHT MODE STYLE (Default) */
html body .column-title, 
html body .badge-premium, 
html body .page-hero-tag {
  background-color: #f1f4ff !important;
  border-color: rgba(124, 131, 241, 0.4) !important;
}

html body .column-title > span, 
html body .badge-premium > span, 
html body .page-hero-tag > span {
  background-image: linear-gradient(to right, #455ae9, #7c83f1) !important;
  color: #455ae9 !important; /* Fallback */
}

/* DARK MODE STYLE */
[data-theme='dark'] body .column-title, 
[data-theme='dark'] body .badge-premium, 
[data-theme='dark'] body .page-hero-tag {
  background-color: #0c111d !important;
  border-color: rgba(124, 131, 241, 0.6) !important;
}

[data-theme='dark'] body .column-title > span, 
[data-theme='dark'] body .badge-premium > span, 
[data-theme='dark'] body .page-hero-tag > span {
  background-image: linear-gradient(to right, #ffffff, #a4acff) !important;
  color: #a4acff !important; /* Fallback */
}

/* Neutralize Hovers */
html body .column-title:hover, 
html body .badge-premium:hover, 
html body .page-hero-tag:hover {
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.9 !important;
}

.nav-links .mega-menu-link {
  display: flex !important; flex-direction: row !important; align-items: flex-start !important; 
  padding: 16px !important; margin-bottom: 8px !important; border-radius: 12px !important; 
  color: var(--text-main) !important; white-space: normal !important; transition: all 0.3s ease !important;
  gap: 15px !important;
}

.nav-links .mega-menu-link:hover { 
  background-color: var(--bg-secondary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
}

.mega-icon {
  width: 40px; height: 40px; background: #f0f3ff; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--accent-color); flex-shrink: 0;
  transition: all 0.3s ease;
}

.mega-menu-link:hover .mega-icon {
  background: var(--accent-color);
  color: #fff;
}

.mega-text { display: flex; flex-direction: column; }
.mega-menu-link strong { font-size: 15px; font-weight: 600; margin-bottom: 2px; color: var(--text-main); transition: color 0.3s ease; }
.mega-menu-link span { font-size: 13px; color: var(--text-muted); font-weight: 400; line-height: 1.4; transition: color 0.3s ease; }

.mega-menu-link:hover strong { color: var(--accent-color); }

.mega-menu-footer { background-color: var(--bg-secondary); padding: 24px 5%; border-top: 1px solid var(--border-color); }
.mega-menu-footer .column-title { max-width: 1200px; margin: 0 auto 12px; }

.nav-links .footer-links { max-width: 1200px; margin: 0 auto; display: flex; gap: 24px; flex-wrap: wrap; }
.nav-links .footer-links a { font-size: 14px; color: var(--text-main); }
.nav-links .footer-links a:hover { text-decoration: underline; color: var(--text-main); }

/* Nav Separators */
.nav-separator { width: 1px; height: 20px; background-color: var(--border-color); margin: 0 10px; }
.action-separator { width: 1px; height: 20px; background-color: var(--border-color); margin: 0 5px; }

.nav-icon-link { display: flex; align-items: center; color: var(--text-main); transition: var(--transition); }
.nav-icon-link:hover { color: var(--accent-color); }

.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 15px; /* Small gap within Group 4 */
    margin-left: auto; /* Push Group 4 and 5 to the right */
}

/* Beri jarak antara ujung nav-links dan search trigger */
.nav-links {
    margin-right: 20px;
}

/* Section Separator */
.action-separator {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 5px;
}
.nav-link-login { 
    font-size: 14px; 
    font-weight: 600; 
    color: var(--text-main); 
    transition: var(--transition); 
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 50px;
}
.nav-link-login:hover { 
    color: var(--accent-color); 
    background: rgba(69, 90, 233, 0.05);
}

.nav-btn-signup {
    background-color: var(--accent-color);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-btn-signup:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--btn-hover-shadow);
    color: #fff !important;
}

/* Tombol Login tunggal (kondisi guest/belum login) */
.nav-btn-login-only {
    background-color: var(--accent-color);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-btn-login-only:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--btn-hover-shadow);
    color: #fff !important;
}

.mobile-menu-btn { 
  display: none; 
  font-size: 24px; 
  background: none; 
  border: none; 
  cursor: pointer; 
  color: var(--text-main);
  transition: var(--transition);
  position: relative;
  z-index: 100001;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

/* Tombol close (✕) saat mobile menu aktif */
body.mobile-active .mobile-menu-btn {
  font-size: 22px;
  font-weight: 300;
  background: rgba(128, 128, 128, 0.12);
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  min-height: 92vh; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between;
  padding: 130px 5% 60px; background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%); gap: 40px;
}
.hero-content { flex: 1; max-width: 650px; }
.hero-title {
  font-size: 56px; margin-bottom: 20px; background: linear-gradient(to right, #111111, #444444);
  -webkit-background-clip: text;
  background-clip: text; /* TAMBAHAN VERSI STANDAR */
  -webkit-text-fill-color: transparent;
}

/* Robust fix for Google Translate children in hero section */
.hero-title *, .badge-premium *, .column-title * {
  background: inherit !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: inherit !important;
  -webkit-text-fill-color: transparent !important;
  display: inline !important;
}

.hero-subtitle { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; font-weight: 300; line-height: 1.5; }
.hero-buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-note { font-size: 13px; color: var(--text-muted); }

.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; perspective: 1000px; }

.hero-blend-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    max-height: 55vh; /* Mencegah gambar terlalu tinggi sampai menekan konten lain */
    object-fit: contain;
    /* Efek fade out halus ke arah kiri (tanpa mix-blend karena sudah berformat PNG transparan) */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
    mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

/* Features Section */
.features { padding: 100px 5%; background-color: var(--bg-color); text-align: center; }
.section-heading { max-width: 700px; margin: 0 auto 60px; }
.section-heading h2 { font-size: 40px; margin-bottom: 16px; }
.section-heading p { font-size: 18px; color: var(--text-muted); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.feature-card {
  padding: 40px 30px; border-radius: 16px; background: var(--bg-color); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color); transition: var(--transition) !important; text-align: left;
}

/* Base Card transition for smooth lift animation */
.blog-card,
.step-card,
.why-us-card,
.pricing-card {
  transition: var(--transition) !important;
}

/* Unified Card Hover Effects (Lifting + Blue Shadow + Soft Border) */
.feature-card:hover,
.blog-card:hover,
.step-card:hover,
.why-us-card:hover,
.pricing-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--hover-shadow);
  border-color: var(--hover-border) !important;
}
.feature-icon { font-size: 40px; margin-bottom: 24px; display: inline-block; padding: 16px; background: #f4f6ff; border-radius: 12px; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 15px; }

.blog-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

[data-theme="dark"] .blog-card {
  background-color: rgba(20, 24, 30, 0.45) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.08) !important;
}


/* CTA Section */
.cta-section { padding: 100px 5%; background: linear-gradient(135deg, var(--accent-color) 0%, #203198 100%); color: white; text-align: center; }
.cta-content { max-width: 600px; margin: 0 auto; }
.cta-content h2 { font-size: 48px; margin-bottom: 20px; color: white; }
.cta-content p { font-size: 20px; margin-bottom: 40px; opacity: 0.9; }

/* Footer */
.footer { background-color: #111111; color: #ffffff; padding: 80px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 60px; }
.footer-logo { font-size: 24px; margin-bottom: 20px; }
.brand-col p { color: #888888; max-width: 300px; }
.footer-col h4 { font-size: 16px; margin-bottom: 20px; color: white; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #888888; font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: #ffffff; }
.footer-bottom { text-align: center; border-top: 1px solid #333333; padding-top: 30px; color: #666666; font-size: 14px; }

/* === Responsive === */
@media (max-width: 1200px) {
  .nav-links ul { gap: 15px; } 
  .nav-actions { gap: 10px; }
  .navbar { padding: 0 4%; } 
}

@media (max-width: 1050px) {
  .nav-links, .nav-actions { display: none; }
  
  /* --- DRIBBBLE STYLE MOBILE MENU --- */
  body.mobile-active { overflow: hidden; position: fixed; width: 100%; } 
  
  body.mobile-active .nav-links {
    display: block; position: fixed;
    top: 70px; left: 0; width: 100%; 
    height: calc(100vh - 70px);
    background-color: var(--bg-color);
    overflow-x: hidden;
    overflow-y: auto; 
    padding: 0; 
    z-index: 999;
    padding-bottom: 100px;
    max-width: 100vw;
  }

  body.mobile-active .nav-links ul { display: block; width: 100%; height: auto; }
  
  /* Top-level list items — full width, bottom separator */
  body.mobile-active .nav-links > ul > li { 
    display: block; width: 100%; height: auto;
    border-bottom: 1px solid var(--border-color) !important; /* Always gray separator */
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
  }


  /* Top-level links — Dribbble style: big bold, flat, full width */
  body.mobile-active .nav-links a.dropdown-toggle,
  body.mobile-active .nav-links > ul > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    width: 100%;
    font-size: 18px;
    color: var(--text-main);
    font-weight: 700;
    background: transparent;
    border-radius: 0;
    border: none !important;
    letter-spacing: -0.3px;
    text-decoration: none !important;
  }


  body.mobile-active .nav-links a.dropdown-toggle:hover,
  body.mobile-active .nav-links > ul > li > a:hover {
    color: var(--accent-color);
    background: transparent;
  }

  /* Active top-level item — left-border indicator, NO border-bottom on nav-text */
  body.mobile-active .nav-links a .nav-text {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: max-content !important;
    border-bottom: none !important; /* Kill the stretching blue line */
  }

  body.mobile-active .nav-links a.active .nav-text {
    color: var(--accent-color);
    border-bottom: none !important;
  }
  
  body.mobile-active .nav-links a.active {
    background: transparent !important;
    border: none !important;
    color: var(--accent-color) !important;
  }



  /* === ULTIMATE KILL SWITCH: No blue lines on mobile nav === */
  body.mobile-active .nav-links a,
  body.mobile-active .nav-links a.active,
  body.mobile-active .nav-links .nav-text,
  body.mobile-active .nav-links .dropdown-toggle {
    border-bottom: none !important;
    border-top: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }

  /* --- ACCORDION (Dribbble style: clean sub-list below) --- */

  
  /* 1. Hide mega menu by default */
  body.mobile-active .nav-links .mega-menu {
    display: none; 
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none; border: none; transition: none !important;
    width: 100%;
  }

  /* 2. Show only when active (accordion open) */
  body.mobile-active .nav-links .dropdown-item.active .mega-menu {
    display: block !important; 
    background-color: transparent;
    padding: 0 0 16px 0;
    border-top: none;
    border-bottom: none;
  }

  /* Chevron animation */
  body.mobile-active .chevron { transition: transform 0.3s ease; margin-left: auto; }
  body.mobile-active .dropdown-item:not(.active):hover .chevron { transform: rotate(45deg); margin-bottom: 2px; }
  body.mobile-active .dropdown-item.active .chevron,
  body.mobile-active .dropdown-item.active:hover .chevron { transform: rotate(-135deg) translateY(-2px); margin-bottom: -2px; }

  /* Nav-text: prevent flex stretch */
  body.mobile-active .nav-links a .nav-text {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: max-content !important;
  }


  /* --- Accordion sub-items: Dribbble style --- */
  body.mobile-active .mega-menu-content { 
    display: flex; 
    flex-direction: column; 
    padding: 0 24px; 
  }
  
  /* Column title (category header) */
  body.mobile-active .mega-column { 
    padding: 0 !important; 
    border: none !important; 
    margin-bottom: 8px; 
  }
  body.mobile-active .mega-column:last-child { margin-bottom: 0; }
  body.mobile-active .column-title { 
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--text-muted) !important;
    padding: 12px 0 8px 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: none !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
  }
  body.mobile-active .column-title > span {
    -webkit-text-fill-color: var(--text-muted) !important;
    background-image: none !important;
  }
  
  /* Individual sub-links */
  body.mobile-active .mega-menu-link { 
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-radius: 0; 
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
  }
  body.mobile-active .mega-menu-link:last-child { border-bottom: none; }
  body.mobile-active .mega-icon { 
    width: 38px; height: 38px; 
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    color: var(--accent-color);
  }
  body.mobile-active .mega-menu-link strong { 
    font-size: 15px; 
    color: var(--text-main); 
    display: block; 
    margin-bottom: 2px; 
    font-weight: 600;
  }
  body.mobile-active .mega-menu-link span { 
    font-size: 13px; 
    color: var(--text-muted); 
    display: block; 
    line-height: 1.4; 
    white-space: normal;
  }
  body.mobile-active .mega-menu-footer { display: none; } 
  body.mobile-active .mega-text { flex: 1; }

  


  /* Tombol Aksi Bawah Layar */
  body.mobile-active .nav-actions {
    display: flex; position: fixed;
    bottom: 0; left: 0; width: 100%; height: 80px;
    background: var(--bg-color); border-top: 1px solid var(--border-color);
    align-items: center; justify-content: center; gap: 15px;
    padding: 0 5%; z-index: 1000;
  }

  /* Perbaikan: Dropdown muncul ke atas jika di bar bawah (mobile) */
  body.mobile-active .nav-actions .nav-dropdown-menu,
  body.mobile-active .nav-actions .lang-menu {
    bottom: 100%;
    top: auto;
    margin-bottom: 10px;
    margin-top: 0;
    transform: translateY(-10px);
  }

  body.mobile-active .nav-actions .nav-dropdown-wrapper:hover .nav-dropdown-menu,
  body.mobile-active .nav-actions .lang-dropdown-wrapper:hover .lang-menu {
    transform: translateY(0);
  }

  
  body.mobile-active .nav-link-login {
    flex: 1; text-align: center; padding: 12px 0; 
    border: 1px solid var(--text-main); border-radius: 50px; font-weight: 600;
  }
  body.mobile-active .nav-btn-login-only {
    flex: 1; text-align: center; padding: 12px 0;
    background-color: var(--accent-color);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
  }
  body.mobile-active .nav-actions .btn { flex: 1; padding: 12px 0; }
  
  /* Compact tools for bottom bar */
  body.mobile-active .github-search-trigger {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }
  body.mobile-active .search-label-mini {
    display: none;
  }
  body.mobile-active .theme-toggle {
    margin-right: 0 !important;
    width: 44px;
    height: 44px;
    background: var(--bg-secondary) !important;
    border-radius: 8px;
  }
  
  body.mobile-active .lang-dropdown-wrapper, body.mobile-active .action-separator { display: none; }
  /* ------------------------------- */

  .mobile-menu-btn { 
    display: flex; 
    margin-left: auto; /* Push to right */
  }
  .hero { flex-direction: column; text-align: center; padding-top: 150px; }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: 48px; }
  .hero-buttons { align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 36px; }
  .section-heading h2 { font-size: 32px; }
  .cta-content h2 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* === Dropdown Bahasa (Ikon Globe) === */
.lang-dropdown-wrapper { position: relative; display: flex; align-items: center; height: 100%; padding: 0 10px; }
.lang-menu {
  position: absolute; top: 100%; right: 0; background-color: #ffffff; border: 1px solid var(--border-color);
  border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); display: flex; flex-direction: column; min-width: 180px;
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s ease; z-index: 100004; pointer-events: none;
}
.lang-dropdown-wrapper:hover .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.lang-btn {
  background: none; border: none; padding: 12px 20px; text-align: left; font-family: var(--font-family);
  font-size: 14px; color: var(--text-main); cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 12px;
}
.lang-btn:hover { background-color: var(--bg-secondary); color: var(--accent-color); font-weight: 600; }

/* === Sembunyikan Elemen Bawaan Google Translate === */
html { margin-top: 0px !important; }
iframe.skiptranslate, .VIpgJd-ZVi9od-ORHb-OEVmcd, .goog-te-banner-frame { display: none !important; }
body { top: 0px !important; position: static !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }

/* === Custom Translation (Override Google) === */
html[lang="en"] .translate-masuk { font-size: 0; }
html[lang="en"] .translate-masuk::after { content: "Login"; font-size: 15px; }

html[lang="en"] .translate-mulai { font-size: 0; }
html[lang="en"] .translate-mulai::after { content: "Get Started"; font-size: 15px; }
html[lang="en"] .btn-large.translate-mulai::after { font-size: 18px; }


/* === MODAL AUTENTIKASI STYLES (LOGIN & SIGN UP) === */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    padding: 20px; overflow-y: auto;
    z-index: 1000001; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
    background: white; width: 100%; max-width: 420px; 
    border-radius: 12px; position: relative; transform: translateY(-20px);
    transition: transform 0.3s ease; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    height: 520px !important; max-height: 90vh !important; display: flex; flex-direction: column;
    overflow: hidden; padding: 0 !important;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.close-modal {
    position: absolute; top: 15px; right: 20px; font-size: 28px;
    background: none; border: none; color: var(--text-muted); cursor: pointer; z-index: 10;
}

/* Auth View Layouts */
.auth-view { display: none; flex: 1; flex-direction: column; width: 100%; overflow: hidden; min-height: 0; }
.auth-view.active-view { display: flex; animation: fadeIn 0.4s ease; }
#loginView.active-view { justify-content: flex-start; }
#signupView.active-view { justify-content: flex-start; }

.auth-scroll-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 25px 20px;
    min-height: 0;
}

/* Custom Scrollbar - More Visible */
.auth-scroll-content::-webkit-scrollbar { width: 6px; }
.auth-scroll-content::-webkit-scrollbar-track { background: rgba(0,0,0,0.03); border-radius: 10px; }
.auth-scroll-content::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 10px; }
[data-theme="dark"] .auth-scroll-content::-webkit-scrollbar-thumb { background: #475569; }
.auth-scroll-content::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

.modal-footer {
    padding: 15px 25px 25px;
    border-top: 1px solid var(--border-color);
    background: white;
    flex-shrink: 0;
}
[data-theme="dark"] .modal-footer { background: transparent; border-color: rgba(255,255,255,0.1); }


@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* Desain Teks & Input */
.modal-header { text-align: center; margin-bottom: 5px; width: 100%; padding: 25px 25px 10px; }
.modal-header h2 { font-size: 22px; font-weight: 600; margin-bottom: 2px; }
.modal-header p { font-size: 13px; color: var(--text-main); margin-bottom: 5px; }
.modal-header a { color: var(--accent-color); text-decoration: none; font-weight: 600;}
.modal-header a:hover { text-decoration: underline; }

.input-group input { 
    width: 100%; padding: 11px 14px; border: 1px solid var(--border-color);
    border-radius: 6px; font-family: var(--font-family); font-size: 14px;
    margin-bottom: 8px; outline: none;
}
.input-group input:focus { border-color: var(--accent-color); }
.forgot-password-link { display: inline-block; font-size: 13px; color: var(--accent-color); margin-bottom: 0; text-decoration: underline;}
.btn-full { width: 100%; border-radius: 6px; padding: 12px; font-size: 15px;}

/* Desain Tombol Sosial */
.modal-divider { text-align: center; margin: 15px 0; position: relative; }
.modal-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid var(--border-color); z-index: 1; }
.modal-divider span { background-color: #ffffff; padding: 0 15px; color: var(--text-muted); font-size: 13px; position: relative; z-index: 2; transition: background-color 0.3s ease; }

.social-login-vertical { display: flex; flex-direction: column; gap: 10px; }

.btn-social {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 10px; background: white; border: 1px solid var(--border-color);
    border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
}
.btn-social:hover { 
    background-color: var(--bg-secondary) !important;
    transform: translateY(-2px);
    box-shadow: var(--btn-hover-shadow);
    border-color: var(--accent-color) !important;
}

.terms-text { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 15px; line-height: 1.4;}
.terms-text a { color: var(--text-main); text-decoration: underline; }

/* Shake Effect Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.shake-effect {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Breadcrumbs Style */
.breadcrumb {
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-muted);
    opacity: 0.6;
}

.breadcrumb .active {
    color: var(--text-main);
    font-weight: 500;
}

/* Social Share Buttons */
/* --- Circular Social Share Buttons --- */
.share-container {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f1;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.share-btn-circular {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    color: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.share-btn-circular:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.share-btn-circular.facebook { background: #1877F2; }
.share-btn-circular.whatsapp { background: #25D366; }
.share-btn-circular.twitter { background: #000000; }
.share-btn-circular.linkedin { background: #0A66C2; }
.share-btn-circular.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.share-btn-circular.tiktok { background: #000000; }
.share-btn-circular.copy { background: #646970; }

.share-more-btn {
    background: #f0f0f1;
    color: #1d2327;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #dcdcde;
    transition: all 0.2s;
}

.share-more-btn:hover { background: #dcdcde; }

/* --- Engagement Bars --- */
.engagement-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f1;
    margin-bottom: 20px;
    color: #646970;
    font-size: 14px;
}

.engagement-bar.bottom {
    border-bottom: none;
    border-top: 1px solid #f0f0f1;
    margin-top: 30px;
    margin-bottom: 0;
    justify-content: space-between;
}

.engagement-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s;
}

.engagement-item:hover { color: #2271b1; }

.engagement-item.like.active { color: #d63638; }
.engagement-item.like.active i { animation: pulse 0.3s ease-in-out; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* --- Comment Section --- */
/* --- YouTube-Style Comment Section (Minimalist Refined) --- */
.comment-section {
    margin-top: 50px;
    padding: 0; /* Remove heavy padding for a more integrated feel */
    border: none; /* No more box boundary */
    transition: all 0.3s ease;
}

[data-theme="dark"] .comment-section {
    background: transparent;
}

.comment-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 30px;
    transition: color 0.3s;
}

[data-theme="dark"] .comment-section h3 {
    color: #ffffff;
}


/* Cleaned up redundant comment styles (Defined in YT-style section) */


[data-theme="dark"] .comment-form textarea:focus {
    border-bottom-color: #fff;
}


/* Cleaned up redundant comment styles (Already defined in YT-style section below) */

.reply-list {
    margin-left: 55px;
    margin-top: 15px;
    border-left: 2px solid #f0f0f1;
    padding-left: 15px;
}

[data-theme="dark"] .reply-list {
    border-color: #333;
}

/* Posisi Wadah Password */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Desain Ikon Mata */
.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--accent-color);
}

/* Pastikan input tidak tertutup ikon */
.password-container input {
    padding-right: 45px !important;
}

/* === Pengaturan Posisi Remember Me & Forgot Password === */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: -5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-color); /* Warna centang biru menyesuaikan tema */
}

/* Penyesuaian jarak margin karena sudah diatur oleh .form-actions */


/* /* === SIGNUP FORM STYLES (Single Page Scrollable) === */
.signup-scroll-container {
    max-height: 320px; /* Fixed height relative to 480px modal */
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 12px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    margin-bottom: 5px;
}
.signup-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.signup-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}
.signup-scroll-container::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
    transition: background 0.3s;
}
.signup-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

#usernameStatus.error {
    color: #ef4444;
}
#usernameStatus.success {
    color: #10b981;
}

.auth-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Custom Check for Files */
#signupAvatar {
    padding: 10px;
    font-size: 13px;
    border: 1px dashed var(--border-color);
    background: #fafafa;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 15px;
    margin-top: 5px;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
    margin: 12px 0 8px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.section-title:first-child {
    margin-top: 5px;
}

/* === Refined Laragon-style Badges are now handled globally via the .badge-premium, .column-title, and .page-hero-tag selector above === */

.input-group-inline {
    display: flex;
    gap: 10px;
}

.toggle-password-icon {
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
}

/* === DARK MODE STYLES === */
[data-theme="dark"] {
  --primary-color: #ffffff;
  --primary-hover: #cccccc;
  --bg-color: #121212;
  --bg-secondary: #1e1e1e;
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --border-color: #333333;
}

/* OpenClaw-style ambient background glow and subtle stars for Dark Mode */
[data-theme="dark"] body {
  position: relative;
  z-index: 0;
}

[data-theme="dark"] body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 40% 5%, rgba(147, 51, 234, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(69, 90, 233, 0.12) 0%, transparent 60%);
  background-attachment: fixed;
}

[data-theme="dark"] body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
}


/* Dark Mode Overrides (untuk background yang di-hardcode) */
[data-theme="dark"] .navbar,
[data-theme="dark"] .mega-menu,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .lang-menu,
[data-theme="dark"] .modal-box,
[data-theme="dark"] body.mobile-active .nav-links .dropdown-item.active .mega-menu,
[data-theme="dark"] body.mobile-active .nav-links {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] .btn-light,
[data-theme="dark"] .btn-social,
[data-theme="dark"] .user-dropdown-toggle,
[data-theme="dark"] body.mobile-active .nav-links a.dropdown-toggle,
[data-theme="dark"] body.mobile-active .nav-links > ul > li > a {
  background-color: var(--bg-color) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .modal-divider span {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] .mega-menu-footer,
[data-theme="dark"] .skeleton-card,
[data-theme="dark"] .feature-icon,
[data-theme="dark"] body.mobile-active .nav-actions {
  background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .hero-title {
  background: linear-gradient(to right, #ffffff, #aaaaaa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


[data-theme="dark"] .mega-menu-link strong {
  color: var(--text-main);
}

/* === Refactored Blog Badges === */
.blog-cat-badge {
  background: white;
  color: #2271b1;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  display: inline-block;
}

.single-cat-badge {
  background: #e5f5fa;
  color: #007cba;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
}

.single-post-tag {
  background: #f0f2f5;
  color: #50575e;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 13px;
  display: inline-block;
}

[data-theme="dark"] .blog-cat-badge,
[data-theme="dark"] .single-cat-badge,
[data-theme="dark"] .single-post-tag {
  background-color: var(--bg-secondary) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] input, 
[data-theme="dark"] textarea,
[data-theme="dark"] #signupAvatar {
  background-color: var(--bg-color);
  color: var(--text-main);
}

[data-theme="dark"] .user-dropdown-wrapper #userDropdownMenu {
  background-color: var(--bg-color) !important;
}

/* Dark mode overrides for refined badges */
[data-theme="dark"] .column-title::before, 
[data-theme="dark"] .badge-premium::before, 
[data-theme="dark"] .page-hero-tag::before {
  background-color: #0c111d !important;
  border-color: rgba(124, 131, 241, 0.6);
}

/* === Global Dark Mode Overrides (Termasuk untuk Inline Styles) === */

[data-theme="dark"] .hero {
  background: transparent !important;
  background-color: transparent !important;
}

[data-theme="dark"] .step-card,
[data-theme="dark"] .why-us-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .post-main-column,
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .post-content blockquote,
[data-theme="dark"] .comment-form textarea:focus {
  background-color: rgba(20, 24, 30, 0.45) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-main) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .step-card:hover,
[data-theme="dark"] .why-us-card:hover,
[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .blog-card:hover,
[data-theme="dark"] .pricing-card:hover {
  border-color: var(--hover-border) !important;
  box-shadow: 0 15px 35px rgba(69, 90, 233, 0.35);
  transform: translateY(-8px) !important;
}

/* === Sub-Services Custom CSS Class Overrides === */
[data-theme="dark"] .steps-section,
[data-theme="dark"] .features-section,
[data-theme="dark"] .content-section,
[data-theme="dark"] .features,
[data-theme="dark"] .ecosystem-section,
[data-theme="dark"] .home-blog-section,
[data-theme="dark"] .cta-section {
  background: transparent !important;
  background-color: transparent !important;
}

[data-theme="dark"] .news-ticker {
  background-color: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
  color: var(--text-muted) !important;
}

[data-theme="dark"] .steps-section h2,
[data-theme="dark"] .features-section h2,
[data-theme="dark"] .content-text h2,
[data-theme="dark"] .step-card h3,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .post-content h2,
[data-theme="dark"] .post-content h3,
[data-theme="dark"] .post-title {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .step-card p,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .content-text p,
[data-theme="dark"] .ticker-inner,
[data-theme="dark"] .post-content p,
[data-theme="dark"] .post-content li {
  color: var(--text-muted) !important;
}

/* Attribut selectors untuk mengatasi inline styles warna terang (terutama di layanan.php dan client.php) */
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background: #ffffff"],
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background-color: white"],
[data-theme="dark"] [style*="background-color: #ffffff"] {
  background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] [style*="background: #f8f9fa"],
[data-theme="dark"] [style*="background:#f8f9fa"],
[data-theme="dark"] [style*="background-color: #f8f9fa"],
[data-theme="dark"] [style*="background-color:#f8f9fa"],
[data-theme="dark"] [style*="background-color: #f4f5f9"],
[data-theme="dark"] [style*="background: #f4f5f9"],
[data-theme="dark"] [style*="background: #f0f4ff"] {
  background-color: transparent !important;
}

[data-theme="dark"] [style*="color: #0"],
[data-theme="dark"] [style*="color:#0"],
[data-theme="dark"] [style*="color: #1"],
[data-theme="dark"] [style*="color:#1"],
[data-theme="dark"] [style*="color: #2"],
[data-theme="dark"] [style*="color:#2"],
[data-theme="dark"] [style*="color: #3"],
[data-theme="dark"] [style*="color:#3"] {
  color: var(--text-main) !important;
}

[data-theme="dark"] [style*="color: #4"],
[data-theme="dark"] [style*="color:#4"],
[data-theme="dark"] [style*="color: #5"],
[data-theme="dark"] [style*="color:#5"],
[data-theme="dark"] [style*="color: #6"],
[data-theme="dark"] [style*="color:#6"],
[data-theme="dark"] [style*="color: #7"],
[data-theme="dark"] [style*="color:#7"],
[data-theme="dark"] [style*="color: #8"],
[data-theme="dark"] [style*="color:#8"] {
  color: var(--text-muted) !important;
}

/* Ensure missing light backgrounds are caught */
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background-color: #fff"],
[data-theme="dark"] [style*="background-color:#fff"],
[data-theme="dark"] [style*="background-color: #f0f0f1"],
[data-theme="dark"] [style*="background-color:#f0f0f1"],
[data-theme="dark"] [style*="background: #f6f7f7"],
[data-theme="dark"] [style*="background:#f6f7f7"] {
  background-color: rgba(20, 24, 30, 0.45) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] [style*="border: 1px solid #ddd"],
[data-theme="dark"] [style*="border-bottom: 1px solid #eee"],
[data-theme="dark"] [style*="border-top: 1px solid #eee"],
[data-theme="dark"] [style*="border: 1px solid #e2e8f0"],
[data-theme="dark"] [style*="border: 3px solid #e2e8f0"] {
  border-color: var(--border-color) !important;
}

/* User Hoverable Dropdown Menu */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 12px 4px 4px;
  border-radius: 30px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  color: var(--text-main);
  user-select: none;
}

.nav-dropdown-wrapper:hover .nav-dropdown-toggle {
  background: var(--bg-secondary);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  min-width: 200px;
  padding: 8px 0;
  z-index: 100003;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  text-align: left;
}

/* Hover over wrapper shows the menu */
.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  padding: 10px 20px;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  transition: 0.2s;
}

.nav-dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--accent-color);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 5px 0;
}

.nav-dropdown-header {
  padding: 10px 20px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-text-danger {
  color: #ef4444 !important;
}

.nav-text-danger:hover {
  background: rgba(239, 68, 68, 0.05) !important;
}

/* User Row Hover Actions */
.user-row .action-links {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.user-row:hover .action-links {
    visibility: visible;
    opacity: 1;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: auto;
    animation: toast-in 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.toast.hiding {
    animation: toast-out 0.4s ease forwards;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
}

.toast-success { border-left-color: #10b981; }
.toast-error { border-left-color: #ef4444; }
.toast-warning { border-left-color: #f59e0b; }
.toast-info { border-left-color: #3b82f6; }

[data-theme="dark"] .toast {
    background: #1e1e1e;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-color: var(--border-color);
}
[data-theme="dark"] .toast.toast-success { border-left-color: #10b981; }
[data-theme="dark"] .toast.toast-error { border-left-color: #ef4444; }
[data-theme="dark"] .toast.toast-warning { border-left-color: #f59e0b; }
[data-theme="dark"] .toast.toast-info { border-left-color: #3b82f6; }

@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; pointer-events: auto; }
}

@keyframes toast-out {
    from { transform: translateX(0); opacity: 1; pointer-events: auto; }
    to { transform: translateX(100%); opacity: 0; }
}

@media (max-width: 600px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
    }
    .toast {
        min-width: 0;
        width: 100%;
    }
}

/* Comment Highlight Animation */
@keyframes highlight-flash {
    0% { background-color: rgba(69, 90, 233, 0.4); }
    100% { background-color: transparent; }
}
.comment-item.highlight-flash {
    animation: highlight-flash 3s ease-out forwards;
    border-radius: 8px;
    scroll-margin-top: 100px;
}

/* --- HEADER NOTIFICATION BADGE --- */

.inbox-badge { background: #ef4444; color: #ffffff; font-size: 11px; font-weight: 700; font-family: Arial, sans-serif; display: flex; align-items: center; justify-content: center; text-align: center; height: 18px; width: 18px; min-width: 18px; border-radius: 50%; box-sizing: border-box; line-height: 18px; padding: 0; }
.inbox-badge.count-main { position: absolute; top: -5px; right: -5px; border: 2px solid var(--bg-color); box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 10; line-height: 1; padding-top: 1px; }


/* Techtrendzee Studio Link Styles */
.nav-link-studio { font-size: 15px; font-weight: 600; color: var(--text-main); transition: var(--transition); }
.nav-link-studio:hover, .nav-link-studio.active { color: var(--accent-color); font-weight: 800; }


/* Global Nav Active Style */
.nav-links a.active { color: var(--accent-color) !important; font-weight: 600; }




.dropdown-toggle.active { color: var(--accent-color) !important; }




/* ==========================================================================
   HOMEPAGE ENHANCEMENTS (Ecosystem & Home Blog)
   ========================================================================== */

.container-narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Ecosystem Summary Section */
.ecosystem-section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.ecosystem-column {
  background: var(--bg-color);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.ecosystem-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
  border-color: var(--accent-color);
}

.eco-menu-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.eco-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eco-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-muted);
  transition: var(--transition);
}

.eco-list li a i {
  color: var(--accent-color);
  font-size: 14px;
}

.eco-list li a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

/* Home Blog Section */
.home-blog-section {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.home-blog-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
}

[data-theme="dark"] .home-blog-card {
  background-color: rgba(20, 24, 30, 0.45) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.08) !important;
}


.home-blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
  border-color: var(--hover-border);
}

.hb-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 20px;
  display: flex;
  align-items: flex-end;
}

.hb-cat-badge {
  background-color: rgba(255,255,255,0.9);
  color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hb-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.hb-date {
  font-size: 13px;
  color: var(--text-muted);
}


.home-blog-card h3 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--text-main);
}



.home-blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



.hb-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .hb-card-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.hb-card-stats {
  display: flex;
  gap: 12px;
  margin-right: auto;
  margin-left: 15px;
}

.hb-card-stats span {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.hb-card-stats span i {
  color: var(--text-muted);
}







.hb-readmore {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hb-readmore::after {
  content: '\2192';
  transition: transform 0.3s;
}

.home-blog-card:hover .hb-readmore::after {
  transform: translateX(5px);
}

/* Button Outline Hover Styles */
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}


.btn-outline:hover {
  background: var(--accent-color);
  color: white !important;
  border-color: var(--accent-color) !important;
  transform: translateY(-2px);
  box-shadow: var(--btn-hover-shadow);
}


/* Responsive for new sections */
@media (max-width: 900px) {
  .ecosystem-grid, .home-blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .ecosystem-grid, .home-blog-grid {
    grid-template-columns: 1fr;
  }
  .section-heading h2 {
    font-size: 28px;
  }
}

/* === Cookie Consent Banner === */
.cookie-banner {
    position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%) translateY(100px);
    width: 90%; max-width: 600px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px);
    border-radius: 16px; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1); z-index: 10000; opacity: 0; pointer-events: none; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.cookie-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-text h4 { font-size: 16px; margin-bottom: 4px; color: #1e293b; font-weight: 700; }
.cookie-text p { font-size: 13px; color: #64748b; line-height: 1.4; margin: 0; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-sm { padding: 8px 16px; font-size: 12px; }


/* Dark Mode Overrides */
[data-theme="dark"] .cookie-banner { background: rgba(26, 32, 44, 0.9); border-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .cookie-text h4 { color: #f8fafc; }
[data-theme="dark"] .cookie-text p { color: #94a3b8; }


@media (max-width: 600px) {
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-actions { width: 100%; justify-content: center; }
}

/* === SCROLL ANIMATIONS === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* === MOBILE FIXES === */
@media (max-width: 768px) {
    /* Pastikan tombol aksi bawah selalu di atas menutupi segalanya dan bisa diklik */
    body.mobile-active .nav-actions,
    body.mobile-active #authActions {
        z-index: 9999 !important;
        pointer-events: auto !important;
    }
    
    body.mobile-active #authActions {
        width: 100%;
        justify-content: center;
    }

    /* Efek hover/active pada tulisan menu */
    body.mobile-active .nav-links > ul > li > a:active,
    body.mobile-active .nav-links a.dropdown-toggle:active,
    body.mobile-active .nav-links > ul > li > a:focus,
    body.mobile-active .nav-links a.dropdown-toggle:focus {
        background-color: var(--bg-secondary) !important;
        color: var(--accent-color) !important;
    }

    [data-theme="dark"] body.mobile-active .nav-links > ul > li > a:active,
    [data-theme="dark"] body.mobile-active .nav-links a.dropdown-toggle:active {
        background-color: rgba(255, 255, 255, 0.05) !important;
    }
}

/* SINGLE POST EXTRACTED STYLES */
/* Basic styling for post content elements common in WYSIWYG */
.post-content h2 { font-size: 28px; margin: 30px 0 15px; color: var(--text-main); }
.post-content h3 { font-size: 22px; margin: 25px 0 15px; color: #2c3338; }
.post-content p { margin-bottom: 20px; }
.post-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 20px 0; }
.post-content ul, .post-content ol { margin-bottom: 20px; padding-left: 20px; }
.post-content blockquote { border-left: 4px solid #2271b1; padding-left: 15px; color: #50575e; font-style: italic; margin: 20px 0; background: #f6f7f7; padding: 15px; border-radius: 0 4px 4px 0;}
.post-content a { color: #2271b1; text-decoration: none; }
.post-content a:hover { text-decoration: underline; }

/* Alignment styles */
.post-content .alignleft { float: left; margin: 5px 20px 20px 0; }
.post-content .alignright { float: right; margin: 5px 0 20px 20px; }
.post-content .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }

/* Caption styles */
.post-content figure { margin: 20px 0; text-align: center; display: inline-block; max-width: 100%; }
.post-content figure.aligncenter { display: block; }
.post-content figcaption { font-size: 14px; color: #646970; margin-top: 8px; font-style: italic; line-height: 1.4; }

/* Responsive Video Embeds */
.post-content iframe { max-width: 100%; border-radius: 8px; margin: 20px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
@media (max-width: 768px) {
    .post-content iframe { height: 250px; }
}

/* YouTube Style Comments (Dark-first design) */
#comments {
    border-top: 1px solid #3f3f3f;
    padding-top: 30px;
}

#commentCountHeader {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #f1f1f1;
}

.comment-item {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    width: 100%;
}

.comment-avatar-circle, .comment-user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex-shrink: 0; /* Prevent squishing */
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.comment-avatar-circle img, .comment-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    min-width: 0;
    display: block; /* Removed flex column, let block handle it */
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.comment-form textarea {
    width: 100%;
    min-height: 48px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #3f3f3f;
    color: #f1f1f1;
    font-size: 14px;
    padding: 10px 0;
    margin-bottom: 8px;
    outline: none;
    resize: none;
    overflow: hidden;
    line-height: 1.5;
    transition: border-bottom-color 0.2s;
}

[data-theme="light"] .comment-form textarea {
    color: #0f0f0f;
    border-bottom-color: #e5e5e5;
}

.comment-form textarea:focus {
    border-bottom-color: #f1f1f1;
}

[data-theme="light"] .comment-form textarea:focus {
    border-bottom-color: #0f0f0f;
}

.comment-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #f1f1f1;
}

.comment-date {
    font-size: 12px;
    color: #aaaaaa;
}

.comment-text-content {
    font-size: 14px;
    line-height: 20px;
    color: #f1f1f1;
    margin: 4px 0;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 8px; /* Standard YT gap */
    margin-top: 4px;
}

.comment-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #aaaaaa;
    cursor: pointer;
    padding: 6px;
    border-radius: 18px;
    transition: background 0.2s, color 0.1s;
    font-size: 12px;
}

.comment-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f1f1;
}

.comment-action-btn svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
}

.comment-action-btn span.count {
    min-width: 12px; /* Prevent jitter when counting */
}

.comment-action-btn.active.like {
    color: #f1f1f1;
}

.reply-mention {
    color: #3ea6ff;
    font-weight: 600;
    margin-right: 4px;
}

.comment-action-btn.reply-btn {
    font-weight: 600;
    padding: 8px 12px;
    text-transform: none;
    font-size: 12px;
}

/* Threaded Replies (Clean Indented Style) */
.reply-thread-list {
    margin-top: 12px;
    padding-left: 40px; 
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Removed connectors for a cleaner Look */
.reply-item {
    margin-bottom: 8px;
    margin-top: 8px;
    width: 100%;
    position: relative;
}

.sub-reply-list {
    padding-left: 20px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.is-sub-reply {
    margin-top: 2px;
    margin-bottom: 2px;
    position: relative;
}

.reply-item .comment-avatar-circle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex-shrink: 0;
    font-size: 10px;
}

/* Reply Toggle Button */
.reply-toggle-yt {
    background: transparent;
    border: none;
    color: #3ea6ff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 16px;
    margin-top: 4px;
    margin-bottom: 8px;
    transition: background 0.2s;
    width: auto;
    position: relative;
    z-index: 1;
}


.reply-toggle-yt:hover {
    background: rgba(62, 166, 255, 0.2);
}

.reply-toggle-yt i {
    font-size: 12px;
}

/* Forms Small YT Style */
.btn-submit-small {
    background: #3ea6ff;
    color: #0f0f0f;
    border: none;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel-small {
    background: none;
    border: none;
    color: #f1f1f1;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel-small:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .comment-author-name,
[data-theme="light"] .comment-text-content,
[data-theme="light"] #commentCountHeader {
    color: #0f0f0f;
}

[data-theme="light"] .comment-date,
[data-theme="light"] .comment-action-btn {
    color: #606060;
}

/* Light mode overrides removed as borders are gone */

[data-theme="light"] .comment-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}
/* Layout Consistency with Navbar */
.post-container {
    width: 100%;
    box-sizing: border-box;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
}

.post-header-top {
    width: 100%;
}

.post-layout-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.post-main-column {
    flex: 1;
    min-width: 0;
    max-width: 840px; /* Balance for better readability */
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.post-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

/* Dark Mode Overrides for Main Column */
[data-theme="dark"] .post-main-column {
    background: transparent;
    border: 1px solid #333;
    box-shadow: none;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

[data-theme="dark"] .sidebar-widget {
    background: transparent;
    border: 1px solid #333;
    box-shadow: none;
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2271b1;
    color: #1e1e1e;
    position: relative;
}

[data-theme="dark"] .widget-title {
    color: #f1f1f1;
}

/* Search Widget */
.search-input-group {
    display: flex;
    background: #f0f0f1;
    padding: 5px;
    border-radius: 25px;
}

[data-theme="dark"] .search-input-group {
    background: #1a1a1a;
    border: 1px solid #333;
}

.search-input-group input {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    color: inherit;
}

.search-input-group button {
    background: #2271b1;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

/* Sidebar Post Items */
.sidebar-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
}

.sidebar-post-item:last-child {
    margin-bottom: 0;
}

.sidebar-post-img {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f1;
}

.sidebar-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-img .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.sidebar-post-info h4 {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.sidebar-post-item:hover h4 {
    color: #2271b1;
}

.sidebar-post-info span {
    font-size: 11px;
    color: #646970;
}

/* Category List */
.category-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    text-decoration: none;
    color: #3c434a;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f1;
    transition: color 0.2s;
}

[data-theme="dark"] .category-item {
    color: #aaa;
    border-bottom-color: #333;
}

.category-item:hover {
    color: #2271b1;
}

.category-item .count {
    background: #f0f0f1;
    color: #646970;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

[data-theme="dark"] .category-item .count {
    background: #333;
    color: #aaa;
}

/* Responsive Stacking */
@media (max-width: 1024px) {
    .post-layout-wrapper {
        flex-direction: column;
    }
    
    .post-main-column {
        max-width: 100%;
        width: 100%;
    }
    
    .post-sidebar {
        width: 100%;
        position: static;
    }
}
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(69, 90, 233, 0.3);
}

/* GitHub-style Search Redesign */
.github-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0 20px;
    height: 32px;
    border-radius: 6px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
    flex: none;
}

.github-search-trigger:hover {
    background: var(--bg-color);
    border-color: var(--accent-color);
}

.search-label-mini {
    font-size: 12px;
    font-style: italic;
    opacity: 0.6;
    font-weight: 250;
    text-align: left;
}


.search-overlay-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1100000;
    display: flex;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.search-overlay-full.active {
    opacity: 1;
    visibility: visible;
}

.search-command-palette {
    width: 100%;
    max-width: 650px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.2s ease;
    border: 1px solid var(--border-color);
}

.search-overlay-full.active .search-command-palette {
    transform: translateY(0);
}

.palette-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
}

.palette-header i {
    color: var(--text-muted);
    font-size: 18px;
}

.palette-header input {
    flex: 1;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-main);
    outline: none;
    font-family: var(--font-family);
}

.btn-palette-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.palette-body {
    max-height: 450px;
    overflow-y: auto;
}

.palette-section {
    padding: 10px 0;
}

.section-label {
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.palette-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
    margin: 4px 8px;
    border-radius: 8px;
}

.palette-item:hover, .palette-item.selected {
    background: var(--accent-color);
    color: #fff !important;
}


.palette-item i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

.palette-item span {
    flex: 1;
    font-size: 14px;
}

.palette-item .jump-to {
    font-size: 11px;
    opacity: 0.6;
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.palette-item:hover .jump-to {
    background: rgba(255,255,255,0.2);
}

.palette-footer {
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    font-size: 11px;
    color: var(--text-muted);
}

.palette-footer kbd {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 1px 4px;
    border-radius: 3px;
    margin-right: 4px;
}

[data-theme="dark"] .search-command-palette {
    background: #161b22;
}

[data-theme="dark"] .palette-header input {
    color: #c9d1d9;
}

@media (max-width: 768px) {
    .github-search-trigger {
        width: 34px;
        height: 34px;
    }
    .search-command-palette {
        max-width: 95%;
    }
}

