/* ══════════════════════════════════════════════════════════════
   RALLY — CSS (Professional News Layout)
   ══════════════════════════════════════════════════════════════ */

:root {
  --rally-green: #5A775E;
  --rally-green-hover: #6B8A6F;
  --rally-green-light: #E8EDE9;
  --bg-green-tint: #eaf4eb;
  --text-primary: #1A1A1A;
  --text-secondary: #666;
  --text-tertiary: #999;
  --bg-main: #FFFFFF;
  --bg-card: #FAFAFA;
  --border-color: #E5E5E5;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
  --skeleton-base: #E4E4E4;
  --skeleton-shine: #F2F2F2;
  --skeleton-spinner: #BBBBBB;
}

[data-theme="dark"] {
  --rally-green: #7AAB7F;
  --rally-green-hover: #8BBE90;
  --rally-green-light: #1A2E1C;
  --bg-green-tint: #1A2E1C;
  --text-primary: #EFEFEF;
  --text-secondary: #AAAAAA;
  --text-tertiary: #777777;
  --bg-main: #121212;
  --bg-card: #1E1E1E;
  --border-color: #2E2E2E;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --skeleton-base: #272727;
  --skeleton-shine: #333333;
  --skeleton-spinner: #555555;
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════════
   HEADER WITH SCROLL BEHAVIOR
   ══════════════════════════════════════════════════════════════ */

.header-wrapper {
  position: sticky;
  top: 0;
  background: var(--bg-main);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.header-wrapper.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 56px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  position: relative;
  min-width: 80px;
  max-width: 400px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  color: var(--rally-green);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-tertiary);
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0;
  flex-shrink: 0;
}

.logo-container:hover .tagline {
  opacity: 1;
  max-width: 200px;
  margin-left: 12px;
}

/* Categories Button (hidden by default, shown when scrolled) */
.categories-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
  pointer-events: none;
}

.categories-btn:hover {
  background: var(--rally-green-light);
  border-color: var(--rally-green);
  color: var(--rally-green);
}

.categories-btn svg {
  transition: transform 0.2s;
}

/* Categories Dropdown */
.categories-dropdown {
  position: absolute;
  top: 100%;
  left: 24px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 101;
  margin-top: 8px;
}

.categories-dropdown.open {
  opacity: 1;
  transform: translateY(0);
}

.cat-dropdown-pill {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.cat-dropdown-pill:hover {
  background: var(--rally-green-light);
  color: var(--rally-green);
}

.cat-dropdown-pill.active {
  background: var(--rally-green);
  color: white;
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.icon-btn:hover {
  background: var(--rally-green-light);
  color: var(--rally-green);
}

.region-label-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.region-label-btn:hover {
  background: var(--rally-green-light);
  color: var(--text-primary);
}

.region-label-change {
  color: var(--rally-green);
  font-weight: 500;
}

.region-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}

.region-popup-overlay.open {
  display: flex;
}

.region-popup {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
}

.region-popup h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.region-popup > p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.region-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.region-auto-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
  user-select: none;
}

.region-auto-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--rally-green);
  cursor: pointer;
  flex-shrink: 0;
}

.region-option-btn {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.region-option-btn:hover {
  border-color: var(--rally-green);
  background: var(--rally-green-light);
  color: var(--rally-green);
}

.region-option-btn.active {
  border-color: var(--rally-green);
  background: var(--rally-green);
  color: white;
}

.gift-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: var(--bg-green-tint);
  border: 2px dotted var(--rally-green);
  border-radius: 20px;
  color: var(--rally-green);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}

.gift-pill-btn .gift-label {
  display: inline;
}

@media (max-width: 768px) {
  .gift-pill-btn {
    padding: 7px 10px;
  }
  .gift-pill-btn .gift-label {
    display: none;
  }
  .region-label-prefix,
  .region-label-change {
    display: none;
  }
}

.gift-pill-btn:hover {
  background: var(--rally-green-light);
  border-color: var(--rally-green-hover);
}

/* Category Pills */
.cat-container {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 16px;
  padding-bottom: 16px;
  scrollbar-width: none;
  max-height: 100px;
  opacity: 1;
  will-change: max-height, opacity;
  transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
}

.cat-container::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.cat-pill:hover {
  background: var(--rally-green-light);
  border-color: var(--rally-green);
  color: var(--rally-green);
  box-shadow: 0 4px 12px rgba(90, 119, 94, 0.15);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: var(--rally-green);
  border-color: var(--rally-green);
  color: white;
  box-shadow: 0 4px 12px rgba(90, 119, 94, 0.25);
}

/* Originals nav pill */
.cat-pill-originals {
  position: relative;
  overflow: hidden;
  min-width: max-content;
  flex-shrink: 0;
  background: linear-gradient(135deg, #484848 0%, #757575 45%, #595959 75%, #3a3a3a 100%);
  border-color: transparent;
  color: white;
  font-weight: 600;
}

.cat-pill-originals .cat-icon {
  fill: white;
  stroke: none;
}

.cat-pill-originals:hover {
  background: linear-gradient(135deg, #383838 0%, #656565 45%, #494949 75%, #2a2a2a 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.cat-pill-originals.active {
  background: linear-gradient(135deg, #3d6642 0%, #7aab7f 45%, #5a7e5f 75%, #3a5c3e 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(61, 102, 66, 0.45);
  animation: originals-pulse 2.8s ease-in-out infinite;
}

.cat-pill-originals.active:hover {
  background: linear-gradient(135deg, #2e4d31 0%, #6a9b6f 45%, #4a6752 75%, #2e4d31 100%);
  box-shadow: 0 6px 22px rgba(61, 102, 66, 0.5);
}

@keyframes originals-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(61, 102, 66, 0.35); }
  50% { box-shadow: 0 4px 22px rgba(61, 102, 66, 0.6); }
}

/* Sheen sweep on hover */
.cat-pill-originals::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 55%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255,255,255,0.38) 50%,
    transparent 75%
  );
  transform: skewX(-15deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.cat-pill-originals:hover::after {
  left: 130%;
}

/* Originals dropdown pill — no special styling, uses standard cat-dropdown-pill */

.cat-icon {
  width: 16px;
  height: 16px;
}

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════════════════════ */

.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px 16px;
}

/* Category Header */
.category-header {
  margin-bottom: 40px;
}

.category-header h1 {
  font-size: 64px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

/* Jump Right In Section */
.jump-right-in:empty {
  display: none;
}

.jump-right-in {
  margin-bottom: 48px;
  background: var(--rally-green-light);
  padding: 32px;
  border-radius: 20px;
}

.jump-right-in h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--rally-green);
}

.jump-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.jump-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.jump-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.jump-image {
  width: 100%;
  height: 180px;
  background-color: var(--rally-green-light);
  overflow: hidden;
}
.jump-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.jump-content {
  padding: 20px;
}

.jump-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.jump-source {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.jump-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

/* Featured Wrapper (For You only) */
.featured-wrapper {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}

.featured-wrapper #featuredArticle {
  flex: 3;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.featured-wrapper.banner-hidden #featuredArticle {
  flex: none;
  width: 100%;
}

.featured-wrapper.banner-hidden .welcome-banner {
  display: none;
}

/* Welcome Banner */
.welcome-banner {
  flex: 1;
  min-width: 0;
  background: var(--rally-green);
  border: 2px solid var(--rally-green);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.welcome-banner.logged-in {
  background: #2C3E2D;
  border-color: #2C3E2D;
}

.welcome-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  margin-top: 12px;
}

.welcome-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  margin-top: 12px;
  border: 3px solid rgba(255,255,255,0.3);
}

.welcome-avatar-initial {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  margin-top: 12px;
}

.welcome-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.welcome-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.welcome-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}

.welcome-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--rally-green);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.welcome-login-btn:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  background: var(--rally-green-light);
}

.welcome-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.welcome-outline-btn:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.welcome-text-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.welcome-text-link:hover {
  color: white;
}

.welcome-learn-more-btn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.welcome-learn-more-btn:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Welcome card logged-in action buttons */
.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.welcome-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.welcome-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.welcome-action-btn svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.welcome-logout-link {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 0.2s;
}

.welcome-logout-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Rallying Cry */
.rallying-cry-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: 104px;
  overflow: hidden;
  transition: max-height 0.35s ease;
  margin: 10px 0 0;
}

.rallying-cry-wrapper.overflows::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: linear-gradient(transparent, #2C3E2D);
  pointer-events: none;
}

.rallying-cry-wrapper.expanded {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.rallying-cry-wrapper.expanded::after {
  content: none;
}

.rallying-cry-toggle-btn {
  display: none;
  margin: 6px auto 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.2s;
}

.rallying-cry-toggle-btn.visible {
  display: block;
}

.rallying-cry-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.rallying-cry-inbox-link {
  display: block;
  text-align: center;
  margin: 2px 0 6px;
}

.rallying-cry-inbox-link.hidden {
  display: none;
}

.rc-inbox-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.rc-inbox-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.rc-inbox-btn.rc-inbox-subscribed {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.55);
}

.rc-inbox-btn.rc-inbox-subscribed:hover {
  color: rgba(255, 255, 255, 0.85);
}

.rallying-cry-text {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  text-align: center;
  width: 100%;
  margin: 0 0 14px;
  word-break: break-word;
}

.rallying-cry-info {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
}

.rallying-cry-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.2s;
  vertical-align: middle;
}

.rallying-cry-info-btn:hover,
.rallying-cry-info:focus-within .rallying-cry-info-btn {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.rallying-cry-tooltip {
  display: none;
  position: fixed;
  width: 230px;
  background: rgba(30, 40, 30, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  pointer-events: none;
}

.rallying-cry-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(30, 40, 30, 0.97);
}

.rallying-cry-tooltip.visible {
  display: block;
}

/* Featured Article (For You only) */
.featured-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-first-para {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--rally-green-light);
  overflow: hidden;
}
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.featured-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}

.featured-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  width: 100%;
}

.featured-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  background: var(--rally-green);
  color: white;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-badge-original {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.4);
}

.featured-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.featured-meta .article-source {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

/* ── Skeleton Loading ── */
@keyframes skeleton-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

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

.skel {
  background: linear-gradient(90deg,
    var(--skeleton-base) 25%,
    var(--skeleton-shine) 50%,
    var(--skeleton-base) 75%
  );
  background-size: 600px 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

/* Carousel placeholder */
.skeleton-carousel {
  width: 100%;
  min-height: 500px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg,
    var(--skeleton-base) 25%,
    var(--skeleton-shine) 50%,
    var(--skeleton-base) 75%
  );
  background-size: 600px 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--skeleton-spinner);
  border-top-color: var(--text-secondary);
  border-radius: 50%;
  animation: skeleton-spin 0.85s linear infinite;
  flex-shrink: 0;
}

/* Feed card placeholders */
.skeleton-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton-hero {
  grid-column: span 2;
  height: 300px;
  border-radius: 16px;
  background: linear-gradient(90deg,
    var(--skeleton-base) 25%,
    var(--skeleton-shine) 50%,
    var(--skeleton-base) 75%
  );
  background-size: 600px 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-medium {
  display: flex;
  flex-direction: column;
}

.skeleton-medium .skel-img {
  height: 180px;
  border-radius: 0;
  flex-shrink: 0;
}

.skel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skel-line { height: 13px; }
.skel-line-full  { width: 100%; }
.skel-line-lg    { width: 88%; }
.skel-line-md    { width: 65%; }
.skel-line-sm    { width: 42%; }

.skeleton-stacked {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.skeleton-stacked:last-child {
  border-bottom: none;
}

/* ── Featured Carousel ── */
.featured-carousel {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.featured-carousel .featured-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.featured-carousel .featured-card:hover {
  transform: none;
  box-shadow: none;
}

.featured-carousel .featured-card.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}


.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.carousel-dot.active {
  background: white;
  width: 24px;
}

.carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.75);
}

/* Article Feed with Varied Layouts */
#articleFeed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
  grid-auto-flow: dense;
}

/* Hero Card (2 columns wide, large) */
.hero-card {
  grid-column: span 2;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 300px;
  max-height: 350px;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  background-color: var(--rally-green-light);
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.hero-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Medium Card (1 column) */
.medium-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.medium-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.medium-image {
  width: 100%;
  height: 180px;
  background-color: var(--rally-green-light);
  overflow: hidden;
}
.medium-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.medium-content {
  padding: 20px;
}

.medium-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.medium-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.medium-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Stacked Container (headlines only, 1 column) */
.stacked-container {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stacked-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.stacked-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stacked-card:first-child {
  padding-top: 0;
}

.stacked-card:hover {
  background: rgba(90, 119, 94, 0.05);
  padding: 16px;
  margin: 0 -16px;
  border-radius: 8px;
  border-bottom: 1px solid transparent;
}

.stacked-card:last-child:hover {
  border-bottom: none;
}

.stacked-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.stacked-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Regular Card (text only, minimal) */
.regular-card {
  background: transparent;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.regular-card:hover {
  background: var(--bg-card);
  padding: 16px;
  margin: 0 -16px;
  border-radius: 8px;
  border-bottom: 1px solid transparent;
}

.regular-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.regular-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Article Source (universal) */
.article-source {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Meta left cluster: source · date · category */
.meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.article-date {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
}

.article-cat-pill {
  padding: 3px 10px;
  background: var(--rally-green-light);
  border: 1px solid var(--rally-green);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--rally-green);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1.4;
}

.article-cat-pill:hover {
  background: var(--rally-green);
  color: white;
  transform: scale(1.04);
}

/* Override colours for pills/date on dark (featured card) background */
.featured-card .article-date {
  color: rgba(255, 255, 255, 0.7);
}

.featured-card .article-cat-pill {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  backdrop-filter: blur(4px);
}

.featured-card .article-cat-pill:hover {
  background: var(--rally-green);
  border-color: var(--rally-green);
}

/* Feed action button tooltips */
.save-icon-btn,
.share-icon-btn,
.flag-icon-btn,
.original-icon-btn {
  position: relative;
}

.save-icon-btn::after,
.share-icon-btn::after,
.flag-icon-btn::after,
.original-icon-btn::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,20,20,0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.save-icon-btn:hover::after,
.share-icon-btn:hover::after,
.flag-icon-btn:hover::after,
.original-icon-btn:hover::after {
  opacity: 1;
}

/* Save Button States */
.save-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--rally-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--rally-green);
  transition: all 0.2s;
  opacity: 0;
  transform: scale(0.9);
}

.featured-card .save-icon-btn {
  background: rgba(255,255,255,0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.featured-card .save-icon-btn.saved {
  background: var(--rally-green);
  color: white;
}

.hero-card:hover .save-icon-btn,
.medium-card:hover .save-icon-btn,
.featured-card:hover .save-icon-btn,
.jump-card:hover .save-icon-btn,
.stacked-card:hover .save-icon-btn,
.regular-card:hover .save-icon-btn {
  opacity: 1;
  transform: scale(1);
}

.save-icon-btn:hover {
  background: var(--rally-green);
  color: white;
  transform: scale(1.1);
}

.featured-card .save-icon-btn:hover {
  background: var(--rally-green);
}

.save-icon-btn.saved {
  opacity: 1;
  background: var(--rally-green);
  color: white;
}

.save-icon-btn.saved svg {
  fill: white;
}

/* Card Actions Container */
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Flag (Not Good News) Icon Button */
.flag-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--rally-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--rally-green);
  transition: all 0.2s;
  opacity: 0;
  transform: scale(0.9);
}

.featured-card .flag-icon-btn {
  background: rgba(255,255,255,0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.hero-card:hover .flag-icon-btn,
.medium-card:hover .flag-icon-btn,
.featured-card:hover .flag-icon-btn,
.jump-card:hover .flag-icon-btn,
.stacked-card:hover .flag-icon-btn,
.regular-card:hover .flag-icon-btn {
  opacity: 1;
  transform: scale(1);
}

.flag-icon-btn:hover {
  background: #c0392b;
  color: white;
  transform: scale(1.1);
}

.featured-card .flag-icon-btn:hover {
  background: #c0392b;
}

.flag-icon-btn.flagged,
.flag-icon-btn:disabled {
  opacity: 1;
  background: #fdecea;
  color: #c0392b;
  cursor: default;
  transform: scale(1);
}

.hero-card .flag-icon-btn.flagged,
.medium-card .flag-icon-btn.flagged,
.featured-card .flag-icon-btn.flagged,
.jump-card .flag-icon-btn.flagged,
.stacked-card .flag-icon-btn.flagged,
.regular-card .flag-icon-btn.flagged {
  opacity: 1;
}

/* Original Star Icon Button (replaces flag btn for originals) */
.original-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--rally-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--rally-green);
  transition: all 0.2s;
  opacity: 0;
  transform: scale(0.9);
}

.featured-card .original-icon-btn {
  background: rgba(255,255,255,0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.hero-card:hover .original-icon-btn,
.medium-card:hover .original-icon-btn,
.featured-card:hover .original-icon-btn,
.jump-card:hover .original-icon-btn,
.stacked-card:hover .original-icon-btn,
.regular-card:hover .original-icon-btn {
  opacity: 1;
  transform: scale(1);
}

.original-icon-btn:hover {
  background: var(--rally-green);
  color: white;
  transform: scale(1.1);
}

/* Share Icon Button */
.share-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--rally-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--rally-green);
  transition: all 0.2s;
  opacity: 0;
  transform: scale(0.9);
}

.featured-card .share-icon-btn {
  background: rgba(255,255,255,0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.hero-card:hover .share-icon-btn,
.medium-card:hover .share-icon-btn,
.featured-card:hover .share-icon-btn,
.jump-card:hover .share-icon-btn,
.stacked-card:hover .share-icon-btn,
.regular-card:hover .share-icon-btn {
  opacity: 1;
  transform: scale(1);
}

.share-icon-btn:hover {
  background: var(--rally-green);
  color: white;
  transform: scale(1.1);
}

.featured-card .share-icon-btn:hover {
  background: var(--rally-green);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.empty-state svg {
  opacity: 0.3;
  margin-bottom: 24px;
  color: var(--text-tertiary);
}

.empty-state h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 400px;
}

.empty-cta {
  padding: 14px 32px;
  background: var(--rally-green);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.empty-cta:hover {
  background: var(--rally-green-hover);
  transform: scale(1.05);
}

/* Load More Bar */
.load-more-bar {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
  padding: 8px;
}

.show-more-btn {
  background: var(--rally-green);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.show-more-btn:hover {
  background: var(--rally-green-hover);
}

.show-more-btn:active {
  transform: scale(0.97);
}

/* ══════════════════════════════════════════════════════════════
   SAVED STORIES
   ══════════════════════════════════════════════════════════════ */

#savedStoriesContainer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.saved-story-card {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.saved-story-card:hover {
  background: var(--rally-green-light);
  transform: translateX(4px);
}

.saved-story-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background-color: var(--border-color);
  flex-shrink: 0;
  overflow: hidden;
}
.saved-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.saved-story-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.saved-story-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.saved-story-source {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.unsave-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  opacity: 0;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.saved-story-card:hover .unsave-btn {
  opacity: 1;
}

.unsave-btn:hover {
  background: #ff4444;
  color: white;
  transform: scale(1.1);
}

/* ══════════════════════════════════════════════════════════════
   PROFILE PANEL WITH TABS
   ══════════════════════════════════════════════════════════════ */

.side-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--bg-main);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.side-panel.open {
  right: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.panel-header h2 {
  font-size: 24px;
  font-weight: 600;
}

.close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-btn:hover {
  background: var(--rally-green-light);
  color: var(--rally-green);
}

.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--rally-green);
}

.tab-btn.active {
  color: var(--rally-green);
  border-bottom-color: var(--rally-green);
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.pref-section {
  margin-bottom: 32px;
}

.pref-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pref-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pref-save-wrap {
  flex-shrink: 0;
  padding: 16px 24px;
  background: var(--bg-main);
}

.pref-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 20px;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}

.pref-save-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.pref-save-btn .pref-save-confirm {
  display: none;
  align-items: center;
  gap: 5px;
}

.pref-save-btn.saved {
  border-color: var(--rally-green);
  color: var(--rally-green);
}

.pref-save-btn.saved .pref-save-default { display: none; }
.pref-save-btn.saved .pref-save-confirm { display: inline-flex; }

.region-selector {
  margin-top: 12px;
}

.region-selector select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
}

.region-selector select:hover {
  border-color: var(--rally-green);
}

.region-selector select:focus {
  outline: none;
  border-color: var(--rally-green);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.pref-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pref-pill {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.pref-pill:hover:not(.disabled) {
  border-color: var(--rally-green);
  color: var(--rally-green);
  background: var(--rally-green-light);
}

.pref-pill.active {
  background: var(--rally-green);
  border-color: var(--rally-green);
  color: white;
}

.pref-pill.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--border-color);
}

.profile-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.profile-placeholder svg {
  margin-bottom: 24px;
  opacity: 0.5;
}

.profile-placeholder h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.profile-placeholder p {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ══════════════════════════════════════════════════════════════
   RELOAD BUTTON
   ══════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════
   FLOATING BADGE (Lower Left)
   ══════════════════════════════════════════════════════════════ */

.floating-badge {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 12px 20px;
  box-shadow: var(--shadow-md);
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s, opacity 0.3s;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--rally-green);
  display: flex;
  align-items: center;
  gap: 7px;
}

.floating-badge .gift-icon {
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.floating-badge .gift-pill-copied {
  display: none;
  align-items: center;
  gap: 5px;
}

.floating-badge.copied {
  background: var(--rally-green);
  border-color: var(--rally-green);
  color: white;
}

.floating-badge.copied .gift-pill-label,
.floating-badge.copied .gift-icon {
  display: none;
}

.floating-badge.copied .gift-pill-copied {
  display: flex;
}

.floating-badge:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  background: var(--rally-green-light);
}

.floating-badge.copied:hover {
  background: var(--rally-green);
}

.floating-badge.pill-fade-out {
  opacity: 0;
}

@media (max-width: 768px) {
  .floating-badge {
    bottom: 24px;
    right: 24px;
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .floating-badge {
    bottom: 24px;
    right: 16px;
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.mission-statement {
  max-width: 960px;
  margin: 0 auto 48px;
  padding: 0 32px;
  text-align: center;
}

.mission-statement p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-tertiary, #9ca3af);
  margin: 0;
}

@media (max-width: 768px) {
  .mission-statement {
    padding: 0 24px;
    margin-bottom: 36px;
  }

  .mission-statement p {
    font-size: 12px;
  }
}

.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  margin-top: 80px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-badge-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.footer-badge-link:hover {
  color: #00308F;
}

.footer .eu-flag {
  font-size: 20px;
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-legal {
  text-align: center;
  padding: 12px 32px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-legal a {
  font-size: 12px;
  color: var(--text-tertiary, #9ca3af);
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .footer {
    padding: 24px 0;
    margin-top: 60px;
  }
  
  .footer-content {
    padding: 0 24px;
    flex-direction: column;
    text-align: center;
  }
  
  .footer-badge,
  .footer-copyright {
    font-size: 13px;
  }
}

/* ══════════════════════════════════════════════════════════════
   AD CARD
   ══════════════════════════════════════════════════════════════ */

.ad-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
  transition: all 0.3s;
}

.ad-label {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ad-label svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-secondary);
}

.ad-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT POPUP
   ══════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ══════════════════════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-main);
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  bottom: 32px;
}

/* ══════════════════════════════════════════════════════════════
   NEWSLETTER CARD
   ══════════════════════════════════════════════════════════════ */

.newsletter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 48px 40px;
  margin: 0 32px 32px;
  text-align: center;
}

.newsletter-card h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.newsletter-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form-row {
  display: flex;
  gap: 12px;
}

.newsletter-opt-out-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
}

.newsletter-email-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: inherit;
}

.newsletter-email-input:focus {
  outline: none;
  border-color: var(--rally-green);
}

.newsletter-submit-btn {
  padding: 12px 24px;
  background: var(--rally-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.newsletter-submit-btn:hover {
  background: var(--rally-green-hover);
}

@media (max-width: 768px) {
  .newsletter-card {
    margin: 0 16px 24px;
    padding: 32px 24px;
  }

  .newsletter-card h2 {
    font-size: 22px;
  }

  .newsletter-card p {
    font-size: 14px;
  }

  .newsletter-form-row {
    flex-direction: column;
  }

  .newsletter-submit-btn {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════
   RSS POPUP
   ══════════════════════════════════════════════════════════════ */

.rss-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}

.rss-popup-overlay.open {
  display: flex;
}

.rss-popup {
  background: var(--bg-card);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.rss-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.rss-close-btn:hover {
  background: var(--rally-green-light);
  color: var(--rally-green);
}

.rss-popup h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.rss-popup-content {
  display: flex;
  gap: 10px;
}

.rss-url-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  background: var(--bg-main);
  color: var(--text-secondary);
  cursor: default;
  font-family: monospace;
  min-width: 0;
}

.rss-copy-btn {
  padding: 10px 20px;
  background: var(--rally-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.rss-copy-btn:hover {
  background: var(--rally-green-hover);
}

.footer-rss-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.2s;
}

.footer-rss-btn:hover {
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  #articleFeed {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-card {
    grid-column: span 2;
  }
  
  .featured-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .featured-wrapper {
    flex-direction: column;
    gap: 16px;
  }

  .featured-wrapper #featuredArticle {
    flex: none;
    width: 100%;
  }

  .welcome-banner {
    min-height: 200px;
    border-radius: 16px;
    padding: 20px 20px 24px;
    flex: none;
  }

  .welcome-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    margin-top: 8px;
  }

  .welcome-avatar,
  .welcome-avatar-initial {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    margin-top: 8px;
  }

  .welcome-avatar-initial {
    font-size: 22px;
  }

  .welcome-title {
    font-size: 18px;
  }

  .content {
    padding: 12px 16px 16px;
  }

  .category-header h1 {
    font-size: 48px;
  }

  .featured-card {
    min-height: 400px;
  }
  
  .featured-title {
    font-size: 32px;
  }
  
  .featured-content {
    padding: 32px 24px 52px;
  }

.hero-card {
    grid-template-columns: 1fr;
    grid-column: span 2;
  }

  #articleFeed {
    grid-template-columns: 1fr !important;
  }
  
  .hero-card {
    grid-column: span 1 !important;
  }

  .jump-grid {
    grid-template-columns: 1fr;
  }
  
  .jump-right-in {
    padding: 24px 20px;
  }

  .side-panel {
    width: 100%;
    right: -100%;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 8px 12px 80px;
  }

  .category-header h1 {
    font-size: 36px;
  }

  .featured-card {
    min-height: 350px;
    border-radius: 16px;
  }
  
  .featured-title {
    font-size: 26px;
  }

  .featured-content {
    padding: 24px 20px 52px;
  }
  
  .hero-content {
    padding: 24px 20px;
  }
  
  .hero-title {
    font-size: 20px;
  }
  
  .medium-title {
    font-size: 16px;
  }
  
  .jump-right-in {
    padding: 20px 16px;
  }
  
  #articleFeed {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

html {
  scroll-behavior: smooth;
}

button:focus-visible,
.cat-pill:focus-visible,
.pref-pill:focus-visible {
  outline: 2px solid var(--rally-green);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════
   AUTH — Social Login
   ══════════════════════════════════════════════════════════════ */

.auth-section {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-color);
}

.auth-signin-prompt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--rally-green-light);
  border: 1px solid var(--rally-green);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  color: var(--rally-green);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-signin-prompt:hover {
  background: var(--rally-green);
  color: white;
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.auth-avatar-initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rally-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

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

.auth-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-user-provider {
  font-size: 12px;
  color: var(--text-tertiary);
}

.auth-signout-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.2s;
}

.auth-signout-btn:hover {
  background: #ffeaea;
  color: #cc2222;
}

/* Panel login / auth views */
.panel-login-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Scroll region — grows to fill space, hides scrollbar, fades at bottom */
.login-scroll-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.login-scroll-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, var(--bg-main));
  pointer-events: none;
}

.login-scroll-area {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-scroll-area::-webkit-scrollbar {
  display: none;
}

/* margin: auto vertically centers the content when it fits; collapses when overflowing */
.login-scroll-inner {
  margin: auto;
  width: 100%;
  padding: 32px 28px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* Pinned section: buttons + footer */
.login-pinned {
  flex-shrink: 0;
  padding: 0 28px;
}

.login-signup-prompt {
  padding: 16px 0 4px;
  text-align: center;
}

.login-signup-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.login-signup-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: var(--rally-green);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.login-signup-btn:hover {
  background: #388e3c;
}

.login-signup-btn:active {
  transform: scale(0.98);
}

.login-footer {
  padding: 12px 0 18px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.panel-login-view .login-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.panel-login-view .login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.panel-login-view h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.login-intro {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Feature cards */
.login-features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.login-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--rally-green-light);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  box-sizing: border-box;
}

.login-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--rally-green-light);
  border-radius: 10px;
  color: var(--rally-green);
}

[data-theme="dark"] .login-feature-icon {
  background: rgba(76, 175, 80, 0.15);
}

.login-feature-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.login-feature-text p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.login-free-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--rally-green);
  margin-bottom: 0;
}

/* Login buttons side by side, below the heading */
.panel-login-view .login-options {
  flex-direction: row;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}

.panel-login-view .login-btn {
  flex: 1;
  padding: 12px 10px;
  font-size: 14px;
}

#panelAuthView {
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Login modal */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.login-modal-overlay.open {
  display: flex;
}

.login-modal {
  background: white;
  border-radius: 24px;
  max-width: 400px;
  width: 100%;
  padding: 40px 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--rally-green-light);
  color: var(--rally-green);
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.login-close-btn:hover {
  background: var(--rally-green);
  color: white;
}

.login-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-modal h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.login-modal > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.login-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.login-btn-google {
  background: white;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.login-btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.login-btn-mastodon {
  background: #6364ff;
  color: white;
}

.login-btn-mastodon:hover {
  background: #5152e0;
}

.login-note {
  font-size: 12px;
  color: var(--text-tertiary);
}

.login-legal {
  font-size: 11px;
  color: var(--text-tertiary, #9ca3af);
  margin: 16px auto 0;
  max-width: 280px;
  line-height: 1.5;
  text-align: center;
}

.login-legal a {
  color: var(--text-tertiary, #9ca3af);
  text-decoration: underline;
}

.login-legal a:hover {
  opacity: 0.8;
}

@media (max-width: 480px) {
  .login-modal {
    padding: 32px 24px;
    border-radius: 20px;
  }
}
/* ══════════════════════════════════════════════════════════════
   SIGNUP / ONBOARDING MODAL
   ══════════════════════════════════════════════════════════════ */

.signup-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 600;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.signup-modal-overlay.open {
  display: flex;
}

.signup-modal {
  background: var(--bg-main);
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  padding: 32px 32px 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.signup-modal h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.signup-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.signup-step .login-options {
  flex-direction: column;
  margin-bottom: 16px;
}

.signup-step .login-note {
  margin-bottom: 6px;
}

/* Region options */
.signup-region-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.signup-region-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.signup-region-btn:hover {
  border-color: var(--rally-green);
  background: var(--rally-green-light);
  color: var(--rally-green);
}

.signup-region-btn .signup-region-check {
  display: none;
  color: var(--rally-green);
}

.signup-region-btn.active {
  border-color: var(--rally-green);
  background: var(--rally-green-light);
  color: var(--rally-green);
  font-weight: 700;
}

.signup-region-btn.active .signup-region-check {
  display: block;
}

/* Category options */
.signup-category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.signup-cat-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}

.signup-cat-pill:hover {
  border-color: var(--rally-green);
  color: var(--rally-green);
}

.signup-cat-pill.active {
  background: var(--rally-green);
  border-color: var(--rally-green);
  color: white;
  font-weight: 600;
}

.signup-done-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--rally-green);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.signup-done-btn:hover {
  background: #388e3c;
}

.signup-done-btn:active {
  transform: scale(0.98);
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.newsletter-email-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.newsletter-email-input:focus {
  border-color: var(--rally-green);
}

.newsletter-email-input.input-error {
  border-color: #e53e3e;
}

.newsletter-skip-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  padding: 6px;
  text-decoration: underline;
  transition: color 0.2s;
}

.newsletter-skip-btn:hover {
  color: var(--text-secondary);
}

/* Newsletters profile tab */
.newsletter-email-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.newsletter-email-card-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.newsletter-email-card-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  word-break: break-all;
}

.newsletter-email-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.newsletter-link-btn {
  background: none;
  border: none;
  color: var(--rally-green);
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.newsletter-link-btn:hover {
  opacity: 0.7;
}

.newsletter-link-btn-remove {
  color: #e53e3e;
}

.newsletter-link-sep {
  color: var(--text-tertiary);
  font-size: 13px;
}

.newsletter-sub-list {
  margin-top: 8px;
}

.newsletter-sub-heading {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.newsletter-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.newsletter-sub-item--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.newsletter-coming-soon {
  margin-top: 14px;
  padding: 12px 14px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

[data-theme="dark"] .newsletter-coming-soon {
  background: #1b3a1f;
  color: #81c784;
}

.newsletter-sub-info {
  flex: 1;
}

.newsletter-sub-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.newsletter-sub-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.newsletter-checkbox-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.newsletter-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--rally-green);
  cursor: pointer;
}

@keyframes newsletter-checkbox-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  40%       { transform: translateX(5px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.newsletter-checkbox.shake {
  animation: newsletter-checkbox-shake 0.4s ease;
}

/* Onboarding newsletter selection step */
.signup-newsletter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.signup-nl-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
  width: 100%;
  font-family: 'Outfit', sans-serif;
}

.signup-nl-card:hover:not(.signup-nl-card--locked) {
  border-color: var(--rally-green);
}

.signup-nl-card.active {
  border-color: var(--rally-green);
  background: var(--rally-green-light);
}

.signup-nl-card--locked {
  cursor: default;
}

.signup-nl-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-main);
  color: var(--rally-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.signup-nl-card.active .signup-nl-icon {
  background: rgba(255, 255, 255, 0.4);
  border-color: transparent;
}

.signup-nl-body {
  flex: 1;
  min-width: 0;
}

.signup-nl-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.signup-nl-card.active .signup-nl-name {
  color: var(--rally-green);
}

.signup-nl-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.signup-nl-card.active .signup-nl-desc {
  color: var(--rally-green);
  opacity: 0.85;
}

.signup-nl-indicator {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 2px;
  color: var(--text-tertiary);
}

.signup-nl-indicator--checked {
  background: var(--rally-green);
  border-color: var(--rally-green);
  color: white;
}

.signup-nl-indicator--locked {
  background: var(--rally-green);
  border-color: var(--rally-green);
  color: white;
  opacity: 0.75;
}

/* Onboarding progress bar */
.signup-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.signup-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  transition: background 0.35s ease, transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.signup-progress-dot.completed {
  background: var(--rally-green);
  opacity: 0.5;
}

.signup-progress-dot.active {
  background: var(--rally-green);
  transform: scale(1.3);
  box-shadow: 0 0 0 4px var(--rally-green-light);
}

.signup-progress-line {
  height: 2px;
  width: 48px;
  background: var(--border-color);
  transition: background 0.35s ease;
  flex-shrink: 0;
  border-radius: 2px;
}

.signup-progress-line.completed {
  background: var(--rally-green);
  opacity: 0.5;
}

@media (max-width: 480px) {
  .signup-modal {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  .signup-progress-line {
    width: 32px;
  }
}

/* ══════════════════════════════════════════════════════════════
   READER VIEW
   ══════════════════════════════════════════════════════════════ */

:root {
  --rv-content-bg: #F6F5F1;
}

[data-theme="dark"] {
  --rv-content-bg: #1E1E1E;
}

.reader-view-container {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}

.reader-view {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.rv-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  height: 62vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-card);
}

.rv-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    transparent 18%,
    transparent 28%,
    var(--rv-content-bg) 62%,
    var(--rv-content-bg) 100%
  );
}

[data-theme="dark"] .rv-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.5) 0%,
    transparent 18%,
    transparent 28%,
    var(--rv-content-bg) 62%,
    var(--rv-content-bg) 100%
  );
}

.rv-top-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.rv-manage-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #1A1A1A;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
}

.rv-manage-btn:hover {
  background: rgba(255,255,255,1);
}

[data-theme="dark"] .rv-manage-btn {
  background: rgba(30,30,30,0.92);
  color: var(--text-primary);
}

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

.rv-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rv-flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #c0392b;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s;
}

.rv-flag-pill:hover {
  background: #c0392b;
  color: white;
}

[data-theme="dark"] .rv-flag-pill {
  background: rgba(30,30,30,0.92);
  color: #e74c3c;
}

[data-theme="dark"] .rv-flag-pill:hover {
  background: #c0392b;
  color: white;
}

.rv-flag-pill.flagged,
.rv-flag-pill:disabled {
  background: rgba(192,57,43,0.15);
  color: #c0392b;
  cursor: default;
}

.rv-flag-pill.flagged:hover,
.rv-flag-pill:disabled:hover {
  background: rgba(192,57,43,0.15);
  color: #c0392b;
}

/* Rally Original pill (reader view, replaces Not Good News for originals) */
.rv-original-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rally-green, #5A775E);
  backdrop-filter: blur(6px);
}

[data-theme="dark"] .rv-original-pill {
  background: rgba(30,30,30,0.92);
}

/* AI robot icon in reader view headline */
.rv-ai-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 10px;
  position: relative;
  cursor: default;
  color: inherit;
  opacity: 0.7;
}

.rv-ai-icon:hover {
  opacity: 1;
}

.rv-ai-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: rgba(20,20,20,0.96);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.rv-ai-icon:hover .rv-ai-tooltip {
  display: block;
}

/* Pinned footer outside the scroll area in the profile panel */
.saved-tab-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border-color);
  padding: 0 24px;
  background: var(--bg-main);
}

/* "Articles I Flagged" link inside the footer */
.flagged-articles-link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-tertiary);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.flagged-articles-link:hover {
  color: #c0392b;
}

/* Not Good News popup */
.flag-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}

.flag-popup {
  background: var(--bg-main);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.flag-popup h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.flag-popup p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.flag-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.flag-popup-nevermind {
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.flag-popup-nevermind:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.flag-popup-report {
  background: var(--rally-green);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.flag-popup-report:hover {
  background: var(--rally-green-hover);
}

.flag-popup-report:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Flagged articles list popup */
.flagged-list-popup {
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 20px;
}

.flagged-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.flagged-list-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.flag-popup-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0 2px;
  transition: color 0.15s;
}

.flag-popup-close:hover { color: var(--text-primary); }

.flagged-list-items {
  overflow-y: auto;
  flex: 1;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flagged-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.flagged-list-thumb {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

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

.flagged-list-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.flagged-list-source {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.flagged-list-unflag {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.flagged-list-unflag:hover {
  border-color: var(--rally-green);
  color: var(--rally-green);
}

.rv-save-btn,
.rv-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: #1A1A1A;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
}

.rv-save-btn:hover,
.rv-close-btn:hover {
  background: rgba(255,255,255,1);
}

[data-theme="dark"] .rv-save-btn,
[data-theme="dark"] .rv-close-btn {
  background: rgba(30,30,30,0.92);
  color: var(--text-primary);
}

.rv-save-btn.saved svg {
  fill: var(--rally-green);
  stroke: var(--rally-green);
}

.rv-title-area {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0 80px 28px 32px;
}

.rv-title {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  line-height: 1.2;
  max-width: 860px;
}

.rv-nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: #1A1A1A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
}

.rv-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.07);
}

.rv-nav-prev { left: 16px; }
.rv-nav-next { right: 16px; }

[data-theme="dark"] .rv-nav {
  background: rgba(30,30,30,0.92);
  color: var(--text-primary);
}

.rv-body {
  background: var(--rv-content-bg);
  padding: 20px 32px 32px;
}

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

.rv-publisher {
  font-weight: 600;
  color: var(--rally-green);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}

.rv-publisher:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.rv-cat-pill {
  background: var(--rally-green-light);
  color: var(--rally-green);
  border: none;
  border-radius: 12px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.rv-cat-pill:hover {
  background: var(--rally-green);
  color: white;
}

.rv-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.rv-summary {
  font-size: 17px;
  font-family: 'Lora', serif;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
  font-style: italic;
  max-width: 760px;
}

.rv-first-para {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 760px;
}

.rv-rich-content p { margin-bottom: 1em; }
.rv-rich-content p:last-child { margin-bottom: 0; }
.rv-rich-content a { color: var(--rally-green); text-decoration: underline; }
.rv-rich-content a:hover { opacity: 0.8; }
.rv-rich-content strong { font-weight: 700; }
.rv-rich-content em { font-style: italic; }
.rv-rich-content u { text-decoration: underline; }
.rv-rich-content ul, .rv-rich-content ol { margin: 0.5em 0 1em 1.5em; }
.rv-rich-content li { margin-bottom: 0.3em; }

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

.rv-continue-btn {
  display: inline-flex;
  align-items: center;
  background: var(--rally-green);
  color: white;
  text-decoration: none;
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s;
}

.rv-continue-btn:hover {
  background: var(--rally-green-hover);
}

.rv-original-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rally-green-light, #e8f5e9);
  color: var(--rally-green);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
}

.rv-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1.5px solid var(--border-color);
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.rv-share-btn:hover {
  border-color: var(--rally-green);
  background: var(--rally-green-light);
}

@media (max-width: 768px) {
  .rv-hero {
    min-height: 340px;
    height: 55vw;
  }
  .rv-title {
    font-size: 20px;
  }
  .rv-title-area {
    padding: 0 60px 20px 16px;
  }
  .rv-top-controls {
    padding: 12px 16px;
  }
  .rv-body {
    padding: 16px 16px 24px;
  }
  .rv-nav {
    width: 38px;
    height: 38px;
  }
  .rv-nav-prev { left: 8px; }
  .rv-nav-next { right: 8px; }
  .rv-summary {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .rv-hero {
    min-height: 260px;
    height: 65vw;
  }
  .rv-title {
    font-size: 18px;
  }
  .rv-manage-btn span {
    display: none;
  }
}

/* On touch screens (no hover), always show card action buttons */
@media (hover: none) {
  .flag-icon-btn,
  .share-icon-btn,
  .save-icon-btn {
    opacity: 1;
    transform: scale(1);
  }
}

/* Category page You tab custom content */
/* Let the message fill the panel so it can be vertically centered.
   Scoped via :has() so the other tabs are unaffected. */
.panel-content:has(.category-you-tab) {
  display: flex;
  flex-direction: column;
}

#preferencesTab.active:has(.category-you-tab) {
  flex: 1;
  display: flex;
}

.category-you-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.category-you-icon {
  margin-bottom: 24px;
}

.category-you-icon img {
  width: 80px;
  height: 80px;
}

.category-you-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.category-you-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 320px;
  line-height: 1.5;
}

.category-you-btn {
  padding: 12px 24px;
  background: var(--rally-green);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: background-color 0.25s;
}

.category-you-btn:hover {
  background: var(--rally-green-hover);
}
