/* ==========================================================================
   CAPITALISM ROLEPLAY - SA:MP SMF 2.1 THEME CSS (ENHANCED & OPTIMIZED)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --rp-font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rp-font-heading: 'Rajdhani', sans-serif;
  
  --rp-bg-body: #0a0d14;
  --rp-bg-header: #0f141f;
  --rp-bg-card: #131926;
  --rp-bg-card-alt: #171f30;
  --rp-bg-surface: #1c263a;
  --rp-bg-input: #0e131d;
  
  --rp-border: #243047;
  --rp-border-light: #2f3e5c;
  --rp-border-active: #3b82f6;
  
  --rp-text-main: #e2e8f0;
  --rp-text-muted: #94a3b8;
  --rp-text-dim: #64748b;
  --rp-text-bright: #ffffff;
  
  --rp-primary: #f59e0b;
  --rp-primary-hover: #fbbf24;
  --rp-primary-dark: #d97706;
  --rp-primary-glow: rgba(245, 158, 11, 0.25);
  
  --rp-cyan: #06b6d4;
  --rp-cyan-glow: rgba(6, 182, 212, 0.25);
  --rp-blue: #3b82f6;
  --rp-green: #10b981;
  --rp-red: #ef4444;
  --rp-purple: #8b5cf6;
  
  --rp-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --rp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --rp-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --rp-radius-sm: 6px;
  --rp-radius-md: 10px;
  --rp-radius-lg: 14px;
}

/* Base resets & typography */
body {
  background-color: var(--rp-bg-body) !important;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 40%),
    linear-gradient(180deg, #0d121c 0%, #080a0f 100%) !important;
  background-attachment: fixed !important;
  color: var(--rp-text-main) !important;
  font-family: var(--rp-font-main) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

a {
  color: var(--rp-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--rp-primary-hover);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rp-font-heading);
  letter-spacing: 0.5px;
  color: var(--rp-text-bright);
}

#wrapper {
  max-width: 1360px !important;
  margin: 0 auto;
  padding: 0 15px 30px 15px;
  background: transparent !important;
  box-shadow: none !important;
}

/* ==========================================================================
   1. SA:MP TOP NAVIGATION BAR (STRICT HORIZONTAL ALIGNMENT)
   ========================================================================== */
.rp-topbar {
  background: linear-gradient(180deg, #121927 0%, #0c101a 100%);
  border-bottom: 1px solid var(--rp-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1000;
  min-height: 56px;
  display: flex;
  align-items: center;
}
.rp-topbar-inner {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 15px;
}
.rp-topbar-left {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
}
.rp-topbar-right {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
}

/* Main Navigation Menu */
#main_menu {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
}
.rp-topbar .dropmenu.menu_nav {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 6px;
  height: 100%;
}
.rp-topbar .dropmenu.menu_nav > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.rp-topbar .dropmenu.menu_nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  color: var(--rp-text-muted) !important;
  font-family: var(--rp-font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--rp-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rp-border);
  box-sizing: border-box;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.rp-topbar .dropmenu.menu_nav > li > a:hover,
.rp-topbar .dropmenu.menu_nav > li > a.active {
  color: var(--rp-text-bright) !important;
  background: var(--rp-bg-surface);
  border-color: var(--rp-primary);
  box-shadow: 0 0 10px var(--rp-primary-glow);
}
.rp-topbar .dropmenu.menu_nav > li > a.active {
  color: var(--rp-primary) !important;
}
.rp-topbar .dropmenu.menu_nav > li > a i {
  color: var(--rp-primary);
  font-size: 13px;
}

/* 2nd Level Dropdown Menu */
.rp-topbar .dropmenu.menu_nav > li ul {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1100;
  display: none;
  background: var(--rp-bg-card-alt) !important;
  border: 1px solid var(--rp-border) !important;
  border-radius: var(--rp-radius-md) !important;
  box-shadow: var(--rp-shadow-lg) !important;
  padding: 6px 0 !important;
  min-width: 200px;
  margin-top: 4px;
}
.rp-topbar .dropmenu.menu_nav > li:hover ul {
  display: block;
  animation: rpFadeDown 0.2s ease;
}
.rp-topbar .dropmenu.menu_nav > li ul li a {
  color: var(--rp-text-main) !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: block;
}
.rp-topbar .dropmenu.menu_nav > li ul li a:hover {
  background: var(--rp-bg-surface) !important;
  color: var(--rp-primary) !important;
  padding-left: 20px !important;
}

/* Search Form (Strict 38px height) */
#search_form {
  background: var(--rp-bg-input);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-sm);
  padding: 0 4px 0 12px;
  display: inline-flex;
  align-items: center;
  height: 38px;
  box-sizing: border-box;
  margin: 0;
  transition: all 0.2s ease;
}
#search_form:focus-within {
  border-color: var(--rp-primary);
  box-shadow: 0 0 0 2px var(--rp-primary-glow);
}
#search_form input[type="search"],
#search_form input[type="text"] {
  background: transparent !important;
  border: none !important;
  color: var(--rp-text-bright) !important;
  font-size: 13px;
  outline: none !important;
  box-shadow: none !important;
  width: 170px;
  height: 34px;
  margin: 0;
  padding: 0;
}
#search_form .button {
  background: var(--rp-primary) !important;
  color: #000 !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 0 14px !important;
  height: 28px !important;
  line-height: 28px !important;
  min-width: auto !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  cursor: pointer;
  box-sizing: border-box;
  margin: 0;
}

/* User Button & Dropdown in Topbar (Strict 38px height) */
.rp-user-dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.rp-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  background: var(--rp-bg-surface);
  border: 1px solid var(--rp-border);
  border-radius: 20px;
  color: var(--rp-text-bright);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 600;
  box-sizing: border-box;
}
.rp-user-btn:hover {
  border-color: var(--rp-primary);
  box-shadow: 0 0 10px var(--rp-primary-glow);
}
.rp-user-btn .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rp-primary);
}
.rp-user-btn .rp-badge-indicator {
  background: var(--rp-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

.rp-user-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 270px;
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
  padding: 8px 0;
  z-index: 1200;
  display: none;
}
.rp-user-dropdown-container.open .rp-user-dropdown-menu,
.rp-user-dropdown-container:hover .rp-user-dropdown-menu {
  display: block;
  animation: rpFadeDown 0.2s ease;
}
@keyframes rpFadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.rp-user-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rp-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.rp-user-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rp-primary);
}
.rp-user-header-info {
  display: flex;
  flex-direction: column;
}
.rp-user-header-name {
  font-family: var(--rp-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--rp-text-bright);
}
.rp-user-header-group {
  font-size: 11px;
  color: var(--rp-primary);
  font-weight: 600;
  text-transform: uppercase;
}

.rp-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  color: var(--rp-text-main) !important;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.rp-dropdown-item:hover {
  background: var(--rp-bg-surface) !important;
  color: var(--rp-primary) !important;
  padding-left: 20px;
}
.rp-dropdown-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rp-dropdown-item-left i {
  width: 16px;
  text-align: center;
  color: var(--rp-text-muted);
}
.rp-dropdown-item:hover .rp-dropdown-item-left i {
  color: var(--rp-primary);
}
.rp-dropdown-item .rp-badge {
  background: var(--rp-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.rp-dropdown-divider {
  height: 1px;
  background: var(--rp-border);
  margin: 6px 0;
}
.rp-dropdown-logout {
  color: #f87171 !important;
}
.rp-dropdown-logout:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: var(--rp-red) !important;
}

/* Guest buttons */
.rp-guest-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rp-guest-buttons .button {
  height: 38px !important;
  line-height: 36px !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   2. FORUM BRANDING & ALT BAR (SA:MP SERVER BAR)
   ========================================================================== */
#header {
  background: linear-gradient(180deg, #101624 0%, #0d121c 100%) !important;
  border-bottom: 1px solid var(--rp-border);
  padding: 24px 0 20px 0 !important;
  box-shadow: var(--rp-shadow-md);
  margin-bottom: 0;
}
.rp-header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rp-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rp-brand-text {
  display: flex;
  flex-direction: column;
}
.rp-brand-title {
  font-family: var(--rp-font-heading);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rp-text-bright);
  line-height: 1.1;
  margin: 0;
}
.rp-brand-title span {
  color: var(--rp-primary);
  text-shadow: 0 0 16px var(--rp-primary-glow);
}
.rp-brand-subtitle {
  font-size: 12px;
  color: var(--rp-text-muted);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==========================================================================
   HERO BANNER (Üst Bar ile Sunucu Barı Arası)
   ========================================================================== */
.rp-hero-banner {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.rp-hero-banner-img {
  position: absolute;
  inset: 0;
  background-image: url('../images/capitalism_rp_banner.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease;
  z-index: 0;
}
.rp-hero-banner:hover .rp-hero-banner-img {
  transform: scale(1.0);
}
.rp-hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 13, 20, 0.92) 0%,
    rgba(10, 13, 20, 0.65) 50%,
    rgba(10, 13, 20, 0.85) 100%
  );
  z-index: 1;
}
/* bottom fade edge to blend into server bar */
.rp-hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #0a0d14);
  z-index: 2;
  pointer-events: none;
}
.rp-hero-banner-content {
  position: relative;
  z-index: 3;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Left: Server Name & Tagline */
.rp-hero-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rp-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--rp-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  width: fit-content;
  animation: rp-glow-pulse 3s ease-in-out infinite;
}
@keyframes rp-glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 18px rgba(245, 158, 11, 0.5); }
}
.rp-hero-title {
  font-family: var(--rp-font-heading);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.rp-hero-title em {
  font-style: normal;
  color: var(--rp-primary);
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}
.rp-hero-sub {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Right: Stats */
.rp-hero-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.rp-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--rp-radius-md);
  padding: 14px 22px;
  min-width: 90px;
  backdrop-filter: blur(8px);
}
.rp-hero-stat i {
  color: var(--rp-primary);
  font-size: 18px;
  margin-bottom: 4px;
}
.rp-hero-stat-value {
  font-family: var(--rp-font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.rp-hero-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--rp-text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Alt Bar: SA:MP Server Bar */
.rp-server-bar {
  background: linear-gradient(90deg, #0d1320 0%, #131b2e 50%, #0d1320 100%);
  border-top: 1px solid var(--rp-border);
  border-bottom: 1px solid var(--rp-border);
  box-shadow: var(--rp-shadow-md);
  padding: 10px 0;
  margin-bottom: 24px;
}
.rp-server-bar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.rp-server-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.rp-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.rp-status-indicator.offline {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}
.rp-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--rp-green);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px var(--rp-green);
}
.rp-pulse-dot.offline {
  background-color: var(--rp-red) !important;
  box-shadow: 0 0 8px var(--rp-red) !important;
}
.rp-pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid var(--rp-green);
  border-radius: 50%;
  animation: rp-pulse 2s infinite;
}
.rp-pulse-dot.offline::after {
  border-color: var(--rp-red) !important;
}
@keyframes rp-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.rp-status-text {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.rp-status-text.offline {
  color: #f87171 !important;
}
.rp-server-title {
  font-family: var(--rp-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--rp-text-bright);
  display: flex;
  align-items: center;
  gap: 6px;
}
.rp-server-title span {
  color: var(--rp-primary);
}
.rp-server-version,
.rp-server-game{
  background: var(--rp-bg-surface);
  border: 1px solid var(--rp-border);
  color: var(--rp-cyan);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.rp-ip-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  color: var(--rp-text-main);
  padding: 5px 14px;
  border-radius: var(--rp-radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rp-ip-copy-btn:hover {
  background: var(--rp-bg-surface);
  border-color: var(--rp-primary);
  color: var(--rp-primary);
  box-shadow: 0 0 10px var(--rp-primary-glow);
}
.rp-ip-copy-btn i {
  color: var(--rp-primary);
}

.rp-quick-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rp-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--rp-radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rp-border);
  transition: all 0.2s ease;
}
.rp-quick-btn:hover {
  background: var(--rp-bg-surface);
  color: var(--rp-text-bright);
  transform: translateY(-1px);
}
.rp-quick-btn.rp-discord {
  border-color: rgba(88, 101, 242, 0.4);
  color: #818cf8;
}
.rp-quick-btn.rp-discord:hover {
  background: rgba(88, 101, 242, 0.15);
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.3);
}
.rp-quick-btn.rp-ucp {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--rp-primary);
  background: rgba(245, 158, 11, 0.08);
}
.rp-quick-btn.rp-ucp:hover {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 12px var(--rp-primary-glow);
}

/* ==========================================================================
   3. QUICK UNREAD CHIPS & BREADCRUMBS
   ========================================================================== */
.rp-quick-unread {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
  gap: 10px;
}
.rp-unread-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  color: var(--rp-text-muted);
  padding: 5px 12px;
  border-radius: var(--rp-radius-sm);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.rp-unread-chip:hover {
  background: var(--rp-bg-surface);
  border-color: var(--rp-primary);
  color: var(--rp-primary);
}
.rp-unread-chip i {
  color: var(--rp-primary);
}

.navigate_section {
  padding: 10px 0;
  margin-bottom: 15px;
}
.navigate_section ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.navigate_section li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--rp-text-dim);
}
.navigate_section li a {
  color: var(--rp-text-muted);
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  padding: 4px 10px;
  border-radius: var(--rp-radius-sm);
  font-weight: 500;
}
.navigate_section li a:hover {
  color: var(--rp-primary);
  border-color: var(--rp-primary);
}
.navigate_section li.last span {
  color: var(--rp-primary);
  font-weight: 600;
}
.navigate_section .dividers {
  color: var(--rp-text-dim);
  font-size: 10px;
}

/* ==========================================================================
   4. CATEGORY & BOARD CARDS (LEFT ALIGNED TITLES)
   ========================================================================== */
.main_container {
  margin-bottom: 24px;
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-lg);
  overflow: hidden;
  box-shadow: var(--rp-shadow-md);
}

.cat_bar {
  background: linear-gradient(90deg, #182236 0%, #131b2c 100%) !important;
  border-bottom: 1px solid var(--rp-border) !important;
  padding: 14px 20px !important;
  text-align: left !important;
}
.catbg {
  font-family: var(--rp-font-heading) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  color: var(--rp-text-bright) !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 8px;
}
.catbg a {
  color: var(--rp-text-bright) !important;
  text-align: left !important;
}
.catbg a:hover {
  color: var(--rp-primary) !important;
}

/* Board Row Layout */
.up_contain {
  border-bottom: 1px solid var(--rp-border);
  padding: 16px 20px !important;
  background: var(--rp-bg-card) !important;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.up_contain:last-child {
  border-bottom: none;
}
.up_contain:hover {
  background: var(--rp-bg-card-alt) !important;
}

.board_icon {
  width: 44px;
  height: 44px;
  border-radius: var(--rp-radius-md);
  background: var(--rp-bg-surface);
  border: 1px solid var(--rp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.up_contain:hover .board_icon {
  border-color: var(--rp-primary);
  box-shadow: 0 0 12px var(--rp-primary-glow);
}

.info {
  flex: 1;
  min-width: 200px;
}
.board_name {
  font-family: var(--rp-font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin: 0 0 4px 0;
  text-align: left;
}
.board_name a {
  color: var(--rp-text-bright);
}
.board_name a:hover {
  color: var(--rp-primary);
}
.board_description {
  font-size: 13px;
  color: var(--rp-text-muted);
  line-height: 1.4;
  margin: 0;
  text-align: left;
}
.moderators {
  font-size: 12px;
  color: var(--rp-text-dim);
  margin-top: 4px;
  text-align: left;
}

/* Stats (Posts & Topics) */
.board_stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  text-align: center;
  border-left: 1px solid var(--rp-border);
  border-right: 1px solid var(--rp-border);
}
.board_stats p {
  margin: 0;
  font-size: 12px;
  color: var(--rp-text-dim);
  text-transform: uppercase;
  font-weight: 600;
}
.board_stats strong {
  display: block;
  font-family: var(--rp-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--rp-text-bright);
}

/* Last Post Column */
.lastpost {
  width: 280px;
  flex-shrink: 0;
  padding-left: 20px;
  font-size: 13px;
}
.lastpost p {
  margin: 0;
  line-height: 1.4;
}
.lastpost strong a {
  color: var(--rp-text-bright);
  font-weight: 600;
}
.lastpost strong a:hover {
  color: var(--rp-primary);
}
.lastpost time {
  font-size: 11px;
  color: var(--rp-text-dim);
  display: block;
}

/* Children boards */
.children {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--rp-border);
  font-size: 12px;
}
.children p {
  margin: 0;
  color: var(--rp-text-dim);
}
.children a {
  color: var(--rp-cyan);
  margin-right: 8px;
}

/* ==========================================================================
   5. TOPIC DISPLAY & CENTERED POSTBIT AVATAR (DISPLAY.TEMPLATE)
   ========================================================================== */
#forumposts {
  margin-bottom: 24px;
}
.post_wrapper {
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--rp-shadow-md);
  display: flex;
  flex-direction: row;
  overflow: visible !important;
}

/* Poster Column (Left) - STRICTLY CENTERED */
.poster {
  width: 220px;
  flex-shrink: 0;
  background: var(--rp-bg-card-alt);
  border-right: 1px solid var(--rp-border);
  padding: 20px 16px;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.poster h4 {
  font-family: var(--rp-font-heading);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  text-align: center !important;
  width: 100%;
}
.poster h4 a {
  color: var(--rp-text-bright);
}
.poster h4 a:hover {
  color: var(--rp-primary);
}

.poster li.avatar,
.poster .user_avatar,
.poster .avatar {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto 12px auto !important;
  text-align: center !important;
  width: 100% !important;
}
.poster .avatar img,
.poster img.avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--rp-radius-md);
  object-fit: cover;
  border: 2px solid var(--rp-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  margin: 0 auto !important;
  display: block !important;
}
.poster .avatar img:hover,
.poster img.avatar:hover {
  border-color: var(--rp-primary);
  box-shadow: 0 0 14px var(--rp-primary-glow);
}

.poster ul.user_info {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--rp-text-muted);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.poster ul.user_info li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center !important;
  text-align: center !important;
  gap: 6px;
  width: 100%;
}
.poster .membergroup {
  background: var(--rp-bg-surface);
  border: 1px solid var(--rp-border);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  color: var(--rp-primary);
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.poster .postgroup {
  color: var(--rp-text-dim);
  font-size: 11px;
}
.poster .postcount {
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Post Area (Right) */
.postarea {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: visible !important;
}
.keyinfo {
  border-bottom: 1px solid var(--rp-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.subject_title {
  font-family: var(--rp-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--rp-text-bright);
}
.postinfo {
  font-size: 12px;
  color: var(--rp-text-dim);
}

.post {
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  color: var(--rp-text-main);
}
.post .inner {
  word-break: break-word;
}

/* Quotes & Code */
blockquote, .bbc_quote {
  background: var(--rp-bg-surface) !important;
  border: 1px solid var(--rp-border) !important;
  border-left: 4px solid var(--rp-primary) !important;
  border-radius: var(--rp-radius-sm);
  padding: 12px 16px !important;
  margin: 12px 0 !important;
  font-style: normal;
  color: #cbd5e1;
}
.bbc_quote .quoteheader {
  font-weight: 700;
  color: var(--rp-primary);
  font-size: 12px;
  margin-bottom: 6px;
}
code, .bbc_code {
  background: #090c12 !important;
  border: 1px solid var(--rp-border) !important;
  border-radius: var(--rp-radius-sm);
  padding: 10px 14px !important;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  color: #38bdf8;
  display: block;
  overflow-x: auto;
}

/* Signature */
.signature {
  border-top: 1px dashed var(--rp-border);
  margin-top: 20px;
  padding-top: 12px;
  font-size: 12px;
  color: var(--rp-text-dim);
}

/* ==========================================================================
   6. QUICKBUTTONS & "FAZLASI" DROPDOWN MENU UPWARD POPUP FIX
   ========================================================================== */
.quickbuttons {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  list-style: none;
  padding: 0;
  position: relative !important;
  overflow: visible !important;
}
.quickbuttons li {
  position: relative !important;
}
.quickbuttons li a {
  background: var(--rp-bg-surface);
  border: 1px solid var(--rp-border);
  color: var(--rp-text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  line-height: 1.5;
  border-radius: var(--rp-radius-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-height: 36px;
  box-sizing: border-box;
}
.quickbuttons li a:hover {
  background: var(--rp-primary);
  border-color: var(--rp-primary);
  color: #000;
}

/* Upward popup for "Fazlası" / Subsections menu so it never slides offscreen */
.quickbuttons li.subsections ul,
.quickbuttons .top_menu,
.quickbuttons li ul {
  position: absolute !important;
  bottom: 100% !important;
  top: auto !important;
  right: 0 !important;
  left: auto !important;
  margin-bottom: 8px !important;
  z-index: 9999 !important;
  background: var(--rp-bg-card-alt) !important;
  border: 1px solid var(--rp-border) !important;
  border-radius: var(--rp-radius-md) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
  min-width: 170px !important;
  padding: 6px 0 !important;
  list-style: none !important;
}
.quickbuttons li.subsections ul li a,
.quickbuttons li ul li a {
  padding: 8px 16px !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}
.quickbuttons li.subsections ul li a:hover,
.quickbuttons li ul li a:hover {
  background: var(--rp-bg-surface) !important;
  color: var(--rp-primary) !important;
}

/* ==========================================================================
   7. BUTTONS, SUBMIT CONTROLS & "BAŞLA" JUMP TO FIX
   ========================================================================== */
.button, 
input[type="submit"], 
input[type="button"], 
button,
.button_submit,
#postmodify input[type="submit"],
#postmodify input[type="button"],
#postmodify button {
  background: var(--rp-bg-surface) !important;
  border: 1px solid var(--rp-border) !important;
  color: var(--rp-text-bright) !important;
  font-family: var(--rp-font-main);
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 10px 32px !important;
  min-width: 150px !important;
  height: auto !important;
  line-height: 1.6 !important;
  border-radius: var(--rp-radius-sm) !important;
  cursor: pointer;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}
.button:hover, 
input[type="submit"]:hover, 
input[type="button"]:hover, 
button:hover,
.button_submit:hover {
  background: var(--rp-primary) !important;
  border-color: var(--rp-primary) !important;
  color: #000 !important;
  box-shadow: 0 0 12px var(--rp-primary-glow) !important;
}
.button.active {
  background: var(--rp-primary) !important;
  color: #000 !important;
}

/* Topbar nav butonlarının genel buton stilinden etkilenmemesi için override */
.rp-topbar .dropmenu.menu_nav > li > a {
  min-width: unset !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Search form submit (none - search removed) */

/* "Gitmek istediğiniz yer" - Başla butonu genişlik ayarı */
#display_jump_to input[type="button"],
#display_jump_to input[type="submit"],
#display_jump_to button,
#messageindex_jump_to input[type="button"],
#messageindex_jump_to input[type="submit"],
#jumpto input[type="button"],
#jumpto input[type="submit"],
.jump_to input[type="button"],
.jump_to input[type="submit"],
.jump_to button,
.select_ift input[type="button"],
.select_ift input[type="submit"] {
  min-width: 120px !important;
  padding: 10px 32px !important;
  height: auto !important;
  line-height: 1.6 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

/* Quick Reply Box */
#quickreplybox {
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-lg);
  padding: 20px;
  margin-top: 20px;
  box-shadow: var(--rp-shadow-md);
}
#quickreplybox h4 {
  font-family: var(--rp-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--rp-text-bright);
  margin: 0 0 14px 0;
}
#quickreplybox textarea {
  width: 100%;
  min-height: 120px;
  background: var(--rp-bg-input);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-md);
  padding: 12px;
  color: var(--rp-text-bright);
  font-family: var(--rp-font-main);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
#quickreplybox textarea:focus {
  border-color: var(--rp-primary);
  box-shadow: 0 0 0 2px var(--rp-primary-glow);
}

/* ==========================================================================
   8. UNREAD TOPICS & RECENT TOPICS PAGE CARDS
   ========================================================================== */
#recent .topic_details {
  padding: 14px 18px;
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-md);
  margin-bottom: 12px;
  transition: all 0.2s ease;
}
#recent .topic_details:hover {
  background: var(--rp-bg-card-alt);
  border-color: var(--rp-primary);
}
#recent .topic_details h5 a {
  font-family: var(--rp-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--rp-text-bright);
}
#recent .topic_details h5 a:hover {
  color: var(--rp-primary);
}

/* Pagination */
.pagelinks {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 14px 0;
}
.pagelinks .nav_page,
.pagelinks .current_page {
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  color: var(--rp-text-muted);
  padding: 6px 12px;
  border-radius: var(--rp-radius-sm);
  font-size: 12px;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
}
.pagelinks .current_page {
  background: var(--rp-primary);
  border-color: var(--rp-primary);
  color: #000;
}
.pagelinks .nav_page:hover {
  border-color: var(--rp-primary);
  color: var(--rp-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#footer {
  background: #080b10 !important;
  border-top: 1px solid var(--rp-border);
  padding: 24px 0;
  margin-top: 40px;
  color: var(--rp-text-dim);
  font-size: 13px;
}
#footer .inner_wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
#footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
#footer a {
  color: var(--rp-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
#footer a:hover {
  color: var(--rp-primary);
}
#footer .footer-terms a {
  color: var(--rp-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  border: 1px solid rgba(var(--rp-primary-rgb, 245, 158, 11), 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  transition: background 0.2s ease, color 0.2s ease;
}
#footer .footer-terms a:hover {
  background: var(--rp-primary);
  color: #000;
}
#footer .footer-desc {
  font-size: 12px;
  color: var(--rp-text-dim);
  opacity: 0.75;
  max-width: 520px;
  text-align: center;
  line-height: 1.6;
}
#footer .footer-desc a {
  color: var(--rp-primary);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
  .post_wrapper {
    flex-direction: column;
  }
  .poster {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--rp-border);
    padding: 14px 16px;
  }
  .board_stats {
    display: none;
  }
  .lastpost {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .rp-topbar-inner {
    height: auto;
    padding: 10px 15px;
  }
  .rp-server-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .up_contain {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .lastpost {
    width: 100%;
    padding-left: 0;
    border-top: 1px dashed var(--rp-border);
    padding-top: 8px;
  }
/* ==========================================================================
   ROLEPLAY CUSTOM PROFILE VIEW STYLING (CAPITALISM RP)
   ========================================================================== */
.rp-profile-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
  font-family: var(--rp-font-main);
}

/* 1. Profile Header Hero */
.rp-pheader {
  position: relative;
  background: linear-gradient(135deg, #131926 0%, #1a2234 100%);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--rp-shadow-md);
  overflow: hidden;
}

.rp-pheader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rp-primary), var(--rp-blue), var(--rp-primary));
}

.rp-pheader-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.rp-pavatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.rp-pavatar-wrap img.avatar,
.rp-pavatar-wrap .avatar {
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid var(--rp-border) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  display: block;
}

.rp-pstatus-badge {
  position: absolute;
  bottom: 2px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--rp-bg-card);
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.rp-pstatus-badge.online {
  background: var(--rp-green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}
.rp-pstatus-badge.offline {
  background: var(--rp-text-dim);
}

.rp-pheader-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rp-pheader-name {
  font-family: var(--rp-font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--rp-text-bright);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
}

.rp-pgroup-pill {
  font-family: var(--rp-font-main);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--rp-primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: inline-block;
}

.rp-pheader-blurb {
  font-size: 13px;
  color: var(--rp-text-muted);
  font-style: italic;
  margin: 0;
}

.rp-pheader-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rp-pbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--rp-radius-sm);
  background: var(--rp-bg-surface);
  border: 1px solid var(--rp-border);
  color: var(--rp-text-main) !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.rp-pbtn:hover {
  background: var(--rp-primary);
  color: #000 !important;
  border-color: var(--rp-primary);
  box-shadow: 0 0 12px var(--rp-primary-glow);
}

.rp-pbtn.primary {
  background: var(--rp-primary);
  color: #000 !important;
  border-color: var(--rp-primary);
}
.rp-pbtn.primary:hover {
  background: var(--rp-primary-hover);
}

/* 2. Stats Summary Grid */
.rp-pstats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.rp-stat-card {
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
}
.rp-stat-card:hover {
  border-color: var(--rp-border-light);
  transform: translateY(-2px);
  box-shadow: var(--rp-shadow-sm);
}

.rp-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--rp-radius-sm);
  background: rgba(245, 158, 11, 0.1);
  color: var(--rp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.rp-stat-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--rp-blue);
}
.rp-stat-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--rp-green);
}
.rp-stat-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--rp-purple);
}

.rp-stat-info {
  display: flex;
  flex-direction: column;
}
.rp-stat-val {
  font-family: var(--rp-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--rp-text-bright);
  line-height: 1.1;
}
.rp-stat-lbl {
  font-size: 12px;
  color: var(--rp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* 3. Main Content Cards Grid */
.rp-pgrid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.rp-pgrid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rp-pcard {
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-md);
  padding: 20px 22px;
  box-shadow: var(--rp-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rp-pcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rp-border);
  padding-bottom: 12px;
}

.rp-pcard-title {
  font-family: var(--rp-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--rp-text-bright);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rp-pcard-title i {
  color: var(--rp-primary);
  font-size: 16px;
}

.rp-plist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rp-plist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--rp-radius-sm);
  font-size: 13px;
}

.rp-plist-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rp-text-muted);
  font-weight: 500;
}
.rp-plist-label i {
  color: var(--rp-text-dim);
  width: 16px;
  text-align: center;
}

.rp-plist-value {
  color: var(--rp-text-bright);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}
.rp-plist-value a {
  color: var(--rp-primary);
}

/* 4. Active Roleplay Character Card */
.rp-char-card {
  position: relative;
  background: linear-gradient(135deg, #171f30 0%, #0e131e 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--rp-radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.05);
}

.rp-char-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(245, 158, 11, 0.2);
  padding-bottom: 10px;
}

.rp-char-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rp-primary);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rp-char-id {
  font-family: monospace;
  font-size: 12px;
  color: var(--rp-text-dim);
}

.rp-char-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rp-char-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--rp-radius-sm);
  background: var(--rp-bg-surface);
  border: 1px solid var(--rp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--rp-primary);
  flex-shrink: 0;
}

.rp-char-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rp-char-name {
  font-family: var(--rp-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--rp-text-bright);
  margin: 0;
}

.rp-char-sub {
  font-size: 12px;
  color: var(--rp-text-muted);
}

.rp-char-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.rp-char-stat-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--rp-radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp-char-stat-box span.lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--rp-text-dim);
  font-weight: 600;
}
.rp-char-stat-box span.val {
  font-size: 12px;
  color: var(--rp-text-bright);
  font-weight: 600;
}

/* 5. Signature Section */
.rp-psig-card {
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-md);
  padding: 16px 20px;
}
.rp-psig-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rp-text-dim);
  font-weight: 700;
  margin-bottom: 8px;
}
.rp-psig-content {
  color: var(--rp-text-muted);
  font-size: 13px;
  line-height: 1.5;
  border-top: 1px dashed var(--rp-border);
  padding-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .rp-pstats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .rp-pgrid-3col {
    grid-template-columns: 1fr;
  }
  .rp-pgrid-2col {
    grid-template-columns: 1fr;
  }
  .rp-pheader {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .rp-pstats-row {
    grid-template-columns: 1fr;
  }
  .rp-pheader-left {
    flex-direction: column;
    align-items: flex-start;
  }
}
