/**
 * Nowa WordPress Theme - Core Design System Stylesheet
 * Architecture based on Erikse Design System Blueprint
 *
 * @author  Aziz Akça
 * @version 1.0.0
 */

/* -------------------------------------------------------------
 * 1. CSS Custom Properties / Design Tokens
 * ------------------------------------------------------------- */
:root {
  /* Brand & Accent Colors */
  --ei-primary: #e93d3d;
  --ei-primary-hover: #f42e2e;
  --ei-primary-light: #fdecec;

  /* Text & Typography Colors */
  --ei-black: #2a3141;
  --ei-desc: #505c75;
  --ei-meta: #99a0ae;

  /* Surfaces & Backgrounds */
  --ei-bg: #fefefe;
  --ei-white: #ffffff;
  --ei-section: #f9f9f9;
  --ei-border: #ebedf0;

  /* Category Specific Accent Colors */
  --ei-cat-aplikasi: #7c3aed;
  --ei-cat-sosial: #ec4899;
  --ei-cat-website: #3b82f6;
  --ei-cat-internet: #06b6d4;
  --ei-cat-info: #f59e0b;
  --ei-cat-default: #e93d3d;

  /* Sizing & Border Radii */
  --ei-radius-sm: 12px;
  --ei-radius-md: 16px;
  --ei-radius-lg: 20px;
  --ei-radius-xl: 25px;
  --ei-radius-full: 9999px;

  /* Shadows */
  --ei-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --ei-box-shadow: 0 3px 20px rgba(132, 132, 133, 0.15);
  --ei-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* Navbar Dimensions & Glass */
  --ei-navbar-height: 76px;
  --ei-navbar-height-scrolled: 64px;
  --ei-navbar-bg-scrolled: rgba(254, 254, 254, 0.88);
  --ei-bottom-tab-height: 64px;

  /* Animation Timings */
  --ei-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ei-transition: 0.3s var(--ei-ease);
}

/* -------------------------------------------------------------
 * 2. Dark Mode Override Tokens
 * ------------------------------------------------------------- */
html[data-applied-mode="dark"],
[data-theme="dark"] {
  --ei-primary: #e93d3d;
  --ei-primary-hover: #f42e2e;
  --ei-primary-light: #293345;

  --ei-black: #ffffff;
  --ei-desc: #99a0ae;
  --ei-meta: #6c7585;

  --ei-bg: #151c28;
  --ei-white: #232a39;
  --ei-section: #1b2230;
  --ei-border: #293345;

  --ei-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --ei-box-shadow: 0 3px 20px rgba(0, 0, 0, 0.35);
  --ei-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.4);

  --ei-navbar-bg-scrolled: rgba(21, 28, 40, 0.88);
}

/* -------------------------------------------------------------
 * 3. Reset & Base Typography
 * ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--ei-font-sans, 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--ei-bg);
  color: var(--ei-desc);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--ei-transition), color var(--ei-transition);
}

/* Atmospheric Ambient Dual-Glow Background Layer (Erikse Spec Section 3) */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(50% 50% at 50% 50%, rgba(131, 255, 209, 0.15) 0%, rgba(255, 255, 255, 0) 100%), 
    radial-gradient(50% 50% at 50% 50%, rgba(255, 172, 131, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
  background-position: -40vw -300px, 40vw -300px;
  background-repeat: no-repeat;
  transition: background var(--ei-transition);
}

/* Dark Mode Ambient Glow */
html[data-applied-mode="dark"] body::before,
[data-theme="dark"] body::before {
  background: 
    radial-gradient(50% 50% at 50% 50%, rgba(55, 126, 100, 0.15) 0%, rgba(21, 28, 40, 0) 100%), 
    radial-gradient(50% 50% at 50% 50%, rgba(181, 99, 58, 0.15) 0%, rgba(21, 28, 40, 0) 100%);
  background-position: -40vw -300px, 40vw -300px;
}

body.has-bottom-nav {
  padding-bottom: calc(var(--ei-bottom-tab-height) + 24px + env(safe-area-inset-bottom));
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ei-black);
  font-weight: 700;
  line-height: 1.25;
  transition: color var(--ei-transition);
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link:focus {
  background-color: var(--ei-primary);
  border-radius: var(--ei-radius-md);
  color: #fff;
  clip: auto !important;
  clip-path: none;
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 20px;
  top: 20px;
  padding: 12px 24px;
  text-decoration: none;
  width: auto;
  z-index: 999999;
}

/* Container */
.nowa-container {
  max-width: var(--ei-container-width, 1320px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Theme Panel Global Overrides (Ambient Glow & Static Header) */
body.nowa-no-ambient-glow::before {
  display: none;
}

body.nowa-has-static-header .nowa-navbar-header {
  position: absolute;
}

/* -------------------------------------------------------------
 * 4. Reading Progress Bar
 * ------------------------------------------------------------- */
.nowa-reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ei-primary) 0%, #ff7b7b 100%);
  width: 0%;
  z-index: 10001;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* -------------------------------------------------------------
 * 5. Sticky Dynamic Top Navbar
 * Specification: Fixed & transparent at top, frosted glass on scroll.
 * ------------------------------------------------------------- */
.nowa-navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ei-navbar-height);
  z-index: 10000;
  background: transparent;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  transition: 
    background var(--ei-transition), 
    border-color var(--ei-transition), 
    box-shadow var(--ei-transition), 
    height var(--ei-transition);
}

/* Scrolled state triggered by JavaScript when scrollY > 20 */
.nowa-navbar-header.is-scrolled {
  height: var(--ei-navbar-height-scrolled);
  background: var(--ei-navbar-bg-scrolled);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--ei-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nowa-navbar-header.is-scrolled {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
}

.nowa-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Brand Logo */
.nowa-navbar-brand {
  display: flex;
  align-items: center;
}

.nowa-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ei-black);
  letter-spacing: -0.02em;
}

.nowa-brand-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ei-ease);
}
.nowa-brand-link:hover .nowa-brand-emblem {
  transform: rotate(-8deg) scale(1.06);
}

.nowa-brand-dot {
  color: var(--ei-primary);
}

/* Primary Navigation Menu */
.nowa-navbar-nav {
  display: none;
}

@media (min-width: 992px) {
  .nowa-navbar-nav {
    display: block;
  }
}

.nowa-menu-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nowa-nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ei-desc);
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nowa-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--ei-primary);
  border-radius: var(--ei-radius-full);
  transition: width 0.25s var(--ei-ease);
}

.nowa-nav-link:hover,
.menu-item.current-menu-item > .nowa-nav-link {
  color: var(--ei-primary);
}

.nowa-nav-link:hover::after,
.menu-item.current-menu-item > .nowa-nav-link::after {
  width: 100%;
}

/* Right Actions Group */
.nowa-navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nowa-action-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--ei-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ei-black);
  cursor: pointer;
  background: rgba(150, 150, 150, 0.08);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nowa-action-btn:hover {
  background: var(--ei-primary-light);
  color: var(--ei-primary);
  border-color: rgba(233, 61, 61, 0.2);
  transform: translateY(-2px);
}

/* Dark / Light Toggle Icons */
.nowa-icon-sun {
  display: none;
}
.nowa-icon-moon {
  display: block;
}

[data-theme="dark"] .nowa-icon-sun {
  display: block;
}
[data-theme="dark"] .nowa-icon-moon {
  display: none;
}

/* Pill CTA Button (Spec 6.A) */
.nowa-btn-pill-cta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--ei-radius-full);
  background: var(--ei-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(233, 61, 61, 0.28);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
  .nowa-btn-pill-cta {
    display: inline-flex;
  }
}

.nowa-btn-pill-cta:hover {
  background: var(--ei-primary-hover);
  box-shadow: 0 6px 20px rgba(233, 61, 61, 0.4);
  transform: translateY(-2px);
}

/* Hamburger Toggle for Mobile */
.nowa-hamburger-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

@media (min-width: 992px) {
  .nowa-hamburger-btn {
    display: none;
  }
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile Navigation Drawer */
.nowa-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 20000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s ease;
}

.nowa-mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.nowa-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nowa-mobile-drawer.is-open .nowa-drawer-backdrop {
  opacity: 1;
}

.nowa-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--ei-white);
  padding: 24px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.35s var(--ei-ease);
  display: flex;
  flex-direction: column;
}

.nowa-mobile-drawer.is-open .nowa-drawer-panel {
  transform: translateX(0);
}

.nowa-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.nowa-mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nowa-mobile-menu-list a {
  font-size: 17px;
  font-weight: 600;
  color: var(--ei-black);
  display: block;
  padding: 8px 0;
}

.nowa-mobile-menu-list a:hover {
  color: var(--ei-primary);
}

/* -------------------------------------------------------------
 * 6. Bottom Floating Tab Bar (Dock)
 * Requirement: "alt tab bar olsun"
 * ------------------------------------------------------------- */
.nowa-bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--ei-bottom-tab-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 9990;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--ei-border);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  transition: background var(--ei-transition), border-color var(--ei-transition);
}

[data-theme="dark"] .nowa-bottom-tab-bar {
  background: rgba(35, 42, 57, 0.92);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.35);
}

.nowa-tab-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 12px;
}

.nowa-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 14px;
  color: var(--ei-desc);
  font-size: 11px;
  font-weight: 600;
  position: relative;
  cursor: pointer;
  border-radius: var(--ei-radius-md);
  transition: color 0.2s ease, transform 0.2s var(--ei-ease);
}

.nowa-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ei-ease);
}

.nowa-tab-item:hover,
.nowa-tab-item.is-active {
  color: var(--ei-primary);
}

.nowa-tab-item:hover .nowa-tab-icon,
.nowa-tab-item.is-active .nowa-tab-icon {
  transform: translateY(-2px) scale(1.08);
}

.nowa-tab-indicator {
  position: absolute;
  bottom: 0px;
  width: 4px;
  height: 4px;
  background-color: var(--ei-primary);
  border-radius: var(--ei-radius-full);
}

/* Tab Bar Dark Toggle Icons */
.nowa-tab-icon-sun {
  display: none;
}
.nowa-tab-icon-moon {
  display: block;
}
[data-theme="dark"] .nowa-tab-icon-sun {
  display: block;
}
[data-theme="dark"] .nowa-tab-icon-moon {
  display: none;
}

/* Visibility Modes for Bottom Tab Bar */
body.bottom-nav--mobile_only .nowa-bottom-tab-bar {
  display: flex;
}
@media (min-width: 1024px) {
  body.bottom-nav--mobile_only .nowa-bottom-tab-bar {
    display: none;
  }
  body.bottom-nav--mobile_only {
    padding-bottom: 0;
  }
}

/* When set to 'always' in customizer, it displays as a floating glass dock on desktop */
@media (min-width: 1024px) {
  body.bottom-nav--always .nowa-bottom-tab-bar {
    left: 50%;
    right: auto;
    bottom: 24px;
    transform: translateX(-50%);
    width: auto;
    border-radius: var(--ei-radius-full);
    border: 1px solid var(--ei-border);
    padding: 8px 16px;
    height: auto;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  }
  body.bottom-nav--always .nowa-tab-bar-container {
    gap: 16px;
    padding: 0;
  }
}

/* -------------------------------------------------------------
 * 7. Live Spotlight Search Modal (Ctrl + K)
 * ------------------------------------------------------------- */
.nowa-search-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
}

.nowa-search-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.nowa-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nowa-search-dialog {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: var(--ei-white);
  border-radius: var(--ei-radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--ei-border);
  overflow: hidden;
  transform: translateY(-20px) scale(0.98);
  transition: transform 0.3s var(--ei-ease);
}

.nowa-search-modal.is-open .nowa-search-dialog {
  transform: translateY(0) scale(1);
}

.nowa-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ei-border);
}

.nowa-search-input-icon {
  color: var(--ei-primary);
  display: flex;
}

.nowa-search-field {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  color: var(--ei-black);
}

.nowa-search-field::placeholder {
  color: var(--ei-meta);
}

.nowa-search-clear {
  color: var(--ei-meta);
  cursor: pointer;
  display: none;
}
.nowa-search-clear.is-visible {
  display: flex;
}

.nowa-kbd {
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-family: monospace;
  color: var(--ei-meta);
}

.nowa-search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 16px 24px;
}

.nowa-search-empty-state {
  text-align: center;
  padding: 40px 0;
  color: var(--ei-meta);
}

.nowa-search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: var(--ei-radius-md);
  margin-bottom: 8px;
  background: var(--ei-section);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nowa-search-result-item:hover,
.nowa-search-result-item.is-selected {
  background: var(--ei-primary-light);
  border-color: rgba(233, 61, 61, 0.2);
  transform: translateX(4px);
}

.nowa-search-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--ei-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.nowa-search-item-info {
  flex: 1;
  min-width: 0;
}

.nowa-search-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ei-black);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nowa-search-item-meta {
  font-size: 12px;
  color: var(--ei-meta);
  display: flex;
  gap: 8px;
}

.nowa-search-footer {
  padding: 12px 24px;
  background: var(--ei-section);
  border-top: 1px solid var(--ei-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ei-meta);
}

.nowa-search-hints {
  display: flex;
  gap: 16px;
}

.nowa-search-hints kbd {
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  padding: 2px 5px;
  border-radius: 4px;
  margin-right: 4px;
}

/* -------------------------------------------------------------
 * 8. Impact Hero Section (Spec 4 & 5)
 * ------------------------------------------------------------- */
.nowa-hero-section {
  padding: 130px 0 40px;
  text-align: center;
}

.nowa-hero-card {
  max-width: 920px;
  margin: 0 auto;
}

.nowa-hero-eyebrow-wrapper {
  margin-bottom: 20px;
}

.nowa-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--ei-primary-light);
  color: var(--ei-primary);
  border-radius: var(--ei-radius-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nowa-eyebrow-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--ei-primary);
  border-radius: var(--ei-radius-full);
  animation: nowa-pulse 2s infinite ease-in-out;
}

@keyframes nowa-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(233, 61, 61, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(233, 61, 61, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(233, 61, 61, 0); }
}

.nowa-hero-title {
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ei-black);
  margin-bottom: 20px;
}

.nowa-hero-desc {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
  color: var(--ei-desc);
  max-width: 780px;
  margin: 0 auto 28px;
}

.nowa-hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.nowa-hero-tags-label {
  color: var(--ei-meta);
  font-weight: 600;
}

.nowa-hero-tag-link {
  color: var(--ei-desc);
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  padding: 5px 14px;
  border-radius: var(--ei-radius-full);
  font-weight: 500;
  transition: all 0.2s ease;
}

.nowa-hero-tag-link:hover {
  color: var(--ei-primary);
  border-color: var(--ei-primary);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * 9. Top Showcase 3-Card Grid (Spec 6.B: 25% - 50% - 25%)
 * ------------------------------------------------------------- */
.nowa-showcase-section {
  padding: 20px 0 60px;
}

.nowa-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .nowa-showcase-grid {
    grid-template-columns: 1.2fr 2.4fr 1.2fr;
  }
}

.nowa-showcase-card {
  position: relative;
  height: 320px;
  border-radius: var(--ei-radius-xl);
  overflow: hidden;
  box-shadow: var(--ei-shadow);
  transition: transform 0.4s var(--ei-ease), box-shadow 0.4s var(--ei-ease);
}

.nowa-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ei-shadow-hover);
}

.nowa-showcase-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.nowa-showcase-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.nowa-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ei-ease);
}

.nowa-showcase-card:hover .nowa-showcase-img {
  transform: scale(1.08); /* Spec: 8% Ken Burns hover zoom */
}

.nowa-showcase-placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a3141 0%, #151c28 100%);
}

.nowa-showcase-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

.nowa-showcase-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Frosted Glass Badge */
.nowa-glass-badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--ei-radius-full);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nowa-showcase-title {
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nowa-showcase-card.is-featured-center .nowa-showcase-title {
  font-size: 24px;
}

.nowa-showcase-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.nowa-showcase-dot {
  opacity: 0.5;
}

/* -------------------------------------------------------------
 * 10. Two-Column Portal Architecture (Spec 5: 70% Feed + 375px Sidebar)
 * ------------------------------------------------------------- */
.nowa-portal-section {
  padding: 30px 0 80px;
}

.nowa-portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .nowa-portal-grid {
    grid-template-columns: calc(100% - 423px) 375px; /* 375px + 48px gap */
  }

  .nowa-portal-grid.is-sidebar-left {
    grid-template-columns: 375px calc(100% - 423px);
  }

  .nowa-portal-grid.is-sidebar-left .nowa-sidebar-column {
    order: -1;
  }

  .nowa-portal-grid.is-no-sidebar {
    grid-template-columns: 1fr;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
  }
}

.nowa-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ei-border);
}

.nowa-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nowa-section-indicator {
  width: 4px;
  height: 22px;
  background-color: var(--ei-primary);
  border-radius: var(--ei-radius-full);
}

.nowa-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ei-black);
}

.nowa-feed-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--ei-meta);
  background: var(--ei-section);
  padding: 4px 12px;
  border-radius: var(--ei-radius-full);
}

/* -------------------------------------------------------------
 * 11. Horizontal Feed Card (Spec 6.C)
 * 240x160 Thumbnail + Category Pill + Clamped Excerpt + Meta
 * ------------------------------------------------------------- */
.nowa-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nowa-feed-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--ei-white);
  padding: 20px;
  border-radius: var(--ei-radius-xl);
  border: 1px solid var(--ei-border);
  box-shadow: var(--ei-shadow);
  transition: transform 0.3s var(--ei-ease), box-shadow 0.3s var(--ei-ease), border-color 0.3s ease;
}

@media (min-width: 640px) {
  .nowa-feed-card {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

.nowa-feed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ei-shadow-hover);
  border-color: rgba(233, 61, 61, 0.2);
}

.nowa-feed-thumb-wrapper {
  width: 100%;
  height: 200px;
  border-radius: var(--ei-radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ei-section);
}

@media (min-width: 640px) {
  .nowa-feed-thumb-wrapper {
    width: 240px;
    height: 160px; /* 3:2 ratio */
  }
}

.nowa-feed-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.nowa-feed-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ei-ease);
}

.nowa-feed-card:hover .nowa-feed-thumb-img {
  transform: scale(1.08); /* 8% zoom */
}

.nowa-feed-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ei-meta);
  background: var(--ei-section);
}

.nowa-feed-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Category Pill Badges (Semantic Mappings from Erikse Spec) */
.nowa-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--ei-radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--ei-primary-light);
  color: var(--ei-primary);
  transition: all 0.2s ease;
}

.nowa-pill--aplikasi {
  background: rgba(124, 58, 237, 0.12);
  color: var(--ei-cat-aplikasi);
}
.nowa-pill--sosial {
  background: rgba(236, 72, 153, 0.12);
  color: var(--ei-cat-sosial);
}
.nowa-pill--website {
  background: rgba(59, 130, 246, 0.12);
  color: var(--ei-cat-website);
}
.nowa-pill--internet {
  background: rgba(6, 182, 212, 0.12);
  color: var(--ei-cat-internet);
}
.nowa-pill--info {
  background: rgba(245, 158, 11, 0.12);
  color: var(--ei-cat-info);
}

.nowa-pill:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.nowa-feed-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nowa-feed-title a {
  color: var(--ei-black);
  transition: color 0.2s ease;
}

.nowa-feed-card:hover .nowa-feed-title a {
  color: var(--ei-primary);
}

.nowa-feed-excerpt {
  font-size: 14px;
  color: var(--ei-desc);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nowa-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ei-meta);
  margin-top: 4px;
}

.nowa-meta-dot {
  opacity: 0.5;
}

.nowa-meta-author-link:hover {
  color: var(--ei-primary);
}

/* -------------------------------------------------------------
 * 12. Sidebar Architecture & Custom Widgets (Spec 6.D)
 * ------------------------------------------------------------- */
.nowa-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.nowa-widget {
  background: var(--ei-white);
  padding: 28px;
  border-radius: var(--ei-radius-xl);
  border: 1px solid var(--ei-border);
  box-shadow: var(--ei-shadow);
}

.nowa-widget-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
}

.nowa-widget-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ei-border);
  margin-left: 16px;
}

/* 1. Pill Categories with hover sliding counters */
.nowa-category-pill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nowa-cat-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--ei-section);
  border-radius: var(--ei-radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--ei-black);
  transition: all 0.25s var(--ei-ease);
}

.nowa-cat-count {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--ei-radius-full);
  background: var(--ei-white);
  color: var(--ei-meta);
  transition: all 0.25s var(--ei-ease);
}

.nowa-cat-pill-row:hover {
  background: var(--ei-primary-light);
  color: var(--ei-primary);
  transform: translateX(4px); /* Spec: slide 4px right on hover */
}

.nowa-cat-pill-row:hover .nowa-cat-count {
  background: var(--ei-primary);
  color: #ffffff;
}

/* 2. Most Popular Posts Widget (72x72 Thumb + Red Tag + Clamped Title) */
.nowa-popular-posts-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nowa-popular-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nowa-popular-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px; /* Spec: 14px radius */
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ei-section);
}

.nowa-popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ei-ease);
}

.nowa-popular-item:hover .nowa-popular-thumb img {
  transform: scale(1.08);
}

.nowa-popular-content {
  flex: 1;
  min-width: 0;
}

.nowa-popular-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ei-primary); /* Spec: red category tag */
  display: block;
  margin-bottom: 2px;
}

.nowa-popular-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.nowa-popular-title a {
  color: var(--ei-black);
  transition: color 0.2s ease;
}

.nowa-popular-item:hover .nowa-popular-title a {
  color: var(--ei-primary);
}

.nowa-popular-date {
  font-size: 12px;
  color: var(--ei-meta);
}

/* 3. Stay Connected Social Box */
.nowa-social-connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.nowa-social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--ei-radius-lg);
  background: var(--ei-section);
  color: var(--ei-black);
  border: 1px solid var(--ei-border);
  transition: all 0.25s var(--ei-ease);
}

.nowa-social-label {
  font-size: 11px;
  font-weight: 700;
}

.nowa-social-btn:hover {
  background: var(--ei-primary);
  color: #ffffff;
  border-color: var(--ei-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(233, 61, 61, 0.3);
}

/* -------------------------------------------------------------
 * 13. Single Article Layout & Editorial Typography
 * ------------------------------------------------------------- */
.nowa-single-main {
  padding-bottom: 80px;
}

.nowa-breadcrumbs {
  padding: 100px 0 20px;
}

.nowa-breadcrumbs-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ei-meta);
}

.nowa-breadcrumb-separator {
  opacity: 0.4;
}

.nowa-breadcrumb-item.current {
  color: var(--ei-desc);
  font-weight: 600;
}

.nowa-single-article {
  background: var(--ei-white);
  padding: 36px;
  border-radius: var(--ei-radius-xl);
  border: 1px solid var(--ei-border);
  box-shadow: var(--ei-shadow);
}

.nowa-article-cat-wrap {
  margin-bottom: 16px;
}

.nowa-article-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.nowa-article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ei-border);
  margin-bottom: 32px;
}

.nowa-author-meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nowa-author-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.nowa-author-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: var(--ei-radius-full);
  border: 2px solid var(--ei-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nowa-verified-badge {
  position: absolute;
  bottom: -2px;
  right: -3px;
  width: 17px;
  height: 17px;
  background: var(--ei-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.nowa-author-head-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.nowa-author-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ei-black);
}

.nowa-author-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nowa-author-name a:hover {
  color: var(--ei-primary);
}

.nowa-author-role {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ei-desc);
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  padding: 2px 9px;
  border-radius: var(--ei-radius-full);
  letter-spacing: -0.01em;
}

/* Micro Meta Pills (Date, Updated, Read Time, Views) */
.nowa-meta-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nowa-pill-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ei-desc);
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  padding: 3px 9px;
  border-radius: var(--ei-radius-full);
  line-height: 1.25;
  transition: all var(--ei-transition);
}

.nowa-pill-meta svg {
  color: var(--ei-meta);
  flex-shrink: 0;
}

.nowa-pill-meta.is-updated {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.nowa-pill-meta.is-updated svg {
  color: #059669;
}

html[data-applied-mode="dark"] .nowa-pill-meta.is-updated,
[data-theme="dark"] .nowa-pill-meta.is-updated {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.25);
}

html[data-applied-mode="dark"] .nowa-pill-meta.is-updated svg,
[data-theme="dark"] .nowa-pill-meta.is-updated svg {
  color: #34d399;
}

.nowa-pill-meta.is-reading-time svg {
  color: #f59e0b;
}

.nowa-pill-meta.is-views svg {
  color: #3b82f6;
}

/* Bookmark Button in Header */
.nowa-bookmark-btn {
  transition: all 0.2s ease;
}

.nowa-bookmark-btn.is-bookmarked {
  background: var(--ei-primary);
  color: #ffffff;
  border-color: var(--ei-primary);
  box-shadow: 0 2px 8px rgba(233, 61, 61, 0.35);
}

.nowa-bookmark-btn.is-bookmarked svg {
  fill: currentColor;
}

/* Mini Feedback Toast */
.nowa-mini-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: var(--ei-black);
  color: var(--ei-bg);
  padding: 10px 22px;
  border-radius: var(--ei-radius-full);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nowa-mini-toast.is-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.nowa-share-quick {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nowa-share-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--ei-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ei-section);
  color: var(--ei-desc);
  cursor: pointer;
  border: 1px solid var(--ei-border);
  transition: all 0.2s ease;
}

.nowa-share-btn:hover {
  background: var(--ei-primary);
  color: #ffffff;
  border-color: var(--ei-primary);
  transform: translateY(-2px);
}

.nowa-article-hero-media {
  margin-bottom: 36px;
  border-radius: var(--ei-radius-lg);
  overflow: hidden;
}

.nowa-article-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--ei-radius-lg);
}

.nowa-hero-caption {
  font-size: 13px;
  color: var(--ei-meta);
  text-align: center;
  margin-top: 10px;
}

/* Editorial Body Typography */
.nowa-article-body {
  font-size: var(--ei-article-font-size, 17px);
  line-height: 1.8;
  color: var(--ei-black);
}

.nowa-article-body p {
  margin-bottom: 24px;
}

.nowa-article-body h2 {
  font-size: 28px;
  margin: 40px 0 20px;
}

.nowa-article-body h3 {
  font-size: 22px;
  margin: 32px 0 16px;
}

.nowa-article-body ul,
.nowa-article-body ol {
  margin: 0 0 24px 28px;
}

.nowa-article-body li {
  margin-bottom: 10px;
}

.nowa-article-body blockquote {
  border-left: 4px solid var(--ei-primary);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--ei-section);
  border-radius: 0 var(--ei-radius-md) var(--ei-radius-md) 0;
  font-style: italic;
  font-size: 19px;
  color: var(--ei-black);
}

.nowa-article-body pre,
.nowa-article-body code {
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
}

.nowa-article-body pre {
  background: #1e2430;
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--ei-radius-md);
  overflow-x: auto;
  margin: 30px 0;
  font-size: 14px;
}

.nowa-article-body p code {
  background: var(--ei-section);
  color: var(--ei-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

/* Article Tags */
.nowa-article-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--ei-border);
}

.nowa-article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.nowa-tags-label {
  font-weight: 700;
  color: var(--ei-black);
  font-size: 14px;
}

.nowa-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nowa-tag-pill {
  padding: 6px 14px;
  background: var(--ei-section);
  border-radius: var(--ei-radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--ei-desc);
  transition: all 0.2s ease;
}

.nowa-tag-pill:hover {
  background: var(--ei-primary-light);
  color: var(--ei-primary);
}

/* Extended Share Banner */
.nowa-share-banner {
  background: var(--ei-section);
  padding: 24px;
  border-radius: var(--ei-radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.nowa-share-heading {
  font-weight: 700;
  color: var(--ei-black);
  font-size: 15px;
}

.nowa-share-buttons {
  display: flex;
  gap: 12px;
}

.nowa-share-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--ei-radius-full);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.nowa-share-card:hover {
  transform: translateY(-2px);
}

.sc-tw { background: #000000; }
.sc-in { background: #0a66c2; }
.sc-wa { background: #25d366; }

/* Quick Share - Google Follow Button in Header Meta */
.nowa-share-btn.share-google {
  background: var(--ei-section);
  border-color: var(--ei-border);
}

.nowa-share-btn.share-google:hover {
  background: var(--ei-white);
  border-color: #1a73e8;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
  transform: translateY(-2px);
}

/* Google Preferred Source CTA Card (Google Keşfet & Arama Tercihi) */
.nowa-google-source-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-lg);
  padding: 22px 24px;
  margin: 36px 0 32px 0;
  transition: all var(--ei-transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--ei-shadow);
}

.nowa-google-source-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #4285F4 0%, #34A853 35%, #FBBC05 70%, #EA4335 100%);
}

.nowa-google-source-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--ei-radius-md);
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nowa-google-source-content {
  flex-grow: 1;
}

.nowa-google-source-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a73e8;
  display: block;
  margin-bottom: 4px;
}

.nowa-google-source-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ei-black);
  margin-bottom: 4px;
  line-height: 1.3;
}

.nowa-google-source-desc {
  font-size: 13.5px;
  color: var(--ei-desc);
  line-height: 1.45;
  margin: 0;
}

.nowa-google-source-action {
  flex-shrink: 0;
}

.nowa-google-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a73e8;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--ei-radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
  white-space: nowrap;
}

.nowa-google-source-btn:hover {
  background: #1557b0;
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.35);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.nowa-google-source-btn svg {
  transition: transform 0.2s ease;
}

.nowa-google-source-btn:hover svg {
  transform: translateX(3px);
}

/* Author Box */
.nowa-author-box {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--ei-section);
  border-radius: var(--ei-radius-lg);
  margin-bottom: 40px;
}

.nowa-author-large-avatar {
  border-radius: var(--ei-radius-full);
}

.nowa-author-box-role {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ei-primary);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.nowa-author-box-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.nowa-author-box-bio {
  font-size: 14px;
  color: var(--ei-desc);
  margin-bottom: 12px;
}

.nowa-author-all-posts {
  font-size: 13px;
  font-weight: 700;
  color: var(--ei-primary);
}

/* Post Navigation (Prev / Next) */
.nowa-post-navigation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

@media (min-width: 600px) {
  .nowa-post-navigation {
    grid-template-columns: 1fr 1fr;
  }
}

.nowa-nav-post-card {
  padding: 20px;
  background: var(--ei-section);
  border-radius: var(--ei-radius-lg);
  border: 1px solid var(--ei-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.nowa-nav-post-card:hover {
  border-color: var(--ei-primary);
  transform: translateY(-2px);
}

.nowa-nav-post-dir {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ei-meta);
  text-transform: uppercase;
}

.nowa-nav-post-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ei-black);
}

/* -------------------------------------------------------------
 * 14. Related Posts Section & Comments
 * ------------------------------------------------------------- */
.nowa-related-posts-section {
  margin-top: 48px;
}

.nowa-related-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nowa-comments-area {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--ei-border);
}

.nowa-comment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.comment-body {
  background: var(--ei-white);
  padding: 24px;
  border-radius: var(--ei-radius-lg);
  border: 1px solid var(--ei-border);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.comment-author .avatar {
  border-radius: var(--ei-radius-full);
}

.comment-author .fn {
  font-weight: 700;
  color: var(--ei-black);
}

.comment-metadata a {
  font-size: 12px;
  color: var(--ei-meta);
}

.comment-content {
  font-size: 15px;
  color: var(--ei-desc);
  line-height: 1.6;
}

.reply a {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ei-primary);
}

/* Comment Form */
.comment-respond {
  background: var(--ei-white);
  padding: 32px;
  border-radius: var(--ei-radius-xl);
  border: 1px solid var(--ei-border);
}

.comment-reply-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}

.comment-form p {
  margin-bottom: 18px;
}

.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ei-black);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
  border-radius: var(--ei-radius-md);
  color: var(--ei-black);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--ei-primary);
  background: var(--ei-white);
}

.nowa-btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--ei-primary);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--ei-radius-full);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(233, 61, 61, 0.3);
  transition: all 0.2s ease;
}

.nowa-btn-primary:hover {
  background: var(--ei-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 61, 61, 0.45);
}

.nowa-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--ei-section);
  color: var(--ei-black);
  font-weight: 700;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  transition: all 0.2s ease;
}

.nowa-btn-secondary:hover {
  background: var(--ei-primary);
  color: #ffffff;
  border-color: var(--ei-primary);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * 15. Pagination & Archive Header
 * ------------------------------------------------------------- */
.nowa-pagination {
  margin-top: 40px;
}

.nowa-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nowa-pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--ei-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  color: var(--ei-black);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--ei-shadow);
  transition: all 0.2s ease;
}

.nowa-pagination .page-numbers:hover,
.nowa-pagination .page-numbers.current {
  background: var(--ei-primary);
  color: #ffffff;
  border-color: var(--ei-primary);
  transform: translateY(-2px);
}

/* Archive Banner Card */
.nowa-archive-header {
  padding: 120px 0 40px;
}

.nowa-archive-banner-card {
  background: var(--ei-white);
  padding: 40px;
  border-radius: var(--ei-radius-xl);
  border: 1px solid var(--ei-border);
  box-shadow: var(--ei-shadow);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.nowa-archive-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--ei-primary-light);
  color: var(--ei-primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: var(--ei-radius-full);
  margin-bottom: 14px;
}

.nowa-archive-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
}

.nowa-archive-desc {
  font-size: 16px;
  color: var(--ei-desc);
  margin-bottom: 16px;
}

.nowa-archive-meta {
  font-size: 13px;
  color: var(--ei-meta);
}

/* 404 & Empty State */
.nowa-404-main {
  padding: 140px 0 80px;
  text-align: center;
}

.nowa-404-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--ei-white);
  padding: 60px 40px;
  border-radius: var(--ei-radius-xl);
  border: 1px solid var(--ei-border);
  box-shadow: var(--ei-shadow);
}

.nowa-404-badge {
  font-size: 72px;
  font-weight: 900;
  color: var(--ei-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.nowa-404-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
}

.nowa-404-desc {
  font-size: 15px;
  color: var(--ei-desc);
  margin-bottom: 28px;
}

.nowa-404-search {
  margin-bottom: 28px;
}

.nowa-inline-search-form {
  display: flex;
  gap: 10px;
}

.nowa-inline-search-field {
  flex: 1;
  padding: 12px 18px;
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-full);
  color: var(--ei-black);
}

.nowa-no-posts-found {
  text-align: center;
  padding: 60px 20px;
  background: var(--ei-white);
  border-radius: var(--ei-radius-xl);
  border: 1px solid var(--ei-border);
}

.nowa-empty-icon {
  color: var(--ei-meta);
  margin-bottom: 16px;
}

.nowa-empty-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.nowa-empty-desc {
  font-size: 15px;
  color: var(--ei-desc);
  max-width: 500px;
  margin: 0 auto 24px;
}

/* -------------------------------------------------------------
 * 16. Site Footer, Pre-Footer Newsletter & Developer Architecture
 * ------------------------------------------------------------- */

/* A. Pre-Footer Atmospheric Newsletter Card */
.nowa-prefooter-newsletter {
  padding: 40px 0 0;
  position: relative;
  z-index: 10;
}

.nowa-newsletter-card {
  background: linear-gradient(135deg, var(--ei-white) 0%, var(--ei-section) 100%);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-xl);
  padding: 44px 40px;
  box-shadow: var(--ei-shadow);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .nowa-newsletter-card {
  background: linear-gradient(135deg, #1f2737 0%, #171e2c 100%);
}

.nowa-newsletter-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 61, 61, 0.12) 0%, rgba(233, 61, 61, 0) 70%);
  pointer-events: none;
}

.nowa-newsletter-badge-wrap {
  margin-bottom: 12px;
}

.nowa-newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: var(--ei-primary-light);
  color: var(--ei-primary);
  border-radius: var(--ei-radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nowa-badge-ping {
  width: 7px;
  height: 7px;
  background-color: var(--ei-primary);
  border-radius: 50%;
  animation: nowa-pulse 2s infinite ease-in-out;
}

.nowa-newsletter-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ei-black);
  margin-bottom: 8px;
}

.nowa-newsletter-desc {
  font-size: 15px;
  color: var(--ei-desc);
  line-height: 1.55;
  max-width: 540px;
}

/* Newsletter Input Form */
.nowa-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nowa-newsletter-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ei-bg);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-full);
  padding: 6px 6px 6px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nowa-newsletter-input-group:focus-within {
  border-color: var(--ei-primary);
  box-shadow: 0 0 0 3px rgba(233, 61, 61, 0.15);
}

.nowa-newsletter-input-icon {
  color: var(--ei-meta);
  display: flex;
}

.nowa-newsletter-input {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--ei-black);
}

.nowa-newsletter-input::placeholder {
  color: var(--ei-meta);
}

.nowa-newsletter-btn {
  padding: 10px 22px;
  font-size: 13px;
  white-space: nowrap;
}

.nowa-newsletter-subtext {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ei-meta);
  padding-left: 12px;
}

/* B. Main Footer */
.nowa-site-footer {
  background: var(--ei-section);
  border-top: 1px solid var(--ei-border);
  padding: 64px 0 40px;
  margin-top: 50px;
  position: relative;
}

.nowa-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ei-border);
  margin-bottom: 32px;
}

.nowa-footer-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--ei-black);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  letter-spacing: -0.01em;
}

.nowa-footer-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ei-border);
  margin-left: 14px;
}

/* Brand Column */
.nowa-footer-brand {
  display: flex;
  flex-direction: column;
}

.nowa-footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ei-black);
  letter-spacing: -0.02em;
}

.nowa-footer-brand-title {
  color: var(--ei-black);
}

.nowa-footer-brand-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ei-desc);
  margin: 14px 0 18px;
  max-width: 320px;
}

/* Status Indicator Pill */
.nowa-footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--ei-radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
  align-self: flex-start;
}

.nowa-status-indicator-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: nowa-pulse-green 2s infinite ease-in-out;
}

@keyframes nowa-pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Footer Link Lists */
.nowa-footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nowa-footer-link-list li a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ei-desc);
  transition: all 0.2s ease;
}

.nowa-footer-link-list li a:hover {
  color: var(--ei-primary);
  transform: translateX(4px);
}

.nowa-footer-cat-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nowa-footer-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--ei-radius-full);
  background: var(--ei-white);
  color: var(--ei-meta);
  border: 1px solid var(--ei-border);
  transition: all 0.2s ease;
}

.nowa-footer-cat-link:hover .nowa-footer-count-badge {
  background: var(--ei-primary);
  color: #ffffff;
  border-color: var(--ei-primary);
}

/* Community Social Grid */
.nowa-footer-social-intro {
  font-size: 13.5px;
  color: var(--ei-desc);
  line-height: 1.5;
  margin-bottom: 14px;
}

.nowa-footer-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.nowa-footer-social-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--ei-radius-md);
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ei-black);
  transition: all 0.2s var(--ei-ease);
}

.nowa-footer-social-card:hover {
  background: var(--ei-primary);
  color: #ffffff;
  border-color: var(--ei-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 61, 61, 0.25);
}

/* C. Sub-Footer Bottom Bar */
.nowa-footer-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.nowa-sub-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nowa-footer-copyright {
  font-size: 13px;
  color: var(--ei-meta);
}

.nowa-dev-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--ei-meta);
}

.nowa-dev-link {
  color: var(--ei-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tech Stack Badges */
.nowa-sub-center {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 900px) {
  .nowa-sub-center {
    display: flex;
  }
}

.nowa-tech-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--ei-meta);
}

/* Back to Top Button */
.nowa-back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--ei-radius-full);
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ei-black);
  cursor: pointer;
  box-shadow: var(--ei-shadow);
  transition: all 0.2s var(--ei-ease);
}

.nowa-back-to-top-btn:hover {
  background: var(--ei-primary);
  color: #ffffff;
  border-color: var(--ei-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(233, 61, 61, 0.28);
}

.nowa-top-btn-arrow {
  display: flex;
  transition: transform 0.2s ease;
}

.nowa-back-to-top-btn:hover .nowa-top-btn-arrow {
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * 17. Mobile & Responsive Layout Engine (Ultra-Refined)
 * ------------------------------------------------------------- */

/* Universal mobile constraints */
.nowa-site-wrapper {
  overflow-x: hidden;
  width: 100%;
}

.entry-content,
.nowa-article-body {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.entry-content img,
.entry-content iframe,
.entry-content video,
.entry-content table,
.entry-content pre {
  max-width: 100% !important;
}

/* =============================================================
   TABLETS & MEDIUM SCREENS (< 1024px)
   ============================================================= */
@media (max-width: 1023px) {
  .nowa-portal-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .nowa-feed-column {
    width: 100%;
  }

  .nowa-sidebar-column {
    width: 100%;
  }

  .nowa-sidebar-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }

  .nowa-breadcrumbs {
    padding: 85px 0 16px;
  }

  .nowa-showcase-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .nowa-showcase-card {
    height: 280px;
  }
}

/* =============================================================
   MOBILE DEVICES (< 768px)
   Ultra-optimized single article, feed, header & typography
   ============================================================= */
@media (max-width: 767px) {
  :root {
    --ei-navbar-height: 62px;
    --ei-navbar-height-scrolled: 58px;
    --ei-bottom-tab-height: 58px;
  }

  /* Base Body & Container adjustments */
  body.has-bottom-nav {
    padding-bottom: calc(var(--ei-bottom-tab-height) + 20px + env(safe-area-inset-bottom));
  }

  .nowa-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Header Navbar on Mobile */
  .nowa-navbar-header {
    height: var(--ei-navbar-height);
  }

  .nowa-navbar-header.is-scrolled {
    height: var(--ei-navbar-height-scrolled);
  }

  .nowa-brand-link {
    font-size: 19px;
    gap: 8px;
  }

  .nowa-brand-emblem svg {
    width: 24px;
    height: 24px;
  }

  .nowa-action-btn {
    width: 36px;
    height: 36px;
  }

  .nowa-action-btn svg {
    width: 18px;
    height: 18px;
  }

  .nowa-navbar-actions {
    gap: 6px;
  }

  /* Breadcrumbs on Mobile */
  .nowa-breadcrumbs {
    padding: 72px 0 12px;
  }

  .nowa-breadcrumbs-list {
    font-size: 11.5px;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nowa-breadcrumbs-list::-webkit-scrollbar {
    display: none;
  }

  .nowa-breadcrumb-item {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* -----------------------------------------------------------
   * TEKİL YAZI SAYFASI (SINGLE POST MOBILE OPTIMIZATION)
   * ----------------------------------------------------------- */
  .nowa-single-main {
    padding-bottom: 40px;
  }

  .nowa-single-article,
  .nowa-page-article {
    padding: 20px 14px;
    border-radius: 16px;
    border: 1px solid var(--ei-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  }

  .nowa-article-cat-wrap {
    margin-bottom: 12px;
  }

  .nowa-pill {
    padding: 3px 10px;
    font-size: 11px;
  }

  .nowa-article-title,
  .nowa-page-title {
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Article Meta Bar on Mobile */
  .nowa-article-meta-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  .nowa-author-meta-item {
    width: 100%;
    gap: 12px;
  }

  .nowa-author-avatar-img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .nowa-author-head-row {
    gap: 6px;
    margin-bottom: 4px;
  }

  .nowa-author-name {
    font-size: 14px;
  }

  .nowa-author-role {
    font-size: 10.5px;
    padding: 1px 7px;
  }

  .nowa-meta-pills {
    gap: 5px;
  }

  .nowa-pill-meta {
    font-size: 11px;
    padding: 2.5px 7px;
  }

  .nowa-share-quick {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--ei-border);
  }

  .nowa-share-btn {
    width: 34px;
    height: 34px;
  }

  /* Featured Hero Image on Mobile */
  .nowa-article-hero-media,
  .nowa-page-hero-media {
    margin-bottom: 22px;
    border-radius: 12px;
  }

  .nowa-article-hero-img,
  .nowa-page-hero-img {
    border-radius: 12px;
    width: 100%;
    height: auto;
  }

  .nowa-hero-caption {
    font-size: 11.5px;
    margin-top: 6px;
  }

  /* Article Body (Content) Typography on Mobile */
  .nowa-article-body,
  .nowa-page-body {
    font-size: 16px;
    line-height: 1.72;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .nowa-article-body p,
  .nowa-page-body p {
    margin-bottom: 18px;
  }

  .nowa-article-body h1 {
    font-size: 24px;
    margin: 30px 0 14px;
  }

  .nowa-article-body h2 {
    font-size: 21px;
    margin: 26px 0 12px;
    line-height: 1.3;
  }

  .nowa-article-body h3 {
    font-size: 18px;
    margin: 22px 0 10px;
    line-height: 1.35;
  }

  .nowa-article-body h4 {
    font-size: 16px;
    margin: 18px 0 8px;
  }

  .nowa-article-body ul,
  .nowa-article-body ol {
    margin: 0 0 18px 20px;
    padding: 0;
  }

  .nowa-article-body li {
    margin-bottom: 6px;
  }

  .nowa-article-body blockquote {
    margin: 22px 0;
    padding: 12px 14px;
    font-size: 15px;
    border-left-width: 3px;
    border-radius: 0 10px 10px 0;
  }

  .nowa-article-body pre {
    font-size: 12.5px;
    padding: 12px 14px;
    margin: 18px 0;
    border-radius: 10px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: pre;
  }

  .nowa-article-body p code {
    font-size: 13px;
    padding: 2px 5px;
  }

  .nowa-article-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 18px 0;
    font-size: 13px;
  }

  .nowa-article-body th,
  .nowa-article-body td {
    padding: 8px 10px;
    min-width: 90px;
  }

  .nowa-article-body img {
    border-radius: 10px;
  }

  .nowa-article-body figure {
    margin: 18px 0;
    max-width: 100%;
  }

  /* Tags on Mobile */
  .nowa-article-footer {
    margin-top: 32px;
    padding-top: 20px;
  }

  .nowa-article-tags {
    gap: 8px;
    margin-bottom: 24px;
  }

  .nowa-tag-pill {
    padding: 5px 12px;
    font-size: 12px;
  }

  /* Extended Share Banner on Mobile */
  .nowa-share-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 14px;
    border-radius: 14px;
    gap: 12px;
    margin-bottom: 28px;
  }

  .nowa-share-heading {
    font-size: 13px;
    text-align: center;
  }

  .nowa-share-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
  }

  .nowa-share-card {
    justify-content: center;
    padding: 10px 4px;
    font-size: 11.5px;
    gap: 5px;
    border-radius: 10px;
  }

  /* Google Preferred Source Card on Mobile */
  .nowa-google-source-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px;
    gap: 16px;
    margin: 28px 0 24px 0;
  }

  .nowa-google-source-action {
    width: 100%;
  }

  .nowa-google-source-btn {
    width: 100%;
    justify-content: center;
  }

  /* Author Bio Box on Mobile */
  .nowa-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 16px;
    border-radius: 14px;
    gap: 14px;
    margin-bottom: 28px;
  }

  .nowa-author-box-avatar {
    flex-shrink: 0;
  }

  .nowa-author-large-avatar {
    width: 64px;
    height: 64px;
  }

  .nowa-author-box-role {
    font-size: 10.5px;
  }

  .nowa-author-box-name {
    font-size: 17px;
    margin-bottom: 6px;
  }

  .nowa-author-box-bio {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 10px;
  }

  .nowa-author-all-posts {
    font-size: 12px;
  }

  /* Post Navigation (Prev / Next) on Mobile */
  .nowa-post-navigation {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 32px;
  }

  .nowa-nav-post-card {
    padding: 14px;
    border-radius: 12px;
  }

  .nowa-nav-post-title {
    font-size: 13.5px;
  }

  /* Comments on Mobile */
  .nowa-comments-area {
    margin-top: 32px;
    padding-top: 24px;
  }

  .nowa-comment-list {
    gap: 16px;
    margin-bottom: 32px;
  }

  .comment-body {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .comment-meta {
    gap: 10px;
    margin-bottom: 10px;
  }

  .comment-author .avatar {
    width: 36px;
    height: 36px;
  }

  .comment-author .fn {
    font-size: 13.5px;
  }

  .comment-content {
    font-size: 14px;
  }

  .comment-respond {
    padding: 20px 14px;
    border-radius: 14px;
  }

  .comment-reply-title {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .comment-form p {
    margin-bottom: 14px;
  }

  .comment-form label {
    font-size: 12.5px;
    margin-bottom: 4px;
  }

  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea {
    font-size: 16px; /* Prevents iOS Safari auto-zoom */
    padding: 10px 14px;
    border-radius: 10px;
  }

  .nowa-btn-primary {
    width: 100%;
    text-align: center;
    padding: 12px 18px;
    font-size: 14px;
  }

  /* Related Posts on Mobile */
  .nowa-related-posts-section {
    margin-top: 32px;
  }

  .nowa-related-grid {
    gap: 16px;
  }

  /* -----------------------------------------------------------
   * ANA SAYFA VE DİĞER SAYFALARIN MOBİL OPTİMİZASYONU
   * ----------------------------------------------------------- */
  .nowa-hero-section {
    padding: 88px 0 24px;
  }

  .nowa-hero-eyebrow-wrapper {
    margin-bottom: 14px;
  }

  .nowa-hero-eyebrow {
    font-size: 11px;
    padding: 5px 14px;
  }

  .nowa-hero-title {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 14px;
  }

  .nowa-hero-desc {
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.55;
  }

  .nowa-hero-tags {
    gap: 6px;
    font-size: 12px;
  }

  .nowa-hero-tag-link {
    padding: 4px 10px;
    font-size: 11.5px;
  }

  /* 3'lü Vitrin Kartları (Showcase) on Mobile */
  .nowa-showcase-section {
    padding: 10px 0 32px;
  }

  .nowa-showcase-grid {
    gap: 14px;
  }

  .nowa-showcase-card {
    height: 230px;
    border-radius: 16px;
  }

  .nowa-showcase-card.is-featured-center .nowa-showcase-title {
    font-size: 18px;
  }

  .nowa-showcase-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .nowa-showcase-content {
    padding: 14px;
    gap: 6px;
  }

  .nowa-glass-badge {
    font-size: 10px;
    padding: 3px 10px;
  }

  .nowa-showcase-meta {
    font-size: 11px;
    gap: 6px;
  }

  /* Portal Feed & Yatay Kartlar on Mobile */
  .nowa-portal-section {
    padding: 18px 0 50px;
  }

  .nowa-portal-grid {
    gap: 28px;
  }

  .nowa-section-header {
    margin-bottom: 18px;
    padding-bottom: 10px;
  }

  .nowa-section-title {
    font-size: 19px;
  }

  .nowa-feed-stream {
    gap: 16px;
  }

  .nowa-feed-card {
    padding: 14px;
    border-radius: 16px;
    gap: 14px;
  }

  .nowa-feed-thumb-wrapper {
    height: 180px;
    border-radius: 12px;
    width: 100%;
  }

  .nowa-feed-title {
    font-size: 17px;
    line-height: 1.35;
  }

  .nowa-feed-excerpt {
    font-size: 13px;
    line-height: 1.5;
  }

  .nowa-meta-line {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Sidebar on Mobile */
  .nowa-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .nowa-widget {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .nowa-widget-title {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .nowa-cat-pill-row {
    padding: 10px 14px;
    font-size: 13px;
  }

  .nowa-cat-count {
    font-size: 11px;
    padding: 2px 8px;
  }

  .nowa-popular-posts-list {
    gap: 12px;
  }

  .nowa-popular-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
  }

  .nowa-popular-title {
    font-size: 13px;
  }

  .nowa-social-connect-grid {
    gap: 8px;
  }

  .nowa-social-btn {
    padding: 10px 4px;
    border-radius: 12px;
  }

  .nowa-social-label {
    font-size: 10px;
  }

  /* Bottom Tab Bar on Mobile */
  .nowa-bottom-tab-bar {
    height: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }

  .nowa-tab-bar-container {
    padding: 0 4px;
  }

  .nowa-tab-item {
    padding: 4px 6px;
    font-size: 10px;
    gap: 2px;
  }

  .nowa-tab-icon svg {
    width: 20px;
    height: 20px;
  }

  /* Pre-Footer Newsletter on Mobile */
  .nowa-prefooter-newsletter {
    padding: 24px 0 0;
  }

  .nowa-newsletter-card {
    padding: 24px 16px;
    grid-template-columns: 1fr;
    gap: 20px;
    border-radius: 16px;
  }

  .nowa-newsletter-title {
    font-size: 20px;
  }

  .nowa-newsletter-desc {
    font-size: 13.5px;
  }

  .nowa-newsletter-input-group {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 10px;
  }

  .nowa-newsletter-input-icon {
    display: none;
  }

  .nowa-newsletter-input {
    width: 100%;
    padding: 12px 18px;
    background: var(--ei-bg);
    border: 1px solid var(--ei-border);
    border-radius: var(--ei-radius-full);
    font-size: 14px;
  }

  .nowa-newsletter-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
  }

  .nowa-newsletter-subtext {
    justify-content: center;
    text-align: center;
    font-size: 11px;
    padding: 0;
  }

  /* Footer on Mobile */
  .nowa-site-footer {
    padding: 40px 0 32px;
    margin-top: 40px;
  }

  .nowa-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
    margin-bottom: 24px;
  }

  .nowa-footer-social-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .nowa-footer-sub {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding-top: 24px;
  }

  .nowa-sub-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .nowa-dev-pill {
    margin-left: 0;
    font-size: 12px;
  }

  .nowa-sub-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nowa-tech-badge {
    font-size: 10.5px;
    padding: 2px 8px;
  }

  .nowa-back-to-top-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Search Modal on Mobile */
  .nowa-search-modal {
    padding: 60px 10px 10px;
  }

  .nowa-search-dialog {
    border-radius: 16px;
  }

  .nowa-search-input-wrapper {
    padding: 14px 16px;
    gap: 10px;
  }

  .nowa-search-field {
    font-size: 15px;
  }

  .nowa-search-results {
    padding: 12px 14px;
    max-height: 340px;
  }

  .nowa-search-footer {
    padding: 10px 14px;
    font-size: 11px;
  }

  .nowa-search-hints {
    display: none;
  }
}

/* =============================================================
   EXTRA SMALL SMARTPHONES (< 480px)
   ============================================================= */
@media (max-width: 480px) {
  .nowa-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nowa-single-article,
  .nowa-page-article {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .nowa-article-title,
  .nowa-page-title {
    font-size: 20px;
    line-height: 1.32;
  }

  .nowa-article-body,
  .nowa-page-body {
    font-size: 15px;
    line-height: 1.68;
  }

  .nowa-share-card {
    font-size: 10.5px;
    padding: 8px 2px;
  }

  .nowa-share-card svg {
    width: 14px;
    height: 14px;
  }

  .nowa-author-box {
    padding: 18px 12px;
  }

  .nowa-author-large-avatar {
    width: 56px;
    height: 56px;
  }

  .comment-respond {
    padding: 16px 12px;
  }

  .nowa-feed-thumb-wrapper {
    height: 160px;
  }
}

/* -------------------------------------------------------------
 * 18. Interactive App Promo Toast (Vakit Geldi Pro)
 * ------------------------------------------------------------- */
.nowa-app-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 400px;
  max-width: calc(100vw - 32px);
  z-index: 9980;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--ei-border);
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
  padding: 20px;
  transform: translateY(40px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

[data-theme="dark"] .nowa-app-toast,
html[data-applied-mode="dark"] .nowa-app-toast {
  background: rgba(21, 28, 40, 0.94);
  border-color: rgba(41, 51, 69, 0.85);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.nowa-app-toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.nowa-app-toast.is-hiding {
  transform: translateY(25px) scale(0.94);
  opacity: 0;
  pointer-events: none;
}

.nowa-app-toast-inner {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Close button */
.nowa-app-toast-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ei-meta);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.nowa-app-toast-close:hover {
  background: var(--ei-primary);
  color: #ffffff;
  border-color: var(--ei-primary);
  transform: rotate(90deg);
}

/* App Icon & 3D Card */
.nowa-app-icon-wrap {
  position: relative;
  flex-shrink: 0;
}

.nowa-app-icon-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.nowa-app-pro-tag {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #EAB308;
  color: #1e293b;
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.nowa-app-icon-ambient {
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.45) 0%, rgba(15, 118, 110, 0) 70%);
  z-index: -1;
  animation: nowa-pulse-teal 3.2s infinite ease-in-out;
}

@keyframes nowa-pulse-teal {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 0.25; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* App Details */
.nowa-app-details {
  flex: 1;
  min-width: 0;
  position: relative;
}

.nowa-app-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.nowa-app-tag {
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
  padding: 2px 8px;
  border-radius: var(--ei-radius-full);
}

[data-theme="dark"] .nowa-app-tag,
html[data-applied-mode="dark"] .nowa-app-tag {
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.15);
}

.nowa-app-free-badge {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: var(--ei-radius-full);
}

[data-theme="dark"] .nowa-app-free-badge,
html[data-applied-mode="dark"] .nowa-app-free-badge {
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
}

.nowa-app-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ei-black);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.nowa-app-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ei-desc);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Feature Pills */
.nowa-app-features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.nowa-app-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ei-desc);
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  padding: 2.5px 8px;
  border-radius: var(--ei-radius-full);
  line-height: 1.2;
}

.nowa-app-feature-pill svg {
  color: #0f766e;
  flex-shrink: 0;
}

[data-theme="dark"] .nowa-app-feature-pill svg,
html[data-applied-mode="dark"] .nowa-app-feature-pill svg {
  color: #2dd4bf;
}

/* CTA Actions */
.nowa-app-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nowa-app-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #ffffff !important;
  border-radius: var(--ei-radius-full);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
  transition: all 0.25s var(--ei-ease);
  flex: 1;
  justify-content: center;
  text-decoration: none;
}

.nowa-app-cta-btn:hover {
  background: linear-gradient(135deg, #134e4a 0%, #042f2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.5);
  color: #ffffff !important;
}

/* QR Code Toggle Button */
.nowa-app-qr-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--ei-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  color: var(--ei-desc);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nowa-app-qr-btn:hover {
  background: var(--ei-white);
  color: #0f766e;
  border-color: #0f766e;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

/* QR Code Popover */
.nowa-app-qr-popover {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  width: 200px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.nowa-app-qr-popover.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nowa-app-qr-content img {
  border-radius: 10px;
  margin-bottom: 8px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.nowa-app-qr-content span {
  font-size: 11px;
  color: var(--ei-desc);
  line-height: 1.35;
  display: block;
}

/* Minimized Floating Pill Badge */
.nowa-app-min-badge {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9975;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--ei-radius-full);
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s var(--ei-ease);
}

.nowa-app-min-badge.is-visible {
  display: inline-flex;
}

.nowa-app-min-badge:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.55);
}

.nowa-min-badge-icon {
  display: flex;
  align-items: center;
}

.nowa-min-badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 8px #fde047;
  animation: nowa-pulse-gold 2s infinite;
}

@keyframes nowa-pulse-gold {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Mobile responsive placement (Floats right above the Bottom Tab Bar!) */
@media (max-width: 767px) {
  .nowa-app-toast,
  body.has-bottom-nav .nowa-app-toast {
    right: 12px;
    left: 12px;
    bottom: calc(var(--ei-bottom-tab-height) + 12px + env(safe-area-inset-bottom));
    width: auto;
    padding: 16px 14px;
    border-radius: 18px;
  }

  .nowa-app-min-badge,
  body.has-bottom-nav .nowa-app-min-badge {
    right: 16px;
    bottom: calc(var(--ei-bottom-tab-height) + 14px + env(safe-area-inset-bottom));
    padding: 6px 14px 6px 8px;
    font-size: 11.5px;
  }

  .nowa-app-qr-btn,
  .nowa-app-qr-popover {
    display: none !important;
  }

  .nowa-app-desc {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .nowa-app-features {
    margin-bottom: 10px;
    gap: 4px;
  }

  .nowa-app-feature-pill {
    font-size: 10px;
    padding: 2px 6px;
  }

  .nowa-app-cta-btn {
    padding: 9px 14px;
    font-size: 12.5px;
  }
}

/* -------------------------------------------------------------
 * Single Post Enhancements (Subtitle, TOC, Font Switcher,
 * Highlight-to-Share, Reactions, Lightbox, Code Copy)
 * ------------------------------------------------------------- */

/* C. Article Subtitle / Lead Deck */
.nowa-article-subtitle {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--ei-desc);
  font-weight: 400;
  margin-top: -12px;
  margin-bottom: 24px;
}

/* B. Font Size Switcher (Aa) */
.nowa-font-size-btn {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nowa-font-size-btn.is-active {
  background: var(--ei-primary);
  color: #ffffff;
  border-color: var(--ei-primary);
}

.nowa-article-body[data-article-size="large"] {
  font-size: calc(var(--ei-article-font-size, 17px) + 2px);
  line-height: 1.85;
}

.nowa-article-body[data-article-size="xlarge"] {
  font-size: calc(var(--ei-article-font-size, 17px) + 4px);
  line-height: 1.9;
}

/* A. Collapsible Table of Contents (TOC) */
.nowa-toc {
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-lg);
  padding: 18px 22px;
  margin-bottom: 32px;
  transition: all var(--ei-transition);
}

.nowa-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nowa-toc-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ei-black);
  font-size: 15px;
  font-weight: 800;
}

.nowa-toc-title-wrap svg {
  color: var(--ei-primary);
  flex-shrink: 0;
}

.nowa-toc-toggle {
  width: 30px;
  height: 30px;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  background: var(--ei-white);
  color: var(--ei-desc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s var(--ei-ease), background-color 0.2s ease, color 0.2s ease;
}

.nowa-toc-toggle:hover {
  background: var(--ei-primary-light);
  color: var(--ei-primary);
  border-color: var(--ei-primary);
}

.nowa-toc.is-collapsed .nowa-toc-toggle svg {
  transform: rotate(180deg);
}

.nowa-toc-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--ei-border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  counter-reset: nowa-toc-counter;
}

.nowa-toc.is-collapsed .nowa-toc-list {
  display: none;
}

.nowa-toc-item {
  counter-increment: nowa-toc-counter;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.nowa-toc-item::before {
  content: counter(nowa-toc-counter) ".";
  font-size: 12px;
  font-weight: 800;
  color: var(--ei-primary);
  flex-shrink: 0;
}

.nowa-toc-item.is-h3 {
  padding-left: 14px;
  font-size: 13.5px;
}

.nowa-toc-link {
  color: var(--ei-desc);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nowa-toc-link:hover,
.nowa-toc-link.is-active {
  color: var(--ei-primary);
  font-weight: 700;
}

.nowa-toc-anchor {
  scroll-margin-top: 96px;
}

/* D. Highlight-to-Share Floating Popover */
.nowa-highlight-popover {
  position: absolute;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  background: #151c28;
  color: #ffffff;
  border-radius: var(--ei-radius-full);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s var(--ei-ease);
}

.nowa-highlight-popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nowa-hl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: var(--ei-radius-full);
  background: transparent;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nowa-hl-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nowa-hl-btn.is-share-x:hover {
  background: var(--ei-primary);
}

/* E. Helpful / Reaction Box */
.nowa-reaction-box {
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-lg);
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  transition: opacity 0.2s ease;
}

.nowa-reaction-box.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.nowa-reaction-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ei-black);
}

.nowa-reaction-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nowa-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  background: var(--ei-white);
  color: var(--ei-desc);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ei-ease);
}

.nowa-reaction-btn:hover {
  transform: translateY(-1px);
  border-color: var(--ei-black);
  color: var(--ei-black);
}

.nowa-reaction-btn.is-like.is-active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #059669;
}

.nowa-reaction-btn.is-dislike.is-active {
  background: var(--ei-primary-light);
  border-color: var(--ei-primary);
  color: var(--ei-primary);
}

html[data-applied-mode="dark"] .nowa-reaction-btn.is-like.is-active,
[data-theme="dark"] .nowa-reaction-btn.is-like.is-active {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
  color: #34d399;
}

.nowa-reaction-count {
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

/* F1. Image Lightbox */
.nowa-zoomable-img {
  cursor: zoom-in;
  transition: transform 0.25s var(--ei-ease), opacity 0.2s ease;
}

.nowa-zoomable-img:hover {
  opacity: 0.96;
}

.nowa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.nowa-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nowa-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(8px);
}

.nowa-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: scale(0.96);
  transition: transform 0.24s var(--ei-ease);
}

.nowa-lightbox.is-open .nowa-lightbox-dialog {
  transform: scale(1);
}

.nowa-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--ei-radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  object-fit: contain;
}

.nowa-lightbox-caption {
  color: #e2e8f0;
  font-size: 13.5px;
  text-align: center;
  max-width: 680px;
}

.nowa-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: var(--ei-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(21, 28, 40, 0.85);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nowa-lightbox-close:hover {
  background: var(--ei-primary);
  transform: rotate(90deg);
}

/* F2. Code Block Copy Button */
.nowa-code-wrap {
  position: relative;
  margin: 30px 0;
}

.nowa-article-body .nowa-code-wrap pre {
  margin: 0;
  padding-top: 42px;
}

.nowa-code-copy-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: var(--ei-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nowa-code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.nowa-code-copy-btn.is-copied {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

/* Responsive Adjustments for Single Enhancements */
@media (max-width: 767px) {
  .nowa-toc {
    padding: 15px 16px;
  }

  .nowa-toc-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nowa-reaction-box {
    padding: 16px;
  }

  .nowa-reaction-actions {
    width: 100%;
  }

  .nowa-reaction-btn {
    flex: 1;
    justify-content: center;
  }
}

/* -------------------------------------------------------------
 * Portal Feed Filter Bar, Load More, Saved Drawer,
 * Card Bookmark, Sponsored Badge, Sources & Author Socials
 * ------------------------------------------------------------- */

/* Header Saved Reading List Badge */
.nowa-saved-trigger {
  position: relative;
}

.nowa-saved-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--ei-radius-full);
  background: var(--ei-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}

/* Feed Card Quick Bookmark */
.nowa-feed-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nowa-card-bookmark-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
  color: var(--ei-meta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s var(--ei-ease);
}

.nowa-card-bookmark-btn:hover {
  border-color: var(--ei-primary);
  color: var(--ei-primary);
}

.nowa-card-bookmark-btn.is-bookmarked {
  background: var(--ei-primary);
  border-color: var(--ei-primary);
  color: #ffffff;
}

.nowa-card-bookmark-btn.is-bookmarked svg {
  fill: currentColor;
}

/* Saved Reading List & History Slide-Over Drawer */
.nowa-saved-drawer {
  position: fixed;
  inset: 0;
  z-index: 100020;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nowa-saved-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.nowa-saved-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: var(--ei-white);
  border-left: 1px solid var(--ei-border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--ei-ease);
}

.nowa-saved-drawer.is-open .nowa-saved-panel {
  transform: translateX(0);
}

.nowa-saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ei-border);
}

.nowa-saved-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ei-black);
}

.nowa-saved-title-group svg {
  color: var(--ei-primary);
}

.nowa-saved-title-group h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.nowa-saved-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ei-border);
  background: var(--ei-section);
}

.nowa-saved-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--ei-radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ei-desc);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nowa-saved-tab.is-active {
  background: var(--ei-white);
  border-color: var(--ei-border);
  color: var(--ei-black);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.nowa-saved-tab-badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: var(--ei-radius-full);
  background: var(--ei-primary-light);
  color: var(--ei-primary);
}

.nowa-saved-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.nowa-saved-pane {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.nowa-saved-pane.is-active {
  display: flex;
}

.nowa-saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--ei-radius-md);
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  transition: border-color 0.2s ease;
}

.nowa-saved-item:hover {
  border-color: var(--ei-primary);
}

.nowa-saved-item-link {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nowa-saved-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ei-black);
  line-height: 1.35;
}

.nowa-saved-item-meta {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ei-primary);
}

.nowa-saved-remove-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  background: var(--ei-white);
  color: var(--ei-meta);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.nowa-saved-remove-btn:hover {
  background: var(--ei-primary);
  border-color: var(--ei-primary);
  color: #ffffff;
}

.nowa-saved-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--ei-meta);
  font-size: 13.5px;
}

.nowa-saved-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--ei-border);
  text-align: right;
}

.nowa-clear-list-btn {
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
  color: var(--ei-desc);
  padding: 7px 14px;
  border-radius: var(--ei-radius-full);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nowa-clear-list-btn:hover {
  border-color: var(--ei-primary);
  color: var(--ei-primary);
}

/* Portal Feed AJAX Filter Bar & Load More */
.nowa-feed-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 22px;
  scrollbar-width: none;
}

.nowa-feed-filter-bar::-webkit-scrollbar {
  display: none;
}

.nowa-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  background: var(--ei-white);
  color: var(--ei-desc);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s var(--ei-ease);
}

.nowa-filter-pill:hover {
  border-color: var(--ei-primary);
  color: var(--ei-primary);
}

.nowa-filter-pill.is-active {
  background: var(--ei-primary);
  border-color: var(--ei-primary);
  color: #ffffff;
}

.nowa-filter-pill.is-for-you[hidden] {
  display: none;
}

.nowa-feed-stream.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nowa-feed-empty-state {
  padding: 40px 24px;
  text-align: center;
  background: var(--ei-white);
  border: 1px dashed var(--ei-border);
  border-radius: var(--ei-radius-lg);
  color: var(--ei-meta);
}

.nowa-load-more-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.nowa-load-more-wrap[hidden] {
  display: none;
}

.nowa-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  background: var(--ei-white);
  color: var(--ei-black);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--ei-shadow);
  transition: all 0.2s var(--ei-ease);
}

.nowa-load-more-btn:hover {
  background: var(--ei-primary);
  border-color: var(--ei-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.nowa-load-more-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Single Post Sponsored Badge, Sources & Author Socials */
.nowa-article-cat-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nowa-sponsored-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--ei-radius-full);
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nowa-article-sources {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.nowa-author-box-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.nowa-author-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nowa-author-social-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
  color: var(--ei-desc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nowa-author-social-btn:hover {
  background: var(--ei-primary);
  border-color: var(--ei-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * Notification Bell, Drop Cap, Inline Related, Shortcodes,
 * Collapsible Comments, Page Templates & Print Styles
 * ------------------------------------------------------------- */

/* Stackable Toast Engine */
.nowa-toast-stack {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100080;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 24px);
}

.nowa-toast-card {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--ei-radius-full);
  background: #151c28;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s var(--ei-ease);
}

.nowa-toast-msg {
  min-width: 0;
  line-height: 1.35;
}

@media (max-width: 1023px) {
  body.has-bottom-nav .nowa-toast-stack {
    bottom: calc(var(--ei-bottom-tab-height) + 20px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .nowa-toast-stack {
    left: 12px;
    right: 12px;
    transform: none;
    max-width: none;
    align-items: stretch;
  }

  .nowa-toast-card {
    width: 100%;
    border-radius: var(--ei-radius-md);
    padding: 10px 12px;
  }

  .nowa-toast-msg {
    flex: 1;
    font-size: 12.5px;
  }
}

.nowa-toast-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nowa-toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.nowa-toast-card.is-success .nowa-toast-icon { background: #10b981; color: #ffffff; }
.nowa-toast-card.is-warning .nowa-toast-icon { background: #f59e0b; color: #ffffff; }
.nowa-toast-card.is-error .nowa-toast-icon { background: #ef4444; color: #ffffff; }

.nowa-toast-action {
  color: #ffffff;
  background: var(--ei-primary);
  padding: 3px 10px;
  border-radius: var(--ei-radius-full);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.nowa-toast-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.nowa-toast-close:hover {
  color: #ffffff;
}

/* Header Advanced Notification Center */
.nowa-notif-wrap {
  position: relative;
}

.nowa-notif-trigger {
  position: relative;
}

.nowa-notif-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--ei-radius-full);
  background: var(--ei-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--ei-white);
}

.nowa-notif-count-badge[hidden] {
  display: none;
}

.nowa-notif-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100025;
  background: rgba(11, 15, 25, 0.35);
  backdrop-filter: blur(2px);
}

.nowa-notif-backdrop[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .nowa-notif-backdrop {
    background: transparent;
    backdrop-filter: none;
  }
  .nowa-notif-close-mobile {
    display: none;
  }
}

.nowa-notif-dropdown {
  position: fixed;
  top: 76px;
  right: 20px;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100dvh - 100px);
  display: flex;
  flex-direction: column;
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-lg);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 100030;
}

.nowa-notif-dropdown[hidden] {
  display: none;
}

.nowa-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ei-border);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ei-black);
  background: var(--ei-section);
}

.nowa-notif-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nowa-notif-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nowa-notif-mini-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  background: var(--ei-white);
  color: var(--ei-desc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nowa-notif-mini-btn.is-spinning svg {
  animation: nowa-spin 0.8s linear infinite;
}

@keyframes nowa-spin {
  to { transform: rotate(360deg); }
}

.nowa-notif-mark-all-btn {
  border: none;
  background: transparent;
  color: var(--ei-primary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: var(--ei-radius-sm);
  white-space: nowrap;
}

.nowa-notif-mark-all-btn:hover {
  background: var(--ei-primary-light);
}

.nowa-notif-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--ei-border);
  background: var(--ei-white);
}

.nowa-notif-tab {
  padding: 6px 6px;
  border-radius: var(--ei-radius-sm);
  border: none;
  background: transparent;
  color: var(--ei-meta);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}

.nowa-notif-tab.is-active {
  background: var(--ei-section);
  color: var(--ei-black);
}

.nowa-notif-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--ei-radius-full);
  background: var(--ei-primary-light);
  color: var(--ei-primary);
}

.nowa-notif-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .nowa-notif-dropdown {
    width: auto;
    border-radius: var(--ei-radius-lg);
  }

  .nowa-notif-head {
    padding: 11px 12px;
  }

  .nowa-notif-item {
    padding: 11px 12px;
    gap: 10px;
  }

  .nowa-notif-thumb {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .nowa-brand-text {
    font-size: 17px;
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nowa-navbar-actions {
    gap: 4px;
  }

  .nowa-action-btn {
    width: 34px;
    height: 34px;
  }

  .nowa-action-btn svg {
    width: 17px;
    height: 17px;
  }

  .nowa-notif-count-badge,
  .nowa-saved-count-badge {
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 9.5px;
    padding: 0 4px;
  }
}

.nowa-notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ei-border);
  transition: background-color 0.15s ease;
  position: relative;
}

.nowa-notif-item.is-unread {
  background: rgba(233, 61, 61, 0.035);
}

.nowa-notif-item:last-child {
  border-bottom: none;
}

.nowa-notif-item:hover {
  background: var(--ei-section);
}

.nowa-notif-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--ei-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.nowa-notif-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nowa-notif-cat {
  font-size: 10px;
  font-weight: 800;
  color: var(--ei-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nowa-notif-cat.is-notice { color: #3b82f6; }
.nowa-notif-cat.is-updated { color: #10b981; }

.nowa-notif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ei-black);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nowa-notif-time {
  font-size: 11px;
  color: var(--ei-meta);
}

.nowa-notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ei-primary);
  flex-shrink: 0;
}

.nowa-notif-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ei-meta);
}

.nowa-notif-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--ei-border);
  background: var(--ei-section);
}

.nowa-notif-foot[hidden] {
  display: none;
}

.nowa-notif-push-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--ei-radius-sm);
  border: 1px solid var(--ei-border);
  background: var(--ei-white);
  color: var(--ei-black);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nowa-notif-push-btn:hover {
  border-color: var(--ei-primary);
  color: var(--ei-primary);
}

/* Drop Cap */
.nowa-article-body.nowa-has-dropcap > p:first-of-type::first-letter {
  float: left;
  font-size: 3.35em;
  line-height: 0.85;
  padding-right: 12px;
  padding-top: 4px;
  font-weight: 900;
  color: var(--ei-primary);
}

/* Inline Related "Read Also" Card */
.nowa-inline-related {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 28px 0;
  border-radius: var(--ei-radius-md);
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  border-left: 4px solid var(--ei-primary);
  transition: transform 0.2s var(--ei-ease), border-color 0.2s ease;
}

.nowa-inline-related:hover {
  transform: translateX(3px);
}

.nowa-inline-rel-thumb img {
  width: 56px;
  height: 56px;
  border-radius: var(--ei-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.nowa-inline-rel-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nowa-inline-rel-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ei-primary);
}

.nowa-inline-rel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ei-black);
  line-height: 1.35;
}

.nowa-inline-rel-title:hover {
  color: var(--ei-primary);
}

.nowa-inline-rel-arrow {
  width: 34px;
  height: 34px;
  border-radius: var(--ei-radius-full);
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  color: var(--ei-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Editorial Shortcodes & Native Card Styles */
.nowa-callout {
  padding: 18px 20px;
  margin: 24px 0;
  border-radius: var(--ei-radius-md);
  border: 1px solid var(--ei-border);
  border-left-width: 4px;
  background: var(--ei-section);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nowa-callout[hidden] {
  display: none !important;
}

.nowa-callout.is-closing {
  opacity: 0;
  transform: translateY(-4px);
}

.nowa-callout.is-single-slot.is-slot-top {
  margin-top: 0;
  margin-bottom: 24px;
}

.nowa-callout.is-single-slot.is-slot-bottom {
  margin-top: 28px;
  margin-bottom: 12px;
}

.nowa-callout.is-info { border-left-color: #3b82f6; background: rgba(59, 130, 246, 0.05); }
.nowa-callout.is-tip,
.nowa-callout.is-success { border-left-color: #10b981; background: rgba(16, 185, 129, 0.05); }
.nowa-callout.is-announcement { border-left-color: var(--ei-primary); background: var(--ei-primary-light, rgba(233, 61, 61, 0.06)); }
.nowa-callout.is-update { border-left-color: #06b6d4; background: rgba(6, 182, 212, 0.06); }
.nowa-callout.is-warning { border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.06); }
.nowa-callout.is-danger { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.07); }
.nowa-callout.is-quote { border-left-color: #64748b; }

.nowa-callout-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ei-black);
}

.nowa-callout-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nowa-callout.is-info .nowa-callout-icon { color: #3b82f6; }
.nowa-callout.is-tip .nowa-callout-icon,
.nowa-callout.is-success .nowa-callout-icon { color: #10b981; }
.nowa-callout.is-announcement .nowa-callout-icon { color: var(--ei-primary); }
.nowa-callout.is-update .nowa-callout-icon { color: #06b6d4; }
.nowa-callout.is-warning .nowa-callout-icon { color: #f59e0b; }
.nowa-callout.is-danger .nowa-callout-icon { color: #ef4444; }
.nowa-callout.is-quote .nowa-callout-icon { color: #64748b; }

.nowa-callout-title {
  font-size: 15px;
  font-weight: 800;
}

.nowa-callout-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ei-black);
}

[data-theme="dark"] .nowa-callout-badge {
  background: rgba(255, 255, 255, 0.12);
}

.nowa-callout-close {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ei-meta);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.nowa-callout-close:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--ei-black);
}

.nowa-callout-content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nowa-callout-body {
  flex: 1 1 240px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ei-desc);
}

.nowa-callout-body p:last-child {
  margin-bottom: 0;
}

.nowa-callout-cta-wrap {
  flex-shrink: 0;
}

.nowa-callout-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ei-primary);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nowa-callout-cta:hover {
  background: var(--ei-primary-hover);
  transform: translateY(-1px);
}

/* Changelog Card */
.nowa-changelog-card {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--ei-radius-md);
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
}

.nowa-changelog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.nowa-changelog-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ei-black);
  font-size: 15px;
}

.nowa-changelog-title-wrap svg {
  color: #06b6d4;
}

.nowa-changelog-badge {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.14);
  color: #0891b2;
}

[data-theme="dark"] .nowa-changelog-badge {
  color: #22d3ee;
}

.nowa-changelog-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 0 0 8px !important;
  border-left: 2px solid var(--ei-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nowa-changelog-item {
  position: relative;
  padding-left: 16px;
}

.nowa-changelog-dot {
  position: absolute;
  left: -6px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ei-primary);
  border: 2px solid var(--ei-section);
}

.nowa-changelog-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nowa-changelog-date {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ei-primary);
}

.nowa-changelog-text {
  font-size: 14px;
  color: var(--ei-desc);
}

/* Checklist Card */
.nowa-checklist-card {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--ei-radius-md);
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
}

.nowa-checklist-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--ei-black);
}

.nowa-checklist-head svg {
  color: #10b981;
}

.nowa-checklist-items {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.nowa-checklist-items li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ei-desc);
}

.nowa-check-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  font-size: 11px;
  font-weight: 800;
}

/* Native Gutenberg Block Styles (.is-style-nowa-card-*) */
[class*="is-style-nowa-card-"] {
  padding: 18px 20px !important;
  margin: 22px 0 !important;
  border-radius: var(--ei-radius-md);
  border: 1px solid var(--ei-border);
  border-left-width: 4px;
  background: var(--ei-section);
}

.is-style-nowa-card-info { border-left-color: #3b82f6; background: rgba(59, 130, 246, 0.05); }
.is-style-nowa-card-announcement { border-left-color: var(--ei-primary); background: var(--ei-primary-light, rgba(233, 61, 61, 0.06)); }
.is-style-nowa-card-tip { border-left-color: #10b981; background: rgba(16, 185, 129, 0.05); }
.is-style-nowa-card-warning { border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.06); }
.is-style-nowa-card-danger { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.07); }

.nowa-accordion {
  margin: 16px 0;
  border-radius: var(--ei-radius-md);
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
  overflow: hidden;
}

.nowa-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ei-black);
  cursor: pointer;
}

.nowa-accordion-summary::-webkit-details-marker {
  display: none;
}

.nowa-accordion-summary svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nowa-accordion[open] .nowa-accordion-summary svg {
  transform: rotate(180deg);
}

.nowa-accordion-body {
  padding: 0 18px 16px;
  border-top: 1px solid var(--ei-border);
  padding-top: 14px;
}

.nowa-accordion-body p:last-child {
  margin-bottom: 0;
}

.nowa-pros-cons {
  margin: 28px 0;
  padding: 20px;
  border-radius: var(--ei-radius-lg);
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
}

.nowa-pc-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ei-black);
}

.nowa-pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.nowa-pc-col {
  padding: 14px 16px;
  border-radius: var(--ei-radius-md);
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
}

.nowa-pc-col h5 {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 800;
}

.nowa-pc-col.is-pros h5 { color: #10b981; }
.nowa-pc-col.is-cons h5 { color: var(--ei-primary); }

.nowa-pc-col ul {
  margin: 0 0 0 18px;
}

.nowa-pc-col li {
  margin-bottom: 6px;
  font-size: 14px;
}

/* Collapsible Comments */
.nowa-comments-area.is-collapsible.is-collapsed .nowa-comments-body {
  display: none;
}

.nowa-comments-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.nowa-comments-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  background: var(--ei-white);
  color: var(--ei-black);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--ei-shadow);
  transition: all 0.2s var(--ei-ease);
}

.nowa-comments-toggle-btn:hover {
  background: var(--ei-primary);
  border-color: var(--ei-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Custom Page Templates: Authors & Archive Index */
.nowa-authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  padding-bottom: 64px;
}

.nowa-author-directory-card {
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-xl);
  padding: 24px;
  box-shadow: var(--ei-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nowa-adc-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nowa-adc-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--ei-radius-full);
  object-fit: cover;
}

.nowa-adc-name {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 4px;
}

.nowa-adc-bio {
  font-size: 14px;
  color: var(--ei-desc);
  line-height: 1.55;
  flex: 1;
}

.nowa-adc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--ei-border);
  font-size: 13px;
  font-weight: 700;
}

.nowa-adc-count {
  color: var(--ei-meta);
}

.nowa-adc-link {
  color: var(--ei-primary);
}

.nowa-index-heading {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.nowa-index-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.nowa-index-cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: var(--ei-radius-md);
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  font-weight: 700;
  color: var(--ei-black);
  transition: all 0.2s ease;
}

.nowa-index-cat-card:hover {
  border-color: var(--ei-primary);
  color: var(--ei-primary);
  transform: translateY(-2px);
}

.nowa-index-cat-count {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--ei-radius-full);
  background: var(--ei-section);
  color: var(--ei-meta);
}

.nowa-index-posts-list {
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-lg);
  overflow: hidden;
  margin-bottom: 64px;
}

.nowa-index-post-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--ei-border);
  transition: background-color 0.15s ease;
}

.nowa-index-post-row:last-child {
  border-bottom: none;
}

.nowa-index-post-row:hover {
  background: var(--ei-section);
}

.nowa-index-post-date {
  font-size: 12px;
  color: var(--ei-meta);
  min-width: 84px;
}

.nowa-index-post-title {
  flex: 1;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ei-black);
}

.nowa-index-post-read {
  font-size: 12px;
  color: var(--ei-desc);
}

/* Clean Article Print Stylesheet */
@media print {
  .nowa-reading-progress-bar,
  .nowa-navbar-header,
  .nowa-breadcrumbs,
  .nowa-share-quick,
  .nowa-toc,
  .nowa-inline-related,
  .nowa-google-source-card,
  .nowa-reaction-box,
  .nowa-share-banner,
  .nowa-post-navigation,
  .nowa-related-posts-section,
  .nowa-comments-area,
  .nowa-sidebar-column,
  .nowa-prefooter-newsletter,
  .nowa-site-footer,
  .nowa-bottom-tab-bar,
  .nowa-app-toast,
  .nowa-app-min-badge,
  .nowa-code-copy-btn {
    display: none !important;
  }

  body,
  .nowa-single-article {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  .nowa-portal-grid {
    display: block !important;
  }
}

/* -------------------------------------------------------------
 * Audio Player, Key Takeaways, Remaining Pill,
 * User Interests Chips & Keyboard Shortcuts Modal
 * ------------------------------------------------------------- */

/* User Interests Chips in Saved Drawer */
.nowa-interests-hint {
  font-size: 13px;
  color: var(--ei-desc);
  margin-bottom: 12px;
  line-height: 1.5;
}

.nowa-interests-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nowa-interest-chip {
  padding: 7px 14px;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
  color: var(--ei-desc);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ei-ease);
}

.nowa-interest-chip:hover {
  border-color: var(--ei-primary);
  color: var(--ei-primary);
}

.nowa-interest-chip.is-selected {
  background: var(--ei-primary);
  border-color: var(--ei-primary);
  color: #ffffff;
}

/* Browser Speech Audio Player */
.nowa-audio-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 24px;
  border-radius: var(--ei-radius-full);
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
}

.nowa-audio-player[hidden] {
  display: none;
}

.nowa-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--ei-radius-full);
  border: none;
  background: var(--ei-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nowa-audio-btn:hover {
  background: var(--ei-primary-hover);
}

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

.nowa-audio-status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ei-meta);
}

.nowa-audio-speed,
.nowa-audio-stop {
  height: 28px;
  padding: 0 10px;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  background: var(--ei-white);
  color: var(--ei-black);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nowa-audio-stop[hidden] {
  display: none;
}

/* Key Takeaways / TL;DR Card */
.nowa-takeaways-card {
  padding: 20px 22px;
  margin-bottom: 28px;
  border-radius: var(--ei-radius-lg);
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  border-left: 4px solid var(--ei-primary);
}

.nowa-takeaways-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ei-black);
  margin-bottom: 12px;
}

.nowa-takeaways-head svg {
  color: var(--ei-primary);
}

.nowa-takeaways-list {
  margin: 0 0 0 18px;
  color: var(--ei-desc);
  font-size: 14.5px;
  line-height: 1.65;
}

.nowa-takeaways-list li {
  margin-bottom: 6px;
}

/* Remaining Reading Time Floating Pill */
.nowa-remaining-pill {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9960;
  padding: 7px 14px;
  border-radius: var(--ei-radius-full);
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  box-shadow: var(--ei-box-shadow);
  color: var(--ei-black);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s var(--ei-ease);
}

.nowa-remaining-pill.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nowa-remaining-pill.is-done {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

@media (max-width: 1023px) {
  body.has-bottom-nav .nowa-remaining-pill {
    bottom: calc(var(--ei-bottom-tab-height) + 14px + env(safe-area-inset-bottom));
    left: 16px;
  }
}

/* Keyboard Shortcuts Modal */
.nowa-shortcuts-modal {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nowa-shortcuts-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nowa-shortcuts-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.72);
  backdrop-filter: blur(6px);
}

.nowa-shortcuts-card {
  position: relative;
  z-index: 1;
  width: min(400px, 94vw);
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-xl);
  padding: 22px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

.nowa-shortcuts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.nowa-shortcuts-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.nowa-shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nowa-sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--ei-radius-sm);
  background: var(--ei-section);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ei-black);
}

.nowa-sc-row kbd {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--ei-border);
  background: var(--ei-white);
  font-size: 12px;
  font-weight: 700;
}

@media print {
  .nowa-audio-player,
  .nowa-remaining-pill,
  .nowa-shortcuts-modal,
  .nowa-announcement-bar,
  .nowa-next-nudge {
    display: none !important;
  }
}

/* -------------------------------------------------------------
 * Announcement Bar, Archive Sort Bar, Zen Mode, Next Nudge
 * ------------------------------------------------------------- */
.nowa-announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  z-index: 10002;
  background: var(--ei-primary);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.nowa-announcement-bar.is-dark {
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nowa-announcement-bar[hidden] {
  display: none;
}

.nowa-announcement-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 12px;
}

.nowa-announcement-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nowa-announcement-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: var(--ei-radius-full);
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  flex-shrink: 0;
}

.nowa-announcement-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nowa-announcement-close {
  position: absolute;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.nowa-announcement-close:hover {
  color: #ffffff;
}

body.has-announcement-bar:not(.is-announcement-closed) .nowa-navbar-header {
  top: 36px;
}

body.has-announcement-bar:not(.is-announcement-closed) .nowa-reading-progress-bar {
  top: 36px;
}

body.has-announcement-bar:not(.is-announcement-closed) .nowa-site-wrapper {
  padding-top: 36px;
}

/* Archive Sort Bar */
.nowa-archive-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 14px;
  border-radius: var(--ei-radius-md);
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
}

.nowa-sort-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ei-meta);
}

.nowa-sort-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nowa-sort-pill {
  padding: 5px 12px;
  border-radius: var(--ei-radius-full);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ei-desc);
  background: var(--ei-section);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nowa-sort-pill:hover {
  color: var(--ei-primary);
  border-color: var(--ei-primary);
}

.nowa-sort-pill.is-active {
  background: var(--ei-primary);
  color: #ffffff;
}

/* Zen / Focus Reading Mode */
.nowa-zen-btn.is-active {
  background: var(--ei-primary);
  border-color: var(--ei-primary);
  color: #ffffff;
}

body.nowa-zen-mode .nowa-sidebar-column,
body.nowa-zen-mode .nowa-breadcrumbs,
body.nowa-zen-mode .nowa-related-posts-section,
body.nowa-zen-mode .nowa-prefooter-newsletter,
body.nowa-zen-mode .nowa-site-footer,
body.nowa-zen-mode .nowa-bottom-tab-bar,
body.nowa-zen-mode .nowa-app-toast,
body.nowa-zen-mode .nowa-app-min-badge,
body.nowa-zen-mode .nowa-announcement-bar {
  display: none !important;
}

body.nowa-zen-mode .nowa-navbar-header {
  opacity: 0.15;
  transition: opacity 0.25s ease;
}

body.nowa-zen-mode .nowa-navbar-header:hover {
  opacity: 1;
}

body.nowa-zen-mode .nowa-portal-grid {
  grid-template-columns: 1fr !important;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

body.nowa-zen-mode .nowa-single-main {
  padding-top: 96px;
}

/* Next Story Floating Nudge */
.nowa-next-nudge {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9965;
  width: min(310px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: var(--ei-radius-lg);
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ei-ease);
}

.nowa-next-nudge[hidden] {
  display: none;
}

.nowa-next-nudge.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nowa-next-nudge-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: var(--ei-meta);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.nowa-next-nudge-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ei-primary);
  margin-bottom: 4px;
}

.nowa-next-nudge-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 16px;
}

.nowa-next-nudge-link strong {
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ei-black);
}

.nowa-next-nudge-link:hover strong {
  color: var(--ei-primary);
}

.nowa-next-nudge-meta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ei-meta);
}

@media (max-width: 1023px) {
  body.has-bottom-nav .nowa-next-nudge {
    bottom: calc(var(--ei-bottom-tab-height) + 14px + env(safe-area-inset-bottom));
    right: 16px;
  }
}

/* -------------------------------------------------------------
 * Search Quick Topic Chips, Search Refine Form & Correction Modal
 * ------------------------------------------------------------- */
.nowa-search-quick-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.nowa-search-topic-chip {
  padding: 6px 13px;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
  color: var(--ei-desc);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nowa-search-topic-chip:hover {
  background: var(--ei-primary);
  border-color: var(--ei-primary);
  color: #ffffff;
}

.nowa-search-refine-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.nowa-search-refine-input,
.nowa-search-refine-select {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--ei-radius-full);
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
  color: var(--ei-black);
  font-size: 13.5px;
  outline: none;
}

.nowa-search-refine-input {
  flex: 1;
  min-width: 200px;
}

.nowa-search-refine-input:focus,
.nowa-search-refine-select:focus {
  border-color: var(--ei-primary);
}

/* Reader Typo / Correction Report */
.nowa-correction-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.nowa-correction-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--ei-meta);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--ei-radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nowa-correction-trigger:hover {
  color: var(--ei-primary);
  background: var(--ei-section);
}

.nowa-correction-modal {
  position: fixed;
  inset: 0;
  z-index: 100065;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.nowa-correction-modal[hidden] {
  display: none;
}

.nowa-correction-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.72);
  backdrop-filter: blur(6px);
}

.nowa-correction-card {
  position: relative;
  z-index: 1;
  width: min(460px, 94vw);
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-xl);
  padding: 22px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

.nowa-correction-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.nowa-correction-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.nowa-correction-card textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--ei-radius-md);
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
  color: var(--ei-black);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
}

.nowa-correction-card textarea:focus {
  border-color: var(--ei-primary);
}

.nowa-correction-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.nowa-correction-hint {
  font-size: 12px;
  color: var(--ei-meta);
}

@media print {
  .nowa-correction-bar,
  .nowa-correction-modal,
  .nowa-privacy-bar,
  .nowa-ad-slot {
    display: none !important;
  }
}

/* -------------------------------------------------------------
 * Privacy Bar, Ad Slots, Contact Form & Bookmarks Page Template
 * ------------------------------------------------------------- */
.nowa-ad-slot {
  margin: 22px 0;
  text-align: center;
  overflow: hidden;
  border-radius: var(--ei-radius-md);
}

.nowa-ad-slot.is-sidebar-top {
  margin-top: 0;
  margin-bottom: 24px;
}

.nowa-privacy-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(20px);
  z-index: 9985;
  width: min(680px, calc(100vw - 28px));
  padding: 12px 16px;
  border-radius: var(--ei-radius-full);
  background: #151c28;
  color: #f8fafc;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s var(--ei-ease);
}

.nowa-privacy-bar[hidden] {
  display: none;
}

.nowa-privacy-bar.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nowa-privacy-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #cbd5e1;
}

.nowa-privacy-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
}

.nowa-privacy-accept-btn {
  padding: 7px 16px;
  border-radius: var(--ei-radius-full);
  border: none;
  background: var(--ei-primary);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.nowa-privacy-accept-btn:hover {
  background: var(--ei-primary-hover);
}

@media (max-width: 1023px) {
  body.has-bottom-nav .nowa-privacy-bar {
    bottom: calc(var(--ei-bottom-tab-height) + 12px + env(safe-area-inset-bottom));
    border-radius: var(--ei-radius-lg);
  }
}

/* Contact Form */
.nowa-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nowa-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .nowa-contact-grid {
    grid-template-columns: 1fr;
  }
}

.nowa-contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nowa-contact-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ei-black);
}

.nowa-contact-field input,
.nowa-contact-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--ei-radius-md);
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
  color: var(--ei-black);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.nowa-contact-field input:focus,
.nowa-contact-field textarea:focus {
  border-color: var(--ei-primary);
}

.nowa-contact-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nowa-contact-status {
  font-size: 13px;
  font-weight: 700;
}

.nowa-contact-status.is-success { color: #10b981; }
.nowa-contact-status.is-error { color: var(--ei-primary); }

/* Bookmarks Page Template */
.nowa-bookmarks-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 64px;
}

@media (max-width: 900px) {
  .nowa-bookmarks-page-grid {
    grid-template-columns: 1fr;
  }
}

.nowa-bookmarks-page-card {
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-xl);
  padding: 24px;
  box-shadow: var(--ei-shadow);
}

.nowa-bp-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 16px;
}

.nowa-bp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* -------------------------------------------------------------
 * 28. Command Palette, Typography Popover, Swipe Notifs & PWA
 * ------------------------------------------------------------- */
.nowa-cmd-quick-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--ei-border);
}

.nowa-cmd-pill {
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
  color: var(--ei-black);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.nowa-cmd-pill:hover {
  border-color: var(--ei-primary);
  color: var(--ei-primary);
}

.nowa-cmd-result-item {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.nowa-cmd-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--ei-section);
}

/* Typography & Offline Popover */
.nowa-typo-wrap {
  position: relative;
  display: inline-flex;
}

.nowa-typo-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 248px;
  padding: 12px;
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius-md);
  box-shadow: var(--ei-shadow-hover);
  z-index: 9985;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nowa-typo-popover[hidden] {
  display: none !important;
}

.nowa-typo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nowa-typo-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ei-desc);
}

.nowa-typo-segs {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  gap: 2px;
}

.nowa-typo-opt {
  border: 0;
  background: transparent;
  color: var(--ei-desc);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.nowa-typo-opt.is-selected {
  background: var(--ei-primary);
  color: #ffffff;
}

.nowa-offline-save-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
  color: var(--ei-black);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2px;
}

.nowa-offline-save-btn.is-cached {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  color: #059669;
}

[data-theme="dark"] .nowa-offline-save-btn.is-cached {
  color: #34d399;
}

.nowa-article-body[data-article-leading="compact"] {
  line-height: 1.55;
}

.nowa-article-body[data-article-leading="relaxed"] {
  line-height: 1.98;
}

.nowa-article-body[data-article-measure="narrow"] > p,
.nowa-article-body[data-article-measure="narrow"] > ul,
.nowa-article-body[data-article-measure="narrow"] > ol,
.nowa-article-body[data-article-measure="narrow"] > blockquote {
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
}

/* Notification Swipe, Dismiss & Priority Levels */
.nowa-notif-row {
  position: relative;
  display: flex;
  align-items: stretch;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nowa-notif-row .nowa-notif-item {
  flex: 1;
  min-width: 0;
  padding-right: 32px;
}

.nowa-notif-row.is-dismissing {
  transform: translateX(48px);
  opacity: 0;
}

.nowa-notif-dismiss {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ei-meta);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.nowa-notif-row:hover .nowa-notif-dismiss,
.nowa-notif-dismiss:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .nowa-notif-dismiss {
    opacity: 0.75;
  }
}

.nowa-notif-dismiss:hover {
  background: var(--ei-section);
  color: var(--ei-primary);
}

.nowa-notif-cat.is-breaking {
  background: rgba(239, 68, 68, 0.16);
  color: #dc2626;
}

.nowa-notif-cat.is-comment {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

[data-theme="dark"] .nowa-notif-cat.is-breaking {
  color: #f87171;
}

[data-theme="dark"] .nowa-notif-cat.is-comment {
  color: #60a5fa;
}

.nowa-notif-foot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--ei-meta);
}

.nowa-notif-restore-btn {
  border: 0;
  background: transparent;
  color: var(--ei-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}

/* Resume Reading Pill & PWA Install Banner */
.nowa-resume-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9965;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: var(--ei-black);
  color: var(--ei-white);
  box-shadow: var(--ei-shadow-hover);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nowa-resume-pill.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nowa-resume-go {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.nowa-resume-close {
  border: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.nowa-pwa-install-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9962;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: var(--ei-radius-lg);
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  box-shadow: var(--ei-shadow-hover);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nowa-pwa-install-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nowa-pwa-install-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nowa-pwa-install-text strong {
  font-size: 13px;
  color: var(--ei-black);
}

.nowa-pwa-install-text span {
  font-size: 11.5px;
  color: var(--ei-desc);
}

.nowa-pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nowa-pwa-install-go {
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--ei-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.nowa-pwa-install-close {
  border: 0;
  background: var(--ei-section);
  color: var(--ei-desc);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  body.has-bottom-nav .nowa-resume-pill,
  body.has-bottom-nav .nowa-pwa-install-banner {
    bottom: calc(var(--ei-bottom-tab-height) + 14px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .nowa-typo-popover {
    right: auto;
    left: 0;
  }
  .nowa-resume-pill {
    right: 14px;
    left: 14px;
    justify-content: space-between;
  }
  .nowa-pwa-install-banner {
    left: 14px;
    right: 14px;
    max-width: none;
  }
}

@media print {
  .nowa-typo-popover,
  .nowa-resume-pill,
  .nowa-pwa-install-banner,
  .nowa-heading-anchor {
    display: none !important;
  }
}

/* -------------------------------------------------------------
 * 29. Series Navigation Box, Feed Sort/Grid View, Heading Anchors & Gallery Lightbox
 * ------------------------------------------------------------- */
.nowa-series-box {
  margin-bottom: 26px;
  padding: 18px 20px;
  border-radius: var(--ei-radius-lg);
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
}

.nowa-series-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ei-border);
}

.nowa-series-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nowa-series-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ei-primary);
}

.nowa-series-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ei-black);
  text-decoration: none;
}

.nowa-series-name:hover {
  color: var(--ei-primary);
}

.nowa-series-progress {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ei-desc);
}

.nowa-series-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nowa-series-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13.5px;
}

.nowa-series-item.is-current {
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  font-weight: 700;
  color: var(--ei-black);
}

.nowa-series-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: var(--ei-border);
  color: var(--ei-desc);
}

.nowa-series-item.is-current .nowa-series-num {
  background: var(--ei-primary);
  color: #ffffff;
}

.nowa-series-link {
  color: var(--ei-desc);
  text-decoration: none;
}

.nowa-series-link:hover {
  color: var(--ei-primary);
}

/* Feed Controls Row: Filter Bar + Sort + View Toggle */
.nowa-feed-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.nowa-feed-controls-row .nowa-feed-filter-bar {
  margin-bottom: 0;
  flex: 1 1 auto;
}

.nowa-feed-right-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nowa-feed-sort-bar {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--ei-section);
  border: 1px solid var(--ei-border);
  gap: 2px;
}

.nowa-sort-pill {
  border: 0;
  background: transparent;
  color: var(--ei-desc);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nowa-sort-pill.is-active {
  background: var(--ei-white);
  color: var(--ei-black);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nowa-view-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--ei-border);
  background: var(--ei-section);
  color: var(--ei-desc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nowa-view-toggle-btn.is-active {
  background: var(--ei-primary);
  border-color: var(--ei-primary);
  color: #ffffff;
}

/* 2-Column Grid View for Feed Cards */
.nowa-feed-stream.is-grid-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.nowa-feed-stream.is-grid-view .nowa-feed-card {
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
}

.nowa-feed-stream.is-grid-view .nowa-feed-thumb-wrapper {
  width: 100%;
  height: 180px;
  flex: none;
}

@media (max-width: 720px) {
  .nowa-feed-stream.is-grid-view {
    grid-template-columns: 1fr;
  }
}

.nowa-feed-cat-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.nowa-read-done-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 11px;
  font-weight: 700;
}

.nowa-read-done-badge[hidden] {
  display: none !important;
}

[data-theme="dark"] .nowa-read-done-badge {
  color: #34d399;
}

/* Heading Deep-Link Copy Anchor */
.nowa-toc-anchor {
  position: relative;
}

.nowa-heading-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: var(--ei-primary);
  font-size: 0.78em;
  font-weight: 800;
  opacity: 0;
  cursor: pointer;
  vertical-align: middle;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nowa-toc-anchor:hover .nowa-heading-anchor,
.nowa-heading-anchor:focus-visible {
  opacity: 0.85;
}

.nowa-heading-anchor:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Lightbox Gallery Prev/Next & Counter */
.nowa-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease;
}

.nowa-lightbox-nav:hover {
  background: var(--ei-primary);
}

.nowa-lightbox-nav.is-prev {
  left: 16px;
}

.nowa-lightbox-nav.is-next {
  right: 16px;
}

.nowa-lightbox-counter {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}
