    /* ================================================================ */
    /* MODALS */
    /* ================================================================ */
    .modal-overlay { display: flex; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; background: rgba(20,20,28,0.55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.28s cubic-bezier(.2,.8,.2,1), visibility 0.28s; }
    .modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
    .modal-card { background: #fff; border-radius: 18px; padding: 24px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: 0 24px 70px rgba(0,0,0,0.35); direction: rtl; font-size: 13px; color: #333; line-height: 1.8; transform: scale(0.92) translateY(10px); opacity: 0; transition: transform 0.32s cubic-bezier(.2,.8,.2,1), opacity 0.28s ease; border-radius: 20px; }
    .modal-overlay.open .modal-card { transform: scale(1) translateY(0); opacity: 1; }
    .modal-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #1a1a1a; }
    .modal-card h4 { font-size: 13px; font-weight: 600; margin-top: 10px; color: #333; }
    .modal-card p, .modal-card li { font-size: 12px; color: #555; }
    .modal-card ul { padding-right: 18px; margin: 4px 0; }
    .modal-close { margin-top: 14px; width: 100%; padding: 8px; border: none; border-radius: 8px; background: rgba(0,0,0,0.07); font-size: 12px; font-weight: 600; cursor: pointer; color: #444; }
    .modal-close:hover { background: rgba(0,0,0,0.12); }
    
    .library-modal { max-width: 1450px; width: 95%; max-height: 92vh; padding: 20px; border-radius: 20px; min-width: 1300px; }
    .library-modal .modal-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 2px solid #e8e8e8; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; position: relative; }
    .library-modal .modal-header h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; }
    .library-modal .modal-header .header-center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; }
    .library-modal .modal-header .cube-btn { padding: 8px 18px; border: none; border-radius: 20px; background: rgba(100,120,255,0.15); color: #667eea; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 7px; box-shadow: 0 2px 12px rgba(100,120,255,0.15); font-family: inherit; white-space:nowrap; }
    .library-modal .modal-header .cube-btn:hover { background: rgba(100,120,255,0.25); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(100,120,255,0.25); }
    .library-modal .modal-header .header-left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
    .library-modal .modal-close-btn { background: none; border: none; font-size: 22px; color: #999; cursor: pointer; padding: 0 6px; transition: color 0.2s; }
    .library-modal .modal-close-btn:hover { color: #333; }
    .library-modal .breadcrumb-lib { color: #888; font-size: 0.8em; background: rgba(0,0,0,0.04); padding: 4px 14px; border-radius: 20px; direction: rtl; text-align: right; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; justify-content: flex-start; }
    .library-modal .breadcrumb-lib .back-btn-inline { padding: 6px 18px; border: none; border-radius: 20px; background: rgba(100,120,255,0.15); color: #667eea; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; font-family: inherit; min-height: 38px; }
    .library-modal .breadcrumb-lib .back-btn-inline:hover { background: rgba(100,120,255,0.25); transform: scale(1.03); }
    .library-modal .breadcrumb-lib .back-btn-inline.hidden { display: none; }
    .library-modal .breadcrumb-lib span { color: #667eea; font-weight: 500; }
    
    .library-search-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
    .library-search-row .search-input { flex: 1; min-width: 150px; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.08); background: rgba(0,0,0,0.03); font-size: 13px; outline: none; transition: all 0.2s; }
    .library-search-row .search-input:focus { border-color: #667eea; background: #fff; }
    .library-search-row .search-input::placeholder { color: #aaa; }
    .library-search-row .filter-fav-btn { padding: 6px 16px; border: none; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; background: rgba(0,0,0,0.04); color: #666; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
    .library-search-row .filter-fav-btn:hover { background: rgba(0,0,0,0.08); }
    .library-search-row .filter-fav-btn.active { background: rgba(255,100,150,0.15); color: #e74c7a; }
    .library-search-row .filter-fav-btn .fav-icon { font-size: 16px; }
    
    .library-modal .model-grid-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; max-height: 58vh; overflow-y: auto; padding: 4px 2px; }
    .library-modal .model-grid-lib::-webkit-scrollbar { width: 4px; }
    .library-modal .model-grid-lib::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }
    
    .library-modal .model-card { background: rgba(0,0,0,0.02); border-radius: 12px; border: 1px solid rgba(0,0,0,0.06); padding: 12px; text-align: center; transition: all 0.2s; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
    .library-modal .model-card:hover { background: rgba(0,0,0,0.05); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
    .library-modal .model-card .thumb-wrapper { width: 100%; aspect-ratio: 1/1; background: #f0f0f0; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,0.04); position: relative; }
    .library-modal .model-card .thumb-wrapper img { width: 100%; height: 100%; object-fit: cover; }
    .library-modal .model-card .thumb-wrapper .no-thumb { font-size: 32px; color: #ccc; }
    
    .library-modal .model-card .fav-btn { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 20px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.9); opacity: 0.85; z-index: 5; padding: 0; line-height: 1; font-family: inherit; }
    .library-modal .model-card .fav-btn:hover { opacity: 1; transform: scale(1.2); background: rgba(0,0,0,0.7); }
    .library-modal .model-card .fav-btn.faved { opacity: 1; color: #ff0000; }
    .library-modal .model-card .fav-btn .fav-icon { line-height: 1; font-size: 18px; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; }
    .library-modal .model-card .fav-btn .fav-icon.faved { color: #ff0000; }
    
    .library-modal .model-card .model-name { font-size: 14px; font-weight: 700; color: #333; margin-top: 4px; }
    .library-modal .model-card .folder-badge { background: rgba(255,193,7,0.7); color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 0.7em; font-weight: 700; letter-spacing: 0.5px; }
    .library-modal .model-card .obj-badge { display: none; }
    
    .library-modal .loading-state { text-align: center; padding: 30px; color: #888; }
    .library-modal .loading-state .spinner { border: 3px solid rgba(0,0,0,0.06); border-top: 3px solid #667eea; border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite; margin: 0 auto 12px; }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    .library-modal .empty-state { text-align: center; padding: 40px; color: #666; }
    .library-modal .empty-state .big-icon { font-size: 3em; display: block; margin-bottom: 10px; }
    
    .library-modal .modal-footer-hint { font-size: 12px; color: #999; text-align: center; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.05); margin-top: 12px; line-height: 1.8; }
    .library-modal .modal-footer-hint i { color: #667eea; margin-left: 6px; }

    #leftPanel { background: rgba(255,255,255,0.97); border-left: 1px solid rgba(0,0,0,0.08); box-shadow: 4px 0 30px rgba(0,0,0,0.08); }
    #leftPanel .panel-title { background: rgba(255,255,255,0.98); border-bottom: 2px solid #e0e0e0; }
    .panel-title { background: rgba(255,255,255,0.98) !important; }
    
    #leftPanel { padding-top: 10px; }
    #leftPanel .panel-title { margin-bottom: 0; }
    #leftPanel .collapsible:first-child { margin-top: 2px; }
    
    #dofControl { display: none; margin-top: 6px; }
    #dofControl .radio-group label { padding: 4px 12px; font-size: 11px; }
    .dof-hint { font-size: 10px; color: #888; margin-top: 4px; opacity: 0.7; }


    /* OBJ material compact workflow */
    .obj-primary-row{display:grid;grid-template-columns:auto minmax(120px,1fr) auto auto;gap:8px;align-items:center;margin-top:8px}
    .obj-color-control{height:34px;align-items:center;gap:6px;padding:3px 8px;border:1px solid rgba(0,0,0,.08);border-radius:9px;background:#fff;color:#666;font-size:10px;white-space:nowrap}
    .obj-color-control input[type="color"]{width:26px;height:26px;border:0;padding:0;background:none;cursor:pointer;border-radius:7px;overflow:hidden}
    .obj-material-select{height:34px;min-width:0}
    .obj-pick-btn{height:34px;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;margin:0!important;padding:0 12px!important;border-radius:9px!important;font-weight:700!important}
    .obj-primary-row .btn-reset{height:34px;border-radius:9px;padding:0 10px}
    .obj-secondary-row{align-items:center;margin-top:7px}
    .obj-secondary-row .btn{min-height:32px}
    .obj-trash-btn{flex:0 0 36px!important;min-width:36px!important}
    body.night-mode .obj-color-control{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.07);color:#aaa}

    /* Editor UX polish */
    .editor-modal-fixed{max-width:1320px!important;width:min(96vw,1320px)!important}
    .editor-body-fixed{grid-template-columns:minmax(0,1fr) 330px!important;gap:16px!important}
    .editor-viewport-fixed{background:linear-gradient(45deg,#0c1016 25%,#111722 25%,#111722 50%,#0c1016 50%,#0c1016 75%,#111722 75%);background-size:28px 28px}
    .editor-tools-panel{box-shadow:0 10px 30px rgba(0,0,0,.12)}
    .crop-ratio-btn{border:1px solid #343a52;background:#171b2a;color:#8f98b7;border-radius:7px;padding:5px 8px;font:600 10px inherit;cursor:pointer}
    .crop-ratio-btn:hover,.crop-ratio-btn.active{background:rgba(102,126,234,.2);border-color:rgba(102,126,234,.45);color:#b9c2ff}
    @media(max-width:900px){.obj-primary-row{grid-template-columns:1fr 1fr}.editor-body-fixed{grid-template-columns:1fr!important}.editor-side-fixed{max-height:38vh}}

    /* ================================================================ */
    /* NIGHT MODE */
    /* ================================================================ */
    body.night-mode #global-header { background: rgba(10,10,20,0.97); border-bottom: 1px solid rgba(255,255,255,0.04); }
    body.night-mode #subHeaderBar { background: rgba(20,20,35,0.95); border-bottom: 1px solid rgba(255,255,255,0.05); color: #ddd; }
    body.night-mode #subHeaderBar .shb-group { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); }
    body.night-mode #subHeaderBar .shb-label { color: #aaa; }
    body.night-mode #subHeaderBar .shb-label i { color: #777; }
    body.night-mode #subHeaderBar .shb-divider { background: rgba(255,255,255,0.06); }
    body.night-mode #subHeaderBar .shb-icon-btn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.06); color: #ccc; }
    body.night-mode #subHeaderBar .shb-icon-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
    body.night-mode #subHeaderBar .shb-export-name { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.06); color: #ddd; }
    body.night-mode #subHeaderBar .shb-format-group .format-btn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.06); color: #bbb; }
    body.night-mode #subHeaderBar .shb-format-group .format-btn.active { background: rgba(100,120,255,0.3); color: #fff; }
    body.night-mode #subHeaderBar .shb-export-main { background: linear-gradient(135deg, #667eea, #764ba2); }
    body.night-mode .shb-model-group { background: rgba(100,120,255,0.08); border-color: rgba(100,120,255,0.12); }
    body.night-mode .shb-model-group .current-model-name { color: #8a9aff; }
    body.night-mode .shb-model-group .library-btn { background: rgba(100,120,255,0.15); color: #8a9aff; }
    body.night-mode .shb-model-group .library-btn:hover { background: rgba(100,120,255,0.25); }
    body.night-mode #leftPanel { background: rgba(20,20,35,0.96); border-left: 1px solid rgba(255,255,255,0.04); color: #ddd; }
    body.night-mode #rightPanel { background: rgba(20,20,35,0.96); border-right: 1px solid rgba(255,255,255,0.04); color: #ddd; }
    body.night-mode #leftPanel .panel-title { background: rgba(20,20,35,0.98) !important; border-bottom: 2px solid rgba(255,255,255,0.06); color: #eee; }
    body.night-mode #rightPanel .panel-title { background: rgba(20,20,35,0.98) !important; border-bottom: 2px solid rgba(255,255,255,0.06); color: #eee; }
    body.night-mode .panel-title { background: rgba(20,20,35,0.98) !important; }
    body.night-mode .collapsible { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.05); }
    body.night-mode .collapsible-header { color: #ddd; background: rgba(255,255,255,0.02); }
    body.night-mode .collapsible-header:hover { background: rgba(255,255,255,0.05); }
    body.night-mode .collapsible-header .arrow { color: #666; }
    body.night-mode .control-group label { color: #bbb; }
    body.night-mode .slider-input-row input[type="number"] { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.06); color: #ddd; }
    body.night-mode .slider-input-row input[type="range"]::-webkit-slider-runnable-track { background: rgba(255,255,255,0.15); }
    body.night-mode .slider-input-row input[type="range"]::-webkit-slider-thumb { background: #8a9aff; }
    body.night-mode .checkbox-row { color: #bbb; }
    body.night-mode .btn { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); color: #ccc; }
    body.night-mode .btn:hover { background: rgba(255,255,255,0.08); }
    body.night-mode .btn-primary { background: rgba(100,120,255,0.1); border-color: rgba(100,120,255,0.15); }
    body.night-mode .btn-primary:hover { background: rgba(100,120,255,0.2); }
    body.night-mode .btn-success { background: rgba(40,160,80,0.1); border-color: rgba(40,160,80,0.15); }
    body.night-mode .btn-success:hover { background: rgba(40,160,80,0.2); }
    body.night-mode .btn-danger { background: rgba(220,60,60,0.1); border-color: rgba(220,60,60,0.15); color: #e74c3c; }
    body.night-mode .btn-danger:hover { background: rgba(220,60,60,0.2); }
    body.night-mode .btn-reset { background: rgba(220,160,60,0.1); border-color: rgba(220,160,60,0.15); color: #d4a017; }
    body.night-mode .btn-reset:hover { background: rgba(220,160,60,0.2); }
    body.night-mode .tab-container { background: rgba(255,255,255,0.04); }
    body.night-mode .tab-btn { color: #777; }
    body.night-mode .tab-btn.active { background: rgba(100,120,255,0.2); color: #ddd; box-shadow: none; }
    body.night-mode .face-texture-item { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.04); }
    body.night-mode .face-texture-item .face-label { color: #aaa; }
    body.night-mode .file-input-wrapper .file-label { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); color: #bbb; }
    body.night-mode .file-input-wrapper .file-label:hover { background: rgba(255,255,255,0.08); }
    body.night-mode .texture-slot { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.04); }
    body.night-mode .texture-slot .slot-name { color: #bbb; }
    body.night-mode .texture-slot .slot-status { color: #777; }
    body.night-mode .texture-slot .slot-status.loaded { color: #5dbb7a; }
    body.night-mode .material-select { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.06); color: #ddd; }
    body.night-mode .radio-group label { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); color: #bbb; }
    body.night-mode .radio-group label:hover { background: rgba(255,255,255,0.06); }
    body.night-mode .radio-group label.active { background: rgba(100,120,255,0.15); border-color: rgba(100,120,255,0.2); }
    body.night-mode .color-row .custom-color-wrap .color-label { color: #777; }
    body.night-mode .color-row .custom-color-wrap .color-label.disabled { color: #555; }
    body.night-mode .shb-preset-group { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.05); }
    body.night-mode .shb-preset-select { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.06); color: #ddd; }
    body.night-mode .shb-preset-name-input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.06); color: #ddd; }
    body.night-mode .shb-preset-btn { background: rgba(255,255,255,0.04); color: #aaa; }
    body.night-mode .shb-preset-btn:hover { background: rgba(255,255,255,0.08); }
    body.night-mode .shb-preset-btn.save { background: rgba(40,160,80,0.1); color: #5dbb7a; }
    body.night-mode .shb-preset-btn.save:hover { background: rgba(40,160,80,0.2); }
    body.night-mode .shb-preset-btn.delete { background: rgba(220,60,60,0.1); color: #e74c3c; }
    body.night-mode .shb-preset-btn.delete:hover { background: rgba(220,60,60,0.2); }
    body.night-mode .hint { color: #666; }
    body.night-mode .vp-toolbar { background: rgba(20,20,35,0.9); border-color: rgba(255,255,255,0.06); }
    body.night-mode .vp-btn { color: #999; }
    body.night-mode .vp-btn:hover { background: rgba(255,255,255,0.06); color: #ddd; }
    body.night-mode .vp-hint { background: rgba(20,20,35,0.85); border-color: rgba(255,255,255,0.04); color: #777; }
    body.night-mode #app-footer { background: linear-gradient(135deg, rgba(20,30,50,0.95), rgba(10,20,40,0.92)); border-top: 1px solid rgba(255,255,255,0.04); }
    body.night-mode #app-footer .footer-text { color: #555; }
    
    body.night-mode .user-modal .modal-card .desc strong { color: #8a9aff; }
    body.night-mode .user-modal .modal-card .name-input { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: #ddd; }
    body.night-mode .user-modal .modal-card .name-input:focus { border-color: #667eea; background: rgba(255,255,255,0.06); }

    /* ================================================================ */
    /* USER MODAL */
    /* ================================================================ */
    .user-modal .modal-card { max-width: 420px; width: 90%; padding: 28px 24px; border-radius: 20px; }
    .user-modal .modal-card .modal-icon { font-size: 48px; text-align: center; margin-bottom: 12px; display: block; }
    .user-modal .modal-card h3 { text-align: center; font-size: 20px; color: #1a1a2e; }
    .user-modal .modal-card .desc { text-align: center; color: #888; font-size: 13px; margin-bottom: 16px; line-height: 1.7; }
    .user-modal .modal-card .desc strong { color: #667eea; }
    .user-modal .modal-card .name-input { width: 100%; padding: 12px 16px; border-radius: 12px; border: 2px solid rgba(0,0,0,0.08); font-size: 16px; font-family: inherit; text-align: center; outline: none; transition: all 0.2s; background: rgba(0,0,0,0.02); }
    .user-modal .modal-card .name-input:focus { border-color: #667eea; background: #fff; }
    .user-modal .modal-card .register-btn { width: 100%; padding: 12px; border: none; border-radius: 12px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 10px; font-family: inherit; }
    .user-modal .modal-card .register-btn:hover { transform: scale(1.02); }
    .user-modal .modal-card .register-btn:active { transform: scale(0.97); }

    /* ================================================================ */
    /* SUBSCRIBE MODAL */
    /* ================================================================ */
    .subscribe-modal .modal-card { max-width: 560px; width: 95%; padding: 28px 24px; border-radius: 20px; }
    .subscribe-modal .modal-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 2px solid #e8e8e8; margin-bottom: 18px; }
    .subscribe-modal .modal-header h3 { font-size: 20px; font-weight: 700; color: #1a1a2e; display: flex; align-items: center; gap: 10px; }
    .subscribe-modal .modal-header h3 i { color: #f7971e; }
    .subscribe-modal .modal-close-btn { width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(0,0,0,0.05); color: #888; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; cursor: pointer; }
    .subscribe-modal .modal-close-btn:hover { background: rgba(220,60,60,0.12); color: #c0392b; transform: rotate(90deg) scale(1.1); }

    .plan-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; margin-bottom: 10px; border: 1.5px solid rgba(0,0,0,0.06); border-radius: 12px; background: rgba(0,0,0,0.02); cursor: pointer; transition: all 0.2s; flex-wrap: wrap; gap: 8px; }
    .plan-item:hover { background: rgba(247, 151, 30, 0.06); border-color: rgba(247, 151, 30, 0.25); transform: translateX(-3px); }
    .plan-item.highlight { border-color: rgba(247,151,30,0.3); background: rgba(247,151,30,0.04); }
    .plan-info { display: flex; flex-direction: column; gap: 2px; }
    .plan-name { font-size: 14px; font-weight: 700; color: #222; }
    .plan-name.highlight-text { color: #f7971e; }
    .plan-desc { font-size: 11px; color: #888; }
    .plan-price { font-size: 16px; font-weight: 800; color: #f7971e; }
    .plan-btn { padding: 6px 18px; border: none; border-radius: 8px; background: linear-gradient(135deg, #f7971e, #ffd200); color: #1a1a2e; font-size: 12px; font-weight: 700; transition: all 0.2s; font-family: inherit; cursor: pointer; }
    .plan-btn:hover { transform: scale(1.05); }
    .subscribe-footer { font-size: 10px; color: #888; text-align: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.05); }
    .subscribe-footer .account-purchase-note { font-size: 13px; font-weight: 700; color:#666; line-height:1.8; }
    .subscribe-footer .org-sub { font-size: 13px; font-weight: 600; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.05); color: #555; }
    .subscribe-footer .org-sub i { color: #f7971e; }
    .subscribe-footer i { color: #f7971e; margin-left: 4px; }

    /* ================================================================ */
    /* PAYMENT MODAL */
    /* ================================================================ */
    .payment-modal .modal-card { max-width: 480px; width: 95%; padding: 28px 24px; border-radius: 20px; }
    .payment-modal .modal-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 2px solid #e8e8e8; margin-bottom: 18px; }
    .payment-modal .modal-header h3 { font-size: 18px; font-weight: 700; color: #1a1a2e; display: flex; align-items: center; gap: 10px; }
    .payment-modal .modal-header h3 i { color: #f7971e; }
    .payment-modal .modal-close-btn { width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(0,0,0,0.05); color: #888; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; cursor: pointer; }
    .payment-modal .modal-close-btn:hover { background: rgba(220,60,60,0.12); color: #c0392b; transform: rotate(90deg) scale(1.1); }

    .payment-info { background: rgba(0,0,0,0.03); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid rgba(0,0,0,0.06); }
    .payment-info .row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
    .payment-info .row:last-child { border-bottom: none; }
    .payment-info .label { font-size: 12px; color: #888; }
    .payment-info .value { font-size: 13px; font-weight: 600; color: #222; }
    .payment-info .value.gold { color: #f7971e; }

    .card-box { background: rgba(247, 151, 30, 0.08); border: 2px dashed rgba(247, 151, 30, 0.3); border-radius: 12px; padding: 14px; text-align: center; margin-bottom: 14px; }
    .card-box .card-label { font-size: 11px; color: #888; }
    .card-box .card-number { font-size: 20px; font-weight: 800; color: #1a1a2e; letter-spacing: 2px; direction: ltr; }
    .card-box .card-owner { font-size: 14px; font-weight: 600; color: #f7971e; margin-top: 4px; }

    .payment-note { font-size: 11px; color: #888; text-align: center; margin-bottom: 14px; background: rgba(247,151,30,0.06); padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(247,151,30,0.1); }
    .payment-note i { color: #f7971e; }

    .payment-actions { display: flex; gap: 10px; flex-wrap: wrap; }
    .payment-actions .action-btn { flex: 1; min-width: 100px; padding: 10px 14px; border: none; border-radius: 10px; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; font-family: inherit; cursor: pointer; }
    .payment-actions .action-btn:hover { transform: scale(1.03); }
    .action-telegram { background: rgba(0, 136, 204, 0.12); color: #0088cc; border: 1px solid rgba(0, 136, 204, 0.15); }
    .action-telegram:hover { background: rgba(0, 136, 204, 0.22); }
    .action-email { background: rgba(220, 60, 60, 0.08); color: #c0392b; border: 1px solid rgba(220, 60, 60, 0.12); }
    .action-email:hover { background: rgba(220, 60, 60, 0.18); }
    .action-copy { background: rgba(0,0,0,0.04); color: #555; border: 1px solid rgba(0,0,0,0.06); }
    .action-copy:hover { background: rgba(0,0,0,0.08); }

    .modal-footer-text { font-size: 10px; color: #999; text-align: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.05); }

    /* ================================================================ */
    /* SCREENSHOT PROTECTION */
    /* ================================================================ */
    .screenshot-protection { display: none; position: fixed; inset: 0; z-index: 999999; background: rgba(0,0,0,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: protectionFadeIn 0.5s ease; }
    .screenshot-protection.active { display: flex; align-items: center; justify-content: center; }
    .protection-overlay { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; }
    .protection-box { max-width: 560px; width: 100%; background: linear-gradient(145deg, #1a1a2e, #2d2d44); border-radius: 24px; padding: 40px 36px; text-align: center; border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 24px 80px rgba(0,0,0,0.6); animation: protectionBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
    .protection-icon { font-size: 64px; color: #f7971e; margin-bottom: 12px; animation: protectionPulse 2s ease-in-out infinite; }
    .protection-icon i { text-shadow: 0 0 40px rgba(247, 151, 30, 0.3); }
    .protection-title { font-size: 24px; font-weight: 800; color: #ff6b6b; margin-bottom: 16px; letter-spacing: 0.5px; }
    .protection-divider { height: 2px; background: linear-gradient(90deg, transparent, rgba(247, 151, 30, 0.3), transparent); margin: 16px 0 20px 0; }
    .protection-message { color: #c8c8e0; font-size: 15px; line-height: 2; }
    .protection-message strong { color: #ff6b6b; }
    .protection-message p { margin: 4px 0; }
    .protection-footer { display: flex; gap: 12px; margin-top: 28px; justify-content: center; flex-wrap: wrap; }
    .protection-btn { padding: 12px 28px; border: none; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.3s; font-family: inherit; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); color: #c8c8e0; border: 1px solid rgba(255,255,255,0.06); }
    .protection-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); }
    .protection-btn.primary { background: linear-gradient(135deg, #f7971e, #ffd200); color: #1a1a2e; border: none; box-shadow: 0 4px 20px rgba(247, 151, 30, 0.3); }
    .protection-btn.primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 30px rgba(247, 151, 30, 0.4); }
    .protection-watermark { margin-top: 20px; font-size: 11px; color: #444466; letter-spacing: 1px; }

    @keyframes protectionFadeIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes protectionBounce { 0% { opacity: 0; transform: scale(0.8) translateY(30px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
    @keyframes protectionPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
    body.night-mode .protection-box { background: linear-gradient(145deg, #0a0a18, #16162e); }
    body.night-mode .protection-message { color: #9999bb; }
    body.night-mode .protection-btn { background: rgba(255,255,255,0.03); color: #9999bb; }


    /* v4.2 editor refinements */
    .editor-history-actions{display:flex;align-items:center;gap:7px;margin-left:6px}
    .editor-history-btn{width:36px;height:34px;border-radius:9px;border:1px solid rgba(129,140,248,.28);background:rgba(99,102,241,.16);color:#aab4ff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.18s ease;font-size:14px}
    .editor-history-btn:hover:not(:disabled){background:rgba(99,102,241,.28);color:#fff;transform:translateY(-1px)}
    .editor-history-btn:disabled{opacity:.28;cursor:not-allowed}
    .editor-transform-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px}
    .editor-rotate-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}
    .editor-tools-separator{height:1px;background:#33334d;margin:10px 0 6px}
    .obj-pick-btn.btn{flex:1;min-width:105px;border-radius:8px;padding:7px 10px;background:rgba(0,0,0,.04);border:1px solid rgba(0,0,0,.08);color:#444}
    .obj-pick-btn.btn:hover{background:rgba(0,0,0,.08)}
    body.night-mode .obj-pick-btn.btn{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08);color:#ccc}
    .obj-material-empty{padding:28px 16px;text-align:center;color:#8a8a9a;border:1px dashed rgba(120,120,150,.24);border-radius:12px;background:rgba(100,120,255,.035);line-height:1.9;font-size:12px}
    .obj-material-empty i{display:block;font-size:27px;color:#667eea;margin-bottom:8px}

