/* MEGA ROBUX V3.8.1 | Blue Studio light theme and Discord avatar | last stylesheet */

/* Account card shared by dark and light: avatar fits the existing header layout. */
html[data-theme] .market-account .account-orb,
html[data-theme] .btn-account[data-client-link] .account-orb{
  position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 40px!important;width:40px!important;height:40px!important;padding:0!important;
  border-radius:12px!important;overflow:hidden!important;line-height:1!important;
}
html[data-theme] [data-client-link] .account-orb .discord-avatar{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;object-fit:cover!important;
  border:0!important;border-radius:inherit!important;display:block!important;
  filter:none!important;transform:none!important;opacity:1!important;
}
html[data-theme] [data-client-link] .account-orb .discord-avatar[hidden],
html[data-theme] [data-client-link] .account-orb .account-initial[hidden],
html[data-theme] [data-client-link] .account-orb .account-brand-icon[hidden]{display:none!important}
html[data-theme] [data-client-link] .account-orb .account-initial{
  font-size:16px!important;font-weight:800!important;letter-spacing:.01em!important;
}
html[data-theme] .market-account .account-details{display:flex;flex-direction:column;min-width:0!important;max-width:146px!important;gap:3px}
html[data-theme] .market-account .account-details strong{
  min-width:0;max-width:146px!important;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;
  font-size:13px!important;letter-spacing:-.01em!important;line-height:1.2!important;
}
html[data-theme] .market-account.is-authenticated .account-orb{background:#262626!important;border-color:rgba(157, 157, 157,.33)!important}
html[data-theme] .market-account.is-authenticated{min-width:185px!important}
html[data-theme] .market-account:hover{border-color:rgba(157, 157, 157,.38)!important}
html[data-theme="light"] .market-account.is-authenticated .account-orb{
  background:#ededed!important;border-color:#dbdbdb!important;
  color:#585858!important;
}

/* Light-only restyling: soft, restrained, neutral and not neon. */
html[data-theme="light"]{
  --bg:#f6f6f6;--bg-2:#f5f5f5;--panel:#fdfdfd;--panel-strong:#ffffff;
  --panel-soft:#f6f6f6;--line:#e6e6e6;--line-strong:#d8d8d8;
  --text:#272727;--muted:#737373;--muted-2:#878787;
  --mr-blue:#9d9d9d;--mr-blue-hover:#9d9d9d;--mr-blue-soft:#f3f3f3;
  --mbg:#f6f6f6;--mbg2:#f4f4f4;--msurface:#fdfdfd;--msurface2:#f9f9f9;
  --mline:rgba(86, 86, 86,.14);--mline2:rgba(82, 82, 82,.10);
  --mtext:#272727;--mmuted:#757575;--mpurple:#9d9d9d;--mpurple2:#9d9d9d;
  --rbxp-black:#f6f6f6;--rbxp-card:#fdfdfd;--rbxp-soft:rgba(157, 157, 157,.06);
  --v372-card:#fdfdfd;--v372-line:#e7e7e7;--v372-purple-soft:rgba(157, 157, 157,.07);
  --cc-panel:#fdfdfd;--cc-panel-2:#f8f8f8;--cc-line:#e6e6e6;
  --cc-purple:#9d9d9d;--cc-purple-soft:rgba(157, 157, 157,.07);
  --shadow:0 18px 45px rgba(38, 38, 38,.045);--shadow-soft:0 8px 24px rgba(38, 38, 38,.035);
  color-scheme:light;
}
html[data-theme="light"] body.site-v29,
html[data-theme="light"] body.site-v29.delivery-page,
html[data-theme="light"] body.client-body.site-v29,
html[data-theme="light"] body{
  background:#f6f6f6!important;color:#272727!important;
}
html[data-theme="light"] :is(.bg-orb-a,.bg-orb-b,.bg-grid){opacity:.03!important;filter:blur(50px)!important}
html[data-theme="light"] :is(.market-statusbar,.announcement){
  background:#f4f4f4!important;color:#737373!important;border-bottom-color:#e7e7e7!important;
}
html[data-theme="light"] :is(.topbar,.market-header,.client-topbar,.delivery-page .topbar){
  background:rgba(253, 253, 253,.97)!important;border-bottom:1px solid #ebebeb!important;
  box-shadow:0 2px 10px rgba(36, 36, 36,.025)!important;
}
html[data-theme="light"] :is(.market-brand .brand-mark,.brand-mark){
  box-shadow:0 2px 10px rgba(50, 50, 50,.06)!important;background:#fbfbfb!important;border-color:#ededed!important;
}
html[data-theme="light"] :is(.market-nav a.active,.nav a.active),
html[data-theme="light"] body.site-v29 :is(.market-nav a.active,.nav a.active){
  background:#f2f2f2!important;border-color:#e9e9e9!important;color:#4a4a4a!important;
}
html[data-theme="light"] :is(.market-nav a,.nav a){color:#606060!important}
html[data-theme="light"] :is(.market-nav a:hover,.nav a:hover){color:#9d9d9d!important}
html[data-theme="light"] :is(.market-account,.btn-account,.client-top-user,.client-domain,.mr-theme-toggle){
  background:#fafafa!important;color:#2b2b2b!important;border:1px solid #e6e6e6!important;
  box-shadow:none!important;
}
html[data-theme="light"] .market-account:hover{background:#f6f6f6!important}
html[data-theme="light"] :is(.mr-theme-toggle:hover,.btn-secondary:hover,.btn-ghost:hover){background:#f4f4f4!important}
html[data-theme="light"] .mr-theme-toggle .mr-theme-icon{color:#9d9d9d!important}
html[data-theme="light"] :is(.btn-primary,.market-buy-top,.client-buy-top,.auth-discord-btn,.hero-primary-cta,
  .metric-action,.support-cta-primary,.product-buy,#finishCheckout,.checkout-next,#customBuy,
  .market-custom-total .btn-primary,.pix-actions .btn-primary){
  background:#9d9d9d!important;border:1px solid #9d9d9d!important;color:#ffffff!important;
  box-shadow:0 5px 14px rgba(157, 157, 157,.12)!important;
}
html[data-theme="light"] :is(.btn-primary,.market-buy-top,.client-buy-top,.product-buy):hover{
  background:#9d9d9d!important;box-shadow:0 6px 18px rgba(157, 157, 157,.16)!important;
}
html[data-theme="light"] :is(.market-hero,.market-packages-hero,.rbx-spotlight,.market-final-cta,
  .guest-auth-card,.delivery-hero-panel,.delivery-hero){
  background:linear-gradient(125deg,#ffffff 0%,#fefefe 67%,#fafafa 100%)!important;
  color:#272727!important;border-color:#e8e8e8!important;
  box-shadow:0 10px 28px rgba(41, 41, 41,.038)!important;
}
html[data-theme="light"] :is(
 .market-buybox,.market-base,.market-custom,.market-security-grid article,.market-delivery-grid a,
 .market-confidence-grid article,.orders-panel,.order-details,.modal-card,.client-loading-card,
 .market-pricing .market-product-card,.market-product-card,.rbx-play-strip article,
 .rbx-use-card,.rbx-spotlight-token,.delivery-page .hero-card,.delivery-page .delivery-grid article,
 .delivery-detail,.delivery-card,.delivery-step-card,.delivery-note,.delivery-key,.delivery-example,
 .delivery-compare,.delivery-mini-row,.delivery-warning,.metric-card,.details-grid>div,.support-card,
 .clean-dashboard-hero,.clean-dashboard-orders,.clean-dashboard-account,.clean-account-summary>div,
 .clean-orders-panel,.clean-order-detail,.client-account-strip>div,.guest-shell,
 .order-row,.legal-card,.faq-section details,.faq-list details,.checkout-account-state,
 .pix-provider,.pix-order-line,.pix-waiting,.pix-success,.order-summary,.checkout-summary,
 .market-flow-inner>div,.market-flow-inner div,.payment-method,.pix-card,.checkout-card,
 .payment-box,.thankyou-card,.client-pix-card,.client-sidebar
 ){
  background:#fdfdfd!important;color:#272727!important;
  border-color:#e8e8e8!important;box-shadow:0 5px 18px rgba(39, 39, 39,.035)!important;
}
html[data-theme="light"] :is(.market-buybox,.market-product-card,.delivery-card,.metric-card){
  box-shadow:0 8px 24px rgba(39, 39, 39,.043)!important;
}
html[data-theme="light"] :is(.market-hero-copy h1 span,.guest-copy h1 span,.delivery-hero h1 span,.client-hero h1 span){
  color:#9d9d9d!important;background:none!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important;
}
html[data-theme="light"] :is(.market-badge,.card-tag,.delivery-tag,.section-kicker,.eyebrow){
  background:#f5f5f5!important;color:#9d9d9d!important;border-color:#e9e9e9!important;box-shadow:none!important;
}
html[data-theme="light"] :is(.market-hero-copy h1,.rbx-use-heading h2,.rbx-spotlight-copy h2){
  letter-spacing:-.045em!important;
}
html[data-theme="light"] .market-hero-copy h1{font-size:clamp(42px,4.6vw,67px)!important;line-height:1.055!important}
html[data-theme="light"] :is(.market-hero-copy p,.rbx-use-heading p,.delivery-hero-copy p,.guest-copy p){color:#727272!important}
html[data-theme="light"] :is(.buybox-options button,.market-trust-row div,.market-proof-pills span,
 .buybox-proof-row span,.market-custom-control,.input-wrap,.market-custom-control input,
 .checkout-field input,.checkout-field select,.checkout-field textarea,
 input,select,textarea,.order-filter,.refresh-button,.sidebar-nav.clean-dashboard-nav){
  background:#f9f9f9!important;color:#353535!important;border-color:#e5e5e5!important;
  box-shadow:none!important;
}
html[data-theme="light"] :is(.buybox-options button.featured,.market-product-card.featured,
 .clean-dashboard-nav a.active){background:#f5f5f5!important;border-color:#aeaeae!important;box-shadow:none!important}
html[data-theme="light"] :is(.market-trust-row div,.buybox-safe,.market-proof-pills span,
 .buybox-proof-row span,.market-flow-inner>div){background:#fafafa!important}
html[data-theme="light"] :is(.rbx-use-art,.rbx-spotlight-art,.market-product-art,.card-visual,.packages-hero-art){
  background:radial-gradient(circle at center,rgba(221, 221, 221,.37),rgba(249, 249, 249,.3) 68%,transparent)!important;
}
html[data-theme="light"] :is(.market-pricing .amount strong,.market-custom-total strong,
 .market-section-head>div>span,.market-delivery-grid a>b,.market-buybox .buybox-all){color:#9d9d9d!important}
html[data-theme="light"] :is(.market-buybox .buybox-all,.market-buybox .buybox-options button.featured){
  background:#f5f5f5!important;color:#9d9d9d!important;border-color:#e5e5e5!important;
}
html[data-theme="light"] :is(.market-pricing .market-product-card,.market-buybox,.delivery-page .delivery-grid article){
  backdrop-filter:none!important;
}
html[data-theme="light"] body.client-body :is(.guest-shell,.client-hero,.client-app,.guest-points>div,
 .client-loading-card,.guest-auth-card,.client-support-bar,.client-sidebar,
 .metrics-grid .metric-card,.orders-layout .orders-panel,.orders-layout .order-details,
 .clean-dashboard-hero,.clean-dashboard-orders,.clean-dashboard-summary,.clean-dashboard-account,
 .client-pix-card){background:#fdfdfd!important;color:#272727!important;border-color:#e8e8e8!important}
html[data-theme="light"] body.delivery-page :is(.delivery-detail,.delivery-detail-content,
 .delivery-detail-aside,.delivery-card,.delivery-mini-row,.delivery-step-card,.delivery-note,
 .delivery-compare,.delivery-key,.delivery-example,.delivery-warning,.delivery-panel-note){
  background:#fdfdfd!important;color:#272727!important;border-color:#e8e8e8!important;
}
html[data-theme="light"] body.delivery-page :is(.delivery-strip,.delivery-panel-note,.delivery-steps>div){
  background:#f6f6f6!important;color:#565656!important;border-color:#e8e8e8!important;
}
@media(max-width:950px){
 html[data-theme] .market-account .account-orb{flex-basis:38px!important;width:38px!important;height:38px!important}
 html[data-theme="light"] .market-hero-copy h1{font-size:clamp(37px,8.2vw,53px)!important}
}
/* Display connected user on mobile too; anonymous visitors keep the simple header. */
@media(max-width:900px){
 html[data-theme] body.market-v3 .market-actions .market-account.is-authenticated{
  display:inline-flex!important;min-width:0!important;max-width:156px!important;
  padding:4px 9px 4px 4px!important;min-height:42px!important;margin:0!important;
  gap:6px!important;border-radius:12px!important;
 }
 html[data-theme] body.market-v3 .market-actions .market-account.is-authenticated .account-orb{
  width:32px!important;height:32px!important;flex-basis:32px!important;border-radius:9px!important;
 }
 html[data-theme] body.market-v3 .market-actions .market-account.is-authenticated .account-details{max-width:87px!important}
 html[data-theme] body.market-v3 .market-actions .market-account.is-authenticated .account-details small{display:none!important}
 html[data-theme] body.market-v3 .market-actions .market-account.is-authenticated .account-details strong{
  font-size:12px!important;max-width:87px!important;
 }
 html[data-theme] body.market-v3 .market-header .market-actions{margin-left:auto!important}
 html[data-theme] body.market-v3 .market-header .menu-btn{margin-left:5px!important}
}
@media(max-width:390px){
 html[data-theme] body.market-v3 .market-actions .market-account.is-authenticated .account-details strong{max-width:52px!important}
 html[data-theme] body.market-v3 .market-brand .brand-text{font-size:13px!important}
}
@media(max-width:350px){
 html[data-theme] body.market-v3 .market-header .market-account.is-authenticated{
  width:42px!important;max-width:42px!important;min-width:42px!important;
  padding:4px!important;gap:0!important;
 }
 html[data-theme] body.market-v3 .market-header .market-account.is-authenticated .account-details{display:none!important}
 html[data-theme] body.market-v3 .market-header .market-actions{flex-shrink:0!important}
 html[data-theme] body.market-v3 .market-header .market-brand .brand-text{letter-spacing:-.035em!important}
}
/* Real Discord profile photos should be circular, not Roblox-style square icons. */
html[data-theme] .market-account.is-authenticated .account-orb,
html[data-theme] .btn-account.is-authenticated .account-orb,
html[data-theme] [data-client-link].is-authenticated .account-orb .discord-avatar{
  border-radius:50%!important;
}
