/* Roypin Live UI Pack - CI3 future tema uyumlu */
:root{
  --roy-live-green:#1d4ed8;
  --roy-live-green-2:#2563eb;
  --roy-live-dark:#07110d;
  --roy-live-surface:rgba(255,255,255,.92);
  --roy-live-text:#0f172a;
  --roy-live-muted:#64748b;
  --roy-live-border:rgba(15,23,42,.10);
}
html[data-theme="dark"],html[data-bs-theme="dark"]{
  --roy-live-surface:rgba(9,16,15,.88);
  --roy-live-text:#f8fafc;
  --roy-live-muted:#9ca3af;
  --roy-live-border:rgba(255,255,255,.10);
}
.roy-live-proof{
  position:fixed;
  left:18px;
  bottom:24px;
  z-index:9998;
  width:min(355px, calc(100vw - 28px));
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 32px;
  gap:12px;
  align-items:center;
  padding:14px;
  border:1px solid var(--roy-live-border);
  border-radius:22px;
  background:var(--roy-live-surface);
  color:var(--roy-live-text);
  box-shadow:0 22px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(37,99,235,.06) inset;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  transform:translate3d(-18px,18px,0) scale(.94);
  opacity:0;
  pointer-events:none;
  transition:opacity .28s ease,transform .28s ease;
}
.roy-live-proof.is-visible{opacity:1;transform:translate3d(0,0,0) scale(1);pointer-events:auto;}
.roy-live-proof-icon{width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--roy-live-green),var(--roy-live-green-2));color:#fff;box-shadow:0 14px 30px rgba(29,78,216,.30);}
.roy-live-proof-icon i{font-size:23px;}
.roy-live-proof-content{min-width:0;display:flex;flex-direction:column;gap:2px;}
.roy-live-proof-content strong{font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.roy-live-proof-content span{font-size:12px;color:var(--roy-live-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.roy-live-proof-content small{font-size:10px;color:var(--roy-live-green);font-weight:900;text-transform:uppercase;letter-spacing:.05em;}
.roy-live-proof-close{width:32px;height:32px;border:0;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(148,163,184,.14);color:var(--roy-live-muted);}
.roy-live-proof-close:hover{background:rgba(239,68,68,.12);color:#ef4444;}

/* Mevcut header içindeki mobil barı premium ve alta yapışık hale getirir. */
@media (max-width:991.98px){
  body{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px));}
  .fp-mobile-bar{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    z-index:999!important;
    padding:0 8px max(0px,env(safe-area-inset-bottom,0px))!important;
    margin:0!important;
    pointer-events:none;
    transform:none!important;
  }
  .fp-mobile-bar .grid,
  .fp-mobile-bar.is-logged .grid,
  .fp-mobile-bar.is-guest .grid{
    pointer-events:auto;
    width:100%!important;
    max-width:560px!important;
    min-height:76px!important;
    margin:0 auto!important;
    padding:8px 7px 9px!important;
    display:grid!important;
    align-items:center!important;
    gap:4px!important;
    border-radius:26px 26px 0 0!important;
    background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,255,255,.88))!important;
    border:1px solid rgba(29,78,216,.16)!important;
    border-bottom:0!important;
    box-shadow:0 -16px 42px rgba(15,23,42,.13),0 -1px 0 rgba(37,99,235,.18) inset!important;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    overflow:visible!important;
  }
  html[data-theme="dark"] .fp-mobile-bar .grid,
  html[data-bs-theme="dark"] .fp-mobile-bar .grid{
    background:linear-gradient(180deg,rgba(8,16,14,.94),rgba(6,12,11,.90))!important;
    border-color:rgba(37,99,235,.22)!important;
    box-shadow:0 -18px 45px rgba(0,0,0,.35),0 -1px 0 rgba(37,99,235,.18) inset!important;
  }
  .fp-mobile-bar .grid .link,
  .fp-mobile-bar.is-logged .grid .link,
  .fp-mobile-bar.is-guest .grid .link{
    min-width:0!important;
    min-height:58px!important;
    padding:5px 2px!important;
    border-radius:18px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    transition:transform .18s ease,background .18s ease,color .18s ease!important;
  }
  .fp-mobile-bar .grid .link:active{transform:scale(.96)!important;}
  .fp-mobile-bar .grid .link .icon{width:30px!important;height:30px!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;}
  .fp-mobile-bar .grid .link .icon i{font-size:20px!important;line-height:1!important;}
  .fp-mobile-bar .grid .link .text{font-size:10px!important;line-height:1!important;font-weight:850!important;letter-spacing:-.02em!important;white-space:nowrap!important;}
  .fp-mobile-bar .grid .link.is-active{background:rgba(37,99,235,.10)!important;color:var(--roy-live-green)!important;}
  .fp-mobile-bar.is-logged .grid .link.is-cart-center{transform:translateY(-16px)!important;background:transparent!important;}
  .fp-mobile-bar.is-logged .grid .link.is-cart-center .icon{width:56px!important;height:56px!important;border-radius:22px!important;background:linear-gradient(135deg,var(--roy-live-green),var(--roy-live-green-2))!important;color:#fff!important;box-shadow:0 16px 32px rgba(29,78,216,.30)!important;}
  .fp-mobile-bar.is-logged .grid .link.is-cart-center .text{margin-top:1px!important;color:var(--roy-live-green)!important;text-shadow:none!important;}
  .fp-mobile-cart-count{position:absolute!important;right:-4px!important;top:-5px!important;min-width:19px!important;height:19px!important;border-radius:99px!important;background:#ef4444!important;color:#fff!important;border:2px solid #fff!important;font-size:10px!important;font-weight:900!important;display:flex!important;align-items:center!important;justify-content:center!important;}
  html[data-theme="dark"] .fp-mobile-cart-count,html[data-bs-theme="dark"] .fp-mobile-cart-count{border-color:#07110d!important;}
  .roy-live-proof{left:12px;right:12px;bottom:calc(92px + env(safe-area-inset-bottom,0px));width:auto;}
}

/* Mobil hızlı satın alma */
.roy-mobile-quick-buy{display:none;}
@media (max-width:767.98px){
  .roy-mobile-quick-buy{
    position:fixed;
    left:10px;
    right:10px;
    bottom:calc(84px + env(safe-area-inset-bottom,0px));
    z-index:998;
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    padding:10px;
    border-radius:24px;
    background:var(--roy-live-surface);
    color:var(--roy-live-text);
    border:1px solid var(--roy-live-border);
    box-shadow:0 20px 54px rgba(0,0,0,.18);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    transform:translateY(120%);
    opacity:0;
    transition:transform .25s ease,opacity .25s ease;
  }
  .roy-mobile-quick-buy.is-ready{transform:translateY(0);opacity:1;}
  .roy-mqb-media{width:48px;height:48px;border-radius:17px;overflow:hidden;background:rgba(148,163,184,.16);}
  .roy-mqb-media img{width:100%;height:100%;object-fit:cover;display:block;}
  .roy-mqb-info{min-width:0;display:flex;flex-direction:column;gap:1px;}
  .roy-mqb-info small{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--roy-live-green);font-weight:900;}
  .roy-mqb-info strong{font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .roy-mqb-price{font-size:14px;font-weight:950;color:var(--roy-live-text);}
  .roy-mqb-actions{display:flex;align-items:center;gap:7px;}
  .roy-mqb-secondary,.roy-mqb-primary{border:0;display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:16px;font-weight:950;}
  .roy-mqb-secondary{width:42px;background:rgba(37,99,235,.12);color:var(--roy-live-green);}
  .roy-mqb-primary{padding:0 15px;background:linear-gradient(135deg,var(--roy-live-green),var(--roy-live-green-2));color:#fff;box-shadow:0 14px 28px rgba(29,78,216,.25);}
  .roy-mqb-primary:active,.roy-mqb-secondary:active{transform:scale(.96);}
}

/* Sepet drawer güçlendirme */
.fp-cart-drawer{will-change:transform;}
.fp-cart-drawer-item{animation:royDrawerItemIn .22s ease both;}
@keyframes royDrawerItemIn{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:translateX(0)}}

/* Mikro animasyonlar */
.fp-product-item,.steam-elite-bundle-card,.review-slide-card,.review-item{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;}
.fp-product-item:hover,.review-slide-card:hover,.review-item:hover{transform:translateY(-3px);}
.btn-add-to-cart,#steamAddToCartBtn,.roy-mqb-primary,.fp-cart-drawer-checkout{position:relative;overflow:hidden;}
.roy-click-wave{position:absolute;inset:auto;width:12px;height:12px;border-radius:999px;background:rgba(255,255,255,.55);transform:translate(-50%,-50%) scale(1);animation:royClickWave .52s ease-out forwards;pointer-events:none;}
@keyframes royClickWave{to{opacity:0;transform:translate(-50%,-50%) scale(18)}}
.roy-cart-flyer{position:fixed;z-index:10000;width:42px;height:42px;border-radius:16px;background:linear-gradient(135deg,var(--roy-live-green),var(--roy-live-green-2));color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 14px 30px rgba(29,78,216,.28);pointer-events:none;transition:transform .55s cubic-bezier(.19,1,.22,1),opacity .55s ease;}
.review-slide-card .review-slide-stars i,.review-stars i{filter:drop-shadow(0 4px 8px rgba(245,158,11,.20));}
.review-slide-card::after,.review-item::after{content:"Onaylı alışveriş";display:inline-flex;margin-top:10px;padding:5px 9px;border-radius:999px;background:rgba(37,99,235,.10);color:var(--roy-live-green);font-size:10px;font-weight:900;letter-spacing:.02em;}
@media (prefers-reduced-motion:reduce){.roy-live-proof,.roy-mobile-quick-buy,.fp-product-item,.review-slide-card,.review-item,.roy-cart-flyer{transition:none!important;animation:none!important}}


/* Roypin Review Upgrade */
.rp-review-badge-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0 8px}.rp-review-badge-row span{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:rgba(59,130,246,.11);border:1px solid rgba(59,130,246,.22);color:#2563eb;font-size:11px;font-weight:950}.rp-review-mini-scores{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 10px}.rp-review-mini-scores em{font-style:normal;display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border-radius:999px;background:rgba(15,23,42,.04);border:1px solid rgba(15,23,42,.08);font-size:11px;font-weight:850;color:var(--text-gray,#64748b)}.rp-review-mini-scores b{color:#1d4ed8}.rp-review-proof-link{display:block;margin-top:10px;width:max-content;max-width:100%;border-radius:16px;overflow:hidden;border:1px solid rgba(59,130,246,.25);box-shadow:0 16px 34px rgba(15,23,42,.12);background:#fff}.rp-review-proof-link img{display:block;width:180px;height:110px;object-fit:cover;transition:transform .2s ease}.rp-review-proof-link:hover img{transform:scale(1.04)}.rp-review-score-grid,.steam-review-subscore-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rp-review-score-grid label,.steam-review-subscore-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:900}.rp-review-file-label{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:16px;border:1px dashed rgba(59,130,246,.35);background:rgba(59,130,246,.07);cursor:pointer;font-weight:900;color:#2563eb}.rp-review-file-label input{display:none}.rp-review-upload-form .form-control,.rp-review-upload-form .form-select{border-radius:12px}.steam-review-subscore-grid{margin-top:-2px}.steam-review-card .rp-review-proof-link img{width:160px;height:96px}.review-slide-card .rp-review-proof-link img{width:150px;height:92px}html[data-theme="dark"] .rp-review-mini-scores,html[data-bs-theme="dark"] .rp-review-mini-scores{color:#cbd5e1}html[data-theme="dark"] .rp-review-mini-scores em,html[data-bs-theme="dark"] .rp-review-mini-scores em{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.10)}@media(max-width:575.98px){.rp-review-score-grid,.steam-review-subscore-grid{grid-template-columns:1fr}.rp-review-proof-link img{width:150px;height:92px}}
