/* ========================================
   FinanceSimply - Main Stylesheet
   ======================================== */

/* Theme Variables */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #000000;
  --primary-hover: #111827;
  --pill-bg: #f9fafb;
  --card-bg: #ffffff;
  --shadow: rgba(15, 23, 42, 0.08);
  --success: #047857;
  --success-bg: #f0fdf4;
  --error: #b91c1c;
  --error-bg: #fef2f2;
}

[data-theme="dark"] {
  --bg: #0f0f0f;
  --text: #f1f1f1;
  --muted: #9ca3af;
  --border: #2a2a2a;
  --primary: #ffffff;
  --primary-hover: #e5e5e5;
  --pill-bg: #1a1a1a;
  --card-bg: #161616;
  --shadow: rgba(0, 0, 0, 0.3);
  --success: #4ade80;
  --success-bg: #1a2a1a;
  --error: #f87171;
  --error-bg: #2a1a1a;
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 200ms ease, color 200ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

/* Typography */
.logo-font {
  font-family: "Playfair Display", "Times New Roman", serif;
}

.logo-font .italic {
  font-style: italic;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.brand {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--pill-bg);
  color: var(--text);
}

.btn-outline {
  border-color: var(--border);
  background: var(--card-bg);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--pill-bg);
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Page Sections */
.page-section {
  text-align: center;
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-subtitle {
  max-width: 400px;
  margin: 0 auto 32px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* Hero (Homepage) */
.hero {
  text-align: center;
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border);
}

.hero-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero-input {
  min-width: 260px;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.hero-input::placeholder {
  color: var(--muted);
}

.hero-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.hero-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.hero-message {
  margin-top: 8px;
  font-size: 13px;
}

.hero-message.success {
  color: var(--success);
}

.hero-message.error {
  color: var(--error);
}

/* Forms */
.form-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: 0 20px 40px var(--shadow);
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.form-input::placeholder {
  color: var(--muted);
}

.form-input.error {
  border-color: var(--error);
  background: var(--error-bg);
}

.field-error {
  color: var(--error);
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.field-error.show {
  display: block;
}

.submit-btn {
  width: 100%;
  padding: 12px 16px;
  margin-top: 8px;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.form-footer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
  text-align: center;
}

.alert.show {
  display: block;
}

.alert.error {
  background: var(--error-bg);
  color: var(--error);
}

.alert.success {
  background: var(--success-bg);
  color: var(--success);
}

/* Account Email Pill */
.account-email {
  background: var(--pill-bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  display: inline-block;
  margin-bottom: 24px;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 40px 0 32px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.feature-title {
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 16px;
}

/* Section Title */
.section-title {
  text-align: center;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 24px;
  margin: 24px 0 24px;
}

/* Preview Card */
.preview-card-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.preview-card {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: 0 20px 40px var(--shadow);
  overflow: hidden;
  font-size: 13px;
}

.preview-header {
  padding: 18px 24px 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.preview-logo {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 16px;
  margin-bottom: 4px;
}

.preview-date {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-body {
  padding: 16px 22px 12px;
}

.preview-story {
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--border);
}

.preview-story:last-child {
  border-bottom: none;
  padding-bottom: 6px;
}

.preview-story-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.preview-bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.preview-footer {
  text-align: center;
  padding: 10px 18px 14px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Premium Section */
.premium-section {
  padding: 10px 0 10px;
  text-align: center;
  border-top: 1px solid var(--border);
  max-width: 640px;
  margin: 0 auto 40px;
}

.premium-heading {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 22px;
  margin-bottom: 8px;
}

.premium-text {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.premium-price {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Dashboard */
.dashboard-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 8px;
}

.dashboard-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

.user-email {
  font-weight: 600;
}

.card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: 0 10px 30px var(--shadow);
  margin-bottom: 20px;
}

.card-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  color: var(--muted);
}

.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}

/* Login Footer */
.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

.login-footer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-footer a:hover {
  color: var(--primary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 60px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 720px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .features {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero {
    padding-top: 24px;
  }

  .form-card {
    padding: 24px 20px;
    margin: 0 -4px;
  }

  .wrapper {
    padding-inline: 16px;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  --toggle-size: 36px;
  background: transparent;
  border: none;
  padding: 0;
  width: var(--toggle-size);
  height: var(--toggle-size);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
}

.theme-toggle:hover {
  background: var(--pill-bg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sun icon - visible in dark mode */
.theme-toggle .sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon {
  display: none;
}

/* Moon icon - visible in light mode */
.theme-toggle .moon {
  display: block;
}

/* Pricing Page */
.pricing-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 30px;
  text-align: center;
  margin-bottom: 8px;
}

.pricing-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.plan {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 22px 20px;
  background: var(--card-bg);
  box-shadow: 0 10px 30px var(--shadow);
}

.plan-header {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--text);
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--muted);
  margin-bottom: 12px;
}

.plan-price {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.plan-price span {
  font-size: 14px;
  font-weight: 400;
}

.plan-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.plan ul {
  padding-left: 18px;
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.plan ul li {
  margin-bottom: 6px;
}

.plan-label {
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text);
}

.plan-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  margin-bottom: 10px;
  transition: border-color 120ms ease;
}

.plan-input::placeholder {
  color: var(--muted);
}

.plan-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.toggle-group {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--pill-bg);
  margin-bottom: 14px;
}

.toggle-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
  transition: background 120ms ease, color 120ms ease;
}

.toggle-btn.active {
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 1px 2px var(--shadow);
}

.pricing-message {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* Archive Page */
.archive-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 32px;
  text-align: center;
  margin-bottom: 8px;
}

.archive-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

.archive-list {
  max-width: 640px;
  margin: 0 auto;
}

.archive-item {
  display: block;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  margin-bottom: 16px;
  transition: box-shadow 150ms ease, transform 150ms ease;
  text-decoration: none;
  color: inherit;
}

.archive-item:hover {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-2px);
}

.archive-item-date {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.archive-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.archive-item-preview {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.archive-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.archive-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* Newsletter Single View */
.newsletter-header {
  text-align: center;
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.newsletter-date {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.newsletter-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 28px;
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.back-link:hover {
  color: var(--text);
}

.newsletter-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.newsletter-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.newsletter-frame iframe {
  width: 100%;
  min-height: 800px;
  border: none;
}

/* Loading spinner for buttons */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading .btn-text {
  visibility: hidden;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Legal Pages (Privacy, Terms) */
.legal-content {
  max-width: 700px;
  margin: 60px auto;
  padding: 0 20px;
  line-height: 1.7;
}

.legal-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin-bottom: 10px;
}

.legal-content .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.legal-footer a {
  color: inherit;
}

/* ========================================
   ARCHIVE - PREMIUM FEATURES
   ======================================== */

/* Premium Banner */
.premium-banner {
  max-width: 640px;
  margin: 20px auto 0;
  padding: 20px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 2px 8px var(--shadow);
}

.premium-banner-text {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.premium-banner-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.premium-banner-info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.premium-banner-info p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.premium-banner-btn {
  background: var(--primary);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 120ms ease, transform 80ms ease;
}

.premium-banner-btn:hover {
  background: var(--primary-hover);
}

.premium-banner-btn:active {
  transform: translateY(1px);
}

@media (max-width: 600px) {
  .premium-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    margin: 20px 16px 0;
  }
  
  .premium-banner-text {
    flex-direction: column;
    gap: 12px;
  }
  
  .premium-banner-btn {
    width: 100%;
    text-align: center;
  }
}

/* Archive Header */
.archive-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.archive-stats {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* Controls Bar */
.controls-bar {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 20px;
}

.controls-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: 0 1px 3px var(--shadow);
}

/* Search Box */
.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .search-box input:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  background: var(--pill-bg);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.filter-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 1px 3px var(--shadow);
}

.filter-btn .count {
  opacity: 0.6;
  font-size: 12px;
}

/* Sort Button */
.sort-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.sort-btn:hover {
  background: var(--pill-bg);
}

/* Newsletter Grid */
.newsletters-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Newsletter Card */
.newsletter-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px var(--shadow);
}

.newsletter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--shadow);
}

/* Premium Badge */
.premium-badge {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Card Content */
.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Newsletter Card Content */
.newsletter-card .card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.newsletter-card .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.newsletter-card .card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
}

.newsletter-card .card-preview {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
  max-height: 4.5em;
  overflow: hidden;
  flex: 1;
}

.newsletter-card .card-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.newsletter-card .card-link:hover {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.card-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.card-link:hover {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

/* Pagination */
.pagination {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--pill-bg);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
}

.pagination-dots {
  padding: 0 4px;
  color: var(--muted);
}

/* Empty State */
.empty-state {
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  color: var(--text);
  margin: 0 0 8px 0;
}

.empty-state p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

/* Responsive - Archive */
@media (max-width: 768px) {
  .premium-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .controls-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-tabs {
    justify-content: center;
  }
  
  .newsletters-grid {
    grid-template-columns: 1fr;
  }
  
  .archive-header {
    padding: 24px 16px 16px;
  }
}