:root {
  --bg: #0b0610;
  --bg-elev: #1a0f1c;
  --bg-input: #221327;
  --purple: #ff2d78;
  --purple-hover: #e0205f;
  --cyan: #2DE2C5;
  --rose: #fb5475;
  --amber: #ffb020;
  --text: #EDEBF5;
  --muted: #A6A3B5;
  --faint: #6f6c80;
  --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

body.rr-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.rr-muted { color: var(--faint); font-size: 13px; }
.rr-error { color: var(--rose); font-size: 14px; }
.rr-success { color: var(--cyan); font-size: 14px; }

/* ---------- Layout shells ---------- */
.rr-container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.rr-admin-shell, .rr-auth-box { max-width: 480px; margin: 60px auto; padding: 0 20px; }
.rr-admin-shell { max-width: 760px; }

/* ---------- Header / Nav ---------- */
.rr-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 12, 16, 0.95);
  position: sticky; top: 0; z-index: 30;
}
.rr-header-inner {
  max-width: 1000px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.rr-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.rr-logo img { height: 32px; width: auto; display: block; }
.rr-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.rr-nav a {
  color: var(--faint); font-size: 14px; font-weight: 500; padding: 7px 12px;
  border-radius: 6px;
}
.rr-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.rr-nav a.active { color: var(--purple); background: rgba(255, 45, 120, 0.12); text-decoration: none; }
.rr-header-right { display: flex; align-items: center; gap: 12px; }
.rr-header-secondary {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  max-width: 1000px; margin: 0 auto; padding: 6px 20px 10px; font-size: 13px;
}
.rr-social-icon { display: inline-flex; align-items: center; justify-content: center; opacity: 0.85; transition: opacity 0.15s, transform 0.15s; }
.rr-social-icon:hover { opacity: 1; transform: scale(1.1); }

/* ---------- Cards ---------- */
.rr-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 18px;
}
.rr-card-link { display: block; transition: border-color 0.15s; }
.rr-card-link:hover { border-color: rgba(255, 45, 120, 0.4); text-decoration: none; }
.rr-card-link h3 { margin: 0 0 6px; color: var(--text); }
.rr-card-link p { margin: 0; color: var(--muted); font-size: 13px; }

.rr-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 20px 0; }

/* ---------- Forms ---------- */
.rr-form, form { display: flex; flex-direction: column; gap: 12px; }
.rr-form label { font-size: 12px; color: var(--faint); margin-bottom: -6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="file"], input[type="date"], textarea, select {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 12px; font-size: 14px; color: var(--text); font-family: inherit;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(255, 45, 120, 0.6); }

button, .rr-btn-primary {
  background: var(--purple); color: #fff; border: none; border-radius: 6px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
button:hover, .rr-btn-primary:hover { background: var(--purple-hover); }

.rr-preview img { max-height: 80px; border-radius: 6px; border: 1px solid var(--border); margin: 8px 0; }

/* ---------- Table (admin members list) ---------- */
.rr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rr-table th, .rr-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.rr-table th { color: var(--faint); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Hero ---------- */
.rr-hero {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
}
.rr-hero img { max-width: 100%; border-radius: 8px; }

.rr-hero-banner {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  overflow: hidden; margin-top: 0; margin-bottom: 24px; aspect-ratio: 1200 / 500; background: var(--bg-elev);
}
.rr-hero-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.rr-hero-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(to top, rgba(11,6,16,0.95) 0%, rgba(11,6,16,0.45) 45%, transparent 80%);
  padding: 28px calc(50vw - 480px + 28px);
}
.rr-hero-overlay .rr-hero-text { max-width: 520px; }
@media (max-width: 1000px) {
  .rr-hero-overlay { padding: 28px; }
}

.rr-live-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 45, 120, 0.15);
  border: 1px solid rgba(255, 45, 120, 0.4); border-radius: 999px; padding: 4px 12px;
  font-family: monospace; font-size: 11px; text-transform: uppercase; color: #ff9dc0; width: fit-content;
}

/* ---------- Generic ---------- */
.rr-section-label {
  font-family: monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--faint);
  margin: 30px 0 14px; display: flex; align-items: center; gap: 12px;
}
.rr-section-label::after { content: ''; height: 1px; flex: 1; background: linear-gradient(to right, rgba(255, 45, 120, 0.4), transparent); }
.rr-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.rr-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 20px 0; text-align: center; font-size: 11px; color: var(--faint); font-family: monospace; }

/* ---------- Badges / Tags ---------- */
.rr-badge, .rr-tag {
  display: inline-flex; align-items: center; font-family: monospace; text-transform: uppercase;
  letter-spacing: 0.05em; border-radius: 4px; border: 1px solid; font-size: 10px; padding: 2px 6px;
}
.rr-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.rr-card-clickable { transition: border-color 0.15s; }
.rr-card-clickable:hover { border-color: rgba(255, 45, 120, 0.4); }
.rr-score-chip {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
.rr-score-ring {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; position: relative;
}
.rr-score-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.rr-score-label { display: flex; flex-direction: column; }
.rr-score-label .num { font-size: 10px; font-family: monospace; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.rr-score-label .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.rr-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.rr-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.rr-back { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 13px; margin-bottom: 16px; }
.rr-back:hover { color: var(--text); }
.rr-flex-wrap { display: flex; flex-wrap: wrap; gap: 10px; flex-direction: row; align-items: center; }
.rr-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.rr-calendar-cell { height: 172px; border-radius: 8px; padding: 9px; display: flex; flex-direction: column; border: 1px solid var(--border); background: var(--bg-elev); overflow: hidden; }
.rr-calendar-cell.today { border-color: rgba(255, 45, 120, 0.6); background: rgba(255, 45, 120, 0.08); }
.rr-calendar-day { font-family: monospace; font-size: 13px; color: var(--faint); margin-bottom: 6px; }
.rr-calendar-cell.today .rr-calendar-day { color: #ff9dc0; font-weight: 700; }

.rr-cal-events { display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.rr-calendar-event {
  display: flex; flex-direction: column; gap: 2px; padding: 5px 7px; min-width: 0;
  border-radius: 6px; background: rgba(255,255,255,0.035);
  text-decoration: none; transition: background 0.12s;
}
.rr-calendar-event:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.rr-cal-icon { width: 14px; height: 14px; min-width: 14px; min-height: 14px; border-radius: 3px; flex-shrink: 0; object-fit: cover; display: block; }
.rr-cal-row { display: flex; align-items: center; gap: 5px; }
.rr-cal-time { font-family: monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.01em; color: var(--rr-cal-accent, var(--purple)); flex-shrink: 0; line-height: 1; }
.rr-cal-title {
  font-size: 12px; line-height: 1.3; color: var(--text) !important; font-weight: 500;
  white-space: normal; word-break: break-word; overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rr-cal-more {
  font-size: 10.5px; font-family: monospace; color: var(--faint); cursor: default; margin-top: 2px; padding-left: 2px;
}

@media (max-width: 700px) {
  .rr-calendar-grid { gap: 3px; }
  .rr-calendar-cell { height: 110px; padding: 6px; }
  .rr-cal-title { font-size: 10px; -webkit-line-clamp: 1; }
  .rr-cal-time { font-size: 9px; }
  .rr-cal-icon { width: 11px; height: 11px; min-width: 11px; min-height: 11px; }
}
.rr-table-form { display: flex; flex-direction: column; gap: 8px; }
.rr-btn-outline { background: none; border: 1px solid var(--border); color: var(--muted); padding: 6px 12px; font-size: 12px; border-radius: 6px; cursor: pointer; font-family: inherit; }
.rr-btn-outline:hover { border-color: rgba(255, 45, 120, 0.5); color: var(--text); }
.rr-btn-icon { background: none; border: none; color: var(--faint); cursor: pointer; padding: 2px; font-size: 13px; }
.rr-btn-icon:hover { color: var(--text); }
.rr-btn-danger { color: var(--rose) !important; }
.rr-roulette-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.rr-form-toggle { background: none; border: none; color: var(--cyan); font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0; }
.rr-form-toggle:hover { text-decoration: underline; }
.rr-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.rr-form-grid textarea, .rr-form-grid .rr-span-all { grid-column: 1 / -1; }
