/* =====================================================
   STUDIO DARPAN PWA — css/screens.css
   Home, Gallery, Video, Profile, Booking, Buy, Face, Verify
   ===================================================== */

/* ═══════ HOME ═══════ */
.home-hero{
  background:linear-gradient(160deg,#DF1B1B 0%,#a50000 100%);
  padding:28px 20px 90px;color:#fff;position:relative;overflow:hidden;
}
.home-hero::before{
  content:'';position:absolute;top:-60px;right:-60px;
  width:220px;height:220px;border-radius:50%;
  background:rgba(255,255,255,.08);
}
.home-hero::after{
  content:'';position:absolute;bottom:-40px;left:-40px;
  width:160px;height:160px;border-radius:50%;
  background:rgba(255,255,255,.05);
}
.home-greeting{font-size:13px;opacity:.8;margin-bottom:4px}
.home-name{font-size:22px;font-weight:700;font-family:'Playfair Display',serif}
.home-tagline{font-size:13px;opacity:.7;margin-top:6px;line-height:1.5}
.home-logo{position:absolute;right:20px;top:28px;width:54px;height:54px;background:rgba(255,255,255,.18);border-radius:16px;display:flex;align-items:center;justify-content:center}
.home-logo i{color:#fff;font-size:26px}
.home-stats{display:flex;gap:12px;margin-top:16px}
.home-stat{background:rgba(255,255,255,.15);border-radius:12px;padding:10px 14px;text-align:center;flex:1}
.home-stat .val{font-size:18px;font-weight:700}
.home-stat .lbl{font-size:10px;opacity:.8;margin-top:2px}

.home-grid{margin:-50px 16px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px;position:relative;z-index:1}
.home-card{background:#fff;border-radius:18px;padding:18px;box-shadow:var(--shadow-lg);cursor:pointer;transition:.2s;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;border:1.5px solid transparent}
.home-card:active{transform:scale(.95);border-color:var(--red)}
.home-card .hc-icon{width:54px;height:54px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:4px}
.home-card h4{font-size:13px;font-weight:600;color:var(--text)}
.home-card p{font-size:11px;color:var(--muted);line-height:1.4}

/* Intro section */
.home-intro{margin:20px 16px 0;background:#fff;border-radius:18px;padding:20px;box-shadow:var(--shadow)}
.home-intro h3{font-family:'Playfair Display',serif;font-size:20px;font-weight:700;color:var(--red);margin-bottom:10px}
.home-intro p{font-size:13px;color:var(--muted);line-height:1.7}
.home-intro .hi-badge{display:inline-flex;align-items:center;gap:6px;background:var(--red-light);color:var(--red);padding:5px 12px;border-radius:20px;font-size:12px;font-weight:600;margin-bottom:12px}
.equip-list{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px}
.equip-tag{background:#f5f5f5;color:var(--text);padding:5px 12px;border-radius:20px;font-size:11px;font-weight:500}
.equip-tag span{color:var(--red);font-weight:700}

.home-feature-card{margin:12px 16px 0;background:linear-gradient(135deg,#1a1a1a,#2a1010);border-radius:18px;padding:20px;display:flex;gap:16px;align-items:center}
.hfc-icon{width:52px;height:52px;background:rgba(223,27,27,.2);border-radius:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.hfc-icon i{color:var(--red);font-size:24px}
.hfc-text h4{font-size:15px;font-weight:700;color:#fff;margin-bottom:6px}
.hfc-text p{font-size:12px;color:rgba(255,255,255,.5);line-height:1.5}

/* ═══════ GALLERY ═══════ */
.gallery-top{background:#fff;padding:12px 16px;border-bottom:1px solid var(--border)}
.gallery-stats{display:flex;gap:8px}
.gs-item{flex:1;background:var(--bg);border-radius:10px;padding:10px;text-align:center}
.gs-item .val{font-size:18px;font-weight:700;color:var(--red)}
.gs-item .lbl{font-size:10px;color:var(--muted);margin-top:2px}

.gallery-tabs{display:flex;gap:8px;padding:12px 16px 8px;background:#fff;overflow-x:auto;scrollbar-width:none}
.gallery-tabs::-webkit-scrollbar{display:none}
.gtab{padding:7px 16px;border-radius:20px;font-size:13px;font-weight:500;background:var(--bg);border:1.5px solid var(--border);color:var(--muted);cursor:pointer;white-space:nowrap;transition:.2s;flex-shrink:0}
.gtab.active{background:var(--red);color:#fff;border-color:var(--red)}

.folder-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 16px 20px}
.folder-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--shadow);cursor:pointer;transition:.2s}
.folder-card:active{transform:scale(.97)}
.folder-thumb{width:100%;height:120px;background:#f0f0f0;overflow:hidden;display:flex;align-items:center;justify-content:center;position:relative}
.folder-thumb img{width:100%;height:100%;object-fit:cover}
.folder-thumb .ft-placeholder{font-size:36px}
.folder-count{position:absolute;bottom:6px;right:6px;background:rgba(0,0,0,.6);color:#fff;font-size:10px;font-weight:600;padding:3px 8px;border-radius:10px}
.folder-info{padding:10px 12px}
.folder-info h4{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.folder-info span{font-size:11px;color:var(--muted)}

.image-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;padding-bottom:20px}
.img-thumb{aspect-ratio:1;overflow:hidden;cursor:pointer;position:relative;background:#f0f0f0}
.img-thumb img{width:100%;height:100%;object-fit:cover;transition:.15s}
.img-thumb:active img{opacity:.75}
.img-select-btn{position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:50%;background:rgba(0,0,0,.4);border:2px solid rgba(255,255,255,.6);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s}
.img-select-btn.selected{background:var(--red);border-color:var(--red)}
.img-select-btn i{color:#fff;font-size:11px}

/* Full view */
#screen-fullview{background:#000}
#screen-fullview .top-bar{background:rgba(0,0,0,.7)}

/* ═══════ VIDEO ═══════ */
.playlist-item{display:flex;gap:12px;background:#fff;border-radius:14px;padding:12px;margin-bottom:10px;box-shadow:var(--shadow);cursor:pointer;transition:.2s}
.playlist-item:active{transform:scale(.98)}
.pl-thumb{position:relative;width:110px;min-width:110px;height:72px;border-radius:10px;overflow:hidden;background:#111;flex-shrink:0}
.pl-thumb img{width:100%;height:100%;object-fit:cover}
.pl-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.35)}
.pl-play i{color:#fff;font-size:22px}
.pl-info{flex:1;min-width:0}
.pl-info h4{font-size:13px;font-weight:600;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
.pl-info span{font-size:12px;color:var(--muted)}
.pl-badge{display:inline-block;background:var(--red-light);color:var(--red);font-size:10px;font-weight:700;padding:2px 8px;border-radius:8px;margin-top:4px}

#screen-videoplayer{background:#000}
#screen-videoplayer .top-bar{background:rgba(0,0,0,.8)}
#main-video{width:100%;background:#000;max-height:56vw}
.video-detail{background:#fff;padding:16px;flex:1;overflow-y:auto}
.video-detail h3{font-size:16px;font-weight:600;margin-bottom:6px}
.video-detail p{font-size:13px;color:var(--muted)}

/* ═══════ PROFILE — New Design (styles mostly in profile.html) ═══════ */
/* Keep old classes for safety but override with new values */
.profile-hero{ background: #0d0d0d; padding: 0; text-align: center; color: #fff; position: relative; overflow: hidden; }
.profile-avatar-wrap{ position: relative; width: 96px; margin: 0 auto; }
.profile-avatar{ width: 96px; height: 96px; background: #1c1c1c; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.profile-name{ font-size: 22px; font-weight: 800; font-family: 'Playfair Display', serif; color: #fff; text-align: center; }
.profile-uid{ font-size: 12px; color: rgba(255,255,255,.38); margin-top: 4px; text-align: center; }
.profile-badges{ display: flex; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.profile-list{ padding: 0 14px 20px; }
/* Keep old item styles for backward compat */
.profile-item{ display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer; transition: .2s; }
.profile-item:active{ transform: scale(.98); }
.pi-icon{ width: 44px; height: 44px; border-radius: 13px; background: var(--red-light); display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 19px; flex-shrink: 0; }
.pi-text{ flex: 1; }
.pi-text h4{ font-size: 14px; font-weight: 700; margin: 0; }
.pi-text p{ font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.pi-arrow{ color: #ccc; font-size: 13px; }
.pi-logout .pi-icon{ background: #fff0f0; }
.pi-logout .pi-icon i{ color: var(--red); }
.pi-logout h4{ color: var(--red); }


/* ═══════ BOOKING ═══════ */
.booking-hero{background:var(--red);color:#fff;text-align:center;padding:24px 20px 32px}
.booking-hero i{font-size:44px;margin-bottom:10px;display:block}
.booking-hero h2{font-size:22px;font-weight:700;font-family:'Playfair Display',serif}
.booking-hero p{font-size:13px;opacity:.85;margin-top:6px}
.booking-form{padding:16px 16px 100px}
.service-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.svc-check{display:flex;align-items:center;gap:8px;background:#fff;border:1.5px solid var(--border);border-radius:10px;padding:10px 12px;cursor:pointer;transition:.2s}
.svc-check.checked{border-color:var(--red);background:var(--red-light)}
.svc-check input{accent-color:var(--red)}
.svc-check label{font-size:12px;font-weight:500;cursor:pointer;color:var(--text)}

/* ═══════ BUY / SHOP ═══════ */
.shop-header{background:linear-gradient(135deg,#1a1a1a,#2d1515);padding:24px 20px 28px;color:#fff}
.shop-header h2{font-family:'Playfair Display',serif;font-size:22px;font-weight:700}
.shop-header p{font-size:13px;opacity:.6;margin-top:4px}

.products-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 16px 100px}
.product-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--shadow);cursor:pointer;transition:.2s}
.product-card:active{transform:scale(.97)}
.product-img{width:100%;height:140px;overflow:hidden;background:#f0f0f0;position:relative}
.product-img img{width:100%;height:100%;object-fit:cover}
.product-badge{position:absolute;top:8px;left:8px;background:var(--red);color:#fff;font-size:10px;font-weight:700;padding:3px 8px;border-radius:6px}
.product-info{padding:12px}
.product-info h4{font-size:13px;font-weight:600;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-price{font-size:15px;font-weight:700;color:var(--red)}
.product-price s{font-size:12px;color:var(--muted);font-weight:400;margin-left:4px}
.product-add{width:100%;margin-top:8px;padding:8px;background:var(--red);color:#fff;border:none;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;font-family:'Poppins',sans-serif}

/* Cart badge on nav */
.cart-count{position:absolute;top:6px;right:calc(50% - 18px);background:var(--red);color:#fff;border-radius:10px;font-size:9px;font-weight:700;padding:1px 5px;min-width:16px;text-align:center}

/* ═══════ AI FACE ═══════ */
#screen-face{background:#000}
#screen-face .top-bar{background:rgba(0,0,0,.8)}
.face-cam-wrap{flex:1;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
#face-video{width:100%;height:100%;object-fit:cover}
.face-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
.face-frame{width:220px;height:280px;border:3px solid #00e676;border-radius:50%;position:relative}
.face-scan{position:absolute;top:0;left:10px;right:10px;height:3px;background:linear-gradient(90deg,transparent,#00e676,transparent);animation:fscan 2s linear infinite}
@keyframes fscan{0%{top:10px}100%{top:260px}}
.face-status{color:#fff;font-size:15px;font-weight:600;margin-top:20px;background:rgba(0,0,0,.5);padding:10px 20px;border-radius:25px}
.face-footer{background:rgba(0,0,0,.85);padding:20px;text-align:center;flex-shrink:0}
.face-footer p{color:rgba(255,255,255,.5);font-size:12px;margin-top:8px}

/* AI photos grid */
.aiphotos-header{background:#fff;padding:12px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px}
.aiph-stat{flex:1;text-align:center}
.aiph-stat .val{font-size:20px;font-weight:700;color:var(--red)}
.aiph-stat .lbl{font-size:10px;color:var(--muted)}

/* ═══════ VERIFY ═══════ */
#screen-verify{background:linear-gradient(160deg,#0d0d1a,#1a0d1a,#0d1a0d)}
.verify-hero{padding:60px 28px 32px;text-align:center}
.verify-icon{font-size:64px;margin-bottom:16px}
.verify-hero h2{font-family:'Playfair Display',serif;font-size:28px;font-weight:700;color:#fff;margin-bottom:10px}
.verify-hero p{font-size:14px;color:rgba(255,255,255,.5);line-height:1.6;max-width:300px;margin:0 auto}
.verify-card{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:24px;padding:28px 24px;margin:0 20px 20px}
.verify-input-large{
  width:100%;padding:16px;
  background:rgba(255,255,255,.1);border:1.5px solid rgba(255,255,255,.2);border-radius:14px;
  color:#fff;font-size:22px;font-weight:700;letter-spacing:6px;text-align:center;
  font-family:'Poppins',sans-serif;outline:none;margin-bottom:16px;
  -webkit-appearance:none;
}
.verify-input-large::placeholder{letter-spacing:0;font-size:14px;font-weight:400;color:rgba(255,255,255,.35)}
.verify-btn{width:100%;height:54px;border:none;border-radius:14px;background:var(--red);color:#fff;font-family:'Poppins',sans-serif;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 6px 20px rgba(223,27,27,.4);transition:.2s}
.verify-btn:active{transform:scale(.97)}
.verify-forgot-link{text-align:center;margin-top:16px;font-size:13px;color:rgba(255,255,255,.35);cursor:pointer}
.verify-forgot-link span{color:rgba(223,27,27,.8);font-weight:600}

/* Verify OTP section */
.votp-section{display:none;margin-top:20px;padding-top:20px;border-top:1px solid rgba(255,255,255,.08)}
.votp-section.show{display:block}

/* ═══════ PAYMENT ═══════ */
.pay-amount-box{background:linear-gradient(135deg,var(--red),#a50000);color:#fff;border-radius:18px;padding:20px 24px;margin:16px;text-align:center;box-shadow:0 8px 24px rgba(223,27,27,.3)}
.pay-amount-box .lbl{font-size:13px;opacity:.8;margin-bottom:4px}
.pay-amount-box .amt{font-size:36px;font-weight:700}
.pay-amount-box .oid{font-size:12px;opacity:.7;margin-top:4px}
.qr-box{background:#fff;border-radius:18px;padding:20px;display:flex;flex-direction:column;align-items:center;gap:12px;box-shadow:var(--shadow);margin:0 16px 16px}
.qr-box p{font-size:13px;color:var(--muted);text-align:center}

/* ═══════ TV QR SCAN ═══════ */
#screen-tvqr{background:#0d0d0d}
.tvqr-wrap{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;text-align:center;gap:20px}
.tvqr-icon{width:80px;height:80px;background:rgba(223,27,27,.15);border-radius:24px;display:flex;align-items:center;justify-content:center}
.tvqr-icon i{color:var(--red);font-size:38px}
.tvqr-wrap h2{font-family:'Playfair Display',serif;font-size:24px;color:#fff;font-weight:700}
.tvqr-wrap p{font-size:14px;color:rgba(255,255,255,.45);line-height:1.7;max-width:300px}
.tvqr-steps{background:rgba(255,255,255,.05);border-radius:16px;padding:20px;width:100%;text-align:left;border:1px solid rgba(255,255,255,.08)}
.tvqr-step{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.05)}
.tvqr-step:last-child{border-bottom:none}
.tvqr-step-num{width:28px;height:28px;background:var(--red);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:700;flex-shrink:0;margin-top:1px}
.tvqr-step-text{font-size:13px;color:rgba(255,255,255,.6);line-height:1.6}
.tvqr-step-text b{color:#fff;font-weight:600}

/* QR Scanner */
.qr-scanner-wrap{flex:1;position:relative;overflow:hidden}
#qr-video{width:100%;height:100%;object-fit:cover}
.qr-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.45)}
.qr-frame{width:240px;height:240px;position:relative}
.qr-frame::before,.qr-frame::after{content:'';position:absolute;width:40px;height:40px;border-color:#fff;border-style:solid;border-width:0}
.qr-frame::before{top:0;left:0;border-top-width:3px;border-left-width:3px;border-radius:4px 0 0 0}
.qr-frame-tr{position:absolute;top:0;right:0;width:40px;height:40px;border-top:3px solid #fff;border-right:3px solid #fff;border-radius:0 4px 0 0}
.qr-frame-bl{position:absolute;bottom:0;left:0;width:40px;height:40px;border-bottom:3px solid #fff;border-left:3px solid #fff;border-radius:0 0 0 4px}
.qr-frame-br{position:absolute;bottom:0;right:0;width:40px;height:40px;border-bottom:3px solid #fff;border-right:3px solid #fff;border-radius:0 0 4px 0}
.qr-scan-line{position:absolute;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,var(--red),transparent);animation:qrscan 2s linear infinite}
@keyframes qrscan{0%{top:10px}100%{top:220px}}

/* DUE NOTICE */
.due-notice{
  margin:12px 16px;background:linear-gradient(135deg,#2d1515,#1a0d0d);
  border-radius:16px;padding:16px;border:1px solid rgba(223,27,27,.3);
}
.due-notice .dn-title{color:var(--red);font-size:14px;font-weight:700;margin-bottom:6px;display:flex;align-items:center;gap:6px}
.due-notice .dn-text{color:rgba(255,255,255,.6);font-size:12px;line-height:1.6}
.due-notice .dn-btn{margin-top:12px;width:100%;padding:10px;background:var(--red);color:#fff;border:none;border-radius:10px;font-weight:600;font-size:13px;cursor:pointer;font-family:'Poppins',sans-serif}

/* ══ BOTTOM NAV FIX ══ */
.bottom-nav {
  background: #fff !important;
  border-top: 1px solid #f0f0f0 !important;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10) !important;
}
.nav-item {
  color: #bbb !important;
}
.nav-item.active {
  color: #DF1B1B !important;
}
.nav-item.active i {
  transform: scale(1.15);
}
.nav-item span {
  font-size: 10px; font-weight: 600; margin-top: 2px;
}
.nav-item.active span {
  color: #DF1B1B;
}

/* ══ GALLERY LIST VIEW ══ */
.image-list { padding: 0 0 20px; }
.image-list-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-bottom: 1px solid #f5f5f5;
  padding: 10px 16px; cursor: pointer; transition: .15s; position: relative;
}
.image-list-item:active { background: #fafafa; }
.image-list-thumb {
  width: 72px; height: 72px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0; background: #f0f0f0;
}
.image-list-thumb img { width:100%; height:100%; object-fit:cover; }
.image-list-info { flex: 1; min-width: 0; }
.image-list-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.image-list-info span { font-size: 11px; color: var(--muted); }
.image-list-select {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #ddd; background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; transition: .2s;
}
.image-list-select.selected {
  background: #DF1B1B; border-color: #DF1B1B;
}
.image-list-select i { color: #fff; font-size: 13px; }

/* Selection bar */
.selection-bar {
  position: fixed; bottom: var(--nav-h); left: 0; right: 0; z-index: 150;
  background: #DF1B1B; color: #fff;
  padding: 12px 16px; display: none;
  align-items: center; justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(223,27,27,.3);
}
.selection-bar.visible { display: flex; }
.selection-bar .sel-count { font-size: 15px; font-weight: 700; }
.selection-bar .sel-actions { display: flex; gap: 8px; }
.sel-btn {
  background: rgba(255,255,255,.2); border: none; color: #fff;
  padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: 'Poppins',sans-serif; display: flex; align-items: center; gap: 6px;
}
.sel-btn:active { background: rgba(255,255,255,.35); }

/* ══ VERIFY SCREEN FIX ══ */
/* ── VERIFY screen — reuses auth.css fully ── */
#screen-verify {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block !important;
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0a0a0a !important;
  -webkit-overflow-scrolling: touch;
}
/* Mobile verify: hide desktop-only heading */
.verify-desktop-heading { display: none; }
/* Mobile verify: auth-hero shows brand + title only (bullets hidden by auth.css default) */
#screen-verify .auth-hero {
  padding-top: calc(20px + env(safe-area-inset-top));
  padding-bottom: 16px;
}
/* Mobile verify: auth-card is flat (no border radius top) — same as auth */
#screen-verify .auth-card {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/* ══ GALLERY SCREEN FIX ══ */
#screen-gallery {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block !important;
  -webkit-overflow-scrolling: touch;
}
#gallery-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


/* ══════════════════════════════════════════
   CART SCREEN  —  Mobile-first, Desktop-ready
══════════════════════════════════════════ */
#screen-cart, #sc-cart {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  height: 100% !important;
  background: #f2f3f5 !important;
}

/* Shell wraps everything */
.cart-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #f2f3f5;
}

/* ── Topbar ── */
.cart-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  background: linear-gradient(135deg, #1a1a1a, #2d1010);
  flex-shrink: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.cart-back-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.12); border: none;
  border-radius: 50%; color: #fff; font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cart-back-btn:active { background: rgba(255,255,255,.22); }
.cart-topbar-title { flex: 1; }
.cart-topbar-title span {
  display: block; color: #fff; font-size: 16px; font-weight: 700;
  font-family: 'Poppins', sans-serif;
}
.cart-topbar-title small { color: rgba(255,255,255,.5); font-size: 11px; }
.cart-clear-btn {
  padding: 7px 14px;
  background: rgba(223,27,27,.2); border: 1px solid rgba(223,27,27,.4);
  border-radius: 20px; color: #ff6b6b;
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: 'Poppins', sans-serif; white-space: nowrap;
}

/* ── Body ── */
.cart-body {
  flex: 1; display: flex; overflow: hidden;
  min-height: 0;
}
.cart-items-col {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 14px 12px;
}
.cart-summary-col { display: none; } /* shown on desktop via media query */

/* ── Item Card ── */
.cart-item-card {
  background: #fff; border-radius: 20px;
  padding: 16px; margin-bottom: 12px;
  display: flex; gap: 14px; align-items: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  border: 1.5px solid #f5f5f5;
  transition: all .2s;
}
.cart-item-card:active { transform: scale(.99); box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.cart-item-img {
  width: 76px; height: 76px; border-radius: 12px;
  overflow: hidden; background: #f8f8f8; flex-shrink: 0;
  border: 1px solid #eee;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 15px; font-weight: 700; color: #1a1a1a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 3px;
}
.cart-item-size { font-size: 11px; color: #888; margin-bottom: 5px; }
.cart-item-price {
  font-size: 18px; font-weight: 800; color: #DF1B1B; margin-bottom: 10px;
}
/* Qty row */
.cart-qty-row {
  display: flex; align-items: center; gap: 8px;
}
.cart-qty-btn {
  width: 34px; height: 34px;
  border-radius: 8px; border: 1.5px solid #e8e8e8;
  background: #f8f8f8; font-size: 18px; font-weight: 700;
  color: #333; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .15s; line-height: 1;
}
.cart-qty-btn:active { background: #DF1B1B; color: #fff; border-color: #DF1B1B; }
.cart-qty-num {
  font-size: 16px; font-weight: 700; color: #1a1a1a;
  min-width: 26px; text-align: center;
}
.cart-item-subtotal {
  font-size: 13px; font-weight: 600; color: #999;
  background: #f5f5f5; border-radius: 6px;
  padding: 4px 8px;
}
/* Delete button */
.cart-delete-btn {
  width: 38px; height: 38px; flex-shrink: 0;
  background: #fff0f0; border: 1px solid #ffdede;
  border-radius: 10px; color: #DF1B1B;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: .15s; margin-top: 2px;
}
.cart-delete-btn:active { background: #DF1B1B; color: #fff; }

/* ── Mobile Footer ── */
.cart-mobile-footer {
  flex-shrink: 0;
  background: #fff;
  border-top: 2px solid #eeeeee;
  padding: 14px 16px calc(var(--nav-h, 60px) + var(--safe-bottom, 0px) + 14px);
  box-shadow: 0 -6px 28px rgba(0,0,0,.10);
}
.cart-footer-row {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 12px;
}
.cart-footer-label {
  font-size: 10px; color: #888; text-transform: uppercase;
  letter-spacing: .8px; font-weight: 700; margin-bottom: 3px;
}
.cart-footer-total {
  font-size: 28px; font-weight: 800; color: #DF1B1B; line-height: 1;
}
.cart-footer-secure {
  display: flex; align-items: center; gap: 5px;
  background: #f0fff4; border-radius: 8px; padding: 6px 12px;
  color: #27ae60; font-size: 12px; font-weight: 600;
}

/* ── Checkout Button (shared) ── */
.cart-checkout-btn {
  width: 100%; height: 54px;
  background: linear-gradient(135deg, #DF1B1B, #8b0000);
  color: #fff; border: none; border-radius: 14px;
  font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 6px 20px rgba(223,27,27,.4);
  transition: .2s;
}
.cart-checkout-btn:active { transform: scale(.98); box-shadow: none; }

/* ══════════════════════════════════════════
   VIDEO LIST — Playlist & Video Cards
   Mobile-first, desktop via media query
══════════════════════════════════════════ */
#screen-video, #sc-video {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #111111 !important;
}
#video-content {
  background: #111111;
}

.vlist-wrap {
  padding: 8px 12px 100px;
  width: 100%;
  box-sizing: border-box;
}
.vlist-section-label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.3);
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 4px 4px 10px; margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 10px;
}

/* ── Card ── */
.vlist-card {
  display: flex; align-items: center; gap: 14px;
  background: #1e1e1e;
  border-radius: 14px; padding: 12px;
  margin-bottom: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.07);
  transition: background .15s, transform .15s;
  width: 100%; box-sizing: border-box;
}
.vlist-card:active { background: #222; transform: scale(.99); }

/* Thumbnail */
.vlist-thumb-wrap {
  position: relative;
  width: 110px; min-width: 110px; height: 72px;
  border-radius: 10px; overflow: hidden;
  background: #111; flex-shrink: 0;
}
.vlist-thumb-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.vlist-thumb-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #2d1515);
}
.vlist-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); color: #fff;
}
.vlist-duration {
  position: absolute; bottom: 5px; right: 6px;
  background: rgba(0,0,0,.8); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  font-family: 'Poppins', sans-serif;
}

/* Info */
.vlist-info { flex: 1; min-width: 0; }
.vlist-title {
  font-size: 14px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 5px; font-family: 'Poppins', sans-serif;
}
.vlist-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 11px; color: rgba(255,255,255,.45);
  margin-bottom: 6px;
}
.vlist-badge {
  display: inline-block;
  background: rgba(223,27,27,.15); color: #ff6b6b;
  border: 1px solid rgba(223,27,27,.25);
  font-size: 10px; font-weight: 700;
  padding: 2px 10px; border-radius: 20px;
  font-family: 'Poppins', sans-serif;
}
.vlist-q-badge {
  display: inline-block;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px;
  font-family: 'Poppins', sans-serif;
}
.vlist-arrow {
  color: rgba(255,255,255,.3); font-size: 14px;
  flex-shrink: 0; padding: 0 2px;
}

/* Empty state — dark themed */
.vlist-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 80px 20px;
  text-align: center; gap: 12px;
  color: rgba(255,255,255,.45);
  background: #111111;
  min-height: 300px;
}
.vlist-empty i { font-size: 52px; color: rgba(255,255,255,.12); }
.vlist-empty div { font-size: 16px; font-weight: 600; }
.vlist-empty small { font-size: 13px; color: rgba(255,255,255,.22); line-height: 1.5; }

/* ══════════════════════════════════════════════════
   VCARD-FULL — YouTube-style video cards
   Mobile: full-width stacked (thumb on top, info below)
   Desktop: 3-column grid (via desktop.css)
══════════════════════════════════════════════════ */

/* VIDEO GRID — mobile: single column */
.vgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Each card: vertical stack like YouTube mobile */
.vcard-full {
  display: flex;
  flex-direction: column;
  background: transparent;
  margin-bottom: 0;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: opacity .15s;
  border-radius: 0;
  border: none;
  overflow: visible;
  padding-bottom: 18px;
}
.vcard-full:active { opacity: .75; }

/* Thumbnail — 16:9 ratio, full width */
.vcard-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #1a1a1a;
  overflow: hidden;
  border-radius: 10px;
  flex-shrink: 0;
}
.vcard-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
.vcard-thumb-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e1e1e, #2d1010);
  border-radius: 10px;
}
/* Show fallback only if no img */
.vcard-thumb-img[style*="display:none"] + .vcard-thumb-fallback,
.vcard-thumb-img[style*="display: none"] + .vcard-thumb-fallback {
  display: flex;
}
.vcard-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.0);
  color: #fff; font-size: 26px;
  opacity: 0;
  transition: opacity .2s;
  border-radius: 10px;
}
.vcard-full:hover .vcard-play-btn { opacity: 1; }
.vcard-dur {
  position: absolute; bottom: 7px; right: 9px;
  background: rgba(0,0,0,.85);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 7px; border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: .3px;
}

/* Info below thumbnail */
.vcard-info {
  padding: 10px 4px 0;
  min-width: 0;
  display: flex; flex-direction: column;
  gap: 3px;
}
.vcard-title {
  font-size: 14px; font-weight: 600; color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  margin: 0;
}
.vcard-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.4);
  margin: 0;
}
.vcard-meta-item {
  display: flex; align-items: center; gap: 4px;
}
.vcard-meta-item i { font-size: 10px; }

/* Quality badges */
.vcard-q-badge {
  display: inline-block;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 5px;
  font-family: 'Poppins', sans-serif;
}
.vcard-badge {
  display: inline-block;
  background: rgba(223,27,27,.18); color: #ff7070;
  border: 1px solid rgba(223,27,27,.28);
  font-size: 10px; font-weight: 700;
  padding: 2px 9px; border-radius: 20px;
  font-family: 'Poppins', sans-serif;
}
/* Hide arrow in YouTube-style */
.vcard-arrow { display: none; }
