/* NewsTrp – Google News Style */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500&display=swap');

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface2: #f1f3f4;
  --border: #dadce0;
  --text: #202124;
  --text2: #5f6368;
  --text3: #80868b;
  --accent: #1a73e8;
  --accent2: #1557b0;
  --shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .08);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, .15);
  --radius: 12px;
  --sidebar-w: 240px;
  --right-w: 296px;
  --font: 'Google Sans', 'Roboto', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .25s, color .25s
}

a {
  text-decoration: none;
  color: inherit
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit
}

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

input {
  font-family: inherit;
  border: none;
  outline: none;
  background: transparent
}

/* ── HEADER ── */
#app-header {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1), 0 2px 6px 2px rgba(60, 64, 67, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 16px;
  gap: 16px;
}

@media(max-width: 600px) {
  .header-inner {
    padding: 0 8px;
    gap: 8px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

@media(max-width: 600px) {
  .brand {
    margin-left: 0;
    min-width: auto;
  }
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  font-family: 'Google Sans', sans-serif;
}

.brand-name span {
  color: var(--accent);
}

.search-bar {
  flex: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border-radius: 8px;
  padding: 0 16px;
  height: 48px;
  max-width: 720px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  min-width: 0;
  margin: 0 auto;
}

.search-bar:hover {
  background: var(--surface);
  box-shadow: 0 1px 1px 0 rgba(65, 69, 73, 0.3), 0 1px 3px 1px rgba(65, 69, 73, 0.15);
}

.search-bar input {
  flex: 1;
  font-size: 16px;
  color: var(--text);
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text3);
}

.search-icon {
  color: var(--text3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

@media(max-width: 960px) {
  .search-bar {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--surface) !important;
    max-width: none;
    border-radius: 0;
    padding: 0 16px;
    gap: 8px;
    box-shadow: none !important;
  }

  .search-bar.mobile-active {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  min-width: 160px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text2);
  transition: all .2s;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--surface2);
  color: var(--text);
}

.icon-btn:active {
  background: rgba(0, 0, 0, 0.1);
}

#search-back {
  margin-right: 4px;
}

.lang-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  height: 38px;
  padding: 0 12px;
  position: relative;
  transition: all .2s;
  min-width: 130px;
  cursor: pointer;
}

.lang-picker:hover {
  background: var(--surface);
  border-color: var(--accent);
}

.lang-picker-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.lang-picker-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.lang-picker-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.lang-picker::after {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%231a73e8%22%20d%3D%22M7%2010l5%205%205-5z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex-shrink: 0;
  margin-left: 2px;
}

@media(max-width: 600px) {
  .lang-selector {
    min-width: 48px;
    width: 48px;
  }

  .lang-switch-select {
    padding: 0;
    color: transparent;
    font-size: 1px;
  }

  .lang-icon {
    left: 50%;
    transform: translateX(-50%);
  }

  .lang-selector::after {
    display: none;
  }
}

/* ── CATEGORY TABS ── */
.category-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.category-tabs {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 12px;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.cat-tab:hover {
  color: var(--text);
}

.cat-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.cat-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

.sidebar-social {
  margin-top: auto;
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--border);
}

.social-link {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-color, var(--accent));
  transition: all .2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-footer {
  padding: 12px 20px 24px;
  font-size: 11px;
  color: var(--text3);
  line-height: 1.5;
}

/* ── MAIN CONTENT ── */
.app-layout {
  display: flex;
  min-height: calc(100vh - 112px);
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 112px;
  height: calc(100vh - 112px);
  overflow-y: auto;
  padding: 8px 0 24px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  scrollbar-width: thin;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding-bottom: 100px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: view-enter .18s ease both;
}

@keyframes view-enter {
  from {
    opacity: .72;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .view.active,
  .modal-panel {
    animation: none;
    transition: none;
  }
}

/* Sidebar Nav */
.sidebar-nav {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.snav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: background .15s, color .15s;
}

.snav-item:hover {
  background: var(--surface2);
  color: var(--text);
}

.snav-item.active {
  background: rgba(26, 115, 232, .1);
  color: var(--accent);
}

[data-theme="dark"] .snav-item.active {
  background: rgba(138, 180, 248, .12);
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 16px 28px 6px;
}

.sidebar-topics {
  padding-bottom: 24px;
}

#sidebar-topic-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 12px;
}

.topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.topic-item:hover {
  background: var(--surface2);
  color: var(--text);
}

.topic-item.active {
  color: var(--accent);
  font-weight: 600;
}

/* ── FEED LAYOUT ── */
.feed-layout {
  display: flex;
  align-items: flex-start;
}

.feed-col {
  flex: 1;
  min-width: 0;
  padding-bottom: 80px;
}

.right-sidebar {
  width: var(--right-w);
  flex-shrink: 0;
  padding: 16px;
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  scrollbar-width: none;
}

.right-sidebar::-webkit-scrollbar {
  display: none;
}

/* ── HERO ── */
.hero-section {
  margin: 16px 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
  background: var(--surface2);
}

.hero-section:hover .hero-overlay {
  background: rgba(0, 0, 0, .6);
}

.hero-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .15) 55%, transparent 100%);
  transition: background .3s;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}

.hero-source {
  font-size: 12px;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* ── NEWS CARDS ── */
.news-feed {
  display: flex;
  flex-direction: column;
}

.news-card {
  display: grid;
  grid-template-columns: 1fr 108px;
  grid-template-rows: auto 1fr;
  gap: 12px 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
  background: var(--surface);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  grid-column: 1 / -1;
}

.news-card:hover {
  background: rgba(60, 64, 67, .04);
}

.card-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-source-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-dot {
  color: var(--text3);
  font-size: 14px;
}

.card-time {
  font-size: 12px;
  color: var(--text3);
}

.card-source-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.src-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  color: var(--text3);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.card-source-name {
  font-size: 11px;
  color: var(--text2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.card-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover .card-title {
  color: var(--accent);
}

.card-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  min-height: 32px;
}

.card-category {
  background: rgba(26, 115, 232, 0.08);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.card-img-container {
  width: 108px;
  height: 108px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface2);
  align-self: center;
}

@media(max-width: 600px) {
  .news-card {
    grid-template-columns: 1fr 80px;
    padding: 12px 16px;
    gap: 12px;
  }

  .card-img-container {
    width: 80px;
    height: 80px;
  }
}

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

.card-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: -8px;
}

.card-meta:hover .card-actions {
  opacity: 1;
}

.card-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
  opacity: 0.9;
}

.card-action-btn:hover {
  background: var(--surface2);
  transform: scale(1.1);
  opacity: 1;
}

.bookmark-btn {
  color: #1a73e8;
  /* Google Blue */
}

.share-btn {
  color: #000;
}

.bookmark-btn.bookmarked {
  background: rgba(26, 115, 232, 0.1);
  color: #1a73e8;
}

.feed-group-header {
  padding: 16px 20px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text3);
}

/* ── WIDGETS ── */
.widget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.widget-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
}

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

.trending-item:hover {
  opacity: .8;
}

.trending-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--border);
  min-width: 28px;
  line-height: 1.1;
}

.trending-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.trending-count {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

/* ── SEARCH VIEW ── */
.search-view-container {
  padding: 0 20px 80px;
}

.search-hero {
  text-align: center;
  padding: 40px 0 24px;
}

.search-hero h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}

.search-bar-large {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 12px 20px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}

.search-bar-large:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .12);
}

.search-bar-large input {
  flex: 1;
  font-size: 16px;
  color: var(--text);
}

.search-bar-large input::placeholder {
  color: var(--text3);
}

/* ── VIEW HEADERS ── */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
}

.view-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.text-btn {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background .15s;
}

.text-btn:hover {
  background: rgba(26, 115, 232, .08);
}

/* ── ARTICLE MODAL ── */
.article-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

@media(max-width: 960px) {
  .article-modal {
    bottom: 64px; /* Space for bottom nav */
  }
}

@media(max-width: 600px) {
  .article-modal {
    top: 100px; /* Below header and tabs */
    bottom: 64px; /* Above bottom navbar */
    z-index: 1200;
  }
}

.article-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(18px);
  transition: transform .22s cubic-bezier(.2, 0, 0, 1);
}

.article-modal.open .modal-panel {
  transform: translateY(0);
}

@media(min-width: 768px) {
  .modal-panel {
    border-radius: 16px;
    margin: 20px;
    height: auto;
    max-height: calc(100vh - 40px);
  }
}

@media(max-width: 767px) {
  .modal-panel {
    margin: 0;
    border-radius: 0;
    max-width: none;
    height: 100%;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.modal-source-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.modal-source-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface2);
}

.modal-source-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.modal-source-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
}

.modal-source-time {
  font-size: 11px;
  color: var(--text3);
}

.modal-source-click-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 12px;
  margin-left: -12px;
  border-radius: 12px;
  transition: background .2s, transform .1s;
}

.modal-source-click-wrap:hover {
  background: var(--surface2);
}

.modal-source-click-wrap:active {
  transform: scale(0.98);
}

.modal-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 20px;
}

.whatsapp-share-btn {
  color: #25D366 !important;
}

.whatsapp-share-btn:hover {
  background: rgba(37, 211, 102, 0.1) !important;
}

.modal-actions {
  display: flex;
  gap: 4px;
}

.modal-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.modal-content-wrap {
  padding: 24px 28px 40px;
  max-width: 640px;
  margin: 0 auto;
}

.modal-category-badge {
  display: inline-block;
  background: rgba(26, 115, 232, 0.08);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.modal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.modal-footer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}

.modal-footer-btn.primary {
  background: var(--accent);
  color: #fff;
}

.modal-footer-btn.primary:hover {
  background: var(--accent2);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.modal-footer-btn.secondary {
  background: var(--surface2);
  color: var(--text);
}

.modal-footer-btn.secondary:hover {
  background: var(--border);
}

@media(max-width: 600px) {
  .modal-footer-btn {
    flex: 1;
    justify-content: center;
  }
}

@media(max-width: 600px) {
  .modal-content-wrap {
    padding: 20px 20px 40px;
  }
}

.modal-hero-wrap {
  margin: 0 -28px 24px;
  background: var(--surface2);
}

@media(max-width: 600px) {
  .modal-hero-wrap {
    margin: 0 -20px 20px;
  }
}

.modal-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.modal-article-text {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text2);
}

.modal-read-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 20px;
  transition: background .2s;
  text-decoration: none;
}

.modal-read-btn:hover {
  background: var(--accent2);
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, .05);
  height: 64px;
}

.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text2);
  font-size: 10px;
  font-weight: 600;
  transition: all .2s;
  border-radius: 12px;
  margin: 4px;
}

.bnav-item svg {
  transition: transform .2s;
}

.bnav-item:active svg {
  transform: scale(0.9);
}

.bnav-item.active {
  color: var(--accent);
  background: rgba(26, 115, 232, 0.06);
}

/* ── DRAWER ── */
.drawer-overlay {
  position: fixed;
  top: 112px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: rgba(0, 0, 0, .4);
  backdrop-filter: blur(2px);
  display: none;
  opacity: 0;
  transition: opacity .3s;
}

@media(max-width: 600px) {
  .drawer-overlay {
    top: 100px;
  }
}

.drawer-overlay.open {
  display: block;
  opacity: 1;
}

.drawer {
  position: fixed;
  left: 0;
  top: 112px;
  /* Below total header */
  bottom: 0;
  width: 280px;
  z-index: 1000;
  background: var(--surface);
  box-shadow: 20px 0 24px -12px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

@media(max-width: 600px) {
  .drawer {
    top: 100px;
  }
}

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

.drawer-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-nav {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
}

.drawer-nav .snav-item {
  padding: 12px 16px;
  border-radius: 12px;
}

.drawer-topics {
  padding: 20px 16px;
  flex: 1;
}

.drawer-topics h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
  padding-left: 8px;
}

#drawer-topic-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topic-item {
  padding: 12px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
}

.topic-item:hover {
  background: var(--surface2);
  color: var(--text);
}

.topic-item.active {
  background: rgba(26, 115, 232, 0.1);
  color: var(--accent);
}

/* ── SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

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

  100% {
    background-position: -200% 0;
  }
}

.skeleton-source {
  height: 14px;
  width: 100px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 18px;
  width: 90%;
  margin-bottom: 6px;
}

.skeleton-title.short {
  width: 60%;
}

.skeleton-meta {
  height: 12px;
  width: 140px;
  margin-top: 8px;
}

.skeleton-thumb {
  width: 96px;
  height: 72px;
  border-radius: 8px;
  flex-shrink: 0;
}

.skeleton-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.skeleton-card .card-content {
  flex: 1;
}

/* ── EMPTY STATE ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  color: var(--text3);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: .4;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
}

/* ── LOAD MORE ── */
.load-more-btn {
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 20px;
  transition: background .15s, border-color .15s;
}

.load-more-btn:hover {
  background: rgba(26, 115, 232, .06);
  border-color: var(--accent);
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #323232;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

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

@media(min-width: 768px) {
  .toast {
    bottom: 24px;
  }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
}

/* ── SOURCE DETAILS ── */
.source-details-header {
  padding: 32px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.source-info-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.source-info-main .card-source-icon {
  width: 56px;
  height: 56px;
  font-size: 24px;
}

.source-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.source-subtitle {
  font-size: 14px;
  color: var(--text3);
}

.follow-btn {
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  transition: all .2s;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.follow-btn:hover {
  background: var(--accent2);
}

.follow-btn.big {
  padding: 12px 40px;
  font-size: 16px;
  border-radius: 30px;
}

.follow-btn.sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 12px;
}

.follow-btn.following {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.follow-btn.following:hover {
  background: rgba(26, 115, 232, 0.05);
  border-color: var(--accent);
}

.following-view-container {
  padding: 10px 0 0;
}

.following-cat-section {
  margin-bottom: 32px;
}

.following-cat-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 20px 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.following-cat-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

.following-grid {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 24px 20px 16px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.following-grid::-webkit-scrollbar {
  display: none;
}

.source-small-card {
  min-width: 180px;
  max-width: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  scroll-snap-align: start;
}

.source-small-card:hover {
  border-color: var(--accent);
}

.source-small-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.source-small-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.small-unfollow-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  transition: all 0.2s;
  background: transparent;
  flex-shrink: 0;
}

.small-unfollow-btn:hover {
  background: rgba(234, 67, 53, 0.1);
  color: var(--danger);
}

@media(max-width: 600px) {
  .following-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: visible;
    padding: 8px 16px;
  }

  .source-small-card {
    min-width: 0;
    max-width: none;
  }
}

@media(max-width: 600px) {
  .source-details-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px;
  }

  .source-details-header .follow-btn {
    width: 100%;
    text-align: center;
  }

  .follow-btn.big {
    padding: 10px 24px;
    font-size: 15px;
  }
}

/* ── MOBILE ONLY ── */
.mobile-only {
  display: none;
}

@media(max-width: 960px) {
  .mobile-only {
    display: flex;
  }
}

/* ── USER MENU ── */
.header-actions {
  position: relative;
}

.user-menu {
  position: absolute;
  top: 48px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
}

.user-menu-info {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text2);
}

.user-menu-info strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.user-menu-divider {
  height: 1px;
  background: var(--border);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
  transition: background .15s;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: none;
}

.user-menu-item:hover {
  background: var(--surface2);
  color: var(--text);
}

/* ── CLEAN AUTH MODAL ── */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.login-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 48px 32px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  animation: authSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.auth-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.auth-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.auth-header p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.auth-tab.active {
  color: #1a73e8;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #1a73e8;
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.auth-field input {
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  color: #0f172a;
  transition: all 0.2s;
  outline: none;
}

.auth-field input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.auth-btn {
  background: #1a73e8;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.auth-btn:hover {
  background: #1557b0;
  transform: translateY(-1px);
}

.auth-btn:active {
  transform: translateY(0);
}

@media(max-width: 480px) {
  .login-card {
    padding: 32px 24px;
  }
}

/* ── RESPONSIVE ── */
@media(max-width: 1280px) {
  .right-sidebar {
    display: none;
  }
}

@media(max-width: 960px) {
  .sidebar {
    display: none;
  }

  .bottom-nav {
    display: flex;
  }

  .feed-col {
    padding-bottom: 80px;
  }

  .news-card {
    padding: 12px 16px;
  }

  .hero-section {
    margin: 12px 16px;
  }

  .view-header {
    padding: 16px 16px 8px;
  }

  .feed-group-header {
    padding: 10px 16px 4px;
  }

  .card-actions {
    opacity: 1;
  }

  .search-view-container {
    padding: 0 16px 80px;
  }
}

@media(max-width: 600px) {
  .header-inner {
    padding: 0 16px;
    gap: 12px;
    height: 60px;
  }

  .brand {
    margin-left: 0;
  }

  .brand svg {
    width: 24px;
    height: 24px;
  }

  .header-actions {
    min-width: 0;
    flex: 0 0 auto;
    gap: 4px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

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

  .lang-picker {
    min-width: 100px;
    padding: 0 8px;
  }

  .lang-picker-label {
    font-size: 12px;
  }

  .lang-picker::after {
    display: block;
    width: 16px;
    height: 16px;
    margin-left: 2px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-thumb {
    width: 80px;
    height: 62px;
  }

  .hero-title {
    font-size: 17px;
  }

  .hero-img {
    height: 220px;
  }
}

/* ── NEWSSTAND PREMIUM REDESIGN ── */
.newsstand-container {
  padding: 20px 0 100px;
}

.newsstand-category-section {
  margin-bottom: 48px;
}

.newsstand-category-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 24px 20px;
  color: var(--text);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none !important;
  padding: 0 !important;
}

.newsstand-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

.newsstand-grid-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  overflow: visible !important;
}

.newsstand-grid {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 24px 0 24px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.newsstand-grid::-webkit-scrollbar { display: none; }

.newsstand-card {
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  scroll-snap-align: start;
}

.newsstand-card:first-child { margin-left: 24px; }
.newsstand-card:last-child { margin-right: 24px; }

.newsstand-card:hover {
  border-color: var(--accent);
}

.newsstand-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.3s;
}

.newsstand-header:hover {
  background: var(--border);
}

.newsstand-info {
  flex: 1;
  min-width: 0;
}

.newsstand-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newsstand-url {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.newsstand-articles {
  padding: 8px 0;
  flex: 1;
}

.newsstand-article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.newsstand-article:last-child { border-bottom: none; }

.newsstand-article:hover {
  background: var(--surface2);
}

.newsstand-article img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--border);
}

.newsstand-article-info {
  flex: 1;
  min-width: 0;
}

.newsstand-article-info h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

.newsstand-article-info .time {
  font-size: 11px;
  color: var(--text3);
}



@media(max-width: 768px) {
  .newsstand-grid { gap: 12px; padding: 24px 0 24px; }
  .newsstand-card { min-width: 280px; max-width: 280px; }
  .newsstand-card:first-child { margin-left: 16px; }
  .newsstand-card:last-child { margin-right: 16px; }
  .newsstand-card:hover { transform: translateY(-4px); }
  .ns-arrow { 
    width: 36px;
    height: 36px;
    display: flex !important;
  }
  .ns-arrow-left { left: 4px; }
  .ns-arrow-right { right: 4px; }
}

/* ── PROFILE VIEW ── */
.profile-view-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 100px;
}

.view-header {
  margin-bottom: 28px;
  padding-left: 4px;
}

.view-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.profile-card-header {
  padding: 32px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.profile-meta h3 {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--text);
  font-weight: 700;
}

.profile-meta p {
  margin: 0;
  font-size: 15px;
  color: var(--text3);
}

.form-section {
  padding: 32px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  margin: 0 0 24px;
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-section h3::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 4px;
}

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

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  transition: all 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
  outline: none;
}

.profile-avatar-large {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* Edit Overlay */
.profile-avatar-large .edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
  color: #fff;
}

.profile-avatar-large:hover .edit-overlay {
  opacity: 1;
}

.password-form {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}

.password-form.show {
  max-height: 500px;
  opacity: 1;
  margin-top: 20px;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in, margin 0.4s ease;
}

#toggle-pw-btn.secondary {
  background: var(--surface2) !important;
  color: var(--text) !important;
}

.edit-overlay svg {
  width: 24px;
  height: 24px;
}

.form-actions {
  padding: 20px 24px;
  background: var(--surface2);
  text-align: right;
}

.form-actions .auth-btn {
  width: auto;
  min-width: 160px;
  margin: 0;
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-card.security-card {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .profile-view-container {
    padding: 16px 12px 100px;
  }

  .view-header {
    margin-bottom: 20px;
    text-align: center;
  }

  .view-header h2 {
    font-size: 24px;
  }

  .profile-card-header {
    padding: 24px 16px;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .profile-avatar-large {
    width: 72px;
    height: 72px;
  }

  .form-section {
    padding: 24px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-actions {
    padding: 20px 16px;
    text-align: center;
  }

  .form-actions .auth-btn {
    width: 100%;
    height: 50px;
    font-size: 16px;
  }

  .password-form.show {
    margin-top: 20px;
  }

  .password-form .form-row {
    gap: 0;
  }

  .a-btn-outline {
    width: 100% !important;
    text-align: center;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.newsstand-article:last-child {
  border-bottom: none;
}

.newsstand-article:hover {
  background: rgba(26, 115, 232, 0.05);
}

.newsstand-article img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.newsstand-article-info {
  flex: 1;
}

.newsstand-article-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.newsstand-article-info .time {
  font-size: 11px;
  color: var(--text3);
}

@media(max-width: 600px) {
  .newsstand-category-title {
    margin: 0 16px 12px;
  }

  .newsstand-grid {
    padding: 0 0 16px 0;
    gap: 16px;
    scroll-padding-left: 16px;
  }

  .newsstand-card {
    min-width: 280px;
    max-width: 280px;
  }

  .newsstand-card:first-child {
    margin-left: 16px;
  }

  .newsstand-card:last-child {
    margin-right: 16px;
  }
}

/* ── STATIC PAGES ── */
#view-page {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

#page-content {
  padding: 32px 24px 80px;
  line-height: 1.7;
  font-size: 16px;
  color: var(--text2);
}

#page-content p {
  margin-bottom: 1.5em;
}

#page-content h1,
#page-content h2,
#page-content h3 {
  color: var(--text);
  margin: 1.5em 0 0.75em;
  font-weight: 700;
  line-height: 1.3;
}

#page-content h1 {
  font-size: 28px;
}

#page-content h2 {
  font-size: 24px;
}

#page-content h3 {
  font-size: 20px;
}

#page-content ul,
#page-content ol {
  margin: 1.5em 0;
  padding-left: 24px;
}

#page-content li {
  margin-bottom: 0.75em;
}

#page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
}

#page-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 24px;
  margin: 24px 0;
  background: var(--surface2);
  font-style: italic;
  border-radius: 0 12px 12px 0;
}

#page-content a {
  color: var(--accent);
  text-decoration: underline;
}

@media(max-width: 600px) {
  #page-content {
    padding: 24px 16px 64px;
    font-size: 15px;
  }
}

.newsstand-grid-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ns-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 10;
}

.ns-arrow-left {
  left: -20px;
}

.ns-arrow-right {
  right: -20px;
}

.ns-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.ns-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

@media(max-width: 1024px) {
  .ns-arrow { display: none; }
}
