/* District RP panel - culori din logo: albastru electric + argintiu pe fundal inchis */
:root {
  --bg: #070a12;
  --bg-2: #0b1020;
  --card: #0f1628;
  --card-2: #131c33;
  --line: #1d2844;
  --text: #e6ebf5;
  --muted: #8a96b3;
  --silver: #c9d1e0;
  --blue: #2f8bff;
  --blue-2: #1a5fd6;
  --glow: rgba(47, 139, 255, 0.35);
  --ok: #2ecc71;
  --bad: #ff4d5e;
  --warn: #ffb020;
  --radius: 14px;
  --side: 250px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47, 139, 255, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: #6aaeff; }
h2, h3 { margin: 0; }
.muted { color: var(--muted); }
.mono { font-family: Consolas, 'Cascadia Mono', monospace; }

/* ---------- Sidebar ---------- */
.nav-toggle { display: none; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side);
  background: linear-gradient(180deg, #0a0f1d, #070a12);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 30;
  overflow-y: auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 16px; border-bottom: 1px solid var(--line);
  color: var(--silver); font-weight: 800; letter-spacing: 1.5px; font-size: 18px;
}
.brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 8px var(--glow)); }
.brand b { color: var(--blue); }
.sidebar nav { padding: 8px 12px 20px; }
.nav-section {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted); padding: 16px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin: 2px 0; border-radius: 10px;
  color: var(--silver); font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 19px; height: 19px; fill: currentColor; flex: none; opacity: .85; }
.nav-item:hover { background: var(--card); color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(47, 139, 255, 0.22), rgba(47, 139, 255, 0.04));
  color: #fff; box-shadow: inset 3px 0 0 var(--blue);
}
.nav-item.active svg { color: var(--blue); opacity: 1; }
.soon {
  margin-left: auto; font-style: normal; font-size: 10px; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px;
}

/* ---------- Main ---------- */
.main { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px; background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 20px; font-weight: 700; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-user form { margin: 0; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.user-chip img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--blue); object-fit: cover; }
.burger { display: none; cursor: pointer; flex-direction: column; gap: 4px; }
.burger span { width: 22px; height: 2px; background: var(--silver); border-radius: 2px; }
.content { padding: 26px 28px; flex: 1; display: flex; flex-direction: column; gap: 22px; }
.footer { padding: 18px 28px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; font-family: inherit;
}
.btn:hover { background: #4a9bff; color: #fff; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-discord { background: #5865f2; }
.btn-discord:hover { background: #6b77f5; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--silver); }
.btn-ghost:hover { background: var(--card); }

/* ---------- Carduri ---------- */
.card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.card.narrow { max-width: 640px; }
.card.center { text-align: center; margin: 40px auto; }
.card.center p { color: var(--muted); }
.card-title {
  font-size: 14px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.card-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
.message-logo { width: 120px; filter: drop-shadow(0 0 14px var(--glow)); }
.pill {
  font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600;
  background: rgba(47, 139, 255, 0.15); color: #8cc2ff; padding: 2px 10px; border-radius: 20px;
}
.empty { color: var(--muted); }

/* ---------- Statistici ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { position: relative; overflow: hidden; }
.stat::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px;
  border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%);
}
.stat-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--silver); }
.stat-value { font-size: 34px; font-weight: 700; margin: 10px 0 8px; }
.stat-value small { font-size: 18px; color: var(--muted); font-weight: 500; }
.stat-sub { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.stat-sub b { color: var(--text); }
.ok { color: var(--ok) !important; }
.bad { color: var(--bad) !important; }

.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.grid-2 h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }

/* ---------- Activitati / top ---------- */
.activity, .top, .list { list-style: none; margin: 0; padding: 0; }
.activity li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px;
  background: var(--card-2);
}
.activity .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--blue); box-shadow: 0 0 8px var(--glow); }
.activity .dot.ban { background: var(--bad); box-shadow: 0 0 8px rgba(255, 77, 94, .4); }
.activity-text { display: flex; flex-direction: column; min-width: 0; }
.activity-text span { color: var(--muted); font-size: 13px; }
.activity time { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.top li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.top li:last-child { border-bottom: 0; }
.top div { display: flex; flex-direction: column; }
.top div span { color: var(--muted); font-size: 13px; }
.top em { margin-left: auto; font-style: normal; color: #8cc2ff; font-size: 13px; }
.rank {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--silver);
}
.top li:first-child .rank { border-color: var(--blue); color: #fff; box-shadow: 0 0 10px var(--glow); }
.list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.list li span { color: var(--muted); }

/* ---------- Tabele ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); padding: 12px 16px; background: var(--card-2); white-space: nowrap;
}
td { padding: 12px 16px; border-top: 1px solid var(--line); }
tbody tr:hover { background: rgba(47, 139, 255, 0.05); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 6px;
  background: rgba(255, 255, 255, .06);
}
.badge.ok { background: rgba(46, 204, 113, .15); }
.badge.bad { background: rgba(255, 77, 94, .15); color: var(--bad); }
.badge.warn { background: rgba(255, 176, 32, .15); color: var(--warn); }
.badge.info { background: rgba(47, 139, 255, .18); color: #8cc2ff; }
.grade {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px;
  background: rgba(201, 209, 224, .12); color: var(--silver);
}
.grade-owner, .grade-coowner { background: rgba(47, 139, 255, .2); color: #9ccbff; }
.grade-head, .grade-administrator { background: rgba(255, 176, 32, .15); color: var(--warn); }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 16px; color: var(--muted); }

/* ---------- Profil ---------- */
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-head img { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--blue); box-shadow: 0 0 18px var(--glow); object-fit: cover; }
.profile-head h2 { font-size: 24px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; color: var(--muted); align-items: center; }
.profile-meta b { color: var(--text); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kv div { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; }
.kv span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.kv b { font-size: 16px; margin-top: 2px; }

/* ---------- Cereri (reclamatii / tickete / unban) ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { margin: 0; max-width: 720px; }
.tabs { margin-left: auto; display: flex; gap: 4px; text-transform: none; letter-spacing: 0; }
.tabs a { font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 12px; border-radius: 8px; }
.tabs a.active, .tabs a:hover { background: var(--card-2); color: #fff; }
.card.narrow-lg { max-width: 820px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--silver); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.form textarea { resize: vertical; min-height: 90px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--glow); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ok { background: #1e9e57; }
.btn-ok:hover { background: #25b866; }
.btn-bad { background: #c83445; }
.btn-bad:hover { background: #e0475a; }
.alert { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); margin: 12px 0; }
.alert.bad { border-color: rgba(255, 77, 94, .5); background: rgba(255, 77, 94, .1); }
.alert.warn { border-color: rgba(255, 176, 32, .5); background: rgba(255, 176, 32, .1); }
.alert.info { border-color: rgba(47, 139, 255, .5); background: rgba(47, 139, 255, .1); }
.thread { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.post header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.post header time { margin-left: auto; color: var(--muted); font-size: 13px; }
.post h2 { font-size: 20px; margin-bottom: 10px; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-evidence { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.post-staff { border-color: rgba(47, 139, 255, .45); box-shadow: inset 3px 0 0 var(--blue); }
.details dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.details dt { color: var(--muted); font-size: 13px; }
.details dd { margin: 0; text-align: right; }
.details .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.details .actions form { margin: 0; }
.details .actions .btn { width: 100%; justify-content: center; }
.details .card-subtitle { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #8a97b3); margin: 18px 0 6px; }
.details .order-act { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; }
.details .check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.details .check input { width: auto; margin-top: 2px; }
.small { font-size: 12px; }

/* ---------- Shop ---------- */
.wallet { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.wallet-name { font-size: 18px; font-weight: 700; }
.wallet-coins { font-size: 15px; color: var(--muted); }
.wallet-coins b { font-size: 28px; color: #fff; margin-right: 4px; text-shadow: 0 0 14px var(--glow); }
.wallet-actions { margin-left: auto; display: flex; gap: 10px; }
.section-title { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--silver); margin: 4px 0 12px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; gap: 8px; color: var(--text); transition: border-color .15s, transform .15s; }
.product:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--text); }
.product p { margin: 0; font-size: 14px; }
.product-name { font-size: 17px; font-weight: 700; }
.product-items { margin: 4px 0; padding-left: 18px; color: var(--silver); font-size: 14px; }
.product-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.coin b { font-size: 20px; color: #8cc2ff; }
.quote { display: grid; gap: 8px; background: var(--card-2); border: 1px solid var(--blue); border-radius: 10px; padding: 14px; }
.quote div { display: flex; justify-content: space-between; gap: 12px; }
.ref-code { font-size: 30px; font-weight: 800; letter-spacing: 4px; color: #fff; text-shadow: 0 0 16px var(--glow); margin: 6px 0 10px; }
.progress { width: 140px; height: 7px; border-radius: 4px; background: var(--card-2); overflow: hidden; margin-bottom: 4px; }
.progress span { display: block; height: 100%; background: var(--blue); }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .nav-toggle:checked ~ .sidebar { transform: none; }
  .nav-toggle:checked ~ .nav-backdrop { display: block; }
  .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 25; }
  .main { margin-left: 0; }
  .burger { display: flex; }
  .content { padding: 18px 14px; }
  .topbar { padding: 12px 14px; }
  .user-chip span, .topbar-title { display: none; }
  .stats, .grid-2, .kv { grid-template-columns: 1fr; }
}

/* ---------- Administrare (Fondator / Co-Fondator) ---------- */
.admin-search { display: flex; gap: 8px; flex: 1; max-width: 560px; }
.admin-search input { flex: 1; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.admin-ids { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.admin-ids b { color: var(--text); font-weight: 500; word-break: break-all; }
.admin-stats { margin: 18px 0; }
.admin-stats .stat-value { font-size: 26px; }
.admin-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.admin-jump a { font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card-2); }
.admin-jump a:hover { color: #fff; border-color: var(--blue); }
h2.section-title { margin-top: 26px; scroll-margin-top: 80px; }
.admin-grid { margin-top: 0; margin-bottom: 18px; align-items: start; }
.admin-grid .card { margin: 0; }
.card .card-subtitle { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 6px; }
.ok-text { color: var(--ok); }
.bad-text { color: var(--bad); }
.profile-head h2 .badge { font-size: 11px; vertical-align: middle; margin-left: 6px; }
@media (max-width: 900px) { .admin-search { max-width: none; width: 100%; } }