@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
  /* Common Accent & Utility Colors */
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --error: #ef4444;
  --error-glow: rgba(239, 68, 68, 0.2);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.35);

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

  /* Theme variables (Dark Only) */
  --bg-dark: #0f172a;
  /* Primary (Basis): Deep Navy */
  --bg-card: #1e293b;
  /* Background (Dark): Dark Slate */
  --bg-card-hover: #243147;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-soft: rgba(255, 255, 255, 0.04);
  --primary: #3b82f6;
  /* Lighter blue for accessibility on dark background */
  --primary-glow: rgba(59, 130, 246, 0.3);
  --secondary: #2563eb;
  --text-main: #e2e8f0;
  /* Slate 200 for body text */
  --text-title: #f8fafc;
  /* Off-White for large headings */
  --text-muted: #94a3b8;
  /* Slate 400 for muted text */
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --input-bg: rgba(15, 23, 42, 0.6);
  --backdrop-blur: blur(16px);
  --body-gradient: radial-gradient(at 10% 20%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
}

/* Base Styles & Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  background-image: var(--body-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  padding: 2rem 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, background-image 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-title);
  font-weight: 700;
  transition: color 0.3s ease;
}

h1 {
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Container */
.app-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 10;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out;
}

header h1 {
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out;
}

.nav-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-color-soft);
  border-radius: 12px;
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: var(--card-shadow);
}

.nav-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-title);
  border-color: var(--border-color);
}

.nav-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Glass Card Panel */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color-soft);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
}

.glass-card:hover {
  border-color: var(--border-color);
  box-shadow: 0 15px 35px var(--primary-glow);
}

/* Form Fields */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input,
select,
textarea {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Option Styles */
option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

/* Buttons */
.btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.95rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  filter: brightness(1.05);
}

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

.btn:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

[data-theme="dark"] .btn:disabled {
  background: #334155;
  color: #64748b;
}

/* Secondary button styles */
.btn-secondary {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover) !important;
  border-color: var(--text-muted) !important;
  color: var(--text-title) !important;
}

/* Action Buttons */
.btn-action {
  background: var(--bg-card);
  border: 1px solid var(--border-color-soft);
  border-radius: 8px;
  color: var(--text-main);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: var(--card-shadow);
}

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

.btn-primary-action {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary-action:hover {
  background: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
}

/* Card buttons */
.btn-card-open {
  flex: 1;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  padding: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.btn-card-open:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-card-delete {
  background: var(--error-glow);
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: 8px;
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-card-delete:hover {
  background: var(--error);
  color: #ffffff;
}

/* Theme Toggle Button specific style */
.theme-toggle-btn {
  height: 36px;
  width: 36px;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  flex-shrink: 0;
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
}

/* Monospace text */
.tech-mono {
  font-family: var(--font-mono) !important;
  font-size: 0.85rem !important;
  letter-spacing: -0.01em;
}

/* Pagination Buttons */
.pagination-btn {
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-soft);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 32px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  color: var(--text-title);
  border-color: var(--border-color);
}

.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 10px var(--primary-glow);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(148, 163, 184, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Large loader spinner */
.loader-container .spinner {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

/* Progress Display */
.progress-card {
  display: none;
}

.progress-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  animation: slideInLeft 0.3s ease-out;
}

.progress-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  color: var(--primary);
  flex-shrink: 0;
  font-size: 0.75rem;
}

.progress-item.active .progress-icon {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 1.5s infinite;
}

.progress-item.completed .progress-icon {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
  box-shadow: 0 0 10px var(--success-glow);
}

.progress-text {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.progress-item.active .progress-text {
  color: var(--text-title);
  font-weight: 500;
}

.progress-item.completed .progress-text {
  color: var(--success);
  opacity: 0.9;
}

/* Table layouts & responsive container */
.archive-table-container,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color-soft);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  animation: fadeInUp 0.8s ease-out;
  margin-bottom: 2rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.archive-table,
table {
  width: 100%;
  border-collapse: collapse;
  font-family: inherit;
  color: var(--text-main);
  min-width: 800px;
  text-align: left;
}

.archive-table th,
table th,
.archive-table td,
table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-color-soft);
  vertical-align: middle;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.archive-table th,
table th {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-card-hover);
  border-bottom: 2px solid var(--border-color);
}

.archive-table tbody tr,
table tbody tr {
  transition: all 0.3s ease;
}

.archive-table tbody tr:hover,
table tbody tr:hover {
  background: var(--bg-card-hover);
}

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

/* Columns */
.table-video-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-title);
  line-height: 1.4;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 400px;
}

.table-channel {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-stat-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.table-stat-item:last-child {
  margin-bottom: 0;
}

.table-stat-icon {
  color: var(--primary);
  font-size: 0.9rem;
}

.table-meta-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.table-date-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-title);
}

.archive-actions {
  display: flex;
  gap: 0.5rem;
}

/* Imprint Specific classes */
.imprint-header,
.history-header {
  border-bottom: 1px solid var(--border-color-soft);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.imprint-header h2,
.history-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-title);
}

.imprint-header p,
.history-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.imprint-section {
  margin-bottom: 2rem;
}

.imprint-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.imprint-section p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* Report Card & Styled Markdown Output */
.report-card {
  display: none;
  animation: fadeInUp 0.8s ease-out;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color-soft);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

@media (max-width: 640px) {
  .report-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.report-title-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-title);
}

.report-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Styled Markdown Output */
.report-output {
  line-height: 1.7;
  color: var(--text-main);
}

.report-output h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  color: var(--text-title);
}

.report-output h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.report-output h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-title);
}

.report-output p {
  margin-bottom: 1.2rem;
}

.report-output ul,
.report-output ol {
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.report-output li {
  margin-bottom: 0.5rem;
}

.report-output strong {
  color: var(--text-title);
  font-weight: 600;
}

/* Styled Tables in Markdown */
.report-output table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color-soft);
  border-radius: 8px;
  overflow: hidden;
}

.report-output th,
.report-output td {
  border: 1px solid var(--border-color-soft);
  padding: 0.75rem 1rem;
  text-align: left;
}

.report-output th {
  background-color: var(--primary-glow);
  color: var(--primary);
  font-weight: 600;
}

.report-output tr:nth-child(even) td {
  background-color: var(--bg-card-hover);
}

.report-output blockquote {
  border-left: 4px solid var(--primary);
  background-color: var(--primary-glow);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.report-output hr {
  border: 0;
  height: 1px;
  background: var(--border-color-soft);
  margin: 2rem 0;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--success);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: var(--card-shadow);
  display: none;
  align-items: center;
  gap: 0.75rem;
  z-index: 100;
  animation: fadeInUp 0.3s ease-out;
}

/* Modal Overlay & Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

[data-theme="dark"] .modal-overlay {
  background: rgba(7, 9, 19, 0.8);
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color-soft);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 450px;
  width: 90%;
  position: relative;
  box-shadow: var(--card-shadow);
  animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 10;
}

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

/* Landing Page Layout and Feature Card */
.landing-logo {
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-logo svg {
  stroke: var(--primary);
}

.landing-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-title) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-feature-card {
  padding: 2.25rem 2rem !important;
  border-radius: 20px !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
}

.landing-feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px var(--primary-glow);
  background: var(--bg-card-hover) !important;
}

/* Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

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

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.tx-amount-badge {
  display: inline-block;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Print Overrides */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .app-container {
    max-width: 100% !important;
  }

  .btn-action,
  .theme-toggle-btn {
    display: none !important;
  }

  .glass-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
  }

  .report-output table {
    box-shadow: none !important;
    border: 1px solid #d1d5db !important;
  }

  .report-output th {
    background-color: #f3f4f6 !important;
    color: #000000 !important;
    border: 1px solid #d1d5db !important;
  }

  .report-output td {
    border: 1px solid #d1d5db !important;
    background-color: transparent !important;
  }

  .report-output blockquote {
    background-color: #f9fafb !important;
    border-left-color: #9ca3af !important;
  }
}

/* Layout & Component Utility Classes to Replace Inline Styles */

.subpage-header {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-back {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--border-color-soft);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  color: var(--text-title);
  border-color: var(--border-color);
}

.lang-btn.active {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: var(--primary);
}

.divider {
  height: 1px;
  background: var(--border-color-soft);
  margin: 2rem 0;
}

.text-disclaimer {
  font-size: 0.85rem;
  opacity: 0.8;
}

.loader-text {
  color: var(--text-muted);
  margin-top: 1rem;
}

.token-balance-badge {
  background: var(--success-glow);
  border: 1px solid var(--success);
  border-radius: 20px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* Landing Page Elements */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  margin-bottom: 3rem;
  animation: fadeInDown 0.8s ease-out;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.landing-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
  animation: fadeInUp 0.8s ease-out;
}

.landing-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.landing-btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.features-section {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color-soft);
  animation: fadeInUp 1s ease-out;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.features-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.landing-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-title);
}

.landing-feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Additional Restored Layout Styles */

.landing-hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.btn-hero-cta {
  padding: 0.9rem 2.2rem !important;
  font-size: 1.1rem !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 25px var(--primary-glow) !important;
  width: auto !important;
}

.btn-hero-secondary {
  padding: 0.9rem 2.2rem !important;
  font-size: 1.1rem !important;
  border-radius: 14px !important;
  background: transparent !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color-soft) !important;
}

.btn-hero-secondary:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-color) !important;
}

.features-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.feature-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.feature-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.feature-icon.green {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.feature-icon.orange {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

/* Pricing Section Styles */

.pricing-section {
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--border-color-soft);
  animation: fadeInUp 1.2s ease-out;
}

.pricing-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem;
}

.pricing-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.pricing-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.pricing-card {
  padding: 2.5rem 1.25rem;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 30px var(--primary-glow);
  background: linear-gradient(185deg, rgba(30, 41, 59, 0.9) 0%, rgba(30, 41, 59, 0.6) 100%);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.featured-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-title);
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  font-family: var(--font-heading);
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 0.15rem;
}

.price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.plan-divider {
  height: 1px;
  background: var(--border-color-soft);
  margin: 1.5rem 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.plan-check {
  color: var(--success);
  flex-shrink: 0;
}

.plan-btn {
  width: 100%;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem !important;
  border-radius: 12px !important;
  margin-top: auto;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* FAQ Section Styles */

.faq-section {
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--border-color-soft);
  animation: fadeInUp 1.2s ease-out;
}

.faq-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem;
}

.faq-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.faq-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: 0 10px 25px var(--primary-glow);
}

.faq-question {
  padding: 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-title);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.3s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--border-color-soft);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.01);
}

.faq-answer p {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pagination Layout Spacing Controls */

#archive-pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color-soft);
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  /* Added extra bottom padding as requested */
}

.pagination-left-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-select {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  color: var(--text-title);
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.pagination-info {
  margin-left: 0.5rem;
  opacity: 0.75;
}

#archive-pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Registration Forms Specific Layouts */

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-checkbox-group {
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  cursor: pointer;
  margin-top: 0.15rem;
  accent-color: var(--primary);
  transition: all 0.3s ease;
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.checkbox-label a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
}

/* Highlight styling for Count Comments button */
.btn-highlight {
  position: relative;
  background: rgba(59, 130, 246, 0.1) !important;
  border: 1.5px solid var(--primary) !important;
  color: white !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3) !important;
  transition: all 0.3s ease;
  animation: pulse-border 2s infinite;
}

.btn-highlight:hover:not(:disabled) {
  background: var(--primary) !important;
  color: white !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6) !important;
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}