/* ==========================================================================
   PACKSMC / FOGGIFY MODERN DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-body: #0b0e14;
  --bg-nav: #0f131a;
  --bg-card: #151922;
  --bg-card-secondary: #1a202c;
  --bg-card-border: rgba(255, 255, 255, 0.07);
  --bg-input: #1a202c;

  --color-green: #00d26a;
  --color-green-hover: #05e275;
  --color-green-glow: rgba(0, 210, 106, 0.35);
  --color-gold: #f59e0b;
  --color-gold-bg: rgba(245, 158, 11, 0.12);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.font-mono { font-family: var(--font-mono); }

/* ---------------- Top Navbar ---------------- */
.top-nav {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--bg-card-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

.nav-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-pill.active {
  background: var(--color-green);
  color: #000;
}

.pill-icon {
  width: 16px;
  height: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 8px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-center {
  flex: 1;
  max-width: 440px;
}

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

.search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 38px;
  background: var(--bg-input);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 0 46px 0 38px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.search-shortcut {
  position: absolute;
  right: 12px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn-gold {
  background: var(--color-gold-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn-green {
  background: var(--color-green);
  border: none;
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-btn-green:hover {
  background: var(--color-green-hover);
  transform: translateY(-1px);
}

.btn-svg {
  width: 15px;
  height: 15px;
}

.nav-btn-signin {
  background: transparent;
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
}

/* ---------------- Breadcrumb ---------------- */
.breadcrumb-strip {
  padding: 16px 0 8px;
}

.app-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.bc-sep {
  color: var(--text-dim);
}

.bc-current {
  color: #fff;
}

/* ---------------- Main 2-Column Layout ---------------- */
.main-layout {
  padding: 12px 0 60px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 28px;
  align-items: start;
}

/* ---------------- Left Column: Viewer & Details ---------------- */
.viewer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.viewer-mode-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab svg {
  width: 14px;
  height: 14px;
}

.mode-tab.active {
  background: rgba(0, 210, 106, 0.12);
  border-color: rgba(0, 210, 106, 0.4);
  color: var(--color-green);
}

/* Screen Viewport */
.screen-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.screen-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.viewport-overlay-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}

.tag-counter {
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--bg-card-border);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
}

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

.tag-meta {
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--bg-card-border);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
}

.screen-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0.85;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.watermark-icon {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 16px rgba(0, 210, 106, 0.5));
}

.watermark-text {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.screen-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 19, 26, 0.8);
  border: 1px solid var(--bg-card-border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.screen-nav-arrow:hover {
  background: rgba(0, 210, 106, 0.9);
  color: #000;
  border-color: var(--color-green);
}

.arrow-prev { left: 16px; }
.arrow-next { right: 16px; }

.screen-nav-arrow svg {
  width: 20px;
  height: 20px;
}

.btn-auto-play {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(11, 14, 20, 0.85);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  transition: color 0.2s ease;
}

.btn-auto-play svg {
  width: 13px;
  height: 13px;
}

.btn-auto-play:hover {
  color: #fff;
}

.btn-auto-play.active {
  color: var(--color-green);
  border-color: var(--color-green);
}

/* Thumbnail Carousel Strip */
.thumb-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px;
}

.thumb-strip::-webkit-scrollbar {
  height: 6px;
}
.thumb-strip::-webkit-scrollbar-thumb {
  background: var(--bg-card-border);
  border-radius: 3px;
}

.thumb-item {
  position: relative;
  width: 106px;
  height: 62px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #000;
  transition: all 0.2s ease;
  padding: 0;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.thumb-item:hover img {
  opacity: 1;
}

.thumb-item.active {
  border-color: var(--color-green);
}

.thumb-item.active img {
  opacity: 1;
}

.thumb-badge {
  position: absolute;
  bottom: 3px;
  left: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Details Card */
.details-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.details-tab-bar {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--bg-card-border);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.d-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.d-tab:hover {
  color: #fff;
}

.d-tab.active {
  color: var(--color-green);
  background: rgba(0, 210, 106, 0.1);
}

.d-tab-content {
  display: none;
}

.d-tab-content.active {
  display: block;
}

.d-tab-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.d-tab-content p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.bullet-item {
  display: flex;
  gap: 14px;
  background: var(--bg-card-secondary);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
}

.bullet-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.bullet-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.bullet-item p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

/* Version Table */
.version-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ver-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-secondary);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
  gap: 14px;
}

.ver-row.highlight {
  border-color: rgba(0, 210, 106, 0.3);
}

.ver-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ver-file-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.pill-green {
  background: rgba(0, 210, 106, 0.15);
  color: var(--color-green);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

.pill-gray {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

.ver-details {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-table-dl {
  background: rgba(0, 210, 106, 0.15);
  border: 1px solid var(--color-green);
  color: var(--color-green);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-table-dl:hover {
  background: var(--color-green);
  color: #000;
}

.clean-dep-list, .clean-steps-list {
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.92rem;
}

.clean-dep-list strong, .clean-steps-list strong {
  color: var(--text-main);
}

/* ---------------- RIGHT COLUMN: PacksMC Sidebar Card ---------------- */
.sidebar-col {
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* Rank Badge */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-gold-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 20px;
  width: max-content;
}

/* Mod Title & Live Row */
.mod-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.live-activity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.live-activity-row strong {
  color: #fff;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
  animation: pulse 1.8s infinite;
}

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

.live-sep {
  color: var(--text-dim);
}

/* Creator Profile Box */
.creator-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
}

.creator-avatar-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

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

.creator-info {
  flex: 1;
}

.creator-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  display: block;
}

.creator-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.creator-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.verified-badge {
  font-size: 0.72rem;
  color: var(--color-green);
  font-weight: 900;
}

.btn-follow {
  background: rgba(0, 210, 106, 0.12);
  border: 1px solid rgba(0, 210, 106, 0.3);
  color: var(--color-green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-follow:hover {
  background: var(--color-green);
  color: #000;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  background: var(--bg-card-secondary);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
}

.stat-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  transition: transform 0.2s ease;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.stat-svg {
  width: 12px;
  height: 12px;
}

#btn-like-trigger {
  cursor: pointer;
}

#btn-like-trigger:hover .heart-svg {
  color: #ef4444;
  transform: scale(1.15);
}

.heart-svg.liked {
  color: #ef4444;
  fill: #ef4444;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--bg-card-border);
}

.counter-bump {
  animation: numBump 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes numBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); color: var(--color-green); }
  100% { transform: scale(1); }
}

/* Edition Selector */
.edition-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.edition-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.edition-pill.active {
  background: rgba(0, 210, 106, 0.12);
  border-color: rgba(0, 210, 106, 0.4);
  color: var(--color-green);
}

.edition-icon {
  font-size: 0.95rem;
}

/* Version Dropdown Selector (PacksMC Style) */
.version-selector-container {
  position: relative;
}

.version-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-secondary);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  text-align: left;
}

.version-dropdown-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.ver-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-icon {
  color: var(--color-green);
  font-weight: 900;
  font-size: 1rem;
}

.ver-text-wrap {
  display: flex;
  flex-direction: column;
}

.ver-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.ver-badge-rec {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-green);
}

.chevron-icon {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.version-selector-container.open .chevron-icon {
  transform: rotate(180deg);
}

.version-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #171c26;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  z-index: 50;
  display: none;
}

.version-selector-container.open .version-dropdown-menu {
  display: block;
}

.dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

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

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-item.active {
  background: rgba(0, 210, 106, 0.08);
}

.item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-check {
  color: var(--color-green);
  font-weight: 900;
  opacity: 0;
}

.dropdown-item.active .item-check {
  opacity: 1;
}

.item-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-rec {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--color-green);
  background: rgba(0, 210, 106, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

.item-sub {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Big Green Download Button */
.btn-main-download {
  width: 100%;
  background: var(--color-green);
  color: #000;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 6px 24px var(--color-green-glow);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: none;
}

.btn-main-download:hover {
  background: var(--color-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 210, 106, 0.55);
}

.dl-icon-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.dl-btn-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dl-btn-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.dl-btn-file {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
}

/* Secondary Button */
.btn-secondary-action {
  width: 100%;
  background: transparent;
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-action:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.action-svg {
  width: 16px;
  height: 16px;
}

/* Social Action Bar */
.action-icon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  border-top: 1px solid var(--bg-card-border);
}

.action-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-icon-btn svg {
  width: 18px;
  height: 18px;
}

.action-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Bottom Creator Message Card */
.creator-free-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.creator-free-card strong {
  color: #fff;
}

.heart-green {
  font-size: 1.1rem;
}

/* ---------------- Toast Popup ---------------- */
.toast-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #171c26;
  border: 1px solid var(--color-green);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 2000;
}

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

.toast-icon {
  color: var(--color-green);
  font-weight: 900;
}

.toast-text {
  font-size: 0.88rem;
  font-weight: 700;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-col {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-btn-gold {
    display: none;
  }
  .nav-center {
    display: none;
  }
  .screen-watermark {
    display: none;
  }
}

/* ==========================================================================
   DEPENDENCIES SECTION STYLES (MODRINTH VERIFIED)
   ========================================================================== */
.deps-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.deps-subtext {
  color: var(--text-dim) !important;
  font-size: 0.85rem !important;
  margin-top: -6px;
  margin-bottom: 0 !important;
}

.dep-version-switch {
  display: flex;
  background: var(--bg-card-secondary);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
}

.dep-switch-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dep-switch-btn:hover {
  color: #fff;
}

.dep-switch-btn.active {
  background: var(--color-green);
  color: #000;
  box-shadow: 0 2px 8px var(--color-green-glow);
}

.dep-cards-group {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.dep-cards-group.active {
  display: flex;
}

.dep-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-secondary);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  gap: 18px;
  transition: all 0.2s ease;
}

.dep-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.dep-card.highlight-sodium {
  border-color: rgba(0, 210, 106, 0.35);
  background: linear-gradient(135deg, rgba(0, 210, 106, 0.04) 0%, rgba(23, 28, 38, 0.95) 100%);
}

.dep-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.dep-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

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

.dep-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dep-name-row strong {
  font-size: 0.98rem;
  color: #fff;
}

.badge-required {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}

.badge-recommended {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-green);
  background: rgba(0, 210, 106, 0.15);
  border: 1px solid rgba(0, 210, 106, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}

.dep-meta {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.dep-desc {
  font-size: 0.84rem !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.btn-modrinth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27, 217, 106, 0.1);
  border: 1px solid rgba(27, 217, 106, 0.3);
  color: #1bd96a;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-modrinth:hover {
  background: #1bd96a;
  color: #0d1117;
  box-shadow: 0 4px 14px rgba(27, 217, 106, 0.4);
  transform: translateY(-1px);
}

.btn-modrinth-sodium {
  background: #1bd96a;
  color: #0d1117;
  font-weight: 900;
}

.btn-modrinth-sodium:hover {
  background: #25f479;
}

.modrinth-m {
  background: #1bd96a;
  color: #0d1117;
  font-weight: 900;
  font-size: 0.72rem;
  width: 17px;
  height: 17px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-modrinth:hover .modrinth-m {
  background: #0d1117;
  color: #1bd96a;
}

/* ==========================================================================
   COMMENTS & REACTIONS SECTION STYLES
   ========================================================================== */
.comments-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comments-header h3 {
  margin-bottom: 4px !important;
}

.comments-header p {
  color: var(--text-dim) !important;
  font-size: 0.88rem !important;
  margin-bottom: 0 !important;
}

.comment-form {
  background: var(--bg-card-secondary);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row-top {
  display: flex;
  gap: 12px;
}

.comment-input-name {
  flex: 1;
  background: #131720;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.88rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.comment-input-name:focus, .comment-textarea:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 2px rgba(0, 210, 106, 0.15);
}

.btn-post-comment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-green);
  border: none;
  color: #000;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-post-comment:hover {
  background: var(--color-green-hover);
  box-shadow: 0 4px 14px var(--color-green-glow);
}

.post-svg {
  width: 14px;
  height: 14px;
}

.comment-textarea {
  width: 100%;
  background: #131720;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.88rem;
  padding: 12px 14px;
  resize: vertical;
  min-height: 70px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comments-empty {
  background: var(--bg-card-secondary);
  border: 1px dashed var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.comment-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.comment-user-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #232a38;
  border: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--color-green);
  text-transform: uppercase;
}

.comment-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.comment-date {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.comment-text-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  word-break: break-word;
}

