.sidebar{width:240px;height:100vh;background:#0f172a;color:#e5e7eb;display:flex;flex-direction:column;padding:16px}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:12px;margin-bottom:24px}.brand-logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#6366f1,#3b82f6);display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff}.brand-name{font-size:16px;font-weight:600}.sidebar-nav{display:flex;flex-direction:column;gap:6px}.nav-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;color:#cbd5f5;text-decoration:none;font-size:14px;transition:all .2s ease}.nav-item:hover{background:#ffffff0f;color:#fff}.nav-item.active{background:#6366f126;color:#fff}.nav-icon{font-size:16px;width:20px;text-align:center}.nav-label{white-space:nowrap}@media (max-width: 768px){.sidebar{width:72px;padding:12px}.brand-name,.nav-label{display:none}.sidebar-brand{justify-content:center}}.sidebar{display:flex;flex-direction:column;height:100vh}.sidebar-nav{flex:1}.sidebar-logout{padding:16px;border-top:1px solid rgba(255,255,255,.08)}.logout-btn{width:100%;padding:10px 12px;border-radius:8px;border:none;background:#dc2626;color:#fff;font-size:14px;font-weight:600;cursor:pointer}.logout-btn:hover{background:#b91c1c}.sidebar-section-title{margin:20px 15px 5px;font-size:12px;font-weight:600;text-transform:uppercase;color:#999}.dropdown-parent{display:flex;justify-content:space-between;align-items:center;cursor:pointer}.dropdown-arrow{font-size:10px}.dropdown-menu{padding-left:15px}.sub-item{font-size:14px}.profile-wrapper{display:flex;gap:24px;align-items:flex-start}.profile-form,.password-form{flex:1;min-width:380px;background:#fff;padding:28px;border-radius:14px;box-shadow:0 10px 28px #0000000f}.profile-title{font-size:20px;font-weight:600;margin-bottom:4px}.profile-subtitle{font-size:14px;color:#6b7280;margin-bottom:24px}.form-group{display:flex;flex-direction:column;margin-bottom:18px}.form-group label{font-size:13px;font-weight:500;color:#374151;margin-bottom:6px}.form-group input{padding:11px 12px;border-radius:10px;border:1px solid #d1d5db;font-size:14px;transition:border .2s ease,box-shadow .2s ease}.form-group input:focus{outline:none;border-color:#f97316;box-shadow:0 0 0 3px #f9731626}.form-group input:disabled{background:#f3f4f6;color:#6b7280;cursor:not-allowed}.form-actions{display:flex;justify-content:flex-end;margin-top:8px}.primary-btn{padding:10px 20px;border-radius:10px;background:#f97316;color:#fff;font-size:14px;font-weight:600;border:none;cursor:pointer;transition:background .2s ease,transform .1s ease}.primary-btn:active{transform:scale(.98)}.secondary-btn{padding:10px 20px;border-radius:10px;background:#111827;color:#fff;font-size:14px;font-weight:600;border:none;cursor:pointer}.secondary-btn:hover{background:#000}@media (max-width: 900px){.profile-wrapper{flex-direction:column}}.profile-page{max-width:520px}.profile-tabs{position:relative;display:flex;background:#f3f4f6;border-radius:12px;padding:4px;margin-bottom:24px}.profile-tab{flex:1;text-align:center;padding:10px 0;font-size:14px;font-weight:600;color:#6b7280;background:none;border:none;cursor:pointer;z-index:1}.profile-tab.active{color:#111827}.profile-tab-indicator{position:absolute;top:4px;left:4px;width:calc(50% - 4px);height:calc(100% - 8px);background:linear-gradient(135deg,#f97316,#fb923c);border-radius:10px;transition:transform .25s ease;box-shadow:0 6px 14px #f9731659}.settings-page{max-width:1000px;padding:24px}.settings-page h1{font-size:26px;font-weight:600;margin-bottom:6px}.settings-page .muted{font-size:14px;color:#6b7280}.settings-tabs .tab{flex:1;text-align:center;padding:10px 0;font-size:14px;font-weight:500;cursor:pointer;z-index:1;color:#4b5563;transition:color .2s ease}.settings-tabs .tab.active{color:#111827}.tab-indicator{position:absolute;top:4px;left:4px;width:calc(50% - 4px);height:calc(100% - 8px);background:#fff;border-radius:12px;box-shadow:0 6px 14px #00000014;transition:transform .25s ease}.team-card{background:#fff;border-radius:16px;padding:24px;max-width:900px;box-shadow:0 12px 28px #0000000f}.team-card h2{font-size:20px;font-weight:600;margin-bottom:6px}.team-card .muted{font-size:14px;color:#6b7280;margin-bottom:20px}.team-list{display:flex;flex-direction:column;gap:14px}.team-row{display:flex;align-items:center;gap:16px;padding:16px 18px;border-radius:12px;background:#f9fafb;border:1px solid #e5e7eb;transition:background .2s ease,transform .15s ease}.team-row:hover{background:#f3f4f6;transform:translateY(-1px)}.avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#6366f1,#3b82f6);color:#fff;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:14px}.team-info{flex:1}.team-name{font-size:15px;font-weight:600;display:flex;align-items:center;gap:8px}.team-email{font-size:13px;color:#6b7280;margin-top:2px}.role-badge{font-size:11px;padding:4px 10px;border-radius:999px;font-weight:600;text-transform:uppercase}.role-badge.admin{background:#fee2e2;color:#991b1b}.role-badge.agent{background:#ecfeff;color:#155e75}.role-badge.manager{background:#ecfdf5;color:#065f46}.team-status{display:flex;align-items:center}.status{font-size:12px;padding:6px 14px;border-radius:999px;font-weight:500}.status.active{background:#dcfce7;color:#166534}.invite-card{background:#fff;border-radius:14px;padding:20px;box-shadow:0 12px 28px #0000000f}.invite-card h3{margin-bottom:14px}.invite-form{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.invite-form input,.invite-form select{flex:1;min-width:200px;padding:10px 12px;border-radius:10px;border:1px solid #d1d5db;font-size:14px}.invite-form select{max-width:160px}.primary-btn{padding:10px 18px;border-radius:10px;background:#f97316;color:#fff;font-weight:600;border:none;cursor:pointer;transition:background .2s ease,transform .1s ease}.primary-btn:hover{background:#ea580c}.primary-btn:disabled{opacity:.6;cursor:not-allowed}.error-text{margin-top:10px;color:#dc2626;font-size:13px}@media (max-width: 640px){.team-row{flex-direction:column;align-items:flex-start}.team-status{margin-top:8px}.settings-tabs{width:100%}}.settings-header h1{font-size:26px;font-weight:600;margin-bottom:6px}.settings-header .muted{font-size:14px;color:#6b7280}.settings-tabs{position:relative;display:flex;width:260px;background:#f3f4f6;border-radius:14px;padding:4px;margin:24px 0 32px}.settings-tab{flex:1;text-align:center;padding:10px 0;font-size:14px;font-weight:600;color:#6b7280;background:none;border:none;cursor:pointer;z-index:1}.settings-tab.active{color:#111827}.settings-tab-indicator{position:absolute;top:4px;left:4px;width:calc(50% - 4px);height:calc(100% - 8px);background:linear-gradient(135deg,#f97316,#fb923c);border-radius:10px;transition:transform .25s ease;box-shadow:0 6px 14px #f9731659}.settings-content{animation:fadeIn .25s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.inbox-page{display:flex;height:calc(100vh - 64px);background:#f9fafb}.inbox-header{padding:16px;font-size:18px;font-weight:600;border-bottom:1px solid #e5e7eb}.conversation-item{display:flex;gap:12px;padding:12px 14px;cursor:pointer;transition:background .15s ease}.conversation-item.active{background:#eef2ff}.conversation-top{display:flex;justify-content:space-between;margin-bottom:4px}.conversation-name{font-size:14px;font-weight:600;color:#111827}.conversation-time{font-size:12px;color:#6b7280}.conversation-bottom{display:flex;justify-content:space-between;align-items:center}.last-message{font-size:13px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.unread-badge{background:#22c55e;color:#fff;font-size:11px;padding:2px 8px;border-radius:999px;font-weight:600}.inbox-chat-placeholder{flex:1;display:flex;align-items:center;justify-content:center;color:#6b7280;font-size:14px}.inbox-chat{flex:1;display:flex;flex-direction:column;background:#f9fafb}.chat-placeholder,.chat-loading{flex:1;display:flex;align-items:center;justify-content:center;color:#6b7280;font-size:14px}.chat-messages{padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}.message-bubble{max-width:65%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.4}.message-bubble.sent{align-self:flex-end;background:#dcfce7;color:#065f46}.message-bubble.received{align-self:flex-start;background:#fff;border:1px solid #e5e7eb}.message-time{font-size:11px;margin-top:4px;text-align:right;color:#6b7280}.message-row{display:flex;margin-bottom:10px}.message-bubble{max-width:70%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.4}.message-bubble.received{background:#f1f5f9;color:#111827;border-top-left-radius:4px}.message-bubble.sent{background:#dcf8c6;color:#111827;border-top-right-radius:4px}.message-time{font-size:11px;opacity:.6}.date-divider{text-align:center;font-size:12px;color:#6b7280;margin:14px 0}.message-meta{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-top:4px}.read-ticks{font-size:12px;margin-left:6px;vertical-align:middle}.read-ticks.gray{color:#9ca3af}.read-ticks.blue{color:#3b82f6}.chat-input{display:flex;gap:10px;padding:12px;border-top:1px solid #e5e7eb;background:#fff}.chat-input input{flex:1;padding:10px 14px;border-radius:999px;border:1px solid #d1d5db;outline:none;font-size:14px}.chat-input button{padding:10px 16px;border-radius:999px;border:none;background:#22c55e;color:#fff;font-weight:500;cursor:pointer}.chat-input button:disabled{opacity:.6;cursor:not-allowed}.inbox-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e5e7eb}.inbox-title{font-size:18px;font-weight:600}.inbox-search-btn{background:transparent;border:none;cursor:pointer;padding:6px;border-radius:6px;color:#374151}.inbox-search-btn:hover{background:#f3f4f6}.inbox-search-input{flex:1;margin-right:8px;padding:6px 8px;font-size:14px;border-radius:6px;border:1px solid #d1d5db}.no-results{padding:12px;font-size:13px;color:#6b7280;text-align:center}.inbox-page{display:flex;height:100vh;background:#f5f6f8}.inbox-sidebar{width:340px;background:#fff;border-right:1px solid #e5e7eb;display:flex;flex-direction:column}.inbox-header{height:56px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e7eb;font-size:16px;font-weight:600}.inbox-search-btn{background:none;border:none;cursor:pointer;color:#374151}.inbox-search-input{flex:1;border:none;outline:none;font-size:14px}.conversation-list{flex:1;overflow-y:auto}.conversation-item{display:flex;gap:12px;padding:12px 16px;cursor:pointer;transition:background .15s ease}.conversation-item:hover{background:#f3f4f6}.conversation-item.active{background:#e8f0fe}.avatar{width:42px;height:42px;border-radius:50%;background:#6366f1;color:#fff;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}.conversation-info{flex:1;min-width:0}.conversation-top{display:flex;justify-content:space-between;align-items:center}.conversation-name{font-size:14px;font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-date{font-size:12px;color:#6b7280;white-space:nowrap}.conversation-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:4px;gap:8px}.last-message{font-size:13px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.unread-badge{background:#2563eb;color:#fff;font-size:12px;font-weight:600;min-width:18px;height:18px;padding:0 6px;border-radius:999px;display:flex;align-items:center;justify-content:center}.inbox-loading,.no-results{padding:24px;text-align:center;font-size:14px;color:#6b7280}.inbox-chat{flex:1;background:#eef1f5;display:flex;flex-direction:column}.inbox-chat{flex:1;display:flex;flex-direction:column;background:#eef1f5;height:100vh}.chat-messages{flex:1;overflow-y:auto;padding:24px 24px 96px}.date-divider{text-align:center;font-size:12px;color:#6b7280;margin:12px 0}.message-row{display:flex;margin-bottom:8px}.message-row.left{justify-content:flex-start}.message-row.right{justify-content:flex-end}.message-bubble{max-width:65%;padding:10px 12px;border-radius:12px;font-size:14px;line-height:1.4;position:relative}.message-bubble.received{background:#fff;border:1px solid #e5e7eb}.message-bubble.sent{background:#dcfce7;border:1px solid #bbf7d0}.message-meta{display:flex;justify-content:flex-end;align-items:center;margin-top:4px;font-size:11px;color:#6b7280}.chat-input{position:sticky;bottom:0;background:#fff;padding:12px 16px;border-top:1px solid #e5e7eb;display:flex;gap:12px;align-items:center}.chat-input input{flex:1;height:42px;border-radius:999px;border:1px solid #d1d5db;padding:0 16px;font-size:14px;outline:none}.chat-input input:focus{border-color:#3b82f6}.chat-input button{height:42px;padding:0 18px;border-radius:999px;border:none;background:#22c55e;color:#fff;font-weight:600;cursor:pointer}.chat-input button:disabled{background:#9ca3af;cursor:not-allowed}.chat-contact-header{height:72px;padding:0 24px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center}.chat-contact-left{display:flex;align-items:center;gap:14px}.chat-avatar{width:44px;height:44px;background:#f97316;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:600}.chat-contact-name{font-weight:600;font-size:15px;color:#111827}.chat-contact-phone{font-size:13px;color:#6b7280;margin-top:2px}.chat-contact-right{display:flex;align-items:center;gap:10px}.optin-label{font-size:13px;font-weight:500;color:#374151}.optin-toggle{position:relative;display:inline-block;width:42px;height:22px}.optin-toggle input{opacity:0;width:0;height:0}.optin-toggle .slider{position:absolute;cursor:pointer;top:0;right:0;bottom:0;left:0;background-color:#e5e7eb;border-radius:34px;transition:.3s ease}.optin-toggle .slider:before{position:absolute;content:"";height:16px;width:16px;left:3px;bottom:3px;background-color:#fff;border-radius:50%;transition:.3s ease;box-shadow:0 2px 6px #0003}.optin-toggle input:checked+.slider{background-color:#f97316}.optin-toggle input:checked+.slider:before{transform:translate(20px)}.chat-messages{flex:1;overflow-y:auto;padding:24px;background:#f9fafb}.chat-input{display:flex;gap:12px;padding:16px 20px;border-top:1px solid #e5e7eb;background:#fff}.chat-input input{flex:1;padding:12px 14px;border-radius:10px;border:1px solid #e5e7eb;font-size:14px;transition:.2s ease}.chat-input input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.chat-input button{padding:10px 18px;border-radius:10px;border:none;background:#2563eb;color:#fff;font-weight:500;cursor:pointer;transition:.2s ease}.chat-input button:hover{background:#1e40af}.conversation-expired{padding:16px 20px;background:#fff7ed;border-top:1px solid #fed7aa;display:flex;justify-content:space-between;align-items:center}.conversation-expired strong{color:#ea580c;font-size:14px}.send-template-btn{background:#f97316;color:#fff;padding:8px 18px;border-radius:10px;border:none;font-weight:500;cursor:pointer;transition:.2s ease}.send-template-btn:hover{background:#ea580c}.inbox-chat{display:flex;flex-direction:column;height:100%}.message-time{font-size:11px;color:#6b7280;margin-top:6px;text-align:right}.template-btn{margin-right:8px;padding:6px 12px;background:#f3f4f6;border-radius:6px;border:none;cursor:pointer}.template-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;justify-content:center;align-items:center;z-index:1000}.template-modal{width:400px;background:#fff;border-radius:12px;padding:16px;max-height:500px;overflow-y:auto}.template-item{padding:10px;border-bottom:1px solid #eee;cursor:pointer}.template-item:hover{background:#f9fafb}.chat-contact-date{font-size:12px;color:#9ca3af}.chat-date-wrapper{width:100%;display:flex;justify-content:center;margin:16px 0}.chat-date-divider{font-size:12px;color:#6b7280;background:#e5e7eb;padding:4px 12px;border-radius:999px;font-weight:500}.chat-messages{display:flex;flex-direction:column}.template-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:9999}.template-modal{background:#fff;width:900px;max-height:90vh;border-radius:10px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 10px 40px #00000026}.template-modal-header{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #eee}.template-modal-header h3{margin:0;font-size:18px;font-weight:600}.template-modal-header button{background:none;border:none;font-size:20px;cursor:pointer}.template-modal-body{padding:20px;display:flex;flex-direction:column;gap:20px;overflow-y:auto;max-height:75vh}.phone-selection,.template-dropdown{display:flex;flex-direction:column;gap:6px}.phone-selection label,.template-dropdown label{font-size:14px;font-weight:500}.phone-selection select,.template-dropdown select{padding:10px;border-radius:6px;border:1px solid #ddd;font-size:14px;background:#fff}.template-split-layout{display:flex;gap:30px;align-items:flex-start}.template-inputs{width:45%;max-height:50vh;overflow-y:auto;padding-right:10px}.template-inputs h4{margin-bottom:15px;font-size:15px;font-weight:600}.mapping-row{display:flex;flex-direction:column;margin-bottom:12px}.mapping-row label{font-size:13px;margin-bottom:4px;color:#555}.mapping-row input{padding:8px 10px;border-radius:6px;border:1px solid #ddd;font-size:14px}.template-preview-box{width:55%;max-height:50vh;overflow-y:auto}.template-preview-box h4{margin-bottom:15px;font-size:15px;font-weight:600}.template-preview{background:#f7f7f7;padding:15px;border-radius:6px;white-space:pre-wrap;font-size:14px;line-height:1.5}.send-template-btn{margin-top:20px;padding:10px 18px;border-radius:6px;border:none;background:#ff7a18;color:#fff;font-size:14px;cursor:pointer;transition:background .2s ease;align-self:flex-start}.send-template-btn:hover{background:#e86900}.contacts-page{padding:36px 48px;background:#f3f4f6;min-height:100vh}.contacts-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.contacts-header h2{font-size:24px;font-weight:600;color:#111827}.contacts-actions{display:flex;gap:14px;align-items:center}.contacts-actions input{padding:10px 16px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;min-width:260px;font-size:14px;transition:all .2s ease}.contacts-actions input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.add-btn{background:#f97316;color:#fff;padding:10px 18px;border:none;border-radius:10px;cursor:pointer;font-weight:500;transition:all .2s ease}.add-btn:hover{background:#ea580c;transform:translateY(-1px)}.contacts-table{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 8px 24px #0000000d}.contacts-table-head,.contacts-row{display:grid;grid-template-columns:1.5fr 2fr 2fr 1fr 1fr 1fr;padding:16px 20px;align-items:center}.contacts-table-head{background:#f9fafb;font-weight:600;font-size:13px;letter-spacing:.4px;text-transform:uppercase;color:#6b7280}.contacts-row{border-top:1px solid #f1f5f9;font-size:14px;transition:background .2s ease}.contacts-row:hover{background:#f9fafb}.status-badge{padding:5px 12px;border-radius:20px;font-size:12px;font-weight:500;display:inline-block}.status-active{background:#dcfce7;color:#15803d}.status-blocked{background:#fee2e2;color:#b91c1c}.status-yes{background:#f97316;color:#fff}.status-no{background:#e5e7eb;color:#374151}.view-btn{padding:6px 14px;border-radius:8px;border:none;background:#2563eb;color:#fff;font-size:13px;cursor:pointer;transition:.2s ease}.view-btn:hover{background:#1e40af}.pagination{margin-top:24px;display:flex;gap:20px;align-items:center}.pagination button{padding:8px 16px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;font-size:13px;transition:all .2s ease}.pagination button:hover:not(:disabled){background:#f3f4f6}.pagination button:disabled{opacity:.5;cursor:not-allowed}.success-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#11182766;display:flex;justify-content:center;align-items:center;z-index:1000}.success-popup{background:#fff;padding:24px 36px;border-radius:14px;box-shadow:0 15px 40px #00000026;animation:fadeIn .25s ease}.success-popup h3{color:#16a34a;font-weight:600}.drawer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#11182773;display:flex;justify-content:flex-end;z-index:1000}.drawer{width:460px;height:100%;background:#fff;padding:32px;box-shadow:-10px 0 30px #0000001f;animation:slideInRight .3s ease;display:flex;flex-direction:column}.drawer h3{font-size:20px;font-weight:600;margin-bottom:24px}.drawer label{font-size:13px;font-weight:500;margin-bottom:6px;color:#374151}.drawer input{padding:12px 14px;border-radius:10px;border:1px solid #e5e7eb;background:#f9fafb;font-size:14px;margin-bottom:20px;transition:.2s ease}.drawer input:focus{outline:none;border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px #2563eb1a}.drawer-actions{margin-top:auto;display:flex;flex-wrap:wrap;gap:12px;padding-top:24px;border-top:1px solid #f1f5f9}.primary-btn{background:#f97316;color:#fff;padding:10px 18px;border-radius:10px;border:none;font-weight:500;cursor:pointer;transition:.2s ease}.primary-btn:hover{background:#ea580c;transform:translateY(-1px)}.block-btn{background:#e5e7eb;color:#111827;padding:10px 18px;border-radius:10px;border:none;cursor:pointer;transition:.2s ease}.block-btn:hover{background:#d1d5db}.delete-btn{background:#ef4444;color:#fff;padding:10px 18px;border-radius:10px;border:none;cursor:pointer;transition:.2s ease}.delete-btn:hover{background:#dc2626}.secondary-btn{background:#111827;color:#fff;padding:10px 18px;border-radius:10px;border:none;cursor:pointer;transition:.2s ease}.secondary-btn:hover{background:#1f2937}@keyframes fadeIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}.create-contact-page{padding:60px 80px;background:#f5f7fa;min-height:100vh}.create-header{display:flex;align-items:center;gap:20px;margin-bottom:40px}.create-header h2{font-size:26px;font-weight:600;color:#111827}.create-header p{font-size:14px;color:#6b7280;margin-top:4px}.back-btn{background:#111827;color:#fff;border:none;padding:10px 18px;border-radius:8px;cursor:pointer;font-size:13px;transition:.2s ease}.back-btn:hover{background:#1f2937}.create-card{background:#fff;border-radius:16px;padding:40px;max-width:900px;box-shadow:0 15px 35px #0000000d}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.form-group{display:flex;flex-direction:column}.form-group label{font-size:13px;font-weight:500;color:#374151;margin-bottom:8px}.form-group input{padding:14px 16px;border-radius:10px;border:1px solid #e5e7eb;background:#f9fafb;font-size:14px;transition:.2s ease}.form-group input:focus{outline:none;border-color:#3b82f6;background:#fff;box-shadow:0 0 0 3px #3b82f61a}.form-actions{margin-top:40px;display:flex;justify-content:flex-end;gap:16px}.primary-btn{background:#2563eb;color:#fff;padding:12px 24px;border-radius:10px;border:none;cursor:pointer;font-weight:500;transition:.2s ease}.primary-btn:hover{background:#1e40af}.secondary-btn{background:#e5e7eb;color:#111827;padding:12px 24px;border-radius:10px;border:none;cursor:pointer;transition:.2s ease}.secondary-btn:hover{background:#d1d5db}.success-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#11182766;display:flex;justify-content:center;align-items:center;z-index:999}.success-popup{background:#fff;padding:30px 50px;border-radius:14px;box-shadow:0 20px 40px #00000026;animation:fadeIn .25s ease}.success-popup h3{font-weight:600;color:#16a34a}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.templates-page{padding:24px;background:#f9fafb}.templates-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.templates-title h1{font-size:22px;font-weight:600;margin:0}.templates-title p{font-size:13px;color:#6b7280;margin-top:4px}.btn-new{padding:8px 16px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer}.btn-new:hover{background:#f3f4f6}.templates-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden}.templates-table{width:100%;border-collapse:collapse;font-size:14px}.templates-table thead{background:#f9fafb;color:#6b7280}.templates-table th{text-align:left;padding:14px 16px;font-weight:500;white-space:nowrap}.templates-table td{padding:14px 16px;border-top:1px solid #e5e7eb;vertical-align:middle}.templates-table tr:hover{background:#f9fafb}.badge{padding:4px 10px;border-radius:999px;font-size:12px;font-weight:500;text-transform:capitalize;display:inline-block}.badge-approved{background:#dcfce7;color:#166534}.badge-pending{background:#fef3c7;color:#92400e}.badge-rejected{background:#fee2e2;color:#991b1b}.category-pill{background:#f3f4f6;padding:4px 10px;border-radius:999px;font-size:12px;color:#374151}.templates-empty{padding:48px 0;text-align:center;color:#6b7280;font-size:14px}.template-details-page{padding:24px;background:#f9fafb;min-height:100%}.template-back{display:inline-block;margin-bottom:16px;font-size:14px;color:#2563eb;cursor:pointer}.template-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.template-title{font-size:24px;font-weight:600;margin:0}.template-subtitle{font-size:13px;color:#6b7280;margin-top:4px}.template-status{padding:6px 14px;border-radius:999px;font-size:13px;font-weight:500;text-transform:capitalize}.template-status.approved{background:#dcfce7;color:#166534}.template-status.pending{background:#fef3c7;color:#92400e}.template-status.rejected{background:#fee2e2;color:#991b1b}.template-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:28px}.meta-item span{font-size:12px;color:#6b7280}.meta-item div{font-size:14px;font-weight:500;color:#111827;margin-top:2px}.template-section-title{font-size:15px;font-weight:600;margin-bottom:10px}.template-preview-wrapper{background:#e5ddd5;padding:16px;border-radius:12px;max-width:420px}.template-preview-bubble{background:#fff;padding:12px 14px;border-radius:8px;font-size:14px;line-height:1.5;color:#111827;box-shadow:0 1px 2px #00000014;white-space:pre-wrap}.template-rejection{margin-top:24px;padding:14px;border-radius:8px;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;font-size:14px}.template-rejection b{font-weight:600}.template-create-page{padding:24px;background:#f9fafb;max-width:900px}.template-back{background:none;border:none;color:#2563eb;font-size:14px;cursor:pointer;margin-bottom:16px}.template-back:hover{text-decoration:underline}.template-create-title{font-size:22px;font-weight:600;margin-bottom:24px}.form-group{margin-bottom:20px}.form-group label{display:block;font-size:13px;font-weight:500;color:#374151;margin-bottom:6px}.form-group input,.form-group textarea{width:100%;padding:10px 12px;font-size:14px;border-radius:6px;border:1px solid #d1d5db;background:#fff}.form-group input:disabled{background:#f3f4f6;color:#6b7280}.form-group textarea{min-height:120px;resize:vertical}.option-row{display:flex;flex-wrap:wrap;gap:10px}.option-btn{padding:8px 14px;font-size:13px;border-radius:999px;border:1px solid #d1d5db;background:#fff;cursor:pointer;transition:all .15s ease}.option-btn:hover{background:#f3f4f6}.option-btn.active{background:#2563eb;border-color:#2563eb;color:#fff;font-weight:500}.btn-primary{margin-top:12px;padding:10px 20px;font-size:14px;font-weight:500;background:#f97316;border:none;border-radius:6px;color:#fff;cursor:pointer}.btn-primary:hover{background:#ea580c}.form-divider{height:1px;background:#e5e7eb;margin:24px 0}.template-accounts-page{padding:24px}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.page-title{font-size:22px;font-weight:600;margin-bottom:4px}.page-subtitle{font-size:13px;color:#6b7280}.btn-sync{display:flex;align-items:center;gap:6px;padding:8px 14px;border-radius:8px;border:1px solid #d1d5db;background:#111827;color:#fff;font-size:14px;font-weight:600;cursor:pointer}.btn-sync:disabled{background:#9ca3af;cursor:not-allowed}.accounts-table{background:#fff;border-radius:12px;border:1px solid #e5e7eb;overflow:hidden}.table-header{display:grid;grid-template-columns:1.4fr 2fr 2fr 1fr 1fr 1fr 1.5fr;padding:12px;background:#f9fafb;font-size:13px;font-weight:600;color:#374151}.table-header span{display:flex;align-items:center;gap:6px}.table-row{display:grid;grid-template-columns:1.4fr 2fr 2fr 1fr 1fr 1fr 1.5fr;padding:12px;border-top:1px solid #e5e7eb;font-size:14px;align-items:center}.table-row:hover{background:#f9fafb}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;text-align:center}.badge-ACTIVE{background:#dcfce7;color:#166534}.badge-INACTIVE{background:#fee2e2;color:#991b1b}.badge-blue{background:#e0f2fe;color:#075985}.badge-green{background:#dcfce7;color:#166534}.badge-orange{background:#ffedd5;color:#9a3412}.actions{display:flex;gap:8px}.btn-outline{padding:6px 10px;border-radius:6px;border:1px solid #d1d5db;background:#fff;font-size:13px;cursor:pointer}.btn-outline:hover{background:#f3f4f6}.btn-link{background:none;border:none;color:#2563eb;font-size:13px;cursor:pointer;padding:0}.btn-link:hover{text-decoration:underline}.btn-sync-inline{padding:6px 10px;border-radius:6px;border:1px solid #d1d5db;background:#f9fafb;font-size:13px;cursor:pointer}.btn-sync-inline:disabled{opacity:.6;cursor:not-allowed}.wa-api-page{padding:30px}.api-key-box{margin-top:15px;padding:12px;background:#f5f7fa;border-radius:6px;font-family:monospace;word-break:break-all}.created-date{margin-top:10px;color:#888;font-size:13px}.copy-btn{margin-left:10px;padding:5px 10px;font-size:12px;background:#1890ff;color:#fff;border:none;border-radius:4px;cursor:pointer}.api-key-text{flex:1}.api-key-box{margin-top:15px;padding:12px;background:#f5f7fa;border-radius:6px;font-family:monospace;display:flex;justify-content:space-between;align-items:center;word-break:break-all}.api-actions{display:flex;gap:8px}.toggle-btn{padding:5px 8px;border:none;background:#ddd;border-radius:4px;cursor:pointer}.copy-btn{padding:5px 10px;background:#1890ff;color:#fff;border:none;border-radius:4px;cursor:pointer}.key-input{width:100%;padding:10px;margin-bottom:12px;border-radius:6px;border:1px solid #ddd}.api-card{margin-top:20px;padding:20px;border-radius:8px;background:#fff;border:1px solid #eee}.api-header{display:flex;justify-content:space-between;align-items:center}.status-badge.active{background:#e6f4ea;color:#2e7d32;padding:4px 8px;font-size:12px;border-radius:12px;margin-left:8px}.api-key-box{margin-top:15px;padding:12px;background:#f5f7fa;border-radius:6px;font-family:monospace}.security-note{margin-top:10px;font-size:13px;color:#888}.primary-btn{background:#25d366;color:#fff;border:none;padding:10px 18px;border-radius:6px;cursor:pointer}.delete-btn{background:#ff4d4f;color:#fff;border:none;padding:8px 14px;border-radius:6px;cursor:pointer}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#0000008c;display:flex;justify-content:center;align-items:center;z-index:9999}.modal-container{background:#fff;width:480px;padding:30px;border-radius:10px;box-shadow:0 15px 40px #0003;animation:fadeInScale .25s ease;text-align:center}.modal-key{margin:18px 0;padding:14px;background:#f5f7fa;border-radius:6px;font-family:monospace;word-break:break-all;font-size:14px}.modal-actions{margin-top:18px;display:flex;justify-content:center;gap:12px}.copy-btn{background:#1677ff;color:#fff;border:none;padding:8px 16px;border-radius:6px;cursor:pointer}.secondary-btn{background:#e5e7eb;border:none;padding:8px 16px;border-radius:6px;cursor:pointer}.warning-text{font-size:13px;color:#666}@keyframes fadeInScale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.onboarding-container{min-height:100vh;background:linear-gradient(135deg,#0f172a,#1e293b);display:flex;align-items:center;justify-content:center;padding:40px;font-family:Inter,sans-serif}.onboarding-card{background:#fff;width:100%;max-width:480px;padding:40px;border-radius:16px;box-shadow:0 20px 60px #00000040;text-align:center}.onboarding-card h2{font-size:24px;margin-bottom:10px;color:#0f172a}.onboarding-subtitle{font-size:14px;color:#64748b;margin-bottom:30px}.connect-btn{width:100%;padding:14px;border-radius:10px;border:none;font-size:15px;font-weight:600;cursor:pointer;background:linear-gradient(90deg,#25d366,#128c7e);color:#fff;transition:all .3s ease}.connect-btn:hover{transform:translateY(-2px);box-shadow:0 10px 25px #128c7e66}.loading-text{font-size:14px;color:#334155}.success-box{background:#ecfdf5;border:1px solid #10b981;padding:20px;border-radius:12px;margin-top:20px;text-align:left}.success-title{font-weight:600;color:#047857}.error-text{margin-top:15px;font-size:14px;color:#dc2626}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.relative{position:relative}.mb-4{margin-bottom:1rem}.block{display:block}.flex{display:flex}.table{display:table}.table-row{display:table-row}.grid{display:grid}.w-full{width:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.bg-\[\#111\]{--tw-bg-opacity: 1;background-color:rgb(17 17 17 / var(--tw-bg-opacity, 1))}.p-4{padding:1rem}.p-6{padding:1.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}*{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Inter,sans-serif}body{margin:0;background:#f5f5f5}.auth-wrapper{min-height:100vh;display:flex;align-items:center;justify-content:center;background-image:url(/geometric_perspective_line_pattern_background.jpg);background-size:cover;background-position:center}.auth-card.clean{width:420px;background:#fff;padding:40px;border-radius:16px;box-shadow:0 20px 40px #0000001f}.auth-card h2{margin-bottom:8px;font-size:26px}.subtitle{font-size:14px;color:#6b7280;margin-bottom:24px}.auth-card input{width:100%;padding:14px 16px;margin-bottom:14px;border-radius:999px;border:1px solid #d1d5db;font-size:15px}.auth-card input:focus{outline:none;border-color:teal}.auth-card button{width:100%;padding:14px;border-radius:999px;border:none;background:teal;color:#fff;font-size:15px;font-weight:600;cursor:pointer;margin-top:8px}.auth-card button:disabled{opacity:.7;cursor:not-allowed}.footer-text{margin-top:20px;font-size:14px;color:#374151}.footer-text span{color:teal;cursor:pointer;font-weight:500}.error-text{color:#dc2626;font-size:14px;margin-bottom:10px}
