/* ==========================================================================
   SEOBlog Premium News & Trends Design System (NEXUS)
   Shared across Homepage, Blog, Article, Admin, and Settings
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Light Theme */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  
  --text-primary: #090d16;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-hover: #cbd5e1;
  
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-glow: rgba(37, 99, 235, 0.14);
  --accent-text: #1d4ed8;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --purple: #8b5cf6;
  --purple-bg: #f5f3ff;

  --nav-bg: rgba(255, 255, 255, 0.88);
  --nav-border: rgba(226, 232, 240, 0.85);
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 2px 8px -2px rgba(15, 23, 42, 0.04), 0 1px 3px -1px rgba(15, 23, 42, 0.02);
  --shadow-card-hover: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 8px 10px -4px rgba(15, 23, 42, 0.03);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  /* Color Palette - Dark Theme */
  --bg-base: #09090c;
  --bg-surface: #101015;
  --bg-surface-elevated: #16161c;
  --bg-subtle: #1c1c24;
  --bg-card: #121217;
  --bg-card-hover: #181820;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --border-color: #23232c;
  --border-subtle: #1a1a22;
  --border-hover: #373744;
  
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-light: rgba(59, 130, 246, 0.14);
  --accent-glow: rgba(59, 130, 246, 0.28);
  --accent-text: #93c5fd;

  --success: #34d399;
  --success-bg: rgba(16, 185, 129, 0.15);
  --warning: #fbbf24;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --danger: #f87171;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --purple: #a78bfa;
  --purple-bg: rgba(139, 92, 246, 0.15);

  --nav-bg: rgba(9, 9, 12, 0.88);
  --nav-border: rgba(35, 35, 44, 0.85);
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
  --shadow-card: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(59, 130, 246, 0.28);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

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

/* ==========================================================================
   Typography Hierarchy
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.font-editorial {
  font-family: 'Newsreader', Georgia, serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.brand-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.nav-links-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link-item {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link-item:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.nav-link-item.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-subtle);
  transform: scale(1.04);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ==========================================================================
   Premium Category Ribbon & Buttons
   ========================================================================== */
.category-ribbon {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 59px;
  z-index: 90;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.6rem 0;
  transition: all var(--transition-base);
}

.category-pills-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.2rem 0;
}

.category-pills-scroll::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid var(--border-color);
  background: var(--bg-base);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.cat-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.cat-btn.active {
  background: var(--accent);
  color: #ffffff !important;
  border-color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
  transform: translateY(-1px);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn-prime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #ffffff !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-prime:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-sm-custom {
  padding: 0.4rem 0.9rem;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

/* ==========================================================================
   Horizontal Split Feature Card (Image Left, Text Right)
   Eliminates horizontal image stretching on Desktop
   ========================================================================== */
.horizontal-split-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 42% 58%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.horizontal-split-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.split-card-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 290px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.split-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.horizontal-split-card:hover .split-card-media img {
  transform: scale(1.04);
}

.split-card-content {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.split-card-title {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.025em;
  margin: 0.65rem 0 0.85rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

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

.split-card-excerpt {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

@media (max-width: 860px) {
  .horizontal-split-card {
    grid-template-columns: 1fr;
  }
  .split-card-media {
    height: 240px;
    min-height: auto;
  }
  .split-card-content {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Luxury Advert / Sponsor Placement Box
   ========================================================================== */
.advert-placement-box {
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-surface) 100%);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-xs);
}

.advert-badge-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.advert-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.advert-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 1.25rem;
  line-height: 1.55;
}

/* ==========================================================================
   Editorial Cards
   ========================================================================== */
.editorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  box-shadow: var(--shadow-card);
}

.editorial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.editorial-card:hover .card-img {
  transform: scale(1.04);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.6rem 0 0.5rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

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

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ADVANCED LUXURY DATA TABLES & RANKING CARDS
   Fully responsive across Mobile, Tablet, and Desktop
   ========================================================================== */
.luxury-matrix-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin: 2.5rem 0;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.luxury-matrix-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.matrix-header-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0.35rem 0 0.15rem;
  color: var(--text-primary);
}

/* Desktop Data Table */
.luxury-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.luxury-data-table th {
  padding: 0.95rem 1.25rem;
  background: var(--bg-subtle);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.luxury-data-table th:first-child {
  border-top-left-radius: var(--radius-md);
}

.luxury-data-table th:last-child {
  border-top-right-radius: var(--radius-md);
}

.luxury-data-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: var(--text-primary);
  vertical-align: middle;
  transition: background var(--transition-fast);
}

.luxury-data-table tr:hover td {
  background: var(--bg-subtle);
}

.luxury-data-table tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-md);
}

.luxury-data-table tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-md);
}

.metric-highlight {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent);
}

.metric-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* Mobile Adaptive Card View for Tables */
.table-mobile-card-grid {
  display: none;
  gap: 1rem;
}

.mobile-data-card {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-data-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.mobile-data-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Loading Skeleton Animation
   ========================================================================== */
.skeleton-pulse {
  background: linear-gradient(
    90deg,
    var(--bg-subtle) 0%,
    var(--border-subtle) 50%,
    var(--bg-subtle) 100%
  );
  background-size: 200% 100%;
  animation: skeletonLoad 1.8s infinite ease-in-out;
  border-radius: var(--radius-sm);
}

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

/* ==========================================================================
   Editorial Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2.5rem;
  margin-top: 5rem;
  color: var(--text-secondary);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-bottom-bar {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints & Table Transformations
   ========================================================================== */
@media (max-width: 820px) {
  .table-desktop-view {
    display: none !important;
  }
  .table-mobile-card-grid {
    display: grid !important;
  }
  .luxury-matrix-card {
    padding: 1.25rem;
    margin: 1.5rem 0;
  }
  .matrix-header-box {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 991px) {
  .nav-links-group {
    display: none;
  }
  .nav-links-group.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 767px) {
  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ==========================================================================
   Wire Post Thumbnail Favicon Component
   ========================================================================== */
.wire-thumb-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: block;
  position: relative;
}

.wire-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}

.wire-item:hover .wire-thumbnail-img {
  transform: scale(1.08);
}

.wire-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.45;
  font-size: 1.4rem;
  background: var(--bg-subtle);
}

/* ==========================================================================
   Luxury Site-Designed Toast Notifications
   ========================================================================== */
.site-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  width: calc(100vw - 3rem);
  pointer-events: none;
}

.site-toast {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.35), 0 0 1px 1px var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  pointer-events: auto;
  animation: siteToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-toast.hiding {
  opacity: 0;
  transform: translateY(12px) scale(0.95);
}

.site-toast-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.site-toast-success .site-toast-icon {
  background: var(--success-bg);
  color: var(--success);
}
.site-toast-danger .site-toast-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}
.site-toast-info .site-toast-icon {
  background: var(--accent-light);
  color: var(--accent);
}
.site-toast-warning .site-toast-icon {
  background: var(--warning-bg);
  color: var(--warning);
}

.site-toast-content {
  flex: 1;
}

.site-toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: color 0.15s ease;
}

.site-toast-close:hover {
  color: var(--text-primary);
}

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

/* ==========================================================================
   Newsletter Popup Modal
   ========================================================================== */
.newsletter-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.newsletter-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.newsletter-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  transition: all var(--transition-fast);
}

.newsletter-modal-close:hover {
  background: var(--accent-light);
  color: var(--accent);
  transform: rotate(90deg);
}

/* ==========================================================================
   Contact Form & Anti-Bot CAPTCHA Challenge
   ========================================================================== */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.captcha-challenge-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.captcha-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.25);
  letter-spacing: 0.05em;
  user-select: none;
}

/* ==========================================================================
   Legal & About Document Layouts
   ========================================================================== */
.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.legal-section p, .legal-section li {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
  margin-bottom: 0.85rem;
}

.legal-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Admin Settings & Code Area Components
   ========================================================================== */
.settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.code-editor-area {
  font-family: 'JetBrains Mono', Consolas, Menlo, monospace !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-md) !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
