/* ==========================================================================
   BITCOINS RP - XenForo 2 Inspired Dark Theme
   ========================================================================== */

:root {
  --bg-darkest: #0d0f14;
  --bg-dark: #12151e;
  --bg-surface: #181c28;
  --bg-surface-alt: #1f2434;
  --bg-surface-hover: #262c3e;
  --border-color: #2b3247;
  --border-light: #373f58;

  --accent-orange: #ff7700;
  --accent-gold: #f7931a;
  --accent-cyan: #00d2ff;
  --accent-blue: #2d8cf0;
  --accent-green: #2ecc71;
  --accent-red: #e74c3c;
  --accent-purple: #9b59b6;

  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-bright: #ffffff;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.55);
  --shadow-glow-gold: 0 0 16px rgba(247, 147, 26, 0.35);
  --shadow-glow-cyan: 0 0 16px rgba(0, 210, 255, 0.35);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 13.5px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #38bdf8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-orange);
}

/* ==========================================================================
   TOP ACCENT STRIP
   ========================================================================== */
.top-accent-strip {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #ff5100 0%, #ff8c00 35%, #00d2ff 75%, #f7931a 100%);
  position: relative;
  z-index: 100;
}

/* ==========================================================================
   DDoS / CLOUDFLARE SCREEN (Clean BITCOINS RP Backdrop)
   ========================================================================== */
#ddos-screen {
  position: fixed;
  inset: 0;
  background-color: #0a0c10;
  background: radial-gradient(circle at center, rgba(19, 25, 38, 0.95) 0%, #07090d 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

#ddos-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ddos-content {
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ddos-logo-wrap {
  margin-bottom: 24px;
  animation: logoPulse 2.8s ease-in-out infinite;
}

.ddos-logo {
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(0, 210, 255, 0.45)) drop-shadow(0 0 45px rgba(247, 147, 26, 0.25));
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.35)); }
  50% { transform: scale(1.025); filter: drop-shadow(0 0 32px rgba(247, 147, 26, 0.55)); }
}

.ddos-spinner-wrap {
  margin-bottom: 26px;
  position: relative;
  width: 58px;
  height: 58px;
}

.ddos-spinner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent-cyan);
  border-right-color: var(--accent-orange);
  animation: spin 0.9s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

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

.ddos-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.ddos-subtitle {
  font-size: 14.5px;
  color: #94a3b8;
  margin-bottom: 30px;
  max-width: 500px;
}

.ddos-meta-info {
  font-family: monospace;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.ddos-protection-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.ddos-shield-icon {
  color: #f7931a;
  font-size: 14px;
}

/* ==========================================================================
   HEADER & NAVIGATION (XenForo Exact Hierarchy)
   ========================================================================== */
.p-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.p-header-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.p-header-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.p-header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-fast);
}

.p-header-logo:hover {
  transform: scale(1.03);
}

.p-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.p-nav-item a,
.p-nav-item button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.p-nav-item a:hover,
.p-nav-item button:hover {
  color: #ffffff;
  background-color: var(--bg-surface-hover);
}

.p-nav-item.is-active a {
  color: var(--accent-orange);
  background: rgba(255, 119, 0, 0.12);
  border-bottom: 2px solid var(--accent-orange);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.p-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Auth Buttons (When Guest) */
.auth-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-auth-login {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-auth-login:hover {
  background: var(--bg-surface-hover);
  color: #fff;
  border-color: var(--accent-cyan);
}

.btn-auth-register {
  background: linear-gradient(135deg, #ff6b00 0%, #f7931a 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(247, 147, 26, 0.3);
  transition: all var(--transition-fast);
}

.btn-auth-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(247, 147, 26, 0.5);
}

.user-logged-in-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.role-badge-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: var(--accent-gold);
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--bg-surface-hover);
  color: #ffffff;
  border-color: var(--border-light);
}

.badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-surface);
}

.user-account-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 6px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-account-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-light);
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.user-account-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.user-account-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.user-account-role {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.1;
}

/* ==========================================================================
   SUB-NAV / BREADCRUMBS BAR
   ========================================================================== */
.p-subnav {
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}

.p-subnav-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.p-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  color: var(--text-muted);
}

.p-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-breadcrumbs a {
  color: var(--text-muted);
}

.p-breadcrumbs a:hover {
  color: var(--accent-orange);
}

.p-breadcrumbs .separator {
  color: var(--text-dim);
  font-size: 10px;
}

.p-breadcrumbs .current {
  color: var(--text-bright);
  font-weight: 600;
}

.p-subnav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-link {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.tool-link:hover {
  color: var(--text-bright);
}

/* ==========================================================================
   HERO / BANNER CAROUSEL (Battle Pass / Update)
   ========================================================================== */
.hero-banner-wrap {
  max-width: 1420px;
  margin: 18px auto 0;
  padding: 0 24px;
  width: 100%;
}

.hero-banner {
  background: linear-gradient(135deg, rgba(20, 24, 35, 0.95), rgba(15, 18, 25, 0.95)),
              radial-gradient(ellipse at top right, rgba(247, 147, 26, 0.15), transparent 70%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 220px;
  box-shadow: var(--shadow-md);
}

.hero-banner-content {
  flex: 1;
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 119, 0, 0.16);
  color: #ff9436;
  border: 1px solid rgba(255, 119, 0, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  width: fit-content;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-title span {
  background: linear-gradient(90deg, #ff7700, #ffba08, #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 14px;
  color: #94a3b8;
  max-width: 650px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b00 0%, #f7931a 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(247, 147, 26, 0.35);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(247, 147, 26, 0.5);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-surface-hover);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #64748b;
}

.hero-banner-visual {
  width: 40%;
  position: relative;
  background: linear-gradient(to right, #12151e 0%, transparent 40%),
              url('https://images.unsplash.com/photo-1542751371-adc38448a05e?w=800&fit=crop') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-video-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(231, 76, 60, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(231, 76, 60, 0.6);
  border: 3px solid rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
}

.play-video-btn:hover {
  transform: scale(1.1);
  background: #e74c3c;
}

/* ==========================================================================
   MAIN FORUM CONTAINER (Grid: Content + Right Sidebar)
   ========================================================================== */
.p-body {
  max-width: 1420px;
  margin: 20px auto 40px;
  padding: 0 24px;
  width: 100%;
  flex: 1;
}

.p-body-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 22px;
  align-items: start;
}

/* ==========================================================================
   XENFORO CATEGORY & NODE BLOCKS
   ========================================================================== */
.block {
  margin-bottom: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.block-header {
  background: #151923;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.block-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-orange);
}

.block-header-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.block-header-title i {
  color: var(--accent-gold);
  font-size: 13px;
}

.block-header-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 8px;
}

.block-collapse-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
  transition: color var(--transition-fast);
}

.block-collapse-btn:hover {
  color: #fff;
}

.block-body {
  background: var(--bg-surface);
}

/* NODE ROW */
.node-row {
  display: grid;
  grid-template-columns: 56px 1fr 140px 240px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  transition: background-color var(--transition-fast);
}

.node-row:last-child {
  border-bottom: none;
}

.node-row:hover {
  background-color: var(--bg-surface-hover);
}

.node-icon-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.node-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 16px;
  transition: all var(--transition-fast);
}

.node-row:hover .node-icon {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: scale(1.05);
}

/* Server Badge (01, 02, 03) */
.node-server-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

.node-main-cell {
  padding-right: 18px;
}

.node-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.node-title:hover {
  color: var(--accent-cyan);
}

.node-badge-new {
  font-size: 9px;
  font-weight: 800;
  background: var(--accent-red);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.node-description {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.node-subforums {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 4px;
}

.subforum-link {
  font-size: 11px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.subforum-link i {
  font-size: 9px;
  color: var(--accent-gold);
}

.subforum-link:hover {
  color: var(--accent-orange);
}

.node-stats-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.stat-label {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
}

.stat-value {
  font-weight: 700;
  color: #cbd5e1;
}

.node-lastpost-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.lastpost-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.lastpost-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 11.5px;
}

.lastpost-title {
  color: #e2e8f0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.lastpost-title:hover {
  color: var(--accent-orange);
}

.lastpost-meta {
  color: var(--text-dim);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.lastpost-author {
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   SIDEBAR WIDGETS (Screenshot matching)
   ========================================================================== */
.p-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.widget-header {
  background: #151923;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-header i {
  color: var(--accent-cyan);
}

.widget-body {
  padding: 12px 14px;
}

/* Quick Links Widget */
.quick-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-link-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.quick-link-item a:hover {
  background: var(--bg-surface-hover);
  color: #fff;
  border-color: var(--border-light);
  transform: translateX(2px);
}

.quick-link-item i {
  color: var(--accent-gold);
}

/* Staff Online Widget */
.staff-online-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.staff-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.staff-info {
  display: flex;
  align-items: center;
  gap: 9px;
}

.staff-avatar {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
}

.staff-details {
  display: flex;
  flex-direction: column;
}

.staff-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.staff-role-label {
  font-size: 10px;
  color: var(--text-dim);
}

/* Online Members Cloud */
.online-members-box {
  font-size: 11.5px;
  line-height: 1.7;
}

.online-member-tag {
  font-weight: 700;
  margin-right: 6px;
  display: inline-block;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.online-member-tag:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.online-stats-summary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--text-dim);
}

/* Server Status Widget */
.server-status-card {
  margin-bottom: 10px;
  background: var(--bg-surface-alt);
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.server-status-card:last-child {
  margin-bottom: 0;
}

.server-status-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
}

.server-online-count {
  font-size: 11px;
  color: var(--accent-green);
  font-weight: 700;
}

.server-progress-bar {
  height: 5px;
  background: #10131b;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.server-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff7700, #f7931a);
}

.server-ip-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 6px;
  border-radius: 3px;
  cursor: pointer;
}

.server-ip-copy:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   FORUM STATISTICS BAR (Screenshot 4)
   ========================================================================== */
.forum-stats-bar {
  max-width: 1420px;
  margin: 0 auto 30px;
  padding: 0 24px;
  width: 100%;
}

.stats-card-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-counter-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  font-size: 24px;
  color: var(--accent-cyan);
}

.stat-text-group {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

/* ==========================================================================
   FOOTER (Screenshot 4)
   ========================================================================== */
.p-footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  color: var(--text-muted);
  font-size: 12.5px;
}

.footer-top {
  max-width: 1420px;
  margin: 0 auto;
  padding: 36px 24px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 12px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  color: var(--text-dim);
  font-size: 12px;
}

.footer-links-list a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  background: #080a0e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 24px;
}

.footer-bottom-inner {
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ==========================================================================
   COOKIE CONSENT BANNER (Screenshot 2 bottom)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 21, 30, 0.96);
  border-top: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  color: #cbd5e1;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cookie-accept {
  background: var(--accent-orange);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-cookie-learn {
  color: #94a3b8;
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   XENFORO PREFIXES & ROLES BADGES
   ========================================================================== */
.label-prefix {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #fff;
  vertical-align: middle;
}

.prefix-approved { background: #2ecc71; border: 1px solid #27ae60; }
.prefix-rejected { background: #e74c3c; border: 1px solid #c0392b; }
.prefix-pending { background: #f39c12; border: 1px solid #d35400; }
.prefix-resolved { background: #3498db; border: 1px solid #2980b9; }
.prefix-important { background: #e67e22; border: 1px solid #d35400; }
.prefix-info { background: #9b59b6; border: 1px solid #8e44ad; }
.prefix-open { background: #27ae60; border: 1px solid #219150; }
.prefix-closed { background: #7f8c8d; border: 1px solid #95a5a6; }
.prefix-rule { background: #c0392b; border: 1px solid #962d22; }

/* Role Banners - Ukrainian RP Hierarchy */
.badge-owner {
  background: linear-gradient(135deg, #ff3b30, #ff9500);
  color: #fff !important;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
}

.badge-director {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff !important;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.badge-ga {
  background: #ea580c;
  color: #fff !important;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
}

.badge-zga {
  background: #f59e0b;
  color: #111 !important;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}

.badge-gs {
  background: #8b5cf6;
  color: #fff !important;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}

.badge-zgs {
  background: #a855f7;
  color: #fff !important;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}

.badge-senior-admin {
  background: #3b82f6;
  color: #fff !important;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}

.badge-admin {
  background: #06b6d4;
  color: #fff !important;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}

.badge-helper {
  background: #10b981;
  color: #fff !important;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}

.badge-player {
  background: #374151;
  color: #d1d5db !important;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 3px;
}

.badge-guest {
  background: #1f2937;
  color: #9ca3af !important;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 3px;
}

.badge-leader-neof {
  background: #d35400;
  color: #fff !important;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}

.badge-vip {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
  color: #000 !important;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
}

.badge-player {
  background: #34495e;
  color: #ecf0f1 !important;
  padding: 2px 7px;
  border-radius: 3px;
}

.badge-guest {
  background: #2c3e50;
  color: #95a5a6 !important;
  padding: 2px 7px;
  border-radius: 3px;
}

/* ==========================================================================
   THREAD VIEW & POSTBIT (XenForo Style)
   ========================================================================== */
.thread-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.thread-headline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thread-headline-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.thread-sub-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.thread-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Post Container */
.message-post {
  display: grid;
  grid-template-columns: 190px 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.message-user-col {
  background: #141722;
  border-right: 1px solid var(--border-color);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.message-user-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--border-light);
  margin-bottom: 10px;
}

.message-user-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  word-break: break-all;
}

.message-user-banner {
  font-size: 11px;
  margin-bottom: 12px;
  width: 100%;
}

.message-user-stats {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  text-align: left;
}

.message-user-stat-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
}

.message-user-stat-row span:last-child {
  color: #cbd5e1;
  font-weight: 600;
}

.message-content-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px;
}

.message-content-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.message-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: #e2e8f0;
  flex: 1;
}

.message-signature {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
}

.message-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  padding: 4px 9px;
  border-radius: 50px;
  font-size: 11px;
  cursor: pointer;
  color: #cbd5e1;
  transition: all var(--transition-fast);
}

.reaction-pill:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-gold);
}

.message-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn-link {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.action-btn-link:hover {
  color: var(--accent-orange);
}

/* ==========================================================================
   QUICK REPLY BOX
   ========================================================================== */
.quick-reply-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 20px;
}

.quick-reply-header {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 6px 8px;
}

.editor-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

.editor-btn:hover {
  background: var(--bg-surface-hover);
  color: #fff;
}

.editor-textarea {
  width: 100%;
  min-height: 110px;
  background: #11141d;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
}

.editor-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.quick-reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

/* ==========================================================================
   MODAL WINDOWS (New Thread, Role Switcher, ACP, Search)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  background: #141722;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  background: #141722;
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.form-control {
  background: #11141d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

/* Role Selector Grid in Modal */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.role-select-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.role-select-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.role-select-card.selected {
  border-color: var(--accent-orange);
  background: rgba(255, 119, 0, 0.1);
}

.role-card-info {
  display: flex;
  flex-direction: column;
}

.role-card-title {
  font-size: 12.5px;
  font-weight: 700;
}

.role-card-badge {
  font-size: 10px;
  margin-top: 3px;
}

/* ACL Matrix Table */
.acl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.acl-table th, .acl-table td {
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.acl-table th {
  background: #141722;
  color: #fff;
  font-weight: 700;
}

.acl-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.acl-check {
  color: var(--accent-green);
  font-weight: 800;
}

.acl-cross {
  color: var(--accent-red);
  font-weight: 800;
}

/* Toast Alerts */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e2434;
  border: 1px solid var(--accent-cyan);
  border-left: 4px solid var(--accent-cyan);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100000;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   ADMIN CONTROL PANEL (ACP) STYLES
   ========================================================================== */
.acp-modal-box {
  max-width: 1050px !important;
  width: 95% !important;
  height: 88vh;
  display: flex;
  flex-direction: column;
}

.acp-header-bar {
  background: #10131c;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.acp-tabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-alt);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.acp-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition-fast);
}

.acp-tab-btn:hover {
  color: #fff;
}

.acp-tab-btn.active {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 119, 0, 0.35);
}

.acp-tab-content {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.acp-tab-content.active {
  display: flex;
}

/* ACP Dashboard Grid */
.acp-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.acp-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acp-card-title {
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.acp-card-number {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

/* ACP Data Table */
.acp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.acp-table th {
  background: #11141c;
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-color);
}

.acp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  color: #cbd5e1;
  vertical-align: middle;
}

.acp-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.btn-acp-action {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: #fff;
  transition: all var(--transition-fast);
}

.btn-acp-action:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.btn-acp-ban {
  background: rgba(231, 76, 60, 0.15);
  border-color: rgba(231, 76, 60, 0.4);
  color: #e74c3c;
}

.btn-acp-ban:hover {
  background: #e74c3c;
  color: #fff;
}

.btn-acp-unban {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.4);
  color: #2ecc71;
}

.btn-acp-unban:hover {
  background: #2ecc71;
  color: #fff;
}

.acp-select {
  background: #11141d;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
}

.acp-toggle-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-orange);
}

/* ==========================================================================
   PERSONAL CABINET (Особистий кабінет)
   ========================================================================== */
.cabinet-modal-box {
  max-width: 860px !important;
  width: 95% !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.cabinet-header {
  background: linear-gradient(135deg, #151a27 0%, #0d1017 100%),
              radial-gradient(ellipse at top right, rgba(0, 210, 255, 0.15), transparent 70%);
  border-bottom: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.cabinet-user-badge-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cabinet-avatar-lg {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cabinet-user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cabinet-username {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cabinet-subline {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cabinet-tabs-bar {
  display: flex;
  align-items: center;
  background: #10131d;
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  gap: 6px;
}

.cabinet-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.cabinet-tab-btn:hover {
  color: #fff;
}

.cabinet-tab-btn.active {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

.cabinet-tab-pane {
  display: none;
  padding: 22px;
  overflow-y: auto;
  flex: 1;
  flex-direction: column;
  gap: 18px;
}

.cabinet-tab-pane.active {
  display: flex;
}

.cabinet-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.cabinet-stat-item {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cabinet-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}

.cabinet-stat-val {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .p-body-grid {
    grid-template-columns: 1fr;
  }
  .node-row {
    grid-template-columns: 46px 1fr 180px;
  }
  .node-stats-cell {
    display: none;
  }
  .hero-banner-visual {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .node-row {
    grid-template-columns: 44px 1fr;
    gap: 8px;
  }
  .node-lastpost-cell {
    grid-column: span 2;
    padding-left: 0;
    border-left: none;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .p-nav-list {
    display: none;
  }
  .message-post {
    grid-template-columns: 1fr;
  }
  .message-user-col {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 12px;
  }
  .message-user-avatar {
    width: 60px;
    height: 60px;
  }
}

/* ==========================================================================
   SMOOTH TRANSITIONS & ULTRA-FLUID ANIMATIONS (BITCOINS RP Forum Engine)
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* Page View Fluid Fade-In */
@keyframes forumFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes forumPulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(247, 147, 26, 0.25);
  }
  50% {
    box-shadow: 0 0 24px rgba(247, 147, 26, 0.55);
  }
}

@keyframes badgeShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes reactionPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.35) rotate(-6deg); }
  75% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes toastSlideIn {
  0% {
    opacity: 0;
    transform: translateX(100px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Fluid View & Block transitions */
#forum-main-content {
  animation: forumFadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.block {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Node item fluid interactions */
.node-row {
  transition: background-color 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
}
.node-row:hover {
  background-color: var(--bg-surface-hover);
  transform: translateX(3px);
}
.node-icon-wrap {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}
.node-row:hover .node-icon-wrap {
  transform: scale(1.14) rotate(4deg);
}

/* Thread list items */
.thread-row {
  transition: background-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-left-color 0.2s ease;
}
.thread-row:hover {
  background-color: rgba(255, 255, 255, 0.03);
  transform: translateX(3px);
}
.thread-title a {
  transition: color 0.18s ease;
}
.thread-prefix {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.thread-row:hover .thread-prefix {
  transform: scale(1.06);
  filter: brightness(1.15);
}

/* Button smooth elevations */
.btn-primary, .btn-secondary, .btn-auth-login, .btn-auth-reg, .role-badge-pill {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 119, 0, 0.4);
}
.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.btn-secondary:active {
  transform: translateY(1px) scale(0.98);
}
.btn-auth-login:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.12);
}
.btn-auth-reg:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(255, 119, 0, 0.35);
}

/* Message posts and avatars */
.message-post {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.message-user-avatar {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.message-user-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* Reaction buttons interactive feedback */
.reaction-btn {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.reaction-btn:hover {
  transform: scale(1.15) translateY(-1px);
}
.reaction-btn:active {
  animation: reactionPop 0.35s ease forwards;
}

/* Staff Badges Animation */
.badge-owner, .badge-director {
  background-size: 200% 200%;
  animation: badgeShine 3s ease infinite;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.35);
}
.badge-ga, .badge-zga {
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.35);
}
.badge-admin, .badge-senior-admin {
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.35);
}

/* Modal windows smooth zoom and backdrop blur */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  transform: scale(0.95) translateY(18px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease, box-shadow 0.32s ease;
}
.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* BBCode Enhanced Styles */
.bb-quote {
  border-left: 3px solid var(--accent-orange);
  background: var(--bg-surface-alt);
  padding: 10px 14px;
  margin: 10px 0;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.bb-quote:hover {
  background: rgba(255, 255, 255, 0.04);
}
.bb-quote--author {
  border-left-color: var(--accent-cyan);
}
.bb-quote__author {
  display: block;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.bb-link {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
.bb-link:hover {
  color: var(--accent-orange);
}
.bb-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 8px 0;
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.bb-image:hover {
  transform: scale(1.02);
}

/* Toast Notice Fluid Animation */
.toast-notice {
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header & Nav Items */
.p-nav-item a {
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}
.p-nav-item.is-active a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2.5px;
  background: var(--accent-orange);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 119, 0, 0.7);
}

/* ==========================================================================
   2 SERVERS EXCLUSIVE SELECTOR (Clean & Modern Pills)
   ========================================================================== */
.forum-server-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.forum-server-pill {
  background: var(--bg-surface-alt);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.forum-server-pill:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1.5px);
}

.forum-server-pill.active {
  border-color: var(--accent-orange);
  background: rgba(255, 119, 0, 0.1);
  box-shadow: 0 0 16px rgba(255, 119, 0, 0.25);
}

.forum-server-pill[data-server="02"].active {
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.1);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.25);
}

.forum-server-pill-num {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-orange);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.forum-server-pill-info {
  display: flex;
  flex-direction: column;
}

.forum-server-pill-info strong {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

.forum-server-pill-info small {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}
