/* ════════════════════════════════════════
   ConditionsMod Wiki — style.css
   ════════════════════════════════════════ */

:root {
  --bg:      #0f1117;
  --bg2:     #161b27;
  --bg3:     #1e2535;
  --border:  #2a3147;
  --accent:  #4ade80;
  --accent2: #22d3ee;
  --accent3: #a78bfa;
  --text:    #e2e8f0;
  --text2:   #94a3b8;
  --text3:   #64748b;
  --code-bg: #111827;
  --sidebar: 260px;
  --ease:    .2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  display: flex;
  min-height: 100vh;
}

/* ══════════════════════════════
   LOADING SCREEN
══════════════════════════════ */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease;
}

.loading-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  text-align: center;
}

.loading-ring-wrap {
  position: relative;
  width: 92px; height: 92px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}

.loading-ring {
  position: absolute; inset: 0;
  border: 3px solid rgba(74,222,128,.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-ring-outer {
  position: absolute; inset: -10px;
  border: 2px solid rgba(34,211,238,.1);
  border-bottom-color: var(--accent2);
  border-radius: 50%;
  animation: spin 1.6s linear infinite reverse;
}

.loading-icon {
  font-size: 2.4rem;
  animation: pulse-icon 1.4s ease-in-out infinite;
}

.loading-title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text); letter-spacing: -.01em;
}

.progress-bar-wrap {
  width: 240px; height: 4px;
  background: var(--border); border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px; width: 0;
  animation: fill-bar 2.7s cubic-bezier(.4,0,.2,1) forwards;
}

.loading-sub {
  color: var(--accent); font-size: .92rem; font-weight: 600;
  animation: fade-pulse 2s ease-in-out infinite;
}

@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes pulse-icon  { 0%,100% { transform:scale(1); } 50% { transform:scale(1.12); } }
@keyframes fade-pulse  { 0%,100% { opacity:.6; } 50% { opacity:1; } }
@keyframes fill-bar    { 0%{width:0} 25%{width:30%} 60%{width:68%} 85%{width:88%} 100%{width:100%} }

/* ══════════════════════════════
   MODAL
══════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
}
.modal-overlay.hidden { display: none; }

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  text-align: center;
  max-width: 380px; width: 90%;
  animation: slide-up .28s ease;
}
.modal-icon { font-size: 3rem; margin-bottom: 12px; }
.modal-box h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--text); }
.modal-box p  { color: var(--text2); margin-bottom: 22px; font-size: .93rem; }
.modal-box button {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; border-radius: 8px;
  color: #000; font-weight: 700; font-size: .88rem;
  padding: 10px 28px; cursor: pointer;
  transition: opacity var(--ease), transform var(--ease);
}
.modal-box button:hover { opacity: .85; transform: scale(1.04); }

/* ══════════════════════════════
   SIDEBAR
══════════════════════════════ */
#sidebar {
  width: var(--sidebar);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex; flex-direction: column;
  transition: transform .3s ease;
}
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-header {
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
}
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  animation: pulse-logo 3s ease-in-out infinite;
}
@keyframes pulse-logo {
  0%,100% { box-shadow: 0 0 12px rgba(74,222,128,.2); }
  50%      { box-shadow: 0 0 28px rgba(74,222,128,.5); }
}
.logo-text    { font-weight: 700; font-size: 14.5px; color: var(--text); }
.logo-version {
  font-size: 11px; color: var(--text3);
  background: var(--bg3); border-radius: 4px;
  padding: 1px 6px; margin-top: 2px; display: block;
}

.nav-body { flex: 1; padding-bottom: 8px; }
.nav-section { padding: 14px 10px 4px; }
.nav-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text3);
  padding: 0 8px; margin-bottom: 4px;
}
.nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 6px;
  color: var(--text2); font-size: 13.5px;
  cursor: pointer; user-select: none;
  transition: background var(--ease), color var(--ease);
}
.nav-link:hover  { background: var(--bg3); color: var(--text); }
.nav-link.active { background: rgba(74,222,128,.1); color: var(--accent); font-weight: 600; }
.nav-link .icon  { font-size: 14px; opacity: .8; flex-shrink: 0; }
.nav-link.wip    { color: var(--text3); }
.nav-link.wip:hover { color: var(--text2); }
.wip-badge {
  margin-left: auto; font-size: 9px; font-weight: 700;
  background: rgba(167,139,250,.15); color: var(--accent3);
  border: 1px solid rgba(167,139,250,.25);
  border-radius: 20px; padding: 1px 7px; flex-shrink: 0;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 9px 12px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text2);
  font-size: 13px; cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}
.lang-btn:hover { border-color: var(--accent2); color: var(--text); }
#lang-flag { font-size: 1.1rem; }

/* ══════════════════════════════
   MAIN / PAGE CONTENT
══════════════════════════════ */
#main { margin-left: var(--sidebar); flex: 1; min-height: 100vh; }

#page-content {
  max-width: 860px;
  padding: 48px 52px;
}

.page-anim {
  animation: fade-in .38s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════
   TYPOGRAPHY
══════════════════════════════ */
h1 {
  font-size: 2.1rem; font-weight: 800; line-height: 1.2;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
h2 {
  font-size: 1.38rem; font-weight: 700; color: var(--text);
  margin: 40px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
h3 { font-size: 1.04rem; font-weight: 600; color: var(--accent2); margin: 26px 0 8px; }
.lead { color: var(--text2); font-size: 1.02rem; margin-bottom: 28px; max-width: 640px; }
p  { margin-bottom: 10px; color: var(--text2); }
ul, ol { padding-left: 22px; color: var(--text2); margin-bottom: 10px; }
li { margin-bottom: 3px; }
strong { color: var(--text); }

/* ══════════════════════════════
   BADGES
══════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  padding: 2px 7px; border-radius: 20px;
}
.badge-green  { background: rgba(74,222,128,.1);  color: var(--accent);  border: 1px solid rgba(74,222,128,.25); }
.badge-blue   { background: rgba(34,211,238,.1);  color: var(--accent2); border: 1px solid rgba(34,211,238,.25); }
.badge-purple { background: rgba(167,139,250,.1); color: var(--accent3); border: 1px solid rgba(167,139,250,.25); }

/* ══════════════════════════════
   ALERTS
══════════════════════════════ */
.alert {
  border-radius: 8px; padding: 12px 16px;
  margin: 16px 0; font-size: .9rem;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert-icon { font-size: .95rem; margin-top: 2px; flex-shrink: 0; }
.alert-tip  { background: rgba(74,222,128,.07);  border-left: 3px solid var(--accent); }
.alert-info { background: rgba(34,211,238,.07);  border-left: 3px solid var(--accent2); }
.alert-warn { background: rgba(251,191,36,.07);  border-left: 3px solid #fbbf24; }
.alert p    { color: var(--text2); margin: 0; }

/* ══════════════════════════════
   CODE BLOCKS
══════════════════════════════ */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px; margin: 14px 0;
  overflow: hidden;
  transition: border-color var(--ease);
}
.code-block:hover { border-color: rgba(34,211,238,.35); }
.code-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 14px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--border);
}
.code-lang { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lang-json { color: #fbbf24; }
.lang-java { color: #f97316; }
.lang-bash { color: var(--accent); }
.copy-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text3); font-size: 11px;
  padding: 2px 10px; border-radius: 4px; cursor: pointer;
  transition: all var(--ease);
}
.copy-btn:hover  { border-color: var(--accent2); color: var(--accent2); }
.copy-btn.copied { border-color: var(--accent);  color: var(--accent); }

pre {
  padding: 16px 18px; overflow-x: auto;
  font-size: 12.8px; line-height: 1.65;
}
pre::-webkit-scrollbar { height: 4px; }
pre::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
code { font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace; }

/* syntax highlight */
.s-key  { color: #7dd3fc; }
.s-str  { color: #86efac; }
.s-num  { color: #fdba74; }
.s-bool { color: #c084fc; }
.s-cmt  { color: #4b5563; font-style: italic; }
.s-var  { color: #f9a8d4; }
.s-cmd  { color: var(--accent); }

/* inline code in prose */
p code, li code, td code {
  background: var(--bg3); color: var(--accent3);
  padding: 1px 5px; border-radius: 4px; font-size: .87em;
  font-family: 'Cascadia Code', Consolas, monospace;
}

/* ══════════════════════════════
   TABLES
══════════════════════════════ */
.table-wrap {
  overflow-x: auto; margin: 14px 0;
  border-radius: 10px; border: 1px solid var(--border);
}
table  { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  background: var(--bg3); color: var(--text2);
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 9px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
}
td { padding: 8px 14px; border-bottom: 1px solid rgba(42,49,71,.5); color: var(--text2); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

/* ══════════════════════════════
   EVENT GRID
══════════════════════════════ */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 11px; margin: 18px 0;
}
.event-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 15px;
  cursor: pointer; user-select: none;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.event-card:hover {
  border-color: var(--accent2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.event-card-icon { font-size: 1.45rem; margin-bottom: 7px; }
.event-card-name { font-weight: 700; font-size: .88rem; color: var(--text); font-family: monospace; }
.event-card-desc { font-size: .76rem; color: var(--text3); margin-top: 3px; }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  background: linear-gradient(135deg, rgba(74,222,128,.05) 0%, rgba(34,211,238,.05) 50%, rgba(167,139,250,.05) 100%);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 30px 28px; margin-bottom: 34px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(74,222,128,.09), transparent 70%);
  pointer-events: none;
}
.hero-flow {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; flex-wrap: wrap;
}
.flow-step {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 16px;
  font-weight: 700; font-size: .87rem;
}
.flow-arrow { color: var(--accent2); font-size: 1.1rem; }

/* ══════════════════════════════
   PLATFORM CARDS (install)
══════════════════════════════ */
.platform-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin: 16px 0;
}
.platform-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px;
}
.platform-card.client { border-color: rgba(34,211,238,.3); }
.platform-card.server { border-color: rgba(74,222,128,.3); }
.platform-icon  { font-size: 1.8rem; margin-bottom: 8px; }
.platform-title { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.platform-path  {
  font-family: monospace; font-size: .8rem; color: var(--accent3);
  background: var(--bg3); padding: 4px 8px;
  border-radius: 4px; display: inline-block; margin-top: 4px;
}
.platform-desc  { font-size: .82rem; color: var(--text3); margin-top: 6px; }

/* ══════════════════════════════
   COMMAND ITEMS
══════════════════════════════ */
.cmd-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 10px;
  transition: border-color var(--ease);
}
.cmd-item:hover { border-color: var(--accent3); }
.cmd-name { font-family: monospace; font-size: .95rem; font-weight: 700; color: var(--accent); margin-bottom: 5px; }
.cmd-desc { font-size: .87rem; color: var(--text2); }

/* ══════════════════════════════
   STEPS (numbered)
══════════════════════════════ */
.steps { list-style: none; padding: 0; counter-reset: steps; }
.steps li {
  counter-increment: steps;
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 18px;
}
.steps li::before {
  content: counter(steps);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000; font-weight: 800; font-size: .78rem;
  min-width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 3px;
}

/* ══════════════════════════════
   MENU TOGGLE (mobile)
══════════════════════════════ */
.menu-toggle {
  display: none;
  position: fixed; top: 14px; left: 14px; z-index: 200;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
  cursor: pointer; color: var(--text); font-size: 16px;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 860px) {
  #sidebar { transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); }
  #main { margin-left: 0; }
  #page-content { padding: 72px 20px 30px; }
  .event-grid { grid-template-columns: 1fr 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
}
@media (max-width: 480px) {
  .event-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
}

/* ══════════════════════════════
   SCROLLBAR
══════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ══════════════════════════════
   COMUNIDAD — SESSION BAR
══════════════════════════════ */
.cm-session-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.cm-session-bar--guest {
  background: rgba(88,101,242,.06);
  border-color: rgba(88,101,242,.25);
}
.cm-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}
.cm-avatar-placeholder {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.cm-username {
  font-weight: 700; font-size: .92rem; color: var(--text);
}
.cm-guest-text {
  font-size: .88rem; color: var(--text2); flex: 1;
}
.cm-session-actions { display: flex; gap: 8px; margin-left: auto; }

/* Discord login button */
.cm-discord-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: #5865f2; color: #fff;
  padding: 9px 18px; border-radius: 8px;
  font-size: .87rem; font-weight: 700;
  text-decoration: none; margin-left: auto;
  transition: background var(--ease), transform var(--ease);
  white-space: nowrap;
}
.cm-discord-btn:hover { background: #4752c4; transform: translateY(-1px); }

/* ══════════════════════════════
   COMUNIDAD — BOTONES
══════════════════════════════ */
.cm-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 7px;
  font-size: .82rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: opacity var(--ease), transform var(--ease), background var(--ease);
  white-space: nowrap;
}
.cm-btn:hover { opacity: .85; transform: translateY(-1px); }
.cm-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000;
}
.cm-btn-ghost {
  background: var(--bg3); color: var(--text2);
  border: 1px solid var(--border);
}
.cm-btn-ghost:hover { color: var(--text); border-color: var(--accent2); }
.cm-btn-upload {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000;
}
.cm-btn-install {
  background: rgba(74,222,128,.12); color: var(--accent);
  border: 1px solid rgba(74,222,128,.3);
}
.cm-btn-install:hover { background: rgba(74,222,128,.2); }
.cm-btn-comments {
  background: rgba(34,211,238,.08); color: var(--accent2);
  border: 1px solid rgba(34,211,238,.25);
}
.cm-btn-comments:hover { background: rgba(34,211,238,.15); }
.cm-btn-send {
  background: var(--bg3); color: var(--text2);
  border: 1px solid var(--border); padding: 6px 12px;
}
.cm-btn-send:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════
   COMUNIDAD — GRID DE CARDS
══════════════════════════════ */
.cm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px; margin-top: 6px;
}

/* ══════════════════════════════
   COMUNIDAD — CARD
══════════════════════════════ */
.cm-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .22s, box-shadow .22s;
}
.cm-card:hover {
  border-color: rgba(34,211,238,.3);
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.cm-card-header {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.cm-type-badge {
  font-family: monospace; font-size: .72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; flex-shrink: 0;
}
.cm-official-badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  background: rgba(251,191,36,.1); color: #fbbf24;
  border: 1px solid rgba(251,191,36,.3);
  padding: 2px 7px; border-radius: 20px;
}
.cm-card-name {
  font-size: 1rem; font-weight: 700; color: var(--text);
  line-height: 1.3;
}
.cm-card-desc {
  font-size: .82rem; color: var(--text2); line-height: 1.5;
}
.cm-card-creator {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--text3);
}
.cm-card-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.cm-card-preview {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: 7px; overflow: hidden;
}
.cm-card-preview pre {
  padding: 10px 12px; font-size: 11px;
  line-height: 1.55; color: var(--text2);
  white-space: pre-wrap; word-break: break-all;
  max-height: 110px; overflow: hidden;
}
.cm-card-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: auto; padding-top: 4px;
}

/* ══════════════════════════════
   COMUNIDAD — COMENTARIOS
══════════════════════════════ */
.cm-comments-panel {
  border-top: 1px solid var(--border);
  padding-top: 12px; margin-top: 4px;
}
.cm-comments-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 10px;
}
.cm-comment {
  background: var(--bg3); border-radius: 7px;
  padding: 8px 11px; font-size: .81rem;
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: baseline;
}
.cm-comment-author {
  font-weight: 700; color: var(--accent2);
  white-space: nowrap; flex-shrink: 0;
}
.cm-comment-author::after { content: ':'; }
.cm-comment-text { color: var(--text2); }
.cm-no-comments {
  font-size: .8rem; color: var(--text3);
  font-style: italic; margin: 0;
}
.cm-comment-form {
  display: flex; gap: 8px; align-items: center;
}
.cm-cinput {
  flex: 1; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 7px 11px; color: var(--text); font-size: .82rem;
  outline: none;
  transition: border-color var(--ease);
}
.cm-cinput:focus { border-color: var(--accent2); }

/* ══════════════════════════════
   COMUNIDAD — MODAL SUBIDA
══════════════════════════════ */
.cm-upload-box {
  max-width: 520px !important;
  text-align: left !important;
}
.cm-upload-form {
  display: flex; flex-direction: column; gap: 6px;
  margin: 14px 0; text-align: left;
}
.cm-label {
  font-size: .8rem; font-weight: 600;
  color: var(--text2); margin-top: 6px;
  display: block;
}
.cm-input {
  width: 100%; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 7px;
  padding: 9px 12px; color: var(--text); font-size: .88rem;
  outline: none; transition: border-color var(--ease);
}
.cm-input:focus { border-color: var(--accent2); }
.cm-textarea {
  width: 100%; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 7px;
  padding: 9px 12px; color: var(--text);
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: .8rem; line-height: 1.6;
  outline: none; resize: vertical; min-height: 140px;
  transition: border-color var(--ease);
}
.cm-textarea:focus { border-color: var(--accent2); }
.cm-json-error {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 6px; padding: 8px 11px;
  font-size: .81rem; color: #f87171;
  margin-top: 4px;
}
.cm-upload-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 4px;
}

/* ══════════════════════════════
   COMUNIDAD — FILTROS
══════════════════════════════ */
.cm-filter-bar {
  display: flex; gap: 7px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.cm-filter-btn {
  padding: 5px 14px; border-radius: 20px;
  font-size: .78rem; font-weight: 600;
  cursor: pointer;
  background: var(--bg3); color: var(--text2);
  border: 1px solid var(--border);
  transition: all var(--ease);
}
.cm-filter-btn:hover { border-color: var(--accent2); color: var(--text); }
.cm-filter-btn--active {
  background: rgba(74,222,128,.12); color: var(--accent);
  border-color: rgba(74,222,128,.35);
}
.cm-empty {
  text-align: center; padding: 40px 20px;
  color: var(--text3); font-size: .92rem;
  background: var(--bg2); border: 1px dashed var(--border);
  border-radius: 10px;
}

/* ══════════════════════════════
   RESPONSIVE — COMUNIDAD
══════════════════════════════ */
@media (max-width: 860px) {
  .cm-grid { grid-template-columns: 1fr; }
  .cm-session-bar { flex-direction: column; align-items: flex-start; }
  .cm-session-actions { margin-left: 0; }
  .cm-discord-btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* ══════════════════════════════
   SCROLL-TO-TOP BUTTON
══════════════════════════════ */
.scroll-top-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text2); font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, border-color .2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.scroll-top-btn.visible   { opacity: 1; pointer-events: auto; }
.scroll-top-btn:hover     { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ══════════════════════════════
   INICIO — QUICK ACCESS GRID
══════════════════════════════ */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px; margin: 22px 0 28px;
}
.quick-card {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 10px;
  cursor: pointer; user-select: none; text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.quick-card:hover {
  border-color: var(--accent2);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.quick-icon  { font-size: 1.5rem; }
.quick-label { font-size: .8rem; font-weight: 600; color: var(--text2); }

/* ══════════════════════════════
   INICIO — RELEASE BANNER
══════════════════════════════ */
.release-banner {
  background: linear-gradient(135deg, rgba(74,222,128,.06), rgba(34,211,238,.06));
  border: 1px solid rgba(74,222,128,.25);
  border-radius: 12px; padding: 20px 22px; margin: 28px 0;
}
.release-banner-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.release-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000; font-size: .75rem; font-weight: 800;
  padding: 3px 10px; border-radius: 20px; letter-spacing: .04em;
  flex-shrink: 0;
}
.release-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 7px;
}
.feat-item {
  display: flex; align-items: center; gap: 9px;
  font-size: .84rem; color: var(--text2);
}
.feat-icon { font-size: 1rem; flex-shrink: 0; }
.release-link-btn {
  background: none; border: 1px solid rgba(74,222,128,.35);
  color: var(--accent); font-size: .82rem; font-weight: 600;
  padding: 7px 16px; border-radius: 7px; cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.release-link-btn:hover { background: rgba(74,222,128,.1); transform: translateY(-1px); }
.release-link-btn--comm {
  border-color: rgba(88,101,242,.4); color: #818cf8;
}
.release-link-btn--comm:hover { background: rgba(88,101,242,.08); }

@media (max-width: 480px) {
  .quick-grid  { grid-template-columns: repeat(3, 1fr); }
  .feat-grid   { grid-template-columns: 1fr; }
  .scroll-top-btn { bottom: 16px; right: 16px; }
}
