/* ===================================================================
   VARTA24 NEWS AGENCY MOBILE APP PROTOTYPE - PREMIUM STYLESHEET
   Aesthetics: Rich Glassmorphism, Micro-Animations, Dynamic Themes
=================================================================== */

:root {
  /* Dark Theme Tokens (Default) */
  --bg-core: #090b10;
  --bg-frame: #131722;
  --bg-screen: #0d1017;
  --bg-card: #161b26;
  --bg-card-hover: #1c2230;
  --bg-glass: rgba(22, 27, 38, 0.82);
  --bg-glass-heavy: rgba(13, 16, 23, 0.94);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-inverse: #090b10;
  
  --brand-red: #ff2a4b;
  --brand-red-glow: rgba(255, 42, 75, 0.35);
  --brand-orange: #ff7828;
  --accent-blue: #2563eb;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-active: rgba(255, 42, 75, 0.5);

  --font-family-latin: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-dev: 'Noto Sans Devanagari', 'Outfit', sans-serif;
  
  --shadow-chassis: 0 25px 70px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 42, 75, 0.12);
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 20px 35px -8px rgba(0, 0, 0, 0.6);
  
  --radius-chassis: 48px;
  --radius-screen: 40px;
  --radius-card: 16px;
  --radius-pill: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-core: #eef2f6;
  --bg-frame: #dbe2ea;
  --bg-screen: #ffffff;
  --bg-card: #f8fafc;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-heavy: rgba(255, 255, 255, 0.96);
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;
  
  --brand-red: #e11d48;
  --brand-red-glow: rgba(225, 29, 72, 0.25);
  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-card: rgba(0, 0, 0, 0.1);
  --shadow-chassis: 0 25px 60px -15px rgba(0, 0, 0, 0.18), 0 0 25px rgba(225, 29, 72, 0.08);
  --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.08);
}

/* Base Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family-dev);
  background-color: var(--bg-core);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Ambient Backdrops */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: opacity 0.5s ease;
}
.glow-1 {
  width: 480px;
  height: 480px;
  top: -100px;
  left: 20%;
  background: radial-gradient(circle, var(--brand-red-glow) 0%, transparent 70%);
}
.glow-2 {
  width: 520px;
  height: 520px;
  bottom: -150px;
  right: 15%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
}

/* -------------------------------------------------------------------
   STUDIO CONTROLLER TOP BAR (FOR PRESENTATION TO CLIENT)
------------------------------------------------------------------- */
.demo-controller {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.controller-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--brand-red);
  box-shadow: 0 0 12px var(--brand-red);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
  100% { transform: scale(0.95); opacity: 1; }
}

.brand-title {
  font-family: var(--font-family-latin);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-title .highlight {
  color: var(--brand-red);
}

.badge-prototype {
  font-family: var(--font-family-latin);
  background: rgba(255, 42, 75, 0.15);
  border: 1px solid var(--border-active);
  color: var(--brand-red);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.6px;
}

.controller-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-family: var(--font-family-latin);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.ctrl-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.ctrl-btn.pulse-action {
  background: linear-gradient(135deg, var(--brand-red), #d91b3b);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px var(--brand-red-glow);
}

.ctrl-btn.pulse-action:hover {
  box-shadow: 0 6px 22px rgba(255, 42, 75, 0.6);
  transform: translateY(-2px);
}

.lang-switch-wrapper {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family-latin);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--brand-red);
  color: #ffffff;
}

/* -------------------------------------------------------------------
   DEVICE VIEWPORT & SMARTPHONE CHASSIS
------------------------------------------------------------------- */
.device-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 16px 48px;
  position: relative;
  z-index: 1;
}

.phone-chassis {
  width: 412px;
  height: 860px;
  background: var(--bg-frame);
  border-radius: var(--radius-chassis);
  box-shadow: var(--shadow-chassis);
  border: 6px solid #232936;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

/* Responsive Mode (Full Browser simulation) */
.device-wrapper.responsive-mode .phone-chassis {
  width: 100%;
  max-width: 600px;
  height: calc(100vh - 100px);
  border-radius: 20px;
  border-width: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.device-wrapper.responsive-mode .phone-notch {
  display: none;
}

/* Phone Notch / Dynamic Island */
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 125px;
  height: 25px;
  background: #000;
  border-radius: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}

.notch-speaker {
  width: 45px;
  height: 4px;
  background: #222;
  border-radius: 4px;
}

.notch-camera {
  width: 9px;
  height: 9px;
  background: #111;
  border: 1.5px solid #282828;
  border-radius: 50%;
}

/* Screen Viewport */
.screen-viewport {
  width: 100%;
  height: 100%;
  background: var(--bg-screen);
  border-radius: var(--radius-screen);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Phone Status Bar */
.phone-status-bar {
  height: 42px;
  padding: 12px 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-family-latin);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 30;
  background: transparent;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

/* Home Indicator Bar */
.phone-home-bar {
  width: 135px;
  height: 4px;
  background: var(--text-secondary);
  opacity: 0.5;
  border-radius: 4px;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  pointer-events: none;
}

/* -------------------------------------------------------------------
   APP MAIN HEADER
------------------------------------------------------------------- */
.app-header {
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 25;
}

.app-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 10px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.15rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  position: relative;
}

.icon-btn:hover {
  background: var(--bg-card);
}

.icon-btn .badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--brand-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-red);
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  user-select: none;
}

.logo-red {
  color: var(--brand-red);
}

.logo-white {
  color: var(--text-primary);
}

.live-pill {
  font-family: var(--font-family-latin);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 42, 75, 0.18);
  border: 1px solid var(--border-active);
  color: var(--brand-red);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  letter-spacing: 0.5px;
}

.live-blinker {
  width: 6px;
  height: 6px;
  background: var(--brand-red);
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
}

/* Expandable Search Drawer */
.search-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
  padding: 0 18px;
}

.search-drawer.open {
  max-height: 60px;
  padding: 4px 18px 12px;
}

.search-input-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input-box i {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-input-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  width: 100%;
}

.clear-search {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
}

.clear-search.visible {
  display: block;
}

/* Stories / Highlight Bar */
.stories-bar {
  display: flex;
  gap: 12px;
  padding: 8px 18px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stories-bar::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.story-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.story-item:hover .story-ring {
  transform: scale(1.06);
}

.story-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-screen);
}

.story-title-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 64px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Breaking News Marquee */
.breaking-ticker {
  background: linear-gradient(90deg, rgba(255, 42, 75, 0.18), rgba(255, 120, 40, 0.08));
  border-top: 1px solid rgba(255, 42, 75, 0.25);
  border-bottom: 1px solid rgba(255, 42, 75, 0.25);
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
}

.ticker-badge {
  background: var(--brand-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 4px 0 12px rgba(255, 42, 75, 0.4);
}

.ticker-content-track {
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
  position: relative;
}

.ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-slide 24s linear infinite;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* Category Navigation Chips */
.categories-nav {
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.cat-chip:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.cat-chip.active {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: transparent;
  font-weight: 700;
}

/* -------------------------------------------------------------------
   APP VIEWS CONTAINER & SCROLLABLE REGIONS
------------------------------------------------------------------- */
.app-views-container {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 74px; /* Space for bottom nav */
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.app-view {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.app-view.active-view {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------
   FEATURED HERO NEWS CARD
------------------------------------------------------------------- */
.featured-news-wrapper {
  padding: 14px 18px 8px;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.hero-image-box {
  width: 100%;
  height: 210px;
  position: relative;
  overflow: hidden;
}

.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-card:hover .hero-image-box img {
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(9, 11, 16, 0.92) 100%);
}

.hero-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(255, 42, 75, 0.4);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d1d5db;
  font-size: 0.72rem;
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-row-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mini-btn:hover {
  background: var(--brand-red);
}

/* -------------------------------------------------------------------
   NEWS FEED LIST & COMPACT CARDS
------------------------------------------------------------------- */
.news-feed-list {
  padding: 10px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 12px;
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.news-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.news-card-thumb {
  width: 105px;
  height: 85px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-indicator {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.news-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-category {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.news-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-action-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.card-action-icon:hover {
  color: var(--brand-red);
}

.card-action-icon.bookmarked {
  color: var(--accent-gold);
}

/* -------------------------------------------------------------------
   VIEW 2: VIDEO REELS / SHORTS
------------------------------------------------------------------- */
.reels-container {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reel-card {
  position: relative;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.reel-bg-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.reel-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-badge-reel {
  background: var(--brand-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 5px;
}

.reel-side-actions {
  position: absolute;
  right: 14px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.reel-action-btn {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.reel-action-btn:hover {
  transform: scale(1.1);
  background: var(--brand-red);
}

.reel-count {
  font-size: 0.65rem;
  margin-top: 2px;
}

.reel-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 50px;
}

.reel-headline {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.reel-play-btn-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 42, 75, 0.85);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px var(--brand-red-glow);
  transition: transform var(--transition-fast);
}

.reel-play-btn-large:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

/* -------------------------------------------------------------------
   VIEW 3: E-PAPER TAB
------------------------------------------------------------------- */
.epaper-container {
  padding: 14px 18px;
}

.epaper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.epaper-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.epaper-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.pdf-download-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--brand-red);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.pdf-download-btn:hover {
  background: var(--brand-red);
  color: #fff;
}

.epaper-page-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 16px;
}

.page-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}

.page-chip.active {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

/* E-Paper Sheet Styling (Newspaper look) */
.epaper-sheet {
  background: #fdfbf7;
  color: #1a1a1a;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid #dcd7ce;
  font-family: 'Times New Roman', serif;
}

.epaper-masthead {
  text-align: center;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.epaper-masthead h2 {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.epaper-tagline {
  font-size: 0.72rem;
  font-style: italic;
  display: block;
}

.epaper-meta-bar {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 4px 0;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: bold;
}

.epaper-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

.epaper-lead-col {
  border-right: 1px solid #e2ddd4;
  padding-right: 10px;
}

.epaper-col-cat {
  background: #1a1a1a;
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 6px;
  display: inline-block;
  font-family: var(--font-family-latin);
  margin-bottom: 4px;
}

.epaper-lead-col h4 {
  font-size: 0.95rem;
  line-height: 1.25;
  margin-bottom: 6px;
  font-weight: 800;
}

.epaper-lead-col p {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #333;
  margin-bottom: 8px;
}

.epaper-mini-img img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

.epaper-side-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.epaper-side-item h5 {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 3px 0;
}

.epaper-side-item p {
  font-size: 0.68rem;
  line-height: 1.3;
  color: #444;
}

.epaper-zoom-tip {
  text-align: center;
  font-size: 0.7rem;
  color: #666;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed #ccc;
  font-family: var(--font-family-latin);
}

/* -------------------------------------------------------------------
   VIEW 4 & 5: BOOKMARKS & PROFILE
------------------------------------------------------------------- */
.bookmarks-wrapper {
  padding-top: 10px;
}

.section-title-bar {
  padding: 8px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title-bar h3 {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-pill {
  background: var(--brand-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.profile-container {
  padding: 16px 18px;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.profile-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-badge {
  font-size: 0.75rem;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.settings-group {
  margin-bottom: 22px;
}

.settings-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.setting-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.setting-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.setting-text i {
  color: var(--brand-red);
  font-size: 1rem;
}

.settings-btn {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all var(--transition-fast);
}

.settings-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card);
}

.settings-btn span {
  flex: 1;
  text-align: left;
  margin-left: 10px;
}

.arrow-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #374151;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--brand-red);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.app-version-info {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* -------------------------------------------------------------------
   STICKY FLOATING AUDIO NEWS PLAYER
------------------------------------------------------------------- */
.floating-audio-bar {
  position: absolute;
  bottom: 74px;
  left: 14px;
  right: 14px;
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.95), rgba(217, 27, 59, 0.95));
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 10px 14px;
  display: none;
  align-items: center;
  gap: 12px;
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 42, 75, 0.4);
  z-index: 45;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-audio-bar.active {
  display: flex;
}

.audio-pulse {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.audio-pulse span {
  width: 3px;
  background: #ffffff;
  border-radius: 3px;
  animation: soundwave 1.2s ease-in-out infinite;
}

.audio-pulse span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.audio-pulse span:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.audio-pulse span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.audio-pulse span:nth-child(4) { height: 14px; animation-delay: 0.4s; }

@keyframes soundwave {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

.audio-info {
  flex: 1;
  overflow: hidden;
}

.audio-badge {
  font-size: 0.65rem;
  opacity: 0.85;
  text-transform: uppercase;
  font-weight: 700;
}

.audio-headline {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.audio-controls {
  display: flex;
  gap: 6px;
}

.audio-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.audio-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* -------------------------------------------------------------------
   BOTTOM NAVIGATION BAR
------------------------------------------------------------------- */
.bottom-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px 8px;
  z-index: 40;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex: 1;
  padding: 6px 0;
  transition: all var(--transition-fast);
}

.nav-item .nav-icon {
  font-size: 1.15rem;
  transition: transform var(--transition-fast);
}

.nav-item .nav-label {
  font-size: 0.68rem;
  font-weight: 600;
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item.active {
  color: var(--brand-red);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------
   IN-APP PUSH NOTIFICATION BANNER (REALISTIC DROP-DOWN)
------------------------------------------------------------------- */
.push-notification-banner {
  position: absolute;
  top: -120px;
  left: 14px;
  right: 14px;
  background: rgba(19, 23, 34, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-active);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--brand-red-glow);
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.push-notification-banner.active {
  transform: translateY(170px);
}

.push-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.push-content {
  flex: 1;
  overflow: hidden;
}

.push-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--brand-red);
  font-weight: 800;
  margin-bottom: 2px;
}

.push-source {
  letter-spacing: 0.5px;
}

.push-time {
  color: var(--text-muted);
}

.push-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.push-snippet {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.push-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px;
  cursor: pointer;
}

.push-close:hover {
  color: #fff;
}

/* -------------------------------------------------------------------
   FULL ARTICLE READER SHEET MODAL
------------------------------------------------------------------- */
.article-modal {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: none;
}

.article-modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}

.article-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 94%;
  background: var(--bg-screen);
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-drag-handle {
  padding: 8px 0 4px;
  display: flex;
  justify-content: center;
}

.drag-bar {
  width: 44px;
  height: 5px;
  background: var(--border-card);
  border-radius: 10px;
}

.article-top-nav {
  padding: 6px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.sheet-close-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}

.sheet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-circle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.action-circle-btn:hover {
  background: var(--brand-red);
  color: #fff;
}

.action-circle-btn.bookmarked {
  color: var(--accent-gold);
}

.article-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 40px;
}

.article-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.article-category-badge {
  background: rgba(255, 42, 75, 0.15);
  border: 1px solid var(--border-active);
  color: var(--brand-red);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.article-read-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.article-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}

.author-timestamp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
}

.author-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.pub-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.like-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.like-btn.liked {
  background: rgba(255, 42, 75, 0.15);
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.like-btn.liked i {
  font-weight: 900;
  animation: popScale 0.3s ease;
}

@keyframes popScale {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.article-hero-image-box {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.article-hero-image-box img {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  display: block;
}

.image-caption {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 6px 8px;
  background: var(--bg-card);
  font-style: italic;
}

.article-text-content {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.article-text-content p {
  margin-bottom: 14px;
}

.article-text-content.large-font {
  font-size: 1.15rem;
}

.share-box-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 14px;
  margin-top: 20px;
}

.share-box-card h5 {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.share-social-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.share-social-btn {
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-family: var(--font-family-latin);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition-fast);
}

.share-social-btn:hover {
  transform: translateY(-2px);
}

.whatsapp-btn { background: #25d366; }
.facebook-btn { background: #1877f2; }
.x-btn { background: #000000; border: 1px solid #333; }
.copy-btn { background: #4b5563; }

/* -------------------------------------------------------------------
   STORY / WEB REEL FULLSCREEN VIEWER MODAL
------------------------------------------------------------------- */
.story-viewer-modal {
  position: absolute;
  inset: 0;
  z-index: 90;
  background: #000;
  display: none;
  flex-direction: column;
}

.story-viewer-modal.open {
  display: flex;
}

.story-card-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.story-progress-bar {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  z-index: 10;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: #fff;
  transition: width 0.1s linear;
}

.story-header {
  position: absolute;
  top: 24px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.story-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.story-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-red);
  border-radius: 50%;
}

.story-close-btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}

.story-media-box {
  width: 100%;
  height: 100%;
  position: relative;
}

.story-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 18px 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.95) 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-category {
  color: var(--brand-red);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.story-caption-overlay h3 {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.35;
}

.story-action-btn {
  background: var(--brand-red);
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  box-shadow: 0 4px 15px var(--brand-red-glow);
}

/* -------------------------------------------------------------------
   TOAST NOTIFICATION (BOTTOM-CENTER)
------------------------------------------------------------------- */
.custom-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111827;
  color: #ffffff;
  border: 1px solid var(--border-active);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.custom-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.custom-toast i {
  color: var(--accent-green);
}

/* -------------------------------------------------------------------
   RESPONSIVE DESIGN (FOR NATIVE MOBILE TESTING)
------------------------------------------------------------------- */
@media (max-width: 600px) {
  body {
    padding: 0;
  }
  .demo-controller {
    padding: 10px 14px;
  }
  .brand-title {
    font-size: 0.95rem;
  }
  .badge-prototype {
    display: none;
  }
  .ctrl-btn span {
    display: none;
  }
  .ctrl-btn {
    padding: 8px 10px;
  }
  .device-wrapper {
    padding: 0;
  }
  .phone-chassis {
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .screen-viewport {
    border-radius: 0;
  }
  .phone-notch {
    display: none;
  }
}
