/* ===== TRY ON BUTTON ===== */
.wto-btn-wrap { margin: 14px 0; }
.wto-trigger-btn {
    display:inline-flex; align-items:center; gap:8px;
    background:linear-gradient(135deg,#7c3aed,#db2777);
    color:#fff; font-size:15px; font-weight:600;
    padding:13px 28px; border:none; border-radius:50px;
    cursor:pointer; width:100%; max-width:280px;
    justify-content:center;
    box-shadow:0 4px 15px rgba(124,58,237,.35);
    transition:all .3s ease; font-family:'Outfit',sans-serif;
}
.wto-trigger-btn:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(219,39,119,.4); }
.wto-trigger-btn svg { width:18px; height:18px; }

/* ===== MODAL ===== */
#wto-modal {
    position:fixed; top:0; left:0; width:100%; height:100%;
    z-index:9999999; display:flex; align-items:center;
    justify-content:center; padding:16px; box-sizing:border-box;
    font-family:'Outfit',sans-serif;
}
#wto-backdrop {
    position:absolute; inset:0;
    background:rgba(5,4,15,.88);
    backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
}
#wto-box {
    position:relative; z-index:10;
    background:rgba(20,16,40,.75);
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px; width:100%; max-width:960px;
    max-height:92vh; overflow-y:auto;
    box-shadow:0 30px 60px rgba(0,0,0,.5);
    backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
    transform:scale(.95); opacity:0;
    transition:all .35s cubic-bezier(.16,1,.3,1);
}
#wto-modal.open #wto-box { transform:scale(1); opacity:1; }
#wto-close {
    position:absolute; top:14px; right:16px;
    background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
    color:#fff; width:34px; height:34px; border-radius:50%;
    font-size:22px; line-height:1; cursor:pointer; z-index:20;
    display:flex; align-items:center; justify-content:center;
    transition:all .25s ease;
}
#wto-close:hover { background:rgba(219,39,119,.2); transform:rotate(90deg); }

/* ===== GRID ===== */
#wto-grid { display:grid; grid-template-columns:1.1fr .9fr; min-height:560px; }

/* LEFT */
#wto-left {
    padding:26px; display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    border-right:1px solid rgba(255,255,255,.05);
}
#wto-canvas-wrap {
    position:relative; width:100%; max-width:400px;
    aspect-ratio:1; border-radius:18px; overflow:hidden;
    background:#0d0a1e;
    border:1px solid rgba(255,255,255,.06);
    box-shadow:inset 0 0 20px rgba(0,0,0,.6);
}
#wto-canvas { width:100%; height:100%; cursor:grab; position:relative; z-index:2; }
#wto-canvas:active { cursor:grabbing; }
#wto-video {
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; transform:scaleX(-1); z-index:1; display:none;
}
#wto-guide {
    position:absolute; inset:0; z-index:3; display:none;
    flex-direction:column; align-items:center; justify-content:center;
    pointer-events:none; animation:wto-pulse 2.5s infinite ease-in-out;
}
#wto-guide svg { width:75%; height:75%; }
#wto-guide span {
    position:absolute; bottom:12px; font-size:11px; color:rgba(255,255,255,.65);
    background:rgba(10,8,20,.75); padding:3px 12px; border-radius:20px;
    border:1px solid rgba(255,255,255,.08);
}
#wto-loader {
    position:absolute; inset:0; background:rgba(10,8,20,.92); z-index:5;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.wto-spin {
    width:38px; height:38px; border-radius:50%;
    border:3px solid rgba(255,255,255,.05);
    border-top-color:#7c3aed; border-bottom-color:#db2777;
    animation:wto-spin 1s linear infinite; margin-bottom:12px;
}
#wto-loader p { margin:0; font-size:13px; color:rgba(255,255,255,.8); }
#wto-snap-bar { width:100%; max-width:400px; display:flex; justify-content:center; margin-top:12px; }

/* RIGHT */
#wto-right { padding:26px; display:flex; flex-direction:column; overflow-y:auto; color:#fff; }
#wto-badge {
    background:rgba(124,58,237,.12); border:1px solid rgba(124,58,237,.3);
    color:#a78bfa; padding:3px 10px; font-size:10px; font-weight:700;
    border-radius:50px; letter-spacing:1px; display:inline-block; margin-bottom:6px;
}
#wto-title {
    font-size:22px; font-weight:700; margin:0 0 3px;
    background:linear-gradient(to right,#fff,#a78bfa);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
#wto-subtitle { font-size:12px; color:rgba(255,255,255,.5); margin:0 0 16px; }

/* TABS */
#wto-tabs { display:grid; grid-template-columns:1fr 1fr 1fr; gap:3px;
    background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06);
    padding:4px; border-radius:12px; margin-bottom:14px; }
.wto-tab {
    background:none; border:none; color:rgba(255,255,255,.6);
    font-family:'Outfit',sans-serif; font-size:12px; font-weight:500;
    padding:9px 6px; border-radius:8px; cursor:pointer; transition:all .2s;
}
.wto-tab.active { background:rgba(255,255,255,.08); color:#fff; }

/* PANELS */
.wto-panel { display:none; animation:wto-fade .3s ease; }
.wto-panel.active { display:block; }

/* Model grid */
#wto-models { display:flex; gap:10px; }
.wto-model-item {
    flex:1; text-align:center; padding:8px 4px;
    background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.05);
    border-radius:12px; cursor:pointer; transition:all .2s;
}
.wto-model-item:hover { background:rgba(255,255,255,.07); }
.wto-model-item.active { background:rgba(124,58,237,.1); border-color:rgba(124,58,237,.4); }
.wto-mthumb {
    width:46px; height:46px; border-radius:50%; object-fit:cover;
    border:2px solid rgba(255,255,255,.08); display:block; margin:0 auto 5px;
    background:#110e20;
}
.wto-model-item.active .wto-mthumb { border-color:#a78bfa; }
.wto-model-item span { font-size:10px; font-weight:500; color:rgba(255,255,255,.7); }

/* Camera & Upload panels */
#wto-dropzone {
    border:2px dashed rgba(255,255,255,.12); background:rgba(255,255,255,.02);
    border-radius:14px; padding:18px; text-align:center; cursor:pointer;
    transition:all .3s;
}
#wto-dropzone:hover, #wto-dropzone.dragover { border-color:#db2777; }
#wto-dropzone p { margin:0 0 5px; font-size:12px; }

/* CONTROLS */
#wto-controls { display:flex; flex-direction:column; gap:10px; }
.wto-ctrl-row {
    display:flex; align-items:center; gap:8px; font-size:11px;
    color:rgba(255,255,255,.65);
}
.wto-ctrl-row span:first-child { min-width:56px; }
.wto-ctrl-row input[type=range] {
    flex:1; -webkit-appearance:none; height:4px; border-radius:10px;
    background:rgba(255,255,255,.1); outline:none;
}
.wto-ctrl-row input[type=range]::-webkit-slider-thumb {
    -webkit-appearance:none; width:14px; height:14px; border-radius:50%;
    background:linear-gradient(135deg,#7c3aed,#db2777);
    cursor:pointer; box-shadow:0 0 6px rgba(124,58,237,.5);
}
.wto-ctrl-row span:last-child { min-width:36px; text-align:right; color:#a78bfa; font-weight:600; }

/* BUTTONS */
.wto-btn {
    display:inline-flex; align-items:center; justify-content:center; gap:6px;
    border-radius:10px; font-family:'Outfit',sans-serif; font-weight:600;
    cursor:pointer; transition:all .2s; border:none; font-size:13px; padding:10px 18px;
}
.wto-btn-primary {
    background:linear-gradient(135deg,#7c3aed,#db2777);
    color:#fff; box-shadow:0 4px 12px rgba(124,58,237,.25);
}
.wto-btn-primary:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(219,39,119,.35); }
.wto-btn-secondary {
    background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08);
    color:rgba(255,255,255,.9);
}
.wto-btn-secondary:hover { background:rgba(255,255,255,.12); }
.wto-btn-outline {
    background:transparent; border:1.5px solid #a78bfa; color:#a78bfa; width:100%;
    animation:wto-glow 2s infinite;
}
.wto-btn-outline:hover { background:rgba(167,139,250,.08); }

/* ANIMATIONS */
@keyframes wto-spin { to { transform:rotate(360deg); } }
@keyframes wto-pulse { 0%,100%{opacity:.5} 50%{opacity:.95} }
@keyframes wto-fade { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:translateY(0)} }
@keyframes wto-glow { 0%{box-shadow:0 0 0 0 rgba(167,139,250,.4)} 70%{box-shadow:0 0 0 8px rgba(167,139,250,0)} 100%{box-shadow:0 0 0 0 rgba(167,139,250,0)} }

/* RESPONSIVE */
@media(max-width:700px){
    #wto-grid { grid-template-columns:1fr; }
    #wto-left { border-right:none; border-bottom:1px solid rgba(255,255,255,.05); padding:16px; }
    #wto-right { padding:16px; }
    #wto-canvas-wrap { max-width:300px; }
}
