/* ==========================================================================
   PERSONAL / USER - File upload watch-first walkthrough
   Personal product shell + My Files (Upload File language picker) + English
   upload dropzone + file-selected metadata form + track-differences card.
   ========================================================================== */

/* === 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-pfu-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;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:60%;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}

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

.pfu-head{display:flex;align-items:center;gap:8px;position:relative}
.pfu-title{font-size:14px;font-weight:700;color:#1a1a1a}
.pfu-spacer{flex:1}
.pfu-upload{height:26px;display:flex;align-items:center;gap:5px;padding:0 12px;background:#fff;border:1px solid #d8deea;border-radius:7px;font-size:10.5px;font-weight:700;color:#1a3a8f;position:relative}
.pfu-upload i{width:12px;height:12px;background:#3a6ee0;border-radius:50%;display:block}
.pfu-act{height:26px;width:26px;border:1px solid #d8deea;border-radius:6px;display:flex;align-items:center;justify-content:center;background:#fff;color:#5a6477;font-size:12px}
.pfu-empty{background:#fff;border:1px solid #e3e6ed;border-radius:10px;padding:18px 22px;font-size:11px;color:#3a4252;font-weight:600;text-align:center}

/* Language picker dropdown under Upload File */
.pfu-lang-dd{position:absolute;top:30px;right:84px;width:140px;background:#fff;border-radius:9px;box-shadow:0 10px 28px rgba(20,30,60,.18);padding:5px 0;z-index:20}
.pfu-lang-opt{padding:8px 14px;font-size:11px;color:#1a1a1a;font-weight:600;cursor:default}
.pfu-lang-opt.hl{background:#eef3ff;color:#1f4ee6}

/* Upload breadcrumb + heading */
.pfu-crumb{font-size:9.5px;color:#7a8294;font-weight:600}
.pfu-crumb b{color:#1a1a1a}
.pfu-upload-title{font-size:13px;font-weight:700;color:#1a1a1a;display:flex;align-items:center;justify-content:space-between}
.pfu-words{font-size:9.5px;color:#5a6477;font-weight:600}

/* Dropzone */
.pfu-drop{flex:1;background:#fff;border:1.5px dashed #c8d2e6;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:14px;text-align:center}
.pfu-drop-ico{width:54px;height:46px;position:relative;margin-bottom:4px}
.pfu-drop-ico .pg{position:absolute;width:30px;height:38px;background:#eef3ff;border:1.5px solid #c8d2e6;border-radius:3px}
.pfu-drop-ico .pg1{top:0;left:2px;transform:rotate(-8deg)}
.pfu-drop-ico .pg2{top:2px;left:14px;transform:rotate(7deg)}
.pfu-drop-ico .plus{position:absolute;bottom:0;right:0;width:20px;height:20px;border-radius:50%;background:#1f4ee6;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}
.pfu-drop-rules{font-size:9px;color:#3a4252;line-height:1.7;font-weight:600}
.pfu-browse{color:#1f4ee6;font-size:11px;font-weight:700;margin-top:4px}

/* Selected-file metadata form */
.pfu-form-wrap{flex:1;display:flex;gap:10px;min-height:0}
.pfu-filelist{flex:0 0 150px;background:#fff;border:1px solid #e3e6ed;border-radius:10px;padding:9px;display:flex;flex-direction:column;gap:6px}
.pfu-filelist h5{font-size:9px;font-weight:700;color:#5a6477;text-transform:uppercase;letter-spacing:.3px;margin:0}
.pfu-fileitem{display:flex;align-items:center;gap:6px;background:#f7f9fc;border-radius:6px;padding:6px 8px;font-size:9px;color:#1a1a1a;font-weight:600}
.pfu-fileitem .doc{width:11px;height:13px;background:#dbe6ff;border-radius:2px;flex-shrink:0}
.pfu-fileitem span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pfu-fileitem .x{color:#9099a8;font-weight:700}
.pfu-fileitem.sel{background:#eef3ff;outline:1.5px solid #1f4ee6}
.pfu-form{flex:1;background:#fff;border:1px solid #e3e6ed;border-radius:10px;padding:11px 14px;display:flex;flex-direction:column;gap:8px}
.pfu-field-label{font-size:9.5px;font-weight:700;color:#1a1a1a}
.pfu-field-label .req{color:#c93434;margin-left:2px}
.pfu-input{height:24px;border:1px solid #d8deea;border-radius:6px;padding:0 9px;font-size:10px;color:#1a1a1a;display:flex;align-items:center;background:#fff;font-weight:500}
.pfu-input.sel-field{justify-content:space-between;color:#3a4252}
.pfu-input.sel-field::after{content:'';width:0;height:0;border:3px solid transparent;border-top-color:#5a6477;margin-top:2px}
.pfu-submit{background:#1f4ee6;color:#fff;padding:8px 0;border-radius:7px;font-size:11px;font-weight:700;text-align:center;margin-top:auto;box-shadow:0 3px 8px rgba(31,78,230,.25)}

/* Track-differences comparison card */
.pfu-tracks{flex:1;display:flex;flex-direction:column;gap:8px;justify-content:center}
.pfu-track{background:#fff;border:1px solid #e3e6ed;border-radius:10px;padding:11px 14px;display:flex;align-items:center;gap:10px}
.pfu-track-name{font-size:11px;font-weight:700;color:#1a1a1a;flex:0 0 120px}
.pfu-track-badges{display:flex;gap:6px;flex-wrap:wrap}
.pfu-badge{font-size:8.5px;font-weight:700;border-radius:999px;padding:3px 9px}
.pfu-badge.plag{background:#e3f6ec;color:#0f7a47}
.pfu-badge.ai{background:#ece7fb;color:#5a4ed1}
.pfu-badge.gram{background:#e6f1fb;color:#1a6bb8}
.pfu-badge.off{background:#f0f2f6;color:#9099a8;text-decoration:line-through}

/* === 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-pfu-shell{display:flex;background:#f5f7fa;border-radius:12px;overflow:hidden;width:700px;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:10px}
.tour-scene .pfu-lang-dd.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-pfu-shell{transform:scale(.42)}
}
