/* BudgetDealz V3.3 premium app-like UI patch */
:root{--bd-glow:0 20px 55px rgba(21,166,106,.18);--bd-card-radius:22px;--bd-film-gradient:linear-gradient(145deg,rgba(255,255,255,.96),rgba(238,248,242,.92));}
body{letter-spacing:-.01em}.stars-bg{background:radial-gradient(circle at 14% 4%,rgba(21,166,106,.16),transparent 22%),radial-gradient(circle at 82% 18%,rgba(125,78,255,.13),transparent 24%),linear-gradient(180deg,rgba(244,248,245,.95),rgba(255,255,255,.8))!important}.trust-strip{padding:12px 6px 8px!important}.trust-pill{box-shadow:0 8px 22px rgba(31,74,49,.08);font-weight:700}.bd-app-boxes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 6px 8px}.bd-app-box{position:relative;overflow:hidden;border:1px solid var(--border-color);border-radius:22px;padding:16px;background:var(--bd-film-gradient);box-shadow:var(--bd-glow);color:var(--text-light);min-height:102px;display:flex;gap:13px;align-items:center;transition:.25s ease}.bd-app-box:before,.product-card-slide:before,.bd-film-card:before{content:"";position:absolute;inset:-120% -30%;background:linear-gradient(115deg,transparent 42%,rgba(255,255,255,.65) 50%,transparent 58%);transform:translateX(-65%);transition:.75s ease;pointer-events:none}.bd-app-box:hover:before,.product-card-slide:hover:before,.bd-film-card:hover:before{transform:translateX(65%)}.bd-app-box:hover{transform:translateY(-4px) scale(1.01);border-color:rgba(21,166,106,.5)}.bd-app-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,#15a66a,#0f8b58);color:#fff;font-size:1.25rem;box-shadow:0 14px 24px rgba(21,166,106,.25)}.bd-app-title{font-weight:900;font-size:.98rem}.bd-app-sub{font-size:.78rem;color:var(--text-muted);margin-top:3px}.product-card-slide,.operator-icon,.recharge-card,.detail-card,.product-card-pro{position:relative;overflow:hidden;border-radius:var(--bd-card-radius)!important;box-shadow:0 15px 38px rgba(31,74,49,.10)!important;transform-style:preserve-3d}.product-card-slide:hover{transform:perspective(900px) rotateX(2deg) translateY(-7px)!important}.product-card-slide img{background:#f5f8f6}.card-title{letter-spacing:-.02em}.bd-film-row{display:flex;gap:14px;overflow-x:auto;padding:4px 6px 18px;scroll-snap-type:x mandatory}.bd-film-card{position:relative;flex:0 0 220px;min-height:260px;border:1px solid var(--border-color);border-radius:26px;background:linear-gradient(145deg,#ffffff,#edf9f2);box-shadow:0 22px 48px rgba(31,74,49,.12);overflow:hidden;scroll-snap-align:start;transition:.25s ease;color:var(--text-light)}.bd-film-card:hover{transform:perspective(900px) rotateY(-4deg) translateY(-5px)}.bd-film-card img{width:100%;height:148px;object-fit:cover}.bd-film-body{padding:14px}.bd-film-badge{position:absolute;top:12px;left:12px;background:rgba(15,139,88,.92);color:#fff;border-radius:999px;padding:5px 9px;font-size:.7rem;font-weight:800}.bd-film-title{font-weight:900;line-height:1.2;min-height:38px}.bd-film-price{font-weight:900;color:#0f8b58;margin-top:8px}.giftcard-compact-box{border:1px solid var(--border-color);border-radius:26px;background:linear-gradient(135deg,#fff,#f0fbf5);box-shadow:0 18px 42px rgba(31,74,49,.1);padding:12px 8px 16px;margin:6px}.giftcard-compact-box .product-card-slide{flex-basis:138px}.bd-legit-line{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 6px 2px}.bd-legit-line span{background:#fff;border:1px solid var(--border-color);border-radius:999px;padding:8px 12px;font-weight:700;font-size:.82rem;color:#405449}.bd-legit-line i{color:#15a66a}.bd-view-all-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:16px}.bd-grid-card{position:relative;overflow:hidden;border:1px solid var(--border-color);border-radius:22px;background:#fff;box-shadow:0 15px 34px rgba(31,74,49,.1);color:var(--text-light);transition:.22s}.bd-grid-card:hover{transform:translateY(-5px)}.bd-grid-card img{width:100%;height:145px;object-fit:cover}.bd-grid-body{padding:13px}.bd-safe-copy{background:#eef8f2;border:1px solid #ccebdd;border-radius:20px;padding:14px;margin:12px 0;color:#234237}.bd-safe-copy strong{color:#0f8b58}@media(max-width:767px){.bd-app-boxes{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 4px}.bd-app-box{display:block;text-align:center;border-radius:19px;padding:12px 8px;min-height:112px}.bd-app-icon{margin:0 auto 9px;width:48px;height:48px;border-radius:17px}.bd-app-title{font-size:.82rem}.bd-app-sub{font-size:.68rem}.bd-film-card{flex-basis:178px;min-height:235px}.bd-film-card img{height:125px}.giftcard-compact-box{border-radius:22px;padding:8px 2px}.product-card-slide{flex-basis:140px!important}.product-card-slide img{height:112px!important}.bd-legit-line{overflow-x:auto;flex-wrap:nowrap}.bd-legit-line span{white-space:nowrap}.section-title{padding-inline:6px}.bd-view-all-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bd-grid-card img{height:122px}}@media(prefers-color-scheme:dark){body:not([data-theme="light"]) .bd-app-box,body:not([data-theme="light"]) .bd-film-card,body:not([data-theme="light"]) .giftcard-compact-box,body:not([data-theme="light"]) .bd-grid-card{background:linear-gradient(145deg,#111827,#0b1220);border-color:#243047}body:not([data-theme="light"]) .bd-app-sub,body:not([data-theme="light"]) .bd-legit-line span{color:#cbd5e1}body:not([data-theme="light"]) .bd-legit-line span{background:#111827;border-color:#243047}}

/* ===== BudgetDealz V3.4 UI hardening =====
   Explicit theme selectors avoid OS color-scheme overriding the in-site toggle.
*/
html[data-bd-theme="dark"] .bd-app-box,
html[data-bd-theme="dark"] .bd-film-card,
html[data-bd-theme="dark"] .giftcard-compact-box,
html[data-bd-theme="dark"] .bd-grid-card{
  background:linear-gradient(145deg,#111827,#0b1220)!important;
  color:var(--bd-text)!important;
  border-color:var(--bd-border)!important;
}
html[data-bd-theme="light"] .bd-app-box,
html[data-bd-theme="light"] .bd-film-card,
html[data-bd-theme="light"] .giftcard-compact-box,
html[data-bd-theme="light"] .bd-grid-card{
  background:linear-gradient(145deg,#fff,#f5faf7)!important;
  color:var(--bd-text)!important;
  border-color:var(--bd-border)!important;
}
html[data-bd-theme="dark"] .bd-grid-card h1,
html[data-bd-theme="dark"] .bd-grid-card h2,
html[data-bd-theme="dark"] .bd-grid-card h3,
html[data-bd-theme="dark"] .bd-grid-card h4,
html[data-bd-theme="dark"] .bd-grid-card h5,
html[data-bd-theme="dark"] .bd-grid-card h6,
html[data-bd-theme="dark"] .bd-film-title,
html[data-bd-theme="dark"] .bd-app-title{color:#f8fafc!important;-webkit-text-fill-color:#f8fafc!important}
html[data-bd-theme="light"] .bd-grid-card h1,
html[data-bd-theme="light"] .bd-grid-card h2,
html[data-bd-theme="light"] .bd-grid-card h3,
html[data-bd-theme="light"] .bd-grid-card h4,
html[data-bd-theme="light"] .bd-grid-card h5,
html[data-bd-theme="light"] .bd-grid-card h6,
html[data-bd-theme="light"] .bd-film-title,
html[data-bd-theme="light"] .bd-app-title{color:#122219!important;-webkit-text-fill-color:#122219!important}
html[data-bd-theme="dark"] .bd-grid-card .text-muted,
html[data-bd-theme="dark"] .bd-film-card .text-muted,
html[data-bd-theme="dark"] .bd-app-sub{color:#aebbd0!important}
html[data-bd-theme="light"] .bd-grid-card .text-muted,
html[data-bd-theme="light"] .bd-film-card .text-muted,
html[data-bd-theme="light"] .bd-app-sub{color:#607168!important}
.bd-grid-card,.bd-grid-card *, .bd-film-card,.bd-film-card *, .bd-app-box,.bd-app-box *{text-decoration:none!important}
.bd-grid-card{isolation:isolate;transform:translateZ(0);will-change:transform;box-shadow:0 18px 42px rgba(0,0,0,.13)!important}
.bd-grid-card::after,.product-card-slide::after,.bd-film-card::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:3;border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,.12),transparent 32%,transparent 68%,rgba(25,195,125,.08));
  opacity:.7;
}
.bd-grid-card img,.product-card-slide img,.bd-film-card img{transition:transform .45s cubic-bezier(.2,.8,.2,1),filter .35s ease!important;will-change:transform}
.bd-grid-card:hover,.bd-grid-card:focus-visible{transform:perspective(900px) translateY(-7px) rotateX(1.4deg)!important;box-shadow:0 28px 60px rgba(0,0,0,.21)!important}
.bd-grid-card:hover img,.bd-grid-card:focus-visible img,.product-card-slide:hover img,.bd-film-card:hover img{transform:scale(1.055)!important;filter:saturate(1.08) contrast(1.03)}
.bd-grid-card:active,.product-card-slide:active,.bd-film-card:active{transform:scale(.985)!important}
.bd-grid-body,.product-card-slide .card-body,.bd-film-body{position:relative;z-index:4}

/* subtle entrance animation; disabled for reduced motion */
@keyframes bd-v34-card-in{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.bd-view-all-grid .bd-grid-card,.bd-film-row .bd-film-card,.scroll-x .product-card-slide{animation:bd-v34-card-in .48s both cubic-bezier(.2,.8,.2,1)}
.bd-view-all-grid .bd-grid-card:nth-child(2n),.scroll-x .product-card-slide:nth-child(2n){animation-delay:.04s}.bd-view-all-grid .bd-grid-card:nth-child(3n),.scroll-x .product-card-slide:nth-child(3n){animation-delay:.08s}.bd-view-all-grid .bd-grid-card:nth-child(4n),.scroll-x .product-card-slide:nth-child(4n){animation-delay:.12s}
@media(prefers-reduced-motion:reduce){.bd-view-all-grid .bd-grid-card,.bd-film-row .bd-film-card,.scroll-x .product-card-slide{animation:none!important}.bd-grid-card,.product-card-slide,.bd-film-card,.bd-grid-card img,.product-card-slide img,.bd-film-card img{transition:none!important}}

/* Shared list and safe-copy contrast */
html[data-bd-theme="dark"] .bd-safe-copy{background:#111c2b!important;border-color:#2a3953!important;color:#dce5f2!important}
html[data-bd-theme="light"] .bd-safe-copy{background:#eef8f2!important;border-color:#ccebdd!important;color:#234237!important}
html[data-bd-theme="dark"] .shared-plan-chip{background:rgba(25,195,125,.10)!important;border-color:rgba(25,195,125,.34)!important;color:#5ee7aa!important}
html[data-bd-theme="light"] .shared-plan-chip{background:#effaf4!important;border-color:#c7e9d5!important;color:#0f8b58!important}

/* Keep one clean trust row, never a duplicated stacked pair. */
.bd-legit-line{margin-top:10px!important;margin-bottom:8px!important}
.bd-legit-line span{background:var(--bd-card)!important;color:var(--bd-text)!important;border-color:var(--bd-border)!important}

/* Theme-aware admin/user tables and links. */
html[data-bd-theme="dark"] .user-link{color:#f4f7fb!important}
html[data-bd-theme="light"] .user-link{color:#17251d!important}
html[data-bd-theme="dark"] .table strong,html[data-bd-theme="dark"] .table td,html[data-bd-theme="dark"] .table th{color:var(--bd-text)!important}
html[data-bd-theme="light"] .table strong,html[data-bd-theme="light"] .table td,html[data-bd-theme="light"] .table th{color:var(--bd-text)!important}
