/*
Theme Name: ResourceNest
Theme URI: https://resourcenest.com
Author: ResourceNest
Author URI: https://resourcenest.com
Description: A clean, fast, card-based design for ResourceNest — a moderated resource discovery platform for businesses, tools, websites, and useful content. This theme is presentation-only: design, layout, typography, colors, and templates. All business logic (submissions, accounts, moderation, points, membership) is handled by the required "ResourceNest Core" plugin, so the platform's data and functionality are preserved if you ever switch themes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
Text Domain: resourcenest
Tags: directory, resources, business-directory, membership, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   RESOURCENEST THEME — DESIGN SYSTEM & CORE STYLES
   All styles intentionally written in pure CSS — no framework
   dependencies, maximum performance, full WordPress compatibility.
   This file is presentation only; see the ResourceNest Core plugin
   for all post types, roles, submissions, and business logic.
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Brand Colors - restrained palette, one accent used sparingly */
  --color-navy:        #1a1a1a;
  --color-navy-light:  #2d2d2d;
  --color-navy-mid:    #525252;
  --color-blue:        #1a56db;
  --color-blue-dark:   #1e40af;
  --color-blue-light:  #eff6ff;
  --color-emerald:     #059669;
  --color-emerald-dark:#047857;
  --color-gold:        #d97706;
  --color-gold-light:  #fffbeb;
  --color-purple:      #7c3aed;
  --color-purple-light:#f5f3ff;
  --color-red:         #dc2626;
  --color-red-light:   #fef2f2;

  /* Neutrals - warm whites, not cold grays */
  --color-bg:          #fafaf9;
  --color-bg-card:     #ffffff;
  --color-bg-dark:     #1a1a1a;
  --color-border:      #e7e5e4;
  --color-border-dark: #d6d3d1;
  --color-text:        #1c1917;
  --color-text-muted:  #78716c;
  --color-text-light:  #a8a29e;
  --color-text-white:  #fafaf9;

  /* Typography - editorial, readable */
  --font-display:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:         'Lora', Georgia, 'Times New Roman', serif;
  --font-ui:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:         'JetBrains Mono', 'Fira Code', monospace;

  /* Type Scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;

  /* Spacing */
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-5:    1.25rem;
  --space-6:    1.5rem;
  --space-8:    2rem;
  --space-10:   2.5rem;
  --space-12:   3rem;
  --space-16:   4rem;
  --space-20:   5rem;
  --space-24:   6rem;

  /* Borders */
  --radius-sm:  0.375rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.5rem;
  --radius-full:9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-blue:0 4px 14px 0 rgb(59 130 246 / 0.25);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max:     1280px;
  --container-pad:     var(--space-6);
  --header-height:     70px;
  --sidebar-width:     300px;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-blue); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--color-text); }

/* Story/article body text uses the serif reading font */
.rn-story-body, .rn-story-body p { font-family: var(--font-body); font-size: 1.125rem; line-height: 1.85; color: var(--color-text); }

/* ── LAYOUT UTILITIES ───────────────────────────────────────── */
.rn-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.rn-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.rn-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.rn-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.rn-flex   { display: flex; align-items: center; }
.rn-flex-between { display: flex; align-items: center; justify-content: space-between; }
.rn-flex-center  { display: flex; align-items: center; justify-content: center; }
.rn-gap-2  { gap: var(--space-2); }
.rn-gap-3  { gap: var(--space-3); }
.rn-gap-4  { gap: var(--space-4); }
.rn-gap-6  { gap: var(--space-6); }

/* ── HEADER ─────────────────────────────────────────────────── */
.rn-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.rn-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.rn-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--color-text);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.rn-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  letter-spacing: -0.3px;
}

.rn-logo-text span { color: var(--color-blue); }

/* Main Nav */
.rn-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.rn-nav a {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-ui);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.rn-nav a:hover,
.rn-nav a.active {
  color: var(--color-text);
}

/* Header Actions */
.rn-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.rn-btn-ghost {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-ui);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.rn-btn-ghost:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.rn-btn-primary {
  padding: 9px var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-ui);
  color: white;
  background: var(--color-text);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.rn-btn-primary:hover {
  background: var(--color-navy-mid);
  color: white;
}

.rn-btn-secondary {
  padding: 9px var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-ui);
  color: var(--color-text);
  background: var(--color-blue-light);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.rn-btn-secondary:hover {
  background: #BFDBFE;
  color: var(--color-blue-dark);
}

.rn-btn-emerald {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-emerald-dark) 100%);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  box-shadow: 0 4px 14px 0 rgb(16 185 129 / 0.25);
}

.rn-btn-emerald:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgb(16 185 129 / 0.35);
  color: white;
}

.rn-btn-lg {
  padding: var(--space-4) var(--space-8) !important;
  font-size: var(--text-base) !important;
  border-radius: var(--radius-lg) !important;
}

/* Hamburger */
.rn-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.rn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Mobile Nav */
.rn-mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.rn-mobile-nav.open { display: block; }

.rn-mobile-nav a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.rn-mobile-nav a:hover { background: var(--color-bg); color: var(--color-blue); }

.rn-mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

/* ── HERO SECTION ───────────────────────────────────────────── */
.rn-hero {
  background: var(--color-bg);
  color: var(--color-text);
  padding: var(--space-20) 0 var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

.rn-hero-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.rn-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-ui);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  letter-spacing: 0.01em;
}

.rn-hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-emerald);
  border-radius: 50%;
}

.rn-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.rn-hero h1 .accent {
  color: var(--color-blue);
}

.rn-hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  max-width: 520px;
  margin: 0 auto var(--space-10);
  line-height: 1.75;
  font-weight: 400;
}

/* Hero Search */
.rn-hero-search {
  max-width: 560px;
  margin: 0 auto var(--space-10);
}

.rn-search-box {
  display: flex;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.rn-search-box:focus-within {
  border-color: var(--color-text);
  box-shadow: 0 0 0 3px rgb(0 0 0 / 0.06);
}

.rn-search-box input {
  flex: 1;
  padding: 14px var(--space-5);
  border: none;
  outline: none;
  font-size: var(--text-base);
  font-family: var(--font-ui);
  color: var(--color-text);
  background: transparent;
}

.rn-search-box input::placeholder { color: var(--color-text-light); }

.rn-search-btn {
  padding: 14px var(--space-5);
  background: var(--color-text);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.rn-search-btn:hover { background: var(--color-navy-mid); }

/* Autocomplete */
.rn-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.12), 0 2px 8px rgb(0 0 0 / 0.06);
  border: 1px solid var(--color-border);
  z-index: 200;
  display: none;
  overflow: hidden;
  max-height: 480px;
  overflow-y: auto;
}

.rn-autocomplete.show { display: block; }

.rn-autocomplete-group-label {
  padding: 10px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.rn-autocomplete-item {
  padding: 11px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: background 0.1s;
  text-decoration: none;
  font-family: var(--font-ui);
  border-bottom: 1px solid var(--color-border);
}

.rn-autocomplete-item:last-of-type { border-bottom: none; }
.rn-autocomplete-item:hover,
.rn-autocomplete-item.rn-autocomplete-active { background: var(--color-bg); }

.rn-autocomplete-cat { background: var(--color-bg); }
.rn-autocomplete-cat:hover { background: var(--color-blue-light); }

.rn-autocomplete-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  margin-top: 1px;
}

.rn-autocomplete-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.rn-autocomplete-title mark {
  background: #fef9c3;
  color: var(--color-text);
  border-radius: 2px;
  padding: 0 1px;
}

.rn-autocomplete-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rn-autocomplete-empty {
  padding: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
}

.rn-autocomplete-loading {
  padding: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
}

.rn-autocomplete-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.rn-autocomplete-footer a {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
  font-family: var(--font-ui);
}

.rn-hero-search-wrapper { position: relative; }

/* Hero CTAs */
.rn-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

/* Hero Stats */
.rn-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.rn-hero-stat { text-align: center; }

.rn-hero-stat-number {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.rn-hero-stat-number .counter-suffix { color: var(--color-blue); }

.rn-hero-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-weight: 400;
}

/* ── SECTION COMMON ─────────────────────────────────────────── */
.rn-section { padding: var(--space-16) 0; }
.rn-section-sm { padding: var(--space-10) 0; }
.rn-section-alt { background: white; }

.rn-section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.rn-section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-3);
}

.rn-section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  letter-spacing: -0.5px;
}

.rn-section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── CATEGORIES GRID ────────────────────────────────────────── */
.rn-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.rn-category-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.rn-category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cat-color, var(--color-blue)) 0%, transparent 80%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.rn-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.rn-category-card:hover::before { opacity: 0.04; }

.rn-category-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  font-size: 1.5rem;
  background: var(--cat-bg, var(--color-blue-light));
  transition: transform var(--transition-base);
}

.rn-category-card:hover .rn-category-icon { transform: scale(1.1); }

.rn-category-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-1);
  display: block;
}

.rn-category-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── LISTING CARDS ──────────────────────────────────────────── */
.rn-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-5);
}

.rn-listing-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}

.rn-listing-card:hover {
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.07);
}

.rn-listing-card.featured {
  border-color: var(--color-gold);
}

.rn-listing-featured-badge {
  position: absolute;
  top: -1px;
  right: var(--space-4);
  background: var(--color-gold);
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-ui);
  padding: 2px 10px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rn-listing-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.rn-listing-favicon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.rn-listing-favicon img { width: 100%; height: 100%; object-fit: cover; }

.rn-listing-info { flex: 1; min-width: 0; }

.rn-listing-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-1);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rn-listing-url {
  font-size: var(--text-xs);
  color: var(--color-emerald);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rn-listing-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rn-listing-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.rn-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  text-decoration: none;
}

.rn-tag:hover { border-color: var(--color-blue); color: var(--color-blue); }
.rn-tag-blue  { background: var(--color-blue-light); color: var(--color-blue); border-color: transparent; }
.rn-tag-green { background: #D1FAE5; color: var(--color-emerald-dark); border-color: transparent; }
.rn-tag-gold  { background: var(--color-gold-light); color: #92400E; border-color: transparent; }
.rn-tag-purple{ background: var(--color-purple-light); color: #6D28D9; border-color: transparent; }
.rn-tag-red   { background: var(--color-red-light); color: #DC2626; border-color: transparent; }

.rn-listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.rn-listing-stats {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.rn-listing-stat {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.rn-listing-stat svg { width: 12px; height: 12px; }

.rn-listing-actions { display: flex; gap: var(--space-2); }

.rn-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
}

.rn-btn-icon:hover { background: var(--color-blue-light); border-color: var(--color-blue); color: var(--color-blue); }

.rn-listing-visit-btn {
  padding: var(--space-2) var(--space-4);
  background: var(--color-navy);
  color: white;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.rn-listing-visit-btn:hover { background: var(--color-blue); color: white; }

/* Country flag badge */
.rn-country-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Member tier badges */
.rn-badge-pro {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  background: var(--color-gold-light);
  color: #92400E;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rn-badge-business {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  background: var(--color-purple-light);
  color: #6D28D9;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rn-badge-trusted {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  background: #FEF9C3;
  color: #854D0E;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rn-badge-free {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  background: var(--color-bg);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
}

/* Link type badge */
.rn-listing-verified { color: var(--color-emerald); font-weight: 700; font-size: var(--text-xs); }

/* ── FILTER BAR ─────────────────────────────────────────────── */
.rn-filter-bar {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.rn-filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.rn-filter-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.rn-filter-select {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.rn-filter-select:focus { border-color: var(--color-blue); }

.rn-filter-pills {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.rn-filter-pill {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.rn-filter-pill:hover,
.rn-filter-pill.active {
  background: var(--color-navy);
  color: white;
  border-color: var(--color-navy);
}

.rn-filter-results {
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.rn-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.rn-page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.rn-page-btn:hover,
.rn-page-btn.active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: white;
}

/* ── SIDEBAR & ADSENSE ──────────────────────────────────────── */
.rn-content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-8);
  align-items: start;
}

.rn-sidebar { display: flex; flex-direction: column; gap: var(--space-6); }

.rn-sidebar-widget {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

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

.rn-widget-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rn-widget-body { padding: var(--space-4) var(--space-5); }

/* AdSense Zones */
.rn-ad-zone {
  background: var(--color-bg);
  border: 1px dashed var(--color-border-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  color: var(--color-text-light);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rn-ad-zone-leaderboard { min-height: 90px; width: 100%; }
.rn-ad-zone-sidebar { min-height: 250px; }
.rn-ad-zone-in-content { min-height: 90px; margin: var(--space-6) 0; }

/* ── MEMBERSHIP / PRICING CARDS ─────────────────────────────── */
.rn-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 960px;
  margin: 0 auto;
}

.rn-pricing-card {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  position: relative;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.rn-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.rn-pricing-card.popular {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 1px var(--color-blue), var(--shadow-xl);
}

.rn-pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rn-pricing-tier {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.rn-pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.rn-pricing-currency { font-size: var(--text-lg); font-weight: 700; color: var(--color-text-muted); }
.rn-pricing-amount   { font-size: var(--text-5xl); font-weight: 800; color: var(--color-navy); line-height: 1; }
.rn-pricing-period   { font-size: var(--text-sm); color: var(--color-text-muted); }

.rn-pricing-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.rn-pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.rn-pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.rn-pricing-feature-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 10px;
}

.rn-feature-yes  { background: #D1FAE5; color: var(--color-emerald-dark); }
.rn-feature-no   { background: var(--color-bg); color: var(--color-text-light); }

/* ── STATS COUNTERS ─────────────────────────────────────────── */
.rn-stats-bar {
  background: var(--color-navy);
  padding: var(--space-6) 0;
}

.rn-stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.rn-stat-item { text-align: center; }

.rn-stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: white;
  font-family: var(--font-display);
  line-height: 1;
  display: block;
}

.rn-stat-number .blue { color: var(--color-blue); }
.rn-stat-label  { font-size: var(--text-sm); color: #64748B; margin-top: var(--space-1); display: block; }

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.rn-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.rn-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(12.5% + 30px);
  right: calc(12.5% + 30px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue-light) 0%, var(--color-blue) 50%, var(--color-blue-light) 100%);
}

.rn-step { text-align: center; position: relative; }

.rn-step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: var(--text-xl);
  font-weight: 800;
  color: white;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-blue);
}

.rn-step-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.rn-step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── USER AVATAR & PROFILE ──────────────────────────────────── */
.rn-user-menu {
  position: relative;
}

.rn-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--color-border);
  overflow: hidden;
  flex-shrink: 0;
}

.rn-avatar img { width: 100%; height: 100%; object-fit: cover; }

.rn-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 200;
  overflow: hidden;
  display: none;
}

.rn-user-dropdown.open { display: block; }

.rn-user-dropdown-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.rn-user-dropdown-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-navy);
}

.rn-user-dropdown-email {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.rn-user-dropdown-points {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  padding: 2px var(--space-3);
  background: var(--color-gold-light);
  color: #92400E;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.rn-user-dropdown a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
  transition: background var(--transition-fast);
  text-decoration: none;
}

.rn-user-dropdown a:hover { background: var(--color-bg); color: var(--color-blue); }

.rn-user-dropdown a.danger { color: var(--color-red); }
.rn-user-dropdown a.danger:hover { background: var(--color-red-light); }

.rn-dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-1) 0;
}

/* Notification bell */
.rn-notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rn-notif-btn:hover { background: var(--color-blue-light); color: var(--color-blue); border-color: var(--color-blue); }

.rn-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--color-red);
  color: white;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* ── FORMS ──────────────────────────────────────────────────── */
.rn-form-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 560px;
  margin: 0 auto;
}

.rn-form-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.rn-form-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.rn-form-group { margin-bottom: var(--space-5); }

.rn-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.rn-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.rn-label .required { color: var(--color-red); margin-left: 2px; }

.rn-input,
.rn-select,
.rn-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: white;
  outline: none;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.rn-input:focus,
.rn-select:focus,
.rn-textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.rn-input::placeholder,
.rn-textarea::placeholder { color: var(--color-text-light); }

.rn-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.rn-input.error,
.rn-select.error,
.rn-textarea.error { border-color: var(--color-red); }

.rn-input.error:focus { box-shadow: 0 0 0 3px rgb(239 68 68 / 0.1); }

.rn-field-error {
  font-size: var(--text-xs);
  color: var(--color-red);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.rn-field-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.rn-word-counter {
  text-align: right;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.rn-word-counter.warning { color: var(--color-gold); }
.rn-word-counter.over    { color: var(--color-red); }

.rn-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.rn-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--space-1);
  cursor: pointer;
  accent-color: var(--color-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.rn-checkbox-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.rn-form-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-5) 0;
  color: var(--color-text-light);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rn-form-divider::before,
.rn-form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.rn-form-footer {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Password strength */
.rn-password-strength {
  height: 4px;
  border-radius: 4px;
  background: var(--color-border);
  margin-top: var(--space-2);
  overflow: hidden;
}

.rn-password-bar {
  height: 100%;
  border-radius: 4px;
  transition: all var(--transition-base);
  width: 0%;
}

.rn-strength-weak   { width: 25%; background: var(--color-red); }
.rn-strength-fair   { width: 50%; background: var(--color-gold); }
.rn-strength-good   { width: 75%; background: var(--color-blue); }
.rn-strength-strong { width: 100%; background: var(--color-emerald); }

/* ── ALERTS & NOTICES ───────────────────────────────────────── */
.rn-alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.rn-alert-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }
.rn-alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.rn-alert-error   { background: var(--color-red-light); color: #991B1B; border: 1px solid #FECACA; }
.rn-alert-warning { background: var(--color-gold-light); color: #92400E; border: 1px solid #FDE68A; }
.rn-alert-info    { background: var(--color-blue-light); color: #1E40AF; border: 1px solid #BFDBFE; }

/* ── BREADCRUMBS ────────────────────────────────────────────── */
.rn-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.rn-breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.rn-breadcrumb a:hover { color: var(--color-blue); }
.rn-breadcrumb-sep { color: var(--color-border-dark); }
.rn-breadcrumb-current { color: var(--color-navy); font-weight: 500; }

/* ── TABS ───────────────────────────────────────────────────── */
.rn-tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.rn-tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.rn-tab:hover { color: var(--color-blue); }

.rn-tab.active {
  color: var(--color-blue);
  border-bottom-color: var(--color-blue);
}

.rn-tab-count {
  background: var(--color-bg);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  padding: 1px var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
}

.rn-tab.active .rn-tab-count {
  background: var(--color-blue-light);
  color: var(--color-blue);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.rn-footer {
  background: var(--color-navy);
  color: #94A3B8;
  padding: var(--space-16) 0 var(--space-8);
}

.rn-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.rn-footer-brand {}

.rn-footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.rn-footer-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-blue) 0%, #1a2744 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-base);
  font-weight: 800;
}

.rn-footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  color: white;
}

.rn-footer-logo-text span { color: var(--color-blue); }

.rn-footer-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: #64748B;
  margin-bottom: var(--space-5);
  max-width: 280px;
}

.rn-footer-social {
  display: flex;
  gap: var(--space-3);
}

.rn-social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: #1E293B;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.rn-social-btn:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: white;
}

.rn-footer-col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rn-footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.rn-footer-links a {
  font-size: var(--text-sm);
  color: #64748B;
  text-decoration: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.rn-footer-links a:hover { color: white; }

.rn-footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.rn-footer-copy {
  font-size: var(--text-xs);
  color: #475569;
}

.rn-footer-legal {
  display: flex;
  gap: var(--space-6);
}

.rn-footer-legal a {
  font-size: var(--text-xs);
  color: #475569;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.rn-footer-legal a:hover { color: #94A3B8; }

/* ── COOKIE BANNER ──────────────────────────────────────────── */
.rn-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-navy);
  border-top: 1px solid #1E293B;
  padding: var(--space-4) var(--space-6);
  z-index: 9999;
  display: none;
}

.rn-cookie-banner.show { display: flex; }
.rn-cookie-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.rn-cookie-text {
  font-size: var(--text-sm);
  color: #94A3B8;
  line-height: 1.5;
}

.rn-cookie-text a { color: var(--color-blue); }

.rn-cookie-actions { display: flex; gap: var(--space-3); flex-shrink: 0; }

/* ── LOADING / SKELETON ─────────────────────────────────────── */
.rn-skeleton {
  background: linear-gradient(90deg, var(--color-bg) 0%, var(--color-border) 50%, var(--color-bg) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

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

/* ── TOOLTIP ────────────────────────────────────────────────── */
[data-tooltip] { position: relative; }

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: white;
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 100;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ── BACK TO TOP ────────────────────────────────────────────── */
.rn-back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  background: var(--color-navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 500;
  border: none;
  font-size: 1rem;
}

.rn-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.rn-back-to-top:hover { background: var(--color-blue); }

/* ── DARK MODE ──────────────────────────────────────────────── */
.dark-mode {
  --color-bg:           #111110;
  --color-bg-card:      #1c1b1a;
  --color-border:       #2a2927;
  --color-border-dark:  #3a3836;
  --color-text:         #e7e5e4;
  --color-text-muted:   #a8a29e;
  --color-text-light:   #78716c;
  --color-navy:         #f5f5f4;
  --color-blue-light:   #1e3050;
  --color-gold-light:   #3a2a10;
  --color-purple-light: #2e1f4d;
  --color-red-light:    #3a1a1a;
}

/* Base surfaces */
.dark-mode body { background: var(--color-bg); color: var(--color-text); }
.dark-mode .rn-header,
.dark-mode .rn-mobile-nav,
.dark-mode .rn-listing-card,
.dark-mode .rn-form-card,
.dark-mode .rn-category-card,
.dark-mode .rn-sidebar-widget,
.dark-mode .rn-pricing-card,
.dark-mode .rn-user-dropdown,
.dark-mode .rn-filter-bar,
.dark-mode .rn-section-alt,
.dark-mode .rn-autocomplete { background: var(--color-bg-card); border-color: var(--color-border); }

.dark-mode .rn-widget-header,
.dark-mode .rn-user-dropdown-header { background: var(--color-bg); border-color: var(--color-border); }

/* Headings and strong text — force light, never rely on hardcoded #0F172A/navy in markup */
.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6,
.dark-mode .rn-section-title, .dark-mode .rn-form-title, .dark-mode .rn-listing-title,
.dark-mode .rn-category-name, .dark-mode .rn-pricing-amount, .dark-mode .rn-user-dropdown-name,
.dark-mode .rn-widget-title, .dark-mode .rn-step-title, .dark-mode .rn-hero-stat-number,
.dark-mode .rn-stat-number { color: var(--color-text); }

/* Body copy / muted text */
.dark-mode p, .dark-mode span, .dark-mode li, .dark-mode label,
.dark-mode .rn-listing-desc, .dark-mode .rn-section-subtitle, .dark-mode .rn-form-subtitle,
.dark-mode .rn-listing-url, .dark-mode .rn-field-hint, .dark-mode .rn-category-count,
.dark-mode .rn-pricing-desc, .dark-mode .rn-pricing-feature { color: var(--color-text-muted); }

/* Links inherit blue accent, unaffected */
.dark-mode a:not(.rn-btn-primary):not(.rn-btn-secondary):not(.rn-btn-emerald):not(.rn-tag):not(.rn-listing-visit-btn) {
  color: #60A5FA;
}
.dark-mode a:hover:not(.rn-btn-primary):not(.rn-btn-secondary):not(.rn-btn-emerald) { color: #93C5FD; }

/* Form fields */
.dark-mode .rn-input,
.dark-mode .rn-select,
.dark-mode .rn-textarea,
.dark-mode [contenteditable] {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-border);
}
.dark-mode .rn-input::placeholder,
.dark-mode .rn-textarea::placeholder { color: var(--color-text-light); }
.dark-mode .rn-label { color: var(--color-text); }
.dark-mode .rn-filter-select { background: var(--color-bg); color: var(--color-text); border-color: var(--color-border); }

/* Buttons — ghost/secondary need explicit dark-safe text */
.dark-mode .rn-btn-ghost { color: var(--color-text); border-color: var(--color-border); }
.dark-mode .rn-btn-ghost:hover { background: var(--color-blue-light); color: #93C5FD; border-color: #3B82F6; }
.dark-mode .rn-btn-icon { background: var(--color-bg); border-color: var(--color-border); color: var(--color-text-muted); }
.dark-mode .rn-page-btn { background: var(--color-bg-card); border-color: var(--color-border); color: var(--color-text); }

/* Tags / badges — keep tinted bg but force readable text */
.dark-mode .rn-tag { background: var(--color-bg); border-color: var(--color-border); color: var(--color-text-muted); }
.dark-mode .rn-tag-blue   { background: var(--color-blue-light);   color: #93C5FD; }
.dark-mode .rn-tag-green  { background: #103024;                   color: #6EE7B7; }
.dark-mode .rn-tag-gold   { background: var(--color-gold-light);   color: #FCD34D; }
.dark-mode .rn-tag-purple { background: var(--color-purple-light); color: #C4B5FD; }
.dark-mode .rn-tag-red    { background: var(--color-red-light);    color: #FCA5A5; }
.dark-mode .rn-badge-free { background: var(--color-bg); border-color: var(--color-border); color: var(--color-text-muted); }

/* Tabs */
.dark-mode .rn-tab { color: var(--color-text-muted); }
.dark-mode .rn-tab.active { color: #60A5FA; border-bottom-color: #60A5FA; }
.dark-mode .rn-tabs { border-bottom-color: var(--color-border); }

/* Breadcrumb */
.dark-mode .rn-breadcrumb, .dark-mode .rn-breadcrumb a { color: var(--color-text-muted); }
.dark-mode .rn-breadcrumb-current { color: var(--color-text); }

/* Alerts — darken backgrounds, lighten text for contrast */
.dark-mode .rn-alert-success { background: #0F2A20; color: #6EE7B7; border-color: #14532D; }
.dark-mode .rn-alert-error   { background: #2D1313; color: #FCA5A5; border-color: #7F1D1D; }
.dark-mode .rn-alert-warning { background: #2D2108; color: #FCD34D; border-color: #78350F; }
.dark-mode .rn-alert-info    { background: #0F1F35; color: #93C5FD; border-color: #1E3A5F; }

/* Footer already dark by design — keep as-is, just ensure body text uses muted token */
.dark-mode .rn-footer-desc, .dark-mode .rn-footer-links a, .dark-mode .rn-footer-copy,
.dark-mode .rn-footer-legal a { color: #64748B; }

/* AdSense placeholder zones */
.dark-mode .rn-ad-zone { background: var(--color-bg); border-color: var(--color-border); color: var(--color-text-light); }

/* Word counters and field errors keep semantic colors but verify on dark bg */
.dark-mode .rn-word-counter { color: var(--color-text-muted); }
.dark-mode .rn-field-error { color: #FCA5A5; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rn-content-with-sidebar { grid-template-columns: 1fr; }
  .rn-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .rn-footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .rn-pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .rn-steps { grid-template-columns: repeat(2, 1fr); }
  .rn-steps::before { display: none; }
}

@media (max-width: 768px) {
  :root { --container-pad: var(--space-4); }
  .rn-nav { display: none; }
  .rn-hamburger { display: flex; }
  .rn-hero { padding: var(--space-12) 0 var(--space-10); }
  .rn-hero-stats { gap: var(--space-8); }
  .rn-listings-grid { grid-template-columns: 1fr; }
  .rn-grid-2, .rn-grid-3, .rn-grid-4 { grid-template-columns: 1fr; }
  .rn-footer-grid { grid-template-columns: 1fr; }
  .rn-filter-bar { flex-direction: column; align-items: flex-start; }
  .rn-footer-bottom { flex-direction: column; text-align: center; }
  .rn-form-row { grid-template-columns: 1fr; }
  .rn-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .rn-sidebar { grid-template-columns: 1fr; }
  .rn-steps { grid-template-columns: 1fr; }
  .rn-hero-ctas { flex-direction: column; align-items: center; }
  .rn-search-box { flex-direction: column; border-radius: var(--radius-lg); }
  .rn-search-select { border-left: none; border-top: 1px solid var(--color-border); }
  .rn-search-btn { width: 100%; justify-content: center; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}

@media (max-width: 480px) {
  .rn-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .rn-stats-bar-inner { gap: var(--space-6); }
  .rn-hero-stats { flex-direction: column; gap: var(--space-4); }
}

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

/* ── WORDPRESS CORE COMPATIBILITY ───────────────────────────── */
.rn-listing-page-title { color: var(--color-navy); }
.alignleft  { float: left; margin-right: var(--space-4); margin-bottom: var(--space-4); }
.alignright { float: right; margin-left: var(--space-4); margin-bottom: var(--space-4); }
.aligncenter { display: block; margin: 0 auto var(--space-4); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; margin-top: var(--space-2); }
.screen-reader-text { position: absolute; left: -9999px; }
.sticky { }
.bypostauthor { }

/* ── LEGAL / POLICY PAGE PROSE ──────────────────────────────── */
.rn-legal-content h2 { font-size: var(--text-xl); font-weight: 700; color: var(--color-navy); margin: var(--space-8) 0 var(--space-3); }
.rn-legal-content h3 { font-size: var(--text-lg); font-weight: 700; color: var(--color-navy); margin: var(--space-6) 0 var(--space-2); }
.rn-legal-content p { margin-bottom: var(--space-4); line-height: 1.75; color: var(--color-text); }
.rn-legal-content ul, .rn-legal-content ol { margin: 0 0 var(--space-4) var(--space-6); line-height: 1.75; }
.rn-legal-content li { margin-bottom: var(--space-2); }
.rn-legal-content a { color: var(--color-blue); text-decoration: underline; }
.rn-legal-content blockquote { border-left: 3px solid var(--color-blue-light); padding-left: var(--space-4); color: var(--color-text-muted); margin: var(--space-4) 0; }

/* ── FAQ ACCORDION ──────────────────────────────────────────── */
.rn-faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.rn-faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); }
.rn-faq-question { width: 100%; text-align: left; background: none; border: none; padding: var(--space-4) var(--space-5); font-size: var(--text-base); font-weight: 600; color: var(--color-navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.rn-faq-toggle-icon { font-size: 20px; color: var(--color-text-muted); transition: transform 0.2s; flex-shrink: 0; }
.rn-faq-item.open .rn-faq-toggle-icon { transform: rotate(45deg); }
.rn-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 var(--space-5); }
.rn-faq-item.open .rn-faq-answer { max-height: 500px; padding-bottom: var(--space-4); }
.rn-faq-answer p { color: var(--color-text-muted); line-height: 1.7; margin: 0; }

/* ── TOGGLE SWITCH (used in dashboard settings, e.g. 2FA) ──────── */
.rn-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.rn-switch input { opacity: 0; width: 0; height: 0; }
.rn-switch-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #CBD5E1; border-radius: 99px; transition: 0.2s; }
.rn-switch-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; border-radius: 50%; transition: 0.2s; }
.rn-switch input:checked + .rn-switch-slider { background-color: var(--color-blue, #3B82F6); }
.rn-switch input:checked + .rn-switch-slider:before { transform: translateX(20px); }

/* ── USER PROFILE PAGE ──────────────────────────────────────── */
.rn-profile-header { display:flex; gap:24px; align-items:flex-start; padding:32px 0; flex-wrap:wrap; }
.rn-profile-avatar-wrap { position:relative; flex-shrink:0; }
.rn-profile-avatar { width:96px; height:96px; border-radius:50%; }
.rn-verified-badge { position:absolute; bottom:2px; right:2px; background:var(--color-blue); color:white; width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:800; border:2px solid white; }
.rn-profile-identity { flex:1; min-width:200px; }
.rn-profile-name { font-size:clamp(1.3rem,3vw,1.8rem); font-weight:800; color:var(--color-navy); margin:0 0 4px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.rn-profile-tagline { color:var(--color-text-muted); font-size:1rem; margin:4px 0 10px; }
.rn-profile-meta-row { display:flex; flex-wrap:wrap; gap:12px; font-size:13px; color:var(--color-text-muted); margin-bottom:12px; }
.rn-profile-social { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.rn-profile-social-link { display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:600; color:var(--color-blue); text-decoration:none; padding:4px 10px; border:1px solid var(--color-blue-light); border-radius:var(--radius-full); transition:background 0.15s; }
.rn-profile-social-link:hover { background:var(--color-blue-light); }
.rn-profile-bio { background:var(--color-bg); border:1px solid var(--color-border); border-radius:var(--radius-lg); padding:20px 24px; margin-top:8px; }
.rn-profile-bio p { margin:0; line-height:1.7; color:var(--color-text); }
.rn-profile-upgrade-hint { display:flex; align-items:center; gap:8px; font-size:12px; background:#FEF9C3; border:1px solid #FDE68A; border-radius:var(--radius-md); padding:8px 12px; margin-top:12px; color:#92400E; }
.rn-profile-upgrade-hint a { font-weight:700; color:#92400E; }

/* ── CARD AUTHOR BYLINE ──────────────────────────────────────── */
.rn-card-author { display:inline-flex; align-items:center; gap:6px; text-decoration:none; color:var(--color-text-muted); font-size:12px; font-weight:600; }
.rn-card-author:hover { color:var(--color-blue); }
.rn-card-author-avatar { width:20px; height:20px; border-radius:50%; flex-shrink:0; }

/* ── CLAP BAR ─────────────────────────────────────────────────── */
.rn-clap-bar { display:flex; align-items:center; gap:16px; padding:24px 0; border-top:1px solid var(--color-border); border-bottom:1px solid var(--color-border); margin:32px 0; flex-wrap:wrap; }
.rn-clap-btn { display:inline-flex; align-items:center; gap:8px; background:none; border:1px solid var(--color-border); border-radius:var(--radius-full); padding:8px 16px; font-size:15px; cursor:pointer; transition:border-color 0.15s,background 0.15s; font-family:var(--font-ui); }
.rn-clap-btn:hover { border-color:var(--color-text); background:var(--color-bg); }
.rn-clap-btn.at-max { opacity:0.5; cursor:default; }
.rn-clap-btn.animating .rn-clap-icon { animation:clap-bounce 0.35s ease; }
@keyframes clap-bounce { 0%,100%{transform:scale(1)} 40%{transform:scale(1.4)} 70%{transform:scale(0.92)} }
.rn-clap-total { font-weight:600; color:var(--color-text); font-size:14px; }
.rn-clap-yours { font-size:12px; color:var(--color-text-muted); }
.rn-clap-divider { flex:1; }
.rn-response-count-link { font-size:14px; color:var(--color-text-muted); text-decoration:none; }
.rn-response-count-link:hover { color:var(--color-text); }

/* ── AUTHOR BLOCK (Medium-style) ─────────────────────────────── */
.rn-author-block { display:flex; gap:16px; align-items:flex-start; padding:28px 0; border-bottom:1px solid var(--color-border); margin-bottom:32px; }
.rn-author-block-avatar { flex-shrink:0; }
.rn-author-avatar-img { width:56px; height:56px; border-radius:50%; }
.rn-author-block-label { font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:var(--color-text-muted); margin:0 0 2px; font-family:var(--font-ui); }
.rn-author-block-name { font-size:15px; font-weight:700; color:var(--color-text); text-decoration:none; font-family:var(--font-ui); }
.rn-author-block-name:hover { color:var(--color-blue); }
.rn-author-block-bio { font-size:13px; color:var(--color-text-muted); margin:4px 0 0; line-height:1.5; font-family:var(--font-ui); }

/* ── RESPONSES / COMMENTS ────────────────────────────────────── */
.rn-responses-section { margin-top:40px; }
.rn-responses-title { font-size:1.1rem; font-weight:700; color:var(--color-text); margin-bottom:24px; font-family:var(--font-display); }
.rn-login-to-respond { margin-bottom:32px; }
.rn-comment-compose { display:flex; gap:12px; align-items:flex-start; margin-bottom:32px; }
.rn-comment-compose-avatar { width:36px; height:36px; border-radius:50%; flex-shrink:0; margin-top:4px; }
.rn-comment-compose-box { flex:1; border:1px solid var(--color-border); border-radius:var(--radius-lg); overflow:hidden; }
.rn-comment-textarea { width:100%; padding:12px 14px; border:none; outline:none; font-family:var(--font-ui); font-size:14px; color:var(--color-text); resize:none; line-height:1.6; box-sizing:border-box; }
.rn-comment-compose-footer { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; border-top:1px solid var(--color-border); background:var(--color-bg); }
.rn-char-count { font-size:12px; color:var(--color-text-muted); font-family:var(--font-ui); }
.rn-comment-list { display:flex; flex-direction:column; gap:0; }
.rn-comment { display:flex; gap:12px; padding:20px 0; border-bottom:1px solid var(--color-border); }
.rn-comment-avatar { flex-shrink:0; }
.rn-comment-avatar-img { width:36px; height:36px; border-radius:50%; }
.rn-comment-body { flex:1; min-width:0; }
.rn-comment-header { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.rn-comment-author { font-weight:700; font-size:13px; color:var(--color-text); text-decoration:none; font-family:var(--font-ui); }
.rn-comment-author:hover { color:var(--color-blue); }
.rn-comment-time { font-size:12px; color:var(--color-text-muted); font-family:var(--font-ui); }
.rn-comment-content { font-size:14px; line-height:1.7; color:var(--color-text); white-space:pre-wrap; word-break:break-word; }
.rn-comment-actions { display:flex; gap:12px; align-items:center; margin-top:10px; }
.rn-comment-clap-btn { display:inline-flex; align-items:center; gap:4px; background:none; border:none; font-size:13px; cursor:pointer; color:var(--color-text-muted); padding:0; font-family:var(--font-ui); transition:color 0.15s; }
.rn-comment-clap-btn:hover { color:var(--color-text); }
.rn-reply-btn { background:none; border:none; font-size:13px; cursor:pointer; color:var(--color-text-muted); font-family:var(--font-ui); padding:0; transition:color 0.15s; }
.rn-reply-btn:hover { color:var(--color-text); }
.rn-replies { padding-left:48px; }
.rn-reply-compose-box { margin:12px 0 0 48px; }
.rn-no-responses { text-align:center; color:var(--color-text-muted); padding:32px 0; font-size:14px; font-family:var(--font-ui); }
.rn-btn-sm { padding:7px 14px; font-size:13px; }

/* ── PAYWALL GATE ─────────────────────────────────────────────── */

/* Gradient fade at bottom of truncated content */
.rn-paywall-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent 0%, var(--color-bg-card) 80%);
  pointer-events: none;
}

/* Main gate container */
.rn-paywall-gate {
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

/* Shared box styles */
.rn-paywall-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .rn-paywall-box { padding: 28px 20px; }
}

.rn-paywall-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue);
  font-family: var(--font-ui);
  margin: 0 0 12px;
}

.rn-paywall-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.rn-paywall-sub {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  font-family: var(--font-ui);
  margin: 0 0 28px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* Signup gate CTAs */
.rn-paywall-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}

.rn-paywall-ctas .rn-btn-primary,
.rn-paywall-ctas .rn-btn-ghost {
  width: 100%;
  max-width: 320px;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
}

/* Perk list (signup gate) */
.rn-paywall-perks {
  list-style: none;
  text-align: left;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.rn-paywall-perks li {
  font-size: 14px;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rn-paywall-perks li::before { display: none; }

/* Upgrade gate - plan cards */
.rn-paywall-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 20px;
}

@media (max-width: 500px) {
  .rn-paywall-plans { grid-template-columns: 1fr; }
}

.rn-paywall-plan {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  position: relative;
  background: var(--color-bg-card);
}

.rn-paywall-plan-featured {
  border-color: var(--color-text);
  border-width: 2px;
}

.rn-paywall-plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.rn-paywall-plan-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  margin-bottom: 8px;
}

.rn-paywall-plan-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text);
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}

.rn-paywall-plan-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0;
  font-family: var(--font-ui);
}

.rn-paywall-plan-perks {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rn-paywall-plan-perks li {
  font-size: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  line-height: 1.4;
}

.rn-paywall-plan-btn {
  display: block;
  text-align: center;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-ui);
  text-decoration: none;
  transition: all 0.15s;
}

.rn-paywall-login-hint {
  font-size: 13px;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  margin: 0;
}

.rn-paywall-login-hint a {
  color: var(--color-blue);
  text-decoration: underline;
}

/* Dark mode adjustments */
.dark-mode .rn-paywall-fade {
  background: linear-gradient(to bottom, transparent 0%, var(--color-bg-card) 80%);
}

.dark-mode .rn-paywall-box {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}

/* ── MEMBER STORY INDICATOR (card) ──────────────────────────── */
.rn-member-indicator {
  display: inline-block;
  font-size: 12px;
  color: var(--color-gold);
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1;
}

/* ── HOMEPAGE UPGRADE NUDGE ──────────────────────────────────── */
.rn-home-upgrade-nudge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 20px;
  background: var(--color-gold-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: #92400e;
  font-family: var(--font-ui);
}
.rn-home-upgrade-nudge a {
  font-weight: 700;
  color: #92400e;
  text-decoration: underline;
}

/* ── SKELETON LOADING CARDS ─────────────────────────────────── */
.rn-skeleton-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: 180px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: rn-skeleton-shimmer 1.4s infinite;
}

@keyframes rn-skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dark-mode .rn-skeleton-card {
  background: linear-gradient(90deg, #1c1b1a 25%, #2a2927 50%, #1c1b1a 75%);
  background-size: 200% 100%;
  animation: rn-skeleton-shimmer 1.4s infinite;
  border-color: var(--color-border);
}

/* ── TRENDING LIST (homepage) ───────────────────────────────── */
.rn-trending-list { display: flex; flex-direction: column; }
.rn-trending-item {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--color-border);
  text-decoration: none; color: inherit;
}
.rn-trending-item:last-child { border-bottom: none; }
.rn-trending-rank {
  font-size: 28px; font-weight: 800; color: var(--color-border-dark);
  font-family: var(--font-display); flex-shrink: 0; width: 40px;
  letter-spacing: -0.02em;
}
.rn-trending-body { flex: 1; min-width: 0; }
.rn-trending-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rn-trending-cat { font-size: 11px; font-weight: 600; color: var(--color-text-muted); font-family: var(--font-ui); }
.rn-trending-type {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-blue); background: var(--color-blue-light);
  padding: 2px 8px; border-radius: 99px; font-family: var(--font-ui);
}
.rn-trending-title {
  font-size: 16px; font-weight: 700; color: var(--color-text);
  font-family: var(--font-display); margin-bottom: 6px; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.rn-trending-stats { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--color-text-muted); font-family: var(--font-ui); }
.rn-trending-thumb { width: 88px; height: 64px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; }
.rn-trending-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 560px) {
  .rn-trending-item { gap: 12px; }
  .rn-trending-rank { font-size: 20px; width: 28px; }
  .rn-trending-thumb { display: none; }
}

/* ── STATISTICS SECTION ──────────────────────────────────────── */
.rn-section-stats { background: var(--color-text); padding: 56px 0; }
.rn-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.rn-stat-item { display: flex; flex-direction: column; gap: 6px; }
.rn-stat-num {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: white;
  font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1;
}
.rn-stat-lbl { font-size: 13px; color: rgba(255,255,255,0.6); font-family: var(--font-ui); }

@media (max-width: 640px) {
  .rn-stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}

/* ── NEWSLETTER SECTION ──────────────────────────────────────── */
.rn-newsletter-section { background: var(--color-bg); padding: 64px 0; border-top: 1px solid var(--color-border); }
.rn-newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; max-width: 880px; margin: 0 auto; flex-wrap: wrap;
}
.rn-newsletter-text { flex: 1; min-width: 240px; }
.rn-newsletter-title {
  font-size: 1.5rem; font-weight: 700; color: var(--color-text);
  font-family: var(--font-display); margin-bottom: 6px; letter-spacing: -0.02em;
}
.rn-newsletter-sub { font-size: 14px; color: var(--color-text-muted); font-family: var(--font-ui); margin: 0; max-width: 380px; }
.rn-newsletter-form-wrap { flex: 1; min-width: 280px; max-width: 420px; }
.rn-newsletter-form { display: flex; gap: 8px; }
.rn-newsletter-input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md); font-size: 14px; font-family: var(--font-ui);
  outline: none; transition: border-color 0.15s;
}
.rn-newsletter-input:focus { border-color: var(--color-text); }
.rn-newsletter-hint { font-size: 11px; color: var(--color-text-light); margin-top: 6px; font-family: var(--font-ui); }

@media (max-width: 640px) {
  .rn-newsletter-inner { flex-direction: column; align-items: flex-start; }
  .rn-newsletter-form { flex-direction: column; }
}

/* ── PLACEHOLDER CARD (homepage empty states) ───────────────── */
.rn-listing-card-placeholder {
  border-style: dashed;
  border-color: var(--color-border-dark);
  background: var(--color-bg);
}
.rn-listing-card-placeholder:hover { box-shadow: none; }

/* ── CATEGORY SUGGESTION CHIP ───────────────────────────────── */
.rn-suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-gold-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: #92400e;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: background 0.15s;
}
.rn-suggestion-chip:hover { background: #fef3c7; }
