:root {
  --rbx-bg: #f2f4f5;
  --rbx-surface: #fff;
  --rbx-text: #111827;
  --rbx-muted: #5f6b7a;
  --rbx-line: #d9dde3;
  --rbx-blue: #335fff;
  --rbx-blue-dark: #2447d5;
  --rbx-green: #00a96e;
}

.community-wallet {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}
.community-wallet>div {display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:18px;background:#fff;border:1px solid #d9dde3;border-radius:12px}
.wallet-label {font-size:10px;font-weight:800;letter-spacing:1px;color:#56657c}
.community-wallet strong {font-size:22px;color:#172033;font-variant-numeric:tabular-nums}
.community-wallet small,.wallet-note {font-size:12px;color:#68758b;line-height:1.6}
.community-wallet button,.community-dialog button {padding:10px 14px;border:0;border-radius:8px;background:#335fff;color:#fff;font-weight:700;cursor:pointer}
.community-dialog {width:min(460px,calc(100% - 28px));max-height:85vh;overflow:auto;margin:auto;padding:30px;border:1px solid #d9dde3;border-radius:16px;color:#172033;background:#fff}
.community-dialog::backdrop {background:rgba(15,23,42,.65)}
.community-dialog h2 {margin:12px 24px 16px 0;font-size:24px}
.community-dialog p {margin:12px 0;line-height:1.65}
.community-dialog .wallet-close {position:absolute;right:12px;top:12px;background:#eef0f2;color:#172033}
.wallet-reward {display:block;width:110px;height:110px;object-fit:contain;margin:12px auto}
.community-dialog li {margin:12px 0}.community-dialog li span {display:block;font-size:12px;color:#68758b}
@media(max-width:680px){.community-wallet{grid-template-columns:repeat(2,minmax(0,1fr))}.community-wallet>div{padding:13px}.community-wallet strong{font-size:18px}}

html, body, button, input { font-family: Inter, Arial, sans-serif !important; }
body { background: var(--rbx-bg) !important; color: var(--rbx-text); }
.beta-topbar { height: 64px; background: rgba(255,255,255,.96) !important; border-bottom: 1px solid var(--rbx-line) !important; box-shadow: 0 1px 4px rgba(0,0,0,.06); backdrop-filter: blur(14px); }
.beta-brand, .beta-brand span { color: #111827 !important; letter-spacing: -.5px !important; }
.beta-brand img { border-radius: 9px; }
.beta-nav button { color: #4b5563 !important; border-radius: 8px !important; }
.beta-nav button:hover, .beta-nav button.active { color: #111827 !important; background: #eef0f2 !important; }
.beta-header-cta { border: 0 !important; background: var(--rbx-blue) !important; border-radius: 8px !important; box-shadow: none !important; }
.beta-header-cta:hover { background: var(--rbx-blue-dark) !important; }
.beta-app-shell { width: min(1220px,100%) !important; padding-top: 38px !important; }
.beta-page-heading { position: relative; overflow: hidden; align-items: center !important; min-height: 250px; padding: 42px !important; border: 1px solid #d8dde5; border-radius: 18px; background: linear-gradient(120deg,#fff 0%,#fff 58%,#e8edff 100%); box-shadow: 0 2px 8px rgba(17,24,39,.06); }
.beta-page-heading::after { content: ""; position: absolute; right: -80px; bottom: -170px; width: 420px; height: 420px; border: 70px solid rgba(51,95,255,.10); border-radius: 50%; pointer-events: none; }
.top-badge-logo { z-index: 1; width: 92px !important; height: 92px !important; padding: 12px; border: 1px solid #d9dfe8; border-radius: 20px !important; background: #fff !important; box-shadow: 0 10px 28px rgba(17,24,39,.1); }
.beta-page-heading-copy { z-index: 1; max-width: 660px; }
.year-tag, .rbx-kicker { display: inline-flex; color: var(--rbx-blue) !important; background: #edf1ff !important; border: 0 !important; border-radius: 6px !important; font-size: 11px !important; font-weight: 900 !important; letter-spacing: .8px; }
.beta-page-heading h1 { color: #111827 !important; max-width: 650px; font-size: clamp(32px,5vw,54px) !important; line-height: 1.03; letter-spacing: -2px !important; }
.subtitle { color: var(--rbx-muted) !important; font-size: 16px !important; }
.security-badges .badge-pill { border-color: #d8dde5 !important; background: #fff !important; color: #4b5563 !important; }
.header-ad-slot { border-radius: 12px !important; }
.live-stats-box { border-radius: 14px !important; box-shadow: none !important; }
.stat-card { border-radius: 10px !important; box-shadow: none !important; }

.rbx-featured, .rbx-marketplace { margin: 38px 0; }
.rbx-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.rbx-section-head h2 { margin: 5px 0 0; color: #111827; font-size: 25px; font-weight: 850; letter-spacing: -.7px; }
.rbx-section-head p { margin: 6px 0 0; color: var(--rbx-muted); font-size: 13px; }
.rbx-kicker { padding: 5px 8px; }
.rbx-link-button { border: 0; background: transparent; color: var(--rbx-blue); font-weight: 800; cursor: pointer; }
.rbx-featured-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.rbx-feature-card { position: relative; min-height: 330px; overflow: hidden; border-radius: 14px; background: #171a21; color: #fff; box-shadow: 0 5px 16px rgba(17,24,39,.16); cursor: pointer; }
.rbx-feature-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.92)); pointer-events: none; }
.rbx-feature-card img { width: 100%; height: 230px; object-fit: contain; padding: 20px; background: radial-gradient(circle at 50% 35%,#465065,#20242c 65%); transition: transform .2s ease; }
.rbx-feature-card:hover img { transform: scale(1.04); }
.rbx-feature-copy { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 22px; }
.rbx-feature-copy span { color: #b8c0cc; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.rbx-feature-copy h3 { margin: 4px 0 13px; color: #fff; font-size: 20px; }
.rbx-feature-copy button { width: 100%; min-height: 42px; border: 0; border-radius: 8px; background: #fff; color: #111827; font-weight: 850; cursor: pointer; }

.rbx-marketplace { padding-top: 10px; }
.rbx-result-count { flex: 0 0 auto; color: #6b7280; font-size: 12px; font-weight: 750; }
.rbx-catalog-tools { display: grid; grid-template-columns: minmax(220px,340px) 1fr auto; align-items: center; gap: 12px; margin-bottom: 20px; }
.rbx-search { position: relative; display: flex; align-items: center; }
.rbx-search i { position: absolute; left: 14px; color: #7b8490; font-size: 13px; }
.rbx-search input { width: 100%; height: 44px; padding: 0 14px 0 38px; border: 1px solid var(--rbx-line); border-radius: 8px; background: #fff; color: #111827; outline: 0; }
.rbx-search input:focus { border-color: var(--rbx-blue); box-shadow: 0 0 0 3px rgba(51,95,255,.13); }
.rbx-filter-row { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.rbx-filter-row::-webkit-scrollbar { display: none; }
.rbx-filter-row button, .rbx-view-toggle button { height: 38px; border: 1px solid var(--rbx-line); border-radius: 8px; background: #fff; color: #4b5563; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.rbx-filter-row button { padding: 0 13px; }
.rbx-filter-row button.active, .rbx-view-toggle button.active { border-color: #111827; background: #111827; color: #fff; }
.rbx-view-toggle { display: flex; gap: 5px; }
.rbx-view-toggle button { width: 38px; }
.rbx-catalog-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.rbx-product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--rbx-line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(17,24,39,.04); transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.rbx-product-card:hover { transform: translateY(-3px); border-color: #b5bdc9; box-shadow: 0 8px 22px rgba(17,24,39,.10); }
.rbx-product-image { position: relative; display: grid; place-items: center; aspect-ratio: 1.1; background: #edf0f2; overflow: hidden; }
.rbx-product-image img { width: 82%; height: 82%; object-fit: contain; transition: transform .2s ease; }
.rbx-product-card:hover .rbx-product-image img { transform: scale(1.04); }
.rbx-product-badge { position: absolute; top: 10px; left: 10px; padding: 5px 7px; border-radius: 5px; background: rgba(17,24,39,.86); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .4px; }
.rbx-product-body { display: grid; gap: 6px; padding: 14px; }
.rbx-product-category { color: #737d8c; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.rbx-product-body h3 { min-height: 40px; margin: 0; color: #111827; font-size: 15px; line-height: 1.3; }
.rbx-product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #657080; font-size: 11px; }
.rbx-product-meta strong { color: var(--rbx-green); }
.rbx-product-body button { min-height: 40px; margin-top: 4px; border: 0; border-radius: 8px; background: var(--rbx-blue); color: #fff; font-weight: 850; cursor: pointer; }
.rbx-product-body button:hover { background: var(--rbx-blue-dark); }
.rbx-catalog-grid.list { grid-template-columns: 1fr; }
.rbx-catalog-grid.list .rbx-product-card { display: grid; grid-template-columns: 130px minmax(0,1fr); }
.rbx-catalog-grid.list .rbx-product-image { aspect-ratio: 1; }
.rbx-catalog-grid.list .rbx-product-body { grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 18px; }
.rbx-catalog-grid.list .rbx-product-category,.rbx-catalog-grid.list h3 { grid-column: 1; min-height: 0; }
.rbx-catalog-grid.list .rbx-product-meta { grid-column: 1; justify-content: flex-start; }
.rbx-catalog-grid.list button { grid-column: 2; grid-row: 1/4; min-width: 120px; }
.rbx-empty-state { place-items: center; gap: 8px; padding: 55px; border: 1px dashed #c9cfd7; border-radius: 12px; color: #697384; text-align: center; }
.rbx-empty-state:not([hidden]) { display: grid; }
.rbx-empty-state i { font-size: 22px; }

.reward-options { margin-bottom: 42px; }
.reward-options .reward-card, .package-card { border-radius: 12px !important; }
.reward-options .reward-card .select-btn, .premium-action-btn, .select-btn { background: var(--rbx-blue) !important; border-radius: 8px !important; box-shadow: none !important; }
.package-price strong { color: var(--rbx-green) !important; }
.faq-card, .tutorial-card, .beta-footer { border-radius: 12px !important; box-shadow: none !important; }

@media (max-width: 920px) {
  .rbx-catalog-tools { grid-template-columns: 1fr auto; }
  .rbx-filter-row { grid-column: 1/-1; grid-row: 2; }
  .rbx-catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .beta-app-shell { padding: 20px 12px 38px !important; }
  .beta-page-heading { min-height: 0; padding: 24px 18px !important; border-radius: 14px; }
  .top-badge-logo { width: 66px !important; height: 66px !important; border-radius: 14px !important; }
  .beta-page-heading h1 { font-size: 32px !important; letter-spacing: -1.2px !important; }
  .rbx-featured-grid { grid-template-columns: 1fr; }
  .rbx-feature-card { min-height: 260px; }
  .rbx-feature-card img { height: 190px; }
  .rbx-section-head { align-items: flex-start; }
  .rbx-section-head h2 { font-size: 22px; }
  .rbx-catalog-tools { grid-template-columns: 1fr auto; }
  .rbx-filter-row { grid-column: 1/-1; }
  .rbx-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .rbx-product-body { padding: 11px; }
  .rbx-product-body h3 { min-height: 36px; font-size: 13px; }
  .rbx-product-meta { align-items: flex-start; flex-direction: column; }
  .rbx-catalog-grid.list .rbx-product-card { grid-template-columns: 100px minmax(0,1fr); }
  .rbx-catalog-grid.list .rbx-product-body { display: grid; padding: 12px; }
  .rbx-catalog-grid.list button { grid-column: 1/-1; grid-row: auto; width: 100%; }
}
.community-dialog {padding:30px;border:1px solid #e2e6ee;border-radius:22px;box-shadow:0 24px 90px #0f172a30;outline:none}
.community-dialog::backdrop {background:#18223588;backdrop-filter:blur(5px)}
.community-dialog .wallet-close {width:34px;height:34px;padding:0;font-size:22px;border-radius:50%;z-index:1}
.community-dialog button:focus-visible,.nav-robux:focus-visible {outline:3px solid #8ca5ff;outline-offset:3px}
.claim-summary {text-align:center;padding-top:8px}
.claim-ready {display:inline-flex;align-items:center;gap:6px;background:#e9f8f1;color:#168253;border-radius:30px;padding:7px 12px;font-size:12px;font-weight:700}
.claim-art {display:grid;place-items:center;background:radial-gradient(circle,#edf1ff,transparent 72%);height:170px;margin:12px 0}
.claim-art .wallet-reward {width:135px;height:135px;filter:drop-shadow(0 10px 14px #17203315)}
.claim-summary h2 {margin:10px 0;font-size:28px;letter-spacing:-.8px}
.claim-summary p {font-size:14px;color:#657185}
.claim-summary button[data-open-reward] {display:block;width:100%;min-height:48px;margin-top:24px;border-radius:10px;font-size:15px;box-shadow:0 5px 14px #335fff25}
.claim-summary button:disabled {opacity:.6;cursor:wait}
.claim-summary .wallet-note {font-size:11px;margin:12px 0 0}
.claim-summary [role=status]:empty {display:none}
.nav-robux {display:flex;align-items:center;gap:8px;border:0;background:transparent;color:#172033;cursor:pointer;padding:6px;flex-shrink:0;text-align:left}
.nav-robux img,.nav-get-more img {width:26px;height:26px;object-fit:contain}
.nav-robux span {display:grid;gap:2px}.nav-robux small {font-size:9px;color:#64748b;font-weight:600}.nav-robux strong {font-size:18px;font-variant-numeric:tabular-nums}
.beta-topbar .nav-get-more {display:inline-flex;align-items:center;gap:7px;background:#f28a06!important;color:#fff;flex-shrink:0}
.beta-nav button i {margin-right:5px}
.wallet-history {list-style:none;padding:0;margin:20px 0 0;max-height:50vh;overflow:auto}
.community-dialog .wallet-history li {display:flex;align-items:center;gap:14px;border:1px solid #e5e9ef;border-radius:12px;padding:12px;margin:8px 0}
.wallet-history img {width:44px;height:44px;object-fit:contain;background:#f4f6fa;border-radius:8px}.wallet-history strong {font-size:14px}
.selected-robux-summary {display:grid;gap:13px;margin:18px 0;padding:16px;border:1px solid #fecaca;border-radius:14px;background:#fff7f7}
.selected-robux-value {display:flex;align-items:center;gap:12px}
.selected-robux-value img {width:48px;height:48px;object-fit:contain;padding:6px;border:1px solid #f3d7a2;border-radius:12px;background:#fff}
.selected-robux-value span {display:grid;gap:2px}.selected-robux-value small {color:#68758b;font-size:9px;font-weight:800;letter-spacing:.8px}
.selected-robux-value strong {font-size:24px;font-variant-numeric:tabular-nums}
.community-dialog .selected-robux-summary p {display:flex;align-items:flex-start;gap:8px;margin:0;color:#dc2626;font-size:13px;font-weight:700;line-height:1.45}
.selected-robux-summary p i {margin-top:3px}
.community-dialog .selected-robux-summary button {width:100%;min-height:43px;border-radius:9px}
.community-dialog .wallet-pending {color:#dc2626;font-weight:700}
@media(max-width:1100px){.beta-topbar{gap:10px!important}.beta-topbar .beta-nav button{padding:8px 7px;font-size:12px}}
@media(max-width:680px){.community-dialog{padding:24px 20px}.beta-topbar .nav-get-more{padding:8px;font-size:10px}.nav-robux strong{font-size:15px}.nav-robux img,.nav-get-more img{width:21px;height:21px}.beta-topbar .beta-brand span{display:none}.beta-header-spacer{display:none}.beta-topbar .nav-robux{margin-left:auto}.beta-topbar .mobile-menu-toggle{margin-left:0}}
