/* Premium interaction layer: uses the site's existing black/red/purple/gold palette. */
:root{--fx-red:#e50914;--fx-crimson:#9f1239;--fx-purple:#7c3aed;--fx-gold:#f5c542;--fx-black:#070707;--fx-card:#111111}
.premium-loading-overlay{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:rgba(7,7,7,.88);backdrop-filter:blur(10px);opacity:0;visibility:hidden;transition:opacity .22s ease,visibility .22s ease;padding:24px}
.premium-loading-overlay.is-active{opacity:1;visibility:visible}
.premium-loading-card{width:min(330px,100%);padding:30px 26px;border:1px solid rgba(245,197,66,.28);border-radius:24px;background:linear-gradient(145deg,rgba(17,17,17,.98),rgba(7,7,7,.98));box-shadow:0 20px 70px #000b,0 0 38px #e5091420;display:flex;flex-direction:column;align-items:center;gap:18px;transform:translateY(10px) scale(.985);transition:transform .22s ease}
.is-active .premium-loading-card{transform:translateY(0) scale(1)}
.premium-loader-orbit{width:86px;height:86px;position:relative;border-radius:50%;display:grid;place-items:center}
.premium-loader-orbit:before,.premium-loader-orbit:after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid transparent}
.premium-loader-orbit:before{border-top-color:var(--fx-gold);border-right-color:var(--fx-red);filter:drop-shadow(0 0 7px #e5091466);animation:fxSpin 1.6s linear infinite}
.premium-loader-orbit:after{inset:9px;border-bottom-color:var(--fx-purple);border-left-color:var(--fx-crimson);animation:fxSpinReverse 1.1s linear infinite}
.premium-loader-shield{width:43px;height:49px;display:grid;place-items:center;clip-path:polygon(50% 0,92% 15%,84% 72%,50% 100%,16% 72%,8% 15%);background:linear-gradient(145deg,#fff0a8,var(--fx-gold) 55%,#9f7210);color:#171107;font-size:19px;filter:drop-shadow(0 0 12px #f5c54266)}
.premium-loader-title{font-size:12px;font-weight:900;letter-spacing:.22em;text-transform:uppercase;color:#f5f5f5;text-align:center}
.premium-loader-track{width:100%;height:4px;border-radius:99px;background:#2a2a2a;overflow:hidden;position:relative}
.premium-loader-track:after{content:"";position:absolute;inset:0;width:42%;border-radius:99px;background:linear-gradient(90deg,var(--fx-red),var(--fx-crimson),var(--fx-purple),var(--fx-gold));box-shadow:0 0 14px #e5091466;animation:fxProgress 1.25s ease-in-out infinite}
.premium-interactive-card{transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.premium-interactive-card:hover{border-color:rgba(245,197,66,.22);box-shadow:0 12px 35px #0005,0 0 22px #7c3aed10}
button,a[role=button],input[type=submit],button[type=submit]{transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}
button:active,a[role=button]:active,input[type=submit]:active,button[type=submit]:active{transform:translateY(1px) scale(.99)}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid rgba(245,197,66,.7);outline-offset:2px}
.premium-media-glow{position:relative;isolation:isolate}
.premium-media-glow:after{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;z-index:-1;background:linear-gradient(130deg,#e5091417,transparent 38%,#7c3aed17,transparent 72%,#f5c54212);filter:blur(9px);opacity:.9}
@keyframes fxSpin{to{transform:rotate(360deg)}}@keyframes fxSpinReverse{to{transform:rotate(-360deg)}}@keyframes fxProgress{0%{transform:translateX(-110%)}55%{transform:translateX(125%)}100%{transform:translateX(260%)}}
@media(prefers-reduced-motion:reduce){.premium-loading-overlay,.premium-loading-card{transition:none}.premium-loader-orbit:before,.premium-loader-orbit:after,.premium-loader-track:after{animation:none}.premium-interactive-card,button,a[role=button],input[type=submit]{transition:none}}


/* FFStudio premium finish: restrained red/purple glow + premium gold accents. */
:root{--ff-glow-red:rgba(229,9,20,.18);--ff-glow-purple:rgba(124,58,237,.15);--ff-glow-gold:rgba(245,197,66,.2)}
body{background-image:radial-gradient(ellipse at 12% 16%,rgba(229,9,20,.075),transparent 34%),radial-gradient(ellipse at 88% 76%,rgba(124,58,237,.075),transparent 36%),radial-gradient(ellipse at 52% 0%,rgba(245,197,66,.035),transparent 40%);background-attachment:fixed}
.glass-card,.glass-panel,.payment-card,.product-card,.product-item{position:relative;isolation:isolate;transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease}
.glass-card:hover,.glass-panel:hover,.payment-card:hover,.product-card:hover,.product-item:hover{border-color:rgba(245,197,66,.3)!important;box-shadow:0 10px 28px rgba(0,0,0,.28),0 0 20px rgba(229,9,20,.08),0 0 15px rgba(124,58,237,.08)}
/* Gold outline glow is ONLY for the Recharge Wallet card; other cards that carry the class keep their normal look. */
.ff-recharge-card.ff-premium-outline{border:1px solid rgba(245,197,66,.28)!important;box-shadow:0 0 0 1px rgba(245,197,66,.035),0 0 22px rgba(245,197,66,.07),0 0 26px rgba(229,9,20,.05);animation:ffOutlineGlow 4.8s ease-in-out infinite}
.ff-premium-gold{background:linear-gradient(135deg,#fff0a8,#f5c542 52%,#b7830d)!important;color:#171107!important;border:1px solid rgba(255,231,143,.55)!important;box-shadow:0 6px 20px rgba(245,197,66,.16),inset 0 1px rgba(255,255,255,.35)}
.ff-premium-gold:hover{box-shadow:0 8px 25px rgba(245,197,66,.24),0 0 20px rgba(245,197,66,.12);filter:brightness(1.035)}
.ff-profile-avatar{width:38px;height:38px;object-fit:cover;border-radius:50%;border:1px solid rgba(245,197,66,.6);box-shadow:0 0 14px rgba(245,197,66,.12);background:#151515}
.ff-dot-menu{position:relative;display:inline-flex}
.ff-dot-menu summary{list-style:none;cursor:pointer}
.ff-dot-menu summary::-webkit-details-marker{display:none}
.ff-dot-menu[open] .ff-dot-popover{display:block}
.ff-dot-popover{display:none;position:absolute;left:0;top:calc(100% + 10px);min-width:178px;padding:7px;background:#0c0c0c;border:1px solid rgba(245,197,66,.32);border-radius:13px;box-shadow:0 15px 40px #000b,0 0 18px rgba(245,197,66,.08);z-index:1000}
.ff-dot-popover a{display:flex;align-items:center;gap:9px;padding:10px 11px;border-radius:9px;color:#eee;font-size:12px;font-weight:700;text-decoration:none}
.ff-dot-popover a:hover{background:rgba(245,197,66,.1);color:#f5c542}
.ff-header-title{position:relative!important;left:auto!important;transform:none!important;display:flex!important;flex:1 1 auto;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;max-width:none!important;overflow:hidden;text-align:center;white-space:normal!important;line-height:1.08;font-size:clamp(11px,3.2vw,18px)!important;font-weight:900;letter-spacing:.005em;background:linear-gradient(100deg,#fff0a8,#f5c542 50%,#e50914 95%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 20px rgba(245,197,66,.08);pointer-events:auto; margin:0 5px;}.ff-header-title-top{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}.ff-header-title-bottom{display:block;font-size:.76em;letter-spacing:.16em;margin-top:2px;color:#f3c85b;-webkit-text-fill-color:#f3c85b;text-shadow:0 0 10px rgba(243,200,91,.20)}
.ff-recharge-card{border:1px solid rgba(245,197,66,.3);background:linear-gradient(115deg,rgba(245,197,66,.09),rgba(229,9,20,.055),rgba(124,58,237,.07));box-shadow:0 8px 26px rgba(0,0,0,.18),0 0 24px rgba(245,197,66,.055);position:relative;overflow:hidden}
.ff-recharge-card:after{content:"";position:absolute;top:-30%;bottom:-30%;width:24%;left:-40%;transform:skewX(-22deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.09),transparent);animation:ffGoldSweep 5.5s ease-in-out infinite;pointer-events:none}
.ff-live-glow{position:relative;isolation:isolate}
.ff-live-glow:before{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;z-index:-1;background:linear-gradient(115deg,transparent 10%,rgba(229,9,20,.12),transparent 38%,rgba(124,58,237,.12),transparent 68%,rgba(245,197,66,.1));background-size:220% 100%;animation:ffLiveLine 6s linear infinite;filter:blur(5px)}
@keyframes ffOutlineGlow{0%,100%{box-shadow:0 0 0 1px rgba(245,197,66,.025),0 0 12px rgba(245,197,66,.045),0 0 12px rgba(229,9,20,.035)}50%{box-shadow:0 0 0 1px rgba(245,197,66,.08),0 0 22px rgba(245,197,66,.12),0 0 18px rgba(124,58,237,.08)}}
@keyframes ffGoldSweep{0%,65%{left:-40%}100%{left:130%}}
@keyframes ffLiveLine{0%{background-position:100% 0;opacity:.4}50%{opacity:.85}100%{background-position:-120% 0;opacity:.4}}
@media(prefers-reduced-motion:reduce){.ff-premium-outline,.ff-recharge-card:after,.ff-live-glow:before{animation:none!important}*{scroll-behavior:auto!important}}


/* FFStudio requested finishing pass: compact header DP, black/red product cards, premium reseller purple. */
.ff-dp-link{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;padding:3px;background:linear-gradient(135deg,#e50914,#7c3aed);box-shadow:0 0 0 1px rgba(245,197,66,.28),0 0 16px rgba(229,9,20,.22);transition:box-shadow .2s ease,transform .2s ease}
.ff-dp-link:hover{transform:translateY(-1px);box-shadow:0 0 0 1px rgba(245,197,66,.5),0 0 22px rgba(124,58,237,.35)}
.ff-dp-link .ff-profile-avatar{width:38px;height:38px;border:2px solid #090909;display:inline-flex;align-items:center;justify-content:center}
.ff-profile-fallback{color:#fff;background:linear-gradient(145deg,#e50914,#7c3aed);font-size:16px}
.platform-off-mode .product-type-stack{display:none!important}
.store-hero-card{background:linear-gradient(160deg,#e5091415 0%,#08080b 38%,#08080b 65%,#7c3aed12 100%);border-color:rgba(229,9,20,.48);box-shadow:0 0 0 1px rgba(229,9,20,.06),0 0 22px rgba(229,9,20,.08),0 0 18px rgba(124,58,237,.06)}
.store-hero-card:hover{box-shadow:0 12px 30px #0008,0 0 25px rgba(229,9,20,.16),0 0 22px rgba(124,58,237,.12)}
.inline-plans{background:linear-gradient(145deg,#080808 0%,#111015 56%,#09090c 100%);border-color:rgba(229,9,20,.5);box-shadow:inset 0 0 18px rgba(229,9,20,.035),0 0 16px rgba(229,9,20,.08)}
.inline-plan-row{background:linear-gradient(100deg,rgba(229,9,20,.09),#101014 47%,rgba(124,58,237,.07));border-color:rgba(255,255,255,.09);box-shadow:inset 0 0 12px rgba(255,255,255,.012),0 0 10px rgba(229,9,20,.035)}
.reseller-mode .store-hero-card{border-color:rgba(124,58,237,.62);background:linear-gradient(150deg,rgba(124,58,237,.15),#08080b 42%,#100b19 100%);box-shadow:0 0 0 1px rgba(124,58,237,.09),0 0 24px rgba(124,58,237,.12)}
.reseller-mode .purchase-key-btn,.reseller-mode .inline-plan-row .plan-buy{background:linear-gradient(105deg,#7c3aed,#5b21b6 58%,#a855f7)!important;border-color:rgba(192,132,252,.65)!important;color:#fff!important;box-shadow:0 6px 20px rgba(124,58,237,.25),0 0 16px rgba(124,58,237,.12)!important}
.reseller-mode .inline-plan-row{border-left-color:#8b5cf6;background:linear-gradient(100deg,rgba(124,58,237,.13),#101014 48%,rgba(168,85,247,.06))}
.reseller-mode .inline-plan-row .plan-duration,.reseller-mode .inline-plan-row .plan-total{color:#c4b5fd!important}
.platform-tab[data-platform="off"]{border-color:rgba(124,58,237,.3)}
.platform-tab[data-platform="off"].active{background:linear-gradient(100deg,#7c3aed,#5b21b6)!important;border-color:#a78bfa!important;color:#fff!important;box-shadow:0 0 18px rgba(124,58,237,.22)}
@media(max-width:640px){.ff-dp-link .ff-profile-avatar{width:34px;height:34px}.ff-header-title{flex:1 1 0;max-width:none!important;font-size:clamp(10px,3.1vw,14px)!important}.store-hero-card{border-radius:18px}.inline-plan-row .plan-buy{padding:9px 10px;font-size:10px}}


/* Requested header fit: keep the site name beside the DP and reserve clear space for wallet balance. */
.ff-header-brand{flex:0 1 auto;width:auto;max-width:calc(100% - 128px);}
.ff-header-brand .ff-header-title{flex:0 1 auto;width:auto;max-width:min(42vw,360px)!important;min-width:0;align-items:flex-start;text-align:left;margin:0;overflow:hidden;}
.ff-header-brand .ff-header-title-top{max-width:100%;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;}
.ff-header-brand .ff-header-title-bottom{max-width:100%;white-space:nowrap;}
@media(max-width:640px){
  .ff-header-brand{max-width:calc(100% - 116px);gap:7px!important;}
  .ff-header-brand .ff-profile-avatar{width:32px;height:32px;}
  .ff-header-brand .ff-header-title{max-width:calc(100vw - 190px)!important;font-size:clamp(9px,2.8vw,12px)!important;line-height:1.1;}
  .ff-header-brand .ff-header-title-bottom{font-size:.72em;letter-spacing:.1em;margin-top:2px;}
  header nav{gap:0;}
}

/* Reseller dashboard: luxury gold finish. Store purchase buttons intentionally remain purple. */
.reseller-mode .ff-top-sellers-card{border-color:rgba(245,197,66,.42)!important;background:linear-gradient(145deg,rgba(245,197,66,.075),#09080d 44%,rgba(124,58,237,.11))!important;box-shadow:0 0 0 1px rgba(245,197,66,.055),0 10px 30px rgba(0,0,0,.32),0 0 28px rgba(245,197,66,.075);}
.reseller-mode .ff-top-sellers-card:after{content:"";position:absolute;pointer-events:none;inset:0;border-radius:inherit;background:linear-gradient(115deg,transparent 15%,rgba(255,226,135,.045) 35%,transparent 52%,rgba(124,58,237,.045) 74%,transparent);background-size:220% 100%;animation:ffResellerDashboardSweep 7s linear infinite;}
.reseller-mode .ff-top-sellers-title{background:linear-gradient(90deg,#fff0a8,#f5c542 55%,#fff7d0);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 15px rgba(245,197,66,.13);}
.reseller-mode .ff-top-sellers-head{background:linear-gradient(90deg,#3a2a08,#20180a 60%,#2b1c3d)!important;color:#ffedb0!important;border-bottom-color:rgba(245,197,66,.28)!important;}
.reseller-mode .ff-top-seller-row{transition:background .25s ease,box-shadow .25s ease;}
.reseller-mode .ff-top-seller-row:hover{background:linear-gradient(90deg,rgba(245,197,66,.10),rgba(124,58,237,.08))!important;box-shadow:inset 3px 0 #f5c542;}
.reseller-mode .ff-top-seller-row td:first-child{color:#f5c542!important;text-shadow:0 0 10px rgba(245,197,66,.22);}
.reseller-mode .ff-top-sellers-meter{background:linear-gradient(90deg,#9f7210,#f5c542 55%,#fff0a8)!important;box-shadow:0 0 14px rgba(245,197,66,.26);}
.reseller-mode .glass-card.ff-premium-outline{border-color:rgba(245,197,66,.28)!important;box-shadow:0 0 0 1px rgba(245,197,66,.035),0 8px 26px rgba(0,0,0,.24),0 0 20px rgba(245,197,66,.055);}
.reseller-mode .glass-card.ff-premium-outline:hover{border-color:rgba(245,197,66,.48)!important;box-shadow:0 12px 30px rgba(0,0,0,.32),0 0 25px rgba(245,197,66,.12);}
@keyframes ffResellerDashboardSweep{0%{background-position:120% 0;opacity:.35}50%{opacity:.8}100%{background-position:-120% 0;opacity:.35}}
@media(prefers-reduced-motion:reduce){.reseller-mode .ff-top-sellers-card:after{animation:none!important}}


/* Requested reseller and live-proof premium border finish. Purple interactive reseller flow remains untouched. */
.ff-live-glow{border-color:rgba(245,197,66,.42)!important;box-shadow:0 0 0 1px rgba(245,197,66,.055),0 8px 26px rgba(0,0,0,.25),0 0 24px rgba(245,197,66,.085),0 0 20px rgba(229,9,20,.055)}
.ff-live-glow:before{background:linear-gradient(115deg,transparent 8%,rgba(245,197,66,.20),transparent 34%,rgba(229,9,20,.13),transparent 57%,rgba(124,58,237,.14),transparent 82%)!important;filter:blur(6px)!important;opacity:.9}
.reseller-mode .ff-live-glow,.reseller-mode .ff-top-sellers-card{border-color:rgba(245,197,66,.48)!important;box-shadow:0 0 0 1px rgba(245,197,66,.06),0 10px 30px rgba(0,0,0,.3),0 0 28px rgba(245,197,66,.1),0 0 18px rgba(124,58,237,.09)!important}
.reseller-mode .ff-live-glow:before{background:linear-gradient(115deg,transparent 8%,rgba(245,197,66,.18),transparent 36%,rgba(124,58,237,.17),transparent 72%)!important}

/* Header: product/shop name beside DP, truncated so it never overlaps the wallet balance. */
header nav>.ff-header-brand{flex:1 1 0;min-width:0;max-width:calc(100% - 150px);overflow:hidden}
header nav>.ms-auto{flex:0 0 auto}
.ff-header-brand .ff-dp-link{flex:0 0 auto}
.ff-header-brand .ff-header-title{flex:0 1 auto;min-width:0;max-width:100%!important}
.ff-header-brand .ff-header-title-top,.ff-header-brand .ff-header-title-bottom{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:640px){
  header nav>.ff-header-brand{max-width:calc(100% - 158px)}
  .ff-header-brand .ff-header-title{max-width:100%!important}
}
@media(min-width:1024px){header nav>.ff-header-brand{flex:0 1 auto;max-width:34%}}


/* ===== Premium Reseller card (dashboard): restrained gold edge + soft gold background glow ===== */
.ff-premium-reseller-card{border:1px solid rgba(245,197,66,.5)!important;background:radial-gradient(ellipse at 8% 0%,rgba(245,197,66,.16),transparent 55%),linear-gradient(115deg,rgba(245,197,66,.09),#0a0a0a 55%,rgba(229,9,20,.05))!important;box-shadow:0 0 0 1px rgba(245,197,66,.08),0 0 20px rgba(245,197,66,.14),inset 0 0 26px rgba(245,197,66,.05);animation:ffGoldEdge 4.5s ease-in-out infinite}
@keyframes ffGoldEdge{0%,100%{box-shadow:0 0 0 1px rgba(245,197,66,.06),0 0 14px rgba(245,197,66,.10),inset 0 0 22px rgba(245,197,66,.04)}50%{box-shadow:0 0 0 1px rgba(245,197,66,.16),0 0 26px rgba(245,197,66,.22),inset 0 0 30px rgba(245,197,66,.08)}}
@media(prefers-reduced-motion:reduce){.ff-premium-reseller-card{animation:none!important}}


/* ===== Site name / logo: multicolor (gold -> red -> violet) with a slow, subtle shimmer ===== */
.ff-header-title-top,.ff-side-title{background:linear-gradient(100deg,#fff0a8 0%,#f5c542 28%,#e50914 62%,#a855f7 100%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;text-shadow:none;animation:ffNameShimmer 9s ease-in-out infinite alternate}
@keyframes ffNameShimmer{from{background-position:0 0}to{background-position:100% 0}}
@media(prefers-reduced-motion:reduce){.ff-header-title-top,.ff-side-title{animation:none}}

/* ===== Amounts / balances: bright, readable on the dark UI (sign colours of +/- transactions are untouched) ===== */
.ff-wallet-pill strong{color:#fff7d6!important;text-shadow:0 0 10px rgba(245,197,66,.28)}
.ff-wallet-pill i{color:#f5c542!important}

/* ===== Header: long profile/site names truncate instead of colliding with the wallet amount ===== */
.ff-header-brand{min-width:0}
.ff-header-brand .ff-header-title-top{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
header nav>.ms-auto{flex-shrink:0}


/* Performance tuning: retain the premium palette and static glow, but avoid repaint-heavy
   infinite box-shadow/background-position animations on every page. */
.ff-recharge-card.ff-premium-outline{animation:none!important}
.ff-recharge-card:after{animation:none!important;display:none}
.ff-live-glow:before{animation:none!important;filter:none!important;opacity:.55}
.reseller-mode .ff-top-sellers-card:after{animation:none!important}
.ff-premium-reseller-card{animation:none!important}
.ff-header-title-top,.ff-side-title{animation:none!important;background-position:50% 0}
@media (max-width: 768px){
  .premium-loading-overlay{backdrop-filter:none;-webkit-backdrop-filter:none}
  .ff-live-glow:before{filter:none!important}
}
@media (prefers-reduced-motion: reduce){
  .premium-loading-overlay,.premium-loading-card{transition:none!important}
  .premium-loader-orbit:before,.premium-loader-orbit:after,.premium-loader-track:after{animation:none!important}
}
