/* StockWatch - Professional Financial Platform */

/* CSS Variables */
:root {
  /* Primary Colors */
  --primary-color: #d28c8c;
  --primary-dark: #b02b2c;
  --secondary-color: #0693e3;
  --accent-color: #00d084;
  
  /* Neutral Colors */
  --text-dark: #333;
  --text-light: #6c757d;
  --text-white: #f5f5f6;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-dark: #2c3e50;
  --bg-darker: #1a1a23;
  
  /* Typography with robust fallbacks */
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Saira', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Shadows */
  --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-heavy: 0 8px 16px rgba(0,0,0,0.2);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  background-color: #3a394c;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
}

/* Reset margins for CMS pages */
body.cms-page {
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

/* Header */
header {
  background: #3a394c;
  color: var(--text-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
}

/* Hide mobile avatar on desktop */
.mobile-user-avatar {
  display: none;
  transition: padding 0.3s ease;
}

/* Chart Container Styling */
.stock-chart-container {
  margin: 30px 0;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #e8e8e8;
}

.stock-chart-container h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.stock-chart-container .chart-description {
  margin: 0 0 20px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.chart-placeholder {
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
  transition: all 0.3s ease;
}

.chart-placeholder:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

/* Compact header when scrolling */
header.scrolled {
  padding: 5px 0;
}

/* Scroll Progress Indicator */
header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #fcf8f0;
  width: var(--scroll-progress, 0%);
  transition: width 0.1s ease;
  z-index: 1001;
}



/* StockWatch Logo SVG */
#stockwatch-logo {
  height: 50px;
  width: auto;
  transition: height 0.3s ease;
}

/* Compact logo when scrolling */
header.scrolled #stockwatch-logo {
  height: 42px;
}

/* Logo Animation */
.animated-path-1 {
  animation: egbjm3HKWAa46__m 21500ms linear infinite normal forwards;
}

@keyframes egbjm3HKWAa46__m {
  0% {
    d: path('M26.71,21.86L26.71,21.86L37.67,10.67L37.67,10.67L26.71,21.86');
  }
  2.790698% {
    d: path('M26.71,21.86L26.71,21.86L37.67,10.67L37.67,10.67L26.71,21.86');
    animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
  }
  3.72093% {
    d: path('M32.51,48.1L26.71,21.86L37.67,10.67L61.35,48.1L32.51,48.1');
  }
  96.511628% {
    d: path('M32.51,48.1L26.71,21.86L37.67,10.67L61.35,48.1L32.51,48.1');
  }
  97.674419% {
    d: path('M32.51,48.1L32.51,48.089999L61.35,48.089999L61.35,48.1L32.51,48.1');
  }
  100% {
    d: path('M32.51,48.1L32.51,48.089999L61.35,48.089999L61.35,48.1L32.51,48.1');
  }
}

.animated-path-2 {
  animation: egbjm3HKWAa47__m 21500ms linear infinite normal forwards;
}

@keyframes egbjm3HKWAa47__m {
  0% {
    d: path('M1,48.1L23.92,48.1L11.465012,48.1L1,48.1');
  }
  1.860465% {
    d: path('M1,48.1L23.92,48.1L11.465012,48.1L1,48.1');
    animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
  }
  2.790698% {
    d: path('M1,48.1L23.92,48.1L37.67,10.67L1,48.1');
  }
  95.813953% {
    d: path('M1,48.1L23.92,48.1L37.67,10.67L1,48.1');
  }
  96.744186% {
    d: path('M37.67,10.67L37.67,10.67L37.67,10.67L37.67,10.67');
  }
  100% {
    d: path('M37.67,10.67L37.67,10.67L37.67,10.67L37.67,10.67');
  }
}

.animated-path-3 {
  animation: egbjm3HKWAa48__m 21500ms linear infinite normal forwards;
}

@keyframes egbjm3HKWAa48__m {
  0% {
    d: path('M32.51,48.1L61.52,48.1L44.03,48.1L32.51,48.1');
  }
  3.72093% {
    d: path('M32.51,48.1L61.52,48.1L44.03,48.1L32.51,48.1');
    animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
  }
  5.302326% {
    d: path('M32.51,48.1L61.52,48.1L78.92,0.73L32.51,48.1');
  }
  97.674419% {
    d: path('M32.51,48.1L61.52,48.1L78.92,0.73L32.51,48.1');
  }
  99.534884% {
    d: path('M78.92,0.73L78.92,0.73L78.92,0.73L78.92,0.73');
  }
  100% {
    d: path('M78.92,0.73L78.92,0.73L78.92,0.73L78.92,0.73');
  }
}

/* Navigation Menu */

/* Subscribe Button in Navigation */
.subscribe-nav .btn-subscribe {
  background: var(--primary-color);
  color: var(--text-white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.subscribe-nav .btn-subscribe:hover {
  background: var(--primary-dark);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

/* Search Styles */
.nav-search {
  position: relative;
  margin-left: 16px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.search-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.search-icon.active {
  background: rgba(28, 108, 169, 0.15);
  color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(28, 108, 169, 0.1);
}

.search-input-container {
  position: absolute;
  top: 100%;
  right: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(28, 108, 169, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 380px;
  max-width: 520px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  border-color: rgba(28, 108, 169, 0.2);
  margin-top: 14px;
}

.search-input-container input {
  width: 100%;
  padding: 18px 24px;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #2c3e50;
  background: transparent;
  border-radius: 12px 12px 0 0;
  font-weight: 500;
}

.search-input-container input::placeholder {
  color: #95a5a6;
  font-weight: 400;
}

.search-suggestions {
  max-height: 400px;
  overflow-y: auto;
  border-top: 1px solid #e9ecef;
  display: none;
}

.search-suggestions.show {
  display: block;
}

.suggestion-item {
  border-bottom: 1px solid #f8f9fa;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

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

.suggestion-item:hover,
.suggestion-item.active {
  background: #e3f2fd;
  border-left-color: var(--primary-color);
}

.suggestion-item a {
  display: block;
  padding: 16px 24px;
  text-decoration: none;
  color: #333;
}

.suggestion-item:hover a,
.suggestion-item.active a {
  color: #333 !important;
}

/* Override header nav hover for search suggestions */
.nav-search .suggestion-item:hover,
.nav-search .suggestion-item.active {
  background: #e3f2fd !important;
  border-left-color: var(--primary-color) !important;
}

.nav-search .suggestion-item:hover a,
.nav-search .suggestion-item.active a {
  color: #333 !important;
  background: transparent !important;
}

.suggestion-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #2c3e50;
}

.suggestion-type {
  font-size: 0.85rem;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 4px;
}

.suggestion-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* Search Results Page Styles */
.search-results-section {
  padding: 32px 0;
  background: #f8f9fa;
  min-height: 60vh;
}

.search-header {
  text-align: center;
  margin-bottom: 48px;
}

.search-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 16px;
}

.search-query {
  font-size: 1.1rem;
  color: #666;
}

.query-term {
  font-weight: 600;
  color: var(--primary-color);
}

.search-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.loading-spinner {
  text-align: center;
  padding: 48px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.results-summary {
  margin-bottom: 32px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.results-section {
  margin-bottom: 48px;
}

.results-section h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
}

.results-grid {
  display: grid;
  gap: 24px;
}

.result-item {
  background: white;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.result-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.result-item h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
}

.result-item h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.result-item h3 a:hover {
  color: var(--primary-color);
}

.result-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.result-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
}

.result-type {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.result-date,
.result-ticker,
.result-sector {
  color: #666;
}

.no-query {
  text-align: center;
  padding: 64px 32px;
}

.no-query h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 16px;
}

.search-examples {
  margin-top: 48px;
}

.search-examples h3 {
  color: #666;
  margin-bottom: 16px;
}

.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.example-tag {
  background: white;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.example-tag:hover {
  background: var(--primary-color);
  color: white;
}

.no-results,
.search-error {
  text-align: center;
  padding: 64px 32px;
  background: white;
  border-radius: 8px;
  margin: 2rem 0;
}

.no-results h2,
.search-error h2 {
  color: #2c3e50;
  margin-bottom: 16px;
}

.search-tips {
  margin-top: 32px;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.search-tips h3 {
  color: #666;
  margin-bottom: 16px;
}

.search-tips ul {
  list-style: none;
  padding: 0;
}

.search-tips li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f8f9fa;
}

.search-tips li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 8px;
}

mark {
  background: #fff3cd;
  color: #856404;
  padding: 0.1rem 0.2rem;
  border-radius: 2px;
}





/* Hide slide menu on desktop */
.slide-menu {
  display: none;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 2.5vw, 20px);
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.header-logo {
  flex-shrink: 0;
  position: relative;
  z-index: 10002;
}

.header-logo a {
  padding: 0;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 30px;
  flex: 1;
  gap: 40px;
}

.header-menu ul {
  display: flex;
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: space-between;
}

.header-menu ul li {
  position: relative;
}

.header-menu ul li a {
  color: white;
  text-decoration: none;
  font-weight: 300;
  padding: 10px 0;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-menu ul li a:hover {
  color: var(--primary-color);
}

/* Navigation Dropdown Styles */
.header-menu .dropdown {
  position: relative;
}

header .header-menu .dropdown-content {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: rgb(65, 64, 89) !important;
  min-width: 200px !important;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 8px 15px 0px !important;
  border-radius: 0px !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s ease !important;
  z-index: 1000 !important;
  border: none !important;
}

header .header-menu .dropdown:hover .dropdown-content {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

header .header-menu .dropdown-content a {
  color: rgb(214, 213, 237) !important;
  padding: 8px 15px !important;
  text-decoration: none !important;
  display: block !important;
  transition: all 0.2s ease !important;
  font-weight: 300 !important;
  font-size: 18px !important;
  line-height: 32.4px !important;
  font-family: 'roboto', Helvetica, Arial, sans-serif !important;
  border-left: none !important;
}

header .header-menu .dropdown-content a:hover {
  background: rgba(214, 213, 237, 0.1) !important;
  color: rgb(214, 213, 237) !important;
  border-left: none !important;
  padding-left: 15px !important;
}

header .header-menu .dropdown-content a:first-child {
  border-top-left-radius: 0px !important;
  border-top-right-radius: 0px !important;
}

header .header-menu .dropdown-content a:last-child {
  border-bottom-left-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
}

/* Crown Icons for Premium Navigation Items */
.header-menu ul li a[href="/analyses"]::before,
.header-menu ul li a[href="/portfolios"]::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 85.04 85.04'%3E%3Cpolygon fill='%23e6d3ad' points='56.69 56.69 28.35 56.69 22.68 34.65 36.85 44.09 42.52 28.35 48.19 44.09 62.36 34.65 56.69 56.69'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

/* Global Empty State - Centered regardless of grid layout */
.empty-state-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 32px;
  max-width: 600px;
  margin: 2rem auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  min-height: 300px;
}

.empty-state-card .empty-icon {
  margin-bottom: 24px;
  opacity: 0.7;
}

.empty-state-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.empty-state-card p {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 400px;
}

.empty-state-card .empty-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.empty-state-card .empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.empty-state-card .empty-btn-primary {
  background: var(--primary-color);
  color: white;
}

.empty-state-card .empty-btn-primary:hover {
  background: #1a5a8a;
}

.empty-state-card .empty-btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.empty-state-card .empty-btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Mobile responsive for empty state card */
@media (max-width: 768px) {
  .empty-state-card {
    padding: 3rem 1.5rem;
    margin: 1rem;
    min-height: 250px;
  }
  
  .empty-state-card h3 {
    font-size: 1.25rem;
  }
  
  .empty-state-card p {
    font-size: 0.9rem;
  }
  
  .empty-state-card .empty-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .empty-state-card .empty-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

/* Crown Icons for Dropdown Content - Fix inline alignment */
.header-menu .dropdown-content a[href="/analyses"]::before,
.header-menu .dropdown-content a[href="/analyses/binnenland"]::before,
.header-menu .dropdown-content a[href="/analyses/buitenland"]::before,
.header-menu .dropdown-content a[href="/portfolios/niels"]::before,
.header-menu .dropdown-content a[href="/portfolios/arend-jan"]::before,
.header-menu .dropdown-content a[href="/portfolios/paul"]::before,
.header-menu .dropdown-content a[href="/portfolios/updates"]::before {
  content: '';
  display: inline-block !important;
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 85.04 85.04'%3E%3Cpolygon fill='%23e6d3ad' points='56.69 56.69 28.35 56.69 22.68 34.65 36.85 44.09 42.52 28.35 48.19 44.09 62.36 34.65 56.69 56.69'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle !important;
  margin-top: 0;
  margin-left: -7px;
}

/* Override display block for dropdown links with crown icons */
.header-menu .dropdown-content a[href="/analyses"],
.header-menu .dropdown-content a[href="/analyses/binnenland"],
.header-menu .dropdown-content a[href="/analyses/buitenland"],
.header-menu .dropdown-content a[href="/portfolios/niels"],
.header-menu .dropdown-content a[href="/portfolios/arend-jan"],
.header-menu .dropdown-content a[href="/portfolios/paul"],
.header-menu .dropdown-content a[href="/portfolios/updates"] {
  display: flex !important;
  align-items: center !important;
}

.header-menu .nav-search,
.header-menu .nav-account {
  flex-shrink: 0;
}

.hamburger {
  display: none;
}

/* Mobile Navigation Overlay */
@media (max-width: 1280px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.5s ease-in-out;
  }

  .hamburger-line {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-white);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
    transform-origin: left center;
  }

  .hamburger-line:nth-child(1) {
    top: 0px;
  }

  .hamburger-line:nth-child(2) {
    top: 9px;
  }

  .hamburger-line:nth-child(3) {
    top: 18px;
  }

  .hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    top: -2px;
    left: 4px;
  }

  .hamburger.active .hamburger-line:nth-child(2) {
    width: 0%;
    opacity: 0;
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 19px;
    left: 4px;
  }

  .header-menu {
    display: none;
  }

  /* Mobile header layout using flexbox */
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
  }

  .mobile-user-avatar {
    display: block;
    flex-shrink: 0;
    position: relative;
    z-index: 10002;
  }

  .header-logo {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .hamburger {
    flex-shrink: 0;
    position: relative;
    top: auto;
    right: auto;
    transform: none;
  }

  #stockwatch-logo {
    height: 45px;
  }

  .mobile-user-avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
  }

  .mobile-user-avatar .avatar-placeholder {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid var(--primary-color);
  }

  /* Show slide menu on mobile */
  .slide-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #2a2938;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  }

  .slide-menu.active {
    right: 0;
  }

  .slide-menu-content {
    padding: 80px 20px 20px 20px;
    overflow-y: auto;
    height: 100%;
  }

  .slide-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .slide-menu-content ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .slide-menu-content ul li a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    width: 100%;
  }

  .slide-menu-content ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Mobile Accordion Styles */
  .mobile-dropdown {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 15px 25px !important;
  }

  .mobile-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .dropdown-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
    margin-left: 10px;
  }

  .mobile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }

.slide-menu .mobile-dropdown .mobile-submenu {
  max-height: 0 !important;
  overflow: hidden !important;
  background: rgba(0, 0, 0, 0.1) !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  transition: max-height 0.3s ease !important;
  height: auto !important;
}

.slide-menu .mobile-dropdown.active .mobile-submenu {
  max-height: 500px !important;
  overflow: hidden !important;
}

  .mobile-submenu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-submenu li:last-child {
    border-bottom: none;
  }

  .mobile-submenu a {
    padding: 12px 35px !important;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: none !important;
    font-weight: 400;
  }

  .mobile-submenu a:hover {
    color: #ffd700 !important;
    background: rgba(255, 255, 255, 0.05);
  }

}

/* Account Navigation */
.nav-account {
  display: flex;
  align-items: center;
}

/* Account Dropdown */
.account-dropdown {
  position: relative;
  cursor: pointer;
}

.account-icon {
  background: var(--primary-color);
  color: var(--text-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.account-icon:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.account-avatar:hover {
  transform: scale(1.05);
  border-color: var(--primary-dark);
}

.account-initial {
  font-weight: bold;
  text-transform: uppercase;
}

.account-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-heavy);
  border-radius: var(--radius-md);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  margin-top: 10px;
}

.account-dropdown:hover .account-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-dropdown-content a {
  color: var(--text-dark);
  padding: var(--spacing-sm) var(--spacing-md);
  display: block;
  border-bottom: 1px solid var(--bg-light);
  transition: all 0.3s ease;
  border-radius: 8px;
}

.account-dropdown-content a:last-child {
  border-bottom: none;
}

.account-dropdown-content a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
}

.main-content {
  min-height: calc(100vh - 70px);
  padding: var(--spacing-lg) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2.5vw, 1.5rem);
}

/* Hero Section */
.hero-section {
  background: #3a394c;
  color: var(--text-white);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}
.hero-section header {
  background: transparent;
  text-align: left;
}
.hero-section header .hero-category {
  font-weight: 400;
  background-color: #d1d1dedd;
  border-radius: 0;
  text-transform: uppercase;
  padding: 2px 8px;
  font-size: 14px;
  font-family: saira, Helvetica, Arial, sans-serif;
}
.hero-section header .hero-title {
  margin-top: 8px;
  margin-bottom: 0;
}

/* Content Cards */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.content-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border-left: 4px solid var(--secondary-color);
}

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

.content-card h3 {
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.content-card .meta {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
  color: var(--text-light);
}

.content-card .excerpt {
  color: var(--text-light);
  line-height: 1.6;
}

/* Premium Badge */
.premium-badge {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
  margin-top: var(--spacing-sm);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background: rgba(210, 140, 140, 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--text-light);
  color: var(--text-white);
}

.btn-secondary:hover {
  background: var(--text-dark);
}

.btn-outline {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
  background: var(--secondary-color);
  color: var(--text-white);
}


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

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(210, 140, 140, 0.2);
}

/* Status Badges */
.status {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.status-draft {
  background: #fff3cd;
  color: #856404;
}

.status-published {
  background: #d4edda;
  color: #155724;
}

.status-archived {
  background: #f8d7da;
  color: #721c24;
}

.sw-footer {
  background: #1f1f2a;
  color: var(--text-white);
  padding: var(--spacing-xl) 0;
  position: relative;
}

.sw-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.sw-column {
  padding: 0 var(--spacing-md);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sw-column:last-child {
  border-right: none;
}

.sw-column-title {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sw-column p {
  margin: 0;
  line-height: 1.8;
}

.sw-link {
  color: var(--text-white);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  margin-bottom: var(--spacing-xs);
}

.sw-link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Socket Footer */
.socket-footer {
  background: var(--bg-darker);
  color: var(--text-white);
  padding: var(--spacing-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.socket-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.socket-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.socket-footer .copyright {
  font-size: 0.9rem;
  color: var(--text-light);
}

.sub-menu-socket ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-lg);
}

.sub-menu-socket a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .sw-footer .container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .sw-column {
    padding: 0;
    text-align: center;
  }
  
  .socket-footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  .sub-menu-socket ul {
    justify-content: center;
    gap: var(--spacing-md);
  }
}

/* Scroll to top button */
.scroll-top-link {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: var(--text-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-medium);
}

.scroll-top-link:hover {
  background: var(--primary-dark);
  transform: translateY(0) scale(1.1);
  color: var(--text-white);
}

.scroll-top-link.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.scroll-top-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive scroll to top */
@media (max-width: 768px) {
  .scroll-top-link {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .main-nav {
    flex-direction: column;
    width: 100%;
  }
  
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.1);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Subscribe Page Styles */

.subscribe-section {
  background-color: #3a394c;
  margin-top: 0;
  padding-top: 100px;
}

/* Typing Animation */
.typing-animation-container {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  min-height: 60px;
  width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.typing-text {
  font-size: 30px;
  color: #fcf8f0;
  font-weight: 400;
  text-align: center;
  min-height: 1.5em;
  position: relative;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
}

.typing-text.selected {
  background-color: var(--selection-color, #007acc);
  color: white;
}

.typing-cursor {
  font-size: 32px;
  color: #fcf8f0;
  animation: blink 1s infinite;
  margin-left: 1px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.subscribe-hero-section {
  margin: 0 auto;
  position: relative;
}

.subscribe-hero-section, .subscribe-hero-section h1, .subscribe-hero-section .typing-animation-container {
  width: fit-content;
  color: #fff;
}

.subscribe-hero-section h1 {
  font-size: 62px;
  font-weight: 500;
}

.subscribe-section .container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 150px var(--spacing-sm);
  align-items: flex-start;
}


.subscribe-section .proposition {
  background-color: #fff;
  box-shadow: 0px 3px 20px #00000099;
  padding-bottom: 50px;
}

.subscribe-section .proposition-header {
  background-color: #3a394c;
  padding-top: 15px;
  padding-bottom: 30px;
  margin-bottom: 50px;
}

.subscribe-section .proposition-header > h2 {
  font-size: 42px;
  margin-top: 20px;
}

.subscribe-section .proposition-header * {
  color: #fff;
  text-align: center;
}


.subscribe-section .proposition-price-tag {
  background-color: #414054;
}

.subscribe-section .proposition-price-tag h2 {
  padding-block: 20px;
  font-size: 36px;
  font-weight: 200;
}

.subscribe-section .proposition-CTA {
  background-color: #414054;
  color: #fff;
  text-align: center;
  padding: 14px 40px;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 50px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.proposition-specification {
  margin-inline: 5%;
  display: flex;
}

.proposition-specification-text {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.proposition-specification-text::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.proposition-specification-text p {
  flex: 1;
  border-top: 1px solid #c1c0d4;
  padding-top: 20px;
  width: 100%;
}

/* Disabled proposition specifications */
.proposition-specification.disabled .proposition-specification-text {
  opacity: 0.5;
}

.proposition-specification.disabled .proposition-specification-text::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Premium Jaar (middle, larger) */
.proposition.premium-jaar {
  transform: scale(1.1);
  z-index: 2;
}

.proposition.premium-jaar .proposition-header {
  background-color: #c28181;
}

.proposition.premium-jaar .proposition-price-tag {
  background-color: #9b6767;
}

.proposition.premium-jaar .proposition-CTA {
  background-color: #c28181;
}

.proposition.premium-jaar .proposition-specification-text::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%23c28181' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Premium Maand (third) */
.proposition.premium-maand .proposition-header {
  background-color: #b09d79;
}

.proposition.premium-maand .proposition-price-tag {
  background-color: #8c7d60;
}

.proposition.premium-maand .proposition-CTA {
  background-color: #b09d79;
}

.proposition.premium-maand .proposition-specification-text::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%23b09d79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Account Page Styles */

.account-overview,
.subscription-details,
.account-actions,
.recent-activity {
  margin-bottom: 32px;
}

.account-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.account-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--bg-light);
  border-bottom: 1px solid #e9ecef;
}

.account-card-header h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.25rem;
}

.account-card-content {
  padding: 2rem;
}

.account-status {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-status.premium {
  background: var(--primary-color);
  color: var(--text-white);
}

.account-status.free {
  background: var(--text-light);
  color: var(--text-white);
}

.account-info-grid,
.subscription-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

/* Avatar Styles */
.avatar-section {
  margin-bottom: 32px;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.avatar-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: var(--shadow-light);
}

.profile-avatar.placeholder {
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 2rem;
  font-weight: bold;
}

.avatar-initial {
  text-transform: uppercase;
}

.avatar-upload-btn {
  margin-top: 0.5rem;
}

/* Avatar Upload Modal Styles */
.avatar-upload-area {
  border: 2px dashed #ddd;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-light);
}

.avatar-upload-area:hover,
.avatar-upload-area.drag-over {
  border-color: var(--primary-color);
  background: rgba(210, 140, 140, 0.05);
}

.upload-placeholder {
  color: var(--text-muted);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.upload-hint {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.avatar-preview {
  text-align: center;
}

.avatar-preview img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  margin-bottom: 16px;
}

.preview-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item span {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge.admin,
.role-badge.god {
  background: var(--primary-color);
  color: var(--text-white);
}

.role-badge.user {
  background: var(--text-light);
  color: var(--text-white);
}


.status-badge.active {
  background: #28a745;
  color: white;
}

.status-badge.cancelled {
  background: #dc3545;
  color: white;
}

.status-badge.pending {
  background: #ffc107;
  color: #212529;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}


.btn-danger {
  background: #dc3545;
  color: white;
  border: 1px solid #dc3545;
}

.btn-danger:hover {
  background: #c82333;
  border-color: #bd2130;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid #e9ecef;
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.activity-details {
  flex: 1;
}

.activity-title {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.activity-time {
  font-size: 0.875rem;
  color: var(--text-light);
}

.activity-amount {
  font-weight: 600;
  color: var(--text-dark);
}

.view-all {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

.view-all:hover {
  text-decoration: underline;
}


/* Modal Styles for Account Page */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-heavy);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
  margin: 0;
  color: var(--text-dark);
}

.close {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  color: var(--text-dark);
}

.modal-form {
  padding: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e9ecef;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(210, 140, 140, 0.1);
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 32px;
}

/* ========================================
   CMS STYLES
   ======================================== */

/* CMS Layout - Nexus Style */
.cms-layout {
  display: flex;
  min-height: 100vh;
  background: #fcf8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

/* Sidebar - Modern Design */
.cms-sidebar {
  width: 280px;
  background: #1a1a23;
  border-right: 1px solid #2c3e50;
  padding: 0;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  margin: 0;
}

.cms-sidebar.collapsed {
  width: 80px;
}

.cms-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #2c3e50;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cms-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cms-logo-icon {
  width: 32px;
  height: 32px;
  background: #1a1a23;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  border: 1px solid #2c3e50;
}

.cms-logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
}

.cms-sidebar.collapsed .cms-logo-text {
  display: none;
}

.cms-sidebar-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
}

.cms-sidebar-toggle:hover {
  background: #f1f5f9;
  color: #334155;
}

.toggle-icon {
  font-size: 14px;
  font-weight: 600;
}

.cms-nav {
  padding: 1rem 0;
  flex: 1;
}

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

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 1.5rem;
  margin-bottom: 0.75rem;
}

.cms-sidebar.collapsed .nav-section-title {
  display: none;
}

.cms-nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: #d0d0d0;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  gap: 0.75rem;
}

.cms-sidebar.collapsed .cms-nav-item {
  justify-content: center;
  padding: 0.75rem;
}

.cms-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.cms-nav-item.active {
  background: rgba(210, 140, 140, 0.2);
  color: var(--primary-color);
  border-right: 3px solid var(--primary-color);
}

.nav-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.nav-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.cms-sidebar.collapsed .nav-text {
  display: none;
}

.nav-badge {
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  margin-left: auto;
}

.cms-sidebar.collapsed .nav-badge {
  display: none;
}

/* Sidebar Footer */
.cms-sidebar-footer {
  margin-top: auto;
  padding: 24px;
  border-top: 1px solid #2c3e50;
}

.cms-home-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #d0d0d0;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.cms-home-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

.cms-sidebar.collapsed .cms-home-btn {
  justify-content: center;
  padding: 0.75rem;
}

.cms-sidebar.collapsed .cms-home-btn .nav-text {
  display: none;
}

.cms-footer-info {
  margin-top: 1rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #313139;
  min-height: 60px;
  border-radius: 8px;
}

.cms-sidebar.collapsed .user-profile {
  justify-content: center;
  padding: 0.75rem;
}

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

.user-avatar.placeholder {
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  min-width: 32px;
  min-height: 32px;
}

.user-info {
  flex: 1;
}

.cms-sidebar.collapsed .user-info {
  display: none;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.2;
}

.user-details {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.1rem;
}

.user-role {
  font-size: 0.7rem;
  color: #a0a0a0;
  text-transform: capitalize;
}

.user-separator {
  font-size: 0.6rem;
  color: #666;
  opacity: 0.5;
}

.user-email {
  font-size: 0.65rem;
  color: #888;
  opacity: 0.8;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-last-login {
  font-size: 0.6rem;
  color: #666;
  margin-top: 0.15rem;
  opacity: 0.7;
}

/* Profile Icon */
.cms-profile-icon {
  position: absolute;
  top: 1rem;
  right: 2rem;
  z-index: 100;
}

.cms-profile-icon .account-dropdown {
  position: relative;
  display: inline-block;
}

.cms-profile-icon .account-icon {
  width: 40px;
  height: 40px;
  background: #d28c8c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: white;
  transition: background-color 0.3s ease;
}

.cms-profile-icon .account-icon:hover {
  background: #b02b2c;
}

.cms-profile-icon .account-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 1000;
  overflow: hidden;
}

.cms-profile-icon .account-dropdown:hover .account-dropdown-content {
  display: block;
}

.cms-profile-icon .account-dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.cms-profile-icon .account-dropdown-content a:hover {
  background-color: #f8f9fa;
  color: #d28c8c;
}

.cms-profile-icon .account-dropdown-content a:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.cms-profile-icon .account-dropdown-content a:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* CMS Header - Modern Design */
.cms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 22px;
  background: var(--bg-white);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.cms-header-left {
  display: flex;
  align-items: center;
}

.cms-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item {
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb-item.active {
  color: var(--text-dark);
  font-weight: 600;
}

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

.cms-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cms-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cms-action-btn:hover {
  background: var(--bg-light);
  color: var(--text-dark);
  border-color: #cbd5e1;
}

.action-icon {
  font-size: 16px;
}

.action-text {
  font-weight: 500;
}

.cms-user-menu {
  position: relative;
}

/* Updated Profile Icon for Header */
.cms-header .cms-profile-icon {
  position: static;
  top: auto;
  right: auto;
}

.cms-header .cms-profile-icon .account-icon {
  width: 35px;
  height: 35px;
  font-size: 1rem;
}

/* Main Content */
.cms-main {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  position: relative;
  margin-left: 280px;
  min-height: 100vh;
  transition: all 0.3s ease;
  background: #fcf8f0;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
}

.cms-main.sidebar-collapsed {
  margin-left: 80px;
}

.cms-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.cms-content-header h2 {
  margin: 0;
  color: #2c3e50;
}

.tab-content-inner {
  padding: 2rem;
}

/* Dashboard Styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
}

.dashboard-actions {
  display: flex;
  gap: 16px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.metric-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.metric-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.metric-info {
  flex: 1;
}

.metric-title {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1;
}

.metric-trend {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-indicator {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.trend-indicator.positive {
  background: #dcfce7;
  color: #166534;
}

.trend-indicator.negative {
  background: #fee2e2;
  color: #dc2626;
}

.trend-text {
  font-size: 0.8rem;
  color: #64748b;
}

.dashboard-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.content-section {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.section-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}

.section-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.section-link:hover {
  color: var(--primary-color);
}

.content-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-item {
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.content-item:hover {
  border-color: #cbd5e1;
  background: white;
}

.content-item.featured {
  background: white;
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(210, 140, 140, 0.1);
}

.content-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.content-item-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
  flex: 1;
}

.content-excerpt {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #64748b;
}

.meta-icon {
  font-size: 14px;
}

.analysis-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.rating {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.rating.strong_buy {
  background: #dcfce7;
  color: #166534;
}

.rating.buy {
  background: #dcfce7;
  color: #166534;
}

.rating.hold {
  background: #fef3c7;
  color: #92400e;
}

.rating.sell {
  background: #fee2e2;
  color: #dc2626;
}

.rating.strong_sell {
  background: #fee2e2;
  color: #dc2626;
}

.target-price {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
}

/* Page Header Styles - Removed general page-header styles */

.page-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 0.5rem 0;
}

.page-title p {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
}

.page-actions {
  display: flex;
  gap: 16px;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.content-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  overflow: hidden;
}

.content-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.card-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-header h3 {
  margin: 0;
  color: #1a202c;
  font-size: 1.25rem;
  font-weight: 600;
  flex: 1;
}

.card-content {
  padding: 1rem 1.5rem;
}

.card-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #6c757d;
}

.content-status {
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.status-draft {
  background: #fff3cd;
  color: #856404;
}

.status-published {
  background: #d4edda;
  color: #155724;
}

.status-archived {
  background: #f8d7da;
  color: #721c24;
}

.content-excerpt {
  color: #6c757d;
  line-height: 1.5;
  margin-bottom: 16px;
}

.content-actions {
  display: flex;
  gap: 8px;
}

/* CMS Buttons - Modern Design */
.cms-layout .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cms-layout .btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 1px 3px rgba(210, 140, 140, 0.3);
}

.cms-layout .btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(210, 140, 140, 0.4);
  transform: translateY(-1px);
}

.cms-layout .btn-secondary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 1px 3px rgba(210, 140, 140, 0.3);
}

.cms-layout .btn-secondary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(210, 140, 140, 0.4);
  transform: translateY(-1px);
}

.cms-layout .btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.cms-layout .btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.cms-layout .btn-danger {
  background: #8b5a5a;
  color: white;
  box-shadow: 0 1px 3px rgba(139, 90, 90, 0.3);
}

.cms-layout .btn-danger:hover {
  background: #6d4545;
  box-shadow: 0 4px 12px rgba(139, 90, 90, 0.4);
  transform: translateY(-1px);
}

.cms-layout .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-icon {
  font-size: 16px;
}

/* Portfolio Settings */
.portfolio-settings {
  padding: 32px 0;
}

.settings-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.settings-header {
  margin-bottom: 32px;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.settings-header h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.settings-header p {
  color: var(--text-light);
  margin: 0;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.form-section h4 {
  color: var(--text-dark);
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 600;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-dark);
  gap: 0.75rem;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label:hover .checkmark {
  border-color: var(--primary-color);
}

.form-group label:not(.checkbox-label) {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(210, 140, 140, 0.1);
}

.form-actions {
  display: flex;
  gap: 16px;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

/* Admin Portfolio View */
.admin-portfolio-view {
  padding: 32px 0;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-item {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.portfolio-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(210, 140, 140, 0.1);
}

.portfolio-info h4 {
  color: var(--text-dark);
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.portfolio-info p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.portfolio-actions {
  display: flex;
  gap: 0.75rem;
}

/* CMS Modals */
.cms-layout .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.cms-layout .modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Wider modal for analysis articles */
#analysisModal .modal-content {
  max-width: 1200px;
}

/* Two-column layout for analysis form */
.analysis-form-columns {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  align-items: start;
}

.analysis-main-column {
  min-width: 0; /* Prevent grid overflow */
}

.analysis-sidebar-column {
  position: sticky;
  top: 0;
  max-height: calc(90vh - 150px);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-section {
  background: #f8f9fa;
  padding: 1.25rem;
  margin-bottom: 16px;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-section .form-group {
  margin-bottom: 16px;
}

.sidebar-section .form-group:last-child {
  margin-bottom: 0;
}

/* Editor stats (word count, auto-save) */
.editor-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.word-count {
  font-weight: 500;
}

.char-count {
  color: #adb5bd;
}

.auto-save-indicator {
  margin-left: auto;
  font-size: 0.8125rem;
  font-style: italic;
  color: #28a745;
}

.auto-save-indicator.saving {
  color: #ffc107;
}

.auto-save-indicator.error {
  color: #dc3545;
}

/* Cover warning styling for sidebar */
.cover-warning-small {
  font-size: 0.75rem;
  color: #6c757d;
  margin: 0.5rem 0 0 0;
  text-align: center;
}

/* Button utilities for sidebar */
.btn-block {
  width: 100%;
  display: block;
}

/* Responsive: Stack columns on smaller screens */
@media (max-width: 1200px) {
  .analysis-form-columns {
    grid-template-columns: 1fr;
  }
  
  .analysis-sidebar-column {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

.cms-layout .modal-header {
  padding: 24px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
}

/* Add action buttons to modal header */
.modal-header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-left: auto;
  padding-left: 2rem;
}

/* Tags chips UI */
.tags-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.tag-chip {
  position: relative;
}

.tag-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  color: #495057;
  user-select: none;
  margin: 0;
}

.tag-label:hover {
  border-color: var(--primary-color);
  background: #f8f9fa;
}

.tag-checkbox:checked + .tag-label {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.tag-checkbox:checked + .tag-label:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Enhanced editor toolbar buttons */
.editor-toolbar .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.editor-toolbar .btn svg {
  flex-shrink: 0;
}

.editor-toolbar .btn span {
  font-size: 0.875rem;
}

.cms-layout .modal-header h3 {
  margin: 0;
  color: #2c3e50;
}

.cms-layout .close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.cms-layout .close:hover {
  color: #000;
}

.cms-layout .modal-body {
  padding: 24px;
}

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

.cms-layout .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #2c3e50;
}

.cms-layout .form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cms-layout .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(210, 140, 140, 0.2);
}

.cms-layout select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.cms-layout select.form-control:hover {
  border-color: #bbb;
}

.cms-layout select.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(210, 140, 140, 0.2);
}

.cms-layout textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.cms-layout .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cms-layout .modal-footer {
  padding: 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

/* Rich Text Editor */
.rich-editor {
  border: none;
  border-radius: 4px;
  height: 400px;
  padding: 0;
}

.ql-editor {
  min-height: 350px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.ql-toolbar {
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-radius: 4px 4px 0 0;
  background: #f8f9fa;
}

.ql-container {
  border-bottom: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-radius: 0 0 4px 4px;
}

.ql-editor p {
  margin-bottom: 16px;
}

.ql-editor h1,
.ql-editor h2,
.ql-editor h3 {
  margin-top: 1.5rem;
  margin-bottom: 16px;
  color: #2c3e50;
}

.ql-editor ul,
.ql-editor ol {
  margin-bottom: 16px;
  padding-left: 2rem;
}

.ql-editor li {
  margin-bottom: 0.5rem;
}

.ql-editor blockquote {
  border-left: 4px solid #3498db;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #6c757d;
}

/* Portfolios Overview Page */
.portfolios-overview-section {
  padding: 60px 0;
  min-height: calc(100vh - 200px);
  background: #fcf8f0;
}

.portfolios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 48px;
}

.portfolio-overview-card {
  background: #363646;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  border: none;
}

.portfolio-overview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.portfolio-image-header {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f8f9fa;
}

.portfolio-owner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.portfolio-overview-card:hover .portfolio-owner-image {
  transform: scale(1.05);
}

.portfolio-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 2rem 2rem 0 2rem;
}

.portfolio-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.portfolio-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.portfolio-description {
  margin-bottom: 24px;
  color: #b8b8c8;
  line-height: 1.6;
  padding: 0 2rem;
}

.portfolio-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 2rem 1.5rem 2rem;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

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

.meta-label {
  font-weight: 500;
  color: #9999aa;
  font-size: 0.9rem;
}

.meta-value {
  font-weight: 600;
  color: #ffffff;
}

.status-active {
  color: #4ade80;
}

.portfolio-cta {
  margin-top: auto;
  padding: 1rem 2rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-text {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.portfolio-overview-card:hover .cta-text {
  gap: 0.75rem;
}

.premium-note {
  margin-top: 48px;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-left: 4px solid var(--primary-color);
}

.premium-note-icon {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.premium-note-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.premium-note-content p {
  margin-bottom: 16px;
  color: #666;
}

/* Contact Page */
.contact-section {
  padding: 60px 0;
  min-height: calc(100vh - 200px);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-top: 48px;
}

.contact-info-panel {
  margin-bottom: 48px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}

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

.contact-info-item .info-icon {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-info-item h3 {
  margin: 0 0 0.25rem 0;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
}

.contact-info-item p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.contact-info-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

.contact-form-panel {
  padding: 32px 0;
}

.contact-form-panel h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #2c3e50;
}

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

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #495057;
}

.contact-form .form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.contact-form textarea.form-control {
  resize: vertical;
  font-family: inherit;
}

.contact-form .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .portfolios-grid {
    grid-template-columns: 1fr;
  }
  
  .premium-note {
    flex-direction: column;
    text-align: center;
  }
}

/* Stock suggestions loading animation */
.stock-suggestions-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: #666;
  font-size: 0.9rem;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Stock cover image display for analyses */
.stock-cover-image-display {
  margin-top: 10px;
}

.cover-image-preview {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.cover-image-info {
  flex: 1;
}

.cover-image-info p {
  margin: 0;
  color: #495057;
}

.cover-image-info strong {
  color: #212529;
}

.cover-hint {
  font-size: 0.875rem;
  color: #6c757d !important;
}

.no-cover-message, .no-stock-selected-message {
  margin-top: 10px;
}

.no-cover-placeholder, .no-stock-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  text-align: center;
}

.no-cover-placeholder .upload-icon,
.no-stock-placeholder .upload-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

.no-cover-placeholder p,
.no-stock-placeholder p {
  margin: 5px 0;
  color: #495057;
}

/* Stock Search */
.stock-search-container {
  position: relative;
}

.stock-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.stock-suggestion {
  padding: 0.5rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.stock-suggestion:hover {
  background: #f8f9fa;
}

.stock-suggestion.new {
  background: #e8f5e8;
  color: #2e7d32;
}

/* Editor Toolbar Styles */
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.editor-toolbar-hint {
  font-size: 0.875rem;
  color: #6c757d;
  font-style: italic;
}

/* Stock Chart Styles */
.stock-chart-container {
  margin: 1rem 0;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
}

.chart-description {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.chart-placeholder {
  transition: all 0.3s ease;
}

.chart-placeholder:hover {
  border-color: #007bff;
  background: #f8f9fa;
}

/* Chart Preview Styles */
.chart-preview {
  margin-top: 1rem;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
}

#previewChart {
  border-radius: 4px;
  overflow: hidden;
}

/* Content Block Styles */
.content-block {
  margin: 1.5rem 0;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid;
}

.content-block.callout {
  background: #fff3cd;
  border-left-color: #ffc107;
  color: #856404;
}

.content-block.info {
  background: #d1ecf1;
  border-left-color: #17a2b8;
  color: #0c5460;
}

.content-block.warning {
  background: #f8d7da;
  border-left-color: #dc3545;
  color: #721c24;
}

.block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.block-icon {
  font-size: 1.2rem;
}

.block-content {
  margin-left: 1.7rem;
}

.block-content p {
  margin: 0;
  line-height: 1.5;
}

/* Enhanced Image Styles in Editor */
.ql-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 1rem 0;
}

.ql-editor img[style*="float: left"] {
  float: left;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.ql-editor img[style*="float: right"] {
  float: right;
  margin-left: 16px;
  margin-bottom: 0.5rem;
}

/* Responsive Image Handling */
@media (max-width: 768px) {
  .ql-editor img[style*="float"] {
    float: none !important;
    margin: 1rem 0 !important;
    display: block;
  }
}

/* CMS Empty State - Modern Design */
.cms-layout .empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.cms-layout .empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.cms-layout .empty-state h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 600;
}

.cms-layout .empty-state h4 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 600;
}

.cms-layout .empty-state p {
  margin-bottom: 32px;
  color: var(--text-light);
  font-size: 1rem;
}

/* Tab Content Visibility */
.tab-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 82px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tab-content.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Sequential container animations within tabs */
.tab-content .content-section,
.tab-content .metric-card,
.tab-content .content-card,
.tab-content .content-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active .content-section.animate-in,
.tab-content.active .metric-card.animate-in,
.tab-content.active .content-card.animate-in,
.tab-content.active .content-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stock Image Management - Compact Integration */
.stock-images-compact-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 1rem;
}

.stock-image-compact-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
}

.stock-image-compact-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(210, 140, 140, 0.1);
}

.stock-compact-info {
  margin-bottom: 0.75rem;
}

.stock-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.stock-details {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
}

.stock-ticker {
  color: var(--primary-color);
  font-weight: 600;
  font-family: monospace;
}

.analysis-count {
  background: #e2e8f0;
  color: var(--text-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.stock-image-compact-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.compact-image {
  width: 80px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.compact-actions {
  display: flex;
  gap: 0.25rem;
}

.compact-actions .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-image-compact-placeholder {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
}

.placeholder-icon {
  width: 80px;
  height: 48px;
  border: 2px dashed #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #cbd5e1;
  flex-shrink: 0;
}

.empty-state-compact {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.empty-state-compact .empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.empty-state-compact p {
  margin: 0;
  font-size: 0.9rem;
}

/* Stock Image Management Responsive */
@media (max-width: 768px) {
  .stock-images-compact-list {
    grid-template-columns: 1fr;
  }
  
  .stock-image-compact-preview {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .compact-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* CMS Responsive - Modern Design */
@media (max-width: 1024px) {
  .dashboard-metrics {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .dashboard-content {
    grid-template-columns: 1fr;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cms-sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }
  
  .cms-sidebar.collapsed {
    width: 100%;
  }

  .cms-main {
    margin-left: 0;
  }
  
  .cms-main.sidebar-collapsed {
    margin-left: 0;
  }
  
  .cms-header {
    padding: 16px;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .dashboard-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;

  }
  
  .page-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .metric-card {
    padding: 16px;
  }
  
  .metric-value {
    font-size: 1.5rem;
  }
  
  .content-section {
    padding: 16px;
  }
  
  .tab-content-inner {
    padding: 16px;
  }

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

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  min-height: 60vh;
}

/* Desktop/Mobile Hero Visibility */
.desktop-hero {
  display: grid;
}

.mobile-hero {
  display: none;
}

/* Hero Carousel Styles (Mobile Only) */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.hero-carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.hero-carousel-slide .hero-article {
  width: 100%;
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.hero-carousel-prev,
.hero-carousel-next {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.hero-carousel-prev:hover,
.hero-carousel-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-carousel-prev:active,
.hero-carousel-next:active {
  transform: scale(0.95);
}

.hero-carousel-prev svg,
.hero-carousel-next svg {
  width: 20px;
  height: 20px;
}

.hero-carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hero-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-carousel-dot.active {
  background: var(--text-white);
  width: 30px;
  border-radius: 5px;
}

.feature-large {
  position: relative;
}

.feature-small {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-article {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.hero-article.large {
  height: 100%;
  min-height: 400px;
}

.hero-article.small {
  height: calc(50% - 0.5rem);
  min-height: 200px;
}

/* Hero Card Links */
.hero-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.hero-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.hero-card-link:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1);
  transform: scale(1.01);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(29, 29, 38, 0.8) 20%,
    rgba(31, 31, 42, 0) 60%
  );
  z-index: 0;
  transform: scale(1.1);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  border-radius: 0px 0px 12px 12px;
  padding: 24px;
}

.hero-title {
  margin: 0 0 1rem 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.3;
}

.hero-article.large .hero-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.hero-title a {
  color: #f0e6d2;
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0,0,0,1);
}

.hero-card-link .hero-title {
  color: #f0e6d2;
  text-shadow: 1px 1px 3px rgba(0,0,0,1);
}

.hero-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-category {
  background: #d1d1dedd;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #333;
}

.hero-date {
  color: #999;
  font-size: 13px;
  line-height: 0.4;
}


/* ========================================
   VIDEO & AUDIO PAGE STYLES
   ======================================== */

.videoaudio-section {
  background: #e8f4f8;
  min-height: 100vh;
}

.videoaudio-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: unset;
}

.videoaudio-section .page-header {
  justify-content: center;
  margin-bottom: 0;
  padding-top: 170px;
  padding-bottom: 100px;
  background: #3a394c;
}

.videoaudio-section .page-header h1 {
  font-size: 66px;
  color: #e8f4f8;
  margin-bottom: 0.5rem;
}

.videoaudio-section .section-transition-container {
  clip-path: polygon(0% 0%, 100% 0%, 30% 100%);
  margin-top: -1px;
  background: #3a394c;
  margin-bottom: 100px;
}

/* Type Filter */
.type-filter {
  margin-bottom: 32px;
  padding: 0 20px;
}

.videoaudio-section .filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.videoaudio-section .filter-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: #6c757d;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: none;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-block;
}

.videoaudio-section .filter-tab:hover {
  background: #f8f9fa;
  color: #333;
  transform: translateY(-1px);
}

.videoaudio-section .filter-tab.active {
  background: #3a394c;
  color: white;
  border-color: #2c2b3e;
}

/* VideoAudio Grid */
.videoaudio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
}

.videoaudio-card {
  background: #363646;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 0;
}

.videoaudio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Video/Audio Card Links */
.videoaudio-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.videoaudio-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.videoaudio-card-link:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.videoaudio-image-section {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f8f9fa;
}

.videoaudio-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.videoaudio-card:hover .videoaudio-image-section img {
  transform: scale(1.05);
}

.videoaudio-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #6c757d;
}

/* Remove old content-type-badge - now using category-tag format */

.videoaudio-category-tags {
  z-index: 2;
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.videoaudio-category-tags .category-tag {
  background: #d1d1de;
  color: #5e5d74;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.videoaudio-content-section {
  background: #363646;
  padding: 24px;
}

.videoaudio-title {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: #333;
  padding: 0;
  margin-bottom: 16px;
}

.videoaudio-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.videoaudio-title a:hover {
  color: var(--primary-color);
}

.videoaudio-card-link .videoaudio-title {
  color: #fff;
}

.videoaudio-card-link:hover .videoaudio-title {
  color: var(--primary-color);
}


.videoaudio-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: #e8f4f8;
}

.videoaudio-date {
  color: #e8f4f8;
  font-size: 0.875rem;
  padding-top: 30px;
}

.content-duration {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* VideoAudio Page Responsive */
@media (max-width: 768px) {
  .videoaudio-section .page-header h1 {
    font-size: 2rem;
  }
  
  .videoaudio-grid {
    grid-template-columns: 1fr;
  }
  
  .videoaudio-section .filter-tabs {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .videoaudio-section .filter-tab {
    text-align: center;
    padding: 16px;
  }
}

/* ========================================
   VIDEO & AUDIO DETAIL PAGE STYLES
   ======================================== */

.videoaudio-detail-section {
  padding: 32px 0;
  background: #f8f9fa;
  min-height: 100vh;
}

.videoaudio-detail-section .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.videoaudio-full {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.videoaudio-header {
  margin-bottom: 32px;
}

.content-type-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.content-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #f0f0f0;
  color: #666;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 500;
}

.videoaudio-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 1.5rem 0;
}

.videoaudio-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #6c757d;
  flex-wrap: wrap;
}

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

.author-name {
  font-weight: 600;
  color: #1a1a1a;
}

.publish-date {
  color: #666;
}

.content-duration {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.8rem;
}


/* Media Player Section */
.media-player-section {
  margin: 2rem 0;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e9ecef;
}

.youtube-player {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.youtube-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.spotify-player {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.spotify-player iframe {
  width: 100%;
  height: 352px;
  border-radius: 12px;
}

.player-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.placeholder-content {
  text-align: center;
  color: #6c757d;
}

.placeholder-content svg {
  margin-bottom: 16px;
  opacity: 0.6;
}

.placeholder-content p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

/* Content Section */
.videoaudio-content {
  line-height: 1.8;
  color: #333;
  font-size: 1.1rem;
  margin-top: 32px;
}

.videoaudio-content p {
  margin-bottom: 24px;
}

.videoaudio-content h2, 
.videoaudio-content h3 {
  color: #333;
  margin: 2rem 0 1rem 0;
}

.videoaudio-content ul, 
.videoaudio-content ol {
  margin-bottom: 24px;
  padding-left: 1.5rem;
}

.videoaudio-content li {
  margin-bottom: 0.5rem;
}

/* Premium Prompt */
.premium-prompt {
  position: relative;
  margin-top: 32px;
}

.videoaudio-preview {
  position: relative;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.premium-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.premium-message {
  text-align: center;
  padding: 2rem;
  max-width: 500px;
}

.premium-message h2 {
  color: #333;
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.premium-message p {
  color: #6c757d;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.premium-features {
  margin-bottom: 32px;
}

.premium-features ul {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.premium-features li {
  padding: 0.5rem 0;
  color: #333;
  font-size: 1rem;
}

.premium-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.videoaudio-detail-section .btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
  font-weight: 600;
}

.videoaudio-detail-section .btn-primary {
  background: #3182ce;
  color: white;
}

.videoaudio-detail-section .btn-primary:hover {
  background: #2c5aa0;
  color: white;
}

.videoaudio-detail-section .btn-secondary {
  background: #6c757d;
  color: white;
}

.videoaudio-detail-section .btn-secondary:hover {
  background: #545b62;
  color: white;
}

/* Related Content */
.related-content {
  margin-top: 48px;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.related-content h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.related-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e9ecef;
}

.related-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 16px;
  background: #e9ecef;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #6c757d;
}

.related-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-type {
  font-size: 0.8rem;
  color: #3182ce;
  font-weight: 600;
  text-transform: uppercase;
}

.related-info h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.related-info h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-info h4 a:hover {
  color: #3182ce;
}

.related-info time {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Error Message */
.error-message {
  text-align: center;
  padding: 48px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-message h2 {
  color: #dc3545;
  margin-bottom: 16px;
}

.error-message p {
  color: #6c757d;
  margin-bottom: 32px;
}

/* VideoAudio Detail Page Responsive */
@media (max-width: 768px) {
  .videoaudio-title {
    font-size: 1.8rem;
  }
  
  .videoaudio-meta {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .content-type-indicator {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .premium-actions {
    flex-direction: column;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .media-player-section {
    padding: 16px;
  }
  
  .spotify-player iframe {
    height: 232px; /* Smaller height for mobile */
  }
}

.analyses-section {
  background: #f1c6c6;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 48px);
  color: #333;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  padding: 0 clamp(1rem, 2.5vw, 20px);
}

.article-card {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
}

/* Clickable Card Links */
.article-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.article-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.article-card-link:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin: 2rem 0;
  padding: 2rem;
}

.load-more-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card Animation Styles */
.card-animate-enter {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: cardEnter 0.2s ease-out forwards;
}

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

/* Statistics Tab Styles */
.timeframe-selector {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.timeframe-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e1e5e9;
  background: white;
  color: #6c757d;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.timeframe-btn:hover {
  background: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
}

.timeframe-btn.active {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.metric-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.metric-icon {
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 8px;
  flex-shrink: 0;
}

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

.metric-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  word-break: break-word;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.25rem;
  word-break: break-word;
}

.stats-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.stats-chart-container {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-chart-container h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  margin-top: 0;
}

.article-rankings-chart-container {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 32px;
}

.article-rankings-chart-container h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  margin-top: 0;
}

.chart-wrapper {
  position: relative;
  height: 300px;
  width: 100%;
}

.chart-wrapper canvas {
  max-height: 100%;
}

.stats-table-container {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
}

.stats-table th {
  background: var(--bg-light);
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.875rem;
  white-space: nowrap;
}

.stats-table td {
  padding: 16px;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 0;
}

.stats-table tbody tr:hover {
  background: var(--bg-light);
}

.stats-table tbody tr:last-child td {
  border-bottom: none;
}

.article-info {
  max-width: 250px;
  min-width: 0;
}

.article-info .article-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  font-size: 20px;
}

.article-detail-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.article-detail-chart-container {
  margin-top: 16px;
}

.article-detail-chart-container h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  margin-top: 0;
}

.article-detail-info {
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.article-detail-info p {
  margin-bottom: 8px;
  color: var(--text-dark);
}

.article-detail-info strong {
  font-weight: 600;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .stats-charts-grid {
    grid-template-columns: 1fr;
  }
  
  .article-detail-metrics {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stats-table-container {
    overflow-x: auto;
  }
  
  .stats-table {
    min-width: 800px;
  }
}

.metric-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #007bff;
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.metric-badge.secondary {
  background: #6c757d;
}

.loading-text, .error-text, .no-data-text {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: 2rem;
}

.error-text {
  color: var(--primary-dark);
}

.article-image {
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-overlay {
  background-color: #363646;
  color: white;
  padding: clamp(16px, 2.5vw, 24px);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-read-more {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more-text {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.article-card-link:hover .read-more-text {
  color: var(--text-white);
}

.article-content {
  background: white;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-title {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.4;
  padding-top: 10px;
  padding-bottom: 10px;
}

.article-title a {
  color: white;
  text-decoration: none;
}

.article-title a:hover {
  color: #d28c8c;
}

.article-card-link .article-title {
  color: white;
}

.article-card-link:hover .article-title {
  color: #d28c8c;
}

.article-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.article-category {
  background: rgba(210, 140, 140, 0.8);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: white;
  font-weight: 500;
  margin-block: 14px;
  width: fit-content;
}

.article-date {
  color: rgba(255, 255, 255, 0.8);
}


.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d28c8c;
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
  padding: 0 1.5rem;
  padding-bottom: 1.5rem;
}

.read-more svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.section-actions {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.section-actions .btn {
  min-height: 44px;
  padding: clamp(0.625rem, 1.5vw, 0.75rem) clamp(1.25rem, 2.5vw, 1.5rem);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Content Section */
.dashboard-content .content-section {
  padding: 20px;
  background: #fcf8f0;
  color: white;
}



.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.content-section .content-column {
  background: white;
}

.content-column .column-title {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: clamp(1.75rem, 4vw, 42px);
}

.content-section .image-container {
  width: 100%;
  height: clamp(200px, 25vw, 300px);
  overflow: hidden;
  position: relative;
}

.content-section .image-container img {
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: cover;
}

.column-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(1.5rem, 3vw, 32px);
  color: white;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  padding-top: clamp(30px, 4vw, 50px);
}

.list-article {
  display: flex;
  gap: clamp(12px, 1.5vw, 16px);
  padding: clamp(12px, 1.5vw, 16px);
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

/* List Article Links */
.list-article-link {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.list-article-link:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
  color: inherit;
}

.list-article-link:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.list-article .article-info  time {
  font-weight: 400;
  color: #63627e;
}

.article-thumbnail {
  flex-shrink: 0;
  width: clamp(60px, 8vw, 80px);
  height: clamp(60px, 8vw, 80px);
  overflow: hidden;
  transition: width 0.3s ease, height 0.3s ease;
}

.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-info {
  flex: 1;
}

.article-date {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.article-categories {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.article-categories span {
  color: rgba(255,255,255,0.6);
}

.article-categories a {
  background: #f1c6c688;
  padding: 0.25rem 0.5rem;
  padding-top: 0.4rem;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  line-height: 0.9;
}

.list-article .article-title {
  padding: 0;
  font-size: clamp(1rem, 2vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.list-article .article-title a {
  color: #63627e;
  text-decoration: none;
}

.list-article-link .article-title {
  color: #63627e;
}

.column-actions {
  margin: clamp(2rem, 4vw, 40px) 0;
  text-align: center;
}

.column-actions a {
  font-size: clamp(1rem, 2vw, 20px);
  font-weight: 400;
  padding: clamp(0.5rem, 1.5vw, 8px) clamp(1.25rem, 3vw, 24px);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Newsletter Section */
.newsletter-section {
  padding-top: clamp(2rem, 5vw, 4rem);
  background: #f8f9fa;
  text-align: center;
}
.newsletter-section .container {
  padding-bottom: clamp(3rem, 8vw, 8rem);
}

.newsletter-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(1.5rem, 3vw, 32px);
  color: #333;
}

.newsletter-actions {
  display: flex;
  justify-content: center;
}

.newsletter-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(0.875rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  min-height: 44px;
  background: #d28c8c;
  color: white;
  text-decoration: none;
  border-radius: 0;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  transition: background 0.3s ease;
}

.newsletter-actions .btn:hover {
  background: #b02b2c;
}

.newsletter-actions svg {
  width: clamp(18px, 2vw, 20px);
  height: clamp(18px, 2vw, 20px);
  fill: currentColor;
}

.newsletter-section .section-transition-container {
  background: #1f1f2a;
}

/* Home Page Buttons */
.home-page .btn {
  display: inline-block;
  padding: clamp(0.625rem, 1.5vw, 0.75rem) clamp(1.25rem, 2.5vw, 1.5rem);
  min-height: 44px;
  border: none;
  border-radius: 6px;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.home-page .btn-primary {
  background: #d28c8c;
  color: white;
}

.home-page .btn-primary:hover {
  background: #b02b2c;
  transform: translateY(-2px);
}

.home-page .btn-secondary {
  background: #6c757d;
  color: white;
}

.home-page .btn-secondary:hover {
  background: #545b62;
  transform: translateY(-2px);
}

/* Home Page Responsive Design */
/* Large screens - show desktop grid, hide mobile carousel */
@media (min-width: 1024px) {
  .desktop-hero {
    display: grid;
  }
  
  .mobile-hero {
    display: none;
  }
  
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet breakpoint */
@media (max-width: 1023px) and (min-width: 769px) {
  .desktop-hero {
    display: none;
  }
  
  .mobile-hero {
    display: block;
  }
  
  .hero-grid {
    gap: 1.5rem;
  }
  
  .hero-content {
    padding: 20px;
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .content-grid {
    gap: 1.5rem;
  }
  
  .content-section .image-container {
    height: 250px;
  }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .desktop-hero {
    display: none;
  }
  
  .mobile-hero {
    display: block;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
  }
  
  .hero-article.large {
    min-height: 350px;
    height: auto;
  }
  
  .hero-article.small {
    height: auto;
    min-height: 180px;
  }
  
  .hero-content {
    padding: 16px;
  }
  
  .hero-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-article.large .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-meta {
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .content-section .image-container {
    height: 200px;
  }
  
  .content-column .column-title {
    font-size: 1.5rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .list-article {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  
  .list-article-link {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  
  .article-thumbnail {
    width: 100%;
    height: 200px;
  }
  
  .article-list {
    padding-top: 30px;
    gap: 16px;
  }
  
  .column-actions {
    margin: 2rem 0;
  }
  
  .section-actions {
    margin-top: 2rem;
  }
  
  .section-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}


.analyses-section {
  background: #f8f9fa;
  min-height: 100vh;
}

.analyses-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.analyses-section .page-header {
  text-align: center;
  margin-bottom: 48px;
}

.analyses-section .page-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

/* Analyses Grid */
.analyses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 48px;
  overflow-anchor: none; /* Disable scroll anchoring to prevent browser warnings */
}

/* Analysis Card */
.analysis-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e9ecef;
}

.analysis-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Analysis Card Links */
.analysis-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.analysis-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.analysis-card-link:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Analysis Header */
.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.analysis-stock-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stock-ticker {
  font-weight: 700;
  font-size: 1.1rem;
  color: #007bff;
}

.company-name {
  font-size: 0.9rem;
  color: #6c757d;
}

.analysis-type-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analysis-type-bullish {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.analysis-type-bearish {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.analysis-type-mixed {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Analysis Title */
.analysis-title {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  line-height: 1.3;
}

.analysis-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.analysis-title a:hover {
  color: #007bff;
}

.analysis-card-link .analysis-title {
  color: #333;
}

.analysis-card-link:hover .analysis-title {
  color: #007bff;
}


/* Analysis Meta */
.analysis-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.analysis-date {
  font-size: 0.9rem;
  color: #6c757d;
}

.analysis-author {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
}

/* Analysis Rating */
.analysis-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 16px;
}

.rating-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-buy {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.rating-sell {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.rating-hold {
  background-color: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

.target-price {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

/* Analysis Footer */
.analysis-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.read-analysis-btn {
  background-color: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.read-analysis-btn:hover {
  background-color: #0056b3;
  color: white;
}

.premium-indicator {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .analyses-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .analysis-card {
    padding: 16px;
  }
  
  .analysis-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .analysis-meta {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .analysis-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

.articles-section .section-transition-container {
  clip-path: polygon(0% 0%, 100% 0%, 30% 100%);
  margin-top: -1px;
  background: #3a394c;
  margin-bottom: 100px;
}


.analyses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 48px;
  overflow-anchor: none; /* Disable scroll anchoring to prevent browser warnings */
}

.analysis-card {
  background: #363646;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 0;
}

.analysis-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Analysis Image Section */
.analysis-image-section {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f8f9fa;
}

.analysis-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.analysis-card:hover .analysis-image-section img {
  transform: scale(1.05);
}

.analysis-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #6c757d;
}

/* Analysis Content Section */
.analysis-content-section {
  background: #363646;
  padding: 24px;
}

.analysis-title {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: #333;
  padding: 0;
  margin-bottom: 16px;
}

.analysis-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.analysis-title a:hover {
  color: var(--primary-color);
}

.analysis-card-link .analysis-title {
  color: #fff;
}

.analysis-card-link:hover .analysis-title {
  color: var(--primary-color);
}

/* Analysis Category Tags */
.analysis-category-tags {
  z-index: 2;
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.analysis-category-tags .category-tag {
  background: #d1d1de;
  color: #5e5d74;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analysis-category-tags .category-tag.rating-buy,
.analysis-category-tags .category-tag.rating-strong_buy {
  background: #d4edda;
  color: #155724;
}

.analysis-category-tags .category-tag.rating-sell,
.analysis-category-tags .category-tag.rating-strong_sell {
  background: #f8d7da;
  color: #721c24;
}

.analysis-category-tags .category-tag.rating-hold {
  background: #fff3cd;
  color: #856404;
}

/* Stock Info Badge */
.stock-info-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  display: inline-block;
}

.analysis-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: #f1c6c6;
}


.analysis-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #6c757d;
}

.stock-ticker {
  font-weight: bold;
  color: #007bff;
  background: #e3f2fd;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.company-name {
  font-style: italic;
}


.analysis-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.analysis-type .badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: capitalize;
}

.badge-mixed {
  background: #e3f2fd;
  color: #1976d2;
}

.badge-fundamental {
  background: #e8f5e8;
  color: #2e7d32;
}

.badge-technical {
  background: #fff3e0;
  color: #f57c00;
}

.analysis-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.rating-strong_buy {
  background: #4caf50;
  color: white;
}

.rating-buy {
  background: #8bc34a;
  color: white;
}

.rating-hold {
  background: #ff9800;
  color: white;
}

.rating-sell {
  background: #f44336;
  color: white;
}

.rating-strong_sell {
  background: #d32f2f;
  color: white;
}

.target-price {
  font-size: 0.9rem;
  color: #666;
}

.analysis-author {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
}

.analyses-section .premium-badge {
  margin-top: 1rem;
  text-align: center;
}

.premium-indicator {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
}

.analyses-section .no-content {
  text-align: center;
  padding: 48px;
  color: #6c757d;
}

/* Premium prompt styles */
.premium-prompt {
  background: white;
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.premium-content h2 {
  color: #333;
  margin-bottom: 16px;
}

.premium-content p {
  color: #6c757d;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.premium-features {
  margin-bottom: 32px;
}

.premium-features ul {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.premium-features li {
  padding: 0.5rem 0;
  color: #333;
  font-size: 1rem;
}

.premium-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.analyses-section .btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}

.analyses-section .btn-primary {
  background: #3a394c;
  color: white;
  border-radius: 0;
  padding: 15px 30px;
  font-size: 20px;
  font-weight: 400;
  margin-top: 50px;
}

.analyses-section .btn-primary:hover {
  background: #0056b3;
}

.analyses-section .btn-secondary {
  background: #6c757d;
  color: white;

}

.analyses-section .btn-secondary:hover {
  background: #545b62;
}

.section-transition-container {
  margin-top: 50px;
  height: 80px;
  width: 100%;
  background: #fcf8f0;
  clip-path: polygon(30% 0%, 0% 100%, 100% 100%);
}

/* Stock Filter Styles */
.stock-filter {
  margin-bottom: 32px;
}

.filter-dropdown-container {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  padding: 24px;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-label {
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  white-space: nowrap;
}

.filter-select {
  flex: 1;
  max-width: 400px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  background: white;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.filter-select:hover {
  border-color: var(--primary-color);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.filter-container {
  display: flex;
  gap: 16px;
  align-items: center;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #d28c8c;
  box-shadow: 0 0 0 2px rgba(210, 140, 140, 0.2);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e9ecef;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-result-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.2s ease;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

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

.stock-dropdown {
  min-width: 200px;
}

.stock-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.stock-select:focus {
  outline: none;
  border-color: #d28c8c;
  box-shadow: 0 0 0 2px rgba(210, 140, 140, 0.2);
}

/* Analyses Page Responsive */
@media (max-width: 768px) {
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    min-width: auto;
  }
  
  .stock-dropdown {
    min-width: auto;
  }
}

/* ========================================
   ARTICLES PAGE STYLES
   ======================================== */

.articles-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: unset;
}

.articles-section .page-header {
  justify-content: center;
  margin-bottom: 0;
  padding-top: 170px;
  padding-bottom: 100px;
  background: #3a394c;
}

.articles-section .page-header h1 {
  font-size: 66px;
  color: #f1c6c6;
  margin-bottom: 0.5rem;
  width: fit-content;
  margin: 0 auto;
}

.articles-section .page-header p {
  font-size: 1.1rem;
  color: #6c757d;
}

.articles-section .articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem
}

.articles-section .article-card {
  background: #363646;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.articles-section .article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Old article styles removed - replaced with new StockWatch design above */

.articles-section .article-status .status {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: capitalize;
}

.articles-section .status-published {
  background: #d4edda;
  color: #155724;
}

.articles-section .status-draft {
  background: #fff3cd;
  color: #856404;
}

.articles-section .status-archived {
  background: #f8d7da;
  color: #721c24;
}

/* Old premium badge styles removed - replaced with new design above */

.articles-section .no-content {
  text-align: center;
  padding: 48px;
  color: #6c757d;
}

/* StockWatch-style article card elements */
.articles-section .article-image-section {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f8f9fa;
}

.articles-section .article-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.articles-section .article-card:hover .article-image-section img {
  transform: scale(1.05);
}

.articles-section .article-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #6c757d;
}

.articles-section .article-category-tags {
  z-index: 2;
  display: flex;
  gap: 8px;
}

.articles-section .category-tag {
  background: #d1d1de;
  color: #5e5d74;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}

.articles-section .premium-badge-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.articles-section .premium-badge {
  background: #e0c99f;
  color: #333;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.articles-section .article-content-section {
  background: #363646;
  padding: 24px;
}

.articles-section .article-title {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: #333;
  padding: 0;
}

.articles-section .article-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.articles-section .article-title a:hover {
  color: var(--primary-color);
}

.articles-section .article-card-link .article-title {
  color: #fff;
}

.articles-section .article-card-link:hover .article-title {
  color: var(--primary-color);
}

.articles-section .article-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: #666;
}

.articles-section .article-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.articles-section .author-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.articles-section .author-name {
  font-weight: 400;
  color: #666;
}

.articles-section .article-date {
  color: #f1c6c6;
  font-size: 0.875rem;
  padding-top: 30px;
}


.articles-section .article-read-more {
  margin-top: 16px;
}

.articles-section .read-more-link {
  color: #c28181;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.articles-section .read-more-link:hover {
  color: #a06b6b;
}

/* Category Filter Styles */
.category-filter {
  margin-bottom: 32px;
  padding: 0 20px;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: #6c757d;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: none;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-block;
}

.filter-tab:hover {
  background: #f8f9fa;
  color: #333;
  transform: translateY(-1px);
}

.filter-tab.active {
  background: #d28c8c;
  color: white;
  border-color: #b02b2c;
}

/* Loading Indicator Styles */
.loading-indicator {
  text-align: center;
  padding: 48px;
  color: #6c757d;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #d28c8c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Articles Page Responsive */
@media (max-width: 768px) {
  .articles-section .page-header h1 {
    font-size: 2rem;
  }
  
  .articles-section .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-tabs {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .filter-tab {
    text-align: center;
    padding: 16px;
  }
}

/* ========================================
   FEEDBACK PAGE STYLES
   ======================================== */

.feedback-section {
  padding: 32px 0;
  background: #f8f9fa;
  min-height: 100vh;
}

.feedback-section .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.feedback-section .page-header {
  text-align: center;
  margin-bottom: 48px;
}

.feedback-section .page-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.feedback-content {
  background: white;
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feedback-intro {
  text-align: center;
  margin-bottom: 48px;
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.feedback-form-container {
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feedback-section .form-group {
  display: flex;
  flex-direction: column;
}

.feedback-section .form-group label {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.feedback-section .form-group input,
.feedback-section .form-group select,
.feedback-section .form-group textarea {
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.feedback-section .form-group input:focus,
.feedback-section .form-group select:focus,
.feedback-section .form-group textarea:focus {
  outline: none;
  border-color: #d28c8c;
}

.feedback-section .form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.feedback-section .btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.feedback-section .btn-primary {
  background: #d28c8c;
  color: white;
}

.feedback-section .btn-primary:hover {
  background: #b02b2c;
  transform: translateY(-1px);
}

.feedback-info {
  margin-bottom: 4rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.info-item {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.info-item h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.info-item p {
  color: #666;
  margin: 0;
}

.feedback-examples {
  border-top: 2px solid #eee;
  padding-top: 3rem;
}

.feedback-examples h2 {
  text-align: center;
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 32px;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.example-item {
  padding: 24px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #d28c8c;
}

.example-item h4 {
  color: #d28c8c;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.example-item p {
  color: #555;
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}

/* Feedback Page Responsive */
@media (max-width: 768px) {
  .feedback-content {
    padding: 2rem 1.5rem;
  }
  
  .feedback-section .page-header h1 {
    font-size: 2rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .examples-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

.contact-section {
  padding: 32px 0;
  background: #f8f9fa;
  min-height: 100vh;
}

.contact-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Contact section page header styles removed */

.contact-content {
  background: white;
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-intro {
  text-align: center;
  margin-bottom: 48px;
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.contact-info h2,
.contact-form-container h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-icon {
  font-size: 2rem;
  min-width: 40px;
}

.contact-details h3 {
  color: #d28c8c;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: #555;
  margin-bottom: 4px;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-links a {
  color: #d28c8c;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border: 1px solid #d28c8c;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #d28c8c;
  color: white;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-section .form-group {
  display: flex;
  flex-direction: column;
}

.contact-section .form-group label {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.contact-section .form-group input,
.contact-section .form-group select,
.contact-section .form-group textarea {
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-section .form-group input:focus,
.contact-section .form-group select:focus,
.contact-section .form-group textarea:focus {
  outline: none;
  border-color: #d28c8c;
}

.contact-section .form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-section .checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.contact-section .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: normal;
}

.contact-section .checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.contact-section .btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.contact-section .btn-primary {
  background: #d28c8c;
  color: white;
}

.contact-section .btn-primary:hover {
  background: #b02b2c;
  transform: translateY(-1px);
}

.faq-preview {
  border-top: 2px solid #eee;
  padding-top: 3rem;
  text-align: center;
}

.faq-preview h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.faq-preview p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.faq-preview a {
  color: #d28c8c;
  text-decoration: none;
  font-weight: 500;
}

.faq-preview a:hover {
  text-decoration: underline;
}

.quick-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 32px;
}

.faq-preview-item {
  padding: 24px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: left;
}

.faq-preview-item h4 {
  color: #d28c8c;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-preview-item p {
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-content {
    padding: 2rem 1.5rem;
  }
  
  /* Contact section responsive page header styles removed */
  
  .quick-faq {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FAQ PAGE STYLES
   ======================================== */

.faq-section {
  padding: 32px 0;
  background: #f8f9fa;
  min-height: 100vh;
}

.faq-section .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* FAQ section page header styles removed */

.faq-content {
  background: white;
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-navigation {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.faq-nav-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  color: #666;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.faq-nav-btn:hover {
  background: #d28c8c;
  color: white;
  transform: translateY(-1px);
}

.faq-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.faq-section-group h2 {
  color: #d28c8c;
  font-size: 1.8rem;
  margin-bottom: 32px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

.faq-item {
  margin-bottom: 32px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background: #f8f9fa;
  padding: 24px;
  margin: 0;
  cursor: pointer;
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
  transition: background-color 0.3s ease;
  position: relative;
}

.faq-question:hover {
  background: #e9ecef;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #d28c8c;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 24px;
  max-height: 500px;
}

.faq-answer p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.faq-answer a {
  color: #d28c8c;
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* FAQ Page Responsive */
@media (max-width: 768px) {
  .faq-navigation {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .faq-nav-btn {
    text-align: center;
    padding: 16px;
  }
  
  .faq-content {
    padding: 2rem 1.5rem;
  }
  
  /* FAQ section responsive page header styles removed */
}

/* ========================================
   ROADMAP PAGE STYLES
   ======================================== */

.roadmap-section {
  padding: 32px 0;
  background: #f8f9fa;
  min-height: 100vh;
}

.roadmap-section .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.roadmap-section .page-header {
  text-align: center;
  margin-bottom: 48px;
}

.roadmap-section .page-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.roadmap-content {
  background: white;
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.roadmap-intro {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.roadmap-timeline {
  position: relative;
  margin-bottom: 4rem;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e9ecef;
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 80px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item.completed .timeline-marker {
  background: #28a745;
  color: white;
}

.timeline-item.current .timeline-marker {
  background: #d28c8c;
  color: white;
}

.timeline-item.planned .timeline-marker {
  background: #6c757d;
  color: white;
}

.marker-icon {
  font-size: 1.5rem;
  font-weight: bold;
}

.timeline-content {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #d28c8c;
}

.timeline-item.completed .timeline-content {
  border-left-color: #28a745;
}

.timeline-item.current .timeline-content {
  border-left-color: #d28c8c;
}

.timeline-item.planned .timeline-content {
  border-left-color: #6c757d;
}

.timeline-content h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.timeline-features h4 {
  color: #d28c8c;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-features li {
  padding: 0.5rem 0;
  color: #555;
  position: relative;
  padding-left: 1.5rem;
}

.timeline-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #d28c8c;
  font-weight: bold;
}

.roadmap-feedback {
  text-align: center;
  padding: 48px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 48px;
}

.roadmap-feedback h2 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 16px;
}

.roadmap-feedback p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.roadmap-feedback a {
  color: #d28c8c;
  text-decoration: none;
  font-weight: 500;
}

.roadmap-feedback a:hover {
  text-decoration: underline;
}

.feedback-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  color: #d28c8c;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.stat-item p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

/* Roadmap Page Responsive */
@media (max-width: 768px) {
  .roadmap-timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-marker {
    width: 40px;
    height: 40px;
  }
  
  .marker-icon {
    font-size: 1.2rem;
  }
  
  .timeline-content {
    padding: 24px;
  }
  
  .roadmap-content {
    padding: 2rem 1.5rem;
  }
  
  .roadmap-section .page-header h1 {
    font-size: 2rem;
  }
  
  .feedback-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ========================================
   TEAM PAGE STYLES
   ======================================== */

.team-section {
  padding: 32px 0;
  background: linear-gradient(135deg, #fef7f7 0%, #f8f9fa 100%);
  min-height: 100vh;
}

.team-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Team section page header styles removed */

/* Team Navigation */
.team-navigation {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.team-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  padding: 0.5rem;
}

.team-nav-item:hover {
  transform: translateY(-4px);
  opacity: 0.8;
}

.team-nav-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin-bottom: 0.5rem;
}


.team-nav-item span {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

.team-content {
  padding: 3rem 0;
}

.team-intro {
  text-align: center;
  margin-bottom: 48px;
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Team Member Sections */
.team-member {
  padding: 4rem 0;
  scroll-margin-top: 100px;
}

.team-member:last-child {
  border-bottom: none;
}

.member-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  margin-bottom: 32px;
  align-items: start;
}

.member-image-large {
  position: relative;
}

.member-image-large img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
}

.member-header-info h2 {
  color: #d28c8c;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.member-role {
  color: #666;
  font-size: 1.2rem;
  margin-bottom: 24px;
  font-weight: 500;
}

.member-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: #d28c8c;
  color: white;
  transform: translateY(-2px);
}

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

.member-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.member-bio .intro-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
  font-weight: 500;
  margin-bottom: 24px;
  padding-left: 1rem;
  border-left: 4px solid #d28c8c;
}

.member-bio p {
  margin-bottom: 24px;
}

.member-bio a {
  color: #d28c8c;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.member-bio a:hover {
  border-bottom-color: #d28c8c;
}

.member-cta {
  margin-top: 32px;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.investment-highlights {
  margin-top: 32px;
  padding: 2rem;
  background: #333;
  color: white;
}

.investment-highlights h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlights-list li {
  margin-bottom: 16px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
}

.highlight-icon {
  color: #d28c8c;
  font-weight: bold;
  margin-right: 0.75rem;
  margin-top: 0.1rem;
  font-size: 1.1rem;
}

.highlights-list strong {
  color: #d28c8c;
}

.team-section .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.team-section .btn-primary {
  background: #d28c8c;
  color: white;
  border: none;
}

.team-section .btn-primary:hover {
  background: #b02b2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(210, 140, 140, 0.3);
}

.team-section .btn-secondary {
  background: #d28c8c;
  color: white;
}

.team-section .btn-secondary:hover {
  background: #b02b2c;
}

.team-section .btn-outline {
  border: 2px solid #d28c8c;
  color: #d28c8c;
  background: transparent;
}

.team-section .btn-outline:hover {
  background: #d28c8c;
  color: white;
}


/* Team Page Responsive */
@media (max-width: 968px) {
  .team-navigation {
    gap: 0.75rem;
    padding: 16px;
  }

  .team-nav-item img {
    width: 60px;
    height: 60px;
  }

  .team-nav-item span {
    font-size: 0.8rem;
  }

  .member-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .member-image-large {
    max-width: 300px;
    margin: 0 auto;
  }

  .member-header-info h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .team-section {
    padding: 1rem 0;
  }

  .team-content {
    padding: 2rem 1.5rem;
  }

  .team-member {
    padding: 3rem 0;
  }

  .team-navigation {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 1.5rem;
  }

  .team-nav-item {
    flex-shrink: 0;
  }

  .member-bio .intro-text {
    font-size: 1.05rem;
  }

  .member-bio {
    font-size: 1rem;
  }

  
  .member-image {
    max-width: 200px;
    margin: 0 auto;
  }
  
  .team-content {
    padding: 2rem 1.5rem;
  }
  
  /* Team section responsive page header styles removed */
  
}

/* ========================================
   PREMIUM PAYWALL STYLES
   ======================================== */

.premium-paywall {
  background: #f8f9fa;
  padding: 64px 32px;
  text-align: center;
  margin: 3rem 0;
}

.premium-paywall-header {
  margin-bottom: 48px;
}

.premium-paywall-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.premium-paywall-header h3 {
  font-size: 1.8rem;
  color: #555;
  margin-bottom: 16px;
  font-weight: 500;
}

.premium-login-link {
  font-size: 1rem;
  color: #666;
  margin-bottom: 32px;
}

.premium-login-link a {
  color: #d28c8c;
  text-decoration: none;
  font-weight: 500;
}

.premium-login-link a:hover {
  text-decoration: underline;
}

.premium-subscription-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.premium-card {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.premium-card-header {
  padding: 2rem 2rem 1rem 2rem;
  color: white;
  position: relative;
}

.premium-card-header.premium-jaar {
  background: #c28181;
}

.premium-card-header.premium-maand {
  background: #b09d79;
}

.premium-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.premium-card-price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-block;
}

.premium-card-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

.premium-card-body {
  padding: 1.5rem 2rem 2rem 2rem;
}

.premium-card-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #555;
}

.premium-card-feature::before {
  content: ">";
  color: #d28c8c;
  font-weight: bold;
  margin-right: 8px;
  margin-top: 0.1rem;
}

.premium-card-button {
  width: 100%;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1.5rem;
}

/* Premium Jaar button matches its header color */
.premium-card.premium-jaar .premium-card-button {
  background: #c28181;
}

.premium-card.premium-jaar .premium-card-button:hover {
  background: #a06a6a;
}

/* Premium Maand button matches its header color */
.premium-card.premium-maand .premium-card-button {
  background: #b09d79;
}

.premium-card.premium-maand .premium-card-button:hover {
  background: #96866a;
}

.premium-card-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .premium-paywall {
    padding: 2rem 1rem;
  }
  
  .premium-paywall-header h2 {
    font-size: 2rem;
  }
  
  .premium-paywall-header h3 {
    font-size: 1.5rem;
  }
  
  .premium-subscription-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .premium-card {
    margin: 0 1rem;
  }
}

/* ========================================
   ENHANCED ANALYSIS FORM STYLES
   ======================================== */

.form-section {
  margin-bottom: 32px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.section-title {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.stock-selection-section {
  background: #f8f9fa;
  border-left-color: var(--primary-color);
}

.stock-search-container.enhanced {
  position: relative;
  margin-bottom: 16px;
}

.stock-suggestions.enhanced {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.stock-suggestion.enhanced {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stock-suggestion.enhanced:hover {
  background: #f8f9fa;
}

.stock-suggestion.enhanced:last-child {
  border-bottom: none;
}

.stock-suggestion.enhanced .ticker {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.stock-suggestion.enhanced .company {
  color: #666;
  font-size: 0.85rem;
}

.stock-suggestion.enhanced.new {
  background: rgba(210, 140, 140, 0.05);
  border-left: 2px solid var(--primary-color);
}

.stock-suggestion.enhanced.new .ticker::after {
  content: " (Nieuw)";
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: normal;
}

.selected-stock-info {
  margin-top: 1rem;
}

.stock-info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stock-ticker-display {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.stock-company-display {
  color: #666;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.btn-clear-stock {
  background: transparent;
  color: #999;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.btn-clear-stock:hover {
  background: #f8f9fa;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ========================================
   DATETIME PICKER STYLES
   ======================================== */

.datetime-picker-container {
  margin-bottom: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.datetime-picker {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.datetime-picker:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(210, 140, 140, 0.1);
}

.date-section,
.time-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.date-display,
.time-display {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  flex: 1;
  font-family: monospace;
  font-size: 0.9rem;
  color: #495057;
  box-sizing: border-box;
}

.date-display {
  justify-content: space-between;
}

.time-display {
  justify-content: center;
}

.date-day,
.date-month,
.date-year,
.time-hour,
.time-minute {
  font-weight: 600;
  color: var(--primary-color);
}

.time-separator {
  color: #6c757d;
  font-weight: 400;
}

.calendar-btn,
.clock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(210, 140, 140, 0.3);
  flex-shrink: 0;
  box-sizing: border-box;
}

.calendar-btn:hover,
.clock-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(210, 140, 140, 0.4);
}

.calendar-btn:active,
.clock-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(210, 140, 140, 0.3);
}

.calendar-btn svg,
.clock-btn svg {
  width: 16px;
  height: 16px;
}

/* Calendar and Time Picker Modals */
.datetime-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.datetime-modal.show {
  opacity: 1;
  visibility: visible;
}

.datetime-modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.datetime-modal.show .datetime-modal-content {
  transform: scale(1);
}

.datetime-modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fa;
  flex-shrink: 0;
  box-sizing: border-box;
}

.datetime-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.datetime-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.datetime-modal-close:hover {
  background: #e9ecef;
  color: var(--primary-color);
}

.datetime-modal-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Calendar Styles */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
}

.calendar-day-header {
    text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  padding: 0.5rem 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: white;
}

.calendar-day:hover {
  background: #f8f9fa;
  border-color: var(--primary-color);
}

.calendar-day.selected {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.calendar-day.other-month {
  color: #adb5bd;
}

.calendar-day.today {
  background: rgba(210, 140, 140, 0.1);
  border-color: var(--primary-color);
  font-weight: 600;
}

.calendar-day.today.selected {
  background: var(--primary-color);
  color: white;
}

/* Time Picker Styles */
.time-picker {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.time-input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.time-input-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.time-input {
  width: 60px;
  padding: 0.5rem;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  background: #f8f9fa;
  transition: all 0.2s ease;
}

.time-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 2px rgba(210, 140, 140, 0.2);
}

.time-separator-display {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 1.5rem;
}

/* Modal Actions */
.datetime-modal-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  background: #f8f9fa;
  flex-shrink: 0;
  box-sizing: border-box;
}

.datetime-modal-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  background: white;
  color: #495057;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.datetime-modal-btn:hover {
  background: #f8f9fa;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.datetime-modal-btn.primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.datetime-modal-btn.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ========================================
   SCHEDULE TOGGLE BUTTON STYLES
   ======================================== */

.schedule-toggle-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.schedule-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  color: #495057;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.schedule-toggle-btn:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(210, 140, 140, 0.15);
  transform: translateY(-1px);
}

.schedule-toggle-btn.active {
  background: rgba(210, 140, 140, 0.05);
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(210, 140, 140, 0.2);
}

.schedule-toggle-btn.active .toggle-icon {
  color: var(--primary-color);
}

.schedule-toggle-btn.active .toggle-indicator {
  background: var(--primary-color);
  transform: translateX(20px);
}

.toggle-icon {
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.toggle-text {
  flex: 1;
  text-align: center;
  font-weight: 500;
}

.toggle-indicator {
  width: 40px;
  height: 20px;
  background: #e9ecef;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid #dee2e6;
}

.toggle-indicator::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.schedule-toggle-btn.active .toggle-indicator::after {
  transform: translateX(20px);
}

/* Enhanced datetime picker styling when active */
.schedule-toggle-btn.active + .datetime-picker-container {
  animation: slideDown 0.3s ease;
}

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

.datetime-picker-container {
  margin-top: 0;
}

.datetime-picker-container .datetime-picker {
  border: 2px solid rgba(210, 140, 140, 0.2);
  background: rgba(210, 140, 140, 0.02);
}

.datetime-picker-container .datetime-picker:hover {
  border-color: var(--primary-color);
  background: rgba(210, 140, 140, 0.05);
}

/* Responsive adjustments for datetime picker */
@media (max-width: 768px) {
  .datetime-picker {
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .date-section,
  .time-section {
    gap: 8px;
  }
  
  .date-display,
  .time-display {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .calendar-btn,
  .clock-btn {
    width: 32px;
    height: 32px;
  }
}

/* ========================================
   MANIFEST PAGE STYLES - Simple like original
   ======================================== */

/* Page header section for StockWatch pages */
.page-header-section {
  background: #3a394c;
  padding: 80px 0 100px 0;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 40% 100%, 0 70%);

}

.page-header-section h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
}

.template-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.6;
  background: #ffffff;
}

.template-page h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.template-page h1:first-child {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 24px;
}

.template-page h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #555;
  margin: 2rem 0 1rem 0;
  text-align: center;
  font-style: italic;
}

.template-page p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 16px;
  line-height: 1.7;
}

.template-page p:first-of-type {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 32px;
}

.template-page a {
  color: #63627e;
  text-decoration: none;
  font-weight: 500;
}

.template-page a:hover {
  text-decoration: underline;
}

/* Roadmap specific styles */
.roadmap-milestones {
  margin-top: 32px;
}

.milestone {
  margin-bottom: 48px;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.milestone:last-child {
  border-bottom: none;
}

.milestone h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.milestone h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.8rem;
  margin-top: 0;
}

.milestone-content p {
  margin-bottom: 16px;
}

.milestone-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.milestone-content li {
  margin-bottom: 0.5rem;
  color: #444;
}

/* ========================================
   SUBSCRIPTION SUCCESS PAGE STYLES
   ======================================== */

.success-section {
  padding: 32px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.success-section .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.success-card {
  background: white;
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.success-card h1 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.success-message {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 48px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 48px;
}

.success-section .feature-item {
  padding: 24px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.success-section .feature-item:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.success-section .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.success-section .feature-item h3 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.success-section .feature-item p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.next-steps {
  margin-bottom: 48px;
  text-align: left;
}

.next-steps h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.step-number {
  background: #667eea;
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h4 {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.step-content p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.success-section .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-section .btn-primary {
  background: #667eea;
  color: white;
}

.success-section .btn-primary:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
}

.success-section .btn-secondary {
  background: #6c757d;
  color: white;
}

.success-section .btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.success-section .btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.success-section .btn-outline:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.billing-info {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  text-align: left;
}

.billing-info h3 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.billing-info p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.billing-info a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.billing-info a:hover {
  text-decoration: underline;
}

/* Subscription Success Page Responsive */
@media (max-width: 768px) {
  .success-card {
    padding: 2rem 1rem;
  }
  
  .success-card h1 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .success-section .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* ========================================
   BILLING PAGE STYLES
   ======================================== */

.billing-section {
  padding: 32px 0;
  background: #f8f9fa;
  min-height: 30vh;
}

.billing-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.billing-section h1 {
  text-align: center;
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.billing-table {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 32px;
}

.billing-table table {
  width: 100%;
  border-collapse: collapse;
}

.billing-table th {
  background: #f8f9fa;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e9ecef;
}

.billing-table td {
  padding: 16px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.billing-row:hover {
  background: #f8f9fa;
}

.billing-row.paid {
  border-left: 4px solid #28a745;
}

.billing-row.failed {
  border-left: 4px solid #dc3545;
}

.billing-row.pending {
  border-left: 4px solid #ffc107;
}

.date-info {
  display: flex;
  flex-direction: column;
}

.date {
  font-weight: 600;
  color: #333;
}

.time {
  font-size: 0.9rem;
  color: #666;
}

.description {
  display: flex;
  flex-direction: column;
}

.plan-name {
  font-weight: 600;
  color: #333;
}

.billing-cycle {
  font-size: 0.9rem;
  color: #666;
  text-transform: capitalize;
}

.amount {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.currency {
  font-size: 0.9rem;
  color: #666;
  margin-right: 0.25rem;
}

.value {
  font-size: 1.1rem;
  color: #333;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-paid {
  background: #d4edda;
  color: #155724;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-failed {
  background: #f8d7da;
  color: #721c24;
}

.status-canceled {
  background: #e2e3e5;
  color: #383d41;
}

.payment-method {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.method-icon {
  margin-right: 8px;
  font-size: 1.1rem;
}

.billing-section .btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-small {
  padding: 4px 12px;
  font-size: 0.8rem;
}

.billing-section .btn-primary {
  background: #667eea;
  color: white;
}

.billing-section .btn-primary:hover {
  background: #5a6fd8;
}

.billing-section .btn-secondary {
  background: #6c757d;
  color: white;
}

.billing-section .btn-secondary:hover {
  background: #5a6268;
}

.billing-section .btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.billing-section .btn-outline:hover {
  background: #667eea;
  color: white;
}

.billing-summary {
  margin-bottom: 32px;
}

.summary-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.summary-card h3 {
  margin-bottom: 24px;
  color: #333;
  font-size: 1.3rem;
}

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

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-label {
  font-weight: 600;
  color: #666;
}

.stat-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: #333;
}

.empty-state {
  text-align: center;
  background: white;
  border-radius: 12px;
  padding: 64px 32px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 32px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #666;
  margin-bottom: 32px;
}

.billing-actions {
  text-align: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Admin Billing State Styles */
.admin-billing-state {
  text-align: center;
  background: white;
  border-radius: 12px;
  padding: 64px 32px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 32px;
  border-left: 4px solid #d28c8c;
}

.admin-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.admin-billing-state h3 {
  color: #d28c8c;
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.admin-billing-state p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.admin-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: left;
}

.feature-icon {
  color: #28a745;
  font-weight: bold;
  font-size: 1.2rem;
}

.feature-item span:last-child {
  color: #333;
  font-weight: 500;
}

.admin-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Billing Page Responsive */
@media (max-width: 768px) {
  .billing-table {
    overflow-x: auto;
  }
  
  .billing-table table {
    min-width: 600px;
  }
  
  .summary-stats {
    grid-template-columns: 1fr;
  }
  
  .billing-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .billing-section h1 {
    font-size: 2rem;
  }
  
  .admin-features {
    max-width: 100%;
  }
  
  .admin-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .admin-billing-state {
    padding: 2rem 1rem;
  }
}

/* ========================================
   MANAGE SUBSCRIPTION PAGE STYLES
   ======================================== */

.manage-subscription-section {
  padding: 32px 0;
  background: #f8f9fa;
  min-height: 100vh;
}

.manage-subscription-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.manage-subscription-section h1 {
  text-align: center;
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.manage-subscription-section .subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 32px;
  border: 1px solid;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.subscription-status {
  margin-bottom: 48px;
}

.status-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
}

.status-card.active {
  border-left-color: #28a745;
}

.status-card.trial {
  border-left-color: #ffc107;
}

.status-card.inactive {
  border-left-color: #dc3545;
}

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

.status-header h2 {
  color: #333;
  font-size: 1.5rem;
  margin: 0;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.trial {
  background: #fff3cd;
  color: #856404;
}

.status-badge.inactive {
  background: #f8d7da;
  color: #721c24;
}

.status-details {
  color: #666;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.detail-item .label {
  font-weight: 600;
}

.management-section {
  margin-bottom: 48px;
}

.management-section h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.management-section p {
  color: #666;
  margin-bottom: 32px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 32px;
}

.plan-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.plan-card.current {
  border-color: #667eea;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.plan-header h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.plan-header p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 24px;
}

.plan-features {
  margin-bottom: 32px;
}

.plan-features .feature {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #333;
}

.plan-features .feature-icon {
  color: #28a745;
  font-weight: bold;
  margin-right: 8px;
  font-size: 1.2rem;
}

.plan-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pricing-option {
  text-align: center;
  padding: 24px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  position: relative;
  transition: border-color 0.3s ease;
}

.pricing-option.featured {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6b6b;
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.pricing-option h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.pricing-option .price {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.pricing-option .period {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.savings {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: #28a745;
}

.manage-subscription-section .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.manage-subscription-section .btn-primary {
  background: #667eea;
  color: white;
}

.manage-subscription-section .btn-primary:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
}

.manage-subscription-section .btn-secondary {
  background: #6c757d;
  color: white;
}

.manage-subscription-section .btn-secondary:hover {
  background: #5a6268;
}

.manage-subscription-section .btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.manage-subscription-section .btn-outline:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.manage-subscription-section .btn-danger {
  background: #dc3545;
  color: white;
}

.manage-subscription-section .btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.manage-subscription-section .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Insert Chart Button States */
#insertChartBtn:disabled,
#modalInsertChartBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #e9ecef !important;
  color: #6c757d !important;
  border-color: #dee2e6 !important;
}

#insertChartBtn:not(:disabled),
#modalInsertChartBtn:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

#insertChartBtn:not(:disabled):hover,
#modalInsertChartBtn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cancel-section, .billing-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 32px;
  text-align: center;
}

.cancel-section h2, .billing-section h2 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cancel-section p, .billing-section p {
  color: #666;
  margin-bottom: 24px;
}

/* Admin User Styles */
.status-badge.admin {
  background: linear-gradient(135deg, #d28c8c 0%, #b02b2c 100%);
  color: white;
}

.status-card.admin {
  border-left-color: #d28c8c;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.admin-disabled {
  position: relative;
  opacity: 0.7;
}

.admin-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
}

.admin-message {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 400px;
}

.admin-message h3 {
  color: #d28c8c;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.admin-message p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.plan-card.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.plan-card.disabled .btn {
  background: #6c757d;
  color: white;
  cursor: not-allowed;
}

.plan-card.disabled .btn:hover {
  background: #6c757d;
  transform: none;
}

.plan-card.disabled .pricing-option {
  border-color: #dee2e6;
  background: #f8f9fa;
}

.plan-card.disabled .pricing-option.featured {
  background: #f8f9fa;
  color: #6c757d;
  border-color: #dee2e6;
}

.plan-card.disabled .popular-badge {
  background: #6c757d;
}

.plan-card.disabled .savings {
  color: #6c757d;
}

/* Manage Subscription Page Responsive */
@media (max-width: 768px) {
  .plan-pricing {
    grid-template-columns: 1fr;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
  }
  
  .manage-subscription-section h1 {
    font-size: 2rem;
  }
  
  .detail-item {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ========================================
   ARTICLE DETAIL PAGE STYLES
   ======================================== */

.article-detail-section {
  padding: 32px 0;
  background: #f8f9fa;
  min-height: 100vh;
}

.article-detail-section .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.article-full {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-header {
  margin-bottom: 32px;
}

.article-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: #6c757d;
}

.status {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: capitalize;
}

.status-published {
  background: #d4edda;
  color: #155724;
}

.status-draft {
  background: #fff3cd;
  color: #856404;
}

.status-archived {
  background: #f8d7da;
  color: #721c24;
}


.article-content {
  line-height: 1.8;
  color: #333;
  font-size: 1.1rem;
}

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

.article-content h2, .article-content h3 {
  color: #333;
  margin: 2rem 0 1rem 0;
}

/* Premium prompt styles */
.article-detail-section .premium-prompt {
  position: relative;
}

.article-preview {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.article-detail-section .premium-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.article-detail-section .premium-message {
  text-align: center;
  padding: 2rem;
  max-width: 500px;
}

.article-detail-section .premium-message h2 {
  color: #333;
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.article-detail-section .premium-message p {
  color: #6c757d;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.article-detail-section .premium-features {
  margin-bottom: 32px;
}

.article-detail-section .premium-features ul {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.article-detail-section .premium-features li {
  padding: 0.5rem 0;
  color: #333;
  font-size: 1rem;
}

.article-detail-section .premium-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.article-detail-section .btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}

.article-detail-section .btn-primary {
  background: #28a745;
  color: white;
}

.article-detail-section .btn-primary:hover {
  background: #218838;
}

.article-detail-section .btn-secondary {
  background: #6c757d;
  color: white;
}

.article-detail-section .btn-secondary:hover {
  background: #545b62;
}

/* Article Detail Page Responsive */
@media (max-width: 768px) {
  .article-header h1 {
    font-size: 2rem;
  }
  
  .article-detail-section .premium-actions {
    flex-direction: column;
  }
}

/* ========================================
   STOCKWATCH ARTICLE DETAIL PAGE STYLES
   ======================================== */

.article-detail-page {
  background: #ffffff;
  min-height: 100vh;
}

/* Sidebar news item links */
.news-item h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-item h4 a:hover {
  color: #667eea;
  text-decoration: underline;
}

.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  overflow-anchor: none; /* Disable scroll anchoring to prevent adjustments */
  gap: 3rem;
}

/* Main Article Content */
.article-main {
  background: white;
}

.article-featured-image {
  margin-bottom: 32px;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-header {
  margin-bottom: 32px;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 1.5rem 0;
}

.article-meta {
  margin-bottom: 16px;
}

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

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
}

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

.author-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.author-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.publish-date {
  color: #666;
  font-size: 0.85rem;
}

/* Article Content */
.article-content {
  line-height: 1.7;
  color: #333;
  font-size: 1rem;
}


.article-body {
  margin-top: 32px;
}

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

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 2rem 0 1rem 0;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 1.5rem 0 0.8rem 0;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* Premium Prompt */
.premium-prompt {
  margin-top: 32px;
  padding: 2rem;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.premium-message h3 {
  color: #1a1a1a;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.premium-message p {
  color: #666;
  margin-bottom: 24px;
}

.premium-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-premium {
  background: #28a745;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-premium:hover {
  background: #218838;
}

.btn-login {
  background: #6c757d;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background: #545b62;
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  background: white;
  border: 1px solid #e0e0e0;
}

.sidebar-title {
  background: #f8f9fa;
  padding: 16px;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 1px solid #e0e0e0;
}

/* Latest News */
.latest-news {
  padding: 16px;
}

.news-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.news-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-date {
  color: #666;
  font-size: 0.8rem;
}

.premium-badge {
  background: #ffc107;
  color: #1a1a1a;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Tags */
.tags-list {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #f0f0f0;
  color: #666;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.tag:hover {
  background: #e0e0e0;
  color: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .article-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .article-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .article-container {
    padding: 16px;
    gap: 24px;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .premium-actions {
    flex-direction: column;
  }
  
  .btn-premium, .btn-login {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.5rem;
  }
  
  .author-info {
    gap: 0.8rem;
  }
  
  .author-avatar {
    width: 35px;
    height: 35px;
  }
}

/* ========================================
   ANALYSIS DETAIL PAGE STYLES
   ======================================== */

/* Analysis Detail Page - Matching Article Detail Style */
.analysis-detail-page {
  background: #ffffff;
  min-height: 100vh;
}

.analysis-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  overflow-anchor: none; /* Disable scroll anchoring to prevent adjustments */
  gap: 3rem;
}

/* Stock Chart Container Styles */
.stock-chart-container {
  margin: 2rem 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stock-chart-container h4 {
  margin: 0 0 1rem 0;
  color: #212529;
  font-size: 1.25rem;
  font-weight: 600;
}

.chart-description {
  margin: 0 0 1rem 0;
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chart-placeholder {
  min-height: 400px;
  border: 2px dashed #dee2e6;
  border-radius: 6px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chart-placeholder:hover {
  border-color: #007bff;
  background: #f0f8ff;
}

/* Main Analysis Content */
.analysis-main {
  background: white;
}

.analysis-featured-image {
  margin-bottom: 32px;
}

.analysis-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.analysis-header {
  margin-bottom: 32px;
}

.analysis-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 1.5rem 0;
}

.analysis-meta {
  margin-bottom: 16px;
}

.stock-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.stock-ticker {
  font-weight: bold;
  color: #007bff;
  background: #e3f2fd;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.company-name {
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
}

.publish-date {
  color: #666;
  font-size: 0.85rem;
}

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

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
}

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

.author-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.author-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.analysis-full {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.analysis-header {
  margin-bottom: 32px;
}

.analysis-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #6c757d;
}

.stock-ticker {
  font-weight: bold;
  color: #007bff;
  background: #e3f2fd;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.company-name {
  font-style: italic;
}

.analysis-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin: 1rem 0;
  line-height: 1.2;
}

.analysis-author {
  font-size: 1rem;
  color: #6c757d;
  font-style: italic;
}

.analysis-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.analysis-type .badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: capitalize;
}

.badge-mixed {
  background: #e3f2fd;
  color: #1976d2;
}

.badge-fundamental {
  background: #e8f5e8;
  color: #2e7d32;
}

.badge-technical {
  background: #fff3e0;
  color: #f57c00;
}

.analysis-rating {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rating {
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
}

.rating-strong_buy {
  background: #4caf50;
  color: white;
}

.rating-buy {
  background: #8bc34a;
  color: white;
}

.rating-hold {
  background: #ff9800;
  color: white;
}

.rating-sell {
  background: #f44336;
  color: white;
}

.rating-strong_sell {
  background: #d32f2f;
  color: white;
}

.target-price {
  font-size: 1rem;
  color: #666;
  font-weight: bold;
}



/* Analysis Content */
.analysis-content {
  line-height: 1.7;
  color: #333;
  font-size: 1rem;
}


.analysis-body {
  margin-top: 32px;
  padding: 0 1.5rem;
}

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

.analysis-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 2rem 0 1rem 0;
}

.analysis-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 1.5rem 0 0.8rem 0;
}

.analysis-body ul, .analysis-body ol {
  margin-bottom: 24px;
  padding-left: 1.5rem;
}

.analysis-body li {
  margin-bottom: 0.5rem;
}

/* Fix image sizing in article/analysis content */
.analysis-body img, .article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive image sizing */
.analysis-body img, .article-body img {
  max-height: 500px;
  width: auto;
  object-fit: contain;
}

/* Analysis Sidebar */
.analysis-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  background: white;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #3a394c;
}

/* Latest Analyses */
.latest-analyses {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analysis-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

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

.analysis-item h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.analysis-item h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.analysis-item h4 a:hover {
  color: #007bff;
  text-decoration: underline;
}

.analysis-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #666;
  flex-wrap: wrap;
}

.analysis-date {
  color: #666;
}

.analysis-ticker {
  background: #e3f2fd;
  color: #007bff;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.75rem;
}

.premium-badge {
  background: #ffd700;
  color: #333;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.7rem;
}

/* Stock Info Card */
.stock-info-card {
  text-align: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 6px;
}

.stock-ticker-large {
  font-size: 1.8rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 0.5rem;
}

.company-name-large {
  font-size: 1rem;
  color: #666;
  margin-bottom: 16px;
  font-style: italic;
}

.rating-display {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* Analysis Detail Page Responsive */
@media (max-width: 768px) {
  .analysis-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 16px;
  }
  
  .analysis-title {
    font-size: 1.8rem;
  }
  
  .stock-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .analysis-summary {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .analysis-body {
    padding: 0;
  }
  
  .sidebar-section {
    padding: 16px;
  }
}

/* Premium prompt styles */
.analysis-detail-section .premium-prompt {
  position: relative;
}

.analysis-preview {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.analysis-detail-section .premium-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.analysis-detail-section .premium-message {
  text-align: center;
  padding: 2rem;
  max-width: 500px;
}

.analysis-detail-section .premium-message h2 {
  color: #333;
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.analysis-detail-section .premium-message p {
  color: #6c757d;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.analysis-detail-section .premium-features {
  margin-bottom: 32px;
}

.analysis-detail-section .premium-features ul {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.analysis-detail-section .premium-features li {
  padding: 0.5rem 0;
  color: #333;
  font-size: 1rem;
}

.analysis-detail-section .premium-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.analysis-detail-section .btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}

.analysis-detail-section .btn-primary {
  background: #007bff;
  color: white;
}

.analysis-detail-section .btn-primary:hover {
  background: #0056b3;
}

.analysis-detail-section .btn-secondary {
  background: #6c757d;
  color: white;
}

.analysis-detail-section .btn-secondary:hover {
  background: #545b62;
}

/* Analysis Detail Page Responsive */
@media (max-width: 768px) {
  .analysis-header h1 {
    font-size: 2rem;
  }
  
  .analysis-summary {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .analysis-detail-section .premium-actions {
    flex-direction: column;
  }
}

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

.login-hero {
  background: #3a394c;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px 0 80px 0;
  position: relative;
}

.login-hero::after {
  content: '';
  position: absolute;
  bottom: -70px;
  left: 0;
  right: 0;
  height:70px;
  background: #3a394c;
  clip-path: polygon(0 0, 100% 0, 70% 100%);
}

.login-hero h1 {
  color: #fcf8f0;
  font-size: 48px;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.main-login-section {
  background: #fcf8f0;
  padding: 260px 0 220px 0;
}

.login-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.login-form-section {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background: #fffacd;
}

.form-group input:focus {
  outline: none;
  border-color: #c28181;
}

.password-input-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 4px;
}

.password-toggle:hover {
  color: #333;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.forgot-password {
  color: #dc3545;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-btn {
  background: #3a394c;
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 8px;
}

.login-btn:hover {
  background: #2d2c3a;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

.membership-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.membership-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.membership-card h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 24px;
  font-weight: 600;
}

.membership-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.membership-btn.primary {
  background: #c28181;
  color: white;
}

.membership-btn.primary:hover {
  background: #a06b6b;
  color: white;
  text-decoration: none;
}

.membership-btn.secondary {
  background: #c28181;
  color: white;
  margin-top: 16px;
}

.membership-btn.secondary:hover {
  background: #a06b6b;
  color: white;
  text-decoration: none;
}

.membership-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .login-hero h1 {
    font-size: 36px;
  }
  
  .login-form-section,
  .membership-card {
    padding: 30px 20px;
  }
}

/* ========================================
   PORTFOLIO PAGE STYLES
   ======================================== */

.portfolio-hero {
  background: #3a394c;
  padding: 80px 0;
  text-align: center;
}

.portfolio-hero h1 {
  color: #fcf8f0;
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
}

.portfolio-description {
  color: #a0a0a0;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.portfolio-main {
  background: #fcf8f0;
  padding: 60px 0;
  min-height: calc(100vh - 200px);
}

.portfolio-grid {
  display: grid;
  gap: 40px;
}

.portfolio-summary {
  margin-bottom: 40px;
}

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

.summary-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-left: 4px solid #c28181;
}

.summary-card h3 {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  font-size: 28px;
  font-weight: 700;
  color: #333;
}

.summary-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  margin-top: 4px;
  opacity: 0.8;
}

.summary-value.positive {
  color: #28a745;
}

.summary-value.negative {
  color: #dc3545;
}

.portfolio-charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.chart-container {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.chart-container canvas {
  max-height: 400px;
}

.portfolio-positions {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.positions-header h3 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  margin: 0;
}

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

.btn-refresh {
  background: #c28181;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-refresh:hover {
  background: #a06b6b;
  color: white;
  text-decoration: none;
}

.btn-refresh:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.positions-table-container {
  overflow-x: auto;
}

.positions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.positions-table th,
.positions-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.positions-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.positions-table tr:hover {
  background: #f8f9fa;
}

.ticker {
  font-weight: 600;
  color: #3a394c;
}

/* Company Logo Styles */
.company {
  width: 100px;
  min-width: 100px;
}

.company-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
  background: #f8f9fa;
  padding: 2px;
  border: 1px solid #e9ecef;
}

.company-initial {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: #6c757d;
  text-transform: uppercase;
}

.name {
  color: #666;
  min-width: 150px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quantity,
.price,
.value {
  text-align: right;
  font-family: 'Courier New', monospace;
}

.pnl.positive,
.return.positive {
  color: #28a745;
  font-weight: 600;
}

.pnl.negative,
.return.negative {
  color: #dc3545;
  font-weight: 600;
}

.no-positions {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-hero h1 {
    font-size: 36px;
  }
  
  .portfolio-description {
    font-size: 16px;
  }
  
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-charts {
    grid-template-columns: 1fr;
  }
  
  .positions-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .positions-table {
    font-size: 12px;
  }
  
  .positions-table th,
  .positions-table td {
    padding: 8px 4px;
  }
}

@media (max-width: 480px) {
  .summary-cards {
    grid-template-columns: 1fr;
  }
  
  .summary-value {
    font-size: 24px;
  }
}

/* ========================================
   LOGOUT NOTIFICATION STYLES
   ======================================== */

.logout-notification {
  position: fixed;
  top: 20px;
  right: -400px;
  background: #28a745;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Saira', sans-serif;
  font-weight: 500;
  font-size: 14px;
  min-width: 200px;
}

.logout-notification.show {
  right: 20px;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.notification-text {
  flex: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .logout-notification {
    right: -350px;
    top: 10px;
    padding: 12px 20px;
    font-size: 13px;
    min-width: 180px;
  }
  
  .logout-notification.show {
    right: 10px;
  }
  
  .notification-content {
    gap: 10px;
  }
  
  .notification-icon {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }
}

/* ========================================
   REGISTRATION PAGE STYLES
   ======================================== */

.register-hero {
  background: #3a394c;
  color: white;
  text-align: center;
  padding: 150px 0 80px 0;
  position: relative;
}

.register-hero::after {
  content: '';
  position: absolute;
  bottom: -70px;
  left: 0;
  right: 0;
  height: 70px;
  background: #3a394c;
  clip-path: polygon(0 0, 100% 0, 70% 100%);
}

.register-hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #fcf8f0;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin: 0;
  color: #fcf8f0;
}

.main-register-section {
  padding: 260px 0 220px 0;
  background-color: #fcf8f0;
  min-height: 80vh;
}

.register-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.register-form-section {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.form-group label:not(.checkbox-label):not(.radio-label):not(.payment-method-option) {
  display: block;
}

.required {
  color: #dc2626;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  width: 100%;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.password-input-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
}

.password-toggle:hover {
  color: #374151;
}

.subscription-summary {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-top: 8px;
}

.subscription-summary h3 {
  margin: 0 0 16px 0;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 700;
}

.subscription-info {
  margin-bottom: 16px;
}

.subscription-period {
  margin: 0;
  color: #374151;
  font-size: 0.95rem;
}

.subscription-table {
  margin: 16px 0;
}

.subscription-table table {
  width: 100%;
  border-collapse: collapse;
}

.subscription-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.subscription-table tbody tr:last-child {
  border-bottom: none;
}

.subscription-table td {
  padding: 12px 0;
  color: #374151;
  font-size: 0.95rem;
}

.subscription-table .price-cell {
  text-align: right;
  font-weight: 600;
  color: #1f2937;
}

.subscription-table .total-row td {
  padding-top: 16px;
  font-size: 1.1rem;
}

.subscription-terms {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
  color: #6b7280;
}

.password-strength {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strength-label {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.strength-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
}

.strength-text.weak {
  color: #dc2626;
}

.strength-text.medium {
  color: #f59e0b;
}

.strength-text.strong {
  color: #10b981;
}

.radio-group {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #374151;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
}

.payment-method-section {
  margin-top: 8px;
}

.payment-method-section > label {
  display: block;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-method-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.payment-method-option:hover {
  border-color: #667eea;
  background-color: #f8f9fa;
}

.payment-method-option input[type="radio"]:checked + span {
  font-weight: 600;
  color: #667eea;
}

.payment-method-option:has(input[type="radio"]:checked),
.payment-method-option.selected {
  border-color: #667eea;
  background-color: #f0f4ff;
}

.payment-method-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
}

.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
}

.form-options {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.checkbox-label a {
  color: #667eea;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.register-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(102, 126, 234, 0.3);
}

.register-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: none;
}

.subscription-benefits {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.benefits-card h3 {
  margin: 0 0 1.5rem 0;
  color: #1f2937;
  font-size: 1.3rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefits-list li {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
}

.error-message {
  background: #fef2f2;
  color: #dc2626;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .register-hero {
    padding: 120px 0 60px 0;
  }
  
  .register-hero::after {
    bottom: -50px;
    height: 50px;
  }
  
  .main-register-section {
    padding: 200px 0 120px 0;
  }
  
  .register-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .register-hero h1 {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .register-form-section,
  .subscription-benefits {
    padding: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 12px;
  }
}

/* Manage Subscription page styles */
.manage-subscription-hero {
  background: #3a394c;
  color: white;
  text-align: center;
  padding: 60px 0;
}

.manage-subscription-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.main-manage-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.status-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  overflow: hidden;
}

.status-header {
  background: #f8f9fa;
  padding: 24px 32px;
  border-bottom: 1px solid #e1e5e9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
}

.status-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.paused {
  background: #fff3cd;
  color: #856404;
}

.status-badge.canceled {
  background: #f8d7da;
  color: #721c24;
}

.status-badge.inactive {
  background: #e2e3e5;
  color: #6c757d;
}

.status-badge.processing {
  background: #e3f2fd;
  color: #1976d2;
  border: 1px solid #bbdefb;
}

.status-content {
  padding: 32px;
}

/* Processing subscription styles */
.subscription-details.processing {
  opacity: 0.7;
  filter: grayscale(0.3);
}

.subscription-details.processing .detail-row {
  color: #666;
}

.subscription-details.processing .label {
  color: #888;
}

.subscription-details.processing .value {
  color: #666;
}

.processing-notice {
  margin-top: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-left: 4px solid #1976d2;
  border-radius: 4px;
}

.processing-notice p {
  margin: 0;
  color: #1976d2;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Admin message styles */
.admin-message {
  text-align: center;
  padding: 40px 20px;
}

.admin-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.admin-message h3 {
  color: #d28c8c;
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.admin-message p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.admin-actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.admin-actions .btn {
  min-width: 160px;
}

/* Admin greyed-out sections */
.admin-disabled {
  opacity: 0.6;
  filter: grayscale(0.4);
  pointer-events: none;
  position: relative;
}

.admin-disabled::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
  pointer-events: none;
}

.admin-disabled .btn,
.admin-disabled button,
.admin-disabled a {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-overlay {
  position: relative;
}

.admin-notice {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.admin-notice .admin-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.admin-notice p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

.greyed-out-content {
  opacity: 0.7;
  filter: grayscale(0.3);
}

.greyed-out-content .detail-row {
  color: #999;
}

.greyed-out-content .label {
  color: #bbb;
}

.greyed-out-content .value {
  color: #999;
}

.loading-state {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #666;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5e9;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.subscription-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f4;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  font-weight: 600;
  color: #666;
}

.detail-row .value {
  color: #333;
  font-weight: 500;
}

.no-subscription {
  text-align: center;
  color: #666;
}

.no-subscription p {
  margin: 0 0 8px 0;
}

.actions-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 32px;
  margin-bottom: 40px;
}

.actions-section h2 {
  margin: 0 0 24px 0;
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.billing-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 32px;
}

.billing-section h2 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
}

.billing-section p {
  margin: 0 0 24px 0;
  color: #666;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #28a745;
  margin-bottom: 24px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .manage-subscription-hero h1 {
    font-size: 2rem;
  }
  
  .status-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ========================================
   USER MANAGEMENT STYLES
   ======================================== */

.user-management-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  color: var(--text-white);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.user-management-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.main-user-management-section {
  padding: 3rem 0;
  background-color: var(--bg-light);
  min-height: 60vh;
}

.invite-section {
  background: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  margin-bottom: var(--spacing-xl);
}

.invite-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.invite-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}

/* Invite and Invitations Container */
.invite-invitations-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.invite-section,
.invitations-section,
.users-section,
.user-stats-section {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  margin-bottom: 2.5rem;
}

.invitations-section h2,
.users-section h2,
.user-stats-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 24px;
}

/* Specific content section IDs with margin-top */
#user-statistics-section, 
#platform-overview-section, 
#top-articles-section, 
#invite-new-user-section, 
#pending-invitations-section, 
#all-users-section {
  margin-top: 32px;
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(135deg, var(--bg-light) 0%, #f8f9fa 100%);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid #e9ecef;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
}

.invitations-table,
.users-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 0.9rem;
}

.invitations-table thead,
.users-table thead {
  background: var(--bg-dark);
  color: var(--text-white);
}

.invitations-table th,
.users-table th {
  padding: 1.25rem;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-heading);
  border-bottom: 2px solid var(--primary-color);
}

/* Sortable Column Headers */
.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.2s ease;
}

.sortable:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sort-indicator {
  display: inline-block;
  margin-left: var(--spacing-xs);
  font-size: 0.8rem;
  color: var(--text-white);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.sort-indicator.sort-asc,
.sort-indicator.sort-desc {
  opacity: 1;
  color: var(--accent-color);
}

.invitations-table td,
.users-table td {
  padding: 1.25rem;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.invitations-table tbody tr:hover,
.users-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Row Status Colors */
.invitation-row.expired {
  background-color: #fff5f5;
  color: #721c24;
}

.invitation-row.pending {
  background-color: #f0f8ff;
}

.user-row.admin {
  background-color: #fff8e1;
}

.user-row.editor {
  background-color: #f3e5f5;
}

/* Badge Styles */
.role-badge,
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge.role-admin {
  background-color: #ffc107;
  color: #000;
}

.role-badge.role-editor {
  background-color: #6f42c1;
  color: #fff;
}

.role-badge.role-user {
  background-color: #6c757d;
  color: #fff;
}

.status-badge.status-pending {
  background-color: #17a2b8;
  color: #fff;
}

.status-badge.status-expired {
  background-color: #dc3545;
  color: #fff;
}

.status-badge.status-active {
  background-color: #28a745;
  color: #fff;
}

.status-badge.status-inactive {
  background-color: #6c757d;
  color: #fff;
}

/* Cell Styles */
.email-cell {
  font-family: monospace;
  font-size: 0.85rem;
}

.name-cell {
  font-weight: 500;
}

.date-cell {
  color: var(--text-light);
  font-size: 0.85rem;
}

.actions-cell {
  text-align: center;
  white-space: nowrap;
}

.text-muted {
  color: var(--text-light);
  font-style: italic;
}

/* No Data Message */
.no-data {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: var(--spacing-xl);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 2px dashed #dee2e6;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-light);
}

.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--spacing-sm);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .invite-invitations-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .invite-form {
    gap: var(--spacing-sm);
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
  }
  
  .stat-card {
    padding: var(--spacing-md);
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .invitations-table,
  .users-table {
    font-size: 0.8rem;
  }
  
  .invitations-table th,
  .users-table th,
  .invitations-table td,
  .users-table td {
    padding: var(--spacing-sm);
  }
  
  .table-container {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .user-management-hero h1 {
    font-size: 2rem;
  }
  
  .invite-invitations-container {
    gap: var(--spacing-sm);
  }
  
  .invite-section,
  .invitations-section,
  .users-section,
  .user-stats-section {
    padding: var(--spacing-md);
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs);
  }
  
  .stat-card {
    padding: var(--spacing-sm);
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .invitations-table th,
  .users-table th,
  .invitations-table td,
  .users-table td {
    padding: var(--spacing-xs);
  }
}

/* User Management Styles for CMS */
.cms-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(210, 140, 140, 0.1);
}

.invitations-list,
.users-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.invitation-item,
.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.invitation-item:hover,
.user-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(210, 140, 140, 0.1);
}

.invitation-info,
.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.invitation-email,
.user-name {
    color: #fefefe;
    font-weight: 600;
    font-size: 1rem;
}

.invitation-role,
.user-role {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.invitation-date,
.user-email,
.user-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.invitation-actions,
.user-actions {
    display: flex;
    gap: 8px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: var(--text-light);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Article and Stock Image Upload Styles */
.article-image-upload, .stock-cover-container {
    margin-top: 8px;
}

.image-upload-area, .stock-image-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--background-light);
}

.image-upload-area:hover, .stock-image-upload-area:hover,
.image-upload-area.drag-over, .stock-image-upload-area.drag-over {
    border-color: var(--primary-color);
    background: var(--primary-color-10);
}

.upload-placeholder {
    color: var(--text-muted);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Portfolio Update Image Upload Styles */
.image-upload-container {
    position: relative;
}

.image-upload-placeholder {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-light);
}

.image-upload-placeholder:hover,
.image-upload-placeholder.drag-over {
    border-color: var(--primary-color);
    background: var(--primary-color-10);
}

.image-preview-container {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    background: var(--bg-white);
}

.preview-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.image-preview, .stock-image-preview {
    text-align: center;
    padding: 20px;
    background: var(--background-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.image-preview img, .stock-image-preview img {
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.preview-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* Stock Cover Section Styles */
.stock-cover-container {
    background: var(--background-light);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.current-cover, .no-cover {
    margin-bottom: 16px;
}

.current-cover img {
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.cover-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.no-cover-placeholder {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.no-cover-placeholder .placeholder-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.cover-actions {
    text-align: center;
}

.cover-warning {
    font-size: 0.85rem;
    color: var(--warning-color);
    margin-top: 8px;
    font-style: italic;
}

/* Stock Cover Upload Modal Styles */
.cover-upload-warning {
    background: var(--warning-background);
    border: 1px solid var(--warning-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.warning-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.cover-upload-warning h4 {
    color: var(--warning-color);
    margin: 0 0 12px 0;
}

.cover-upload-warning p {
    margin: 8px 0;
    color: var(--text-dark);
}

.cover-upload-warning strong {
    color: var(--warning-color);
}

/* Custom Modal Prompts */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.15s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

.custom-modal-overlay.fade-out {
    animation: fadeOut 0.15s ease-in forwards;
}

.custom-modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9);
    animation: scaleIn 0.15s ease-out forwards;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

@keyframes scaleOut {
    to {
        transform: scale(0.9);
    }
}

.custom-modal.scale-out {
    animation: scaleOut 0.15s ease-in forwards;
}

.custom-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.custom-modal-icon.alert {
    background-color: #fff3cd;
    color: #856404;
}

.custom-modal-icon.confirm {
    background-color: #d1ecf1;
    color: #0c5460;
}

.custom-modal-icon.error {
    background-color: #f8d7da;
    color: #721c24;
}

.custom-modal-icon.success {
    background-color: #d4edda;
    color: #155724;
}

.custom-modal-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.custom-modal-body {
    padding: 20px 24px;
}

.custom-modal-message {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.custom-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.custom-modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.custom-modal-btn:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.custom-modal-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.custom-modal-btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.custom-modal-btn-primary:active {
    transform: translateY(0);
}

.custom-modal-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.custom-modal-btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.custom-modal-btn-secondary:active {
    transform: translateY(0);
}

.custom-modal-btn-danger {
    background-color: #dc3545;
    color: white;
}

.custom-modal-btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.custom-modal-btn-danger:active {
    transform: translateY(0);
}

.custom-modal-btn-cancel {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid #dee2e6;
}

.custom-modal-btn-cancel:hover {
    background-color: #f8f9fa;
    color: var(--text-dark);
    border-color: #adb5bd;
}

/* Scheduled publishing badge */
.content-status.status-scheduled {
    background-color: #17a2b8;
    color: white;
}

.content-status.status-scheduled::before {
    content: '🕒 ';
}

/* Countdown timer for scheduled content */
.countdown-timer {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 8px 12px;
    margin: 0 16px 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: var(--font-primary);
}

.countdown-timer::before {
    content: '🕒 ';
    margin-right: 4px;
}

.countdown-timer.expired {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.countdown-timer.expired::before {
    content: '✓ ';
}

/* Portfolio tag styling */
.portfolio-tag {
    display: inline-block;
    background: linear-gradient(135deg, #1c6ca9, #2a7bb8);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(28, 108, 169, 0.2);
}

.article-meta .portfolio-tag {
    margin-left: 8px;
    margin-right: 0;
}

/* Loading skeleton animation */
.loading-card .skeleton-text,
.loading-card .skeleton-badge,
.loading-card .skeleton-button {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-title { 
    height: 24px; 
    width: 70%; 
    margin-bottom: 8px; 
}

.skeleton-badge { 
    height: 20px; 
    width: 80px; 
}

.skeleton-excerpt { 
    height: 16px; 
    margin-bottom: 8px; 
}

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

.skeleton-meta { 
    height: 14px; 
    width: 120px; 
    display: inline-block; 
}

.skeleton-button { 
    height: 32px; 
    width: 80px; 
    display: inline-block; 
    margin-right: 8px; 
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Profile Biography Section Styles */
.profile-biography-section {
    margin: var(--spacing-lg) 0;
}

.profile-info {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.profile-form .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.profile-form label {
    font-weight: 500;
    color: var(--text-dark);
}

.profile-form .form-control {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.profile-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.profile-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-hint {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.save-status {
    margin-left: var(--spacing-sm);
    font-size: 0.9rem;
}

.save-status.saving {
    color: var(--secondary-color);
}

.save-status.saved {
    color: var(--accent-color);
}

.profile-permission-message {
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
}

.profile-permission-message p {
    margin-bottom: var(--spacing-xs);
}

.profile-permission-message p:last-child {
    margin-bottom: 0;
}

/* Profile Status Badges */
.profile-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.profile-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-status-badge.enabled {
    background: #d4edda;
    color: #155724;
}

.profile-status-badge.disabled {
    background: #f8d7da;
    color: #721c24;
}

.profile-status-badge.published {
    background: #cce5ff;
    color: #004085;
}

.profile-status-badge.draft {
    background: #fff3cd;
    color: #856404;
}

.user-profile-status {
    margin-top: var(--spacing-xs);
    padding-top: var(--spacing-xs);
    border-top: 1px solid #e2e8f0;
}

/* Team Member Profile Styles */
.team-member {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid #e2e8f0;
}

.team-member:last-child {
    border-bottom: none;
}

.team-member-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.team-member-avatar {
    max-width: 200px;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.team-member-biography {
    margin-top: var(--spacing-md);
    line-height: 1.8;
}

.team-member-biography p {
    margin-bottom: var(--spacing-sm);
}

/* Invitation Enhancement Styles */
.invitation-item.expired {
    opacity: 0.6;
    background: #f8f9fa;
}

.invitation-expires {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 4px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: var(--spacing-xs);
}

.status-badge.expired {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.invitation-link {
    display: flex;
    gap: 8px;
    margin-top: var(--spacing-xs);
    align-items: center;
}

.invitation-url-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: var(--bg-white);
    color: var(--text-dark);
}

.invitation-url-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive adjustments for profile sections */
@media (max-width: 768px) {
    .profile-status {
        flex-direction: column;
        align-items: flex-start;
    }

    .invitation-link {
        flex-direction: column;
    }

    .invitation-url-input {
        width: 100%;
    }

    .team-member-avatar {
        max-width: 100%;
    }
}

/* User List Modal Styles */
.user-list-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

.user-list-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

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

.user-list-item:hover {
    background-color: #f8f9fa;
}

.user-list-avatar {
    margin-right: 16px;
    flex-shrink: 0;
}

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

.user-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color, #d28c8c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

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

.user-list-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark, #1a1a1a);
    margin-bottom: 4px;
}

.user-list-email {
    font-size: 0.9rem;
    color: var(--text-light, #666);
    margin-bottom: 6px;
}

.user-list-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light, #888);
}

.user-list-role {
    text-transform: capitalize;
    font-weight: 500;
    color: var(--primary-color, #d28c8c);
}

.user-list-separator {
    color: var(--text-light, #ccc);
}

.user-list-date {
    color: var(--text-light, #888);
}

/* Make metric cards look clickable */
.metric-card.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.metric-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: var(--spacing-md) var(--spacing-lg);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-consent-text a:hover {
    color: var(--primary-dark);
}

.cookie-consent-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
}

.cookie-consent-actions .btn {
    white-space: nowrap;
    min-width: 120px;
}

.cookie-consent-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    border: none;
}

.cookie-consent-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(210, 140, 140, 0.3);
}

.cookie-consent-actions .btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.cookie-consent-actions .btn-outline:hover {
    background: var(--secondary-color);
    color: var(--text-white);
}

.cookie-consent-actions .btn-link {
    background: transparent;
    color: var(--secondary-color);
    border: none;
    padding: var(--spacing-sm) 0;
    text-decoration: underline;
}

.cookie-consent-actions .btn-link:hover {
    color: var(--primary-color);
    background: transparent;
}

/* Privacy Page Styles */
.privacy-actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.privacy-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.privacy-status.status-opted-in {
    background-color: #e7f5e7;
    color: #2d5016;
    border: 1px solid #c3e6c3;
}

.privacy-status.status-opted-out {
    background-color: #ffe7e7;
    color: #5a1a1a;
    border: 1px solid #ffb3b3;
}

.privacy-status.status-none {
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-actions {
        justify-content: stretch;
    }
    
    .cookie-consent-actions .btn {
        flex: 1;
    }
}

/* Account Page Privacy Settings */
.privacy-settings {
    margin-top: 20px;
}

.privacy-status-text {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.privacy-status-text.status-opted-in {
    background-color: #e7f5e7;
    color: #2d5016;
    border: 1px solid #c3e6c3;
}

.privacy-status-text.status-opted-out {
    background-color: #ffe7e7;
    color: #5a1a1a;
    border: 1px solid #ffb3b3;
}

.privacy-status-text.status-none {
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

.privacy-note {
    margin-top: 15px;
    color: var(--text-light, #666);
    font-size: 0.85rem;
}

.privacy-link {
    color: var(--primary-color, #d28c8c);
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.privacy-action-btn {
    display: none;
}

.privacy-action-btn.show {
    display: inline-block;
}

/* User list modal loading and error states */
.user-list-loading {
    padding: 20px;
    text-align: center;
}

.user-list-error {
    padding: 20px;
    text-align: center;
    color: #d32f2f;
}

.user-list-empty {
    padding: 40px;
    text-align: center;
    color: #666;
}
#article-rankings-section {
  margin-top: 32px;
}