:root {
    --bg: #060606;
    --panel: #0d0808;
    --panel-2: #130909;
    --line: rgba(255,255,255,0.08);
    --text: #f5f5f7;
    --muted: #9b9ba3;
    --accent-1: #7d0000;
    --accent-2: #d10000;
    --success: #23d18b;
    --warning: #ff3b3b;
    --danger: #ff5d5d;
    --shadow: 0 20px 50px rgba(0,0,0,0.35);
    --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background: radial-gradient(circle at top left, rgba(125,0,0,0.18), transparent 35%), radial-gradient(circle at top right, rgba(209,0,0,0.12), transparent 30%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 300px 1fr; }
.sidebar { background: rgba(7,7,9,0.95); border-right: 1px solid var(--line); padding: 24px 18px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 20px; }
.sidebar__brand { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,0.02); }
.sidebar__brand img { width: 48px; height: 48px; object-fit: contain; }
.sidebar__brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.profile-card { padding: 20px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border: 1px solid var(--line); text-align: center; }
.profile-card__avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 2px solid rgba(209,0,0,0.85); }
.profile-card__name { font-size: 20px; font-weight: 800; }
.profile-card__meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.profile-card__status { margin: 14px auto 0; width: fit-content; padding: 8px 14px; border-radius: 999px; background: rgba(255,93,93,0.12); color: var(--danger); font-weight: 700; font-size: 12px; }
.profile-card__status.ok { background: rgba(35,209,139,0.12); color: var(--success); }
.sidebar__nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar__nav a, .ghost-link { padding: 13px 14px; border-radius: 16px; color: #d7d7dc; transition: 0.18s ease; border: 1px solid transparent; }
.sidebar__nav a:hover, .ghost-link:hover { background: rgba(255,255,255,0.04); border-color: var(--line); }
.sidebar__nav a.active { background: linear-gradient(90deg, rgba(125,0,0,0.26), rgba(209,0,0,0.18)); border-color: rgba(209,0,0,0.28); color: #fff; }
.sidebar__bottom { margin-top: auto; display: grid; gap: 8px; }
.ghost-link.danger { color: #ffc3c3; }
.content { padding: 28px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.topbar h1 { margin: 0; font-size: clamp(28px, 3vw, 56px); line-height: 1; }
.topbar p { margin: 8px 0 0; color: var(--muted); }
.topbar__actions { display: flex; gap: 12px; }
.menu-toggle { display: none; background: transparent; color: white; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.hero-card, .panel { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; padding: 30px; margin-bottom: 22px; }
.hero-card h2 { margin: 8px 0 12px; font-size: clamp(28px, 3vw, 44px); }
.hero-card p { color: var(--muted); max-width: 720px; }
.eyebrow { color: var(--warning); font-weight: 700; letter-spacing: 0.18em; font-size: 12px; }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-card, .stat-panel { padding: 22px; }
.stat-card span, .stat-panel span { color: var(--muted); display: block; margin-bottom: 10px; }
.stat-card strong, .stat-panel strong { font-size: 24px; }
.grid { display: grid; gap: 20px; margin-bottom: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.panel { padding: 22px; }
.panel__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.panel__header h3 { margin: 0; font-size: 24px; }
.panel__header p { margin: 6px 0 0; color: var(--muted); }
.panel__header.between { align-items: flex-start; }
.accent-panel { background: radial-gradient(circle at top right, rgba(255,143,31,0.08), transparent 40%), linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)); }
.quick-links { display: grid; gap: 10px; }
.quick-links a { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.quick-links a:hover { border-color: rgba(209,0,0,0.35); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border-radius: 16px; border: 0; cursor: pointer; font-weight: 700; transition: 0.18s ease; }
.btn--primary { background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); color: #fff; }
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--soft { background: rgba(179,0,0,0.14); color: #ffb1b1; border: 1px solid rgba(179,0,0,0.28); }
.btn--mini { padding: 10px 12px; font-size: 13px; border-radius: 12px; background: rgba(179,0,0,0.14); color: #ffb1b1; border: 1px solid rgba(179,0,0,0.28); }
.list-card { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.list-card strong { display: block; margin-bottom: 6px; }
.list-card p { margin: 0 0 6px; color: var(--muted); }
.list-card span { color: var(--muted); font-size: 13px; }
.list-card--link:hover { border-color: rgba(209,0,0,0.35); }
.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 12px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.full { grid-column: 1 / -1; }
.form-grid label { display: grid; gap: 8px; color: var(--muted); }
.form-grid label span { font-size: 14px; }
.form-grid input, .form-grid select, .form-grid textarea {
    width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #0a0a0d; color: var(--text);
}
.form-grid textarea { resize: vertical; min-height: 100px; }
.form-grid .full { grid-column: 1 / -1; }
.flash { padding: 14px 16px; border-radius: 16px; margin-bottom: 16px; font-weight: 600; }
.flash--success { background: rgba(35,209,139,0.1); border: 1px solid rgba(35,209,139,0.22); color: #b9f2db; }
.flash--error { background: rgba(255,93,93,0.1); border: 1px solid rgba(255,93,93,0.22); color: #ffc3c3; }
.flash--info { background: rgba(32,151,243,0.10); border: 1px solid rgba(32,151,243,0.22); color: #cbe6ff; }
.conversation { display: grid; gap: 14px; }
.bubble { padding: 16px; border-radius: 18px; border: 1px solid var(--line); }
.bubble p { margin: 10px 0; color: #eaeaf0; }
.bubble span { color: var(--muted); font-size: 13px; }
.bubble--user { background: rgba(255,255,255,0.02); }
.bubble--staff { background: linear-gradient(90deg, rgba(255,45,122,0.08), rgba(255,143,31,0.08)); }
.status { display: inline-flex; padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.status--abierto, .status--pendiente { color: #ffd54f; background: rgba(255,207,68,0.1); }
.status--en-revisión, .status--respondido { color: #a6d5ff; background: rgba(32,151,243,0.12); }
.status--aceptada { color: #b9f2db; background: rgba(35,209,139,0.1); }
.status--cerrado, .status--rechazada { color: #ffc3c3; background: rgba(255,93,93,0.1); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 8px 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.muted { color: var(--muted); }
.meta-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.meta-row:last-child { border-bottom: 0; }
.donation-card { position: relative; overflow: hidden; }
.donation-card__badge { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: rgba(179,0,0,0.14); color: #ffb1b1; margin-bottom: 18px; }
.donation-card__bonus { color: #ffb1b1; font-weight: 700; margin: 18px 0 12px; }
.donation-card__price { font-size: 36px; font-weight: 800; margin: 18px 0; }
.detail-box { background: rgba(255,255,255,0.02); border: 1px solid var(--line); padding: 18px; border-radius: 18px; margin-bottom: 18px; line-height: 1.7; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer { margin-top: 24px; color: var(--muted); text-align: center; padding-bottom: 12px; }
.narrow-panel { max-width: 720px; }
.install-list { color: var(--muted); line-height: 1.8; }
code { background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 8px; }

@media (max-width: 1180px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hero-card { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: -320px; z-index: 30; width: 300px; transition: 0.2s ease; }
    .sidebar.open { left: 0; }
    .content { padding: 18px; }
    .menu-toggle { display: inline-flex; }
    .topbar { align-items: flex-start; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .topbar { flex-wrap: wrap; }
    .hero-actions, .topbar__actions { width: 100%; }
    .btn { width: 100%; }
    .hero-stat-grid { grid-template-columns: 1fr; }
    .list-card, .meta-row { flex-direction: column; align-items: flex-start; }
}

.clean-list { margin: 10px 0 0; padding-left: 18px; }
.clean-list li { margin-bottom: 8px; color: #e9e9ef; }
.compact-box { padding: 14px; margin-bottom: 0; }
.compact-grid { margin-bottom: 0; }
.small-price { font-size: 24px; }
.donation-mini-card { padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.rule-card {
    text-align: left;
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    cursor: pointer;
    transition: 0.18s ease;
}
.rule-card:hover { border-color: rgba(209,0,0,0.35); transform: translateY(-1px); }
.rule-card strong { display: block; font-size: 17px; margin-bottom: 8px; }
.rule-card span { color: var(--muted); font-size: 14px; }
.legacy-content { line-height: 1.7; color: #e9e9ef; }
.legacy-content h1, .legacy-content h2, .legacy-content h3, .legacy-content h4 { color: #fff; }
.legacy-content table { min-width: 100%; }
.modal { position: fixed; inset: 0; display: none; z-index: 60; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(8px); }
.modal__dialog {
    position: relative;
    width: min(960px, calc(100% - 24px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(12,12,16,0.98), rgba(8,8,11,0.98));
    box-shadow: var(--shadow);
    overflow: hidden;
}
.modal__dialog--xl { width: min(1100px, calc(100% - 24px)); }
.modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid var(--line);
}
.modal__header h3 { margin: 0; font-size: 26px; }
.modal__header p { margin: 6px 0 0; color: var(--muted); }
.modal__close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.modal__body { padding: 22px; overflow: auto; max-height: calc(100vh - 140px); }
body.modal-open { overflow: hidden; }

@media (max-width: 1180px) {
    .rules-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
    .rules-grid { grid-template-columns: 1fr; }
}

.gallery-grid-new{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gallery-grid-new img{width:100%;height:220px;object-fit:cover;border-radius:18px;border:1px solid var(--line)}.list-card--column{align-items:flex-start;flex-direction:column}.mini-section{margin-top:12px}.server-chip{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,0.03);border:1px solid var(--line)}.status-dot{width:10px;height:10px;border-radius:50%;display:inline-block;background:#6b1a1a}.status-dot.is-online{background:#38d27f}.topbar__actions--status{align-items:center}.profile-card__name{font-size:18px}.profile-card__avatar{background:#120909}@media(max-width:900px){.gallery-grid-new{grid-template-columns:1fr 1fr}}@media(max-width:640px){.gallery-grid-new{grid-template-columns:1fr}}


.app-shell--minimal { grid-template-columns: 1fr; }
.app-shell--minimal .content { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.topbar--minimal { margin-bottom: 18px; }
.install-shell { width: 100%; display: flex; justify-content: center; }
.install-panel { width: min(1080px, 100%); padding: 34px; }
.install-panel__intro { margin-bottom: 22px; }
.install-panel__intro h2 { margin: 10px 0 10px; font-size: clamp(34px, 4vw, 52px); }
.install-panel__intro p { margin: 0; color: var(--muted); max-width: 720px; }
.install-grid { margin: 0 0 18px; }
.install-box { margin-bottom: 0; height: 100%; }
.install-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.install-info-grid { grid-template-columns: repeat(4, minmax(0,1fr)); margin: 0 0 20px; }
.install-db-label { font-size: .95rem; word-break: break-word; }
.info-grid { display: grid; gap: 14px; }
.info-card { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.info-card span { display: block; color: var(--muted); margin-bottom: 8px; }
.info-card strong { display: block; font-size: 1.08rem; }
@media (max-width: 900px) {
  .install-info-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .install-panel { padding: 22px; }
  .install-info-grid { grid-template-columns: 1fr; }
  .install-actions { flex-direction: column; }
}
