:root{--font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--ease-out-expo: cubic-bezier(.16, 1, .3, 1);--ease-in-out-cubic: cubic-bezier(.65, 0, .35, 1);--spacing-xs: .25rem;--spacing-sm: .5rem;--spacing-md: 1rem;--spacing-lg: 1.5rem;--spacing-xl: 2rem;--spacing-xxl: 3rem;--border-radius-sm: 6px;--border-radius-md: 8px;--border-radius-lg: 12px;--border-width: 1px;--app-height: 100vh;--bottom-nav-height: 0px}body,body[data-theme=cyberpunk]{--background-color: #0d1117;--panel-background: #161B22;--panel-background-translucent: rgba(22, 27, 34, .85);--border-color: #30363d;--border-color-light: #8b949e;--primary-color: #58a6ff;--primary-hover-color: #79c0ff;--secondary-color: #21262d;--secondary-hover-color: #30363d;--danger-color: #f85149;--danger-hover-color: #da3633;--glow-color: rgba(88, 166, 255, .4);--text-color: #c9d1d9;--text-secondary-color: #8b949e;--success-color: #3fb950;--shadow-color: rgba(0,0,0,.3);--success-glow: rgba(63, 185, 80, .4);--primary-text-color: #0d1117}.gallery-select-btn{margin-top:8px;width:100%}.gallery-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;max-height:400px;overflow-y:auto;padding:8px}.gallery-picker-item{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;cursor:pointer;border:2px solid transparent;transition:all .2s ease}.gallery-picker-item:hover{border-color:var(--primary-color);transform:scale(1.02)}.gallery-picker-item.selected{border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color)}.gallery-picker-item img{width:100%;height:100%;object-fit:cover}.gallery-picker-item-info{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#000c);color:#fff;padding:8px 6px 4px;font-size:10px;line-height:1.2}.gallery-picker-item-info .app-name{display:block;font-weight:500;margin-bottom:2px}.gallery-picker-item-info .timestamp{opacity:.8}.gallery-picker-selection-indicator{position:absolute;top:4px;right:4px;background:var(--primary-color);border-radius:50%;padding:4px;color:var(--primary-text-color)}.gallery-loading,.gallery-empty{text-align:center;padding:40px 20px;color:var(--text-secondary-color)}.gallery-pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:20px;padding-top:16px;border-top:1px solid var(--border-color)}.page-info{color:var(--text-secondary-color);font-size:14px}.bottom-task-float-bar{position:fixed;bottom:calc(var(--bottom-nav-height) - 0px);right:calc(8px + env(safe-area-inset-right));left:auto;transform:none;background:var(--panel-background);border:1px solid var(--border-color);border-radius:var(--border-radius-lg);padding:12px 24px;color:var(--text-color);box-shadow:0 4px 12px var(--shadow-color);z-index:1500;cursor:pointer;transition:all .2s ease;font-weight:500;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:var(--panel-background-translucent)}.bottom-task-float-bar:hover{transform:none;box-shadow:0 6px 16px var(--shadow-color)}.bottom-task-drawer{position:fixed;bottom:0;left:0;right:0;background:var(--panel-background);border-top:1px solid var(--border-color);border-radius:var(--border-radius-lg) var(--border-radius-lg) 0 0;z-index:1001;transform:translateY(100%);transition:transform .3s cubic-bezier(.16,1,.3,1);will-change:transform;max-height:70vh}.bottom-task-drawer.open{transform:translateY(0)}.drawer-content{display:flex;flex-direction:column;height:100%}.drawer-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border-color)}.drawer-header h3{margin:0;font-size:16px;font-weight:600}.drawer-close-btn{background:none;border:none;color:var(--text-color);cursor:pointer;padding:4px;border-radius:var(--border-radius-sm);transition:background-color .2s}.drawer-close-btn:hover{background:var(--secondary-color)}.drawer-body{flex:1;overflow-y:auto;padding:16px 20px}.task-item{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--border-color)}.task-item:last-child{border-bottom:none}.task-info{flex:1;margin-right:16px}.task-name{font-weight:500;margin-bottom:4px;color:var(--text-color)}.task-status{font-size:12px;color:var(--text-secondary-color);margin-bottom:2px}.task-duration{font-size:12px;color:var(--text-secondary-color)}.task-progress{display:flex;align-items:center;gap:8px;min-width:120px}.progress-bar{flex:1;height:4px;background:var(--secondary-color);border-radius:2px;overflow:hidden}.progress-fill{height:100%;background:var(--primary-color);transition:width .3s ease}.progress-text{font-size:12px;color:var(--text-secondary-color);min-width:30px;text-align:right}.drawer-footer{padding:16px 20px;border-top:1px solid var(--border-color);text-align:center}@media (max-width: 768px){.running-tasks-sidebar{display:none!important}.main-content.tasks-visible{padding-right:0!important}}@keyframes slideDown{0%{opacity:0;transform:translate(-50%) translateY(-20px)}to{opacity:1;transform:translate(-50%) translateY(0)}}body[data-theme=solaris-dawn]{--background-color: #f8f9fa;--panel-background: #ffffff;--panel-background-translucent: rgba(255, 255, 255, .8);--border-color: #dee2e6;--border-color-light: #adb5bd;--primary-color: #fd7e14;--primary-hover-color: #e8590c;--secondary-color: #e9ecef;--secondary-hover-color: #ced4da;--danger-color: #dc3545;--danger-hover-color: #c82333;--glow-color: rgba(253, 126, 20, .3);--text-color: #212529;--text-secondary-color: #6c757d;--success-color: #28a745;--shadow-color: rgba(0,0,0,.1);--primary-text-color: #ffffff}body[data-theme=quantum-dark]{--background-color: #121212;--panel-background: #1e1e1e;--panel-background-translucent: rgba(30, 30, 30, .85);--border-color: #333333;--border-color-light: #555555;--primary-color: #3f51b5;--primary-hover-color: #5c6bc0;--secondary-color: #333333;--secondary-hover-color: #444444;--danger-color: #ef5350;--danger-hover-color: #e53935;--glow-color: rgba(63, 81, 181, .4);--text-color: #e0e0e0;--text-secondary-color: #9e9e9e;--success-color: #66bb6a;--shadow-color: rgba(0,0,0,.3);--primary-text-color: #ffffff}body[data-theme=synthwave-sunset]{--background-color: #2c2a4a;--panel-background: #4f4c7a;--panel-background-translucent: rgba(79, 76, 122, .85);--border-color: #7f7aae;--border-color-light: #9a95c3;--primary-color: #ff6b6b;--primary-hover-color: #feca57;--secondary-color: #3d3b63;--secondary-hover-color: #5f5c94;--danger-color: #ff4757;--danger-hover-color: #e03f4f;--glow-color: rgba(255, 107, 107, .4);--text-color: #f7f1e3;--text-secondary-color: #aaa6c3;--success-color: #55efc4;--shadow-color: rgba(0,0,0,.3);--primary-text-color: #2c2a4a}body[data-theme=evergreen-grove]{--background-color: #1e3a3a;--panel-background: #2a4c4c;--panel-background-translucent: rgba(42, 76, 76, .85);--border-color: #446c6c;--border-color-light: #688f8f;--primary-color: #66cdaa;--primary-hover-color: #81e0be;--secondary-color: #244141;--secondary-hover-color: #355f5f;--danger-color: #e57373;--danger-hover-color: #ef5350;--glow-color: rgba(102, 205, 170, .3);--text-color: #f0f5f0;--text-secondary-color: #a8c4c4;--success-color: #81c784;--shadow-color: rgba(0,0,0,.2);--primary-text-color: #1e3a3a}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{font-family:var(--font-family);background-color:var(--background-color);color:var(--text-color);transition:background-color .3s var(--ease-in-out-cubic);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.page-wrapper{display:flex;flex-direction:column;height:var(--app-height)}.header{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-sm) var(--spacing-xl);border-bottom:var(--border-width) solid var(--border-color);flex-shrink:0;position:relative;z-index:1000;background-color:var(--panel-background);transition:background-color .3s,border-color .3s}.main-content{flex-grow:1;display:flex;position:relative;overflow-y:auto}.app-container{flex-grow:1;display:flex;flex-direction:column;overflow:auto}.app-container.active{display:grid;grid-template-columns:400px 1fr;height:100%}.running-tasks-sidebar{width:300px;flex-shrink:0;border-left:var(--border-width) solid var(--border-color);padding:var(--spacing-lg);overflow-y:auto;background-color:var(--background-color);position:absolute;right:0;top:0;bottom:0;transform:translate(100%);transition:transform .3s var(--ease-in-out-cubic)}.main-content.tasks-visible .running-tasks-sidebar{transform:translate(0)}.main-content.tasks-visible .app-container{padding-right:300px}.page-container{width:100%;height:100%;padding:var(--spacing-xl) var(--spacing-xxl);overflow-y:auto;min-height:100vh;box-sizing:border-box}.page-container.center{display:flex;align-items:center;justify-content:center;text-align:center}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-lg);padding-bottom:var(--spacing-lg);border-bottom:var(--border-width) solid var(--border-color)}.page-title,.admin-header h1{font-size:2rem;font-weight:600}.page-disclaimer{font-size:.9rem;color:var(--text-secondary-color);margin-bottom:var(--spacing-lg)}.btn{display:inline-flex;align-items:center;justify-content:center;padding:.6rem var(--spacing-md);border-radius:var(--border-radius-md);font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s var(--ease-in-out-cubic);border:var(--border-width) solid transparent;text-decoration:none;line-height:1.2;white-space:nowrap}.btn:hover:not(:disabled){transform:translateY(-2px)}.btn:disabled,a.disabled{cursor:not-allowed!important;opacity:.6!important;transform:none!important;box-shadow:none!important}.btn--primary{background-color:var(--primary-color);color:var(--primary-text-color);border-color:var(--primary-color)}.btn--primary:hover:not(:disabled){background-color:var(--primary-hover-color);border-color:var(--primary-hover-color);box-shadow:0 4px 20px var(--glow-color)}.btn--primary.saved{background-color:var(--success-color);border-color:var(--success-color);box-shadow:0 0 15px var(--success-glow)}.btn--secondary{background-color:var(--secondary-color);color:var(--text-color);border-color:var(--border-color)}.btn--secondary:hover:not(:disabled){background-color:var(--secondary-hover-color);border-color:var(--border-color-light)}.btn--danger{background-color:var(--danger-color);color:#fff;border-color:var(--danger-color)}.btn--danger:hover:not(:disabled){background-color:var(--danger-hover-color);border-color:var(--danger-hover-color)}.btn--large{font-size:1.2rem;padding:var(--spacing-md) var(--spacing-xl)}.btn--small{font-size:.8rem;padding:.35rem .75rem}.form-group,.control-section{margin-bottom:var(--spacing-lg)}.form-group label,.control-section>label{display:block;font-weight:500;color:var(--text-secondary-color);margin-bottom:var(--spacing-sm);font-size:.9rem}.switch-group{background-color:var(--color-gray-800);padding:var(--spacing-lg);border-radius:var(--border-radius-md);margin-bottom:var(--spacing-lg)}.form-group-inline{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-lg)}.form-actions{margin-top:var(--spacing-lg);display:flex;gap:var(--spacing-md);justify-content:flex-end}.form-section{padding-bottom:var(--spacing-lg);margin-bottom:var(--spacing-lg);border-bottom:var(--border-width) solid var(--border-color)}.form-section:last-of-type{border-bottom:none;margin-bottom:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--spacing-md) var(--spacing-lg)}.form-row{display:flex;gap:var(--spacing-lg);align-items:flex-start}.form-row .form-group{flex:1;margin-bottom:var(--spacing-lg)}.form-description,.password-hint,.page-disclaimer{font-size:.8rem;color:var(--text-secondary-color);margin-top:var(--spacing-sm)}.form-help{font-size:.8rem;color:var(--text-secondary-color);margin-top:var(--spacing-xs);display:block}.form-group .form-check{margin-bottom:var(--spacing-md)}.form-group .form-check+.form-help{margin-left:0;margin-top:var(--spacing-sm);clear:both}.form-message{padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-sm);margin-bottom:var(--spacing-md);font-size:.9rem}.form-message--error{background-color:color-mix(in srgb,var(--danger-color) 15%,transparent);color:var(--danger-color)}.form-message--success{background-color:color-mix(in srgb,var(--success-color) 15%,transparent);color:var(--success-color)}.form-control{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;min-height:44px;background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-radius:var(--border-radius-md);padding:.7rem var(--spacing-md);color:var(--text-color);font-family:var(--font-family);font-size:1rem;transition:border-color .2s,box-shadow .2s;display:flex;align-items:center;box-sizing:border-box;max-width:100%}textarea.form-control{resize:vertical;min-height:100px}.form-control:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px var(--glow-color)}select.form-control{cursor:pointer;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238b949e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 1rem center;background-size:1em}.required-asterisk{color:var(--danger-color);margin-left:var(--spacing-xs);font-weight:700}.control-section.has-error .form-control,.form-control.has-error,.control-section.has-error .image-uploader{border-color:var(--danger-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--danger-color) 30%,transparent)!important}.control-section.has-error>label{color:var(--danger-color)}.form-check{display:flex;align-items:center}.custom-checkbox{display:inline-flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;gap:.75rem;font-size:.9rem;color:var(--text-secondary-color);transition:color .2s}.custom-checkbox:hover{color:var(--text-color)}.custom-checkbox input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.checkmark{position:relative;height:20px;width:20px;background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-radius:var(--border-radius-sm);transition:all .2s var(--ease-in-out-cubic);flex-shrink:0}.custom-checkbox:hover .checkmark{border-color:var(--border-color-light)}.custom-checkbox input:checked~.checkmark{background-color:var(--primary-color);border-color:var(--primary-color)}.custom-checkbox input:focus-visible~.checkmark{box-shadow:0 0 0 3px var(--glow-color)}.checkmark:after{content:"";position:absolute;display:none;left:6px;top:2px;width:5px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg) scale(0);transition:transform .2s var(--ease-out-expo)}.custom-checkbox input:checked~.checkmark:after{display:block;transform:rotate(45deg) scale(1)}.user-terms-link{color:var(--primary-color);font-weight:500;cursor:pointer;margin-left:var(--spacing-xs)}.toggle-switch-label{display:flex;align-items:center;justify-content:space-between;width:100%}.form-group-inline .toggle-switch{display:inline-flex;align-items:center;gap:var(--spacing-sm);cursor:pointer;position:relative}.form-group-inline .toggle-switch input{position:absolute;opacity:0;width:0;height:0}.form-group-inline .toggle-switch .slider{position:relative;width:44px;height:24px;background-color:#6b7280;border-radius:12px;transition:all .3s var(--ease-out-expo);border:1px solid var(--border-color)}.form-group-inline .toggle-switch .slider:before{content:"";position:absolute;left:2px;top:2px;width:18px;height:18px;background-color:#fff;border-radius:50%;transition:all .3s var(--ease-out-expo);box-shadow:0 1px 3px #0000004d}.form-group-inline .toggle-switch input:checked+.slider{background-color:var(--primary-color);border-color:var(--primary-color)}.form-group-inline .toggle-switch input:checked+.slider:before{transform:translate(20px)}.form-group-inline .toggle-switch input:focus-visible+.slider{box-shadow:0 0 0 2px var(--glow-color)}.form-group-inline .toggle-switch:hover .slider{background-color:#9ca3af}.form-group-inline .toggle-switch:hover input:checked+.slider{background-color:var(--primary-hover-color)}.custom-toggle{display:inline-flex;align-items:center;gap:var(--spacing-sm);cursor:pointer;position:relative}.custom-toggle input{position:absolute;opacity:0;width:0;height:0}.custom-toggle .slider{position:relative;width:44px;height:24px;background-color:#6b7280;border-radius:12px;transition:all .3s var(--ease-out-expo);border:1px solid var(--border-color)}.custom-toggle .slider:before{content:"";position:absolute;left:2px;top:2px;width:18px;height:18px;background-color:#fff;border-radius:50%;transition:all .3s var(--ease-out-expo);box-shadow:0 1px 3px #0000004d}.custom-toggle input:checked+.slider{background-color:var(--primary-color);border-color:var(--primary-color)}.custom-toggle input:checked+.slider:before{transform:translate(20px)}.custom-toggle input:focus-visible+.slider{box-shadow:0 0 0 2px var(--glow-color)}.custom-toggle:hover .slider{background-color:#9ca3af}.custom-toggle:hover input:checked+.slider{background-color:var(--primary-hover-color)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideInUp{0%{transform:translateY(20px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1100;animation:fadeIn .3s var(--ease-in-out-cubic)}.modal{background-color:var(--panel-background);border:var(--border-width) solid var(--border-color);border-radius:var(--border-radius-lg);box-shadow:0 10px 40px var(--shadow-color);animation:slideInUp .4s var(--ease-out-expo);position:relative;display:flex;flex-direction:column;max-height:90vh}.modal--small{width:90vw;max-width:500px}.modal--large{width:90vw;max-width:720px}.modal--debug{width:95vw;max-width:1400px}.modal__header{padding:var(--spacing-lg) var(--spacing-xl);border-bottom:1px solid var(--border-color);flex-shrink:0;position:relative}.modal__header h3{text-align:center;font-size:1.5rem;margin:0}.modal__close-btn{position:absolute;top:50%;transform:translateY(-50%);right:var(--spacing-md);background:transparent;border:none;color:var(--text-secondary-color);cursor:pointer;padding:var(--spacing-sm);border-radius:50%;transition:background-color .2s,color .2s;z-index:5}.modal__close-btn:hover{background-color:var(--border-color);color:var(--text-color)}.modal__close-btn svg{display:block}.modal__body{overflow-y:auto;flex-grow:1;padding:var(--spacing-xl)}.modal__body-container{flex-grow:1;overflow:hidden;display:flex}.modal--debug .modal__body-container{display:grid;grid-template-columns:1fr 1fr}.modal__main-pane,.modal__debug-pane{padding:var(--spacing-xl);overflow-y:auto;display:flex;flex-direction:column}.modal--debug .modal__debug-pane{border-left:1px solid var(--border-color)}.modal__footer{padding:var(--spacing-md) var(--spacing-xl);border-top:1px solid var(--border-color);display:flex;align-items:center;gap:var(--spacing-md);background-color:var(--background-color);flex-shrink:0}.switch-view-text{text-align:center;margin-top:var(--spacing-lg);color:var(--text-secondary-color);font-size:.9rem}.switch-view-text span{color:var(--primary-color);font-weight:500;cursor:pointer;margin-left:var(--spacing-xs)}.terms-modal-content{white-space:pre-wrap;word-wrap:break-word;line-height:1.6;color:var(--text-secondary-color);font-size:.9rem}.table-wrapper{overflow:auto;flex-grow:1}.table{width:100%;border-radius:var(--border-radius-md);overflow:hidden;border-collapse:collapse}.table__header,.table__row{display:grid;align-items:center;padding:var(--spacing-sm) var(--spacing-md);gap:var(--spacing-lg);width:100%}.table__header{background-color:var(--background-color);color:var(--text-secondary-color);font-weight:500;font-size:.8rem;text-transform:uppercase;border-bottom:var(--border-width) solid var(--border-color);padding-top:var(--spacing-md);padding-bottom:var(--spacing-md)}.table__body .table__row{border-bottom:var(--border-width) solid var(--border-color);transition:background-color .2s}.table__body .table__row:last-child{border-bottom:none}.table__body .table__row:hover{background-color:color-mix(in srgb,var(--primary-color) 5%,transparent)}.table__row--empty{padding:var(--spacing-xl);text-align:center;color:var(--text-secondary-color);grid-column:1 / -1}.table__actions{display:flex;gap:var(--spacing-sm);justify-content:flex-end}.table__cell--sorter{display:flex;flex-direction:column;justify-content:center}.table__cell--sorter button{background:none;border:none;color:var(--text-secondary-color);cursor:pointer;padding:0;line-height:1}.table__cell--sorter button:hover:not(:disabled){color:var(--text-color)}.table__cell--sorter button:disabled{opacity:.3;cursor:not-allowed}.cell-id{font-family:monospace;font-size:.9em;color:var(--text-secondary-color);word-break:break-all}.task-queue-table .table__header,.task-queue-table .table__row{grid-template-columns:2.2fr 1.8fr 1.8fr 1fr .9fr 1.6fr .8fr}.task-queue-table .table__row>span:nth-child(1),.task-queue-table .table__row>span:nth-child(2),.task-queue-table .table__row>span:nth-child(3){word-break:break-all;font-family:monospace}.card{background-color:var(--panel-background);border:var(--border-width) solid var(--border-color);border-radius:var(--border-radius-lg);padding:var(--spacing-lg) var(--spacing-xl);height:auto;min-height:fit-content;box-sizing:border-box}.loader{border:4px solid var(--border-color);border-top:4px solid var(--primary-color);border-radius:50%;width:50px;height:50px;animation:spin 1s linear infinite;margin:auto}.loader.small{width:24px;height:24px;border-width:3px}@keyframes spin{to{transform:rotate(360deg)}}.loader-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--panel-background-translucent);display:flex;align-items:center;justify-content:center;z-index:2}.progress-bar-container{width:80%;max-width:400px;height:8px;background-color:var(--border-color);border-radius:4px;overflow:hidden}.progress-bar{height:100%;background:var(--primary-color);border-radius:4px;transition:width .3s var(--ease-in-out-cubic)}.status-badge{padding:.2rem .6rem;border-radius:12px;font-size:.8rem;font-weight:500;display:inline-block;white-space:nowrap}.status-badge.published,.status-badge.success{background-color:color-mix(in srgb,var(--success-color) 20%,transparent);color:var(--success-color)}.status-badge.draft,.status-badge.failed{background-color:color-mix(in srgb,var(--text-secondary-color) 20%,transparent);color:var(--text-secondary-color)}.notification-toast{position:fixed;top:5rem;left:50%;transform:translate(-50%);background-color:var(--success-color);color:var(--primary-text-color);padding:var(--spacing-md) var(--spacing-lg);border-radius:var(--border-radius-md);box-shadow:0 4px 20px var(--success-glow);z-index:2000;animation:slideInUp .3s,fadeOut .3s 2.7s}@keyframes fadeOut{to{opacity:0;transform:translateY(-20px) translate(-50%)}}.nav-left,.nav-right{display:flex;align-items:center;gap:var(--spacing-md)}.nav-left a{color:var(--text-secondary-color);text-decoration:none;font-weight:500;transition:color .2s,background-color .2s;cursor:pointer;padding:var(--spacing-sm) .75rem;border-radius:var(--border-radius-sm)}.nav-left a:hover{color:var(--text-color);background-color:var(--secondary-hover-color)}.nav-left a.active{color:var(--primary-hover-color);font-weight:600}.login-btn{border:var(--border-width) solid var(--primary-color);padding:var(--spacing-sm) var(--spacing-md)!important;color:var(--primary-color)!important}.login-btn:hover{background-color:var(--primary-color);color:var(--primary-text-color)!important;box-shadow:0 0 15px var(--glow-color)}.dropdown{position:relative}.dropdown-content{display:none;position:absolute;top:120%;left:0;background-color:var(--panel-background);border:var(--border-width) solid var(--border-color);border-radius:var(--border-radius-lg);box-shadow:0 8px 24px var(--shadow-color);min-width:200px;padding:var(--spacing-sm);z-index:1001;animation:slideInUp .3s var(--ease-out-expo)}.dropdown-content.open{display:block}.dropdown-content a{display:block;width:100%;text-align:left;padding:.6rem .8rem;display:flex;justify-content:space-between;align-items:center}.dropdown-content-empty{padding:.6rem .8rem;color:var(--text-secondary-color)}.user-avatar{width:36px;height:36px;border-radius:50%;background-color:var(--primary-color);color:var(--primary-text-color);display:flex;align-items:center;justify-content:center;font-weight:600;cursor:pointer;border:2px solid var(--border-color);transition:border-color .2s,transform .2s}.user-avatar:hover{border-color:var(--primary-color);transform:scale(1.05)}.user-dropdown{position:absolute;top:130%;right:0;width:260px;background-color:var(--panel-background);border:var(--border-width) solid var(--border-color);border-radius:var(--border-radius-lg);box-shadow:0 10px 30px var(--shadow-color);z-index:1001;overflow:hidden;animation:slideInUp .3s var(--ease-out-expo)}.user-info{padding:var(--spacing-md) var(--spacing-lg)}.user-info .username{font-size:1.1rem;font-weight:600;display:block}.user-info .level{display:inline-block;background-color:var(--border-color);color:var(--text-secondary-color);padding:.1rem .5rem;border-radius:10px;font-size:.75rem;margin:.25rem 0 .5rem}.user-info .credits{font-size:.9rem}.user-dropdown-divider{height:var(--border-width);background-color:var(--border-color);margin:var(--spacing-sm) 0}.user-dropdown-menu a{display:block;padding:.75rem var(--spacing-lg);color:var(--text-secondary-color);cursor:pointer;transition:background-color .2s,color .2s}.user-dropdown-menu a:hover{background-color:color-mix(in srgb,var(--primary-color) 10%,transparent);color:var(--text-color)}.logout-btn-container{padding:var(--spacing-sm) var(--spacing-md)}.logout-btn-container .btn{width:100%}.home-container{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;position:relative;overflow-x:hidden;overflow-y:auto;padding-bottom:60px}@media (max-width: 768px){.home-container{padding-bottom:12px}}#particle-canvas{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%}.hero-content{text-align:center;z-index:2;position:relative;animation:fadeIn 1s .5s backwards;padding:var(--spacing-md);width:100%;max-width:1200px;margin:var(--spacing-lg) auto var(--spacing-md)}.hero-title{font-size:4rem;margin-bottom:var(--spacing-md)}.hero-subtitle{font-size:1.2rem;color:var(--text-secondary-color);max-width:600px;margin:0 auto var(--spacing-xl)}.home-apps-grid{position:relative;z-index:2;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px;padding:24px;max-width:1200px;margin:0 auto}.home-app-card{display:grid;grid-template-columns:120px 1fr;align-items:center;gap:16px;background:var(--panel-background);border:1px solid var(--border-color);border-radius:12px;padding:16px;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.home-app-card:hover{transform:translateY(-2px);border-color:var(--primary-color);box-shadow:0 6px 18px #00000040}.home-app-cover{width:120px;height:90px;border-radius:8px;overflow:hidden;background:#ffffff0f;display:flex;align-items:center;justify-content:center;border:1px dashed var(--border-color)}.home-app-cover img{width:100%;height:100%;object-fit:cover;border-radius:8px;border:none}.cover-placeholder{color:var(--text-secondary-color);font-size:12px}.home-app-content{display:grid;gap:8px}.home-app-title{font-size:16px;font-weight:600}.home-app-desc{font-size:13px;color:var(--text-secondary-color)}.home-app-action{margin-top:4px}.home-empty{text-align:center;color:var(--text-secondary-color);padding:16px}.site-icp-record{position:absolute;bottom:12px;left:0;width:100%;text-align:center;color:#7a7a7a;font-size:12px;z-index:3}@media (max-width: 768px){.site-icp-record{position:relative;bottom:auto;margin-top:2px;padding-bottom:2px}}.controls-panel{padding:0;display:grid;grid-template-rows:1fr auto;gap:0;border-right:var(--border-width) solid var(--border-color);overflow:hidden;background-color:var(--panel-background);height:100%}.controls-panel__scroll-area{overflow-y:auto;padding:var(--spacing-xl);display:flex;flex-direction:column;gap:var(--spacing-lg);min-height:0}.controls-panel h2{font-size:1.5rem;display:flex;align-items:center;gap:.75rem}.free-badge{font-size:.8rem;background-color:var(--success-color);color:var(--primary-text-color);padding:.2rem .6rem;border-radius:12px;font-weight:500}.free-badge.small{font-size:.7rem}.app-description{font-size:.9rem;color:var(--text-secondary-color);line-height:1.6;margin-top:calc(-1 * var(--spacing-sm))}.app-description strong{color:var(--text-color);font-weight:600}.image-uploader{border:2px dashed var(--border-color);border-radius:var(--border-radius-lg);padding:var(--spacing-lg);text-align:center;cursor:pointer;transition:border-color .3s,background-color .3s;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;position:relative;min-height:120px}.image-uploader-icon{color:var(--text-secondary-color);transition:color .3s,transform .3s}.image-uploader:hover,.image-uploader.dragging{border-color:var(--primary-color);background-color:color-mix(in srgb,var(--primary-color) 8%,transparent)}.image-uploader:hover .image-uploader-icon,.image-uploader.dragging .image-uploader-icon{color:var(--primary-color);transform:translateY(-3px)}.image-uploader.uploading{cursor:progress}.image-uploader p{color:var(--text-secondary-color)}.image-preview{position:relative;border-radius:var(--border-radius-md);overflow:hidden;border:1px solid var(--border-color)}.image-preview img{width:100%;display:block;max-height:200px;object-fit:contain}.remove-image-btn{position:absolute;top:var(--spacing-sm);right:var(--spacing-sm);background-color:var(--panel-background-translucent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff;border:var(--border-width) solid var(--border-color);border-radius:50%;width:28px;height:28px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:background-color .3s,transform .3s;z-index:5}.remove-image-btn:hover{background-color:var(--danger-color);transform:scale(1.1)}.generate-action-area{margin-top:0;padding:var(--spacing-lg) var(--spacing-xl);text-align:center;flex-shrink:0;border-top:none;background:var(--panel-background)}.generate-action-area .btn{width:100%;margin-bottom:var(--spacing-sm)}.credit-cost-display{font-size:.8rem;color:var(--text-secondary-color)}.options-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--spacing-md)}.mobile-task-indicator{display:none}.output-panel{display:flex;align-items:center;justify-content:center;padding:var(--spacing-xl);overflow:auto;height:100%}.output-content{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;border:var(--border-width) solid var(--border-color);border-radius:var(--border-radius-lg);padding:var(--spacing-lg) var(--spacing-md) var(--spacing-md);text-align:center;position:relative;background-color:var(--background-color);gap:var(--spacing-md)}.placeholder-text{color:var(--text-secondary-color);font-size:1.2rem;margin:auto}.generated-media{max-width:100%;max-height:100%;object-fit:contain;border-radius:var(--border-radius-md)}video.generated-media{background-color:#000}.error-message{color:var(--danger-color);background-color:color-mix(in srgb,var(--danger-color) 10%,transparent);border:1px solid var(--danger-color);border-radius:var(--border-radius-md);padding:var(--spacing-md);text-align:left;max-width:90%;word-break:break-word;margin:auto}.disclaimer-text{font-size:.8rem;color:var(--text-secondary-color);text-align:center;margin-bottom:var(--spacing-md);max-width:90%}.disclaimer-button{position:absolute;top:var(--spacing-md);right:var(--spacing-md);z-index:5}.main-result-viewer{flex-grow:1;display:flex;align-items:center;justify-content:center;width:100%;min-height:0}.thumbnail-strip{flex-shrink:0;width:100%;padding:var(--spacing-sm) var(--spacing-md);display:flex;gap:var(--spacing-sm);overflow-x:auto;justify-content:flex-start;scroll-snap-type:x mandatory}.thumbnail-item{width:80px;height:80px;flex-shrink:0;border:2px solid var(--border-color);border-radius:var(--border-radius-sm);cursor:pointer;overflow:hidden;transition:border-color .2s,transform .2s;position:relative;background-color:var(--background-color);scroll-snap-align:start}.thumbnail-item:hover{border-color:var(--border-color-light);transform:scale(1.05)}.thumbnail-item.active{border-color:var(--primary-color);box-shadow:0 0 0 2px var(--glow-color);transform:scale(1.05)}.thumbnail-media{width:100%;height:100%;object-fit:cover;display:block}.admin-container{padding:var(--spacing-xl) var(--spacing-xxl);display:flex;flex-direction:column;gap:var(--spacing-xl);flex-grow:1;min-height:0;height:auto;box-sizing:border-box}.admin-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:var(--spacing-xl);border-bottom:1px solid var(--border-color);flex-shrink:0;margin-bottom:0}.admin-nav{display:flex;gap:var(--spacing-sm)}.admin-nav button{background:transparent;border:1px solid var(--border-color);color:var(--text-secondary-color);padding:.6rem 1.2rem;font-size:.9rem;border-radius:var(--border-radius-md)}.admin-nav button:hover:not(:disabled){background-color:var(--border-color);color:var(--text-color)}.admin-nav button.active{background-color:var(--primary-color);border-color:var(--primary-color);color:var(--primary-text-color);box-shadow:0 0 15px var(--glow-color)}.admin-section-wrapper{flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;gap:var(--spacing-xl);min-height:0;height:auto}.admin-section.card{display:flex;flex-direction:column;gap:var(--spacing-lg);min-height:0;height:auto;flex:none;overflow:visible}.admin-section .page-header{padding-bottom:var(--spacing-md);margin-bottom:0}.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--spacing-lg)}.stat-card{display:flex;flex-direction:column;gap:var(--spacing-sm);cursor:default}.stat-card.card.active{outline:2px solid var(--primary-color);outline-offset:2px;cursor:pointer}.stats-grid .stat-card.card:hover{transform:translateY(-1px);transition:transform .1s ease}.stat-card-header{display:flex;align-items:center;gap:var(--spacing-md)}.stat-icon{width:24px;height:24px;color:var(--text-secondary-color)}.stat-card-header h3{font-size:1rem;color:var(--text-secondary-color);font-weight:500}.stat-card p{font-size:2rem;font-weight:600}.dashboard-main-content{display:flex;flex-direction:column;gap:var(--spacing-xl)}.chart-card{display:flex;flex-direction:column;gap:var(--spacing-md)}.app-stats-table .table__header,.app-stats-table .table__row{grid-template-columns:2fr 1fr 1fr 1fr 1fr 1.2fr;padding-left:0;padding-right:0;gap:var(--spacing-sm)}.app-stats-table .table__header span,.app-stats-table .table__row span{white-space:nowrap}.success-rate-cell{display:flex;align-items:center;gap:8px}.success-rate-bar-container{flex:1;min-width:100px;height:6px;background-color:var(--border-color);border-radius:3px}.success-rate-bar{height:100%;border-radius:3px}.line-chart-svg{width:100%;height:auto}.line-chart-svg .grid-line{stroke:var(--border-color);stroke-width:1;stroke-dasharray:2,2}.line-chart-svg .axis-label{font-size:12px;fill:var(--text-secondary-color)}.line-chart-svg .y-axis{text-anchor:end}.line-chart-svg .x-axis{text-anchor:middle}.line-chart-svg .data-line{fill:none;stroke:var(--primary-color);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.line-chart-svg .area-fill{stroke:none;fill:url(#area-gradient)}.line-chart-svg .data-point{fill:var(--primary-color);stroke:var(--panel-background);stroke-width:2}.dashboard-time-filter,.dashboard-time-filter .custom-date-range{display:flex;align-items:center;gap:var(--spacing-sm)}.dashboard-time-filter .date-pickers{display:inline-flex;align-items:center;gap:var(--spacing-xs);margin-left:var(--spacing-sm)}.dashboard-time-filter .date-pickers input{background:var(--secondary-color);border:1px solid var(--border-color);color:var(--text-color);border-radius:var(--border-radius-sm);padding:.25rem .5rem}.user-table .table__header,.user-table .table__row{grid-template-columns:1fr 1.5fr 1fr 1fr 1fr 1.5fr 140px}.app-table .table__header,.app-table .table__row{grid-template-columns:40px 50px 2fr 1fr 1.5fr 100px 140px}.recharge-packages-table .table__header,.recharge-packages-table .table__row{grid-template-columns:2fr 1fr 1fr 1fr 1fr .8fr 140px}.payment-methods-table .table__header,.payment-methods-table .table__row{grid-template-columns:1.5fr 1fr 1fr 1fr .8fr 140px}.orders-table .table__header,.orders-table .table__row{grid-template-columns:160px 120px 180px 100px 100px 120px 110px 170px 170px 170px}@media (max-width: 1200px){.orders-table .table__header,.orders-table .table__row{grid-template-columns:150px 120px 160px 90px 90px 110px 100px 160px 160px 160px}}@media (max-width: 992px){.orders-table .table__header,.orders-table .table__row{grid-template-columns:150px 120px 160px 90px 90px 110px 100px 160px 160px}.orders-table .table__header span:nth-child(10),.orders-table .table__row span:nth-child(10){display:none}}@media (max-width: 768px){.orders-table .table__header,.orders-table .table__row{grid-template-columns:150px 120px 160px 90px 90px 110px 100px 160px}.orders-table .table__header span:nth-child(9),.orders-table .table__row span:nth-child(9){display:none}}@media (max-width: 576px){.orders-table .table__header,.orders-table .table__row{grid-template-columns:150px 120px 160px 90px 90px 110px 100px}.orders-table .table__header span:nth-child(8),.orders-table .table__row span:nth-child(8),.orders-table .table__header span:nth-child(3),.orders-table .table__row span:nth-child(3){display:none}}@media (max-width: 1200px){.recharge-packages-table .table__header,.recharge-packages-table .table__row{grid-template-columns:2fr 1fr 1fr 1fr 1fr .8fr 100px}.payment-methods-table .table__header,.payment-methods-table .table__row{grid-template-columns:1.5fr 1fr 1fr 1fr 120px}}@media (max-width: 992px){.recharge-packages-table .table__header,.recharge-packages-table .table__row{grid-template-columns:2fr 1fr 1fr 1fr .8fr 90px}.payment-methods-table .table__header,.payment-methods-table .table__row{grid-template-columns:1.5fr 1fr 1fr 100px}.payment-methods-table .table__header span:nth-child(5),.payment-methods-table .table__row span:nth-child(5){display:none}}@media (max-width: 768px){.recharge-packages-table .table__header,.recharge-packages-table .table__row{grid-template-columns:2fr 1fr 1fr .8fr 80px}.recharge-packages-table .table__header span:nth-child(3),.recharge-packages-table .table__row span:nth-child(3){display:none}.payment-methods-table .table__header,.payment-methods-table .table__row{grid-template-columns:2fr 1fr 80px}.payment-methods-table .table__header span:nth-child(3),.payment-methods-table .table__row span:nth-child(3){display:none}}@media (max-width: 576px){.recharge-packages-table .table__header,.recharge-packages-table .table__row{grid-template-columns:2fr 1fr 70px}.recharge-packages-table .table__header span:nth-child(4),.recharge-packages-table .table__row span:nth-child(4){display:none}.payment-methods-table .table__header,.payment-methods-table .table__row{grid-template-columns:2fr 70px}.payment-methods-table .table__header span:nth-child(2),.payment-methods-table .table__row span:nth-child(2){display:none}}@media (max-width: 1200px){.user-table .table__header,.user-table .table__row{grid-template-columns:1fr 1.5fr 1fr 1fr 1fr 1fr 1.2fr 120px}}@media (max-width: 992px){.user-table .table__header,.user-table .table__row{grid-template-columns:1fr 1.5fr 1fr 1fr 1fr 1.2fr 100px}.user-table .table__header span:nth-child(3),.user-table .table__row span:nth-child(3){display:none}}@media (max-width: 768px){.user-table .table__header,.user-table .table__row{grid-template-columns:1fr 1.5fr 1fr 1fr 80px}.user-table .table__header span:nth-child(6),.user-table .table__row span:nth-child(6){display:none}}@media (max-width: 576px){.admin-container{padding:var(--spacing-md);gap:var(--spacing-sm)}.admin-header{padding-bottom:var(--spacing-sm);flex-direction:column;gap:var(--spacing-sm);align-items:stretch}.admin-nav{flex-wrap:wrap;gap:var(--spacing-xs)}.admin-nav button{padding:.5rem .8rem;font-size:.8rem;flex:1;min-width:80px}.admin-section-wrapper{gap:var(--spacing-sm)}.admin-section.card{padding:var(--spacing-sm);gap:var(--spacing-sm);min-height:auto;height:auto}.form-section{gap:var(--spacing-sm)}.form-section h3{font-size:1.1rem}.form-grid{grid-template-columns:1fr;gap:var(--spacing-sm)}.form-group{gap:var(--spacing-xs)}.form-group label{font-size:.9rem}.form-control,.form-control select,.form-control textarea{font-size:.9rem;padding:.6rem}.user-levels-editor{gap:var(--spacing-sm)}.level-editor-item{flex-direction:column;gap:var(--spacing-xs);padding:var(--spacing-sm)}.condition-type-switch{width:100%}.condition-type-switch button{font-size:.8rem;padding:.5rem}.form-group-inline{flex-direction:column;align-items:stretch;gap:var(--spacing-sm)}.form-group-inline span{font-size:.9rem}.toggle-switch{align-self:flex-end}.form-actions{flex-direction:column;gap:var(--spacing-sm)}.form-actions .btn{width:100%;justify-content:center}.table-wrapper{max-height:calc(100vh - 250px);min-height:350px}.user-table .table__header,.user-table .table__row{grid-template-columns:1fr 1fr 1fr 120px}.user-table .table__header span:nth-child(2),.user-table .table__row span:nth-child(2){display:none}.user-table .table__header span:nth-child(4),.user-table .table__row span:nth-child(4){display:none}.user-table .table__header span:nth-child(6),.user-table .table__row span:nth-child(6){display:none}.user-table .table__actions .btn,.app-table .table__actions .btn{font-size:.65rem;padding:.25rem .4rem;min-width:auto;white-space:nowrap}.user-table .table__actions,.app-table .table__actions{display:flex;gap:.15rem;justify-content:flex-end;flex-wrap:wrap}.app-table .table__header,.app-table .table__row{grid-template-columns:30px 60px 1fr 80px 100px}.app-table .table__header>*:nth-child(4),.app-table .table__row>*:nth-child(4){display:none}.app-table .table__header>*:nth-child(5),.app-table .table__row>*:nth-child(5){display:none}}.level-badge{background:var(--secondary-color);padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--border-radius-sm);font-size:.8em}.api-key-control-row{display:flex;align-items:center;gap:var(--spacing-md);flex-wrap:wrap}.api-key-control-row>*{flex-shrink:0}.api-key-control-row .input-with-button,.api-key-control-row .rh-status-results{flex:1 1 auto}.api-key-control-row .input-with-button{min-width:250px}.input-with-button{display:flex;gap:var(--spacing-sm)}.rh-status-results{background-color:var(--background-color);border:1px solid var(--border-color);border-radius:var(--border-radius-md);padding:0 var(--spacing-md);min-height:44px;display:flex;align-items:center;justify-content:center}.rh-status-display{display:flex;align-items:center;gap:var(--spacing-md)}.rh-status-display span{color:var(--text-secondary-color)}.rh-status-display strong{color:var(--text-color)}.rh-status-divider{width:1px;height:1.2em;background-color:var(--border-color)}.bulk-actions-bar{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-sm) var(--spacing-md);background-color:color-mix(in srgb,var(--primary-color) 10%,transparent);border:1px solid var(--border-color);border-radius:var(--border-radius-md);margin-bottom:var(--spacing-lg)}.bulk-actions-buttons{display:flex;gap:var(--spacing-sm)}.database-actions-section{padding-top:var(--spacing-lg);border-top:1px solid var(--border-color)}.database-actions-section h3{margin-bottom:var(--spacing-xs)}.database-actions{margin-top:var(--spacing-md);display:flex;gap:var(--spacing-md)}.form-check-group{display:flex;gap:var(--spacing-lg);margin-top:var(--spacing-sm);flex-direction:row;align-items:center}.user-levels-editor{display:flex;flex-direction:column;gap:var(--spacing-md)}.level-editor-item{display:grid;grid-template-columns:minmax(150px,2fr) 1fr 1fr 1fr 40px;gap:var(--spacing-md);align-items:center;width:100%;box-sizing:border-box;overflow:visible}.condition-type-switch{display:flex;border:1px solid #6b7280;border-radius:22px;overflow:hidden;height:44px;background:#6b7280;position:relative;width:100%;max-width:100%;box-sizing:border-box}.condition-type-switch button{flex:1;padding:.5rem;border:none;background:transparent;color:#fff;cursor:pointer;position:relative;z-index:2;transition:color .3s ease;font-weight:500}.condition-type-switch button.active{color:#fff}.condition-type-switch:before{content:"";position:absolute;top:2px;left:2px;width:calc(50% - 2px);height:calc(100% - 4px);background:var(--primary-color);border-radius:20px;transition:transform .3s ease;z-index:1;box-shadow:0 1px 3px #0000004d}.condition-type-switch.second-active:before{transform:translate(100%)}.condition-type-switch:hover{background:#9ca3af}.remove-level-btn{background:none;border:none;color:var(--text-secondary-color);font-size:1.5rem;cursor:pointer;padding:0;line-height:1;display:flex;align-items:center;justify-content:center}.remove-level-btn:hover:not(:disabled){color:var(--danger-color)}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:var(--spacing-lg)}.gallery-item{position:relative;overflow:hidden;border-radius:var(--border-radius-md);cursor:pointer;aspect-ratio:1 / 1;background-color:var(--background-color)}.gallery-item img,.gallery-item video{width:100%;height:100%;object-fit:cover;transition:transform .4s var(--ease-out-expo)}.gallery-item:hover img,.gallery-item:hover video{transform:scale(1.05)}.gallery-item-info{position:absolute;bottom:0;left:0;right:0;padding:var(--spacing-md);background:linear-gradient(to top,rgba(0,0,0,.8),transparent);color:#fff;opacity:0;transform:translateY(20px);transition:opacity .3s,transform .3s}.gallery-item:hover .gallery-item-info{opacity:1;transform:translateY(0)}.gallery-preview-content{position:relative;width:90vw;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--spacing-lg);max-height:95vh}.gallery-media-wrap{position:relative;display:flex;align-items:center;justify-content:center}.gallery-preview-content .modal__close-btn{position:absolute;top:var(--spacing-lg);right:var(--spacing-lg);transform:none;background-color:var(--panel-background-translucent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff;border:var(--border-width) solid var(--border-color);border-radius:50%;width:36px;height:36px;padding:0;display:flex;align-items:center;justify-content:center;z-index:10;transition:background-color .2s,transform .2s}.gallery-preview-content .modal__close-btn:hover{background-color:var(--danger-color);transform:scale(1.05);color:#fff}.gallery-preview-image{max-width:100%;max-height:80vh;object-fit:contain;border-radius:var(--border-radius-md);background-color:#000}.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:var(--border-width) solid var(--border-color);background:var(--panel-background-translucent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff;display:flex;align-items:center;justify-content:center;z-index:9;cursor:pointer;transition:background-color .2s ease,transform .2s ease;-webkit-user-select:none;user-select:none}.gallery-nav--prev{left:var(--spacing-sm)}.gallery-nav--next{right:var(--spacing-sm)}.gallery-nav:hover{background-color:var(--primary-color);color:var(--primary-text-color);transform:translateY(-50%) scale(1.05)}.gallery-preview-controls{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:600px}.gallery-preview-info{font-weight:600}.gallery-preview-time{color:var(--text-secondary-color);font-size:.9rem;margin-left:var(--spacing-md)}.gallery-preview-actions{display:flex;gap:var(--spacing-md)}.gallery-preview-actions .btn{gap:var(--spacing-sm)}.gallery-expire-notice{color:var(--text-secondary-color);font-size:.85rem;margin-top:4px}.confirm-dialog{position:fixed;left:0;right:0;top:0;bottom:0;display:flex;align-items:center;justify-content:center;background:#00000059;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:2000}.confirm-content{width:90vw;max-width:420px;background:var(--panel-background);border:1px solid var(--border-color);border-radius:var(--border-radius-lg);box-shadow:0 10px 30px var(--shadow-color);padding:var(--spacing-xl)}.confirm-content p{margin:0;font-size:.95rem;color:var(--text-color)}.confirm-actions{display:flex;justify-content:flex-end;gap:var(--spacing-md);margin-top:var(--spacing-lg)}.history-list.table .table__header,.history-list.table .table__row{grid-template-columns:2fr 2fr 1.5fr 1fr 1fr}.credit-change.positive{color:var(--success-color)}.credit-change.negative{color:var(--danger-color)}.time-filter{display:flex;gap:var(--spacing-sm)}.time-filter button{background:transparent;border:1px solid var(--border-color);color:var(--text-secondary-color);padding:.5rem 1rem;border-radius:var(--border-radius-md)}.time-filter button.active{background:var(--primary-color);border-color:var(--primary-color);color:var(--primary-text-color)}.user-settings-card{max-width:800px;margin:0 auto;background-color:var(--panel-background);border:1px solid var(--border-color);border-radius:var(--border-radius-lg);padding:var(--spacing-xl)}.user-settings-card h2{text-align:center;margin-bottom:var(--spacing-xl)}.debug-pane__section{display:flex;flex-direction:column}.debug-pane__section--output{flex-grow:1}.debug-output-content{flex-grow:1;background-color:var(--background-color);border-radius:var(--border-radius-md);padding:var(--spacing-md);overflow-y:auto;font-family:monospace;font-size:.8rem}.api-debug-info{margin-bottom:var(--spacing-sm)}.api-debug-info pre{margin-top:var(--spacing-xs);padding:var(--spacing-sm);background-color:var(--secondary-color);border-radius:var(--border-radius-sm)}.cost-config-section{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:var(--spacing-md);margin-top:var(--spacing-lg);margin-bottom:var(--spacing-lg)}.cost-config-section .divider{color:var(--text-secondary-color);font-weight:500}.node-editor-main{margin-top:var(--spacing-xl);border-top:1px solid var(--border-color);padding-top:var(--spacing-lg)}.node-editor-list{display:flex;flex-direction:column;gap:var(--spacing-md)}.node-editor-item{background-color:var(--background-color);border:1px solid var(--border-color);border-radius:var(--border-radius-md)}.node-editor-header{display:flex;align-items:center;gap:var(--spacing-md);padding:.75rem var(--spacing-md);border-bottom:1px solid var(--border-color)}.node-editor-type-badge{background-color:var(--border-color);padding:.2rem .5rem;border-radius:var(--border-radius-sm);font-size:.8rem;color:var(--text-secondary-color)}.node-header-controls{margin-left:auto;display:flex;align-items:center;gap:var(--spacing-sm);font-size:.9rem}.remove-node-btn{background:none;border:none;color:var(--text-secondary-color);cursor:pointer;font-size:1.5rem;font-weight:300;padding:0 .5rem}.remove-node-btn:hover{color:var(--danger-color)}.node-editor-content{padding:var(--spacing-md);display:grid;grid-template-columns:1fr 1fr;gap:var(--spacing-md) var(--spacing-lg)}.full-width{grid-column:1 / -1}.options-editor{display:flex;flex-direction:column;gap:var(--spacing-sm)}.option-item{display:flex;align-items:center;gap:var(--spacing-sm)}.remove-option-btn{background:none;border:none;color:var(--text-secondary-color);font-size:1.5rem;cursor:pointer;padding:0;line-height:1}.add-control-buttons{margin-top:var(--spacing-lg);display:flex;flex-wrap:wrap;gap:var(--spacing-sm)}.add-control-buttons button{background-color:var(--border-color);color:var(--text-color);border:none;border-radius:var(--border-radius-sm);padding:var(--spacing-sm) var(--spacing-md);font-size:.8rem;cursor:pointer}.add-control-buttons button:hover{background-color:var(--border-color-light)}.cookie-consent-banner{position:fixed;bottom:0;left:0;right:0;background-color:var(--panel-background-translucent);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);padding:var(--spacing-md);z-index:1500;border-top:1px solid var(--border-color);animation:slideInUp .5s var(--ease-out-expo)}.cookie-consent-content{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-lg)}.cookie-consent-content p{color:var(--text-secondary-color);font-size:.9rem;line-height:1.5;margin:0}@media (max-width: 1200px){.page-container,.admin-container{padding:var(--spacing-xl)}}@media (max-width: 992px){.app-container.active{position:relative;overflow:hidden;display:flex;flex-direction:column;height:100%}.controls-panel{height:100%;border-right:none;border-bottom:none;position:relative}.output-panel{position:absolute;bottom:0;left:0;right:0;height:60vh;min-height:0;flex-grow:0;background-color:var(--panel-background);border-top:var(--border-width) solid var(--border-color);border-radius:var(--border-radius-lg) var(--border-radius-lg) 0 0;box-shadow:0 -4px 25px var(--shadow-color);transform:translateY(100%);transition:transform .4s var(--ease-out-expo),height .4s var(--ease-out-expo);z-index:10}.output-panel.visible{transform:translateY(0)}.main-content.tasks-visible .app-container{padding-right:0}.main-content.tasks-visible .running-tasks-sidebar{transform:translate(100%)}.mobile-task-indicator{display:inline-flex;align-items:center;gap:var(--spacing-sm);background-color:var(--panel-background-translucent);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-lg);border:1px solid var(--border-color);box-shadow:0 4px 15px var(--shadow-color);font-size:.9rem;font-weight:500;color:var(--text-secondary-color);animation:slideInUp .4s var(--ease-out-expo);margin-bottom:var(--spacing-md)}.running-tasks-sidebar{width:250px}.admin-header{flex-direction:column;align-items:flex-start;gap:var(--spacing-md)}.admin-nav{flex-wrap:wrap}.api-key-control-row,.dashboard-main-content{grid-template-columns:1fr}.table-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch}.table{min-width:100%;width:100%}.app-table .table__header,.app-table .table__row{grid-template-columns:40px 1fr 80px 100px}.app-table .table__header span:nth-child(4),.app-table .table__row span:nth-child(4),.app-table .table__header span:nth-child(5),.app-table .table__row span:nth-child(5){display:none}.form-grid,.level-editor-item{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}}@media (max-width: 768px){.page-container,.admin-container{padding:var(--spacing-lg)}.page-container{padding-bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom))}.page-title,.admin-header h1{font-size:1.5rem}.header{padding:var(--spacing-sm) var(--spacing-lg);position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;z-index:1000;border-top:var(--border-width) solid var(--border-color);border-bottom:none}.page-wrapper{padding-bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom))}.home-container{height:auto}.home-apps-grid{grid-template-columns:1fr;padding:var(--spacing-md)}.hero-content{margin-top:var(--spacing-md)}.dropdown-content{top:auto;bottom:120%}.user-dropdown{top:auto;bottom:130%}.admin-container{gap:var(--spacing-md)}.admin-header{padding-bottom:var(--spacing-md)}.admin-section-wrapper{gap:var(--spacing-md)}.admin-section.card{padding:var(--spacing-md);gap:var(--spacing-md);min-height:auto;height:auto}.form-section{gap:var(--spacing-md)}.form-grid{grid-template-columns:1fr;gap:var(--spacing-md)}.table-wrapper{max-height:calc(100vh - 300px);min-height:400px}.hero-title{font-size:2.5rem}.hero-subtitle{font-size:1rem}.modal{max-width:95vw}.modal__header{padding:var(--spacing-md) var(--spacing-lg)}.modal__body,.modal__main-pane,.modal__debug-pane{padding:var(--spacing-lg)}.modal--debug .modal__body-container{grid-template-columns:1fr}.modal--debug .modal__debug-pane{border-left:none;border-top:1px solid var(--border-color)}.modal__footer{flex-direction:column;align-items:stretch}.modal__footer>div{flex-grow:0!important}.modal__footer .btn{width:100%}.gallery-preview-content{width:95vw;max-height:92vh}.gallery-nav{width:36px;height:36px}.gallery-preview-controls{flex-direction:column;gap:var(--spacing-md);padding:var(--spacing-md)}.gallery-preview-info,.gallery-expire-notice{text-align:center}.page-header{flex-direction:column;align-items:flex-start;gap:var(--spacing-md)}.dashboard-time-filter{flex-wrap:wrap;width:100%}.cookie-consent-content{flex-direction:column;text-align:center;gap:var(--spacing-md)}}.recharge-page{max-width:1200px;margin:0 auto;padding:var(--spacing-xl)}.recharge-header{text-align:center;margin-bottom:var(--spacing-xxl)}.recharge-header h1{font-size:2.5rem;font-weight:700;color:var(--text-color);margin-bottom:var(--spacing-md)}.recharge-header p{font-size:1.1rem;color:var(--text-secondary-color)}.packages-section{margin-bottom:var(--spacing-xxl)}.packages-section h2{font-size:1.5rem;font-weight:600;color:var(--text-color);margin-bottom:var(--spacing-lg)}.packages-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:var(--spacing-lg)}.package-card{position:relative;background:var(--panel-background);border:2px solid var(--border-color);border-radius:var(--border-radius-lg);padding:var(--spacing-xl);cursor:pointer;transition:all .3s var(--ease-out-expo);overflow:hidden}.package-card:hover{border-color:var(--primary-color);box-shadow:0 8px 25px var(--glow-color);transform:translateY(-2px)}.package-card.selected{border-color:var(--primary-color);background:linear-gradient(135deg,var(--panel-background) 0%,rgba(88,166,255,.05) 100%);box-shadow:0 8px 25px var(--glow-color)}.package-card.popular:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--primary-color),var(--primary-hover-color))}.popular-badge{position:absolute;top:var(--spacing-md);right:var(--spacing-md);background:var(--primary-color);color:var(--primary-text-color);padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--border-radius-sm);font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.package-header h3{font-size:1.25rem;font-weight:600;color:var(--text-color);margin-bottom:var(--spacing-sm)}.package-header .description{font-size:.9rem;color:var(--text-secondary-color);margin-bottom:var(--spacing-lg)}.package-credits{display:flex;align-items:baseline;gap:var(--spacing-sm);margin-bottom:var(--spacing-md)}.package-credits .credits{font-size:2.5rem;font-weight:700;color:var(--primary-color)}.package-credits .credits-label{font-size:1rem;color:var(--text-secondary-color)}.package-credits .bonus{background:var(--success-color);color:var(--primary-text-color);padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--border-radius-sm);font-size:.75rem;font-weight:600;margin-left:auto}.package-price{display:flex;align-items:baseline;gap:var(--spacing-sm)}.package-price .current-price{font-size:1.5rem;font-weight:700;color:var(--text-color)}.package-price .original-price{font-size:1rem;color:var(--text-secondary-color);text-decoration:line-through}.payment-section{margin-bottom:var(--spacing-xxl)}.payment-section h2{font-size:1.5rem;font-weight:600;color:var(--text-color);margin-bottom:var(--spacing-lg)}.payment-methods{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:var(--spacing-md)}.payment-method{display:flex;align-items:center;gap:var(--spacing-md);background:var(--panel-background);border:2px solid var(--border-color);border-radius:var(--border-radius-md);padding:var(--spacing-lg);cursor:pointer;transition:all .3s var(--ease-out-expo)}.payment-method:hover{border-color:var(--primary-color);box-shadow:0 4px 15px var(--glow-color)}.payment-method.selected{border-color:var(--primary-color);background:linear-gradient(135deg,var(--panel-background) 0%,rgba(88,166,255,.05) 100%);box-shadow:0 4px 15px var(--glow-color)}.method-icon{font-size:1.5rem}.method-name{font-weight:600;color:var(--text-color)}.confirm-section{background:var(--panel-background);border:1px solid var(--border-color);border-radius:var(--border-radius-lg);padding:var(--spacing-xl)}.order-summary h3{font-size:1.25rem;font-weight:600;color:var(--text-color);margin-bottom:var(--spacing-lg)}.summary-item{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-md) 0;border-bottom:1px solid var(--border-color)}.summary-item:last-child{border-bottom:none}.summary-item.total{font-weight:600;font-size:1.1rem;padding-top:var(--spacing-lg);border-top:2px solid var(--border-color)}.summary-item .price{font-size:1.25rem;font-weight:700;color:var(--primary-color)}.create-order-btn{width:100%;margin-top:var(--spacing-lg);padding:var(--spacing-lg);font-size:1.1rem;font-weight:600}.order-container{max-width:600px;margin:0 auto;background:var(--panel-background);border:1px solid var(--border-color);border-radius:var(--border-radius-lg);padding:var(--spacing-xl)}.order-header{text-align:center;margin-bottom:var(--spacing-xl)}.order-header h2{font-size:1.5rem;font-weight:600;color:var(--text-color);margin-bottom:var(--spacing-md)}.order-status{display:inline-block;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-sm);font-size:.9rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.order-status.pending{background:#ffc10733;color:#ffc107;border:1px solid #ffc107}.order-info{margin-bottom:var(--spacing-xl)}.order-item{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-md) 0;border-bottom:1px solid var(--border-color)}.order-item:last-child{border-bottom:none}.order-item .label{color:var(--text-secondary-color)}.order-item .value{font-weight:600;color:var(--text-color)}.order-item .value.price{font-size:1.1rem;color:var(--primary-color)}.payment-qr{text-align:center;margin-bottom:var(--spacing-xl)}.payment-qr h3{font-size:1.25rem;font-weight:600;color:var(--text-color);margin-bottom:var(--spacing-lg)}.qr-container{display:inline-block;padding:var(--spacing-lg);background:#fff;border-radius:var(--border-radius-md);margin-bottom:var(--spacing-lg);box-shadow:0 4px 15px var(--shadow-color)}.qr-container img{display:block;max-width:200px;height:auto}.payment-tip{color:var(--text-secondary-color);font-size:.9rem}.order-actions{display:flex;gap:var(--spacing-md);justify-content:center}.order-actions .btn{flex:1;max-width:200px}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:var(--spacing-lg)}.loading-spinner{width:40px;height:40px;border:3px solid var(--border-color);border-top:3px solid var(--primary-color);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 768px){.recharge-page{padding:var(--spacing-lg)}.recharge-header h1{font-size:2rem}.packages-grid,.payment-methods{grid-template-columns:1fr}.order-actions{flex-direction:column}.order-actions .btn{max-width:none}}.coupon-section{margin:2rem 0}.coupon-section h2{color:var(--text-primary);margin-bottom:1rem;font-size:1.25rem;font-weight:600}.coupon-input-container{background:var(--bg-secondary);border-radius:12px;padding:1.5rem;border:1px solid var(--border-color)}.coupon-input-group{display:flex;gap:.75rem;margin-bottom:1rem}.coupon-input{flex:1;padding:.75rem 1rem;border:2px solid var(--border-color);border-radius:8px;font-size:1rem;background:var(--bg-primary);color:var(--text-primary);transition:all .2s ease}.coupon-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #3b82f61a}.coupon-input.valid{border-color:var(--success-color);background:#22c55e0d}.coupon-input.error{border-color:var(--error-color);background:#ef44440d}.coupon-input:disabled{opacity:.6;cursor:not-allowed}.coupon-btn{padding:.75rem 1.5rem;font-weight:500;min-width:80px;white-space:nowrap}.coupon-message{display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:8px;font-size:.9rem;margin-bottom:1rem}.coupon-message.success{background:#22c55e1a;color:var(--success-color);border:1px solid rgba(34,197,94,.2)}.coupon-message.error{background:#ef44441a;color:var(--error-color);border:1px solid rgba(239,68,68,.2)}.message-icon{font-size:1rem}.coupon-tips{padding:1rem;background:#3b82f60d;border-radius:8px;border:1px solid rgba(59,130,246,.1)}.coupon-tips p{margin:0 0 .75rem;color:var(--text-secondary);font-size:.9rem}.tips-codes{display:flex;flex-wrap:wrap;gap:.5rem}.tip-code{background:var(--primary-color);color:#fff;padding:.25rem .5rem;border-radius:4px;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .2s ease}.tip-code:hover{background:var(--primary-hover);transform:translateY(-1px)}.summary-item.discount{color:var(--success-color)}.discount-amount{font-weight:600}.original-price-small{display:block;font-size:.8rem;color:var(--text-secondary);text-decoration:line-through;font-weight:400;margin-top:.25rem}@media (max-width: 576px){.coupon-input-group{flex-direction:column}.coupon-btn{min-width:auto}.tips-codes{justify-content:center}}.admin-container .recharge-controls{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px}.admin-container .table.recharge-packages .table__header,.admin-container .table.recharge-packages .table__row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;align-items:center;column-gap:12px}.payment-methods-table .table__header,.payment-methods-table .table__row{grid-template-columns:2fr 1fr 1fr 140px;gap:var(--spacing-sm)}.usage-table .table__header,.usage-table .table__row,.history-list.table.usage-table .table__header,.history-list.table.usage-table .table__row{grid-template-columns:180px 180px 180px 120px 120px;grid-auto-flow:column}.recharge-table .table__header,.recharge-table .table__row,.history-list.table.recharge-table .table__header,.history-list.table.recharge-table .table__row{grid-template-columns:180px 170px 180px 120px 120px 120px 120px;grid-auto-flow:column}.usage-table .table__header span,.usage-table .table__row span,.recharge-table .table__header span,.recharge-table .table__row span{white-space:nowrap}
