
.n3djd-app{--bg:#f6f4ef;--panel:#ffffff;--panel2:#fbfaf7;--line:#e5dfd5;--gold:#b8872d;--gold2:#d8b35f;--text:#171717;--muted:#68645d;--soft:#f1ede5;font-family:"Vazirmatn","IRANSansX","IRANSans","Tahoma",Arial,sans-serif!important;background:linear-gradient(180deg,#fff,#f8f5ef);color:var(--text)!important;border:1px solid var(--line);border-radius:26px;overflow:hidden;box-shadow:0 20px 60px rgba(63,50,25,.12);line-height:1.75;direction:rtl}
.n3djd-app *{box-sizing:border-box;font-family:inherit!important}.n3djd-app button,.n3djd-app input,.n3djd-app select,.n3djd-app textarea{font:inherit!important}.n3djd-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px 28px;background:#fff;border-bottom:1px solid var(--line)}.n3djd-head h2{margin:4px 0 6px!important;font-size:28px!important;line-height:1.45!important;color:#161616!important;font-weight:900!important}.n3djd-head p{margin:0!important;color:var(--muted)!important;font-size:14px!important}.n3djd-kicker{font-size:11px!important;letter-spacing:2px;color:#946d24!important;font-weight:800}.n3djd-status{white-space:nowrap;background:#f8f4e9;border:1px solid #e6d4ad;padding:9px 14px;border-radius:999px;color:#5b4b2d!important;font-size:12px}.n3djd-status span{display:inline-block;width:8px;height:8px;border-radius:50%;background:#39a66b;box-shadow:0 0 0 4px rgba(57,166,107,.12);margin-left:7px}.n3djd-layout{display:grid;grid-template-columns:minmax(340px,390px) minmax(0,1fr);min-height:780px;background:#f9f7f2}.n3djd-panel{background:#fff;padding:22px;overflow:auto;border-left:1px solid var(--line);color:#1b1b1b!important}.n3djd-section{padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid #ece7de}.n3djd-section h3{font-size:14px!important;margin:0 0 13px!important;color:#2a251c!important;font-weight:900!important}.n3djd-types{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.n3djd-types button,.n3djd-actions button,.n3djd-toolbar button,.n3djd-footer-actions button{appearance:none;border:1px solid #ddd5c8!important;background:#fff!important;color:#26231e!important;border-radius:12px!important;padding:10px 12px!important;cursor:pointer;transition:.18s ease;box-shadow:none!important;min-height:42px}.n3djd-types button:hover,.n3djd-types button.active{border-color:#c79b48!important;background:#fff8e8!important;color:#6c4c12!important;box-shadow:0 5px 16px rgba(184,135,45,.12)!important}.n3djd-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.n3djd-panel label{display:block;color:#514d46!important;font-size:12px!important;font-weight:700}.n3djd-panel select,.n3djd-panel input[type=text],.n3djd-panel input[type=tel],.n3djd-panel textarea{width:100%;margin-top:6px;background:#fff!important;color:#161616!important;border:1px solid #d8d1c6!important;border-radius:10px!important;padding:10px 11px!important;outline:none!important;box-shadow:0 1px 0 rgba(0,0,0,.02) inset!important}.n3djd-panel select:focus,.n3djd-panel input:focus,.n3djd-panel textarea:focus{border-color:#b8872d!important;box-shadow:0 0 0 3px rgba(184,135,45,.11)!important}.n3djd-range{margin:13px 0}.n3djd-range span{display:flex;justify-content:space-between;margin-bottom:7px;color:#403b34!important}.n3djd-range input{width:100%;accent-color:#b8872d}.n3djd-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.n3djd-actions #n3djd-save,.n3djd-footer-actions #n3djd-cart{background:linear-gradient(135deg,#aa7924,#e3bd66)!important;color:#19130a!important;border:0!important;font-weight:900!important}.n3djd-stage-wrap{position:relative;padding:20px;display:flex;flex-direction:column;gap:12px;min-width:0;background:linear-gradient(180deg,#f8f6f1,#f3efe7)}.n3djd-toolbar{display:flex;gap:8px;flex-wrap:wrap}.n3djd-toolbar button{padding:8px 12px!important;font-size:12px!important;background:#fff!important}.n3djd-toolbar button:hover{border-color:#b8872d!important;color:#7a5718!important}.n3djd-stage{height:640px;min-height:520px;position:relative;border-radius:22px;overflow:hidden;background:radial-gradient(circle at 50% 28%,#ffffff 0,#f4f0e8 50%,#e7e0d3 100%)!important;border:1px solid #ddd4c6;cursor:grab;box-shadow:inset 0 1px 0 #fff,0 12px 34px rgba(65,49,21,.08)}.n3djd-stage:active{cursor:grabbing}.n3djd-stage canvas{display:block;width:100%!important;height:100%!important;outline:0}.n3djd-loading{position:absolute;inset:0;display:grid;place-items:center;color:#6f6657;z-index:1}.n3djd-hint{text-align:center;color:#6e6961!important;font-size:12px!important}.n3djd-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.n3djd-summary>div{background:#fff;border:1px solid #e1dbd0;border-radius:14px;padding:13px}.n3djd-summary span{display:block;color:#746e64!important;font-size:11px!important;margin-bottom:5px}.n3djd-summary strong{font-size:15px!important;color:#1d1b18!important}.n3djd-footer-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:10px}.n3djd-footer-actions button{padding:13px!important;font-weight:800!important}.n3djd-toast{position:absolute;left:24px;bottom:24px;background:#fff;border:1px solid #d9c18e;color:#5d461a;padding:11px 15px;border-radius:12px;z-index:15;box-shadow:0 14px 35px rgba(0,0,0,.14)}
.n3djd-request-box{margin-top:20px;padding:22px;border:1px solid #dfc993;border-radius:18px;background:#fffdf8;box-shadow:0 12px 30px rgba(73,56,24,.08)}.n3djd-request-box[hidden]{display:none!important}.n3djd-request-box h3{margin:0 0 5px!important;color:#1e1b17!important}.n3djd-request-box p{color:#70695f!important;margin:0 0 18px!important}.n3djd-request-box label{display:block;margin-bottom:12px;color:#514d46!important}.n3djd-request-box input,.n3djd-request-box select,.n3djd-request-box textarea{width:100%;box-sizing:border-box;border:1px solid #d8d1c6!important;border-radius:12px!important;padding:11px 12px!important;background:#fff!important;color:#111!important;outline:none}.n3djd-request-box input:focus,.n3djd-request-box select:focus,.n3djd-request-box textarea:focus{border-color:#b8872d!important}.n3djd-submit-request{width:100%;border:0;border-radius:12px;padding:13px 16px;font-weight:900;cursor:pointer;background:linear-gradient(135deg,#a87522,#e2bc66);color:#18120a}
.n3djd-mesh-list{margin-top:10px;max-height:140px;overflow:auto;border:1px solid #e3ddd2;border-radius:12px;padding:8px;background:#faf8f4}.n3djd-mesh-list label{display:block;font-size:12px;padding:4px 2px;color:#45413a!important}.n3djd-gem-palette{display:grid;grid-template-columns:1fr 1fr;gap:8px}.n3djd-gem-palette button,.n3djd-secondary,.n3djd-draw-tools button{border:1px solid #d8c28f!important;background:#fffaf0!important;color:#6f501a!important;border-radius:10px!important;padding:9px!important;cursor:grab}.n3djd-small{font-size:11px!important;line-height:1.8!important;color:#756f67!important;margin:8px 0!important}#n3djd-draw{width:100%;height:auto;border:1px dashed #c9ac6e;border-radius:12px;touch-action:none;margin-top:9px;background:#fff}.n3djd-draw-tools{display:flex;gap:7px;margin-top:8px}.n3djd-draw-tools button{cursor:pointer;flex:1}.n3djd-ar-box{position:relative;margin:14px 0;border:1px solid #dac28e;background:#fff;border-radius:18px;padding:12px;overflow:hidden}.n3djd-ar-box #n3djd-ar-close{position:absolute;z-index:4;left:18px;top:18px;width:34px;height:34px;border-radius:50%;border:1px solid #ddd;background:#fff;color:#111;font-size:24px;cursor:pointer}.n3djd-ar-box p{font-size:12px;color:#625e58;margin:8px 4px 0}
@media(max-width:900px){.n3djd-layout{grid-template-columns:1fr}.n3djd-panel{border-left:0;border-bottom:1px solid var(--line)}.n3djd-stage{height:560px;min-height:460px}.n3djd-stage-wrap{order:-1}}
@media(max-width:600px){.n3djd-app{border-radius:18px}.n3djd-head{padding:18px;align-items:flex-start;flex-direction:column}.n3djd-head h2{font-size:21px!important}.n3djd-panel,.n3djd-stage-wrap{padding:12px}.n3djd-grid2{grid-template-columns:1fr 1fr}.n3djd-stage{height:460px;min-height:420px;border-radius:16px}.n3djd-summary{grid-template-columns:1fr}.n3djd-footer-actions{grid-template-columns:1fr}.n3djd-types{grid-template-columns:repeat(2,1fr)}.n3djd-toolbar{display:grid;grid-template-columns:repeat(2,1fr)}.n3djd-toolbar button{width:100%}}
/* v2.2 Pro Studio */
.n3djd-model-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.n3djd-model-card{appearance:none!important;border:1px solid #e2ddd3!important;background:#fff!important;border-radius:14px!important;padding:6px!important;cursor:pointer!important;display:flex!important;flex-direction:column!important;gap:5px!important;align-items:stretch!important;min-width:0!important;transition:.18s ease!important;box-shadow:0 3px 12px rgba(50,43,31,.04)!important;color:#39342c!important}
.n3djd-model-card:hover,.n3djd-model-card.active{border-color:#bd9141!important;box-shadow:0 8px 22px rgba(142,101,28,.13)!important;transform:translateY(-1px)}
.n3djd-model-card span:last-child{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px!important;font-weight:800!important;text-align:center!important}
.n3djd-thumb-image,.n3djd-thumb-fallback{height:72px;border-radius:10px;display:grid;place-items:center;background-position:center;background-size:cover;background-repeat:no-repeat}
.n3djd-thumb-fallback{background:radial-gradient(circle at 45% 30%,#fff 0,#f5ead1 38%,#d7b367 100%);font-family:Arial,sans-serif!important;font-size:20px!important;font-weight:900!important;color:#6e4a0d!important;letter-spacing:1px}
.n3djd-toolbar button.active{background:linear-gradient(135deg,#fff7df,#f0d79e)!important;border-color:#bd9141!important;color:#6b4a12!important;box-shadow:0 5px 18px rgba(161,116,35,.16)!important}
.n3djd-stage{background:radial-gradient(ellipse at 50% 34%,#ffffff 0%,#fbfaf7 31%,#f2eee6 68%,#e5ded2 100%)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -30px 70px rgba(120,93,45,.035),0 20px 50px rgba(65,49,21,.09)}
.n3djd-stage:before{content:"";position:absolute;z-index:0;pointer-events:none;width:62%;height:17%;left:19%;bottom:9%;border-radius:50%;background:radial-gradient(ellipse,rgba(56,44,26,.10) 0%,rgba(56,44,26,.035) 46%,rgba(56,44,26,0) 73%);filter:blur(13px)}
.n3djd-stage canvas{position:relative;z-index:1}
.n3djd-studio-badge{position:absolute;z-index:3;left:16px;top:15px;font:700 9px/1.2 Arial,sans-serif!important;letter-spacing:1.6px;color:#8a7550;background:rgba(255,255,255,.76);border:1px solid rgba(185,163,122,.35);backdrop-filter:blur(8px);padding:7px 9px;border-radius:999px;pointer-events:none}
.n3djd-loading{z-index:2!important}
@media(max-width:600px){.n3djd-model-thumbs{grid-template-columns:repeat(3,minmax(86px,1fr));overflow-x:auto;padding-bottom:4px}.n3djd-model-card{min-width:86px!important}.n3djd-thumb-image,.n3djd-thumb-fallback{height:62px}}

.n3djd-gem-click-row{display:grid;grid-template-columns:110px 1fr;gap:8px;align-items:end;margin-top:10px}.n3djd-gem-click-row input[type=number]{width:100%;margin-top:6px;background:#fff!important;color:#161616!important;border:1px solid #d8d1c6!important;border-radius:10px!important;padding:10px!important}.n3djd-gem-progress{margin:9px 0 0;padding:9px 10px;border-radius:10px;background:#f8f4e9;border:1px solid #ead8ae;color:#6f501a;font-size:11px;line-height:1.7}.n3djd-gem-palette button.active,#n3djd-click-gem-mode.active{background:#f0dba8!important;border-color:#b8872d!important;box-shadow:0 0 0 3px rgba(184,135,45,.12)!important}.n3djd-stage.n3djd-place-mode,.n3djd-stage.n3djd-place-mode canvas{cursor:crosshair!important}@media(max-width:600px){.n3djd-gem-click-row{grid-template-columns:1fr}}

/* === v2.4 Luxury product selector === */
.n3djd-product-section{padding-bottom:26px!important}
.n3djd-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}
.n3djd-section-title>div{display:flex;align-items:center;gap:10px}
.n3djd-section-title h3{margin:0!important;font-size:15px!important;letter-spacing:-.2px}
.n3djd-section-title>small{font-size:10.5px;color:#948b7d!important;line-height:1.6;text-align:left}
.n3djd-step{display:inline-grid;place-items:center;width:31px;height:31px;border-radius:11px;background:linear-gradient(145deg,#fffaf0,#efe1bd);border:1px solid #e7d7ae;color:#8a611f;font-size:10px;font-weight:900;box-shadow:0 7px 20px rgba(111,79,24,.08),inset 0 1px 0 #fff}
.n3djd-types{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.n3djd-types button{position:relative!important;overflow:hidden!important;display:grid!important;grid-template-columns:68px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;min-height:92px!important;padding:10px 12px!important;text-align:right!important;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(250,247,240,.98))!important;border:1px solid #e7e0d4!important;border-radius:18px!important;box-shadow:0 8px 26px rgba(60,43,16,.045),inset 0 1px 0 rgba(255,255,255,.95)!important;isolation:isolate;transform:translateY(0);transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease,background .22s ease!important}
.n3djd-types button:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 16% 7%,rgba(222,185,104,.13),transparent 36%),linear-gradient(110deg,transparent 0 36%,rgba(255,255,255,.5) 47%,transparent 57% 100%);opacity:.75;pointer-events:none;z-index:-1}
.n3djd-types button:hover{transform:translateY(-2px)!important;border-color:#d3b36b!important;box-shadow:0 13px 30px rgba(83,57,17,.10),0 1px 0 #fff inset!important;background:linear-gradient(145deg,#fff,#fffaf0)!important}
.n3djd-types button.active{transform:translateY(-1px)!important;border-color:#c69a43!important;background:linear-gradient(145deg,#fffdf8,#fbf0d1)!important;box-shadow:0 13px 32px rgba(154,105,28,.14),0 0 0 2px rgba(199,155,72,.08),inset 0 1px 0 #fff!important;color:#38280f!important}
.n3djd-type-icon{position:relative;display:grid;place-items:center;width:68px;height:68px;border-radius:16px;background:radial-gradient(circle at 50% 28%,#fff 0,#fbf8f2 55%,#eee7db 100%);border:1px solid #eee5d7;box-shadow:inset 0 1px 0 #fff,0 8px 18px rgba(80,55,17,.06)}
.n3djd-type-icon:after{content:"";position:absolute;left:15%;right:15%;bottom:7px;height:7px;border-radius:50%;background:rgba(79,53,15,.11);filter:blur(5px);z-index:0}
.n3djd-type-icon svg{position:relative;z-index:1;width:62px;height:48px;filter:drop-shadow(0 4px 4px rgba(104,70,16,.16)) drop-shadow(0 1px 0 #fff)}
.n3djd-type-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.n3djd-type-copy strong{font-size:14px!important;color:#261d11!important;font-weight:900!important;line-height:1.3!important}
.n3djd-type-copy small{display:block;font-size:10.5px!important;color:#8c8274!important;font-weight:600!important;white-space:normal;line-height:1.45!important}
.n3djd-type-check{position:absolute;top:9px;left:9px;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#a8751f,#d8b25a);color:#fff;font-size:11px;font-weight:900;box-shadow:0 4px 12px rgba(143,95,19,.22);opacity:0;transform:scale(.7);transition:.2s ease}
.n3djd-types button.active .n3djd-type-check{opacity:1;transform:scale(1)}
.n3djd-type-shine{position:absolute;width:70px;height:170%;top:-30%;right:-95px;transform:rotate(20deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);transition:right .55s ease;pointer-events:none}
.n3djd-types button:hover .n3djd-type-shine{right:120%}
@media(max-width:390px){.n3djd-types{grid-template-columns:1fr!important}.n3djd-types button{min-height:86px!important}.n3djd-section-title{align-items:flex-start;flex-direction:column}.n3djd-section-title>small{text-align:right}}
