/* ==========================================================================
   SPWorlds SPM Theme & UI Stylesheet
   Идентичный дизайн оригинального сайта spworlds.ru/spm
   ========================================================================== */

:root {
  --bg-page: #0d0d11;
  --bg-sidebar: #0d0d11;
  --bg-card: #151519;
  --bg-surface: #1e1e25;
  --bg-surface-hover: #262632;
  --border-subtle: #23232c;
  --border-light: #32323e;
  --border-primary: #6563ee;

  --primary: #6563ee;
  --primary-hover: #7875f0;
  --primary-lightest: #8a88ef;
  --primary-dim: rgba(101, 99, 238, 0.16);
  --primary-glow: rgba(101, 99, 238, 0.35);

  --text-white: #ffffff;
  --text-secondary: #8f8f94;
  --text-muted: #5e5e66;

  --color-green: #43af68;
  --color-green-dim: rgba(67, 175, 104, 0.16);
  --color-red: #ff5353;
  --color-red-dim: rgba(255, 83, 83, 0.16);
  --color-blue: #4277ff;
  --color-blue-dim: rgba(66, 119, 255, 0.16);
  --color-yellow: #ffbd3e;
  --color-yellow-dim: rgba(255, 189, 62, 0.16);
  --color-orange: #ff862e;
  --color-cyan: #4eb4ff;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html, body {
  background-color: var(--bg-page);
  color: var(--text-white);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Nice Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #282834;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #3e3e50;
}

.nice-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #282834 transparent;
}

/* Pixelated Minecraft Avatars */
.pixelated {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* ----------------- App Layout ----------------- */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Sidebar */
.sidebar {
  width: 250px;
  flex-shrink: 0;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px 16px;
  overflow-y: auto;
  z-index: 40;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 24px;
}

.sp-logo-orbit {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.sp-brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-white);
}

.sp-brand-sep {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 18px;
}

.sp-splash-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ff5353;
  background: rgba(255, 83, 83, 0.15);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  user-select: none;
  position: relative;
}

.nav-item:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: var(--text-white);
  background-color: var(--bg-surface);
  font-weight: 600;
}

.nav-item.active .nav-icon {
  color: var(--primary);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
}

.nav-item.active .nav-badge {
  background-color: rgba(101, 99, 238, 0.2);
  color: var(--primary-lightest);
}

/* Sidebar Footer / Controls */
.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(67, 175, 104, 0.12);
  color: var(--color-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green);
}

.pulse {
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(67, 175, 104, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(67, 175, 104, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(67, 175, 104, 0); }
}

.btn-sidebar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.btn-sidebar:hover {
  background: var(--bg-surface-hover);
  color: var(--text-white);
  border-color: var(--border-light);
}

.btn-sidebar.primary-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.btn-sidebar.primary-btn:hover {
  background: var(--primary-hover);
}

/* ----------------- Main Content Wrapper ----------------- */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

/* Top Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-page);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.topbar-icon-btn:hover {
  background: var(--bg-surface);
  color: var(--text-white);
}

.topbar-avatar-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #23232c;
  transition: border-color var(--transition-fast);
}

.topbar-avatar-box:hover {
  border-color: var(--primary);
}

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

/* Content Layout (Center Columns + Right Sidebar) */
.page-layout {
  display: flex;
  flex: 1;
  padding: 24px 28px;
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.content-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-column {
  width: 290px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ----------------- UI Component Cards ----------------- */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid transparent;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.card-hover:hover {
  border-color: var(--border-subtle);
  background-color: #17171d;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-white);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Inputs & Search */
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid transparent;
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 14px 18px 14px 44px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
  background-color: #181820;
}

.search-icon-inside {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.badge-green {
  background-color: var(--color-green-dim);
  color: var(--color-green);
}

.badge-red {
  background-color: var(--color-red-dim);
  color: var(--color-red);
}

.badge-blue {
  background-color: var(--color-blue-dim);
  color: var(--color-blue);
}

.badge-yellow {
  background-color: var(--color-yellow-dim);
  color: var(--color-yellow);
}

.badge-gold {
  background-color: rgba(230, 162, 60, 0.16);
  color: #e6a23c;
}

.badge-purple {
  background-color: var(--primary-dim);
  color: var(--primary-lightest);
}

/* ----------------- Tab: Новости (Feed) ----------------- */
.feed-create-post-box {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.feed-create-post-box:hover {
  border-color: var(--border-subtle);
}

.feed-prompt-text {
  color: var(--text-secondary);
  font-size: 15px;
}

.feed-prompt-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.post-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.post-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-author {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  cursor: pointer;
}

.post-author:hover {
  color: var(--primary);
}

.post-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.post-content {
  font-size: 15px;
  line-height: 1.6;
  color: #e6e6ea;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-media-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
  background-color: var(--bg-surface);
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 6px;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast);
}

.rating-pill:hover {
  background-color: var(--bg-surface-hover);
}

.rating-arrow {
  color: var(--text-secondary);
  font-size: 11px;
}

/* Comments thread */
.comments-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.comment-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.comment-author {
  font-weight: 600;
  color: var(--text-white);
}

.comment-time {
  font-size: 11px;
  color: var(--text-muted);
}

.comment-text {
  font-size: 13px;
  color: #d1d1d8;
}

.comment-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 8px 14px;
}

.comment-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

/* Dropdown Menu (Purple Outline style) */
.sp-dropdown-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.sp-dropdown-label {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

.sp-dropdown-selected {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.sp-dropdown-menu.open {
  display: flex;
}

.sp-dropdown-item {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.sp-dropdown-item:hover, .sp-dropdown-item.active {
  background-color: var(--bg-surface-hover);
}

/* ----------------- Tab: Игроки (Users) ----------------- */
.filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.user-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform 0.1s;
}

.user-item-card:hover {
  background-color: var(--bg-surface);
}

.user-avatar-48 {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.user-name-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----------------- Tab: Города (Cities) ----------------- */
.cities-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.city-item-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.city-item-card:hover {
  background-color: var(--bg-surface);
}

.city-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: #23232c;
  object-fit: cover;
  flex-shrink: 0;
}

.city-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.city-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.city-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}

.city-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Branch Badges */
.branch-pill {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.branch-green { background: rgba(67, 175, 104, 0.2); color: #43af68; }
.branch-red { background: rgba(255, 83, 83, 0.2); color: #ff5353; }
.branch-blue { background: rgba(66, 119, 255, 0.2); color: #4277ff; }
.branch-yellow { background: rgba(255, 189, 62, 0.2); color: #ffbd3e; }

/* ----------------- Tab: Сообщества (Groups) ----------------- */
.subtabs-header {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.subtab-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  padding-bottom: 8px;
}

.subtab-btn.active {
  color: var(--text-white);
}

.subtab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.groups-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-item-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.group-item-card:hover {
  background-color: var(--bg-surface);
}

.group-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

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

.group-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-icon {
  color: var(--primary);
  font-size: 14px;
}

.group-members {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ----------------- Tab: Суд (Lawsuits) ----------------- */
.court-subtabs {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.court-tab-chip {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.court-tab-chip:hover {
  background: var(--bg-surface);
  color: var(--text-white);
}

.court-tab-chip.active {
  background: var(--bg-surface);
  color: var(--text-white);
  border-color: var(--border-primary);
}

.lawsuits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.lawsuit-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.lawsuit-card:hover {
  border-color: var(--border-subtle);
  background: #17171f;
}

.lawsuit-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lawsuit-num {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.lawsuit-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.status-dot-yellow {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffbd3e;
}

.status-dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5353;
}

.status-dot-blue {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4277ff;
}

.lawsuit-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.4;
}

.lawsuit-actors-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.actor-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.actor-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #23232c;
}

.actor-meta {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.actor-name {
  font-weight: 700;
  color: var(--text-white);
}

.actor-role {
  color: var(--text-muted);
}

.actors-arrow {
  color: var(--text-muted);
  font-weight: 700;
}

/* ----------------- Tab: Петиции (Campaigns) ----------------- */
.campaigns-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.campaign-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.campaign-card:hover {
  border-color: var(--border-subtle);
  background: #17171e;
}

.campaign-banner-thumb {
  width: 220px;
  flex-shrink: 0;
  background-color: #23232c;
  object-fit: cover;
}

.campaign-center {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.campaign-title {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-white);
  line-height: 1.3;
}

.campaign-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.campaign-right-stats {
  width: 140px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.campaign-nums {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
}

.campaign-progress-bar {
  width: 100%;
  height: 6px;
  background-color: #262632;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.campaign-progress-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

/* ----------------- Drawers & Modals ----------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  width: 480px;
  max-width: 90vw;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

.drawer-backdrop.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.drawer-close:hover {
  color: var(--text-white);
}

.drawer-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Bank Cards Stack */
.bank-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bank-card-item {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.bank-card-purple { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.bank-card-pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.bank-card-orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.bank-card-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 560px;
  max-width: 95vw;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Toast */
.sp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: var(--text-white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.sp-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-layout {
    flex-direction: column;
  }
  .side-column {
    width: 100%;
  }
  .lawsuits-grid, .users-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 72px;
    padding: 16px 8px;
  }
  .sp-brand-text, .sp-brand-sep, .sp-splash-tag, .nav-text, .nav-badge, .sidebar-footer {
    display: none;
  }
  .nav-item {
    justify-content: center;
    padding: 12px 0;
  }
}

.hidden {
  display: none !important;
}
