/* SkyMTA Forum Stylesheet - XenForo 2 / ThemeHouse Dark Gaming Style */
:root {
  --bg-main: #0c0e12;
  --bg-card: #14171d;
  --bg-card-alt: #181c24;
  --bg-header: #1b2029;
  --bg-input: #101217;
  --border-color: rgba(255, 255, 255, 0.07);
  --border-active: rgba(0, 162, 255, 0.4);
  --accent-blue: #00a2ff;
  --accent-cyan: #00e1d9;
  --accent-gold: #f59e0b;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-purple: #a855f7;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #64748b;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --radius-lg: 12px;
}

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

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% 0%, rgba(0, 162, 255, 0.06) 0%, transparent 60%);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Top Bar */
.p-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.p-header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.p-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.p-logo-badge {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.p-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.p-nav-link:hover, .p-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.p-nav-link.active {
  color: var(--accent-blue);
  border-bottom: 2px solid var(--accent-blue);
  border-radius: 4px 4px 0 0;
}

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

.p-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.p-search-box input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 14px 8px 36px;
  color: #fff;
  font-size: 13px;
  width: 220px;
  transition: all 0.25s ease;
}

.p-search-box input:focus {
  outline: none;
  border-color: var(--accent-blue);
  width: 280px;
  box-shadow: 0 0 12px rgba(0, 162, 255, 0.25);
}

.p-search-box i {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 13px;
  pointer-events: none;
}

.btn-ucp {
  background: linear-gradient(135deg, var(--accent-blue), #0077cc);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 162, 255, 0.3);
}

.btn-ucp:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 162, 255, 0.5);
  color: #fff;
}

.btn-new-thread {
  background: rgba(0, 162, 255, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 162, 255, 0.4);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-new-thread:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* Breadcrumbs & Notices */
.p-sub-nav {
  background: #11141a;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.p-sub-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

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

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

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

/* Notice Banner */
.p-notice-banner {
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 0 20px;
}

.notice-box {
  background: linear-gradient(90deg, rgba(0, 162, 255, 0.12) 0%, rgba(20, 23, 29, 0.8) 100%);
  border: 1px solid rgba(0, 162, 255, 0.3);
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.notice-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notice-icon {
  width: 42px;
  height: 42px;
  background: rgba(0, 162, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 18px;
  flex-shrink: 0;
}

.notice-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.notice-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Main Container Layout */
.p-body {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  flex: 1;
  width: 100%;
}

/* Category & Nodes (XenForo Style) */
.block-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.block-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.block-header h2 i {
  color: var(--accent-blue);
}

.block-toggle {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s;
}

.block-body {
  display: flex;
  flex-direction: column;
}

/* Node Item */
.node {
  display: grid;
  grid-template-columns: 56px 1fr 140px 240px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
  cursor: pointer;
}

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

.node:hover {
  background: var(--bg-card-alt);
}

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

.node-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 16px;
  transition: all 0.2s;
}

.node:hover .node-icon {
  background: rgba(0, 162, 255, 0.15);
  border-color: var(--accent-blue);
  transform: scale(1.05);
}

.node-main {
  padding-right: 15px;
}

.node-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.node-subforums {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subforum-pill {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.subforum-pill:hover {
  background: rgba(0, 162, 255, 0.2);
  color: var(--accent-blue);
}

.node-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
  padding-right: 20px;
}

.node-stats span {
  color: var(--text-muted);
  font-weight: 600;
}

.node-lastpost {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border-color);
  font-size: 12px;
}

.lastpost-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #252a33;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.lastpost-info {
  overflow: hidden;
}

.lastpost-title {
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

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

.badge-rank {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
}

.rank-owner { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.rank-dev { background: rgba(0, 162, 255, 0.2); color: #38bdf8; border: 1px solid rgba(0, 162, 255, 0.4); }
.rank-admin { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.rank-mod { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.rank-player { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }

/* Sidebar Widgets */
.p-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.widget-title {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title i {
  color: var(--accent-blue);
}

.widget-content {
  padding: 16px 18px;
}

/* Server Status Widget */
.server-status-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.server-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.server-players-stat {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.progress-bar-bg {
  height: 8px;
  background: #252a33;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  width: 1%;
  transition: width 0.5s ease;
}

.btn-connect {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.btn-connect:hover {
  opacity: 0.9;
  color: #fff;
}

/* Latest Threads Widget */
.thread-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thread-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  cursor: pointer;
}

.thread-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #232832;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.thread-details {
  flex: 1;
  overflow: hidden;
}

.thread-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-item:hover .thread-title {
  color: var(--accent-blue);
}

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

/* Stats list */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}

.stat-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Staff widget */
.staff-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.staff-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* Modals (XenForo Thread & Create) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-fade 0.2s ease-out;
}

@keyframes modal-fade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  background: #11141a;
  border-top: 1px solid var(--border-color);
  padding: 14px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Post View in Modal */
.post-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.post-user-sidebar {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--border-color);
  padding-right: 16px;
  flex-shrink: 0;
}

.post-user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #252a33;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
}

.post-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.post-user-rank {
  margin-bottom: 10px;
}

.post-user-stats {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}

.post-content-area {
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
}

.post-meta-header {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.post-text {
  color: var(--text-main);
  white-space: pre-wrap;
}

.bbcode-quote {
  background: rgba(0, 162, 255, 0.08);
  border-left: 3px solid var(--accent-blue);
  padding: 10px 14px;
  margin: 12px 0;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Create Form in Modal */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 162, 255, 0.25);
}

.template-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.btn-template {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-template:hover {
  background: rgba(0, 162, 255, 0.15);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* Footer */
.p-footer {
  background: #11141a;
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  margin-top: auto;
  font-size: 13px;
  color: var(--text-dim);
}

.p-footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.p-footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.p-footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}

.p-footer-links a:hover {
  color: var(--accent-blue);
}

/* Responsive */
@media (max-width: 1024px) {
  .p-body {
    grid-template-columns: 1fr;
  }
  .node {
    grid-template-columns: 48px 1fr 100px;
  }
  .node-lastpost {
    display: none;
  }
}

@media (max-width: 768px) {
  .p-header-content {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
  }
  .p-nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .node {
    grid-template-columns: 40px 1fr;
  }
  .node-stats {
    display: none;
  }
  .post-container {
    flex-direction: column;
  }
  .post-user-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 12px;
  }
}

/* User Account & Dropdown Styles */
.user-menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 5px 12px 5px 6px;
  border-radius: 20px;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease;
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-blue);
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.user-dropdown-menu {
  position: absolute;
  top: 115%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 230px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  animation: dropdown-fade 0.18s ease-out;
}

.user-dropdown-menu.active {
  display: flex;
}

@keyframes dropdown-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.dropdown-user-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.dropdown-item:hover {
  background: rgba(0, 162, 255, 0.1);
  color: var(--accent-blue);
}

.dropdown-item.item-acp {
  color: #f59e0b;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.05);
}

.dropdown-item.item-acp:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.dropdown-item.item-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}

/* Auth Buttons */
.auth-guest-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-auth-login {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-auth-login:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-auth-reg {
  background: linear-gradient(135deg, var(--accent-blue), #0077cc);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 162, 255, 0.3);
}

.btn-auth-reg:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 162, 255, 0.5);
}

/* Auth Alert Banner */
.auth-alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.auth-alert:empty {
  display: none !important;
}

.auth-alert.error:not(:empty) {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.auth-alert.success:not(:empty) {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

/* Admin Control Panel (ACP) Full Modal Layout */
.modal-acp-box {
  max-width: 1100px;
  width: 95%;
  height: 85vh;
}

.acp-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: calc(85vh - 70px);
  overflow: hidden;
}

.acp-sidebar {
  background: #11141a;
  border-right: 1px solid var(--border-color);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.acp-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  transition: all 0.15s;
}

.acp-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.acp-nav-item.active {
  background: rgba(0, 162, 255, 0.15);
  color: var(--accent-blue);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.acp-content-pane {
  padding: 24px;
  overflow-y: auto;
  background: var(--bg-card);
}

.acp-tab-section {
  display: none;
}

.acp-tab-section.active {
  display: block;
}

.acp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.acp-section-header h4 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

/* ACP Stats Grid */
.acp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.acp-stat-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.acp-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.acp-stat-icon.blue { background: rgba(0, 162, 255, 0.15); color: var(--accent-blue); }
.acp-stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.acp-stat-icon.gold { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); }
.acp-stat-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

/* ACP Table */
.acp-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.acp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.acp-table th {
  background: var(--bg-header);
  padding: 12px 16px;
  color: var(--text-dim);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.acp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

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

.btn-acp-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-acp-action:hover {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.btn-acp-action.danger:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

.acp-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

