/* ==========================================================================
   PERSONAL / USER - Buy pages watch-first walkthrough
   Personal product shell (sidebar/topbar) + step indicator + plan cards +
   billing form + Razorpay payment + completion summary scenes.
   ========================================================================== */

/* === BASE CONTAINER & VIEWPORT (canonical watch-first) === */
.guide-anim{position:relative;z-index:0;border:1px solid #e5e5e0;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.04);margin:28px 0 32px}
.ga-slides{position:relative}
.ga-slide{display:none}
.ga-slide.active{display:block}
.ga-viewport{position:relative;height:340px;overflow:hidden;background:#eceae6;cursor:pointer}
.ga-controls{display:none}
.ga-info{padding:18px 22px 14px;font-family:var(--db-font,system-ui,sans-serif)}
.ga-step-badge{display:inline-block;font-size:10px;font-weight:700;color:#1967D2;background:#E8F0FE;padding:4px 12px;border-radius:20px;margin-bottom:8px;text-transform:uppercase;letter-spacing:.8px}
.ga-info h3{font-size:16px;font-weight:600;margin-bottom:4px;color:#1a1a1a}
.ga-info p{font-size:13px;color:#6b6b6b;line-height:1.55;margin:0}

.ga-overlay{position:absolute;inset:0;background:rgba(0,0,0,.45);z-index:200;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .25s ease}
.ga-overlay.on{opacity:1;pointer-events:auto}
.ga-overlay-btn{width:50px;height:50px;border-radius:50%;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ga-overlay-btn svg{width:22px;height:22px;color:#333;margin-left:3px}
.ga-reset-float{position:absolute;bottom:8px;right:8px;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.85);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:201;opacity:0;pointer-events:none}

/* === PERSONAL PRODUCT SHELL === */
.sc-pbp-shell{position:absolute;inset:0;display:flex;background:#f5f7fa;font-family:var(--db-font,system-ui,sans-serif);border-radius:12px;overflow:hidden}

.psh-side{width:120px;background:#fff;border-right:1px solid #eef0f3;display:flex;flex-direction:column;padding:14px 0;flex:0 0 auto}
.psh-logo{display:flex;align-items:center;gap:6px;padding:0 14px 16px;font-size:14px;font-weight:700;color:#1a3a8f}
.psh-logo i{width:20px;height:20px;background:linear-gradient(135deg,#3a6ee0 0%,#1a3a8f 100%);border-radius:5px;display:block}
.psh-nav{display:flex;align-items:center;gap:8px;padding:9px 14px;font-size:11px;color:#5a6477;cursor:default;border-left:3px solid transparent}
.psh-nav i{width:14px;height:14px;background:#cfd3dc;border-radius:3px;display:block}
.psh-nav.act{background:#eef3ff;color:#1a3a8f;font-weight:700;border-left-color:#3a6ee0}
.psh-nav.act i{background:#3a6ee0}
.psh-side-spacer{flex:1}
.psh-side-bottom{padding:8px 0}
.psh-nav.logout{color:#d94a4a}
.psh-nav.logout i{background:#ffd5d5}

.psh-main{flex:1;display:flex;flex-direction:column;background:#f5f7fa;min-width:0}
.psh-top{display:flex;align-items:center;gap:10px;padding:12px 16px;background:#fff;border-bottom:1px solid #eef0f3}
.psh-burger{width:22px;height:22px;display:flex;flex-direction:column;justify-content:center;gap:3px;cursor:default}
.psh-burger i{display:block;height:2px;background:#3a4252;border-radius:1px}
.psh-burger i:nth-child(2){width:14px}
.psh-burger i:nth-child(1),.psh-burger i:nth-child(3){width:18px}
.psh-spacer{flex:1}
.psh-pages{display:flex;flex-direction:column;align-items:flex-end;font-size:10px;color:#5a6477}
.psh-pages b{color:#1a1a1a;font-weight:700;font-size:11px}
.psh-pages-bar{width:60px;height:2px;background:#e3e6ed;margin-top:3px;border-radius:2px;position:relative;overflow:hidden}
.psh-pages-bar::after{content:'';position:absolute;left:0;top:0;height:100%;width:30%;background:#3a6ee0;border-radius:2px}
.psh-buy{background:#1f4ee6;color:#fff;padding:6px 12px;border-radius:7px;font-size:11px;font-weight:700;letter-spacing:.2px;box-shadow:0 2px 6px rgba(31,78,230,.25);position:relative}
.psh-bell{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#3a4252;font-size:13px}
.psh-user{display:flex;align-items:center;gap:8px;padding-left:6px}
.psh-user-meta{display:flex;flex-direction:column;font-size:10px;color:#5a6477;line-height:1.25;text-align:right}
.psh-user-meta b{color:#1a1a1a;font-weight:700;font-size:11px}
.psh-av{width:30px;height:30px;border-radius:50%;background:#37c08b;color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}

.psh-body{flex:1;padding:14px 18px;overflow:hidden;display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}

/* My Files card (scene 0) */
.pmf-head{display:flex;align-items:center;gap:8px}
.pmf-title{font-size:14px;font-weight:700;color:#1a1a1a}
.pmf-spacer{flex:1}
.pmf-act{height:24px;display:flex;align-items:center;gap:5px;padding:0 10px;background:#fff;border:1px solid #d8deea;border-radius:6px;font-size:10px;font-weight:600;color:#1a3a8f}
.pmf-act i{width:12px;height:12px;background:#3a6ee0;border-radius:2px;display:block}
.pmf-card{background:#fff;border:1px solid #e3e6ed;border-radius:10px;padding:16px 20px;font-size:11px;color:#3a4252;font-weight:600;text-align:center;box-shadow:0 1px 0 rgba(20,30,60,.02)}

/* === Buy Pages step indicator === */
.pbp-steps{display:flex;align-items:center;justify-content:center;gap:0;margin:2px 0 6px}
.pbp-step{display:flex;flex-direction:column;align-items:center;gap:4px;flex:0 0 auto}
.pbp-step-num{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#c8cee0;color:#fff;font-size:12px;font-weight:700}
.pbp-step.act .pbp-step-num{background:#1f4ee6}
.pbp-step.done .pbp-step-num{background:#1f4ee6}
.pbp-step.done .pbp-step-num::before{content:'\2713';font-size:13px}
.pbp-step.done .pbp-step-num span{display:none}
.pbp-step-label{font-size:9.5px;color:#5a6477;font-weight:600;white-space:nowrap}
.pbp-step.act .pbp-step-label,.pbp-step.done .pbp-step-label{color:#1a1a1a}
.pbp-step-line{flex:1;height:2px;background:#dde2eb;margin:14px 4px 0;min-width:48px}
.pbp-step-line.done{background:#1f4ee6}

/* Info banner */
.pbp-banner{background:#eef3ff;border-left:3px solid #1f4ee6;padding:8px 12px;border-radius:6px;display:flex;gap:8px;align-items:flex-start;font-size:9.5px;color:#3a4252;line-height:1.4}
.pbp-banner i{width:18px;height:18px;border-radius:50%;background:#1a1a1a;color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0}
.pbp-banner b{color:#1a1a1a;font-weight:700}

/* Plan cards + price summary layout */
.pbp-layout{display:flex;gap:12px;align-items:flex-start;flex:1;min-height:0}
.pbp-plans{flex:1.2;display:flex;flex-direction:column;gap:7px;min-width:0}
.pbp-plan{background:#fff;border:1px solid #e3e6ed;border-radius:9px;padding:9px 14px;display:flex;align-items:center;gap:10px;font-size:11px}
.pbp-plan-name{font-weight:700;color:#1a1a1a;flex:0 0 90px}
.pbp-plan-words{flex:1;color:#5a6477;font-size:9.5px}
.pbp-plan-price{font-weight:700;color:#1a1a1a}
.pbp-plan.sel{background:#1f4ee6;border-color:#1f4ee6;color:#fff;box-shadow:0 4px 12px rgba(31,78,230,.25)}
.pbp-plan.sel .pbp-plan-name,.pbp-plan.sel .pbp-plan-words,.pbp-plan.sel .pbp-plan-price{color:#fff}

.pbp-summary{flex:1;background:#fff;border:1px solid #e3e6ed;border-radius:10px;padding:13px 16px;display:flex;flex-direction:column;gap:8px;align-self:flex-start}
.pbp-summary h4{font-size:12px;font-weight:700;color:#1a1a1a;margin:0;padding-bottom:6px;border-bottom:1px solid #eef0f3}
.pbp-sum-row{display:flex;justify-content:space-between;align-items:center;font-size:10.5px;color:#1a1a1a;font-weight:700}
.pbp-sum-row span:first-child{color:#1a1a1a;font-weight:700}
.pbp-sum-row.disc span:last-child{color:#37c08b}
.pbp-sum-row.tot{padding-top:6px;border-top:1px solid #eef0f3;font-size:12px}
.pbp-checkout{background:#1f4ee6;color:#fff;padding:9px 12px;border-radius:7px;font-size:11px;font-weight:700;text-align:center;margin-top:4px;box-shadow:0 3px 8px rgba(31,78,230,.25)}

/* === Billing & Confirmation === */
.pbp-warn{font-size:10px;color:#c93434;font-weight:700;text-align:center}
.pbp-billing-layout{display:flex;gap:12px;align-items:flex-start;flex:1;min-height:0}
.pbp-billing{flex:1.2;background:#fff;border:1px solid #e3e6ed;border-radius:10px;padding:10px 14px;position:relative}
.pbp-billing .pai-edit{position:absolute;top:8px;right:10px;width:20px;height:20px;border-radius:50%;border:1px solid #d8deea;background:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;color:#5a6477}
.pbp-billing-row{display:flex;align-items:center;gap:14px;padding:5px 4px;border-bottom:1px solid #f0f2f6;font-size:10px}
.pbp-billing-row:last-child{border-bottom:none}
.pbp-billing-key{width:42%;font-weight:700;color:#1a1a1a}
.pbp-billing-key .req{color:#c93434;margin-left:2px}
.pbp-billing-val{flex:1;color:#3a4252}
.pbp-billing-val.muted{color:#9099a8}
.pbp-buy-now{background:#9099a8;color:#fff;padding:9px 12px;border-radius:7px;font-size:11px;font-weight:700;text-align:center;margin-top:4px;letter-spacing:.3px}
.pbp-buy-now.active{background:#1f4ee6;box-shadow:0 3px 8px rgba(31,78,230,.25)}
.pbp-back-link{text-align:center;color:#1f4ee6;font-size:10px;font-weight:700;margin-top:6px}

/* === Razorpay payment scene === */
.sc-pbp-rp{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#1d2533;border-radius:12px}
.rp-card{width:520px;max-width:92%;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.45);display:flex;flex-direction:column}
.rp-head{display:flex;align-items:center;gap:10px;padding:12px 16px;background:#2d3142;color:#fff}
.rp-logo{width:26px;height:26px;border-radius:6px;background:#3a6ee0;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:#fff}
.rp-title{font-size:11px;font-weight:700}
.rp-sub{font-size:9px;color:#cfd3dc}
.rp-spacer{flex:1}
.rp-dots{font-size:14px;color:#cfd3dc;font-weight:700;cursor:default}
.rp-body{display:flex;padding:14px 16px;gap:14px}
.rp-methods{flex:1.4;display:flex;flex-direction:column;gap:6px}
.rp-method{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #e3e6ed;border-radius:7px;font-size:10px;color:#1a1a1a;font-weight:600;background:#fff}
.rp-method i{width:24px;height:18px;border-radius:4px;background:#eef3ff;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:#1f4ee6}
.rp-method.upi i{background:#34c759;color:#fff}
.rp-method.card i{background:#ffc107;color:#1a1a1a}
.rp-method.net i{background:#5a4ed1;color:#fff}
.rp-method.wallet i{background:#ff5c8a;color:#fff}
.rp-method-sub{font-size:8.5px;color:#7a8294;font-weight:500;margin-left:auto}
.rp-qr-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px}
.rp-qr{width:96px;height:96px;background:#fff;border:1px solid #e3e6ed;border-radius:7px;padding:5px;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);gap:1px}
.rp-qr i{background:#1a1a1a;display:block;border-radius:1px}
.rp-qr i.w{background:transparent}
.rp-timer{font-size:9.5px;color:#c93434;font-weight:700;display:flex;align-items:center;gap:4px}
.rp-timer::before{content:'\23F1';font-size:11px}
.rp-pay-amt{font-size:13px;font-weight:700;color:#1a1a1a}
.rp-pay-amt span{font-size:9px;color:#7a8294;font-weight:500;display:block;margin-bottom:2px}

/* === Completion Summary === */
.pbp-success{background:#fff;border:1px solid #e3e6ed;border-radius:12px;padding:20px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.pbp-success-ico{width:56px;height:56px;border-radius:50%;background:#34c759;display:flex;align-items:center;justify-content:center;color:#fff;font-size:30px;font-weight:700;box-shadow:0 6px 18px rgba(52,199,89,.3)}
.pbp-success-ico::before{content:'\2713'}
.pbp-success h3{font-size:14px;font-weight:700;color:#1a1a1a;margin:0}
.pbp-success p{font-size:10.5px;color:#5a6477;margin:0}
.pbp-success-pill{display:inline-flex;align-items:center;gap:6px;background:#eef3ff;color:#1f4ee6;padding:6px 14px;border-radius:999px;font-size:10.5px;font-weight:700;margin-top:4px}
.pbp-success-pill i{width:14px;height:14px;border-radius:50%;background:#1f4ee6;color:#fff;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700}
.pbp-success-pill i::before{content:'+'}

/* ============================================================
   WATCH-FIRST PLAYER CHROME (shared with reference watch-first)
   ============================================================ */
.sim-tour .ga-viewport{background:#0b1430;cursor:pointer}

.tour-card{position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:radial-gradient(120% 120% at 50% 0%,#16245a 0%,#0b1430 70%);opacity:0;pointer-events:none;transition:opacity .45s ease}
.tour-card.on{opacity:1}
.tour-card-logo{display:inline-flex;align-items:center;gap:10px}
.tour-card-brand-label{font-weight:600;font-size:12px;color:#9fb0e0;letter-spacing:.14em;text-transform:uppercase}
.tour-card-logo-img{height:30px;background:#fff;border-radius:8px;padding:7px 12px;box-shadow:0 4px 16px rgba(0,0,0,.3)}
.tour-card-title{font:700 24px/1.25 var(--db-font,system-ui,sans-serif);color:#fff;text-align:center;max-width:80%;min-height:30px}
.tour-card-caret{width:2px;height:22px;background:#6f8be0;display:none}

.tour-stage{position:absolute;inset:0}
.tour-scene{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:14px 14px 92px;opacity:0;pointer-events:none;transition:opacity .45s ease,transform .45s ease;transform:scale(.985)}
.tour-scene.on{opacity:1;pointer-events:auto;transform:scale(1)}

.tour-scene .sc{position:relative;width:min(620px,100%);border-radius:12px;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.45);opacity:1;pointer-events:auto}
.tour-scene .sc-pbp-shell,
.tour-scene .sc-pbp-rp{display:flex;background:#f5f7fa;border-radius:12px;overflow:hidden;width:680px;height:430px;transform:scale(.6);transform-origin:center center;flex:0 0 auto}

/* Guided cursor */
.tour-cursor{position:absolute;top:0;left:0;z-index:60;width:22px;height:22px;margin:-3px 0 0 -3px;opacity:0;pointer-events:none;transform:translate(40px,40px);transition:transform .85s cubic-bezier(.45,.05,.2,1),opacity .3s ease;filter:drop-shadow(0 3px 5px rgba(0,0,0,.45))}
.tour-cursor.on{opacity:1}
.tour-cursor svg{width:22px;height:22px;display:block}
.tour-cursor-ring{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;border:2px solid rgba(59,91,253,.9);opacity:0;transform:scale(.3)}
.tour-cursor.clicking .tour-cursor-ring{animation:liClick .36s ease-out}
@keyframes liClick{0%{opacity:.9;transform:scale(.3)}100%{opacity:0;transform:scale(2.6)}}

.li-blur{filter:blur(2.2px) saturate(.9);opacity:.5;transition:filter .4s ease,opacity .4s ease,transform .4s ease}
.li-focus{position:relative;z-index:6;transform:scale(1.015);transition:transform .4s ease,box-shadow .4s ease;box-shadow:0 0 0 2px rgba(59,91,253,.35),0 18px 40px rgba(0,0,0,.45);border-radius:12px}

/* Player */
.guide-anim.sim-tour .ga-viewport{height:424px}
.ga-player{position:absolute;inset-inline:0;bottom:0;z-index:210;padding:30px 13px 11px;background:linear-gradient(to top,rgba(3,8,24,.96) 0%,rgba(3,8,24,.66) 55%,rgba(3,8,24,0) 100%);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;user-select:none;opacity:.55;transition:opacity .25s ease}
.sim-tour .ga-viewport:hover .ga-player,
.ga-player.is-playing,
.ga-player:focus-within,
.sim-tour .ga-overlay.on ~ .ga-player{opacity:1}

.ga-pl-track{position:relative;height:5px;border-radius:4px;background:rgba(255,255,255,.26);cursor:pointer;touch-action:none;transition:height .12s ease}
.ga-pl-track:hover,.ga-player:focus-within .ga-pl-track{height:7px}
.ga-pl-fill{position:absolute;inset-block:0;inset-inline-start:0;width:0;background:#4f7cff;border-radius:4px}
.ga-pl-knob{position:absolute;top:50%;inset-inline-start:0;width:14px;height:14px;border-radius:50%;background:#fff;transform:translate(-50%,-50%);box-shadow:0 1px 5px rgba(0,0,0,.55);opacity:0;transition:opacity .12s ease}
[dir="rtl"] .ga-pl-knob{transform:translate(50%,-50%)}
.ga-pl-track:hover .ga-pl-knob,.ga-player:focus-within .ga-pl-knob{opacity:1}

.ga-pl-row{display:flex;align-items:center;gap:3px;margin-top:9px}
.ga-pl-btn{display:inline-flex;align-items:center;justify-content:center;height:32px;min-width:32px;padding:0 7px;border:0;border-radius:8px;background:transparent;color:#fff;cursor:pointer;font:600 12px/1 system-ui,sans-serif}
.ga-pl-btn:hover{background:rgba(255,255,255,.16)}
.ga-pl-btn:focus-visible{outline:2px solid #4f7cff;outline-offset:1px}
.ga-pl-btn svg{width:19px;height:19px;display:block}
.ga-pl-play svg{width:21px;height:21px}
.ga-pl-time{color:#fff;font:600 12.5px/1 system-ui,sans-serif;margin-inline-start:7px;letter-spacing:.3px;opacity:.96;font-variant-numeric:tabular-nums}
.ga-pl-spacer{flex:1}

.ga-pl-rate{position:relative}
.ga-pl-rate-btn{min-width:40px;font-weight:700}
.ga-pl-rate-menu{position:absolute;bottom:40px;inset-inline-end:0;display:none;flex-direction:column;min-width:104px;padding:5px;background:rgba(12,18,40,.98);border:1px solid rgba(255,255,255,.16);border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.5)}
.ga-pl-rate.open .ga-pl-rate-menu{display:flex}
.ga-pl-rate-opt{background:transparent;border:0;color:#dfe5fb;cursor:pointer;font:600 12.5px/1 system-ui,sans-serif;padding:9px 11px;text-align:start;border-radius:7px}
.ga-pl-rate-opt:hover{background:rgba(255,255,255,.12)}
.ga-pl-rate-opt.on{color:#fff;background:rgba(79,124,255,.4)}

.ga-buffer{position:absolute;inset:0;z-index:205;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:0 24px;text-align:center;background:rgba(8,14,34,.82);color:#dfe5fb;font:600 13px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;opacity:0;pointer-events:none;transition:opacity .2s ease}
.ga-buffer.on{opacity:1;pointer-events:auto}
.ga-buffer-spin{width:30px;height:30px;border-radius:50%;border:3px solid rgba(255,255,255,.25);border-top-color:#4f7cff;animation:gaBufSpin .8s linear infinite}
@keyframes gaBufSpin{to{transform:rotate(360deg)}}
.ga-buffer-txt{max-width:260px}

.ga-pl-info-wrap{position:relative;display:none;align-items:center;gap:6px}
.ga-pl-info-wrap.show{display:inline-flex}
.ga-pl-pill{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);color:#e7ecff;font:700 10.5px/1 system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.ga-pl-info-pop{position:absolute;bottom:40px;inset-inline-end:0;display:none;width:232px;padding:11px 13px;z-index:20;background:rgba(12,18,40,.98);border:1px solid rgba(255,255,255,.16);border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.5);color:#dfe5fb;font:500 12px/1.5 system-ui,sans-serif;text-align:start}
.ga-pl-info-wrap.open .ga-pl-info-pop{display:block}

@media (max-width:640px){
  .ga-viewport{height:280px}
  .tour-scene .sc-pbp-shell,
  .tour-scene .sc-pbp-rp{transform:scale(.44)}
}
