.auth-section{min-height:70vh;display:flex;align-items:center;justify-content:center;padding:60px 0}.auth-card{max-width:440px;margin:0 auto;background:#fff;border-radius:16px;box-shadow:0 2px 20px rgba(0,0,0,.08);padding:40px;width:100%}.auth-header{text-align:center;margin-bottom:32px}.auth-header h1{font-size:28px;font-weight:600;color:#1a1a1a;margin:0 0 8px}.auth-header p{font-size:15px;color:#666;margin:0}.auth-form{display:flex;flex-direction:column;gap:20px}.auth-field{display:flex;flex-direction:column;gap:6px}.auth-field label{font-size:14px;font-weight:500;color:#333}.auth-field input{padding:12px 16px;border:1px solid #ddd;border-radius:8px;font-size:15px;transition:border-color .2s;outline:0}.auth-field input:focus{border-color:#007aff;box-shadow:0 0 0 3px rgba(0,122,255,.1)}.auth-error{font-size:13px;color:#e74c3c}.auth-options{display:flex;align-items:center;gap:8px}.auth-checkbox{display:flex;align-items:center;gap:8px;font-size:14px;color:#555;cursor:pointer}.auth-checkbox input[type=checkbox]{width:16px;height:16px;cursor:pointer}.auth-btn{padding:14px 24px;background:#007aff;color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:500;cursor:pointer;transition:background .2s}.auth-btn:hover{background:#0056cc}.auth-btn-logout{background:#e74c3c}.auth-btn-logout:hover{background:#c0392b}.auth-links{text-align:center}.auth-links a{font-size:14px;color:#007aff;text-decoration:none}.auth-links a:hover{text-decoration:underline}.tg-fab{position:fixed;bottom:24px;right:24px;height:56px;padding:0 20px;border-radius:28px;background:#3390ec;color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 2px 8px rgba(0,0,0,.2);z-index:1000;cursor:pointer;transition:transform .2s,box-shadow .2s;white-space:nowrap}.tg-fab-text{font-size:15px;font-weight:600;line-height:1}.tg-fab:hover{transform:scale(1.05);box-shadow:0 4px 16px rgba(0,0,0,.25)}.tg-popup{position:fixed;bottom:90px;right:24px;width:380px;max-width:calc(100vw - 48px);height:520px;max-height:calc(100vh - 120px);background:#fff;border-radius:12px;box-shadow:0 2px 24px rgba(0,0,0,.22);z-index:1001;display:flex;flex-direction:column;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}.tg-header{background:#3390ec;color:#fff;padding:8px 12px;display:flex;align-items:center;gap:12px;min-height:56px;flex-shrink:0}.tg-header-back{display:none}.tg-header-info{display:flex;align-items:center;gap:10px;flex:1}.tg-header-avatar{width:40px;height:40px;border-radius:50%;background:#c4e0f9;color:#3390ec;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex-shrink:0}.tg-header-text{display:flex;flex-direction:column}.tg-header-name{font-size:15px;font-weight:600;line-height:1.2}.tg-header-status{font-size:13px;opacity:.85;line-height:1.2}.tg-header-close{background:0 0;border:none;color:#fff;cursor:pointer;padding:4px;border-radius:50%;display:flex;align-items:center;justify-content:center;opacity:.8;transition:opacity .15s}.tg-header-close:hover{opacity:1}.tg-body{flex:1;overflow-y:auto;padding:8px 0;background:#e6ebee;display:flex;flex-direction:column;gap:2px}.tg-date-divider{text-align:center;padding:8px 0}.tg-date-divider span{background:rgba(0,0,0,.12);color:#fff;font-size:13px;font-weight:600;padding:2px 10px;border-radius:12px}.tg-msg{display:flex;flex-direction:column;padding:1px 10px;max-width:85%}.tg-msg--user{align-self:flex-end;align-items:flex-end}.tg-msg--ai{align-self:flex-start;align-items:flex-start}.tg-msg-bubble{padding:7px 12px;border-radius:12px;font-size:14px;line-height:1.4;word-wrap:break-word;position:relative;max-width:100%}.tg-msg--user .tg-msg-bubble{background:#effdde;color:#000;border-bottom-right-radius:4px}.tg-msg--ai .tg-msg-bubble{background:#fff;color:#000;border-bottom-left-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.08)}.tg-msg--operator{align-self:flex-start;align-items:flex-start}.tg-msg--operator .tg-msg-bubble{background:#d3e8fd;color:#000;border-bottom-left-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.08);border-left:3px solid #3390ec}.tg-msg--operator .tg-msg-operator-label{font-size:11px;font-weight:600;color:#3390ec;padding:0 4px 2px}.tg-msg-time{font-size:11px;color:#8e8e93;padding:1px 4px 0}.tg-msg--user .tg-msg-time{color:#6ec531}.tg-typing{display:flex;align-items:center;gap:2px;min-height:20px}.tg-typing-dots span{display:inline-block;width:5px;height:5px;border-radius:50%;background:#999;margin:0 1px;animation:tgDot 1.4s infinite}.tg-typing-dots span:nth-child(2){animation-delay:.2s}.tg-typing-dots span:nth-child(3){animation-delay:.4s}@keyframes tgDot{0%,100%,60%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}.tg-input-area{padding:6px 8px;background:#fff;border-top:1px solid #e0e0e0;flex-shrink:0}.tg-input-wrap{display:flex;align-items:center;gap:6px}.tg-input-wrap input{flex:1;border:none;outline:0;font-size:15px;padding:10px 14px;border-radius:22px;background:#f0f0f0;min-width:0;font-family:inherit}.tg-input-wrap input::placeholder{color:#999}.tg-send-btn{width:40px;height:40px;min-width:40px;border-radius:50%;border:none;background:#3390ec;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s}.tg-send-btn:hover{background:#2b7cd4}.tg-rate-limit{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 20px;text-align:center;gap:10px;background:#e6ebee}.tg-rate-limit-icon{font-size:36px}.tg-rate-limit-title{font-size:16px;font-weight:600;color:#1a1a1a}.tg-rate-limit-text{font-size:14px;color:#666;line-height:1.4}.tg-rate-limit-btn{display:inline-block;background:#3390ec;color:#fff!important;text-decoration:none;padding:10px 28px;border-radius:22px;font-size:14px;font-weight:600;transition:background .15s}.tg-rate-limit-btn:hover{background:#2b7cd4}.tg-rate-limit-btn--wa{background:#25d366}.tg-rate-limit-btn--wa:hover{background:#1da851}.tg-rate-limit-btn--social{background:#f0fdf4;color:#166534;border:1px solid #86efac}.tg-rate-limit-btn--social:hover{background:#22c55e;color:#fff;border-color:#22c55e}.tg-rate-limit-divider{height:1px;background:#e5e7eb;margin:8px 0}.tg-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px;background:#f7f8fa;border-top:1px solid #e8e8e8;flex-shrink:0}.tg-suggest-btn{border:1px solid #d0d5dd;background:#fff;color:#344054;font-size:13px;padding:6px 12px;border-radius:16px;cursor:pointer;transition:all .15s;white-space:nowrap;font-family:inherit}.tg-suggest-btn:hover{background:#3390ec;color:#fff;border-color:#3390ec}.tg-suggest-btn--social{background:#f0fdf4;border-color:#86efac;color:#166534}.tg-suggest-btn--social:hover{background:#22c55e;color:#fff;border-color:#22c55e}.tg-suggest-btn--cta{background:#eff6ff;border-color:#93c5fd;color:#1e40af}.tg-suggest-btn--cta:hover{background:#3b82f6;color:#fff;border-color:#3b82f6}.tg-lead-capture{padding:12px;background:#f0f7ff;border-top:1px solid #d0e3f7;flex-shrink:0}.ai-lead-header{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#1a1a1a;margin-bottom:10px}.ai-lead-body{display:flex;flex-direction:column;gap:8px}.ai-lead-input{border:1px solid #d0d5dd;border-radius:8px;padding:8px 12px;font-size:14px;font-family:inherit;outline:0;transition:border-color .15s;width:100%;box-sizing:border-box}.ai-lead-input:focus{border-color:#3390ec}.ai-lead-types{display:flex;gap:6px}.ai-lead-type{display:flex;align-items:center;gap:4px;border:1px solid #d0d5dd;background:#fff;color:#667085;font-size:12px;padding:5px 10px;border-radius:14px;cursor:pointer;transition:all .15s;font-family:inherit}.ai-lead-type.active{background:#3390ec;color:#fff;border-color:#3390ec}.ai-lead-type:hover:not(.active){border-color:#3390ec;color:#3390ec}.ai-lead-submit{background:#3390ec;color:#fff;border:none;border-radius:8px;padding:9px 16px;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s;font-family:inherit}.ai-lead-submit:hover{background:#2b7cd4}.ai-lead-social{margin-top:10px;padding-top:10px;border-top:1px solid #d0e3f7}.ai-lead-social-label{font-size:12px;color:#667085;display:block;margin-bottom:6px}.ai-lead-social-links{display:flex;gap:6px}.ai-lead-social-btn{display:inline-flex;align-items:center;gap:4px;font-size:12px;padding:5px 10px;border-radius:14px;border:1px solid #d0d5dd;background:#fff;color:#344054;text-decoration:none;transition:all .15s;font-family:inherit}.ai-lead-social-btn:hover{background:#3390ec;color:#fff;border-color:#3390ec}.ai-lead-social-btn--wa:hover{background:#25d366;border-color:#25d366}.auth-account-card{display:flex;align-items:center;gap:14px;padding:14px 16px;background:#f8f9fa;border-radius:12px;margin-bottom:10px;transition:background .2s}.auth-account-card:hover{background:#f0f2f5}.auth-account-avatar{width:44px;height:44px;border-radius:50%;overflow:hidden;flex-shrink:0}.auth-account-avatar img{width:100%;height:100%;object-fit:cover}.auth-account-placeholder{width:44px;height:44px;border-radius:50%;background:#007aff;color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:600}.auth-account-info{flex:1;min-width:0}.auth-account-name{font-weight:600;font-size:15px;color:#1a1a1a}.auth-account-email{font-size:13px;color:#888}.auth-account-actions{display:flex;gap:6px;flex-shrink:0}.auth-account-forget,.auth-account-switch{width:32px;height:32px;border-radius:50%;border:none;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;transition:background .2s}.auth-account-switch{background:#007aff;color:#fff}.auth-account-switch:hover{background:#0056cc}.auth-account-forget{background:#e74c3c;color:#fff}.auth-account-forget:hover{background:#c0392b}.auth-link-btn{background:0 0;border:none;color:#007aff;font-size:14px;cursor:pointer;padding:8px 0;text-decoration:underline}.auth-link-btn:hover{color:#0056cc}.auth-success{padding:12px 16px;background:#d4edda;color:#155724;border-radius:8px;font-size:14px;margin-bottom:20px}.auth-device-item{padding:10px 0;border-bottom:1px solid #f0f0f0}.auth-device-item:last-child{border-bottom:none}.auth-device-info{display:flex;flex-direction:column;gap:2px}.auth-device-name{font-weight:500;color:#333;font-size:14px}.auth-device-meta{font-size:12px;color:#999}.auth-accounts-list{margin-bottom:16px}.dashboard-section{padding:40px 0 60px}.dashboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;flex-wrap:wrap;gap:16px}.dashboard-header h1{font-size:28px;font-weight:600;color:#1a1a1a;margin:0}.dashboard-user{display:flex;align-items:center;gap:12px}.dashboard-avatar{width:48px;height:48px;border-radius:50%;overflow:hidden}.dashboard-avatar img{width:100%;height:100%;object-fit:cover}.dashboard-avatar-placeholder{width:48px;height:48px;border-radius:50%;background:#007aff;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:600}.dashboard-name{font-weight:600;color:#1a1a1a}.dashboard-login{font-size:13px;color:#888}.badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:12px;font-weight:500}.badge-admin{background:#e74c3c;color:#fff}.badge-user{background:#007aff;color:#fff}.badge-active{background:#27ae60;color:#fff}.badge-inactive{background:#95a5a6;color:#fff}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px;margin-bottom:32px}.dashboard-card{background:#fff;border-radius:12px;box-shadow:0 1px 8px rgba(0,0,0,.06);overflow:hidden}.dashboard-card-wide{grid-column:1/-1}.dashboard-card h3{font-size:16px;font-weight:600;padding:16px 20px;margin:0;border-bottom:1px solid #f0f0f0;color:#1a1a1a}.dashboard-card-content{padding:16px 20px}.dashboard-field{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f5f5f5}.dashboard-field:last-child{border-bottom:none}.dashboard-label{color:#888;font-size:14px}.dashboard-empty{color:#aaa;font-style:italic;text-align:center;padding:20px 0}.dashboard-btn{display:inline-block;padding:10px 20px;background:#007aff;color:#fff;border-radius:8px;text-decoration:none;font-size:14px;font-weight:500;transition:background .2s}.dashboard-btn:hover{background:#0056cc}.dashboard-actions{text-align:center}.admin-table{width:100%;border-collapse:collapse;font-size:14px}.admin-table th{text-align:left;padding:10px 12px;border-bottom:2px solid #e0e0e0;font-weight:600;color:#555;font-size:13px}.admin-table td{padding:10px 12px;border-bottom:1px solid #f0f0f0;color:#333}.admin-table tr:hover td{background:#f9f9f9}@media (max-width:768px){.auth-card{margin:0 16px;padding:28px 24px}.auth-header h1{font-size:24px}.dashboard-header{flex-direction:column;align-items:flex-start}.dashboard-grid{grid-template-columns:1fr}.admin-table{font-size:12px}.admin-table td,.admin-table th{padding:8px 6px}.tg-fab{bottom:16px;right:16px;height:50px;padding:0 16px}.tg-popup{bottom:0;right:0;width:100vw;height:100vh;max-height:100vh;border-radius:0}.tg-header-back{display:flex}}