/* =========================
   Mobile (default) styles
   ========================= */

@font-face{
  font-family: "Google Sans";
  src: url("fonts/Google_Sans/GoogleSans-VariableFont_GRAD,opsz,wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Google Sans";
  src: url("fonts/Google_Sans/GoogleSans-Italic-VariableFont_GRAD,opsz,wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* Base */
:root{
 /* --brand:#e50000;*/
  /*--brand-hover:#d84a4a;*/
   --brand:#FFDD71; /*e1c07e  */
  --brand-hover:#e1c07e; /*#947f57 */
  --text:#222;
  --bg:#f6f6f7;
  --bluray:#0b74ff;
  --spine:#01337a;
  --edge-right-a:#006794;
  --edge-right-b:#0b74ff;
  --edge-bottom:#0b74ff;
  --nav-h: 68px;
  --topbar-h: 56px;
  --safari-nav-offset: 0px;
}
html{overflow-x: hidden;max-width: 100vw;}
html,body{/*height:100%;*/margin:0px;}
body{font-family:"Google Sans","Segoe UI",sans-serif;background:var(--bg);color:var(--text); padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));}

/* Prevent iOS input zoom */
@media (hover: none) and (pointer: coarse) {
  input, textarea, select {
    font-size:16px;
  }
}

/* Infinite bottom loader (shared) */
.bottom-loader{ display:none; text-align:center; color:#666; padding:20px 0 150px; }
.bottom-loader .spinner{ width:20px; height:20px; border:3px solid #bbb; border-top-color:#555; border-radius:50%; display:inline-block; vertical-align:middle; margin-right:8px; animation:spin 1s linear infinite }
@keyframes spin{ to { transform: rotate(360deg); } }

.topbar{
  position:fixed; top:0; left:0; right:0; z-index:60;
  padding:10px 14px; display:flex; align-items:center; justify-content:space-between;
  transition: transform .25s ease; will-change: transform;
  background: rgba(0,0,0,0.78);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.topbar--hidden{ transform: translateY(-100%); }
.top-left{ display:flex; align-items:center; gap:8px; text-decoration:none; color:inherit; }
.top-logo{ width:24px; height:24px; display:block; box-shadow: 0px 0px 9px 0px #ffffff85; border-radius: 5px;}
.brand{font-weight:bold;color:var(--brand);font-size:18px}
.top-right{ display:flex; align-items:center; gap:10px; }
.vip-badge{
  display:flex;
  align-items:center;
  gap:6px;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  background:#3b1f5f;
  border:1px solid rgba(255,255,255,0.2);
  color:#fff;
  font-weight:700;
  font-size:11px;
  letter-spacing:0.08em;
}
.vip-badge img{ width:16px; height:16px; display:block; filter:invert(1);}
.vip-cta{
  background:rgba(255,221,113,0.12);
  border-color:rgba(255,221,113,0.55);
  color:#ffdd71;
}
.topbar a{ text-decoration:none; }
.icon-btn{ position:relative; width:36px; height:36px; display:grid; place-items:center; text-decoration:none; }
.icon-btn img{ width:22px; height:22px; display:block; }
.icon-btn-sm{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.04);
  cursor:pointer;
}
.icon-btn-sm img{ width:18px; height:18px; filter: invert(1); }
.icon-btn .badge{ position:absolute; right:-4px; top:-4px; min-width:16px;width: 16px; height:16px; padding:2px; border-radius:999px; background:var(--brand); color:#000000; font:700 11px/18px "Google Sans","Segoe UI",sans-serif; text-align:center; border:2px solid #000000c7; box-sizing:content-box; line-height: 16px; pointer-events:none;}
.icon-btn .badge:empty{ display:none; }
.notif-wrap{ position:relative; }
.notif-panel{
  position:fixed; right:16px; top:calc(var(--topbar-h) + 8px); width:320px; max-width:90vw;
  color:#e9ebf5; border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 18px 40px rgba(0,0,0,0.45); display:none; z-index:1200;
  border-radius: 0px 0px 12px 12px;
  background: linear-gradient(180deg, rgba(8,10,16,0.95), rgba(12,14,22,0.95));
}
.notif-panel.active{ display:block; }
.notif-head{ display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.06); }
.notif-title{ font-weight:700; font-size:14px; }
.notif-list{ max-height:360px; overflow:auto; }
.notif-item{ display:flex; gap:10px; padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.06); }
.notif-item:last-child{ border-bottom:0; }
.notif-item.is-read{ opacity:0.6; }
.notif-item.is-read .notif-btn{
  background:rgba(255,255,255,0.05);
  border-color:rgba(255,255,255,0.08);
  color:#b5bccb;
}
.notif-page-item.is-read{ opacity:0.6; }
.notif-avatar{ width:32px; height:32px; border-radius:50%; background:#1f2937; display:grid; place-items:center; flex:0 0 auto; color:#fff; font-weight:700; font-size:13px; }
.notif-avatar img{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.notif-body{ display:flex; flex-direction:column; gap:6px; font-size:13px; }
.notif-actions{ display:flex; gap:6px; flex-wrap:wrap; }
.notif-btn{ background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.12); color:#fff; border-radius:8px; padding:4px 8px; font-size:12px; cursor:pointer; }
.notif-btn.is-primary{ background:var(--brand); color:#000; border-color:transparent; }
.notif-empty{ padding:16px; font-size:13px; color:#9ca3af; }
.notif-footer{ padding:8px 12px; border-top:1px solid rgba(255,255,255,0.06); text-align:right; }
.notif-link{ color:var(--brand); text-decoration:none; font-size:12px; }

.avatar-stack{ display:flex; align-items:center; gap:6px; }
.avatar-circle{
  width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:700;
  border:1px solid rgba(255,255,255,0.15); background:#111827; color:#f0c15a;
}
.avatar-circle img{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.avatar--gold{ background:#111; color:#f0c15a; border-color:#f0c15a55; }
.avatar--red{ background:#b91c1c; color:#fff; }
.avatar--purple{ background:#6d28d9; color:#fff; }
.avatar--green{ background:#15803d; color:#fff; }
.avatar--white{ background:#f8fafc; color:#111; }

.modal{ position:fixed; inset:0; background:rgba(0,0,0,0.72); display:none; align-items:center; justify-content:center; z-index:1200; }
.modal.active{ display:flex; }
.modal-card{
  width:min(520px, 92vw); background:#0f172a; color:#e9ebf5; border-radius:14px;
  border:1px solid rgba(255,255,255,0.08); box-shadow:0 22px 50px rgba(0,0,0,0.5);
}
.modal-head{ display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid rgba(255,255,255,0.06); }
.modal-title{ font-weight:700; }
.modal-body{ padding:14px; display:flex; flex-direction:column; gap:10px; }
.modal-actions{ display:flex; justify-content:flex-end; gap:8px; padding:12px 14px; border-top:1px solid rgba(255,255,255,0.06); }
.modal-close{ background:transparent; border:0; color:#9ca3af; font-size:18px; cursor:pointer; }
.input{ width:100%; padding:8px 10px; border-radius:8px; border:1px solid #1f2937; background:#111827; color:#e5e7eb; box-sizing:border-box; }
.select{ padding:8px 10px; border-radius:8px; border:1px solid #1f2937; background:#111827; color:#e5e7eb; box-sizing:border-box; }
.suggest-list{ position:relative; }
.suggest-panel{
  position:absolute; left:0; right:0; top:100%; background:#111827; border:1px solid rgba(255,255,255,0.08);
  border-radius:10px; margin-top:6px; z-index:5; max-height:220px; overflow:auto; display:none;
}
.suggest-panel--static{ position:static; display:block; margin-top:6px; max-height:none; }
.suggest-panel.active{ display:block; }
.suggest-item{ display:flex; gap:10px; align-items:center; padding:8px 10px; cursor:pointer; }
.suggest-item:hover{ background:rgba(255,255,255,0.06); }
.suggest-item--empty{ cursor:default; color:#9ca3af; }
.suggest-avatar{ width:28px; height:28px; border-radius:50%; background:#1f2937; display:grid; place-items:center; font-size:12px; font-weight:700; color:#fff; flex:0 0 auto; }
.suggest-avatar img{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.suggest-meta{ display:flex; flex-direction:column; font-size:13px; }
.suggest-email{ color:#9ca3af; font-size:12px; }
.suggested-block{ display:flex; flex-direction:column; gap:6px; }
.suggested-title{ font-size:12px; text-transform:uppercase; letter-spacing:0.06em; color:#9ca3af; }

.share-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,0.06); }
.share-row:last-child{ border-bottom:0; }
.share-meta{ display:flex; align-items:center; gap:10px; }
.share-role{ display:flex; align-items:center; gap:6px; }
.search{display:inline-flex;align-items:center;gap:8px;border:1px solid #ddd;border-radius:8px;padding:6px 10px;max-width:560px;width:100%}
.search input{border:0;outline:0;width:100%;font-size:14px}
.search button{background:var(--brand);color:#fff;border:0;border-radius:6px;padding:6px 10px;cursor:pointer}
.search button:hover{background:var(--brand-hover)}

/* Bottom Navigation */
.bottom-nav{
  position: fixed; left: 0; right: 0; 
  /*bottom: var(--safari-nav-offset, 0px);*/
  bottom: -20px;
  height: var(--nav-h);
  /*padding: 8px 12px calc(8px + env(safe-area-inset-bottom));  Added below 28px instead of 8 and bottom-20px to accomodate for IOS26 scroll bug*/
  padding: 8px 12px calc(28px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(0,0,0,0.78);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 900;
}
@supports (-webkit-touch-callout: none) {
  .bottom-nav{
    bottom: calc(env(safe-area-inset-bottom) + var(--safari-nav-offset, 0px));
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
}
.bottom-nav .nav-item{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  color:#e8e8e8; text-decoration:none; font-size:12px; line-height:1;
}
.bottom-nav .nav-icon{ width:36px; height:36px; border-radius:50%; display:grid; place-items:center; overflow:hidden; }
.bottom-nav .nav-icon img{ width:22px; height:22px; display:block; filter: invert(0.9); opacity:0.9; }
.bottom-nav .nav-icon img.photo_invert{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255,255,255,0.6);
  filter: none;
  opacity: 1;
}
.bottom-nav .nav-item.active .nav-icon img.photo_invert{
  border-width: 2px;
}
.bottom-nav .nav-item.active .nav-icon{ border:2px solid #fff; }
.bottom-nav .nav-item.active .nav-icon img{ filter: invert(1); opacity:1; }
.bottom-nav .nav-label{ opacity:.95; }

/* Layout */
.wrap {
  max-width: 1200px;
  margin: 14px auto;
  padding: 60px 20px 170px 20px ;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  justify-items: center;
}

/* Cases (Blu-ray) */
.case-3d {
  position: relative;
  width: 100%;
  max-width:350px;
  border-radius: 10px;
  /* box-shadow: 1px 7px 5px 2px rgb(70 70 70 / 47%); */  /* Black Box Shadow */
  box-shadow: -2px 7px 3px 2px #f0c15a24; /* Gold Box Shadow */
  /* perspective: 1000px; */
}
.case-3d::before {
  content: "";
  display: block;
  padding-top: calc(150% + 10px);
}
.case-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.front {
  position: absolute;
  inset: 0;
  transform: translateZ(1px);
  backface-visibility: hidden;
  border-right: 5px solid #0b74ff;
  border-radius: 0px 10px 10px 0px;
}
/* TV Box Case */
.case-3d.case-tv{
  border-radius: 0px 6px 0px 0px;
  border: 1px solid #3c3c3c;
  overflow: hidden;
  background: #0f121c;
  box-shadow: -5px 1px 7px 2px rgba(224, 196, 124, 0.18);
}
.case-3d.case-tv .tv-front{
  position: absolute;
  inset: 0;
  border-radius: 0px 6px 0px 0px;
  background-image: var(--poster);
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.case-3d.case-tv .tv-banner{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(2px);
  color: #fff;
  font: 700 7px/1.1 Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 0px 3px rgba(0,0,0,1);
  z-index: 2;
}
.case-3d.case-tv .tv-spine-title{
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translate(-50%, -50%) rotate(-90deg);
  color: #fff;
  font: 700 12px/1 Arial, sans-serif;
  letter-spacing: .08em;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.case-3d.case-tv .tv-spine-label{
  position: absolute;
  bottom: 12px;
  left: 14px;
  transform: translateX(-50%);
  color: #fff;
  font: 700 10px/1.1 Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,.55);
}
.grid-spacer{
  width: 100%;
  max-width: 350px;
  position: relative;
  visibility: hidden;
}
.grid-spacer::before{
  content: "";
  display: block;
  padding-top: calc(150% + 10px);
}
/* Overlay front Blu-ray (unique classes) */
.front-fs .fs-case-chrome{
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #152033;
  overflow: visible;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.front-fs .fs-topbar-blu{
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 20px;
  background: #0b74ff;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; color: #fff; letter-spacing: .5px; font-size: 13px;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  z-index: 3;
}
.front-fs .fs-spine{
  position: absolute; left: 0px; top: 0; bottom: 0;
  width: 0px; background: var(--spine);
  border-top-left-radius: 8px;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.06);
  z-index: 10;
}
.front-fs .fs-edge-right{
  position: absolute; right:0px; top: 0; bottom: 0;
  width: 5px; background: #0b74ff;
  border-top-right-radius: 8px;
  z-index: 1;
}
.front-fs .fs-edge-bottom{
  position: absolute; left: 0px; right: 0px; bottom: 0px;
  height: 6px; background: #0b74ff;
  border-bottom-left-radius: 3px; border-bottom-right-radius: 4px;
  z-index: 4; pointer-events: none;
}
.front-fs .fs-poster{
  position:absolute; left:0; right:0; top:20px; bottom:15px;
  width:100%; height:auto; object-fit:cover;
}
.front-fs .fs-badge{position:absolute; right:6px; bottom:6px; width:20px; height:auto; display:block; z-index:4}
.case-chrome {
  position: absolute;
  inset: 0;
  /*border-radius: 10px;*/
  /* Match front-fs tone so the case looks like plastic, not black */
  background: #152033;
  overflow: visible;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.topbar-blu {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 20px;
  background: #0b74ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  letter-spacing: .5px;
  font-size: 0; /* hide text, show logo via ::before */
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  z-index: 3;
}
.topbar-blu::before{
  content: "";
  display:block;
  width:100%;
  height:13px;
  background-image:url('../images/icons/blu-ray.svg');
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  opacity: 0.7;
}
.spine {
  position: absolute;
  left: 0px;
  top: 0;
  bottom: 0px;
  width: 0px;
  background: var(--spine);
  border-top-left-radius: 8px;
  /* border-bottom-left-radius: 8px; */
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06);
  z-index: 2;
}
.edge-right {
  position: absolute;
  right: -5px;
  top: 0;
  bottom: 0px;
  width: 5px;
  background: #0b74ff;
  border-top-right-radius: 8px;
  z-index: 1;
  border-radius: 0px 20px 0px 0px;
}
.edge-bottom {
  position: absolute;
  left: 0px;
  right: -5px;
  bottom: -6px;
  height: 6px;
  background: #0b74ff;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 4px;
  z-index: 4;
  pointer-events: none;
}
.front .poster {
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  bottom: 15px;
  width: 100%;
  height: auto;
  object-fit: cover;
  /* Placeholder so the DVD illusion holds before image paint */
  background: linear-gradient(180deg,#23324f,#1a2740);
}
.badge{position:absolute; right:6px; bottom:6px; width:25px; height:auto; display:block; z-index:4}

/* Back mini card */
.sentinel{height:1px}

/* Overlay + Flip (shared) */
.overlay{position:fixed; inset:0; background:rgba(0,0,0,.72); display:none; align-items:center; justify-content:center; z-index:1000; overscroll-behavior:contain}
.overlay.active{display:flex}
.flip-wrap{width:min(92vw,760px); perspective:1500px}
.flip-card{position:relative; width:100%; aspect-ratio:2/3; transform-style:preserve-3d; transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.flip-card.show-back{transform:rotateY(180deg)}
.face{position:absolute; inset:0; backface-visibility:hidden; border-radius:6px; overflow:hidden; box-shadow:0 18px 42px rgba(0,0,0,.45)}
.face.front-fs{background:#111}
.face.back-fs{background:#0e1016; color:#e8ecf5; transform:rotateY(180deg); display:flex; flex-direction:column}

.back-head{padding:14px 16px 10px 16px;border-bottom:1px solid #1f2633;display:flex;align-items:center;gap:10px;justify-content:space-between;color:#f5f7fb}
.back-head-dvd{background:linear-gradient(180deg,#1b1f2c,#101420)}
.back-head-tv{background:linear-gradient(180deg,#1b1f2c,#101420);border-radius: 10px 0px 0px 0px;}
.overlay.is-tv .back-head{border-radius: 10px 0px 0px 0px;}
.back-head-actions{display:flex;align-items:center;gap:6px}
.back-title{font-weight:bold;color:#f7f8fc;font-size:18px;line-height:1.2;flex:1}
.close-btn{border:1px solid #2c3545;background:#1e2633;padding:6px 10px;border-radius:8px;cursor:pointer;color:#e8ecf5}
.close-btn:hover{background:#2b3344}
.close-btn img{width:16px;height:16px;display:block;filter:invert(1)}

.back-meta{padding:6px 16px 0 16px;font-size:13px;color:#c1c6d2}
.back-meta .dot::before{content:'.';margin:0 6px;color:#70798a}

.trailer-section{display:grid;grid-template-columns:1fr 92px;gap:10px;align-items:start;padding:10px 10px}
.trailer.placeholder{display:flex;align-items:center;justify-content:center;border:1px dashed #2f394b;background:linear-gradient(180deg,#141922,#0f131c);color:#e3e6ee;height:125px;background-size:cover;background-position:center;text-shadow:0 1px 2px rgba(0,0,0,0.65);padding:8px;text-align:center}
.trailer-controls{ position:absolute; bottom:8px; right:8px; display:flex; gap:6px; padding:4px; margin:0; background:rgba(0,0,0,0.6); border-radius:8px; align-items:center; }
.trailer-controls button{ border:0; background:transparent; padding:0; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.trailer-controls .cast-btn{ width:36px; height:36px; border-radius:8px; }
.trailer-controls .cast-btn img{ width:20px; height:20px; filter: invert(1); }
.metrics{display:flex;flex-direction:column;gap:8px}
.metrics .pill{text-align:center;padding:8px 10px}

.detail-row{padding:5px 16px 8px 16px;font-size:14px}
.detail-row strong{font-weight:700}

/* Links within back details */
.fs-back a{ color: var(--brand); text-decoration:none }
.fs-back a:hover{ text-decoration:underline }
.back-title a{ color:#f7f8fc; text-decoration:none }
.back-title a:hover{ text-decoration:underline }

.info-rows{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 16px 0 16px;font-size:13px}
.fs-back .pill{background:#1d2635;border:1px solid #2d3646;border-radius:999px;padding:6px 10px;text-align:center;color:#e6e9f2}

.synopsis{
  padding:10px 16px;
  font-size:14px;
  line-height:1.45;
  color:#dfe2ea;
  max-height:28vh;
  min-height:0px;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}
.cast{padding:10px 16px;font-size:14px;color:#dfe2ea}
.cast strong{display:block;margin-bottom:4px}

.trailer{border-radius:10px;overflow:hidden;background:#000;display:none;position:relative;border:1px solid #575e6b}
.trailer.active{display:block}
.trailer iframe{width:100%;height:125px;border:0;display:block}

.back-actions{margin-top:auto;padding:12px 16px;display:flex;gap:10px;border-top:1px solid #1f2633;background:#0f131c}
.btn{flex:1;text-align:center;border:0;border-radius:10px;padding:10px 12px;cursor:pointer;background:var(--brand);color:#1a1a1a;font-weight:bold}
.btn:hover{background:var(--brand-hover)}

/* Back action icon buttons */
.back-actions--icons{justify-content:space-between;flex-wrap:wrap}
.back-actions--icons .btn{
  flex:0 0 auto;
  width:35px; height:35px;
  border-radius:6px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,#1d2635,#141a27);
  border:1px solid #2d3646;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
  color:transparent;
  font-size:0;
}
.back-actions--icons .btn::before{
  content:"";
  width:22px; height:22px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  filter: invert(1) brightness(1.2) drop-shadow(0 1px 2px rgba(0,0,0,.55));
}
.back-actions--icons .btn:hover{background:linear-gradient(145deg,#222c3c,#161c29);border-color:#3a4354}
.back-actions--icons .btn.btn-active{
  background:var(--brand);
  border-color:rgba(255,255,255,0.15);
  box-shadow:0 6px 18px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.2);
}
.back-actions--icons .btn.btn-active::before{
  filter: invert(0) brightness(0.2);
}
.back-actions--icons #btnAdd::before{background-image:url('../images/icons/shortlist.svg')}
.back-actions--icons #btnLater::before{background-image:url('../images/icons/time.svg')}
.back-actions--icons #btnSeen::before{background-image:url('../images/icons/seen.svg')}
.back-actions--icons #btnLike::before{background-image:url('../images/icons/like.svg')}
.back-actions--icons #btnDislike::before{background-image:url('../images/icons/dislike.svg')}
.back-actions--icons #btnFav::before{background-image:url('../images/icons/heart.svg')}
.back-actions--icons #btnMore::before{background-image:url('../images/icons/list.svg')}
.back-actions--icons .btn-share::before{background-image:url('../images/icons/forward.svg')}
.back-actions--icons #btnRemove::before{background-image:url('../images/icons/shortlist.svg')}
.back-actions--icons #btnRemove.btn-active,
.back-actions--icons #btnRemove{
  background:var(--brand);
  border-color:rgba(255,255,255,0.2);
  color:transparent;
}
.back-actions--icons #btnRemove::before{
  filter: invert(0) brightness(0.2);
}

/* Home overlay: cleaned action bar + add panel */
#backActions{
  position:relative;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:nowrap;
  flex-direction:row;
}
#backActions .back-actions-left{
  flex:1 1 auto;
  min-width:0;
}
#backActions .back-actions-right{
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}
#backActions #btnMore::before{background-image:url('../images/icons/add.svg')}

.providers-box{
  display:flex;
  justify-content: center;
  flex-direction:column;
  gap:6px;
}
.providers-title{
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#9099ab;
}
.providers-row{
  display:flex;
  gap:6px;
  align-items:center;
  min-height:24px;
}
.provider-slot{
  width:35px;
  height:35px;
  border-radius:6px;
  border:1px dashed #2d3646;
  background:#131926;
  display:inline-block;
}
.provider-link{
  position:relative;
  display:inline-flex;
  width:35px;
  height:35px;
  border-radius:6px;
  text-decoration:none;
}
.provider-logo{
  width:35px;
  height:35px;
  object-fit:cover;
  background:#131926;
  border:1px solid #2d3646;
  border-radius:6px;
}
.provider-empty{
  font-size:12px;
  color:#9ca3af;
  padding:6px 4px;
}
.provider-badges{
  position:absolute;
  right:-1px;
  bottom:-1px;
  display:flex;
  gap:2px;
}
.overlay .provider-badges{
  display:none;
}
.provider-badge{
  width:7px;
  height:7px;
  background-size:7px 7px;
  background-repeat:no-repeat;
}
.provider-badge.is-rent{ background-image:url('../images/icons/rent.svg'); }
.provider-badge.is-ads{ background-image:url('../images/icons/ads.svg'); }
.provider-badge.is-buy{ background-image:url('../images/icons/buy.svg'); }
.provider-more{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:35px;
  height:35px;
  border-radius:6px;
  background:#e1c07e;
  border:1px solid #d2b26e;
  text-decoration:none;
}
.provider-more::before{
  content:'';
  width:16px;
  height:16px;
  background-image:url('../images/icons/add.svg');
  background-size:16px 16px;
  background-repeat:no-repeat;
  filter:brightness(0) invert(1);
}

.add-panel-scrim{
  position:fixed;
  inset:0;
  display:none;
  background:transparent;
  z-index:10;
  pointer-events:auto;
}
#backActions.is-add-open .add-panel-scrim{display:block}

.add-panel{
  position:absolute;
  right:12px;
  bottom:58px;
  width:min(78vw, 280px);
  background:#0f131c;
  border:1px solid #1f2633;
  border-radius:12px;
  padding:10px;
  box-shadow:0 16px 32px rgba(0,0,0,.45);
  display:none;
  flex-direction:column;
  gap:8px;
  z-index:11;
}
#backActions.is-add-open .add-panel{display:flex}
.add-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#f5f7fb;
  font-weight:700;
  font-size:14px;
}
.add-panel-close{
  border:1px solid #2c3545;
  background:#1e2633;
  color:#e8ecf5;
  border-radius:8px;
  width:28px;
  height:28px;
  cursor:pointer;
}
.add-panel-close:hover{background:#2b3344}
.add-panel-actions{
  display:grid;
  gap:6px;
}
.add-item{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:10px 12px;
  border:0px;
  background:linear-gradient(145deg,#1d2635,#141a27);
  color:#e8ecf5;
  font-weight:600;
  text-align:left;
  cursor:pointer;
  border-top: 1px solid #1f2633;
}
.add-item .add-label{
  flex:1 1 auto;
}
.add-item .add-status{
  flex:0 0 auto;
  padding:4px 10px;
  border-radius:6px;
  border:1px solid #2c3545;
  background:#1b2231;
  color:#dfe3ea;
  font-size:12px;
  font-weight:100;
}
.add-item::before{
  content:"";
  width:18px;
  height:18px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  filter: invert(1) brightness(1.1);
}
#btnAdd::before{background-image:url('../images/icons/shortlist.svg')}
#btnLater::before{background-image:url('../images/icons/time.svg')}
#btnSeen::before{background-image:url('../images/icons/seen.svg')}
.add-item:hover{border-color:#3a4354}
.add-item.btn-active{
  background:var(--brand);
  border-color:rgba(255,255,255,0.15);
  color:#1a1a1a;
}
.add-item.btn-active .add-status{
  border-color:rgba(0,0,0,0.2);
  background:rgba(0,0,0,0.1);
  color:#1a1a1a;
}
.add-item.btn-active::before{filter: invert(0) brightness(0.2)}

.add-panel-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  padding:10px 12px;
  border-radius:0px;
  border:0px;
  background:#121827;
  color:#dfe3ea;
  cursor:pointer;
  font-weight:600;
}
.add-panel-toggle:hover{border-color:#3a4354}
.add-panel-toggle .chev{
  width:8px;
  height:8px;
  border-right:2px solid #c3cad8;
  border-bottom:2px solid #c3cad8;
  transform:rotate(45deg);
  transition:transform .2s ease;
}
.add-panel.is-custom-open .chev{transform:rotate(-135deg)}

.add-panel-custom{
  display:none;
  gap:6px;
  margin-top:4px;
  max-height:200px;
  overflow:auto;
}
.add-panel.is-custom-open .add-panel-custom{display:grid}
.add-panel.is-custom-open.is-custom-empty .add-panel-empty{display:block}
.add-panel-empty{
  display:none;
  color:#9ca3af;
  font-size:12px;
  padding:4px 4px 0;
}
.add-custom-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:10px 12px;
  border:1px solid #1f2633;
  border-radius:0px;
  background:linear-gradient(145deg,#1d2635,#141a27);
}
.add-custom-meta div:first-child{color:#f5f7fb;font-size:13px}
.add-custom-meta div:last-child{color:#9ca3af;font-size:11px}
.add-custom-row.is-active{
  background:var(--brand);
  border-color:rgba(255,255,255,0.15);
}
.add-custom-row.is-active .add-custom-meta div:first-child,
.add-custom-row.is-active .add-custom-meta div:last-child{color:#1a1a1a}
.add-custom-btn{
  border:1px solid #2c3545;
  background:#1b2231;
  color:#dfe3ea;
  border-radius:8px;
  padding:4px 10px;
  cursor:pointer;
  font-size:12px;
  font-weight:100;
}
.add-custom-btn:hover{background:#2b3344}
.add-custom-btn.is-disabled{opacity:.6;cursor:not-allowed}
.add-custom-btn.btn-active{
  border-color:rgba(0,0,0,0.2);
  background:rgba(0,0,0,0.1);
  color:#1a1a1a;
}

@media (max-width: 520px){
  .add-panel{
    right:12px;
    bottom:58px;
  }
}

/* ===== Flight clone ===== */
.flight3d{
  position:fixed; z-index:2000; pointer-events:none;
  transform-origin:center center;
  will-change:transform;
  transition:transform .7s cubic-bezier(.2,.7,.2,1);
  perspective:1000px;
}

/* =========================
   Desktop overrides (≥900px)
   ========================= */
@media (min-width: 900px) {
  /* Layout */
  .wrap{ padding: 0 10px; }
  .grid { gap: 50px; }

  /* Cases (Blu-ray) */
  .case-3d::before { padding-top: calc(150% + 30px); border-radius: 10px;}
  .topbar-blu { height: 40px; }
  .topbar-blu::before{ height:24px; }
  .spine { left: 0px; width: 0px; }
  .edge-right { right: 0px; width: 10px; }
  .edge-bottom {
    left: 0px; right: 0px; bottom: 0px; height: 15px;
    border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
  }
  .front .poster{ border-bottom-left-radius:10px; border-bottom-right-radius:10px; }
  .front-fs .fs-topbar-blu{ height: 40px; }
  .front-fs .fs-spine{ left:0px; width:4px; }
  .front-fs .fs-edge-right{ right:0px; width:10px; }
  .front-fs .fs-edge-bottom{ left:0px; right:0px; bottom:0px; height:15px; border-bottom-left-radius:10px; border-bottom-right-radius:10px; }
  .front-fs .fs-poster{ top: 40px; border-bottom-left-radius:10px; border-bottom-right-radius:10px; }
}

/* =========================
   Overlay DVD Flip (unique)
   ========================= */
.flip-wrap{width:min(92vw,760px); max-width:450px; perspective:900px; -webkit-filter:drop-shadow(10px 10px 7px rgba(0,0,0,.3)); filter:drop-shadow(10px 10px 7px rgba(0,0,0,.3))}
.flip-card{position:relative; width:100%; aspect-ratio:2/3; transform-style:preserve-3d; transform: translateZ(-14px) rotateY(0deg) rotateX(0deg); transition: transform 1.5s ease-in-out}
.flip-card.show-back{transform: translateZ(-14px) rotateY(180deg) rotateX(0deg)}

.fs-front, .fs-back, .fs-left{ position:absolute; box-sizing:border-box; backface-visibility:hidden; background-size:cover; background-position:right center; }
.fs-front{ width:100%; height:100%; border-top:30px solid #0b74ff; border-right:7px solid #0b74ff; border-bottom:7px solid #0b74ff; border-radius:0 10px 10px 0; z-index:10; transform: rotateY(0deg) translateZ(14px) }
.fs-back{ width:100%; height:100%; border-top:30px solid #0b74ff; border-left:7px solid #0b74ff; border-bottom:7px solid #0b74ff; border-radius:10px 0 0 10px; transform: rotateY(180deg) translateZ(14px); background-color:#0e1016; color:#e8ecf5; display:flex; flex-direction:column }
.fs-left{ width:28px; height:100%; border-top:30px solid #0b74ff; border-bottom:7px solid #0b74ff; overflow: hidden; transform: rotateY(-90deg) translateZ(14px) }

.fs-blu-logo{ position:absolute; top:-27px; left:50%; transform:translateX(-50%); height:24px; width:auto; filter:drop-shadow(0 1px 2px rgba(0,0,0,.5)); pointer-events:none;opacity: 0.7; }
.fs-spine-title{ position:absolute; top:50%; left:50%; transform: translate(-50%, -50%) rotate(-90deg); color:#fff; font:700 16px/1 "Google Sans","Segoe UI",sans-serif; letter-spacing:.06em; white-space:nowrap; text-shadow:0 1px 2px rgba(0,0,0,.6) }

/* Overlay TV box set */
.tv-banner,
.tv-spine-title,
.tv-spine-label{ display:none; }
.overlay.is-tv .tv-banner{ display:flex; }
.overlay.is-tv .tv-spine-title,
.overlay.is-tv .tv-spine-label{ display:block; }
.overlay.is-tv .fs-blu-logo{ display:none; }
.overlay.is-tv .fs-front,
.overlay.is-tv .fs-back{
  border:0;
  background-image: var(--poster);
  background-size:cover;
  background-position:center center;
  background-color:#0e1016;
}
.overlay.is-tv .fs-left{
  border:0;
  background-image: var(--poster);
  background-size:cover;
  background-position:right center;
  background-color:#0e1016;
}
.overlay.is-tv .fs-front{
  border-radius:0 10px 0px 0;
      border: 1px solid #484848;
  transform: rotateY(0deg) translateZ(14px);
}
.overlay.is-tv .fs-back{
  border-radius:10px 0 0 0px;
  transform: rotateY(180deg) translateZ(14px);
  background-image:none;
  background-color:#0e1016;
  border: 1px solid #484848;
}
.overlay.is-tv .tv-banner{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:55px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:rgba(0,0,0,0.2);
  backdrop-filter: blur(2px);
  color:#fff;
  font:700 15px/1.1 Arial, sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-shadow:0px 0px 3px rgba(0,0,0,1);
  padding:0 10px;
  box-sizing:border-box;
  border-radius: 0px 10px 0px 0px;
}
.overlay.is-tv .flip-card{
  transform: translateZ(-75px) rotateY(0deg) rotateX(0deg);
  transition: transform 1.5s ease-in-out;
}
.overlay.is-tv .flip-card.show-back{
  transform: translateZ(-75px) rotateY(180deg) rotateX(0deg);
}
.overlay.is-tv .fs-front{
  transform: rotateY(0deg) translateZ(75px);
}
.overlay.is-tv .fs-back{
  transform: rotateY(180deg) translateZ(75px);
}
.overlay.is-tv .fs-left{
  width:150px;
  transform: rotateY(-90deg) translateZ(75px);
  position:relative;
  background-image: var(--poster);
  background-size:cover;
  background-position:right center;
  background-color:#0e1016;
  border-top: 1px solid #484848;
    border-bottom: 1px solid #484848;
}
.overlay.is-tv .fs-left::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--poster);
  background-size:cover;
  background-position:right center;
  filter: blur(2px);
  transform: scale(1.05);
  z-index:0;
}
.overlay.is-tv .fs-left::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.2);
  z-index:1;
}
.overlay.is-tv .fs-left::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:100%;
  background:rgba(0,0,0,0.2);
  backdrop-filter: blur(2px);
}
.overlay.is-tv .tv-spine-title{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%) rotate(-90deg);
  color:#fff;
  font:700 18px/1.1 Arial, sans-serif;
  letter-spacing:.08em;
  white-space:normal;
  text-align:center;
  max-width:450px;
  min-width: 400px;
  padding:0 6px;
  text-shadow:0 0px 2px rgb(0 0 0);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
  z-index:1;
}
.overlay.is-tv .tv-spine-label{
  z-index:1;
  text-shadow:0 0px 2px rgb(0 0 0);
}
.tv-status{
  color:var(--brand);
  font-weight:700;
}
.overlay.is-tv .tv-spine-label{
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font: 700 13px / 1.1 Arial, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .55);
    width: 100%;
    padding: 25px 10px;
    background: #000000a8;
}


.perspective-none{
  perspective: none !important;
}

/* =========================
   Capability-based sizing
   ========================= */
/* Desktop-class devices: mouse + hover */
@media (hover: hover) and (pointer: fine) {
  .flip-wrap { width: min(92vw, 500px); perspective: 1200px; }
}

/* Touch devices: coarse pointers, no hover */
@media (hover: none) and (pointer: coarse) {
  .flip-wrap { width: min(92vw, 760px); }
}

/* iOS Safari: allow flip, then flatten for scrolling */
.overlay.ios-flat .flip-wrap{
  perspective:none;
  -webkit-filter:none;
  filter:none;
}
.overlay.ios-flat .flip-card{
  transform:none !important;
  transition:none;
}
.overlay.ios-flat .fs-front,
.overlay.ios-flat .fs-left{
  display:none;
}
.overlay.ios-flat .fs-back{
  transform:none !important;
  backface-visibility:visible;
}

/* =========================
   Auth pages
   ========================= */
.auth-shell{
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: "Google Sans","Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(64,78,120,0.35), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(239,184,78,0.18), transparent 45%),
    #0b0c12;
  color: #e9ebf5;
  padding: 40px 16px 120px;
}
.auth-shell > div{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 12px;
}
@media (max-width: 768px){
  .auth-card{
    width: 100%;
    box-sizing: border-box;
  }
}
.auth-card{
  max-width: 460px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0,0,0,.45);
  padding: 26px 28px 30px;
}
.auth-brand{
  text-align: center;
  margin-bottom: 22px;
}
.auth-brand img{ width:90px; height:90px; }
.auth-brand h1{
  margin: 10px 0 6px;
  color: var(--brand);
  font-size: 28px;
}
.auth-brand p{
  margin: 0;
  color: #a4abc6;
  font-size: 13px;
}
.auth-head{
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #f5f7fb;
}
.auth-sub{
  margin: 4px 0 18px;
  color: #9aa5b6;
  font-size: 13px;
}
.auth-sub a{
  color: var(--brand);
  text-decoration: none;
}
.auth-sub a:hover{ text-decoration: underline; }
.social-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.btn-google,.btn-facebook{
  height: 44px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  gap: 8px;
}
.btn-facebook{
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.btn-google img,
.btn-facebook img{ width: 20px; height: 20px; }
.divider-row{
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a1a1a1;
  font-size: 12px;
  margin: 10px 0 14px;
}
.divider-row .line{
  height: 1px;
  flex: 1;
  background:#5c5c5c;
}
.auth-form .field{
  margin-bottom: 12px;
}
.auth-form label{
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: #b7c0d0;
}
.auth-input{
  width: 100%;
  height: 44px;
  border: 1px solid #2b3648;
  background: #0f1622;
  color: #e9edf6;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  box-sizing: border-box;
}
.auth-input:focus{
  outline: 2px solid var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(255, 221, 113, 0.18);
}
.password-field{
  position: relative;
  display: block;
  width: 100%;
}
.password-field input{
  padding-right: 44px;
}
.password-toggle-btn{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.password-toggle-btn img{
  width: 18px;
  height: 18px;
  filter: invert(1);
}

.auth-actions{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin: 4px 0 14px;
}
.auth-actions a{ color: var(--brand); text-decoration: none; }
.auth-actions a:hover{ text-decoration: underline; }
.auth-btn{
  width: 100%;
  height: 46px;
  background: var(--brand);
  border: none;
  color: #1a1a1a;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}
.auth-btn:hover{ background: var(--brand-hover); }
.auth-btn.auth-btn--danger{
  background: #b23b3b;
  border: 1px solid #d05858;
  color: #ffffff;
}
.auth-btn.auth-btn--danger:hover{
  background: #c84a4a;
  border-color: #e06b6b;
  color: #ffffff;
}
.soft-brand-buttons .auth-btn{
  background: rgba(255,221,113,0.08);
  border: 1px solid rgba(255,221,113,0.55);
  color: var(--brand);
}
.soft-brand-buttons .auth-btn:hover{
  background: rgba(255,221,113,0.14);
  border-color: rgba(255,221,113,0.75);
  color: var(--brand);
}

.auth-footer{
  text-align: center;
  margin-top: 16px;
  color: #9aa3bf;
  font-size: 12px;
}
.auth-footer a{ color: var(--brand); text-decoration: none; }
.auth-footer a:hover{ text-decoration: underline; }
.auth-alert{
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}
.auth-alert.error{
  background: #ffe8e6;
  border: 1px solid #f5b1aa;
  color: #9d1b0c;
}
.auth-alert.success{
  background: #e4f7e9;
  border: 1px solid #b4e5c2;
  color: #1a6b2f;
}
.auth-alert--no-account{
  background: #ffe8e617;
  border: 1px solid #f5b1aa;
  color: #f58f83;
}
.auth-alert--no-account a,
.auth-alert--no-account a:visited{
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.auth-alert--no-account a:hover{
  text-decoration: underline;
}

@media (max-width: 768px){
  .auth-shell{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-h));
    padding: 24px 12px calc(var(--nav-h) + 24px);
  }
  .auth-card{
    width: 100%;
    max-width: 520px;
  }
  .auth-brand{
    margin-bottom: 14px;
  }
}

/* Shortlist page */
.shortlist-page{
  background: #0b0c12;
  color: #e9ebf5;
}
.shortlist-section{ margin-top:16px; }
.shortlist-section:first-child{ margin-top:0; }
.shortlist-divider{ margin: 25px 0 25px;}
.shortlist-divider .label{ font-weight:700; letter-spacing:.08em; text-transform:uppercase; font-size:11px; color:#6f6f6f;}
.shortlist-toolbar{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: calc(var(--topbar-h) + 12px) 14px 12px;
  background: linear-gradient(180deg, rgba(11,12,18,0.95), rgba(11,12,18,0.3));
  border-bottom: 1px solid #1f2633;
}
.shortlist-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.shortlist-title{
  font-size:24px;
  font-weight:700;
  letter-spacing:0.2px;
}
.shortlist-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.shortlist-btn{
  border:1px solid rgba(255,255,255,0.12);
  background:linear-gradient(145deg,#1d2635,#141a27);
  color:#e8ecf5;
  border-radius:10px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:600;
}
.shortlist-btn:hover{border-color:#3a4354}
.shortlist-btn.is-ghost{
  background:transparent;
  color:#cbd2df;
}
.shortlist-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.shortlist-collab{
  display:flex;
  align-items:center;
  gap:8px;
}
.shortlist-collab .avatar-stack{ cursor:pointer; }
.shortlist-page .result-meta{
  color: #9aa3bf;
  font-size: 12px;
}
.shortlist-page .wrap{
  padding-top: 0px;
}

/* Account page layout */
.account-page{
  background: #0b0f16;
  color: #e6e9f2;
}
.account-shell{
  max-width: 980px;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 12px) 12px calc(var(--nav-h) + 24px);
  box-sizing: border-box;
}
.account-hero{
  position: relative;
  margin: 0 auto 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d2432, #121826);
  border: 1px solid #1f2735;
  overflow: hidden;
}
.account-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(255, 221, 113, 0.22), transparent 55%);
  pointer-events: none;
}
.account-hero-main{
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 1;
}
.account-hero-info h1{
  font-size: 26px;
  margin: 0 0 6px;
  color: #f5f7fb;
}
.account-tier{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.account-tier-label{
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2c3647;
  background: #141b28;
  color: #d2d8e4;
  font-weight: 600;
}
.account-tier-role{
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #3a4557;
  background: #0f1622;
  color: #f5e7a6;
  font-weight: 600;
  font-size: 12px;
}
.account-tier-cta{
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}
.account-tier-cta:hover{ text-decoration: underline; }
.account-photo-wrap{ margin: 0; }
.photo-btn{
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.account-photo{
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2a3342;
  background: #0f1622;
}
.account-photo-modal{
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 16, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 18px;
  -webkit-backdrop-filter: blur(2px) saturate(120%);
  backdrop-filter: blur(2px) saturate(120%);
  
}
.account-photo-modal.active{
  display: flex;
}
.account-photo-card{
  width: min(420px, 92vw);
  background: #2b303b;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  padding: 78px 18px 20px;
  position: relative;
  text-align: center;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.account-photo-label{
  position: absolute;
  left: 18px;
  top: 21px;
  font-size: 12px;
  color: #f5f7fb;
  letter-spacing: 0.04em;
}
.account-photo-modal.active .account-photo-card{
  transform: translateY(0) scale(1);
  opacity: 1;
}
.account-photo-close{
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.25);
  color: #e6e9f2;
  font-size: 18px;
  cursor: pointer;
}
.account-photo-pop{
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
}
.account-photo-pop-img{
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #2b303b;
  background: #0f1622;
  box-shadow: 0px 1px 24px rgb(255 255 255 / 16%);
}
.account-photo-actions{
  display: grid;
  gap: 12px;
}
.account-photo-change{
  margin-top: 8px;
}
.account-photo-action{
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,221,113,0.55);
  background: rgba(255,221,113,0.08);
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
}
.account-photo-action:hover{
  background: rgba(255,221,113,0.14);
  border-color: rgba(255,221,113,0.75);
}
.account-photo-action:disabled{
  opacity: 0.6;
  cursor: default;
}
.account-photo-rotate{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.account-photo-rotate-btn{
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #e6e9f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}
.account-photo-rotate-btn:hover{
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.14);
}
.account-photo-rotate-btn img{
  width: 18px;
  height: 18px;
  filter: invert(1);
}
.account-photo-note{
  min-height: 16px;
  margin: 0;
  font-size: 12px;
  color: #cbd2df;
}
.account-photo-note.is-error{
  color: #f7b2ab;
}
.photo_invert{
  filter: invert(0) !important;
}
.invert{
  filter: invert(1) !important;
}
.photo-overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  opacity: 0;
  transition: opacity .2s ease;
  font-size: 13px;
  border-radius: 50%;
}
.photo-btn:hover .photo-overlay{ opacity: 1; }
.account-page-header{
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  margin-top: 15px;
}
.account-page-header h1{
  margin: 0 0 4px;
  font-size: 24px;
}
.account-page-header p{
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
}
.account-back{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  background: #0f1622;
  border: 1px solid #2b3648;
  color: #e6e9f2;
  text-decoration: none;
  font-weight: 700;
}
.account-back img{
  width: 18px;
  height: 18px;
  filter: invert(1);
}
.account-back-fallback{
  display: none;
  font-size: 18px;
  line-height: 1;
}
.account-card{
  margin: 0 auto 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgb(19 19 26);
  border: 1px solid #1f2937;
  box-shadow: 0 16px 30px rgba(0,0,0,.35);
}
.account-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.account-card-head h2{
  margin: 0 0 6px;
  font-size: 20px;
}
.account-card-head p{
  margin: 0;
  color: #a5afc1;
  font-size: 13px;
}
.account-badge{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 221, 113, 0.2);
  color: #f5e7a6;
  border: 1px solid rgba(255, 221, 113, 0.5);
  font-size: 12px;
  font-weight: 700;
}
.account-section-title{
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9aa5b6;
}
.account-list{
  display: grid;
  gap: 8px;
}
.account-pill{
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2b3648;
  background: #0f1622;
  color: #cbd5e1;
  font-size: 12px;
  text-transform: capitalize;
}
.account-row{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(12,12,17,1);
  border: 1px solid #1f2a3a;
  text-decoration: none;
  color: #e9edf6;
  transition: background .2s ease, border-color .2s ease;
}
.account-row:hover{
  background: #141c2a;
  border-color: #2b3a50;
}
.account-row--button{
  padding: 0;
  background: transparent;
  border: none;
}
.account-row-btn{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0f1622;
  border: 1px solid #1f2a3a;
  color: #e9edf6;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.account-row-btn:hover{
  background: #141c2a;
  border-color: #2b3a50;
}
.account-row--cta{
  margin-top: 6px;
}
.account-icon-slot{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px dashed #334155;
  background: #0b111a;
  display: grid;
  place-items: center;
}
.account-icon-slot img{
  width: 18px;
  height: 18px;
  filter: invert(1);
}
.account-chev{
  margin-left: auto;
  color: #7c8799;
}
.account-label{
  font-weight: 600;
}
.account-pro-actions{
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.account-pro-code{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0f1622;
  border: 1px solid #243142;
  color: #f5f7fb;
  font-size: 13px;
}
.account-pro-code strong{
  font-size: 16px;
  letter-spacing: .18em;
}
.account-pro-link label{
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #9aa5b6;
}
.account-providers{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.account-provider-logo{
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid #2b3648;
  background: #0f1622;
  object-fit: cover;
}
.account-provider-add{
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2b3648;
  background: #0f1622;
  color: #c9d2e3;
  font-size: 11px;
  text-decoration: none;
  font-weight: 600;
}
.account-provider-add:hover{
  border-color: #3a465b;
  color: #eef2f9;
}
.account-pro-compact{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-share-mini{
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #2b3648;
  background: #0f1622;
  color: #e9edf6;
  cursor: pointer;
  font-weight: 700;
}
.account-share-mini:hover{
  background: #141c2a;
  border-color: #2b3a50;
}
.account-share-row{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.account-share-btn{
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #2b3648;
  background: #0f1622;
  color: #e9edf6;
  cursor: pointer;
  font-weight: 600;
}
.account-share-btn:hover{
  background: #141c2a;
  border-color: #2b3a50;
}
.admin-search{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.admin-table{
  display: grid;
  gap: 10px;
}
.admin-table-head,
.admin-table-row{
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(180px, 1.4fr) 120px 160px minmax(200px, 1.4fr);
  gap: 12px;
  align-items: center;
}
.admin-table-head{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9aa5b6;
}
.admin-table-row{
  padding: 12px;
  border-radius: 12px;
  background: #0f1622;
  border: 1px solid #1f2a3a;
}
.admin-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-select{
  height: 38px;
  border-radius: 10px;
  border: 1px solid #2b3648;
  background: #0b111a;
  color: #e9edf6;
  padding: 0 8px;
}
.admin-subtle{
  font-size: 12px;
  color: #9aa5b6;
}
.admin-delete{
  border-color: #7a2c2c;
  color: #f8d6d6;
}
.admin-delete:hover{
  background: #3a1414;
  border-color: #9f3b3b;
}

@media (max-width: 860px){
  .admin-table-head{
    display: none;
  }
  .admin-table-row{
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.account-share-hint{
  margin: 8px 0 0;
  color: #9aa5b6;
  font-size: 12px;
}
.account-hint{
  margin: 0 0 12px;
  color: #a4adbd;
  font-size: 13px;
}
.account-profile-top{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.account-profile-meta h2{
  margin: 0 0 4px;
  font-size: 20px;
}
.account-profile-meta p{
  margin: 0;
  color: #9aa5b6;
  font-size: 13px;
}
.account-placeholder{
  background: #0f1622;
  border: 1px dashed #2a3648;
  border-radius: 12px;
  padding: 12px;
  color: #a5afc1;
  font-size: 13px;
}
.account-faq{
  display: grid;
  gap: 14px;
}
.account-faq-item h4{
  margin: 0 0 6px;
  color: #f1f5fb;
}
.account-faq-item p{
  margin: 0;
  color: #a5afc1;
  font-size: 13px;
}
.account-legal h4{
  margin: 14px 0 6px;
  color: #f1f5fb;
}
.account-legal p{
  margin: 0;
  color: #a5afc1;
  font-size: 13px;
}
.account-legal a,
.account-legal a:visited{
  color: var(--brand);
}
.account-legal-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}
.account-legal-table th,
.account-legal-table td{
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #1f2a3a;
  vertical-align: top;
  color: #cbd5e1;
}
.account-legal-table th{
  background: #0f1622;
  color: #e9edf6;
  font-weight: 700;
}
.ack-grid{
  display: grid;
  gap: 14px;
}
.ack-card{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  background: #0f1622;
  border: 1px solid #1f2a3a;
}
.ack-logo{
  width: 140px;
  max-width: 140px;
  height: auto;
  flex: 0 0 auto;
  filter: none;
}
.ack-body{
  flex: 1 1 auto;
}
.ack-card p{
  margin: 0;
  font-size: 0.9em
}
.ack-card .ack-body a{
  color: var(--brand);
  text-decoration: underline;
}
.ack-link-btn{
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 0.8em;
  display: inline;
  vertical-align: baseline;
}
@media (max-width: 640px){
  .ack-logo{
    width: 20%;
    max-width: 20%;
  }
}
.account-page .auth-input{
  background: #0f1622;
  border: 1px solid #2b3648;
  color: #e9edf6;
}
.account-page .auth-input:focus{
  outline: 2px solid var(--brand);
  border-color: var(--brand);
}
.account-page .auth-form label{
  color: #b7c0d0;
}
.account-page .auth-btn{
  color: #1a1a1a;
  padding: 5px 15px;
  text-decoration: none;
}
.account-page .auth-btn.auth-btn--danger{
  color: #ffffff;
}
.delete-password-panel{
  margin-top: 16px;
}
.account-page.soft-brand-buttons .auth-btn{
  color: var(--brand);
}

.inline-check{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.inline-check input{ transform: scale(1.05); }
.account-streaming{
  padding: 12px;
  border: 1px solid #243142;
  border-radius: 12px;
  background: #0f1622;
}
.subs-input{
  border: 1px solid #2b3648;
  background: #0b111a;
}
.subs-chip{
  border: 1px solid #2b3648;
  background: #1a2332;
  color: #e9edf6;
}
.subs-chip button{
  color: #e9edf6;
}
.subs-input-row{ display: flex; gap: 8px; }
.subs-input{
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2b3648;
  border-radius: 8px;
  padding: 6px 10px;
  background: #0b111a;
  width: 100%;
}
.subs-input:focus-within{
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(255, 221, 113, 0.2);
}
.subs-input-field{
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: #e9edf6;
}
.subs-input-field::placeholder{
  color: #9aa5b6;
}
.subs-spinner{
  width: 14px;
  height: 14px;
  border: 2px solid #2b3648;
  border-top-color: #e9edf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}
.subs-suggest,
.subs-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.subs-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #2b3648;
  background: #1a2332;
  color: #e9edf6;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
.subs-chip button{
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  color: #e9edf6;
}

/* Toasts */
.toast{
  position:fixed;
  right:12px;
  top:12px;
  padding:10px 14px;
  border-radius:10px;
  background:var(--toast-bg, #2e7d32);
  color:var(--toast-text, #fff);
  border:1px solid var(--toast-border, transparent);
  box-shadow:0 10px 20px rgba(0,0,0,.35);
  font-size:13px;
  z-index:1400;
  display:none;
}
.toast--success{ --toast-bg:#2e7d32; --toast-border:#1b5e20; }
.toast--remove{ --toast-bg:#8d2b2b; --toast-border:#5a1b1b; }
.toast--info{ --toast-bg:#1d4b7a; --toast-border:#16385a; }
.toast--warn{ --toast-bg:#a67c00; --toast-border:#775700; --toast-text:#1a1a1a; }
.toast--error{ --toast-bg:#7a1b1b; --toast-border:#4e1010; }

/* Login required gate */
.login-gate{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: radial-gradient(120% 120% at 50% 10%, rgb(0 0 0 / 45%), rgba(6, 8, 18, 0.88) 60%), rgba(4, 6, 14, 0.82);
  z-index:1400;
  padding:16px;
  backdrop-filter: blur(6px) saturate(120%);
}
.login-gate.active{ display:flex; }
.login-gate-card{
  width:min(420px, 92vw);
  background: linear-gradient(150deg, rgb(34 24 56 / 53%), rgba(18, 16, 34, 0.15));
  color:#e9ebf5;
  border:1px solid rgb(242 218 255 / 50%);
  border-radius:18px;
  padding:28px 20px 22px;
  position:relative;
  box-shadow:0 28px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(161, 112, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  text-align:center;
  overflow:hidden;
  backdrop-filter: blur(5px);
}
.login-gate-card::before{
  content:"";
  position:absolute;
  inset:-35% -20% auto -20%;
  height:60%;
  background:radial-gradient(circle at top, rgba(128, 86, 230, 0.45), rgba(128, 86, 230, 0) 70%);
  pointer-events:none;
}
.login-gate-card::after{
  content:"";
  position:absolute;
  inset:auto -25% -35% -25%;
  height:55%;
  background:radial-gradient(circle at bottom, rgba(255, 205, 110, 0.45), rgba(255, 205, 110, 0) 70%);
  pointer-events:none;
}
.login-gate-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-weight:700;
  margin-bottom:14px;
}
.login-gate-brand-icon{
  width:40px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.login-gate-brand-icon img{
  width:40px;
  height:auto;
}
.login-gate-brand-text{
  font-size:18px;
  letter-spacing:0.2px;
}
.login-gate-brand-tier{
  color:#f1c06a;
  font-size:19px;
}
.login-gate-title{ margin:0 0 8px 0; font-size:20px; font-weight:700; }
.login-gate-text{ margin:0 0 18px 0; color:#d5d2e6; font-size:14px; }
.login-gate-close{
  position:absolute;
  top:10px;
  right:10px;
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.15);
  background:rgba(17, 14, 26, 0.55);
  color:#f3f0ff;
  cursor:pointer;
}
.login-gate-actions{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.login-gate-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:15px;
  border:1.5px solid rgb(255 255 255 / 40%);
  background: linear-gradient(135deg, #ffe08e, #f4c45a 55%, #c7891f 100%);
  color:#2b1c05;
  font-weight:700;
  text-decoration:none;
  min-width:140px;
  box-shadow:0 14px 28px rgba(90, 56, 7, 0.45), inset 0 0 0 1px rgba(255,255,255,0.35);
}
.login-gate-btn.is-secondary{
  background:linear-gradient(135deg, rgba(36, 52, 86, 0.95), rgba(24, 35, 60, 0.95));
  color:#e8ecf5;
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 10px 22px rgba(10, 16, 30, 0.45);
}
.login-gate-divider{
  display:flex;
  align-items:center;
  gap:10px;
  color:#c7bedc;
  font-size:12px;
  margin:8px 0 12px;
}
.login-gate-divider::before,
.login-gate-divider::after{
  content:'';
  height:1px;
  flex:1;
  background:rgba(255,255,255,0.18);
}
.login-gate-google{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.5);
  background:linear-gradient(135deg, #ffffff, #f1f1f1);
  color:#1a1a1a;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 12px 22px rgba(30, 24, 8, 0.35);
  position:relative;
  padding-left:48px;
}
.login-gate-google::before{
  content:"";
  position:absolute;
  left:14px;
  width:24px;
  height:24px;
  background-image:url(/images/icons/google.svg);
  background-size:24px 24px;
  background-repeat:no-repeat;
  background-position:center;
}
body.modal-open{ overflow:hidden; position:fixed; width:100%; }

.action-overlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(5, 9, 18, 0.72);
  z-index:1300;
}
.action-overlay.active{ display:flex; }
.action-card{
  width:min(360px, 92vw);
  background:#0b1220;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  padding:18px;
  color:#e9ebf5;
  box-shadow:0 18px 40px rgba(0,0,0,0.45);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.action-spinner{
  width:32px;
  height:32px;
  border-radius:50%;
  border:3px solid rgba(255,255,255,0.2);
  border-top-color:var(--brand);
  animation:spin 1s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.success-overlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background: radial-gradient(circle at 20% 10%, rgba(255, 221, 113, 0.12), transparent 45%),
    linear-gradient(160deg, #0b0f18 0%, #121a2a 45%, #0a0d14 100%);
  z-index:1400;
}
.success-overlay.active{ display:flex; }
.success-card{
  width:min(560px, 94vw);
  background:#000;
  border-radius:22px;
  padding:150px 40px;
  color:#f6f7ff;
  text-align:center;
  box-shadow:0 20px 50px rgba(0,0,0,0.45);
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
}
.success-card img{
  width:275px;
  height:auto;
  margin:0;
  display:block;
}
.success-title{ font-size:22px; font-weight:700; margin:0; }
.success-text{ font-size:15px; color:#d6dcff; margin:0; }
.success-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 28px;
  border-radius:14px;
  background:#ffd65a;
  color:#1a1b2a;
  font-weight:700;
  border:0;
  cursor:pointer;
  min-width:190px;
  font-size:16px;
  margin-top:auto;
}
.success-confetti-btn{
  position:absolute;
  right:18px;
  bottom:18px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(255,255,255,0.08);
  color:#f6f7ff;
  font-size:11px;
  font-weight:600;
  cursor:pointer;
}
.success-confetti-btn:hover{
  background:rgba(255,255,255,0.16);
  border-color:rgba(255,255,255,0.4);
}
.success-confetti{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  background:transparent;
  pointer-events:none;
  z-index:1395;
}
.vip-confetti{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  background:transparent;
  pointer-events:none;
  z-index:1390;
}

.upgrade-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background: radial-gradient(120% 120% at 50% 10%, rgb(0 0 0 / 45%), rgba(6, 8, 18, 0.88) 60%), rgba(4, 6, 14, 0.82);
  backdrop-filter: blur(2px);
  z-index: 1200;
}
.upgrade-modal.active{ display:flex; }
.upgrade-card{
 width: min(420px, 92vw);
    background: linear-gradient(150deg, rgb(34 24 56 / 53%), rgba(18, 16, 34, 0.15));
    border: 1px solid rgb(242 218 255 / 50%);
    border-radius: 18px;
    padding: 30px 20px 8px;
    color: #e9ebf5;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(161, 112, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    margin: 20px;
}
.upgrade-card::before{
  content:"";
  position:absolute;
  inset:-35% -20% auto -20%;
  height:60%;
  background:radial-gradient(circle at top, rgba(128, 86, 230, 0.45), rgba(128, 86, 230, 0) 70%);
  pointer-events:none;
}
.upgrade-card::after{
  content:"";
  position:absolute;
  inset:auto -25% -35% -25%;
  height:55%;
  background:radial-gradient(circle at bottom, rgba(255, 205, 110, 0.45), rgba(255, 205, 110, 0) 70%);
  pointer-events:none;
}
.upgrade-close{
  position:absolute;
  top:10px;
  right:12px;
  background:rgba(17, 14, 26, 0.55);
  border:1px solid rgba(255,255,255,0.15);
  color:#f3f0ff;
  font-size:16px;
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  cursor:pointer;
  display: none;
}
.upgrade-brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
  justify-content:center;
  text-align:center;
}
.upgrade-brand-icon{
  position:relative;
  width:40px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.upgrade-brand-icon img{
  width:40px;
  height:auto;
}
.upgrade-brand-text{
  font-size:18px;
  letter-spacing:0.2px;
}
.upgrade-brand-tier{
  color:#f1c06a;
  font-size:19px;
}
.upgrade-title{
  font-size:24px;
  font-weight:700;
  margin:0;
  text-align:center;
}
.upgrade-title-line{
  display:block;
}
.upgrade-price{
  margin:0;
  text-align:center;
  color:#f3d288;
  font-weight:600;
  font-size:14px;
  letter-spacing:0.2px;
  margin: 20px 0px 10px 0px;
}
.upgrade-feature-panel{
  border-radius:16px;
  padding: 30px 16px 10px;
  border:2px solid rgba(231, 191, 100, 0.7);
  background:
    linear-gradient(135deg, rgba(96, 60, 155, 0.5), rgba(54, 39, 98, 0.55));
  box-shadow:
    inset 0 0 24px rgba(13, 8, 24, 0.6),
    0 0 26px rgba(233, 189, 95, 0.35),
    0 0 40px rgba(155, 111, 255, 0.25);
}
.upgrade-feature-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:22px 14px;
}
.upgrade-feature{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
  color:#efe7ff;
}
.upgrade-feature-icon{
  width:100px;
  height:50px;
  border-radius:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  box-shadow:none;
}
.upgrade-feature-icon img{
  width:100px;
  height:80px;
  display:block;
}
.upgrade-feature-label{
  font-size:12px;
  color:#d9d3ee;
  line-height:1.3;
}
.upgrade-body{
  font-size:14px;
  color:#d5d2e6;
  margin:0;
  text-align:center;
}
.upgrade-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  padding-bottom:6px;
}
.upgrade-btn{
  width:min(280px, 100%);
  border-radius:999px;
  padding:10px 16px;
  border: 1.5px solid rgb(255 255 255 / 40%);
  cursor:pointer;
  font-weight:700;
  font-size:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:
    linear-gradient(135deg, #ffe08e, #f4c45a 55%, #c7891f 100%);
  color:#2b1c05;
  box-shadow:
    0 14px 28px rgba(90, 56, 7, 0.45),
    inset 0 0 0 1px rgba(255,255,255,0.35);
}
.upgrade-cta-icon{
  width:26px;
  height:auto;
}
.upgrade-btn:disabled{
  opacity:0.7;
  cursor:default;
}
.upgrade-link{
  background:transparent;
  border:0;
  color:#c7bedc;
  font-size:13px;
  text-decoration:underline;
  cursor:pointer;
  padding:6px 0;
  margin: 10px 0 6px;
}

@media (max-width: 720px){
  .account-shell{
    padding: calc(var(--topbar-h) + 8px) 10px calc(var(--nav-h) + 14px);
  }
  .account-card{
    box-shadow: none;
    border-radius: 12px;
  }
}
@media (max-width: 480px){
  .account-photo-card{
    padding: 70px 14px 16px;
  }
}
