/* ==========================================================================
   PERSONAL / USER - Security watch-first walkthrough
   Personal product shell + avatar dropdown (Security) + Security page with
   Multi-Factor Authentication / Change Password tabs (verified on UAT).
   ========================================================================== */

/* === BASE CONTAINER & VIEWPORT === */
.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-psc-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;position:relative}
.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}
.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:40%;background:#3a6ee0;border-radius:2px}
.psh-buy{background:#1f4ee6;color:#fff;padding:6px 12px;border-radius:7px;font-size:11px;font-weight:700;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}

.psh-body{flex:1;padding:14px 18px;display:flex;flex-direction:column;gap:10px;overflow:hidden}
.psc-files-title{font-size:14px;font-weight:700;color:#1a1a1a}
.psc-empty{background:#fff;border:1px solid #e3e6ed;border-radius:10px;padding:18px 22px;font-size:11px;color:#3a4252;font-weight:600;text-align:center}

/* Avatar dropdown */
.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}
.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-item.pdd-sec-target{background:#f2effc;border-radius:6px}

/* Security page: MFA / Change Password tabs */
.psc-tabs{display:flex;gap:0;border-bottom:1px solid #e3e6ed;background:#fff;border-radius:8px 8px 0 0;padding:0 10px}
.psc-tab{padding:10px 20px;font-size:11px;font-weight:700;color:#5a6477;border-bottom:2px solid transparent;cursor:default}
.psc-tab.act{color:#1f4ee6;border-bottom-color:#1f4ee6}
.psc-panel{flex:1;background:#fff;border:1px solid #e3e6ed;border-top:none;border-radius:0 0 10px 10px;padding:16px 18px;display:flex;flex-direction:column;gap:10px;position:relative}

/* MFA tab */
.psc-mfa-desc{font-size:10px;color:#3a4252;line-height:1.6;font-weight:600}
.psc-mfa-note{font-size:9.5px;color:#5a6477;line-height:1.5;font-weight:600}
.psc-mfa-row{display:flex;align-items:center;gap:14px;margin-top:4px}
.psc-mfa-label{font-size:12px;font-weight:700;color:#1a1a1a}
.psc-tog{width:34px;height:18px;background:#cfd3dc;border-radius:999px;position:relative;flex-shrink:0;transition:background .25s ease}
.psc-tog::after{content:'';position:absolute;top:2px;left:2px;width:14px;height:14px;background:#fff;border-radius:50%;transition:left .25s ease;box-shadow:0 1px 3px rgba(20,30,60,.25)}
.psc-tog.on{background:#1f4ee6}
.psc-tog.on::after{left:18px}
.psc-tog-state{font-size:11px;font-weight:700;color:#1a1a1a}
.psc-mfa-hint{font-size:9.5px;color:#5a6477;font-weight:700}

/* MFA deactivate confirmation */
.psc-confirm{position:absolute;inset:0;background:rgba(20,30,60,.4);display:flex;align-items:center;justify-content:center;z-index:20;border-radius:0 0 10px 10px}
.psc-confirm-card{width:320px;max-width:90%;background:#fff;border-radius:14px;padding:20px;display:flex;flex-direction:column;align-items:center;gap:12px;box-shadow:0 18px 48px rgba(20,30,60,.3)}
.psc-confirm-ico{width:42px;height:42px;border-radius:12px;background:#5a4ed1;color:#fff;display:flex;align-items:center;justify-content:center;font-size:19px}
.psc-confirm-msg{font-size:11px;color:#1a1a1a;font-weight:600;text-align:center;line-height:1.5}
.psc-confirm-btns{display:flex;gap:12px}
.psc-confirm-no{flex:0 0 88px;height:30px;border:1px solid #c8cee0;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#1f4ee6;background:#fff}
.psc-confirm-yes{flex:0 0 88px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;background:#1f4ee6;box-shadow:0 3px 8px rgba(31,78,230,.25)}

/* Change Password tab */
.psc-field{display:flex;flex-direction:column;gap:5px;max-width:340px}
.psc-label{font-size:11px;font-weight:700;color:#1a1a1a;display:flex;align-items:center;justify-content:space-between}
.psc-req{font-size:8px;color:#c93434;border:1px solid #f5c2c2;border-radius:999px;padding:1px 7px;font-weight:700}
.psc-input{height:28px;border:1px solid #c8cee0;border-radius:7px;padding:0 10px;font-size:11px;color:#1a1a1a;background:#fff;display:flex;align-items:center;justify-content:space-between}
.psc-input i{color:#9099a8;font-size:11px;font-style:normal}
.psc-submit{max-width:340px;background:#1f4ee6;color:#fff;padding:9px 0;border-radius:8px;font-size:12px;font-weight:700;text-align:center;margin-top:4px;box-shadow:0 3px 8px rgba(31,78,230,.25)}

/* === Watch-first chrome (shared) === */
.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-psc-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}

.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:8px}
.tour-scene .pdd.li-focus{position:absolute;transform:none}
.tour-scene .psc-confirm.li-focus{position:absolute;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-psc-shell{transform:scale(.44)}
}
