@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root{
  color-scheme: dark;
  --bg: #06080e;
  --bg-gradient: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(143,145,254,0.15), rgba(6,8,14,0));
  --surface: #0c101c;
  --surface-card: #101524;
  --surface-hover: #161c30;
  --surface-glass: rgba(12, 16, 28, 0.72);
  --line: #1e2538;
  --line-hover: #333d59;
  --line-accent: rgba(164, 233, 206, 0.35);
  --fg: #f5f7fc;
  --muted: #8e97ae;
  --muted-light: #b4bdd2;
  --accent: #8ce8c7;
  --accent-glow: rgba(140, 232, 199, 0.28);
  --violet: #9d9dfe;
  --violet-glow: rgba(157, 157, 254, 0.25);
  --gold: #fcd34d;
  --gold-glow: rgba(252, 211, 77, 0.32);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 14px 34px -8px rgba(0,0,0,0.5);
  --shadow-lg: 0 25px 60px -15px rgba(0,0,0,0.7);
  --shadow-accent: 0 0 35px -5px rgba(140,232,199,0.28);
}

*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  max-width: 100%;
  overflow-x: hidden;
}
body{
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--fg);
  margin: 0;
  font: 15px/1.65 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.6;cursor:wait}
h1,h2,h3,h4,.brand,.eyebrow,.btn{font-family:'Space Grotesk',sans-serif}
h1,h2,h3{line-height:1.14;letter-spacing:-.045em}
h1{font-size:clamp(2.6rem,5.2vw,5.2rem)}
h2{font-size:clamp(1.7rem,3.2vw,2.7rem)}
p{color:var(--muted)}
.container{max-width:1300px;margin:auto;padding:0 36px}

/* --- Atmospheric Background Mesh & Orbs --- */
.ambient-mesh{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-orb{
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  animation: orbDrift 20s infinite alternate ease-in-out;
}
.orb-1{
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(140,232,199,0.3) 0%, rgba(157,157,254,0.15) 50%, transparent 70%);
  top: -120px;
  right: -80px;
}
.orb-2{
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(157,157,254,0.25) 0%, rgba(252,211,77,0.1) 50%, transparent 70%);
  bottom: 10%;
  left: -200px;
  animation-duration: 25s;
  animation-direction: alternate-reverse;
}
@keyframes orbDrift{
  0%{transform: translate(0, 0) scale(1);}
  50%{transform: translate(40px, 30px) scale(1.12);}
  100%{transform: translate(-30px, 60px) scale(0.95);}
}

/* --- Premium Glass Site Header --- */
.site-head{
  max-width: 1400px;
  margin: auto;
  padding: 22px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 100;
}
.brand{
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.08em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: transform .25s ease;
}
.brand:hover{transform: scale(1.03);}
.brand i{
  font-style: normal;
  color: var(--accent);
  margin-right: 8px;
  display: inline-block;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-shadow: 0 0 14px var(--accent-glow);
  animation: starGlow 3s infinite ease-in-out;
}
@keyframes starGlow{
  0%,100%{
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--accent-glow));
  }
  50%{
    transform: scale(1.18);
    opacity: 0.88;
    filter: drop-shadow(0 0 10px var(--accent));
  }
}
.brand span{
  letter-spacing: .2em;
  font: 700 9px 'Space Grotesk',sans-serif;
  color: var(--muted);
  margin-left: 8px;
  background: rgba(255,255,255,0.06);
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}
.nav{
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted-light);
}
.nav a{
  position: relative;
  transition: color .2s ease;
  padding: 4px 0;
}
.nav a::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  border-radius: 2px;
  transition: width .25s ease;
}
.nav a:hover{color: var(--fg);}
.nav a:hover::after{width: 100%;}
.back:hover{color: var(--accent)}

select,input,textarea{
  background: rgba(18, 23, 37, 0.75);
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 12px;
  padding: 12px 16px;
  outline: none;
  min-width: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
select:focus,input:focus,textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(20, 26, 42, 0.95);
}
textarea{resize:vertical}
.langselect select{
  width: auto;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .05em;
  padding: 8px 14px;
  border-radius: 20px;
}

/* --- Modern Split Hero Section --- */
.hero{
  min-height: 520px;
  position: relative;
  padding: 55px 0 65px;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 52px;
  z-index: 10;
}
.hero-content{position:relative;z-index:2}
.hero-content h1{
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  margin: 16px 0 22px;
  line-height: 1.06;
  letter-spacing: -.05em;
}
.hero-content h1 em{
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #aef3d9 35%, var(--violet) 75%, #fcd34d 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineGradient 6s linear infinite;
}
@keyframes shineGradient{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
.period{color:var(--accent);text-shadow:0 0 20px var(--accent-glow)}
.hero-content p{
  max-width: 530px;
  font-size: 17px;
  line-height: 1.68;
  color: var(--muted-light);
  margin: 0 0 32px;
}
.hero-actions{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.hero-badges{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}
.hero-badge-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .02em;
}
.hero-badge-item i{
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
  text-shadow: 0 0 10px var(--accent-glow);
}
.eyebrow{
  font-size: 11px;
  letter-spacing: .22em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}
.live-dot{
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  box-shadow: 0 0 14px var(--accent);
  vertical-align: middle;
}

/* --- High-End Buttons --- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, #76dfb8 100%);
  color: #071716;
  font-weight: 700;
  padding: 13px 24px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  font-size: 13.5px;
  letter-spacing: -.01em;
  box-shadow: 0 4px 18px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .22s ease, filter .22s ease;
  position: relative;
  overflow: hidden;
}
.btn::after{
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn:hover::after{left: 140%;}
.btn:hover{
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(140,232,199,0.38);
}
.btn:active{transform: translateY(0) scale(0.98);}
.btn.secondary{
  background: rgba(26, 33, 49, 0.85);
  color: var(--fg);
  border-color: rgba(255,255,255,0.12);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}
.btn.secondary:hover{
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.btn.ghost{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--fg);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.btn.ghost:hover{
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(140,232,199,0.07);
}

/* --- Scroll Progress Bar --- */
.scroll-progress-bar{
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #76dfb8 40%, var(--violet) 80%, var(--gold) 100%);
  box-shadow: 0 0 16px var(--accent-glow);
  z-index: 10000;
  transition: width .06s linear;
}

/* --- Live Social Proof Ticker --- */
.trending-ticker-wrap{
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: blur(16px);
  overflow: hidden;
  position: relative;
  font-size: 11.5px;
  letter-spacing: .03em;
  padding: 9px 0;
  z-index: 90;
}
.ticker-inner{
  max-width: 1400px;
  margin: auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}
.ticker-badge{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(140, 232, 199, 0.12);
  border: 1px solid rgba(140, 232, 199, 0.3);
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: .08em;
  box-shadow: 0 0 12px rgba(140,232,199,0.15);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.live-dot.pulse{animation:pulseGlow 1.8s infinite ease-in-out}
@keyframes pulseGlow{
  0%,100%{transform:scale(1);opacity:1;box-shadow:0 0 10px #8de8c7}
  50%{transform:scale(1.35);opacity:.6;box-shadow:0 0 22px #8de8c7}
}
.ticker-track{
  overflow: hidden;
  position: relative;
  flex: 1;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.ticker-items{
  display: flex;
  align-items: center;
  gap: 26px;
  color: #9aa3b7;
  white-space: nowrap;
  animation: tickerSlide 46s linear infinite;
}
.ticker-items:hover{animation-play-state:paused}
.ticker-item strong{color:var(--fg)}
.ticker-sep{color:#2a334d}
@keyframes tickerSlide{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}

/* --- Hero Visual Card with Animated Conic Border & 3D Badges --- */
.hero-visual-wrap{
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card-frame{
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(14, 18, 30, 0.7);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg), 0 0 45px -5px rgba(140,232,199,0.22);
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease;
  isolation: isolate;
}
/* Shimmering Rotating Border */
.hero-card-frame::before{
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: conic-gradient(from 0deg, transparent 0%, var(--accent) 30%, transparent 60%, var(--violet) 85%, transparent 100%);
  animation: rotateBorder 8s linear infinite;
  z-index: -1;
  opacity: 0.7;
}
.hero-card-frame::after{
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background: #0d111d;
  z-index: -1;
}
@keyframes rotateBorder{
  0%{transform: rotate(0deg);}
  100%{transform: rotate(360deg);}
}
.hero-card-frame:hover{
  transform: translateY(-8px) scale(1.018);
  box-shadow: 0 40px 80px -10px rgba(0,0,0,.85), 0 0 65px -4px rgba(140,232,199,0.38);
}
.hero-header-img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.hero-card-frame:hover .hero-header-img{transform: scale(1.045);}
.hero-glass-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,8,14,0.06) 0%, rgba(6,8,14,0.3) 50%, rgba(6,8,14,0.92) 100%);
  pointer-events: none;
}
@keyframes floatLevitate{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-9px)}
}
@keyframes floatCounter{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(8px)}
}
.hero-floating-top{
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 30px;
  background: rgba(12, 16, 28, 0.86);
  border: 1px solid rgba(140, 232, 199, 0.4);
  backdrop-filter: blur(16px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  animation: floatLevitate 5.5s infinite ease-in-out;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.hero-floating-bottom{
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(12, 16, 28, 0.88);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  animation: floatCounter 6.5s infinite ease-in-out;
  box-shadow: 0 14px 35px rgba(0,0,0,.6);
}
.hero-floating-bottom h4{
  margin: 0;
  font-size: 14.5px;
  color: var(--fg);
  font-family: 'Space Grotesk',sans-serif;
}
.hero-floating-bottom p{
  margin: 3px 0 0;
  font-size: 11.5px;
  color: var(--muted-light);
}
.hero-floating-pill{
  background: linear-gradient(135deg, rgba(140,232,199,0.22), rgba(157,157,254,0.22));
  border: 1px solid rgba(140,232,199,0.45);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(140,232,199,0.25);
}
@keyframes auroraBreathe{
  0%,100%{transform:translate(0,0) scale(1);opacity:.42}
  50%{transform:translate(25px,-20px) scale(1.22);opacity:.8}
}
.hero-ambient-glow{
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157,157,254,.25) 0%, rgba(140,232,199,.18) 45%, transparent 70%);
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
  animation: auroraBreathe 11s infinite ease-in-out;
}

/* =========================================================================
   PSYCHOLOGICAL RETENTION: GEDANKENANSTOSS DES TAGES (DAILY SPARK)
   ========================================================================= */
.spark-section{
  margin: 10px 0 45px;
  position: relative;
  z-index: 20;
}
.spark-card{
  position: relative;
  background: linear-gradient(135deg, rgba(18, 24, 40, 0.78) 0%, rgba(12, 15, 26, 0.88) 100%);
  border: 1px solid rgba(252, 211, 77, 0.28);
  border-radius: 20px;
  padding: 24px 30px;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px -10px rgba(0,0,0,0.6), 0 0 35px -8px var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.spark-card::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), transparent);
}
.spark-left{
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.spark-icon-wrap{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.2), rgba(140, 232, 199, 0.15));
  border: 1px solid rgba(252, 211, 77, 0.35);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(252, 211, 77, 0.2);
  animation: pulseGlow 3s infinite ease-in-out;
}
.spark-header{
  font-size: 10.5px;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spark-question{
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
  line-height: 1.45;
}
.spark-btn-reveal{
  background: rgba(252, 211, 77, 0.15);
  border: 1px solid rgba(252, 211, 77, 0.35);
  color: #ffde7a;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all .25s ease;
  box-shadow: 0 0 16px rgba(252, 211, 77, 0.12);
}
.spark-btn-reveal:hover{
  background: var(--gold);
  color: #07090e;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(252, 211, 77, 0.4);
}
.spark-revealed{
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  line-height: 1.65;
  color: #cbd5e1;
  animation: revealFade .4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.spark-revealed.active{display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;}
@keyframes revealFade{
  0%{opacity:0;transform:translateY(8px)}
  100%{opacity:1;transform:translateY(0)}
}

/* =========================================================================
   STORY SECTION, LIVE SEARCH & CHIPS
   ========================================================================= */
.story-section{padding:30px 0 110px}
.section-top,.flex-between{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-top h2{margin:10px 0 0}
.count,.badge{
  font: 700 11px 'Space Grotesk',sans-serif;
  letter-spacing: .12em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filterrow{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
  align-items: center;
}
.chip{
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-light);
  background: rgba(14, 18, 30, 0.6);
  backdrop-filter: blur(12px);
  transition: all .22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
}
.chip:hover{
  border-color: var(--line-hover);
  color: var(--fg);
  background: rgba(22, 28, 46, 0.8);
  transform: translateY(-1px);
}
.chip.active{
  background: linear-gradient(135deg, var(--accent) 0%, #72dcba 100%);
  border-color: var(--accent);
  color: #071716;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.chip-random{
  background: rgba(157, 157, 254, 0.12);
  border: 1px solid rgba(157, 157, 254, 0.32);
  color: #c7c8fe;
}
.chip-random:hover{
  background: var(--violet);
  color: #07090e;
  border-color: var(--violet);
  box-shadow: 0 4px 18px var(--violet-glow);
}

/* --- Search Bar with Live Filter --- */
.search{
  display: flex;
  gap: 12px;
  margin-bottom: 34px;
  max-width: 580px;
}
.search input{
  background: rgba(15, 20, 34, 0.85);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: all .22s ease;
}
.search input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.4);
}
.search button{
  background: linear-gradient(135deg, #1d2436, #28324b);
  border: 1px solid var(--line-hover);
  color: #fff;
  border-radius: 14px;
  padding: 0 26px;
  font-weight: 600;
  font-size: 13.5px;
  transition: all .22s ease;
  white-space: nowrap;
}
.search button:hover{
  background: var(--accent);
  color: #081416;
  border-color: var(--accent);
  box-shadow: 0 4px 18px var(--accent-glow);
  transform: translateY(-1px);
}

/* =========================================================================
   3D INTERACTIVE SPOTLIGHT STORY CARDS
   ========================================================================= */
.grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  perspective: 1200px;
}
@media (max-width:1050px){.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}}
@media (max-width:640px){.grid{grid-template-columns:1fr}}

.story-card-wrapper{
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: opacity .4s ease, transform .4s ease;
}
.story-card{
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  /* Dynamic Cursor Spotlight & Luxury Obsidian Gradient */
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(140,232,199,0.11), transparent 50%),
              linear-gradient(180deg, #121727 0%, #0a0e19 100%);
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform .32s cubic-bezier(.16,1,.3,1), border-color .32s ease, box-shadow .32s ease;
  transform-style: preserve-3d;
}

/* Iridescent Shimmer Border on Hover */
.story-card::before{
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(140,232,199,0.7) 0%, rgba(157,157,254,0.6) 40%, rgba(252,211,77,0.5) 75%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 5;
}
.story-card:hover{
  transform: translateY(-9px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1.018);
  box-shadow: 0 28px 56px -10px rgba(0,0,0,.85), 0 0 38px -6px var(--accent-glow);
  border-color: rgba(140,232,199,0.35);
}
.story-card:hover::before{opacity: 1;}

/* Serendipity Pulse Target (When selected by randomizer) */
.story-card-wrapper.highlight-pulse .story-card{
  animation: targetPulse 2.8s ease-in-out;
}
@keyframes targetPulse{
  0%,100%{box-shadow: 0 8px 24px -4px rgba(0,0,0,0.5);}
  20%,60%{box-shadow: 0 0 50px 8px var(--gold-glow), 0 0 0 3px var(--gold); border-color: var(--gold); transform: translateY(-10px) scale(1.03);}
  40%,80%{box-shadow: 0 0 35px 4px var(--accent-glow), 0 0 0 2px var(--accent); border-color: var(--accent); transform: translateY(-8px) scale(1.02);}
}

/* --- Card Thumbnails --- */
.thumb{
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #0b0f1b;
}
.thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.story-card:hover .thumb img{transform: scale(1.07);}
.thumb b{
  font: 200px/1 'Space Grotesk',sans-serif;
  opacity: .42;
  transform: rotate(-15deg);
}
.thumb-1{background:radial-gradient(circle at 70% 20%,#4a72aa,#1e1c44 65%,#0d142b)}
.thumb-2{background:radial-gradient(circle at 30% 70%,#3d9374,#123040 70%)}
.thumb-3{background:radial-gradient(circle at 70% 30%,#b56f82,#422446 70%)}
.thumb-4{background:radial-gradient(circle at 30% 60%,#87894a,#2b323c 70%)}
.thumb-5{background:radial-gradient(circle at 30% 60%,#5a73b2,#252c4a 70%)}
.thumb-no,.thumb-small{
  position: absolute;
  top: 15px;
  left: 19px;
  font: 700 10.5px 'Space Grotesk',sans-serif;
  letter-spacing: .15em;
  color: rgba(255,255,255,0.75);
}
.thumb-small{
  top: auto;
  bottom: 14px;
  left: auto;
  right: 18px;
}

/* --- Bookmark Micro-Interaction Button --- */
.bookmark-btn{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(9, 12, 20, 0.78);
  backdrop-filter: blur(14px);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all .25s ease;
}
.bookmark-btn:hover{
  background: var(--gold);
  color: #07090e;
  border-color: var(--gold);
  transform: scale(1.15);
  box-shadow: 0 0 20px var(--gold-glow);
}
.bookmark-btn.active{
  background: var(--gold);
  color: #07090e;
  border-color: var(--gold);
  box-shadow: 0 0 22px var(--gold-glow);
  transform: scale(1.08);
}
.bookmark-btn.active svg{fill: #07090e;}
.read-time-pill{
  font-size: 11px;
  color: var(--muted-light);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 3px 10px;
  border-radius: 12px;
}

/* --- Card Content --- */
.card-info{
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pill{
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.card-info h3{
  font-size: 21px;
  margin: 12px 0 10px;
  line-height: 1.28;
  letter-spacing: -.03em;
  color: var(--fg);
  transition: color .2s ease;
}
.story-card:hover .card-info h3{color: #ffffff;}
.card-info p{
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}
.card-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
  margin-top: auto;
  font-size: 11.5px;
  color: #929bb0;
  letter-spacing: .03em;
}
.card-bottom span{
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform .2s ease;
}
.story-card:hover .card-bottom span{transform: translateX(4px);}

/* --- Bookmark Starburst Particles Animation --- */
.starburst-particle{
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  animation: burstParticle .6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 10;
}
@keyframes burstParticle{
  0%{transform: translate(0,0) scale(1); opacity: 1;}
  100%{transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0;}
}

/* --- Floating Quick-Action Dock (Psychological Retention) --- */
.floating-dock{
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(12, 16, 28, 0.88);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 45px -8px rgba(0,0,0,0.7), 0 0 25px -4px var(--accent-glow);
  backdrop-filter: blur(20px);
  padding: 8px 14px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
  opacity: 0;
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), opacity .3s ease;
}
.floating-dock.visible{
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.dock-btn{
  background: transparent;
  border: none;
  color: var(--muted-light);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}
.dock-btn:hover{
  background: rgba(255,255,255,0.08);
  color: var(--fg);
}
.dock-btn.highlight{
  background: rgba(140, 232, 199, 0.15);
  color: var(--accent);
  border: 1px solid rgba(140, 232, 199, 0.3);
}
.dock-btn.highlight:hover{
  background: var(--accent);
  color: #071716;
}
.dock-sep{
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.12);
}

/* --- Interactive Article Reactions & Reader Engagement --- */
.article-reactions{
  margin: 35px 0 20px;
  padding: 22px 26px;
  background: rgba(14, 18, 30, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.reaction-label{
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted-light);
}
.reaction-buttons{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.react-btn{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--fg);
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .2s ease;
}
.react-btn:hover{
  transform: translateY(-2px) scale(1.05);
  background: rgba(140, 232, 199, 0.14);
  border-color: var(--accent);
  box-shadow: 0 4px 15px var(--accent-glow);
}
.react-btn.reacted{
  background: var(--accent);
  color: #071716;
  border-color: var(--accent);
  box-shadow: 0 4px 18px var(--accent-glow);
}

/* --- Bookmark Toast --- */
.bookmark-toast{
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: rgba(14, 19, 34, 0.94);
  border: 1px solid var(--gold);
  color: var(--fg);
  padding: 13px 22px;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,.7), 0 0 25px -5px var(--gold-glow);
  backdrop-filter: blur(18px);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10001;
  transform: translateY(100px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .3s ease;
  pointer-events: none;
}
.bookmark-toast.show{
  transform: translateY(0);
  opacity: 1;
}

.pager{text-align:center;padding-top:35px}
.pager a{margin:5px}
.empty{padding:30px}

/* --- Article Reading Experience --- */
.article-wrap{max-width:880px;margin:0 auto;padding:50px 30px 100px;position:relative;z-index:10}
.back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 45px;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 600;
  transition: color .2s ease;
}
.article-title{
  font-size: clamp(1.8rem,3vw,2.6rem);
  margin: 14px 0 18px;
  line-height: 1.18;
  letter-spacing: -.03em;
}
.article-lead{
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-light);
}
.meta{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #afb7c5;
  margin: 26px 0 38px;
}
.avatar{
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #081517;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 0 14px var(--accent-glow);
}
.article-cover{
  height: 360px;
  border-radius: 20px;
  background: radial-gradient(circle at 65% 40%,#455e9c,#1e2750 35%,#111626 80%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
}
.article-cover strong{font:300px/1 'Space Grotesk';color:#b0e5d2;opacity:.6}
.article-cover span{position:absolute;left:30px;bottom:20px;z-index:1;font-size:9.5px;letter-spacing:.2em}
.article-body{
  margin: 60px auto 70px;
  max-width: 760px;
  font-size: 17.5px;
  color: #d1d6e3;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.article-body h2,.article-body h3,.article-body h4{
  margin: 36px 0 16px;
  color: #f3f5fc;
  line-height: 1.3;
}
.article-body h2{font-size:24px;border-bottom:1px solid rgba(255,255,255,0.06);padding-bottom:10px}
.article-body h3{font-size:19px}
.article-body h4{font-size:16px}
.article-body p{color:#c7cedc;margin-bottom:22px}
.article-body li{margin:10px 0}
.end-card{
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  background: linear-gradient(135deg, #131b28 0%, #0d121c 100%);
  padding: 38px;
  box-shadow: var(--shadow-md);
}
.end-card h2{margin:0 0 10px}
.end-card p{margin-bottom:24px}

footer{
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 10;
  background: rgba(6, 8, 14, 0.7);
  backdrop-filter: blur(14px);
}
.footer-inner{
  max-width: 1300px;
  margin: auto;
  padding: 60px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.footer-inner p{max-width:460px;font-size:13px;color:var(--muted)}
.footer-links{display:flex;gap:24px;font-size:13.5px}
.footer-links a:hover{color:var(--accent)}
.footer-inner small{color:var(--muted)}

/* --- Images & Legal Components --- */
.ai-thumb-badge{
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #dbeafe;
  font: 700 9.5px 'Space Grotesk',sans-serif;
  letter-spacing: .08em;
  padding: 4px 9px;
  border-radius: 20px;
  z-index: 2;
}
.article-img-wrap{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #101524;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
}
.article-hero-img{width:100%;max-height:500px;object-fit:cover;display:block}
.ai-pill{
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(8, 11, 18, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.image-legal-note{font-size:11px;color:var(--muted);margin-top:10px;text-align:right}
.ai-disclaimer-box{
  margin: 50px 0 25px;
  padding: 24px 28px;
  background: rgba(16, 22, 36, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  font-size: 13.5px;
  color: #9aa3b6;
  line-height: 1.7;
}
.ai-disclaimer-box strong{color:#f3f5fc;display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:14px}
.legal-wrap{max-width:880px;margin:50px auto 100px;padding:0 30px}
.legal-nav{display:flex;gap:12px;margin:25px 0 35px}
.legal-card{
  background: #111624;
  border: 1px solid #252d40;
  border-radius: 18px;
  padding: 40px;
  line-height: 1.8;
}
.legal-card h1{font-size:36px;margin:0 0 25px;color:#f3f5fc}
.legal-card h2{font-size:20px;margin:35px 0 12px;color:var(--accent);border-bottom:1px solid #242d3e;padding-bottom:8px}
.legal-card h3{font-size:16px;margin:22px 0 8px;color:#e2e8f0}
.legal-card p,.legal-card address{color:#abb4c5;font-size:14px;margin-bottom:14px;font-style:normal}
.legal-card ul{color:#abb4c5;font-size:14px;padding-left:22px;margin-bottom:18px}
.legal-card li{margin-bottom:6px}
.legal-highlight{background:#151b2c;border:1px solid #2b364e;border-radius:10px;padding:16px 20px;margin:18px 0}

/* --- Responsive AdSense Container (Dünn & Klein) --- */
.adsense-banner-wrap {
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  margin: 6px 0 12px;
  border-radius: 6px;
  background: rgba(14, 18, 30, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px 4px;
  box-sizing: border-box;
  transition: all .2s ease;
}
.adsense-banner-wrap:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(14, 18, 30, 0.45);
}
.ad-label-micro {
  font-size: 7.5px;
  color: var(--muted);
  letter-spacing: .1em;
  margin-bottom: 2px;
  line-height: 1.1;
  text-transform: uppercase;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 600;
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ad-label-micro span {
  color: var(--accent);
  font-size: 7px;
}
.adsense-banner-wrap ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  height: 50px !important;
  max-height: 50px !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
}
.adsense-banner-wrap ins.adsbygoogle iframe {
  background: transparent !important;
  max-height: 50px !important;
}
ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}
.adsense-banner-wrap:has(ins[data-ad-status="unfilled"]) {
  display: none !important;
}

/* --- Public Blog Responsive Media Queries --- */
@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 50px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-visual-wrap {
    max-width: 100%;
  }
  .hero-card-frame {
    max-width: 100%;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .spark-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
  }
  .container {
    padding: 0 16px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .site-head {
    padding: 14px 16px !important;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
  }
  .brand {
    font-size: 20px;
  }
  .brand span {
    font-size: 8px;
    padding: 2px 5px;
  }
  .nav {
    display: none !important;
  }
  .langselect select {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Ticker Mobile Optimization */
  .trending-ticker-wrap {
    padding: 7px 0;
    max-width: 100%;
    overflow: hidden;
  }
  .ticker-inner {
    padding: 0 14px;
    gap: 10px;
    max-width: 100%;
    overflow: hidden;
  }
  .ticker-badge {
    font-size: 8.5px;
    padding: 2px 7px;
    gap: 4px;
  }
  .ticker-track {
    max-width: calc(100% - 90px);
    overflow: hidden;
  }
  .ticker-items {
    gap: 18px;
    font-size: 11px;
  }

  /* Hero Section Mobile Overhaul */
  .hero {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 25px 0 35px !important;
    min-height: auto;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .hero-content {
    width: 100%;
    max-width: 100%;
  }
  .hero-content h1 {
    font-size: clamp(2rem, 8.5vw, 2.7rem) !important;
    margin: 12px 0 16px;
    line-height: 1.1;
    word-break: break-word;
    hyphens: auto;
  }
  .hero-content p {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 20px;
    word-break: break-word;
  }
  .adsense-banner-wrap {
    margin: 4px 0 10px !important;
    padding: 2px 6px 3px !important;
    max-width: 100% !important;
    border-radius: 5px;
  }
  .adsense-banner-wrap ins.adsbygoogle {
    height: 48px !important;
    max-height: 48px !important;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
    justify-content: center;
  }
  .hero-badges {
    gap: 10px 14px;
    padding-top: 16px;
    margin-top: 18px;
  }
  .hero-badge-item {
    font-size: 11.5px;
  }

  /* Hero Card Frame */
  .hero-visual-wrap {
    width: 100%;
    max-width: 100%;
    margin-top: 5px;
  }
  .hero-card-frame {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
  }
  .hero-header-img {
    height: 220px !important;
    width: 100%;
  }
  .hero-floating-top {
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 9.5px;
    letter-spacing: .06em;
  }
  .hero-floating-bottom {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .hero-floating-bottom h4 {
    font-size: 13px;
  }
  .hero-floating-bottom p {
    font-size: 10.5px;
  }
  .hero-floating-pill {
    padding: 3px 8px;
    font-size: 9.5px;
  }

  /* Spark Section */
  .spark-section {
    width: 100%;
    max-width: 100%;
    margin: 25px 0 10px;
  }
  .spark-card {
    padding: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .spark-left {
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
  }
  .spark-icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .spark-question {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
  }
  .spark-btn-reveal {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 12.5px;
  }
  .spark-revealed {
    padding: 16px;
    font-size: 13px;
    border-radius: 14px;
  }

  /* Stories Top & Filters */
  .story-section {
    padding: 25px 0 80px;
    width: 100%;
    overflow: hidden;
  }
  .section-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100%;
  }
  .section-top h2 {
    font-size: clamp(1.8rem, 6.5vw, 2.2rem);
    margin: 6px 0 0;
  }
  .filterrow {
    margin: 16px 0 20px;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
  }
  .chip {
    padding: 6px 12px;
    font-size: 11.5px;
    border-radius: 20px;
  }

  /* Search Bar */
  .search {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
  }
  .search input {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 13.5px;
  }
  .search button {
    width: 100% !important;
    padding: 12px !important;
    font-size: 13.5px;
    justify-content: center;
  }

  /* Grid & Story Cards */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100%;
  }
  .story-card-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .story-card {
    width: 100%;
    max-width: 100%;
  }
  .card-info {
    padding: 18px;
  }
  .card-info h3 {
    font-size: 17px;
    line-height: 1.35;
    word-break: break-word;
  }
  .card-info p {
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr !important;
    padding: 35px 16px !important;
    gap: 24px;
    width: 100%;
  }

  /* Article Detail View */
  .article-wrap {
    padding: 20px 16px 70px !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .article-title {
    font-size: clamp(1.8rem, 7.5vw, 2.4rem) !important;
    word-break: break-word;
    hyphens: auto;
  }
  .article-lead {
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
  }
  .article-cover {
    height: 190px !important;
  }
  .article-hero-img {
    max-height: 280px !important;
    width: 100%;
    object-fit: cover;
  }
  .article-body {
    font-size: 15px !important;
    line-height: 1.7;
    width: 100%;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .article-body pre,
  .article-body code,
  .article-body table,
  .article-body img {
    max-width: 100% !important;
    overflow-x: auto;
    word-break: break-word;
  }
  .article-reactions {
    padding: 18px 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .article-reactions .reaction-buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .react-btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
    font-size: 12.5px;
  }
  .ai-disclaimer-box {
    padding: 16px;
    font-size: 12px;
    margin: 30px 0 20px;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
  }

  /* Floating Quick-Dock */
  .floating-dock {
    width: calc(100% - 24px) !important;
    max-width: 360px;
    bottom: 14px;
    padding: 6px 8px;
    gap: 4px;
    justify-content: space-around;
  }
  .dock-btn {
    font-size: 11px;
    padding: 6px 8px;
  }
  .dock-sep {
    height: 16px;
  }
}


/* ==========================================================================
   ATLAS BLOG — ADMIN & CONTROL CENTER DESIGN SYSTEM (RESPONSIVE)
   Supports: Handy (Mobile < 640px), Phablet/Tablet Portrait (640px-1023px),
   Tablet Landscape & Laptop (1024px-1199px), Desktop Pro (>= 1200px)
   ========================================================================== */

/* --- Admin Base Resets & Tokens --- */
body.admin-body {
  background: #090d16;
  color: #f3f5fc;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.admin-body.menu-open {
  overflow: hidden;
}

.auth {
  max-width: 460px;
  width: calc(100% - 32px);
  margin: 10vh auto;
  padding: 34px 28px;
}

.auth h1 {
  font-size: clamp(26px, 5vw, 36px);
  margin: 10px 0 6px;
}

.card {
  border-radius: 18px;
  background: #111624;
  border: 1px solid #232d42;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.stack {
  display: grid;
  gap: 16px;
  width: 100%;
}

.stack label {
  display: grid;
  gap: 7px;
  color: #b8c1d2;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
}

.stack .btn {
  width: 100%;
}

.error {
  color: #ff9ca8 !important;
}

.success {
  color: #98eed4;
}

.alert {
  background: #151d2c;
  border: 1px solid #28374f;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.55;
  box-sizing: border-box;
  min-width: 0;
}

.alert.info {
  background: #111d31;
  border-color: #243d63;
  color: #bfdbfe;
}

.alert.info strong {
  color: #e0f2fe;
}

.alert.error {
  background: #2a141b;
  border-color: #5c202a;
  color: #ffc2c9;
}

.alert.success {
  background: #102521;
  border-color: #1f4f44;
  color: #a7f3d0;
}

.alert.banner-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Layout Grid --- */
.dashboard {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  position: relative;
}

/* --- Desktop Sidebar --- */
.sidebar {
  border-right: 1px solid #1e2638;
  padding: 30px 18px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #090d16;
  z-index: 100;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #222d42 transparent;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #222d42;
  border-radius: 4px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 34px;
}

.sidebar-header .brand {
  margin: 0;
}

.sidebar-close {
  display: none;
  background: #182235;
  border: 1px solid #28374f;
  color: #cbd5e1;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all .18s ease;
}

.sidebar-close:hover {
  background: #23314b;
  color: #fff;
}

.side-title {
  font: 700 10px 'Space Grotesk', sans-serif;
  letter-spacing: .15em;
  color: #64748b;
  margin: 0 10px 14px;
  text-transform: uppercase;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  color: #94a3b8;
  border-radius: 9px;
  margin: 2px 0;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all .18s ease;
  white-space: nowrap;
}

.side-link:hover,
.side-link.active {
  background: #192336;
  color: var(--accent);
}

.side-link.active {
  font-weight: 600;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #1c2538;
  display: grid;
  gap: 4px;
}

.sidebar-backdrop {
  display: none;
}

/* --- Mobile Header Bar & Quick Nav --- */
.admin-mobile-bar {
  display: none;
}

.mobile-quick-nav {
  display: none;
}

/* --- Main Dashboard Content Area --- */
.dash-main {
  padding: 40px clamp(20px, 3.5vw, 60px);
  min-width: 0;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.dash-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.dash-top h1 {
  margin: 4px 0 3px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.dash-top p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.status {
  border: 1px solid #2d453f;
  background: #11201f;
  border-radius: 25px;
  padding: 7px 16px;
  font-size: 12px;
  color: #9ee6cb;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* --- Stats Grid --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 32px;
}

.stat {
  padding: 22px 24px;
  display: grid;
  gap: 8px;
  min-width: 0;
  box-sizing: border-box;
}

.stat span {
  font-size: 12px;
  color: #9ba7be;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat strong {
  font: 700 clamp(26px, 3.2vw, 38px)/1.1 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  color: #f3f5fc;
  overflow-wrap: anywhere;
}

.stat small {
  font-size: 10.5px;
  letter-spacing: .06em;
  color: #76e0c6;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* --- Dashboard 2-Column Panels Layout --- */
.dash-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

.dash-columns > * {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.panel {
  padding: 28px;
  margin-bottom: 22px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.panel:last-child {
  margin-bottom: 0;
}

.panel h2 {
  font-size: clamp(19px, 2.2vw, 24px);
  margin: 6px 0 12px;
}

.panel p {
  font-size: 13.5px;
  line-height: 1.6;
}

.panel-heading {
  margin-bottom: 22px;
}

.spark {
  color: var(--accent);
}

.mini-note, .muted, .footnote {
  font-size: 11px;
  color: #808ba1;
}

.mini-note {
  margin-top: 18px;
}

/* --- Form Grids & Controls --- */
.form2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.form3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.form2 > *,
.form3 > * {
  min-width: 0;
}

select, input, textarea {
  background: #151b2a;
  border: 1px solid #283348;
  color: var(--fg);
  border-radius: 11px;
  padding: 11px 14px;
  outline: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .18s ease, box-shadow .18s ease;
  font-size: 13.5px;
}

select {
  text-overflow: ellipsis;
  cursor: pointer;
}

select:focus, input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(164, 233, 206, 0.15);
}

/* --- Automation Box in Settings --- */
.auto-summary-box {
  background: #0f1422;
  border: 1px solid #1f2a3f;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  display: grid;
  gap: 14px;
  box-sizing: border-box;
}

.auto-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.auto-stat-item {
  background: #090e18;
  border: 1px solid #192336;
  border-radius: 10px;
  padding: 11px 13px;
  min-width: 0;
  box-sizing: border-box;
}

.auto-stat-item small {
  display: block;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.auto-stat-item strong {
  font-size: 13.5px;
  color: #f3f5fc;
  display: block;
  overflow-wrap: anywhere;
}

.auto-summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #1b2438;
  padding-top: 12px;
}

.cron-info-box {
  background: #0b0f1a;
  border: 1px solid #1c263c;
  border-radius: 11px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
  box-sizing: border-box;
}

.cron-info-box code {
  background: #141c2c;
  padding: 2px 7px;
  border-radius: 5px;
  color: #e2e8f0;
  font-family: monospace;
  font-size: 11.5px;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
  display: inline-block;
  max-width: 100%;
}

/* --- Progress Box --- */
.progress-box {
  background: #0e1422;
  border: 1px solid #233048;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
}

.progress-bar {
  height: 9px;
  background: #172134;
  border-radius: 10px;
  overflow: hidden;
  margin: 11px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  width: 0%;
  transition: width .3s ease;
}

.progress-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
}

/* --- Bulk Action Bar --- */
.bulk-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(14, 20, 32, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(140, 232, 199, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(140, 232, 199, 0.12);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 14px;
  animation: bulkSlideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  flex-wrap: wrap;
}

@keyframes bulkSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bulk-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bulk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(140, 232, 199, 0.14);
  color: var(--accent, #8ce8c7);
  border: 1px solid rgba(140, 232, 199, 0.35);
  font: 700 12px 'Space Grotesk', sans-serif;
  letter-spacing: .04em;
  padding: 4px 12px;
  border-radius: 999px;
}

.bulk-sub {
  font-size: 13px;
  color: #cbd5e1;
}

.bulk-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.custom-chk {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--accent, #8ce8c7);
  border-radius: 4px;
  vertical-align: middle;
  transition: transform 0.15s ease;
}

.custom-chk:hover {
  transform: scale(1.15);
}

.post-table-row {
  transition: background-color 0.18s ease;
}

.post-table-row.row-selected {
  background: rgba(140, 232, 199, 0.065) !important;
}

.post-table-row.row-selected td:first-child {
  border-left: 3px solid var(--accent, #8ce8c7);
}

/* --- Articles Table --- */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #1e273b;
  margin-top: 10px;
  background: #0e1320;
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  text-align: left;
}

th {
  font: 700 10.5px 'Space Grotesk', sans-serif;
  letter-spacing: .12em;
  color: #79869e;
  padding: 13px 14px;
  border-bottom: 1px solid #253148;
  background: #111827;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 14px;
  border-bottom: 1px solid #1c263c;
  font-size: 12.5px;
  color: #aab5c7;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: 0;
}

td strong {
  display: block;
  color: #e7ebf3;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 3px;
}

td small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}

.admin-thumb-wrap {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 42px;
  aspect-ratio: 1200 / 630;
  border-radius: 8px;
  overflow: hidden;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  background: #151c2c;
}

.admin-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px;
  border: 1px solid #273147;
  background: #151c2c;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), border-color .25s ease, box-shadow .25s ease;
}

.admin-thumb-wrap:hover .admin-thumb {
  transform: scale(1.08);
  border-color: var(--accent, #8ce8c7);
}

.admin-thumb-fallback {
  width: 80px;
  height: 42px;
  aspect-ratio: 1200 / 630;
  border-radius: 8px;
  background: linear-gradient(135deg, #161f33, #242f4c);
  border: 1px solid #252f46;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font: 700 10.5px 'Space Grotesk', sans-serif;
  letter-spacing: .05em;
  flex-shrink: 0;
}

/* Language Chips */
.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 170px;
  min-width: 80px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: #141c2c;
  border: 1px solid #233148;
  color: #a2b0c9;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lang-pill.pub {
  background: rgba(142, 232, 199, 0.12);
  border-color: rgba(142, 232, 199, 0.32);
  color: #8de8c7;
}

.lang-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #55627a;
  display: inline-block;
}

.lang-dot.pub {
  background: #8de8c7;
  box-shadow: 0 0 6px rgba(142, 232, 199, 0.6);
}

.actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 170px;
}

.textbutton {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 5px 9px;
  border-radius: 7px;
  color: #a5e5d0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.textbutton:hover {
  background: rgba(164, 233, 206, 0.15);
  border-color: var(--accent);
  color: #fff;
}

.textbutton.danger {
  color: #ff9ca8;
  background: rgba(255, 100, 120, 0.08);
  border-color: rgba(255, 100, 120, 0.16);
}

.textbutton.danger:hover {
  background: rgba(255, 100, 120, 0.22);
  border-color: #ff9ca8;
  color: #fff;
}

/* --- Logs & Security Panel --- */
.log {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #1e2638;
  min-width: 0;
}

.log:last-child {
  border-bottom: 0;
}

.log strong {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #e2e8f0;
}

.log small {
  display: block;
  font-size: 10.5px;
  color: #718096;
  margin-top: 4px;
}

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
}

.dot.green {
  background: #92f4ce;
  box-shadow: 0 0 8px rgba(146, 244, 206, 0.45);
}

.dot.red {
  background: #ff92a0;
  box-shadow: 0 0 8px rgba(255, 146, 160, 0.45);
}

/* --- Analytics & Growth Dashboard --- */
.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.trend-pill.pos {
  background: rgba(142, 232, 199, 0.14);
  color: #8de8c7;
  border: 1px solid rgba(142, 232, 199, 0.28);
}

.trend-pill.neg {
  background: rgba(255, 146, 160, 0.14);
  color: #ff92a0;
  border: 1px solid rgba(255, 146, 160, 0.28);
}

.trend-pill.neu {
  background: rgba(157, 167, 187, 0.14);
  color: #9da7bb;
  border: 1px solid rgba(157, 167, 187, 0.28);
}

.analytics-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.timeframe-group {
  display: inline-flex;
  background: #0b101c;
  border: 1px solid #1f293e;
  border-radius: 11px;
  padding: 4px;
  gap: 4px;
}

.timeframe-btn {
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all .18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.timeframe-btn:hover {
  color: var(--fg);
  background: #162033;
}

.timeframe-btn.active {
  background: var(--accent);
  color: #091a18;
  border-color: var(--accent);
  font-weight: 700;
}

.chart-card-inner {
  background: #0b101c;
  border: 1px solid #1d263b;
  border-radius: 15px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.chart-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
}

.chart-svg-wrap {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-dot {
  cursor: pointer;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), r .2s;
}

.chart-dot:hover {
  transform: scale(1.6);
  transform-origin: center;
}

.hourly-chart-bars {
  display: flex;
  align-items: flex-end;
  height: 120px;
  gap: 4px;
  padding-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.hourly-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  min-width: 0;
}

.hourly-bar {
  width: 100%;
  min-height: 2px;
  background: #223048;
  border-radius: 3px 3px 0 0;
  transition: height .3s ease, background .2s ease;
}

.hourly-bar-col:hover .hourly-bar {
  background: var(--accent);
}

.analytics-deep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.analytics-deep-grid > * {
  min-width: 0;
}

.analytics-box {
  background: #0b101c;
  border: 1px solid #1e283d;
  border-radius: 15px;
  padding: 22px;
  min-width: 0;
  box-sizing: border-box;
}

.analytics-box-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1a2336;
}

.analytics-box-title h3 {
  font-size: 15px;
  margin: 0;
  color: #f3f5fc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font: 700 10px 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}

.rank-badge.top-1 {
  background: linear-gradient(135deg, #ffd700, #ffae00);
  color: #201300;
}

.rank-badge.top-2 {
  background: linear-gradient(135deg, #e0e0e0, #b0b0b0);
  color: #1c1c1c;
}

.rank-badge.top-3 {
  background: linear-gradient(135deg, #cd7f32, #a05a18);
  color: #fff;
}

.rank-badge.top-other {
  background: #1c263a;
  color: var(--muted);
}

.device-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.browser-os-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #1c263c;
}

.bar-track {
  width: 100%;
  height: 7px;
  background: #172134;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 5px;
}

.bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  transition: width .5s ease;
}

.dsgvo-seal {
  background: linear-gradient(135deg, rgba(142, 232, 199, 0.08), rgba(143, 145, 254, 0.06));
  border: 1px solid rgba(142, 232, 199, 0.22);
  border-radius: 15px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  box-sizing: border-box;
}

.dsgvo-seal-icon {
  font-size: 38px;
  color: #8de8c7;
  filter: drop-shadow(0 0 12px rgba(142, 232, 199, 0.35));
}

.dsgvo-seal h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #f3f5fc;
}

.dsgvo-seal-bullets {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 11.5px;
  color: #a4b0c7;
}

.dsgvo-seal-bullets span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (DESKTOP, TABLET, HANDY)
   ========================================================================== */

/* --- Medium Desktop & Small Laptops (1024px to 1199px) --- */
@media (max-width: 1199px) {
  .dashboard {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .dash-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* --- Tablets & Mobile (< 1024px) --- */
@media (max-width: 1023px) {
  .dashboard {
    display: block;
    width: 100%;
  }

  /* Sticky Mobile Bar */
  .admin-mobile-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 800;
    background: rgba(9, 13, 22, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid #1e2638;
    padding: 12px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
  }

  .mobile-toggle-btn {
    background: #141b2a;
    border: 1px solid #27344d;
    color: #f3f5fc;
    border-radius: 9px;
    padding: 7px 13px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all .18s ease;
  }

  .mobile-toggle-btn:hover {
    background: #1c263c;
    border-color: var(--accent);
  }

  .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 3.5px;
    width: 15px;
  }

  .hamburger-icon span {
    display: block;
    height: 2px;
    background: #f3f5fc;
    border-radius: 2px;
    width: 100%;
  }

  .status-compact {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 20px;
    background: #11201f;
    border: 1px solid #2d453f;
  }

  /* Quick-Nav Chip Bar */
  .mobile-quick-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 18px;
    background: #0b0f1a;
    border-bottom: 1px solid #1a2233;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
  }

  .mobile-quick-nav::-webkit-scrollbar {
    display: none;
  }

  .quick-chip {
    flex-shrink: 0;
    padding: 6px 13px;
    background: #121827;
    border: 1px solid #202b3f;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    transition: all .18s ease;
    white-space: nowrap;
  }

  .quick-chip:hover,
  .quick-chip.active {
    background: #192539;
    color: var(--accent);
    border-color: rgba(164, 233, 206, 0.45);
  }

  .quick-chip.highlight {
    color: var(--accent);
    border-color: rgba(164, 233, 206, 0.35);
  }

  .quick-chip.external {
    color: #a0aec0;
  }

  /* Off-Canvas Sidebar Drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background: #0d121f;
    border-right: 1px solid #232e44;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    padding: 22px 18px 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 4px 26px;
  }

  .sidebar-close {
    display: inline-flex;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 12, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }

  .sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-bottom {
    display: grid;
    margin-top: auto;
  }

  /* Content area on Tablets */
  .dash-main {
    padding: 28px 20px 60px;
  }

  .dash-top h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dash-columns {
    grid-template-columns: 1fr;
  }

  .analytics-deep-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Smartphones / Mobile (< 768px) --- */
@media (max-width: 767px) {
  .dash-main {
    padding: 20px 14px 60px;
  }

  .panel {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .dash-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dash-top .status {
    align-self: flex-start;
  }

  .dash-top h1 {
    font-size: 32px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 24px;
  }

  .stat {
    padding: 16px 14px;
  }

  .stat strong {
    font-size: 26px;
  }

  .stat span {
    font-size: 11px;
  }

  .stat small {
    font-size: 9.5px;
  }

  /* Prevent iOS zoom by setting input font size to 16px */
  select, input, textarea {
    font-size: 16px;
    padding: 12px 14px;
  }

  .form2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .auto-summary-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .auto-summary-footer form,
  .auto-summary-footer .btn {
    width: 100%;
  }

  .timeframe-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .timeframe-btn {
    text-align: center;
    padding: 7px 4px;
    font-size: 11px;
  }

  .dsgvo-seal {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 18px;
  }

  .dsgvo-seal-icon {
    margin: 0 auto;
  }

  .dsgvo-seal-bullets {
    justify-content: center;
  }

  .alert.banner-alert {
    flex-direction: column;
    align-items: stretch;
  }

  .alert.banner-alert form,
  .alert.banner-alert .btn {
    width: 100%;
  }

  .browser-os-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* --- Small Mobile Screens (< 460px) --- */
@media (max-width: 459px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .stat strong {
    font-size: 28px;
  }

  .auto-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .device-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   USER ROLES & RIGHTS MANAGEMENT (RBAC) DESIGN SYSTEM
   ========================================================================== */
.dash-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.user-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.user-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #6879ff), #78f5dc);
  color: #090d16;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-pill-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pill-name {
  font-weight: 600;
  font-size: 13px;
  color: #f1f5f9;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-badge.role-superadmin {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.22));
  color: #d8b4fe;
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.role-badge.role-admin {
  background: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.role-badge.role-moderator {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.role-badge.role-user {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-desc {
  color: var(--text-muted, #94a3b8);
  font-size: 13.5px;
  margin: 4px 0 0;
  max-width: 680px;
}

.user-action-card {
  background: rgba(18, 25, 41, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  animation: slideDown 0.25s ease-out;
}

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

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.perm-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.perm-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.perm-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(120, 245, 220, 0.3);
}

.perm-card input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent, #6879ff);
  cursor: pointer;
}

.perm-card-content strong {
  display: block;
  font-size: 13px;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.perm-card-content small {
  display: block;
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.35;
}

.perm-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 480px;
}

.perm-pill {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  white-space: nowrap;
}

.perm-pill.all {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
  font-weight: 600;
}

.custom-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.user-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.user-modal {
  background: #111625;
  border: 1px solid #28344e;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  padding: 28px;
  position: relative;
  animation: modalScale 0.2s ease-out;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --- Article Edit Modal & Pic-Maker Extensions --- */
.article-modal {
  background: #101524;
  border: 1px solid #28344e;
  border-radius: 20px;
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7);
  padding: 30px;
  position: relative;
  animation: modalScale 0.22s ease-out;
}

.article-thumb-preview-box {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  background: #090c14;
  border: 1px solid #1c263b;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  align-items: center;
}
@media (max-width: 640px) {
  .article-thumb-preview-box {
    grid-template-columns: 1fr;
  }
}

.article-thumb-preview-img {
  width: 100%;
  height: 126px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #23304a;
  background: #000;
  display: block;
  transition: all 0.3s ease;
}

.article-thumb-preview-img.flash-glow {
  box-shadow: 0 0 30px #8ce8c7;
  border-color: #8ce8c7;
  transform: scale(1.02);
}

.admin-thumb.flash-glow {
  box-shadow: 0 0 20px #8ce8c7 !important;
  border-color: #8ce8c7 !important;
  transform: scale(1.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lang-tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #202b40;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.lang-tab-btn {
  background: #0c101c;
  border: 1px solid #1e273a;
  color: #9aa7c0;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.lang-tab-btn:hover {
  background: #141b2c;
  color: #fff;
  border-color: #2e3e5c;
}

.lang-tab-btn.active {
  background: rgba(140, 232, 199, 0.12);
  border-color: #8ce8c7;
  color: #8ce8c7;
  box-shadow: 0 0 10px rgba(140, 232, 199, 0.2);
}

.lang-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: #64748b;
}

.lang-status-dot.pub {
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #101626;
  border: 1px solid #8ce8c7;
  color: #f1f5f9;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(140, 232, 199, 0.25);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

