/* =====================================================================
   Roblox-style Create dashboard — scoped under .rcr-page so the
   dark theme cannot leak into the rest of the (light-themed) site.
   ===================================================================== */

.rcr-page {
  --rcr-bg: #0b0d11;
  --rcr-card: #15181d;
  --rcr-card-2: #1c2026;
  --rcr-border: #262a32;
  --rcr-text: #ffffff;
  --rcr-muted: #9ba1ad;
  --rcr-muted-2: #6c727d;
  --rcr-warning: #f5b94f;
  --rcr-radius: 14px;
  --rcr-radius-sm: 10px;

  background: var(--rcr-bg);
  color: var(--rcr-text);
  min-height: 100vh;
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  padding: 24px 32px 80px;

  /* Break out of any parent column / container padding so the dark bg
     extends edge-to-edge of the viewport. */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.rcr-page * { box-sizing: border-box; }

.rcr-page a { color: inherit; text-decoration: none; }
.rcr-page a:hover { color: #fff; text-decoration: underline; }

/* Inner constraint so content has comfortable max-width on huge screens */
.rcr-page > .container-fluid { max-width: 1400px; margin: 0 auto; }

@media (max-width: 991.98px) { .rcr-page { padding: 16px 18px 60px; } }
@media (max-width: 575.98px) { .rcr-page { padding: 14px 14px 60px; } }

/* Top header row -------------------------------------------------------- */
.rcr-pagehead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 18px;
}
.rcr-pagehead-icon {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--rcr-muted);
  font-size: 18px;
}
.rcr-pagehead-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0;
  color: #fff;
}

/* Two-column grid ------------------------------------------------------- */
.rcr-grid { gap: 24px 0; }
.rcr-main { display: flex; flex-direction: column; gap: 28px; }
.rcr-rail { padding-left: 20px; }

@media (max-width: 991.98px) {
  .rcr-rail { display: none; }
  .rcr-main { gap: 22px; }
}

/* Generic card ---------------------------------------------------------- */
.rcr-card {
  background: var(--rcr-card);
  border: 1px solid var(--rcr-border);
  border-radius: var(--rcr-radius);
  overflow: hidden;
}

/* Section heading ------------------------------------------------------- */
.rcr-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 4px 14px;
}
.rcr-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
}
.rcr-section-title .rcr-chev { color: var(--rcr-muted); font-size: 14px; }
.rcr-section-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--rcr-muted);
}
.rcr-section-action:hover { color: #fff; text-decoration: none; }

/* Get Started card ------------------------------------------------------ */
.rcr-getstarted { padding: 22px 22px 22px; position: relative; }
.rcr-getstarted-head { margin-bottom: 16px; padding-right: 28px; }
.rcr-getstarted-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 4px;
}
.rcr-getstarted-sub { font-size: 14px; color: var(--rcr-muted); margin: 0; }
.rcr-close-btn {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: 0;
  color: var(--rcr-muted); width: 28px; height: 28px;
  border-radius: 6px; cursor: pointer; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.rcr-close-btn:hover { background: var(--rcr-card-2); color: #fff; }

.rcr-getstarted-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
}
@media (max-width: 767.98px) {
  .rcr-getstarted-body { grid-template-columns: 1fr; }
}

.rcr-video {
  position: relative;
  background: #000;
  border-radius: var(--rcr-radius-sm);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.rcr-video iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

.rcr-studio-tile {
  background: var(--rcr-card-2);
  border-radius: var(--rcr-radius-sm);
  padding: 24px 16px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
}
.rcr-studio-logo {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 4px;
}
.rcr-studio-logo svg { width: 100%; height: 100%; }
.rcr-studio-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 18px;
}
.rcr-studio-desc { font-size: 13px; color: var(--rcr-muted); margin: 0; max-width: 260px; }
.rcr-page .rcr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px;
  background: #fff; color: #111;
  border: 0; border-radius: 8px;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease;
}
.rcr-page .rcr-btn:hover { background: #e6e6e6; color: #111; text-decoration: none; }
.rcr-page .rcr-btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid var(--rcr-border);
}
.rcr-page .rcr-btn-ghost:hover { background: var(--rcr-card-2); color: #fff; }
.rcr-page .rcr-btn-sm { padding: 6px 14px; font-size: 13px; }

/* Age banner ------------------------------------------------------------ */
.rcr-age-banner {
  background: var(--rcr-card);
  border: 1px solid var(--rcr-border);
  border-radius: var(--rcr-radius-sm);
  padding: 10px 14px;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 13.5px;
  color: var(--rcr-muted);
}
.rcr-age-icon { color: var(--rcr-warning); font-size: 16px; flex-shrink: 0; }
.rcr-age-text {
  flex: 1 1 240px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rcr-age-link {
  text-decoration: underline; color: var(--rcr-muted); flex-shrink: 0;
}
.rcr-age-link:hover { color: #fff; }
.rcr-age-banner .rcr-btn { flex-shrink: 0; }
@media (max-width: 767.98px) {
  .rcr-age-text {
    flex: 1 0 100%;
    white-space: normal;
    order: 1;
  }
  .rcr-age-icon { order: 0; }
  .rcr-age-link { order: 2; margin-left: auto; }
  .rcr-age-banner .rcr-btn { order: 3; }
}

/* Experiences row ------------------------------------------------------- */
.rcr-exp-row { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
@media (max-width: 767.98px) {
  .rcr-exp-row { grid-template-columns: 1fr; }
}

.rcr-exp-card { padding: 14px; position: relative; overflow: visible; }
.rcr-exp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--rcr-border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--rcr-muted);
}
.rcr-exp-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: #ff5252;
  border-radius: 50%;
}
.rcr-exp-menu-wrap { position: absolute; top: 14px; right: 14px; }
.rcr-exp-menu {
  background: transparent; border: 0;
  color: var(--rcr-muted); cursor: pointer;
  width: 28px; height: 28px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.rcr-exp-menu:hover { background: var(--rcr-card-2); color: #fff; }

.rcr-context-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 230px;
  background: var(--rcr-card);
  border: 1px solid var(--rcr-border);
  border-radius: var(--rcr-radius-sm);
  padding: 6px;
  z-index: 50;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rcr-exp-menu-wrap.open .rcr-context-menu { display: block; }
.rcr-context-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  background: transparent; border: 0;
  color: #fff;
  font-size: 14px;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.rcr-context-item:hover { background: var(--rcr-card-2); color: #fff; text-decoration: none; }
.rcr-context-item i { color: var(--rcr-muted); font-size: 12px; }
.rcr-context-divider {
  height: 1px;
  background: var(--rcr-border);
  margin: 6px 8px;
}

/* Place thumbnail inside experience card name row */
.rcr-exp-name-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 14px; }
.rcr-exp-thumb {
  width: 32px; height: 32px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: var(--rcr-card-2);
}
.rcr-exp-name-row .rcr-exp-name { margin: 0; }
.rcr-exp-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 15px;
  margin: 14px 0 14px;
  color: #fff;
}
.rcr-exp-stat {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--rcr-border);
  font-size: 13px;
}
.rcr-exp-stat-label { color: var(--rcr-muted); }
.rcr-exp-stat-value { color: #fff; font-weight: 700; }
.rcr-exp-stat.rcr-exp-stat--big .rcr-exp-stat-value { font-size: 20px; }
.rcr-exp-stat.rcr-exp-stat--big { display: block; border-top: 0; padding-top: 0; }
.rcr-exp-stat.rcr-exp-stat--big .rcr-exp-stat-label { display: block; margin-bottom: 4px; }

.rcr-studio-card {
  padding: 22px 22px 22px;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 14px;
  align-items: center;
}
@media (max-width: 575.98px) {
  .rcr-studio-card { grid-template-columns: 1fr; }
}
.rcr-studio-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.rcr-studio-card-body { color: var(--rcr-muted); font-size: 14px; margin: 0 0 14px; }
.rcr-studio-card-img {
  background: var(--rcr-card-2);
  border-radius: var(--rcr-radius-sm);
  aspect-ratio: 16 / 10;
  width: 100%;
  background-image: linear-gradient(135deg, #2a3540, #1a2028);
  position: relative;
  overflow: hidden;
}
.rcr-studio-card-img::before {
  content: '';
  position: absolute; inset: 12px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 8px, transparent 8px 16px);
  border-radius: 8px;
}

/* Horizontal scroller --------------------------------------------------- */
.rcr-hscroll-wrap { position: relative; }
.rcr-hscroll {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 4px 4px 8px;
  margin: -4px -4px -8px;
  scrollbar-width: none;
}
.rcr-hscroll::-webkit-scrollbar { display: none; }
.rcr-hscroll > * { scroll-snap-align: start; flex-shrink: 0; }

.rcr-hscroll-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rcr-border);
  background: rgba(15, 17, 21, 0.9);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity .15s ease;
  backdrop-filter: blur(4px);
}
.rcr-hscroll-arrow:hover { background: var(--rcr-card-2); }
.rcr-hscroll-arrow.left { left: -6px; }
.rcr-hscroll-arrow.right { right: -6px; }
.rcr-hscroll-arrow.hidden { opacity: 0; pointer-events: none; }

/* Learn video cards ----------------------------------------------------- */
.rcr-video-card { width: 280px; }
@media (max-width: 575.98px) { .rcr-video-card { width: 240px; } }
.rcr-video-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1d2737, #0c1018);
  border-radius: var(--rcr-radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
}
.rcr-video-badge {
  position: absolute; top: 8px; left: 8px;
  background: #2052ff; color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 6px;
  border-radius: 4px;
}
.rcr-video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
}
.rcr-video-thumb-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  text-align: center;
  letter-spacing: 1px;
  padding: 0 16px;
  line-height: 1;
}
.rcr-video-card-title {
  font-weight: 700; font-size: 15px;
  margin: 0 0 4px;
  color: #fff;
  line-height: 1.3;
}
.rcr-video-card-body {
  font-size: 13px; color: var(--rcr-muted);
  margin: 0 0 8px;
  line-height: 1.4;
}
.rcr-video-card-author {
  font-size: 12.5px; color: var(--rcr-muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.rcr-video-card-author::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--rcr-muted);
  border-radius: 2px;
  transform: rotate(8deg);
  display: inline-block;
}

/* Hub cards ------------------------------------------------------------- */
.rcr-hub-card {
  width: 240px;
  background: var(--rcr-card);
  border: 1px solid var(--rcr-border);
  border-radius: var(--rcr-radius);
  padding: 16px;
}
.rcr-hub-icon {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: #fff;
  font-size: 18px;
}
.rcr-hub-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  margin: 0 0 6px;
  color: #fff;
  line-height: 1.3;
}
.rcr-hub-card-body {
  font-size: 13px; color: var(--rcr-muted);
  margin: 0;
  line-height: 1.4;
}

/* Programs row (Build on Roblox + Browse the Store) -------------------- */
.rcr-programs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 767.98px) {
  .rcr-programs-row { grid-template-columns: 1fr; }
}
.rcr-program-card {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 14px;
  padding: 18px;
}
.rcr-program-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 17px;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.25;
}
.rcr-program-card-body {
  font-size: 13px; color: var(--rcr-muted);
  margin: 0 0 14px;
  line-height: 1.45;
}
.rcr-program-card-img {
  border-radius: 8px;
  aspect-ratio: 1;
  align-self: center;
  overflow: hidden;
  background: linear-gradient(135deg, #3a2a30, #1a1820);
}
.rcr-program-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Community section ---------------------------------------------------- */
.rcr-community-divider {
  border: 0;
  border-top: 1px solid var(--rcr-border);
  margin: 8px 0 4px;
}
.rcr-community-head { padding: 4px 4px 10px; }
.rcr-community-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 22px;
  margin: 0 0 6px;
  color: #fff;
}
.rcr-community-blurb {
  font-size: 14px; color: var(--rcr-muted);
  margin: 0 0 18px; max-width: 540px;
}
.rcr-community-links { display: flex; flex-direction: column; gap: 10px; }
.rcr-community-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; color: #fff; padding: 4px 0;
}
.rcr-community-link i {
  width: 24px; text-align: center; color: var(--rcr-muted);
}

.rcr-community-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 767.98px) {
  .rcr-community-row { grid-template-columns: 1fr; }
}
.rcr-community-video {
  background: #000;
  aspect-ratio: 9 / 16;
  border-radius: var(--rcr-radius-sm);
  overflow: hidden;
  max-height: 540px;
}
.rcr-community-video iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

.rcr-page .rcr-creator-row {
  cursor: pointer;
  transition: background .15s ease;
}
.rcr-page .rcr-creator-row:hover { background: var(--rcr-card-2); }
.rcr-page .rcr-creator-row.is-active { background: var(--rcr-card-2); }

.rcr-community-list {
  display: flex; flex-direction: column;
  background: var(--rcr-card);
  border: 1px solid var(--rcr-border);
  border-radius: var(--rcr-radius-sm);
  overflow: hidden;
}
.rcr-creator-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rcr-border);
}
.rcr-creator-row:last-child { border-bottom: 0; }
.rcr-creator-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a3540, #1a2028);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.rcr-creator-info { flex: 1; min-width: 0; }
.rcr-creator-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 14px;
  color: #fff; margin: 0 0 2px;
}
.rcr-creator-blurb {
  font-size: 13px; color: var(--rcr-muted);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right rail — Updates ------------------------------------------------- */
.rcr-updates {
  position: sticky;
  top: 16px;
}
.rcr-updates-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.rcr-updates-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 22px;
  margin: 0;
  color: #fff;
}
.rcr-updates-spacer { flex: 1; }
.rcr-updates-viewall { font-size: 14px; color: var(--rcr-muted); }
.rcr-updates-viewall:hover { color: #fff; text-decoration: none; }
.rcr-updates-collapse {
  background: transparent; border: 0;
  color: var(--rcr-muted); cursor: pointer;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
}

.rcr-updates-card {
  background: var(--rcr-card);
  border: 1px solid var(--rcr-border);
  border-radius: var(--rcr-radius);
  padding: 10px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rcr-border) transparent;
}
.rcr-updates-card::-webkit-scrollbar { width: 8px; }
.rcr-updates-card::-webkit-scrollbar-track { background: transparent; }
.rcr-updates-card::-webkit-scrollbar-thumb { background: var(--rcr-border); border-radius: 4px; }

.rcr-page .rcr-update {
  display: block;
  padding: 12px 14px;
  border-radius: var(--rcr-radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
}
.rcr-page .rcr-update:hover { background: var(--rcr-card-2); text-decoration: none; }
.rcr-update-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 15px;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}
.rcr-update-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--rcr-muted-2);
  flex-wrap: wrap;
}
.rcr-update-meta .meta {
  display: inline-flex; align-items: center; gap: 5px;
}
.rcr-update-meta .meta i { font-size: 12px; }
.rcr-update-tag { color: var(--rcr-muted-2); }

/* Updates dropdown ----------------------------------------------------- */
.rcr-dd-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--rcr-border);
  border-radius: 999px;
  color: #fff;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
}
.rcr-dd-toggle:hover { background: var(--rcr-card-2); }
.rcr-dd-toggle .caret { font-size: 10px; color: var(--rcr-muted); }

.rcr-dd-wrap { position: relative; }
.rcr-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--rcr-card);
  border: 1px solid var(--rcr-border);
  border-radius: var(--rcr-radius-sm);
  padding: 6px;
  z-index: 30;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}
.rcr-dd-wrap.open .rcr-dd-menu { display: block; }
.rcr-dd-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: transparent; border: 0;
  color: #fff;
  font-size: 14px;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
}
.rcr-dd-item:hover { background: var(--rcr-card-2); }
.rcr-dd-item .check { color: #fff; font-size: 12px; visibility: hidden; }
.rcr-dd-item.is-active .check { visibility: visible; }

/* Get Started dismissed state ----------------------------------------- */
.rcr-page .rcr-getstarted.is-hidden { display: none; }
