body[data-auth=pending]{visibility:hidden}.subaccounts-layout{height:calc(100vh - 85px);display:grid;grid-template-columns:320px 1fr;gap:16px;overflow:hidden}@media(max-width:992px){.subaccounts-layout{grid-template-columns:1fr;height:auto}}.subaccounts-sidebar{background:#fff;border-radius:12px;border:1px solid #e9ecef;display:flex;flex-direction:column;overflow:hidden;min-height:0;max-height:100%}.subaccounts-header{padding:16px;border-bottom:1px solid #e9ecef;background:linear-gradient(135deg,#f8f9fa,#e9ecef);flex-shrink:0}.subaccounts-list{overflow-y:auto;padding:8px;min-height:0;flex:1}.subaccount-item{display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;border:1px solid #e9ecef;background:#ffffffe6;cursor:pointer;margin-bottom:8px;transition:all .15s ease}.subaccount-item:hover{background:#f8f9fac2;transform:translateY(-1px);box-shadow:0 4px 12px #0000000f}.subaccount-item.active{border-left:3px solid #667eea;background:#667eea14}.subaccount-color{width:24px;height:24px;border-radius:6px;flex-shrink:0;border:2px solid #fff;box-shadow:0 2px 4px #0000001a}.subaccount-info{flex:1;min-width:0}.subaccount-name{font-weight:600;color:#212529;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px}.subaccount-description{color:#6c757d;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.subaccount-status{flex-shrink:0}.status-badge{padding:2px 6px;border-radius:10px;font-size:10px;font-weight:600;text-transform:uppercase}.status-active{background-color:#e8f5e8;color:#2e7d32}.status-inactive{background-color:#ffebee;color:#d32f2f}.subaccount-details{background:#fff;border-radius:12px;border:1px solid #e9ecef;overflow-y:auto;min-height:0;display:flex;flex-direction:column}.details-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:16px 20px;flex-shrink:0;display:flex;justify-content:between;align-items:center}.details-content{padding:20px;flex:1;overflow-y:auto}.form-section{margin-bottom:24px;padding:20px;border:1px solid #e9ecef;border-radius:8px;background:#fafbfc}.section-title{color:#495057;font-weight:600;margin-bottom:12px;display:flex;align-items:center;gap:8px;font-size:.95rem}.ai-prompt-preview{background:#f8f9fa;padding:12px;border-radius:6px;font-family:monospace;font-size:.85rem;max-height:120px;overflow-y:auto;white-space:pre-wrap}.message-sequences{background:#f8f9fa;padding:16px;border-radius:6px}.sequence-group{border-left:3px solid #667eea;padding-left:12px}.sequence-title{color:#495057;font-weight:600;font-size:.9rem;margin-bottom:8px}.messages-grid{display:grid;gap:8px}.message-item{background:#fff;padding:8px 12px;border-radius:4px;border:1px solid #e9ecef}.message-label{font-size:.8rem;color:#6c757d;font-weight:500;display:block;margin-bottom:4px}.message-content{font-size:.85rem;color:#495057;line-height:1.3}.remarket-messages{background:#fff3e0;padding:16px;border-radius:6px}.remarket-item{background:#fff;padding:8px 12px;border-radius:4px;border:1px solid #ffcc80}.remarket-label{font-size:.8rem;color:#e65100;font-weight:500;display:block;margin-bottom:4px}.remarket-content{font-size:.85rem;color:#bf360c;line-height:1.3}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.form-row.full-width{grid-template-columns:1fr}.form-group{margin-bottom:16px}.form-label{font-weight:500;color:#495057;margin-bottom:6px;display:block;font-size:.95rem}.form-control{border-radius:8px;border:1px solid #ced4da;padding:10px 12px;transition:border-color .2s}.form-control:focus{border-color:#667eea;box-shadow:0 0 0 .2rem #667eea26}.modal-xl .modal-dialog{max-width:90%}.section-card{border:1px solid #e9ecef;border-radius:8px;padding:16px;background:#f8f9fa}.section-header{color:#495057;font-weight:600;margin-bottom:12px;display:flex;align-items:center;gap:8px;padding-bottom:8px;border-bottom:1px solid #dee2e6}.sequence-editor{border:1px solid #dee2e6;border-radius:6px;padding:12px;background:#fff}.sequence-title{color:#495057;font-weight:600;font-size:.95rem;margin-bottom:8px}@media(max-width:768px){.campaign-header{flex-direction:column;gap:12px}.campaign-actions{width:100%;display:flex;justify-content:flex-end}}.btn-warning{--bs-btn-bg: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-bg: #ffcd39;--bs-btn-hover-border-color: #ffcd39;--bs-btn-focus-shadow-rgb: 255, 193, 7;--bs-btn-active-bg: #ffcd39;--bs-btn-active-border-color: #ffc720;animation:pulse 2s infinite}@keyframes pulse{0%{box-shadow:0 0 #ffc107b3}70%{box-shadow:0 0 0 10px #ffc10700}to{box-shadow:0 0 #ffc10700}}.readonly-field{background-color:#f8f9fa!important;border-color:#e9ecef!important;cursor:not-allowed!important}.readonly-field:focus{box-shadow:none!important;border-color:#e9ecef!important}.form-text .bi-lock-fill{color:#6c757d}.gradient-picker-simple{max-width:400px;width:100%;position:static;display:block}.gradient-preview-bar{position:static;height:48px;border-radius:8px;border:2px solid #dee2e6;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 12px #0000001a;overflow:hidden;display:flex;width:100%;margin:0}.gradient-preview-bar:hover{border-color:#000;box-shadow:0 4px 16px #667eea33;transform:translateY(-1px)}.gradient-stop{position:relative;flex:1;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;user-select:none;margin:0;padding:0}.gradient-stop:hover{background:#ffffff26}.gradient-stop.start-stop{border-radius:6px 0 0 6px}.gradient-stop.end-stop{border-radius:0 6px 6px 0}.hidden-color-input{position:fixed;width:40px;height:40px;border:none;background:transparent;opacity:0;pointer-events:none;z-index:-1}.hex-text{font-family:Courier New,monospace;font-size:.7rem;font-weight:500;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.4);background:#0003;padding:4px 8px;border-radius:6px;backdrop-filter:blur(4px);transition:all .2s ease;text-transform:uppercase;letter-spacing:.5px;position:static;margin:0}.gradient-stop:hover .hex-text{background:#0006;transform:scale(1.05)}.checkbox-group{display:flex;flex-wrap:wrap;gap:12px}.checkbox-item{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #e9ecef;border-radius:6px;background:#fff;cursor:pointer;transition:all .2s}.checkbox-item:hover{background:#f8f9fa;border-color:#667eea}.checkbox-item input:checked+label{background:#667eea1a;border-color:#667eea}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;padding:10px 20px;font-weight:600}.btn-outline-secondary{border-radius:8px;padding:12px 20px}.empty-state{text-align:center;padding:40px 20px;color:#6c757d}.empty-state i{font-size:3rem;margin-bottom:16px;color:#dee2e6}.app-content{padding:.5rem}.loading-overlay{position:absolute;inset:0;background:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000;opacity:0;pointer-events:none;transition:opacity .2s}.loading-overlay.show{opacity:1;pointer-events:all}@media(max-width:768px){.gradient-preview-bar{height:44px}.hex-text{font-size:.65rem;padding:3px 6px}}.api-key-item.compact{border:1px solid #e9ecef;border-radius:6px;background:#fff;margin-bottom:8px;transition:all .2s ease;overflow:hidden}.api-key-item.compact:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a}.api-key-header-compact{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px}.api-key-name-section{flex:1;min-width:0;margin-right:12px}.api-key-name{font-weight:600;color:#495057;font-size:.9rem;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.api-key-meta-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:2px}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0}.status-dot.active{background-color:#28a745}.status-dot.inactive{background-color:#dc3545}.meta-text{font-size:.75rem;color:#6c757d;font-weight:500}.meta-text{font-size:.7rem;color:#6c757d;font-weight:500;white-space:nowrap}.api-key-actions-compact{display:flex;gap:3px;flex-shrink:0}.btn-icon{width:24px;height:24px;border:1px solid #dee2e6;background:#fff;border-radius:3px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;font-size:.7rem;color:#6c757d}.btn-icon:hover{border-color:#667eea;background:#f8f9fa;color:#667eea;transform:translateY(-1px)}.btn-icon.warning:hover{border-color:#ffc107;color:#ffc107}.btn-icon.danger:hover{border-color:#dc3545;color:#dc3545}.api-key-value-row{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f8f9fa;padding:6px 8px;border-radius:3px;border:1px solid #e9ecef}.api-key-display{flex:1;min-width:0}.api-key-value{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.75rem;color:#495057;background:transparent;word-break:break-all;line-height:1.2}.api-key-extras{display:flex;gap:4px;flex-wrap:nowrap;align-items:center;flex-shrink:0}.extra-item{display:flex;align-items:center;gap:2px;font-size:.65rem;color:#6c757d;background:#fff;padding:1px 4px;border-radius:2px;border:1px solid #dee2e6;white-space:nowrap}.extra-item i{font-size:.6rem;opacity:.8}@media(max-width:768px){.api-key-header-compact{flex-direction:column;align-items:stretch;gap:8px}.api-key-name-section{margin-right:0}.api-key-actions-compact{justify-content:flex-end}.api-key-value-row{flex-direction:column;align-items:stretch;gap:6px}.api-key-extras{justify-content:flex-start}}@media(max-width:576px){.btn-icon{width:28px;height:28px}.api-key-actions-compact{gap:4px}}.btn-icon.copied{background:#28a745;color:#fff;border-color:#28a745}.api-keys-list{max-height:300px;overflow-y:auto}.api-keys-section{border-top:1px solid #e9ecef;padding-top:16px}.api-keys-list{max-height:400px;overflow-y:auto}.api-key-card{border:1px solid #e9ecef;border-radius:8px;background:#fff;margin-bottom:16px;transition:all .2s ease}.api-key-card:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a}.api-key-header{padding:16px;border-bottom:1px solid #f8f9fa;display:flex;justify-content:space-between;align-items:flex-start}.api-key-title h6{color:#495057;margin-bottom:8px}.api-key-badges .badge{margin-right:4px;margin-bottom:2px}.api-key-details{padding:12px 16px;background:#f8f9fa}.api-key-preview{display:flex;align-items:center;background:#fff;padding:8px 12px;border-radius:4px;border:1px solid #dee2e6;gap:8px}.api-key-main{padding:12px}.api-key-code{font-size:.8rem;color:#495057;background:transparent;border:none;padding:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;flex:1;min-width:0;word-break:break-all;line-height:1.2}.copy-btn{flex-shrink:0;padding:4px 8px;min-width:auto;height:auto}.notes-content{background:#f8f9fa;padding:8px;border-radius:4px;border-left:3px solid #667eea;line-height:1.4;word-wrap:break-word}.api-key-actions{display:flex;gap:8px}@media(max-width:768px){.api-key-header{flex-direction:column;gap:12px}.api-key-actions{width:100%;justify-content:flex-end}}@media(max-width:768px){.api-key-preview{flex-direction:column;align-items:stretch;gap:8px}.api-key-code{font-size:.75rem}.copy-btn{align-self:center;width:80px}}.campaigns-section{border-top:1px solid #e9ecef;padding-top:16px}.campaigns-list{max-height:400px;overflow-y:auto}.campaign-item{border:1px solid #e9ecef;border-radius:8px;padding:16px;margin-bottom:12px;background:#fff;transition:all .2s ease}.campaign-item:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a}.campaign-card{border:1px solid #e9ecef;border-radius:8px;background:#fff;margin-bottom:16px;transition:all .2s ease}.campaign-card:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a}.campaign-header{padding:16px;border-bottom:1px solid #f8f9fa;display:flex;justify-content:space-between;align-items:flex-start}.campaign-title h6{color:#495057;margin-bottom:8px}.campaign-badges{display:flex;gap:4px;flex-wrap:wrap}.campaign-summary{padding:12px 16px;background:#f8f9fa}.message-preview{font-size:.9rem;color:#495057;line-height:1.4}.campaign-details{padding:0 16px 16px}.campaign-name{font-weight:600;color:#495057;margin:0}.campaign-type{background:#e9ecef;color:#495057;padding:2px 8px;border-radius:12px;font-size:.75rem;font-weight:500}.campaign-description{color:#6c757d;font-size:.9rem;margin-bottom:8px}.campaign-meta{display:flex;gap:16px;font-size:.8rem;color:#6c757d}.campaign-actions{display:flex;gap:8px}.campaign-form{border:1px solid #e9ecef;border-radius:8px;background:#f8f9fa}.detail-section{margin-bottom:20px}.prompt-editor{border:1px solid #ced4da;border-radius:8px;overflow:hidden}.prompt-toolbar{background:#f8f9fa;padding:8px 12px;border-bottom:1px solid #e9ecef;display:flex;align-items:center;gap:8px}.prompt-textarea{border:none;border-radius:0;resize:vertical;min-height:120px}.prompt-textarea:focus{box-shadow:none;border-color:transparent}.settings-title{color:#495057;font-weight:600;margin-bottom:8px;display:flex;align-items:center;gap:6px;font-size:.9rem}.webhook-urls{border-top:1px solid #e9ecef;padding-top:16px}.webhook-list{display:grid;gap:12px}.webhook-item{display:grid;gap:4px}.webhook-item label{font-size:.9rem;font-weight:500;color:#495057}.status-connected{background-color:#e8f5e8;color:#2e7d32}.status-testing{background-color:#fff3e0;color:#f57c00}.campaign-status-active{background-color:#e8f5e8;color:#2e7d32}.campaign-status-draft{background-color:#e3f2fd;color:#1976d2}.campaign-status-error{background-color:#ffebee;color:#d32f2f}
