/* ============================================================
   రహస్య లోకం — Rahasyalokam Frontend Design System
   Dark theme = gold accent | Light theme = crimson accent
   No inline styles anywhere; everything driven from here.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+Tammudu+2:wght@400;500;600;700;800&family=Noto+Sans+Telugu:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --font-display: 'Noto Sans Telugu', 'Baloo Tammudu 2', sans-serif;
  --font-body: 'Noto Sans Telugu', 'Poppins', sans-serif;
  --font-latin: 'Poppins', 'Noto Sans Telugu', sans-serif;

  --gold: #f5a623;
  --gold-2: #ffc247;
  --gold-soft: rgba(245, 166, 35, 0.14);
  --crimson: #e11d48;
  --crimson-2: #f43f6a;
  --crimson-soft: rgba(225, 29, 72, 0.10);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.18);
  --shadow: 0 10px 30px rgba(0,0,0,.28);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.4);
  --maxw: 1500px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* Dark theme (default) — gold accent */
:root, [data-theme="dark"] {
  --bg: #090c12;
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, #16202f 0%, #090c12 55%), #090c12;
  --surface: #131822;
  --surface-2: #1a2130;
  --surface-3: #212a3b;
  --border: rgba(255,255,255,.07);
  --border-strong: rgba(255,255,255,.13);
  --text: #eceef2;
  --text-muted: #97a0af;
  --text-dim: #667085;
  --accent: var(--gold);
  --accent-2: var(--gold-2);
  --accent-soft: var(--gold-soft);
  --accent-contrast: #1a1200;
  --card-hover: #1c2432;
  --input-bg: #0f141d;
  --skeleton: #1a2130;
}

/* Light theme — crimson accent */
[data-theme="light"] {
  --bg: #f4f5f8;
  --bg-grad: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --surface-3: #f2f3f6;
  --border: rgba(20,23,33,.08);
  --border-strong: rgba(20,23,33,.14);
  --text: #1b2130;
  --text-muted: #5b6472;
  --text-dim: #8a93a3;
  --accent: var(--crimson);
  --accent-2: var(--crimson-2);
  --accent-soft: var(--crimson-soft);
  --accent-contrast: #ffffff;
  --card-hover: #fafafc;
  --input-bg: #ffffff;
  --skeleton: #eceef2;
  --shadow-sm: 0 2px 8px rgba(20,23,33,.06);
  --shadow: 0 10px 30px rgba(20,23,33,.08);
  --shadow-lg: 0 24px 60px rgba(20,23,33,.12);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 15px;
  transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ---------- Layout ---------- */
.rl-container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.rl-row { display: flex; flex-wrap: wrap; }
.rl-main-grid { display: grid; grid-template-columns: 280px minmax(0,1fr) 320px; gap: 24px; align-items: start; }
.rl-two-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 24px; align-items: start; }
.rl-section { padding: 28px 0; }
.rl-sticky { position: sticky; top: 96px; }

.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.hidden { display: none !important; }

/* ---------- Top header ---------- */
.rl-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(9,12,18,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .rl-header { background: rgba(255,255,255,.88); }
.rl-header-inner { display: flex; align-items: center; gap: 22px; height: 76px; }
.rl-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.rl-brand-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--accent-soft), 0 0 20px rgba(245,166,35,.25); }
.rl-brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.rl-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 26px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: .3px; }
[data-theme="light"] .rl-brand-name { background: linear-gradient(90deg, var(--crimson-2), var(--crimson));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rl-brand-sub { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.rl-search { flex: 0 1 620px; max-width: 620px; margin: 0 auto; position: relative; }
.rl-search input {
  width: 100%; height: 48px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--input-bg); padding: 0 52px 0 22px; color: var(--text); outline: none;
  transition: border var(--transition), box-shadow var(--transition);
}
.rl-search input::placeholder { color: var(--text-dim); }
.rl-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rl-search .rl-search-btn { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px;
  border-radius: 50%; display: grid; place-items: center; color: var(--text-muted); }
.rl-search .rl-search-btn:hover { color: var(--accent); }

.rl-header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.rl-socials { display: flex; gap: 12px; }
.rl-socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 15px; transition: transform var(--transition); }
.rl-socials a:hover { transform: translateY(-3px); }
.rl-soc-yt { background: #ff0000; } .rl-soc-fb { background: #1877f2; }
.rl-soc-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.rl-soc-tg { background: #2aabee; }

.rl-icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-muted); position: relative; transition: var(--transition); }
.rl-icon-btn:hover { color: var(--accent); background: var(--surface-2); }
.rl-badge-dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--crimson); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px;
  display: grid; place-items: center; }

/* Nav bar */
.rl-nav { border-bottom: 1px solid var(--border); background: rgba(9,12,18,.5); }
[data-theme="light"] .rl-nav { background: rgba(255,255,255,.5); }
.rl-nav-inner { display: flex; align-items: center; gap: 8px; height: 58px; overflow-x: auto;
  scrollbar-width: none; }
.rl-nav-inner::-webkit-scrollbar { display: none; }
.rl-nav a { padding: 8px 18px; border-radius: 999px; color: var(--text-muted); font-weight: 500;
  white-space: nowrap; display: flex; align-items: center; gap: 7px; transition: var(--transition);
  position: relative; }
.rl-nav a:hover { color: var(--text); }
.rl-nav a.active { color: var(--accent); }
.rl-nav a.active::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: -1px;
  height: 3px; border-radius: 3px; background: var(--accent); }

/* Login button */
.rl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-family: var(--font-body);
  transition: var(--transition); border: 1px solid transparent; white-space: nowrap; }
.rl-btn-primary { background: linear-gradient(90deg, var(--gold-2), var(--gold)); color: #1a1200; }
[data-theme="light"] .rl-btn-primary { background: linear-gradient(90deg, var(--crimson-2), var(--crimson)); color: #fff; }
.rl-btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: var(--shadow); }
.rl-btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.rl-btn-outline:hover { background: var(--accent-soft); }
.rl-btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.rl-btn-ghost:hover { background: var(--surface-3); }
.rl-btn-block { width: 100%; }
.rl-btn-sm { padding: 8px 16px; font-size: 13px; }
.rl-btn-lg { padding: 15px 30px; font-size: 16px; }

/* User avatar chip in header */
.rl-user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  transition: var(--transition); }
.rl-user-chip:hover { border-color: var(--border-strong); }
.rl-user-chip img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.rl-user-chip .name { font-weight: 600; font-size: 14px; }

/* ---------- Cards ---------- */
.rl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; }
.rl-card-pad { padding: 22px; }

.rl-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 22px; }
.rl-widget-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 9px; color: var(--text); }
.rl-widget-title .ic { color: var(--accent); }
.rl-widget-link { color: var(--accent); font-size: 13px; font-weight: 600; }

/* Section header */
.rl-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.rl-sec-head h2 { font-size: 24px; font-family: var(--font-display); font-weight: 700; }
.rl-sec-head .rl-widget-link { font-size: 14px; }

/* Category list widget */
.rl-catlist a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  color: var(--text-muted); font-weight: 500; transition: var(--transition); }
.rl-catlist a:hover, .rl-catlist a.active { background: var(--accent-soft); color: var(--accent); }
.rl-catlist a .ic { width: 22px; text-align: center; color: var(--accent); font-size: 17px; }
.rl-catlist a .arw { margin-left: auto; color: var(--text-dim); font-size: 12px; }
.rl-catlist a .cnt { margin-left: auto; font-size: 13px; color: var(--text-dim); font-weight: 600; }

/* Post card (grid) */
.rl-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rl-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rl-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.rl-post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.rl-post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.rl-post-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.rl-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rl-post-card:hover .rl-post-thumb img { transform: scale(1.07); }
.rl-post-cat { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.rl-post-cat.c-purple { background: rgba(124,58,237,.85); }
.rl-post-cat.c-teal { background: rgba(13,148,136,.85); }
.rl-post-cat.c-gold { background: rgba(245,166,35,.9); color: #1a1200; }
.rl-post-cat.c-rose { background: rgba(225,29,72,.85); }
.rl-post-body { padding: 15px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.rl-post-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.35;
  margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rl-post-card:hover .rl-post-title { color: var(--accent); }
.rl-post-excerpt { font-size: 13.5px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.rl-post-meta { display: flex; align-items: center; gap: 14px; margin-top: auto; font-size: 12.5px;
  color: var(--text-dim); }
.rl-post-meta span { display: flex; align-items: center; gap: 5px; }

/* Play button overlay */
.rl-play { position: absolute; inset: 0; display: grid; place-items: center; }
.rl-play span { width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px); display: grid; place-items: center; color: #fff; font-size: 18px;
  border: 2px solid rgba(255,255,255,.7); transition: var(--transition); }
.rl-post-card:hover .rl-play span { background: var(--accent); color: var(--accent-contrast); transform: scale(1.1); }
.rl-duration { position: absolute; bottom: 10px; right: 10px; padding: 3px 9px; border-radius: 6px;
  background: rgba(0,0,0,.78); color: #fff; font-size: 12px; font-weight: 600; }

/* Trending list item (sidebar) */
.rl-trend-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rl-trend-item:last-child { border-bottom: 0; }
.rl-trend-item img { width: 74px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.rl-trend-item .t { font-size: 13.5px; font-weight: 500; line-height: 1.4; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rl-trend-item .m { font-size: 12px; color: var(--text-dim); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.rl-trend-item:hover .t { color: var(--accent); }
.rl-trend-play { position: relative; flex-shrink: 0; }
.rl-trend-play::after { content: '\f04b'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px;
  background: rgba(0,0,0,.35); border-radius: 10px; }

/* Rank badges */
.rl-rank { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; background: var(--surface-3); color: var(--text-muted); flex-shrink: 0; }
.rl-rank.r1 { background: linear-gradient(135deg,#f5a623,#ffcf5c); color: #1a1200; }
.rl-rank.r2 { background: linear-gradient(135deg,#8895a7,#c3ccd8); color: #1a1200; }
.rl-rank.r3 { background: linear-gradient(135deg,#cd7f32,#e6a765); color: #1a1200; }

/* ---------- Hero carousel ---------- */
.rl-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/8.4;
  min-height: 380px; }
.rl-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.rl-hero-slide.active { opacity: 1; }
.rl-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.rl-hero-slide::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,7,11,.92) 0%, rgba(5,7,11,.6) 40%, rgba(5,7,11,.1) 70%); }
.rl-hero-content { position: absolute; left: 44px; top: 50%; transform: translateY(-50%); z-index: 2;
  max-width: 55%; }
.rl-hero-content h1 { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: #fff; margin-bottom: 4px; }
.rl-hero-content .big { font-size: 52px; font-weight: 800; line-height: 1.05; color: var(--gold);
  margin-bottom: 12px; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.rl-hero-content .sub { font-size: 20px; color: #e6e8ec; margin-bottom: 22px; font-family: var(--font-display); }
.rl-hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); display: grid; place-items: center;
  color: #fff; border: 1px solid rgba(255,255,255,.15); transition: var(--transition); }
.rl-hero-nav:hover { background: var(--accent); color: var(--accent-contrast); }
.rl-hero-nav.prev { left: 16px; } .rl-hero-nav.next { right: 16px; }
.rl-hero-dots { position: absolute; bottom: 20px; left: 44px; z-index: 3; display: flex; gap: 8px; }
.rl-hero-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer;
  transition: var(--transition); }
.rl-hero-dots span.active { background: var(--gold); width: 26px; border-radius: 5px; }

/* ---------- Social follow widget ---------- */
.rl-follow a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px;
  margin-bottom: 10px; color: #fff; font-weight: 600; transition: var(--transition); }
.rl-follow a:hover { transform: translateX(4px); }
.rl-follow .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 18px;
  background: rgba(255,255,255,.16); }
.rl-follow .num { font-size: 17px; font-weight: 800; }
.rl-follow .lbl { font-size: 12px; opacity: .85; }
.rl-follow .meta { margin-left: auto; text-align: right; }

/* ---------- Newsletter ---------- */
.rl-newsletter input { width: 100%; height: 46px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--input-bg); padding: 0 16px; margin-bottom: 12px; outline: none; }
.rl-newsletter input:focus { border-color: var(--accent); }

/* Promo/CTA sidebar card */
.rl-cta-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; padding: 22px;
  background: linear-gradient(160deg, rgba(245,166,35,.14), rgba(245,166,35,.02)); border: 1px solid var(--accent-soft);
  text-align: center; }
.rl-cta-card h4 { font-size: 16px; margin-bottom: 10px; }
.rl-cta-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* ---------- Footer ---------- */
.rl-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 26px 0; }
.rl-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rl-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.rl-footer-links a { color: var(--text-muted); font-size: 14px; }
.rl-footer-links a:hover { color: var(--accent); }
.rl-footer-copy { color: var(--text-dim); font-size: 14px; }

/* ---------- Pills / stat chips ---------- */
.rl-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.rl-pill { padding: 9px 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); font-weight: 500; font-size: 14px; cursor: pointer; transition: var(--transition); }
.rl-pill.active { background: linear-gradient(90deg,var(--gold-2),var(--gold)); color: #1a1200; border-color: transparent; }
[data-theme="light"] .rl-pill.active { background: linear-gradient(90deg,var(--crimson-2),var(--crimson)); color: #fff; }
.rl-pill:hover:not(.active) { color: var(--text); border-color: var(--border-strong); }

.rl-tag { padding: 6px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted); transition: var(--transition); }
.rl-tag:hover { color: var(--accent); border-color: var(--accent); }

/* Chip stat mini (category stats) */
.rl-stat-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid var(--border); }
.rl-stat-row:last-child { border-bottom: 0; }
.rl-stat-row .l { display: flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: 14px; }
.rl-stat-row .l .ic { color: var(--accent); }
.rl-stat-row .v { font-weight: 700; }

/* Utility spacing */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
.gap-1{gap:8px}.gap-2{gap:16px}.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}
.flex-col{flex-direction:column}.flex-1{flex:1}.text-center{text-align:center}.w-full{width:100%}.flex-wrap{flex-wrap:wrap}

/* ============================================================
   USER PANEL (dashboard, profile, settings, ...)
   ============================================================ */
.rl-panel { display: grid; grid-template-columns: 264px minmax(0,1fr); gap: 24px; align-items: start;
  padding: 24px 0 40px; }
.rl-panel-wide { grid-template-columns: 264px minmax(0,1fr) 320px; }

/* Panel sidebar */
.rl-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px; position: sticky; top: 96px; }
.rl-side-head { display: flex; align-items: center; gap: 9px; padding: 8px 10px 14px; color: var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.rl-side-nav a { display: flex; align-items: center; gap: 13px; padding: 12px 13px; border-radius: 12px;
  color: var(--text-muted); font-weight: 500; transition: var(--transition); margin-bottom: 3px; position: relative; }
.rl-side-nav a .ic { width: 22px; text-align: center; font-size: 16px; }
.rl-side-nav a .arw { margin-left: auto; font-size: 11px; opacity: .5; }
.rl-side-nav a:hover { background: var(--surface-2); color: var(--text); }
.rl-side-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rl-side-nav a.active::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px;
  border-radius: 3px; background: var(--accent); }
.rl-side-nav a .pill { margin-left: auto; background: var(--crimson); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; }
.rl-side-nav a.active .arw { opacity: 1; }

/* Panel promo card */
.rl-side-cta { margin-top: 16px; border-radius: var(--radius); overflow: hidden; text-align: center; padding: 18px;
  position: relative; }
.rl-side-cta.gold { background: linear-gradient(160deg, rgba(245,166,35,.16), rgba(245,166,35,.03)); border: 1px solid var(--accent-soft); }
.rl-side-cta h5 { font-size: 15px; margin-bottom: 12px; }
.rl-side-cta ul { text-align: left; margin-bottom: 14px; }
.rl-side-cta ul li { font-size: 12.5px; color: var(--text-muted); padding: 4px 0; display: flex; gap: 8px; align-items: center; }
.rl-side-cta ul li i { color: #22c55e; }

/* Panel page header */
.rl-page-head { margin-bottom: 22px; }
.rl-page-head h1 { font-size: 27px; font-family: var(--font-display); display: flex; align-items: center; gap: 11px; }
.rl-page-head h1 .ic { color: var(--accent); }
.rl-page-head .sub { color: var(--text-muted); margin-top: 4px; }
.rl-breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--text-dim); font-size: 13px; margin-bottom: 6px; }
.rl-breadcrumb a:hover { color: var(--accent); }

/* Welcome banner (dashboard) */
.rl-welcome h1 { font-size: 26px; }
.rl-welcome .sub { color: var(--text-muted); margin-top: 4px; }

/* Stat cards */
.rl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.rl-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 15px; transition: var(--transition); }
.rl-stat:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.rl-stat .ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.rl-stat .ic.i-gold { background: var(--gold-soft); color: var(--gold); }
.rl-stat .ic.i-green { background: rgba(34,197,94,.14); color: #22c55e; }
.rl-stat .ic.i-purple { background: rgba(139,92,246,.14); color: #8b5cf6; }
.rl-stat .ic.i-blue { background: rgba(59,130,246,.14); color: #3b82f6; }
.rl-stat .ic.i-rose { background: rgba(225,29,72,.14); color: var(--crimson); }
.rl-stat .ic.i-amber { background: rgba(245,158,11,.14); color: #f59e0b; }
.rl-stat .lbl { color: var(--text-muted); font-size: 13.5px; }
.rl-stat .val { font-size: 28px; font-weight: 800; font-family: var(--font-display); line-height: 1.1; }

/* Profile card (right rail) */
.rl-profile-card { text-align: center; }
.rl-profile-card .ava { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px;
  border: 3px solid var(--accent); }
.rl-profile-card .nm { font-size: 20px; font-family: var(--font-display); font-weight: 700; }
.rl-profile-card .em { color: var(--text-muted); font-size: 13.5px; margin-top: 3px; }
.rl-profile-card .meta { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; text-align: left; }
.rl-profile-card .meta div { display: flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: 14px; }
.rl-profile-card .meta .ic { color: var(--accent); width: 18px; }
.rl-badge-role { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 12px; font-weight: 600; margin-top: 8px; }

/* Progress bar */
.rl-progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.rl-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,var(--gold-2),var(--gold)); }

/* Media rows (recent viewed, saved) */
.rl-media-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.rl-media-item { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border);
  transition: var(--transition); }
.rl-media-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rl-media-thumb { position: relative; aspect-ratio: 16/10; }
.rl-media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rl-media-item .b { padding: 11px 13px; }
.rl-media-item .b .t { font-size: 14px; font-weight: 600; font-family: var(--font-display); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rl-media-item .b .m { display: flex; justify-content: space-between; color: var(--text-dim); font-size: 12px; margin-top: 7px; }
.rl-bookmark-flag { position: absolute; top: 8px; right: 10px; color: var(--gold); font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }

/* List item rows (saved posts / comments / history) */
.rl-list-item { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 14px; transition: var(--transition); }
.rl-list-item:hover { border-color: var(--border-strong); }
.rl-list-thumb { width: 130px; aspect-ratio: 16/10; border-radius: 11px; overflow: hidden; flex-shrink: 0; position: relative; }
.rl-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rl-list-body { flex: 1; min-width: 0; }
.rl-list-body .t { font-size: 16px; font-weight: 600; font-family: var(--font-display); margin: 6px 0; }
.rl-list-body .d { color: var(--text-muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.rl-list-meta { display: flex; gap: 16px; margin-top: 10px; color: var(--text-dim); font-size: 13px; align-items: center; }
.rl-list-meta span { display: flex; gap: 6px; align-items: center; }

/* Status chips */
.rl-chip { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.rl-chip-green { background: rgba(34,197,94,.14); color: #16a34a; }
.rl-chip-amber { background: rgba(245,158,11,.15); color: #d97706; }
.rl-chip-red { background: rgba(239,68,68,.14); color: #dc2626; }
.rl-chip-blue { background: rgba(59,130,246,.14); color: #2563eb; }
.rl-chip-gray { background: var(--surface-3); color: var(--text-muted); }
.rl-chip-purple { background: rgba(139,92,246,.14); color: #7c3aed; }

/* ---------- Forms ---------- */
.rl-field { margin-bottom: 18px; }
.rl-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.rl-field label .req { color: var(--crimson); }
.rl-input, .rl-select, .rl-textarea { width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--input-bg); padding: 13px 16px; color: var(--text); outline: none; transition: var(--transition); }
.rl-textarea { min-height: 110px; resize: vertical; }
.rl-input::placeholder, .rl-textarea::placeholder { color: var(--text-dim); }
.rl-input:focus, .rl-select:focus, .rl-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rl-input-icon { position: relative; }
.rl-input-icon .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }
.rl-input-icon .toggle { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-dim); cursor: pointer; }
.rl-input-icon input { padding-left: 44px; }
.rl-grid-2f { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rl-check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.rl-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.rl-hint { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }

/* Tabs */
.rl-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.rl-tabs a, .rl-tabs button { padding: 12px 18px; color: var(--text-muted); font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: var(--transition); }
.rl-tabs a.active, .rl-tabs button.active { color: var(--accent); border-color: var(--accent); }

/* Pagination */
.rl-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 26px; align-items: center; }
.rl-pagination a, .rl-pagination span { min-width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-muted); font-weight: 600; padding: 0 8px; transition: var(--transition); }
.rl-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.rl-pagination .active span, .rl-pagination span.active { background: var(--accent); color: var(--accent-contrast); border-color: transparent; }
.rl-pagination .disabled span { opacity: .4; }

/* Data table */
.rl-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.rl-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.rl-table th { text-align: left; padding: 15px 18px; font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.rl-table td { padding: 15px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rl-table tr:last-child td { border-bottom: 0; }
.rl-table tr:hover td { background: var(--card-hover); }

/* Empty state */
.rl-empty { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.rl-empty .ic { font-size: 46px; color: var(--text-dim); margin-bottom: 14px; }

/* Badges grid (profile) */
.rl-badges { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; text-align: center; }
.rl-badge-item .hex { width: 62px; height: 62px; margin: 0 auto 8px; border-radius: 18px; display: grid; place-items: center;
  font-size: 24px; }
.rl-badge-item .nm { font-size: 13px; font-weight: 600; }
.rl-badge-item .ds { font-size: 11px; color: var(--text-dim); }

/* ============================================================
   ARTICLE DETAIL
   ============================================================ */
.rl-article-title { font-size: 34px; font-family: var(--font-display); font-weight: 700; line-height: 1.25; margin-bottom: 16px; }
.rl-article-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--text-muted); font-size: 14px;
  padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.rl-article-meta span { display: flex; align-items: center; gap: 7px; }
.rl-article-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.rl-article-hero img { width: 100%; }
.rl-article-body { font-size: 16.5px; line-height: 1.9; color: var(--text); }
.rl-article-body h2 { font-size: 24px; color: var(--accent); margin: 30px 0 14px; }
.rl-article-body h3 { font-size: 20px; margin: 24px 0 12px; }
.rl-article-body p { margin-bottom: 18px; }
.rl-article-body ul { margin: 0 0 18px 4px; }
.rl-article-body ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.rl-article-body ul li::before { content: '\f111'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--accent);
  font-size: 7px; position: absolute; left: 4px; top: 10px; }
.rl-article-body img { border-radius: var(--radius); margin: 18px 0; }
.rl-share { display: flex; align-items: center; gap: 10px; }
.rl-share a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.rl-toc { counter-reset: toc; }
.rl-toc a { display: flex; gap: 12px; padding: 9px 0; color: var(--text-muted); font-size: 14px; border-bottom: 1px solid var(--border); }
.rl-toc a:last-child { border-bottom: 0; }
.rl-toc a::before { counter-increment: toc; content: counter(toc); width: 24px; height: 24px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.rl-toc a:hover { color: var(--accent); }

/* Comment block */
.rl-comment { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.rl-comment img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rl-comment .nm { font-weight: 600; }
.rl-comment .tm { color: var(--text-dim); font-size: 12.5px; }
.rl-comment .bd { margin: 6px 0; color: var(--text); }
.rl-comment .act { display: flex; gap: 16px; color: var(--text-dim); font-size: 13px; }
.rl-comment .act button:hover { color: var(--accent); }

/* Category hero */
.rl-cat-hero { border-radius: var(--radius-lg); overflow: hidden; position: relative; padding: 34px; margin-bottom: 22px;
  min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.rl-cat-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.rl-cat-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,11,.9), rgba(5,7,11,.35)); z-index: 1; }
.rl-cat-hero > * { position: relative; z-index: 2; }
.rl-cat-hero .ttl { font-size: 34px; font-family: var(--font-display); font-weight: 700; color: #fff; display: flex; align-items: center; gap: 14px; }
.rl-cat-hero .ttl .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: var(--accent-contrast);
  display: grid; place-items: center; font-size: 24px; }
.rl-cat-hero .ds { color: #dfe2e7; max-width: 640px; margin-top: 10px; }
.rl-cat-hero .st { display: flex; gap: 24px; margin-top: 16px; color: #fff; }
.rl-cat-hero .st span { display: flex; align-items: center; gap: 7px; font-size: 14px; }

/* Category grid card (all categories) */
.rl-catcard { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4/3.4; display: flex;
  flex-direction: column; justify-content: flex-end; padding: 20px; transition: var(--transition); }
.rl-catcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s; }
.rl-catcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,7,11,.95) 10%, rgba(5,7,11,.3) 70%); z-index: 1; }
.rl-catcard > * { position: relative; z-index: 2; }
.rl-catcard:hover { transform: translateY(-5px); }
.rl-catcard:hover img { transform: scale(1.08); }
.rl-catcard .cic { width: 48px; height: 48px; border-radius: 13px; background: var(--accent); color: var(--accent-contrast);
  display: grid; place-items: center; font-size: 20px; margin-bottom: auto; }
.rl-catcard .cttl { font-size: 20px; font-family: var(--font-display); font-weight: 700; color: #fff; margin-top: 14px; }
.rl-catcard .cds { color: #cbd0d8; font-size: 13px; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rl-catcard .cst { color: #9aa2b0; font-size: 12.5px; margin-top: 10px; }

/* Big count badge */
.rl-countbadge { display: inline-flex; flex-direction: column; align-items: center; padding: 16px 26px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold-soft), transparent); border: 1px solid var(--accent-soft); }
.rl-countbadge .n { font-size: 30px; font-weight: 800; color: var(--accent); font-family: var(--font-display); }
.rl-countbadge .l { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   AUTH (login / register)  — split screen
   ============================================================ */
.rl-auth { min-height: calc(100vh - 135px); display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.rl-auth-visual { position: relative; border-radius: var(--radius-xl); overflow: hidden; padding: 44px; display: flex;
  flex-direction: column; justify-content: center; }
.rl-auth-visual img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.rl-auth-visual::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(12,8,3,.82) 0%, rgba(5,7,11,.62) 55%, rgba(8,6,3,.86) 100%); z-index: 1; }
.rl-auth-visual > * { position: relative; z-index: 2; }
.rl-auth-visual h2 { font-size: 40px; color: #fff; font-family: var(--font-display); }
.rl-auth-visual h2 span { color: var(--gold); display: block; }
.rl-auth-visual p { color: #d7dbe1; max-width: 460px; margin-top: 14px; }
/* shared (register): vertical feature list with circular gold-outline icons + descriptions */
.rl-auth-features { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.rl-auth-features .f { display: flex; gap: 14px; align-items: center; }
.rl-auth-features .f .ic { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold);
  background: rgba(245,166,35,.08); color: var(--gold); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.rl-auth-features .f .t { color: #fff; font-weight: 600; }
.rl-auth-features .f .d { color: #b9bfc8; font-size: 13px; }
.rl-auth-quote { margin-top: 26px; padding: 18px 20px; border-radius: var(--radius); background: rgba(0,0,0,.35);
  border-left: 3px solid var(--gold); color: #e2e5ea; font-style: italic; }

/* login: full-width shared background image behind BOTH columns, translucent floating form */
.auth-fullbg { position: relative; overflow: hidden; border-radius: var(--radius-xl); }
.auth-fullbg .rl-auth-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.auth-fullbg .rl-auth-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,6,3,.86) 0%, rgba(6,8,12,.5) 45%, rgba(6,8,12,.72) 100%); }
.auth-fullbg .rl-auth-visual { position: relative; z-index: 2; background: none; border-radius: 0; overflow: visible; }
.auth-fullbg .rl-auth-visual::after { display: none; }
.auth-fullbg .rl-auth-form { position: relative; z-index: 2; }
.auth-fullbg .rl-auth-box { background: rgba(16,20,29,.72); backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,.09); }

/* login-only visual: quote mark + ornament + horizontal features w/ circular outline icons */
.login-visual .rl-auth-visual-inner { max-width: 640px; }
.login-visual .rl-auth-quotemark { font-family: Georgia, 'Times New Roman', serif; font-size: 90px; line-height: .5;
  height: 44px; color: var(--gold); opacity: .85; }
.login-visual .rl-auth-quote { margin: 0; padding: 0; border: 0; background: none; font-style: normal; color: #f0f2f5;
  font-size: 27px; font-family: var(--font-display); font-weight: 500; line-height: 1.5; }
/* ornamental divider — shared by login + register left visuals */
.rl-auth-ornament { display: flex; align-items: center; gap: 14px; margin: 28px 0; color: var(--gold); max-width: 560px; }
.rl-auth-ornament::before, .rl-auth-ornament::after { content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,.7), transparent); }
.rl-auth-ornament i { font-size: 12px; }
.login-visual .rl-auth-features { margin-top: 8px; display: flex; flex-direction: row; gap: 20px; }
.login-visual .rl-auth-features .f { flex: 1; display: flex; gap: 12px; align-items: center; }
.login-visual .rl-auth-features .f .ic { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold);
  background: rgba(245,166,35,.08); color: var(--gold); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.login-visual .rl-auth-features .f .t { color: #fff; font-weight: 600; font-size: 14px; line-height: 1.3; }

.rl-auth-form { display: flex; align-items: center; justify-content: center; padding: 40px; }
.rl-auth-box { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-lg); }
.rl-auth-box .logo-ring { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(245,166,35,.25), transparent 70%); }
.rl-auth-box .logo-ring img { width: 64px; height: 64px; border-radius: 50%; }
.rl-auth-box h3 { text-align: center; font-size: 30px; font-family: var(--font-display); }
.rl-auth-box .lead { text-align: center; color: var(--text-muted); margin-bottom: 26px; margin-top: 4px; }
.rl-auth-divider { text-align: center; color: var(--text-muted); margin: 22px 0; position: relative; font-size: 14px; }
.rl-auth-divider::before, .rl-auth-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; }
.rl-auth-divider::before { left: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.22)); }
.rl-auth-divider::after { right: 0; background: linear-gradient(90deg, rgba(255,255,255,.22), transparent); }
[data-theme="light"] .rl-auth-divider::before { background: linear-gradient(90deg, transparent, rgba(20,23,33,.18)); }
[data-theme="light"] .rl-auth-divider::after { background: linear-gradient(90deg, rgba(20,23,33,.18), transparent); }
.rl-social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px;
  border-radius: 12px; font-weight: 600; margin-bottom: 12px; transition: var(--transition); border: 1px solid var(--border); }
.rl-social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.rl-social-google { background: #fff; color: #202124; }
.rl-social-fb { background: #1877f2; color: #fff; }
.rl-social-apple { background: #000; color: #fff; }
.rl-auth-alt { text-align: center; margin-top: 18px; color: var(--text-muted); }
.rl-auth-alt a { color: var(--accent); font-weight: 600; }
.rl-auth-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--border); margin-top: 20px; }
.rl-auth-stats .s { display: flex; align-items: center; gap: 12px; }
.rl-auth-stats .s .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 18px; }
.rl-auth-stats .s .n { font-size: 22px; font-weight: 800; font-family: var(--font-display); }
.rl-auth-stats .s .l { font-size: 12.5px; color: var(--text-muted); }
.rl-strength { height: 5px; border-radius: 999px; background: var(--surface-3); margin-top: 8px; display: flex; gap: 4px; overflow: hidden; }
.rl-strength i { flex: 1; background: var(--surface-3); border-radius: 999px; transition: var(--transition); }
.rl-strength.s1 i:nth-child(1){background:#ef4444} .rl-strength.s2 i:nth-child(-n+2){background:#f59e0b}
.rl-strength.s3 i:nth-child(-n+3){background:#eab308} .rl-strength.s4 i{background:#22c55e}

/* ---------- Dropdown ---------- */
.rl-dropdown { position: relative; }
.rl-dropdown-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition); }
.rl-dropdown.open .rl-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.rl-dropdown-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px; color: var(--text-muted); font-weight: 500; }
.rl-dropdown-menu a:hover { background: var(--surface-2); color: var(--accent); }
.rl-dropdown-menu a .ic { width: 18px; text-align: center; }
.rl-dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* Theme toggle */
.rl-theme-toggle { cursor: pointer; }

/* ---------- Mobile bottom nav ---------- */
.rl-mobile-nav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  background: rgba(9,12,18,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--border);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; }
[data-theme="light"] .rl-mobile-nav { background: rgba(255,255,255,.96); }
.rl-mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-dim);
  font-size: 11px; font-weight: 500; padding: 4px 10px; flex: 1; }
.rl-mobile-nav a .ic { font-size: 19px; }
.rl-mobile-nav a.active { color: var(--accent); }
.rl-mobile-nav a.center .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast);
  display: grid; place-items: center; font-size: 20px; margin-top: -22px; box-shadow: 0 6px 18px var(--accent-soft); }

/* Hamburger */
.rl-hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; color: var(--text); font-size: 20px; }
.rl-mobile-drawer { position: fixed; inset: 0; z-index: 400; visibility: hidden; }
.rl-mobile-drawer.open { visibility: visible; }
.rl-mobile-drawer .ov { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: var(--transition); }
.rl-mobile-drawer.open .ov { opacity: 1; }
.rl-mobile-drawer .panel { position: absolute; left: 0; top: 0; bottom: 0; width: 300px; max-width: 84vw; background: var(--surface);
  border-right: 1px solid var(--border); transform: translateX(-100%); transition: var(--transition); overflow-y: auto; padding: 20px; }
.rl-mobile-drawer.open .panel { transform: translateX(0); }
.rl-mobile-drawer .panel a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 11px; color: var(--text-muted); font-weight: 500; }
.rl-mobile-drawer .panel a.active, .rl-mobile-drawer .panel a:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .rl-main-grid { grid-template-columns: 240px minmax(0,1fr); }
  .rl-main-grid > .rl-rail-right { display: none; }
  .rl-panel-wide { grid-template-columns: 240px minmax(0,1fr); }
  .rl-panel-wide > .rl-rail-right { grid-column: 1 / -1; }
  .rl-grid-4 { grid-template-columns: repeat(3,1fr); }
  .rl-media-4 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 992px) {
  .rl-main-grid, .rl-two-grid, .rl-panel, .rl-panel-wide { grid-template-columns: 1fr; }
  .rl-side, .rl-sticky { position: static; }
  .rl-main-grid > .rl-rail-left, .rl-panel > .rl-side, .rl-panel-wide > .rl-side { display: none; }
  .rl-auth { grid-template-columns: 1fr; }
  .rl-auth-visual { display: none; }
  .rl-grid-4, .rl-grid-3 { grid-template-columns: repeat(2,1fr); }
  .rl-media-4 { grid-template-columns: repeat(2,1fr); }
  .rl-stats { grid-template-columns: repeat(2,1fr); }
  .rl-badges { grid-template-columns: repeat(4,1fr); }
  .rl-socials { display: none; }
  .rl-hamburger { display: grid; }
  .rl-nav { display: none; }
  .rl-auth-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .rl-container { padding: 0 16px; }
  .rl-mobile-nav { display: flex; }
  body { padding-bottom: 74px; }
  .rl-header-inner { height: 64px; gap: 12px; }
  .rl-brand-sub { display: none; }
  .rl-brand-name { font-size: 21px; }
  .rl-brand-logo { width: 42px; height: 42px; }
  .rl-search { display: none; }
  .rl-hero-content { max-width: 90%; left: 20px; }
  .rl-hero-content .big { font-size: 34px; }
  .rl-hero-content h1 { font-size: 22px; }
  .rl-hero-content .sub { font-size: 16px; }
  .rl-grid-4, .rl-grid-3, .rl-grid-2, .rl-media-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rl-catcard { aspect-ratio: 4/3.6; }
  .rl-article-title { font-size: 26px; }
  .rl-list-item { flex-direction: column; }
  .rl-list-thumb { width: 100%; }
  .rl-sec-head h2 { font-size: 20px; }
  .rl-user-chip .name, .rl-user-chip i.fa-chevron-down { display: none; }
}
@media (max-width: 520px) {
  .rl-grid-4, .rl-grid-3, .rl-grid-2, .rl-media-4 { grid-template-columns: 1fr; }
  .rl-stats { grid-template-columns: 1fr 1fr; }
  .rl-auth-stats { grid-template-columns: 1fr; }
  .rl-badges { grid-template-columns: repeat(2,1fr); }
  .rl-grid-2f { grid-template-columns: 1fr; }
  .rl-auth-box { padding: 26px 20px; }
}

/* Search overlay for mobile */
.rl-mobile-search { display: none; }
@media (max-width: 992px) { .rl-mobile-search { display: block; padding: 12px 0; } .rl-mobile-search .rl-search { display: block; } }

/* Reveal-on-scroll */
.rl-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s; }
.rl-reveal.in { opacity: 1; transform: none; }

/* ============================================================
   UTILITY LAYER — so views never need inline style=""
   ============================================================ */
.fs-11{font-size:11px}.fs-12{font-size:12px}.fs-13{font-size:13px}.fs-14{font-size:14px}.fs-15{font-size:15px}
.fs-16{font-size:16px}.fs-18{font-size:18px}.fs-20{font-size:20px}.fs-22{font-size:22px}.fs-24{font-size:24px}
.fs-26{font-size:26px}.fs-28{font-size:28px}.fs-30{font-size:30px}.fs-34{font-size:34px}.fs-40{font-size:40px}
.fw-400{font-weight:400}.fw-500{font-weight:500}.fw-600{font-weight:600}.fw-700{font-weight:700}.fw-800{font-weight:800}
.font-display{font-family:var(--font-display)}
.d-flex{display:flex}.d-grid{display:grid}.d-block{display:block}.d-inline-flex{display:inline-flex}
.items-start{align-items:flex-start}.items-end{align-items:flex-end}.justify-center{justify-content:center}
.justify-end{justify-content:flex-end}.self-center{align-self:center}.self-start{align-self:flex-start}
.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.mx-auto{margin-left:auto;margin-right:auto}
.gap-3{gap:24px}.gap-05{gap:4px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex:1}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.p-0{padding:0}.p-1{padding:8px}.p-2{padding:16px}.p-3{padding:24px}.pt-0{padding-top:0}.pb-0{padding-bottom:0}
.py-1{padding:8px 0}.py-2{padding:16px 0}.py-3{padding:24px 0}.px-2{padding:0 16px}
.mt-05{margin-top:4px}.mb-05{margin-bottom:4px}.mt-5{margin-top:40px}.mb-5{margin-bottom:40px}.m-0{margin:0}
.no-border{border:0}.border-0{border:0}.border-b{border-bottom:1px solid var(--border)}.rounded-0{border-radius:0}
.text-dim{color:var(--text-dim)}.text-green{color:#22c55e}.text-red{color:var(--crimson)}.text-white{color:#fff}
.w-full{width:100%}.h-full{height:100%}.text-right{text-align:right}.text-left{text-align:left}
.cursor-pointer{cursor:pointer}.relative{position:relative}.overflow-hidden{overflow:hidden}
.rl-w-0{width:0}.rl-w-5{width:5%}.rl-w-10{width:10%}.rl-w-15{width:15%}.rl-w-20{width:20%}.rl-w-25{width:25%}
.rl-w-30{width:30%}.rl-w-35{width:35%}.rl-w-40{width:40%}.rl-w-45{width:45%}.rl-w-50{width:50%}.rl-w-55{width:55%}
.rl-w-60{width:60%}.rl-w-65{width:65%}.rl-w-70{width:70%}.rl-w-75{width:75%}.rl-w-80{width:80%}.rl-w-85{width:85%}
.rl-w-90{width:90%}.rl-w-95{width:95%}.rl-w-100{width:100%}
.rl-icon-sq{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;flex-shrink:0;background:var(--accent-soft);color:var(--accent);font-size:16px}
.rl-icon-sq.sq-green{background:rgba(34,197,94,.14);color:#22c55e}.rl-icon-sq.sq-purple{background:rgba(139,92,246,.14);color:#8b5cf6}
.rl-icon-sq.sq-blue{background:rgba(59,130,246,.14);color:#3b82f6}.rl-icon-sq.sq-rose{background:rgba(225,29,72,.14);color:var(--crimson)}
.rl-icon-sq.sq-amber{background:rgba(245,158,11,.14);color:#f59e0b}.rl-icon-sq.sq-gray{background:var(--surface-3);color:var(--text-muted)}
.rl-stat.bare{padding:0;border:0;background:none}
.rl-widget-title.between{justify-content:space-between}
.rl-sec-head.sm h2{font-size:20px}
.rl-list-thumb.sm{width:90px}
.rl-comment-row{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--border)}
.rl-comment-row:last-child{border-bottom:0}
.rl-section.tight{padding:16px 0}.rl-section.head-only{padding:28px 0 12px}

/* ============================================================
   DE-BOXED PUBLIC FRONTEND  (scoped to body.rl-public)
   Open, airy, magazine-style — fewer hard bordered containers.
   Does NOT affect user panel / admin.
   ============================================================ */

/* Sidebar widgets → boxed with outer border (match reference mockup) */
.rl-public .rl-rail-left .rl-widget,
.rl-public .rl-rail-right .rl-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 22px;
}
.rl-public .rl-widget-title {
  font-size: 17px;
  padding: 0 0 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* Social-follow rows keep their color; their wrapper is already open */
.rl-public .rl-follow a { border-radius: 14px; }

/* Post cards → borderless, floating image + open text */
.rl-public .rl-post-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.rl-public .rl-post-card:hover { transform: translateY(-5px); box-shadow: none; }
.rl-public .rl-post-thumb {
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.34);
}
[data-theme="light"] .rl-public .rl-post-thumb { box-shadow: 0 8px 22px rgba(20,23,33,.12); }
.rl-public .rl-post-body { padding: 15px 3px 0; }

/* Horizontal list rows (category page) → open rows with hairline divider */
.rl-public .rl-list-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 0;
}
.rl-public .rl-list-item:hover { background: transparent; border-color: var(--border-strong); }
.rl-public .rl-list-thumb { border-radius: 14px; }

/* Trending / highlight rows → open, roomier */
.rl-public .rl-trend-item { padding: 12px 0; }

/* Article rails (TOC, related, tags) → boxed with outer border */
.rl-public .rl-two-grid .rl-widget,
.rl-public .rl-sticky .rl-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 22px;
}

/* Category hero & catcards keep imagery but larger radius for softness */
.rl-public .rl-cat-hero { border-radius: 24px; }
.rl-public .rl-catcard { border-radius: 22px; }

/* Contact form card → soft, borderless */
.rl-public .rl-card { border: 0; border-radius: 20px; box-shadow: none; background: var(--surface-2); }
[data-theme="light"] .rl-public .rl-card { background: var(--surface); box-shadow: var(--shadow-sm); }

/* Section headings a touch bigger + airier */
.rl-public .rl-sec-head { margin-bottom: 22px; }
.rl-public .rl-sec-head h2 { font-size: 25px; }

/* Roomier column gaps for an open feel */
.rl-public .rl-main-grid, .rl-public .rl-two-grid { gap: 34px; }

/* ============================================================
   SQUARED CARD CORNERS — match reference mockup (public only).
   Cards/thumbnails use a small radius (square look); pills,
   badges and buttons stay rounded as in the mockup.
   ============================================================ */
.rl-public .rl-post-thumb,
.rl-public .rl-media-thumb,
.rl-public .rl-media-item,
.rl-public .rl-list-thumb,
.rl-public .rl-trend-item img,
.rl-public .rl-trend-play img,
.rl-public .rl-trend-play::after { border-radius: 6px; }

.rl-public .rl-hero,
.rl-public .rl-cat-hero,
.rl-public .rl-catcard,
.rl-public .rl-card,
.rl-public .rl-auth-box,
.rl-public .rl-auth-visual { border-radius: 8px; }

.rl-public .rl-rail-left .rl-widget:has(.rl-newsletter),
.rl-public .rl-rail-right .rl-widget:has(.rl-newsletter),
.rl-public .rl-rail-left .rl-widget:has(.rl-btn-primary) { border-radius: 8px; }

/* keep the little play button, category pills, duration + buttons as designed */
.rl-public .rl-post-cat { border-radius: 999px; }
.rl-public .rl-duration { border-radius: 4px; }

/* ============================================================
   RESTORE CARD OUTER LINES (borders) with SQUARE corners
   — match reference mockup: bordered cards, not floating.
   ============================================================ */
.rl-public .rl-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.rl-public .rl-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.rl-public .rl-post-thumb { border-radius: 0; box-shadow: none; }
.rl-public .rl-post-body { padding: 14px 16px 16px; }

.rl-public .rl-media-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.rl-public .rl-media-thumb { border-radius: 0; }

.rl-public .rl-list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
}
.rl-public .rl-list-item:hover { border-color: var(--border-strong); }

/* SIDEBAR_BOX_V1 HEADER_ALIGN_V1 */

/* LOGIN_VISUAL_V1 LOGIN_FULLBG_V1 */

/* AUTH_DIVIDER_V4 AUTH_ORNAMENT_V5 */
