/* ==========================================================================
   PERSONAL / USER - Account info watch-first walkthrough
   Reuses the canonical similarity-detection watch-first player chrome.
   Defines the Personal product shell (sidebar / topbar / dropdown) and
   the Account info / Billing / Delete-popup scenes used by the tour.
   ========================================================================== */

/* === 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}

/* Play poster + reset float (canonical) */
.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 (sidebar + topbar + my-files canvas) ===
   Renders a full 660x410 mock that the tour scales down to fit the viewport.
   Class prefix `psh-` so the same shell can be reused for other personal
   articles (buy-pages, my-files, file-upload, etc.). */
.sc-pai-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;letter-spacing:.2px}
.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)}
.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;position:relative}
.psh-av .av-chev{position:absolute;right:-12px;top:50%;transform:translateY(-50%);font-size:9px;color:#5a6477}

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

/* My Files page card (default landing) */
.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-act.icon-only{padding:0;width:24px;justify-content:center}
.pmf-act.icon-only i{width:12px;height:12px;background:#5a6477;border-radius:50%}
.pmf-card{background:#fff;border:1px solid #e3e6ed;border-radius:10px;padding:18px 22px;font-size:12px;color:#3a4252;font-weight:600;text-align:center;box-shadow:0 1px 0 rgba(20,30,60,.02)}

/* === Profile avatar dropdown (overlay anchored to the avatar) === */
.pdd{position:absolute;top:54px;right:14px;width:230px;background:#fff;border-radius:12px;box-shadow:0 12px 36px rgba(20,30,60,.18);padding:10px 0;z-index:25;opacity:0;transform:translateY(-6px) scale(.97);pointer-events:none;transition:opacity .25s ease,transform .25s ease}
.pdd.on{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
.pdd-head{display:flex;align-items:center;gap:9px;padding:6px 14px 10px;border-bottom:1px solid #eef0f3}
.pdd-head-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}
.pdd-head-name{font-size:11px;font-weight:700;color:#1a1a1a}
.pdd-head-email{font-size:9px;color:#7a8294}
.pdd-item{display:flex;align-items:center;gap:9px;padding:8px 14px;font-size:11px;color:#1a1a1a;cursor:default}
.pdd-item-ico{width:24px;height:24px;border-radius:7px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:11px;font-weight:700;color:#fff}
.pdd-item-ico.acct{background:#3a6ee0}
.pdd-item-ico.tx{background:#3aafe0}
.pdd-item-ico.help{background:#37c08b}
.pdd-item-ico.sec{background:#5a4ed1}
.pdd-item-title{font-size:11px;font-weight:700;color:#1a1a1a;line-height:1.2}
.pdd-item-sub{font-size:8.5px;color:#7a8294;line-height:1.3}
.pdd-v{font-size:9px;color:#9099a8;text-align:right;padding:4px 14px 0;font-weight:700}

/* === Account info page (Account Information tab) === */
.sc-pai-acct{display:flex}
.pai-tabs{display:flex;border-bottom:1px solid #e3e6ed;padding:0 12px;background:#fff;border-radius:8px 8px 0 0;margin-bottom:0}
.pai-tab{padding:11px 22px;font-size:11px;font-weight:700;color:#5a6477;cursor:default;border-bottom:2px solid transparent}
.pai-tab.act{color:#1f4ee6;border-bottom-color:#1f4ee6}
.pai-form{background:#fff;border-radius:10px;padding:14px 18px;position:relative;box-shadow:0 1px 0 rgba(20,30,60,.03)}
.pai-edit{position:absolute;top:10px;right:10px;width:22px;height:22px;border-radius:50%;border:1px solid #d8deea;background:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;color:#5a6477}
.pai-row{display:flex;align-items:center;gap:14px;padding:7px 6px;border-bottom:1px solid #f0f2f6}
.pai-row:last-child{border-bottom:none}
.pai-key{width:38%;font-size:11px;font-weight:700;color:#1a1a1a}
.pai-val{flex:1;font-size:11px;color:#3a4252}
.pai-val.muted{color:#9099a8}
.pai-val.mfa-no{color:#5a6477;font-weight:600}

.pai-lang{background:#fff;border-radius:10px;padding:12px 18px;margin-top:10px}
.pai-lang h4{font-size:11px;font-weight:700;color:#1a1a1a;margin:0 0 4px}
.pai-lang p{font-size:9.5px;color:#7a8294;margin:0 0 8px}
.pai-lang-sel{height:24px;border:1px solid #d8deea;border-radius:5px;padding:0 22px 0 9px;font-size:10px;color:#1a1a1a;background:#fff;display:inline-flex;align-items:center;position:relative;font-weight:600}
.pai-lang-sel::after{content:'';position:absolute;right:8px;top:50%;width:0;height:0;border:3px solid transparent;border-top-color:#5a6477;margin-top:-1px}

.pai-danger{background:#fff;border-radius:10px;padding:14px 18px;margin-top:10px}
.pai-danger h4{font-size:11px;font-weight:700;color:#1a1a1a;margin:0 0 6px}
.pai-danger p{font-size:9.5px;color:#7a8294;margin:0 0 10px;line-height:1.5}
.pai-del-btn{display:inline-flex;align-items:center;gap:5px;background:#c93434;color:#fff;border-radius:6px;padding:7px 12px;font-size:10.5px;font-weight:700;box-shadow:0 2px 6px rgba(201,52,52,.25)}
.pai-del-btn i{width:10px;height:10px;border:1px solid #fff;border-radius:1px;display:block;position:relative}
.pai-del-btn i::after{content:'';position:absolute;top:-3px;left:1px;right:1px;height:2px;background:#fff;border-radius:1px}

/* === Billing tab === */
.pai-tabs .pai-tab.act-bill{color:#1f4ee6;border-bottom-color:#1f4ee6}
.pai-tabs .pai-tab.muted{color:#5a6477;border-bottom-color:transparent}
.pai-req{color:#c93434;margin-left:2px}

/* === Delete confirmation popup overlay === */
.pdp{position:absolute;inset:0;background:rgba(20,30,60,.45);display:flex;align-items:center;justify-content:center;border-radius:12px;z-index:30}
.pdp-card{width:440px;max-width:90%;background:#fff;border-radius:14px;padding:18px 22px 22px;position:relative;box-shadow:0 18px 48px rgba(20,30,60,.32)}
.pdp-close{position:absolute;top:10px;right:12px;width:18px;height:18px;color:#5a6477;font-size:14px;display:flex;align-items:center;justify-content:center;font-weight:700}
.pdp-title{display:flex;align-items:center;justify-content:center;gap:6px;font-size:14px;font-weight:700;color:#e07a1a;margin-bottom:14px}
.pdp-title i{font-size:14px}
.pdp-list{background:#f5f7fa;border-radius:8px;padding:11px 14px;font-size:10px;color:#3a4252;line-height:1.6;margin-bottom:12px}
.pdp-list b{font-weight:700;color:#1a1a1a}
.pdp-prompt{font-size:10.5px;color:#3a4252;text-align:center;margin-bottom:10px;line-height:1.45}
.pdp-prompt em{color:#7a8294;font-style:italic}
.pdp-input{height:30px;border:1px solid #c8cee0;border-radius:6px;display:flex;align-items:center;padding:0 11px;font-size:11px;color:#1f4ee6;font-weight:600;background:#fff;margin-bottom:14px}
.pdp-btns{display:flex;gap:12px;justify-content:flex-start}
.pdp-no{flex:0 0 110px;height:28px;border:1px solid #1f4ee6;border-radius:7px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;font-weight:700;color:#1f4ee6;background:#fff}
.pdp-yes{flex:0 0 110px;height:28px;border-radius:7px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;font-weight:700;color:#fff;background:#9099a8}

/* ============================================================
   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)}

/* Reused full-page mocks: render at natural size, scale down to fit. */
.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-pai-shell{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)}}

/* Blur / focus spotlight */
.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}

/* The delete popup is absolutely positioned inside the scene; the focus
   spotlight must re-pin it (per the absolute-panel gotcha in memory). */
.tour-scene .pdp.li-focus{position:absolute;transform:none}
.tour-scene .pdp-card.li-focus{transform:none}

/* 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-pai-shell{transform:scale(.44)}
}
