.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2)}.login-card{background:#fff;padding:2.5rem;border-radius:12px;box-shadow:0 20px 60px #0000004d;width:100%;max-width:400px}.login-card h1{margin:0 0 .5rem;color:#333;font-size:2rem;text-align:center}.login-subtitle{margin:0 0 2rem;color:#666;text-align:center}.login-form{display:flex;flex-direction:column;gap:1.5rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{color:#333;font-weight:500}.form-group input{padding:.75rem;border:1px solid #ddd;border-radius:6px;font-size:1rem;transition:border-color .2s}.form-group input:focus{outline:none;border-color:#667eea}.form-group input:disabled{background:#f5f5f5;cursor:not-allowed}.login-button{padding:.875rem;background:#667eea;color:#fff;border:none;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;transition:background .2s}.login-button:hover:not(:disabled){background:#5568d3}.login-button:disabled{background:#ccc;cursor:not-allowed}.error-message{background:#fee;color:#c33;padding:.75rem;border-radius:6px;border:1px solid #fcc;margin-bottom:1rem}.login-footer{margin:2rem 0 0;text-align:center;font-size:.875rem;color:#999}.dashboard{padding:24px}.dashboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.dashboard-header h2{margin:0;font-size:24px;color:#1a1a2e}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-bottom:32px}.stat-card{background:#fff;border-radius:12px;padding:20px;display:flex;align-items:center;gap:16px;box-shadow:0 2px 8px #00000014;transition:transform .2s,box-shadow .2s}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001f}.stat-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px}.stat-icon.users{background:#e0e7ff}.stat-icon.new{background:#fef3c7}.stat-icon.month{background:#fce7f3}.stat-content h3{margin:0;font-size:14px;color:#6b7280;font-weight:500}.stat-value{margin:4px 0 0;font-size:28px;font-weight:700;color:#1a1a2e}.dashboard-section{background:#fff;border-radius:12px;padding:24px;margin-bottom:24px;box-shadow:0 2px 8px #00000014}.dashboard-section h3{margin:0 0 20px;font-size:18px;color:#1a1a2e}.integrations-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px}.integration-card{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#f9fafb;border-radius:8px;border:1px solid #e5e7eb}.integration-name{font-size:14px;color:#374151}.integration-count{font-size:20px;font-weight:700;color:#4f46e5}.growth-chart{min-height:200px}.chart-container{width:100%;overflow-x:auto}.chart-bars{display:flex;align-items:flex-end;gap:8px;height:200px;padding:20px 0}.chart-bar-wrapper{display:flex;flex-direction:column;align-items:center;min-width:40px;flex:1}.chart-bar{width:100%;max-width:40px;background:linear-gradient(180deg,#4f46e5,#7c3aed);border-radius:4px 4px 0 0;position:relative;min-height:4px;transition:height .3s ease}.chart-bar:hover{opacity:.9}.bar-value{position:absolute;top:-20px;left:50%;transform:translate(-50%);font-size:12px;font-weight:600;color:#4f46e5}.bar-label{margin-top:8px;font-size:11px;color:#6b7280;white-space:nowrap}.system-stats{display:flex;gap:32px;flex-wrap:wrap}.system-stat{display:flex;flex-direction:column;gap:4px}.system-stat .label{font-size:14px;color:#6b7280}.system-stat .value{font-size:16px;font-weight:600;color:#1a1a2e}.system-stat .value.status-ok{color:#10b981}.system-stat .value.status-error{color:#ef4444}.error button{padding:10px 20px;background:#4f46e5;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px}.error button:hover{background:#4338ca}.users-page{padding:24px}.users-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.users-header h2{margin:0;font-size:24px;color:#1a1a2e}.users-stats{font-size:14px;color:#6b7280}.users-filters{display:flex;gap:16px;margin-bottom:24px}.search-box{flex:1;max-width:400px}.search-box input{width:100%;padding:10px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;outline:none;transition:border-color .2s}.filter-select select{padding:10px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;background:#fff;color:#374151;cursor:pointer;outline:none;min-width:150px;-webkit-appearance:menulist;-moz-appearance:menulist;appearance:menulist}.filter-select select option{color:#374151;background:#fff;padding:10px}.filter-select select:focus{border-color:#4f46e5}.users-table-container{background:#fff;border-radius:12px;box-shadow:0 2px 8px #00000014;overflow:hidden}.users-table{width:100%;border-collapse:collapse}.users-table th,.users-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #e5e7eb}.users-table th{background:#f9fafb;font-weight:600;font-size:13px;color:#6b7280;text-transform:uppercase;letter-spacing:.05em}.users-table th.sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.users-table th.sortable:hover{background:#f3f4f6}.users-table td{font-size:14px;color:#374151}.users-table .role-cell{text-transform:capitalize;font-weight:500}.users-table .clients-cell{font-weight:600;color:#111827}.users-table tbody tr:hover{background:#f9fafb}.users-table .no-data{text-align:center;color:#9ca3af;padding:40px}.status-badge.suspended{background:#fee2e2;color:#991b1b}.btn-activate:hover:not(:disabled){background:#a7f3d0}.btn-suspend{background:#fef3c7;color:#92400e}.btn-suspend:hover:not(:disabled){background:#fde68a}.btn-delete:hover:not(:disabled){background:#fecaca}.modal{background:#fff;border-radius:12px;width:90%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 50px #0003}.modal-header h3{margin:0;font-size:18px;color:#1a1a2e}.user-detail{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #f3f4f6}.user-detail:last-child{border-bottom:none}.user-detail label{font-size:14px;color:#6b7280;font-weight:500}.user-detail span{font-size:14px;color:#1a1a2e}.role-pill{display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;background:#eef2ff;color:#4338ca;text-transform:capitalize}.user-integrations{margin-top:24px;padding-top:24px;border-top:1px solid #e5e7eb}.user-integrations h4{margin:0 0 16px;font-size:16px;color:#1a1a2e}.integrations-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.integration-item{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#f9fafb;border-radius:8px;font-size:13px}.integration-item .count{font-weight:600;color:#4f46e5}.analytics-page{padding:24px}.analytics-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.analytics-header h2{margin:0;font-size:24px;color:#1a1a2e}.range-selector{display:flex;gap:8px}.range-selector button{padding:8px 16px;border:1px solid #e0e0e0;background:#fff;border-radius:6px;cursor:pointer;font-size:14px;transition:all .2s}.range-selector button:hover{background:#f5f5f5}.range-selector button.active{background:#4f46e5;color:#fff;border-color:#4f46e5}.metrics-section{margin-bottom:32px}.metrics-section h3{margin:0 0 16px;font-size:18px;color:#1a1a2e}.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}.metric-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #00000014}.metric-value{font-size:36px;font-weight:700;color:#1a1a2e;line-height:1}.metric-label{font-size:14px;color:#6b7280;margin-top:8px}.metric-change{font-size:13px;color:#6b7280;margin-top:12px;padding-top:12px;border-top:1px solid #f3f4f6}.metric-change.positive{color:#10b981}.metric-change.negative{color:#ef4444}.analytics-section{background:#fff;border-radius:12px;padding:24px;margin-bottom:24px;box-shadow:0 2px 8px #00000014}.analytics-section h3{margin:0 0 20px;font-size:18px;color:#1a1a2e}.integration-breakdown{display:flex;flex-direction:column;gap:20px}.breakdown-chart{display:flex;height:24px;border-radius:12px;overflow:hidden;background:#f3f4f6}.breakdown-bar{height:100%;transition:width .3s ease;min-width:2px}.breakdown-bar:first-child{border-radius:12px 0 0 12px}.breakdown-bar:last-child{border-radius:0 12px 12px 0}.breakdown-legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.legend-item{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#f9fafb;border-radius:8px}.legend-color{width:12px;height:12px;border-radius:3px;flex-shrink:0}.legend-label{flex:1;font-size:14px;color:#374151}.legend-value{font-size:14px;font-weight:600;color:#1a1a2e}.legend-percent{font-size:13px;color:#6b7280;min-width:50px;text-align:right}.growth-trend{display:flex;flex-direction:column;gap:24px}.trend-chart{display:flex;align-items:flex-end;gap:6px;height:200px;padding:20px 0;overflow-x:auto}.trend-bar-wrapper{display:flex;flex-direction:column;align-items:center;min-width:36px;flex:1;height:100%}.trend-bar{width:100%;max-width:36px;background:linear-gradient(180deg,#4f46e5,#7c3aed);border-radius:4px 4px 0 0;position:relative;display:flex;justify-content:center;margin-top:auto}.trend-value{position:absolute;top:-22px;font-size:11px;font-weight:600;color:#4f46e5}.trend-label{margin-top:8px;font-size:10px;color:#6b7280;white-space:nowrap}.trend-summary{display:flex;gap:32px;padding:16px;background:#f9fafb;border-radius:8px}.summary-item{display:flex;flex-direction:column;gap:4px}.summary-label{font-size:13px;color:#6b7280}.summary-value{font-size:20px;font-weight:700;color:#1a1a2e}.stats-table{width:100%;border-collapse:collapse}.stats-table th,.stats-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #e5e7eb}.stats-table th{font-weight:600;font-size:13px;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;background:#f9fafb}.stats-table td{font-size:14px;color:#374151}.stats-table tbody tr:hover{background:#f9fafb}.status-indicator{display:inline-block;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:500}.status-indicator.active{background:#d1fae5;color:#065f46}.status-indicator.inactive{background:#fee2e2;color:#991b1b}.no-data{text-align:center;color:#9ca3af;padding:40px}.audit-logs-page{padding:24px}.audit-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.audit-header h2{margin:0;font-size:24px;color:#1a1a2e}.log-count{font-size:14px;color:#6b7280}.audit-filters{display:flex;gap:16px;margin-bottom:24px;align-items:flex-end;flex-wrap:wrap}.filter-group{display:flex;flex-direction:column;gap:6px}.filter-group label{font-size:13px;color:#6b7280;font-weight:500}.filter-group select,.filter-group input{padding:10px 14px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;background:#fff;outline:none;min-width:160px}.filter-group select:focus,.filter-group input:focus{border-color:#4f46e5}.btn-clear{padding:10px 16px;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;color:#6b7280;cursor:pointer;transition:all .2s}.btn-clear:hover{background:#e5e7eb;color:#374151}.logs-table-container{background:#fff;border-radius:12px;box-shadow:0 2px 8px #00000014;overflow:hidden}.logs-table{width:100%;border-collapse:collapse}.logs-table th,.logs-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #e5e7eb}.logs-table th{background:#f9fafb;font-weight:600;font-size:13px;color:#6b7280;text-transform:uppercase;letter-spacing:.05em}.logs-table td{font-size:14px;color:#374151}.logs-table tbody tr:hover{background:#f9fafb}.logs-table .no-data{text-align:center;color:#9ca3af;padding:40px}.timestamp{white-space:nowrap;font-family:monospace;font-size:13px}.ip-address{font-family:monospace;font-size:13px;color:#6b7280}.user-agent{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#9ca3af}.action-badge{display:inline-block;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:500;text-transform:capitalize;background:#f3f4f6;color:#6b7280}.action-badge.login{background:#d1fae5;color:#065f46}.action-badge.logout{background:#e0e7ff;color:#4338ca}.action-badge.update{background:#fef3c7;color:#92400e}.action-badge.delete{background:#fee2e2;color:#991b1b}.action-badge.suspend{background:#fce7f3;color:#9d174d}.action-badge.activate{background:#d1fae5;color:#065f46}.action-badge.config{background:#dbeafe;color:#1e40af}.btn-details{padding:4px 12px;background:#e0e7ff;border:none;border-radius:4px;font-size:12px;color:#4f46e5;cursor:pointer;transition:background .2s}.btn-details:hover{background:#c7d2fe}.settings-page{padding:24px;max-width:800px}.settings-header h2{margin:0;font-size:24px;color:#1a1a2e}.alert-success{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0}.settings-section{background:#fff;border-radius:12px;padding:24px;margin-bottom:24px;box-shadow:0 2px 8px #00000014}.settings-section h3{margin:0 0 20px;font-size:18px;color:#1a1a2e;padding-bottom:12px;border-bottom:1px solid #e5e7eb}.profile-info{display:flex;align-items:center;gap:20px}.profile-avatar{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:600}.profile-details{display:flex;flex-direction:column;gap:4px}.profile-name{font-size:18px;font-weight:600;color:#1a1a2e}.profile-email{font-size:14px;color:#6b7280}.profile-role{font-size:13px;color:#4f46e5;font-weight:500}.system-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.info-item{display:flex;flex-direction:column;gap:4px;padding:12px 16px;background:#f9fafb;border-radius:8px}.info-label{font-size:13px;color:#6b7280}.info-value{font-size:15px;font-weight:600;color:#1a1a2e}.info-value.status-ok{color:#10b981}.info-value.status-error{color:#ef4444}.settings-form{display:flex;flex-direction:column;gap:20px}.form-group label{font-size:14px;font-weight:500;color:#374151}.input-with-button{display:flex;gap:12px}.input-with-button input{flex:1;padding:10px 14px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;outline:none;transition:border-color .2s}.input-with-button input:focus{border-color:#4f46e5}.input-with-button button{padding:10px 20px;background:#4f46e5;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.input-with-button button:hover:not(:disabled){background:#4338ca}.input-with-button button:disabled{opacity:.5;cursor:not-allowed}.toggles-list{display:flex;flex-direction:column;gap:16px}.toggle-item{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#f9fafb;border-radius:8px}.toggle-info{display:flex;flex-direction:column;gap:4px}.toggle-label{font-size:15px;font-weight:500;color:#1a1a2e}.toggle-description{font-size:13px;color:#6b7280}.toggle-switch{position:relative;display:inline-block;width:48px;height:26px}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#d1d5db;transition:.3s;border-radius:26px}.toggle-slider:before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:3px;background-color:#fff;transition:.3s;border-radius:50%;box-shadow:0 2px 4px #0000001a}.toggle-switch input:checked+.toggle-slider{background-color:#4f46e5}.toggle-switch input:checked+.toggle-slider:before{transform:translate(22px)}.danger-zone{border:1px solid #fecaca}.danger-zone h3{color:#991b1b;border-bottom-color:#fecaca}.danger-actions{display:flex;flex-direction:column;gap:16px}.danger-item{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#fef2f2;border-radius:8px;border:1px solid #fecaca}.danger-info{display:flex;flex-direction:column;gap:4px}.danger-label{font-size:15px;font-weight:500;color:#991b1b}.danger-description{font-size:13px;color:#b91c1c}.btn-danger{padding:10px 20px;background:#ef4444;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.plans-page{padding:24px}.plans-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:32px}.plans-header h2{margin:0;font-size:24px;color:#1a1a2e}.plans-header .subtitle{margin:4px 0 0;font-size:14px;color:#6b7280}.btn-primary{padding:12px 24px;background:#4f46e5;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.btn-primary:hover:not(:disabled){background:#4338ca}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.plans-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.plan-card{background:#fff;border-radius:16px;padding:24px;box-shadow:0 2px 12px #00000014;position:relative;transition:transform .2s,box-shadow .2s;border:2px solid transparent}.plan-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px #0000001f}.plan-card.featured{border-color:#4f46e5}.plan-card.inactive{opacity:.7;background:#f9fafb}.featured-badge{position:absolute;top:-12px;right:20px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;padding:6px 16px;border-radius:20px;font-size:12px;font-weight:600}.inactive-badge{position:absolute;top:-12px;left:20px;background:#6b7280;color:#fff;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:500}.plan-header h3{margin:0 0 8px;font-size:22px;color:#1a1a2e}.plan-description{margin:0;font-size:14px;color:#6b7280;min-height:40px}.plan-pricing{margin:20px 0;padding:16px 0;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}.price-monthly{display:flex;align-items:baseline;gap:4px}.price-monthly .price{font-size:36px;font-weight:700;color:#1a1a2e}.price-monthly .period{font-size:16px;color:#6b7280}.price-yearly{margin-top:8px;font-size:14px;color:#6b7280}.price-yearly .savings{color:#10b981;font-weight:500;margin-left:8px}.plan-limits{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:16px 0}.limit-item{display:flex;justify-content:space-between;padding:8px 12px;background:#f9fafb;border-radius:6px}.limit-label{font-size:13px;color:#6b7280}.limit-value{font-size:13px;font-weight:600;color:#1a1a2e}.plan-features{margin:16px 0}.plan-features h4{margin:0 0 12px;font-size:14px;font-weight:600;color:#374151}.plan-features ul{list-style:none;padding:0;margin:0}.plan-features li{padding:6px 0;font-size:13px;color:#4b5563;display:flex;align-items:center;gap:8px}.plan-features li:before{content:"✓";color:#10b981;font-weight:700}.plan-features li.more{color:#6b7280;font-style:italic}.plan-features li.more:before{content:""}.plan-stats{display:flex;gap:24px;margin:16px 0;padding:16px 0;border-top:1px solid #e5e7eb}.plan-stats .stat{display:flex;flex-direction:column}.plan-stats .stat-value{font-size:20px;font-weight:700;color:#4f46e5}.plan-stats .stat-label{font-size:12px;color:#6b7280}.plan-actions{display:flex;gap:8px;margin-top:16px}.plan-actions button{flex:1;padding:10px;border:none;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:opacity .2s}.btn-edit{background:#e0e7ff;color:#4f46e5}.btn-edit:hover{background:#c7d2fe}.btn-activate{background:#d1fae5;color:#065f46}.btn-activate:hover{background:#a7f3d0}.btn-deactivate{background:#fef3c7;color:#92400e}.btn-deactivate:hover{background:#fde68a}.btn-delete{background:#fee2e2;color:#991b1b}.no-plans{grid-column:1 / -1;text-align:center;padding:60px;background:#f9fafb;border-radius:12px;border:2px dashed #e5e7eb}.no-plans p{color:#6b7280;margin:0 0 16px}.plan-modal{background:#fff;border-radius:16px;width:100%;max-width:700px;max-height:90vh;overflow-y:auto}.modal-close{background:none;border:none;font-size:28px;color:#9ca3af;cursor:pointer;padding:0;line-height:1}.form-section{margin:24px 0;padding-top:24px;border-top:1px solid #e5e7eb}.form-section h4{margin:0 0 16px;font-size:16px;color:#374151}.form-row{display:flex;gap:16px;flex-wrap:wrap}.form-group{flex:1;min-width:150px;margin-bottom:16px}.form-group label{display:block;font-size:14px;font-weight:500;color:#374151;margin-bottom:6px}.form-group input,.form-group select,.form-group textarea{width:100%;padding:10px 14px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;outline:none;transition:border-color .2s}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#4f46e5}.form-group.checkbox{display:flex;align-items:center}.form-group.checkbox label{display:flex;align-items:center;gap:8px;margin:0;cursor:pointer}.form-group.checkbox input{width:auto}.limits-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.limits-grid .form-group{margin-bottom:0}.limits-grid input{padding:8px 12px}.features-input{display:flex;gap:8px;margin-bottom:12px}.features-input input{flex:1;padding:10px 14px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;outline:none}.features-input button{padding:10px 20px;background:#4f46e5;color:#fff;border:none;border-radius:8px;cursor:pointer}.features-list{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}.features-list li{display:flex;align-items:center;gap:8px;padding:6px 12px;background:#f3f4f6;border-radius:20px;font-size:13px}.features-list li button{background:none;border:none;color:#9ca3af;cursor:pointer;font-size:16px;padding:0;line-height:1}.features-list li button:hover{color:#ef4444}.modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #e5e7eb;background:#f9fafb;position:sticky;bottom:0}.btn-cancel{padding:10px 20px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;cursor:pointer}.btn-cancel:hover{background:#f9fafb}.alert{padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:14px}.alert-error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.subscriptions-page{padding:24px}.subscriptions-header{margin-bottom:24px}.subscriptions-header h2{margin:0;font-size:24px;color:#1a1a2e}.subscriptions-header .subtitle{margin:4px 0 0;font-size:14px;color:#6b7280}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:24px}.stat-card.highlight{background:linear-gradient(135deg,#4f46e5,#7c3aed)}.stat-card.highlight .stat-value,.stat-card.highlight .stat-label{color:#fff}.stat-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px}.stat-icon.total{background:#e0e7ff}.stat-icon.active{background:#d1fae5}.stat-icon.trialing{background:#fef3c7}.stat-icon.mrr,.stat-icon.arr{background:#fff3}.stat-icon.canceled{background:#fee2e2}.stat-content{display:flex;flex-direction:column}.stat-value{font-size:24px;font-weight:700;color:#1a1a2e}.search-box input:focus{border-color:#4f46e5}.filters-bar select{padding:10px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;background:#fff;cursor:pointer;outline:none;min-width:140px}.subscriptions-table{width:100%;border-collapse:collapse}.subscriptions-table th,.subscriptions-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #e5e7eb}.subscriptions-table th{background:#f9fafb;font-weight:600;font-size:12px;color:#6b7280;text-transform:uppercase;letter-spacing:.05em}.subscriptions-table tbody tr:hover{background:#f9fafb}.plan-name{font-weight:500;color:#4f46e5}.status-badge.active{background:#d1fae5;color:#065f46}.status-badge.trialing{background:#fef3c7;color:#92400e}.status-badge.past-due{background:#fee2e2;color:#991b1b}.status-badge.paused{background:#e0e7ff;color:#4338ca}.status-badge.expired{background:#f3f4f6;color:#9ca3af}.trial-days{display:block;font-size:11px;color:#92400e;margin-top:2px}.billing-cycle{text-transform:capitalize;color:#6b7280}.next-billing{color:#6b7280}.btn-extend{background:#fef3c7;color:#92400e}.subscription-modal{background:#fff;border-radius:16px;width:100%;max-width:700px;max-height:90vh;overflow-y:auto}.detail-section h4{margin:0 0 16px;font-size:16px;color:#374151;padding-bottom:8px;border-bottom:1px solid #e5e7eb}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.detail-item{display:flex;flex-direction:column;gap:4px}.detail-item label{font-size:13px;color:#6b7280}.detail-item span{font-size:14px;color:#1a1a2e}.billing-history{margin-top:12px}.invoices-table th,.invoices-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #f3f4f6;font-size:13px}.invoices-table th{color:#6b7280;font-weight:500}.invoice-status{padding:2px 8px;border-radius:10px;font-size:11px}.invoice-status.paid{background:#d1fae5;color:#065f46}.invoice-status.pending{background:#fef3c7;color:#92400e}.invoice-status.failed{background:#fee2e2;color:#991b1b}.no-invoices{color:#9ca3af;text-align:center;padding:20px}.usage-grid{display:flex;flex-direction:column;gap:16px}.usage-item{display:flex;align-items:center;gap:12px}.usage-item label{width:120px;font-size:13px;color:#6b7280}.usage-bar{flex:1;height:8px;background:#e5e7eb;border-radius:4px;overflow:hidden}.usage-fill{height:100%;background:linear-gradient(90deg,#4f46e5,#7c3aed);border-radius:4px;transition:width .3s}.usage-item>span{min-width:80px;font-size:13px;color:#374151;text-align:right}.btn-primary{padding:10px 20px;background:#4f46e5;color:#fff;border:none;border-radius:8px;font-size:14px;cursor:pointer}.btn-secondary{padding:10px 20px;background:#e0e7ff;color:#4f46e5;border:none;border-radius:8px;font-size:14px;cursor:pointer}.btn-warning{padding:10px 20px;background:#fef3c7;color:#92400e;border:none;border-radius:8px;font-size:14px;cursor:pointer}.invoices-page{padding:24px}.invoices-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.invoices-header h2{margin:0;font-size:24px;color:#1a1a2e}.invoices-header .subtitle{margin:4px 0 0;font-size:14px;color:#6b7280}.btn-primary{padding:12px 24px;background:#4f46e5;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer}.revenue-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:24px}.revenue-card{background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 8px #0000000f}.revenue-card.main{background:linear-gradient(135deg,#10b981,#059669);grid-column:span 2}.revenue-card.main .revenue-label,.revenue-card.main .revenue-period,.revenue-card.main .revenue-value{color:#fff}.revenue-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.revenue-label{font-size:14px;color:#6b7280}.revenue-period{font-size:12px;color:#ffffffb3}.growth{font-size:13px;font-weight:600;padding:2px 8px;border-radius:12px}.growth.positive{background:#d1fae5;color:#065f46}.growth.negative{background:#fee2e2;color:#991b1b}.revenue-value{font-size:28px;font-weight:700;color:#1a1a2e}.revenue-count{font-size:32px;font-weight:700}.revenue-count.paid{color:#10b981}.revenue-count.pending{color:#f59e0b}.revenue-count.overdue{color:#ef4444}.revenue-compare{font-size:13px;color:#6b7280;margin-top:4px}.filters-bar{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap}.search-box{flex:1;min-width:250px}.search-box input{width:100%;padding:10px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;outline:none}.filters-bar select,.filters-bar input[type=date]{padding:10px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;background:#fff;cursor:pointer;outline:none}.table-container{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.invoices-table{width:100%;border-collapse:collapse}.invoices-table th,.invoices-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #e5e7eb}.invoices-table th{background:#f9fafb;font-weight:600;font-size:12px;color:#6b7280;text-transform:uppercase}.invoices-table tbody tr:hover{background:#f9fafb}.invoice-number{font-weight:600;color:#4f46e5}.customer-info{display:flex;flex-direction:column}.customer-name{font-weight:500;color:#1a1a2e}.customer-email{font-size:13px;color:#6b7280}.amount{font-weight:600;color:#1a1a2e}.status-badge{display:inline-block;padding:4px 10px;border-radius:20px;font-size:12px;font-weight:500;text-transform:capitalize}.status-badge.paid{background:#d1fae5;color:#065f46}.status-badge.pending{background:#fef3c7;color:#92400e}.status-badge.overdue{background:#fee2e2;color:#991b1b}.status-badge.refunded{background:#e0e7ff;color:#4338ca}.status-badge.canceled{background:#f3f4f6;color:#6b7280}.status-badge.draft{background:#f3f4f6;color:#9ca3af}.overdue-text{color:#ef4444;font-weight:500}.action-buttons button{padding:6px 12px;border:none;border-radius:6px;font-size:12px;cursor:pointer}.btn-paid{background:#d1fae5;color:#065f46}.no-data{text-align:center;color:#9ca3af;padding:40px!important}.pagination button{padding:8px 16px;border:1px solid #e5e7eb;background:#fff;border-radius:6px;font-size:14px;cursor:pointer}.invoice-modal{background:#fff;border-radius:16px;width:100%;max-width:700px;max-height:90vh;overflow-y:auto}.create-invoice-modal{background:#fff;border-radius:16px;width:100%;max-width:840px;max-height:90vh;overflow-y:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e5e7eb;position:sticky;top:0;background:#fff}.modal-header>div{display:flex;align-items:center;gap:12px}.modal-header h3{margin:0;font-size:20px;color:#1a1a2e}.modal-close{background:none;border:none;font-size:28px;color:#9ca3af;cursor:pointer}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-bottom:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:13px;font-weight:600;color:#374151}.form-group input,.form-group textarea,.form-group select{padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;outline:none}.form-group textarea{resize:vertical}.user-search{position:relative}.search-status{position:absolute;right:12px;top:12px;font-size:12px;color:#6b7280}.search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 20px #00000014;z-index:5;max-height:220px;overflow-y:auto}.search-result{width:100%;text-align:left;background:#fff;border:none;padding:10px 12px;display:flex;flex-direction:column;gap:2px;cursor:pointer}.search-result:hover{background:#f9fafb}.result-name{font-weight:600;color:#1a1a2e}.result-email{font-size:12px;color:#6b7280}.selected-customer{margin-top:8px;font-size:13px;color:#374151}.items-section{border:1px solid #e5e7eb;border-radius:12px;padding:16px;margin-bottom:20px;background:#f9fafb}.items-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.items-header h4{margin:0;font-size:14px;color:#1a1a2e}.btn-add-item{padding:6px 12px;border-radius:6px;border:1px solid #e5e7eb;background:#fff;font-size:12px;cursor:pointer}.items-grid{display:grid;gap:10px}.item-row{display:grid;grid-template-columns:1.6fr .6fr .8fr auto;gap:10px;align-items:center}.item-row input{padding:8px 10px;border:1px solid #e5e7eb;border-radius:8px;font-size:13px}.btn-remove-item{width:32px;height:32px;border-radius:8px;border:none;background:#fee2e2;color:#991b1b;cursor:pointer;font-size:16px}.btn-remove-item:disabled{opacity:.5;cursor:not-allowed}.invoice-summary{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px}.summary-row{display:flex;justify-content:space-between;padding:6px 0;font-size:14px;color:#374151}.summary-row.discount span:last-child{color:#059669;font-weight:600}.summary-row.total{font-size:16px;font-weight:700;border-top:1px solid #e5e7eb;margin-top:8px;padding-top:10px;color:#1a1a2e}.invoice-details{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}.invoice-section h4{margin:0 0 12px;font-size:14px;color:#6b7280;text-transform:uppercase;letter-spacing:.05em}.invoice-section .customer-name{font-size:16px;font-weight:600;margin:0 0 4px}.invoice-section .customer-email{margin:0 0 4px}.invoice-section .billing-address{margin:8px 0 0;color:#6b7280;font-size:14px}.detail-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f3f4f6;font-size:14px}.detail-row span:first-child{color:#6b7280}.detail-row span:last-child{color:#1a1a2e;font-weight:500}.invoice-items{margin-bottom:24px}.invoice-items h4{margin:0 0 16px;font-size:16px;color:#1a1a2e}.items-table{width:100%;border-collapse:collapse;margin-bottom:16px}.items-table th,.items-table td{padding:12px;text-align:left;border-bottom:1px solid #e5e7eb}.items-table th{background:#f9fafb;font-size:12px;font-weight:600;color:#6b7280;text-transform:uppercase}.items-table td{font-size:14px}.items-table td:last-child,.items-table th:last-child{text-align:right}.invoice-totals{margin-left:auto;max-width:300px}.total-row{display:flex;justify-content:space-between;padding:10px 0;font-size:14px;border-bottom:1px solid #f3f4f6}.total-row.discount span:last-child{color:#10b981}.total-row.grand-total{font-size:18px;font-weight:700;border-bottom:none;padding-top:16px}.total-row.grand-total span:last-child{color:#4f46e5}.invoice-notes,.payment-info{margin-top:24px;padding:16px;background:#f9fafb;border-radius:8px}.invoice-notes h4,.payment-info h4{margin:0 0 8px;font-size:14px;color:#374151}.invoice-notes p,.payment-info p{margin:0;font-size:14px;color:#6b7280}.btn-secondary{padding:10px 20px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;cursor:pointer}.btn-secondary:hover{background:#f9fafb}.btn-danger{padding:10px 20px;background:#fee2e2;color:#991b1b;border:none;border-radius:8px;font-size:14px;cursor:pointer}.error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;gap:16px}.error p{color:#ef4444}.error button{padding:10px 20px;background:#4f46e5;color:#fff;border:none;border-radius:8px;cursor:pointer}.integrations-page{padding:24px}.integrations-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.integrations-header h2{margin:0;font-size:24px;color:#1a1a2e}.integrations-summary{font-size:14px;color:#6b7280}.integration-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px;margin-bottom:24px}.stat-card{background:#fff;border-radius:12px;padding:16px;display:flex;align-items:center;gap:12px;box-shadow:0 2px 8px #0000000f}.stat-icon{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px}.stat-icon.google{background:#e8f0fe}.stat-icon.facebook{background:#e7f3ff}.stat-icon.instagram{background:#fce7f3}.stat-icon.linkedin{background:#e0f2fe}.stat-icon.youtube{background:#fee2e2}.stat-icon.error{background:#fef3c7}.stat-value{font-size:20px;font-weight:600;color:#1a1a2e}.stat-label{font-size:12px;color:#6b7280}.integrations-filters{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap}.integrations-filters .search-box{flex:1;min-width:250px;max-width:400px}.integrations-filters .search-box input{width:100%;padding:10px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;outline:none;transition:border-color .2s}.integrations-filters .search-box input:focus{border-color:#4f46e5}.integrations-filters .filter-select select{padding:10px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;background:#fff;color:#374151;cursor:pointer;outline:none;min-width:150px}.integrations-filters .filter-select select:focus{border-color:#4f46e5}.integrations-table-container{background:#fff;border-radius:12px;box-shadow:0 2px 8px #00000014;overflow:hidden}.integrations-table{width:100%;border-collapse:collapse}.integrations-table th,.integrations-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #e5e7eb}.integrations-table th{background:#f9fafb;font-weight:600;font-size:13px;color:#6b7280;text-transform:uppercase;letter-spacing:.05em}.integrations-table td{font-size:14px;color:#374151}.integrations-table tbody tr:hover{background:#f9fafb}.integrations-table .no-data{text-align:center;color:#9ca3af;padding:40px}.integration-type{display:flex;align-items:center;gap:8px}.type-icon{font-size:18px}.account-info{display:flex;flex-direction:column;gap:2px}.account-name{font-weight:500;color:#1a1a2e}.account-id{font-size:12px;color:#9ca3af}.user-info{display:flex;flex-direction:column;gap:2px}.user-name{font-weight:500;color:#1a1a2e}.status-badge{display:inline-block;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:500;text-transform:capitalize}.status-badge.active,.status-badge.connected{background:#d1fae5;color:#065f46}.status-badge.expired{background:#fef3c7;color:#92400e}.status-badge.error{background:#fee2e2;color:#991b1b}.status-badge.disconnected{background:#f3f4f6;color:#6b7280}.action-buttons button{padding:6px 12px;border:none;border-radius:6px;font-size:13px;cursor:pointer;transition:opacity .2s}.action-buttons button:disabled{opacity:.5;cursor:not-allowed}.btn-view{background:#e0e7ff;color:#4f46e5}.btn-view:hover:not(:disabled){background:#c7d2fe}.btn-disconnect{background:#fee2e2;color:#991b1b}.btn-disconnect:hover:not(:disabled){background:#fecaca}.btn-refresh{background:#d1fae5;color:#065f46}.btn-refresh:hover:not(:disabled){background:#a7f3d0}.pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:24px;padding:16px}.pagination button{padding:8px 16px;border:1px solid #e5e7eb;background:#fff;border-radius:6px;font-size:14px;cursor:pointer;transition:all .2s}.pagination button:hover:not(:disabled){background:#f9fafb;border-color:#4f46e5}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.modal{background:#fff;border-radius:12px;width:90%;max-width:550px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 50px #0003}.modal-header h3{margin:0;font-size:18px;color:#1a1a2e;display:flex;align-items:center;gap:10px}.modal-icon{font-size:24px}.modal-close{background:none;border:none;font-size:24px;color:#9ca3af;cursor:pointer;padding:0;line-height:1}.modal-close:hover{color:#6b7280}.detail-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #f3f4f6}.detail-row label{font-size:14px;color:#6b7280;font-weight:500}.detail-row span{font-size:14px;color:#1a1a2e}.detail-row.error-row{flex-direction:column;align-items:flex-start;gap:8px}.error-message{background:#fee2e2;color:#991b1b;padding:10px 14px;border-radius:8px;font-size:13px;width:100%;box-sizing:border-box}.text-error{color:#dc2626!important;font-weight:500}.integration-stats-section{margin-top:24px;padding-top:24px;border-top:1px solid #e5e7eb}.integration-stats-section h4{margin:0 0 16px;font-size:16px;color:#1a1a2e}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.stat-item{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#f9fafb;border-radius:8px;font-size:13px}.stat-key{color:#6b7280;text-transform:capitalize}.stat-val{font-weight:600;color:#4f46e5}.modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #e5e7eb;background:#f9fafb}.modal-footer button{padding:10px 20px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer}.loading{display:flex;justify-content:center;align-items:center;min-height:300px;font-size:16px;color:#6b7280}.error{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:300px;gap:16px}.integration-settings-page{padding:24px}.settings-header{margin-bottom:24px}.settings-header h2{margin:0 0 8px;font-size:24px;color:#1a1a2e}.settings-description{margin:0;color:#6b7280;font-size:14px}.settings-container{display:flex;gap:24px;min-height:600px}.platform-tabs{width:220px;flex-shrink:0;display:flex;flex-direction:column;gap:4px;background:#fff;border-radius:12px;padding:12px;box-shadow:0 2px 8px #0000000f;height:fit-content}.platform-tab{display:flex;align-items:center;gap:10px;padding:12px 14px;border:none;background:transparent;border-radius:8px;cursor:pointer;text-align:left;transition:all .2s;position:relative}.platform-tab:hover{background:#f3f4f6}.platform-tab.active{background:#4f46e5;color:#fff}.platform-tab.active .tab-name{color:#fff}.platform-tab.active .tab-status{background:#fff3;color:#fff}.tab-icon{font-size:18px}.tab-name{flex:1;font-size:14px;font-weight:500;color:#374151}.tab-status{font-size:10px;padding:2px 6px;background:#d1fae5;color:#065f46;border-radius:4px;font-weight:500}.unsaved-dot{position:absolute;top:8px;right:8px;width:8px;height:8px;background:#f59e0b;border-radius:50%}.settings-form{flex:1;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.form-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;background:#f9fafb;border-bottom:1px solid #e5e7eb;border-left:4px solid #4f46e5}.platform-info{display:flex;align-items:center;gap:14px}.platform-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px;color:#fff}.platform-info h3{margin:0 0 4px;font-size:18px;color:#1a1a2e}.platform-info p{margin:0;font-size:13px;color:#6b7280}.toggle-switch{display:flex;align-items:center;gap:10px;cursor:pointer}.toggle-switch input{display:none}.slider{width:44px;height:24px;background:#e5e7eb;border-radius:12px;position:relative;transition:background .3s}.slider:before{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;background:#fff;border-radius:50%;transition:transform .3s;box-shadow:0 2px 4px #0000001a}.toggle-switch input:checked+.slider{background:#4f46e5}.toggle-switch input:checked+.slider:before{transform:translate(20px)}.toggle-label{font-size:14px;font-weight:500;color:#374151}.form-body{padding:24px}.form-section{margin-bottom:28px}.form-section:last-child{margin-bottom:0}.platform-hint{background:#fef3c7;border:1px solid #fcd34d;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#92400e;display:flex;align-items:center;gap:8px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-header h4{margin:0;font-size:14px;font-weight:600;color:#1a1a2e;text-transform:uppercase;letter-spacing:.05em}.docs-link{font-size:13px;color:#4f46e5;text-decoration:none;font-weight:500}.docs-link:hover{text-decoration:underline}.form-section h4{margin:0 0 16px;font-size:14px;font-weight:600;color:#1a1a2e;text-transform:uppercase;letter-spacing:.05em}.env-key{display:inline-block;margin-left:8px;padding:2px 6px;background:#f3f4f6;border-radius:4px;font-size:10px;font-family:monospace;color:#6b7280;font-weight:400}.form-group:last-child{margin-bottom:0}.form-group label{display:block;margin-bottom:6px;font-size:14px;font-weight:500;color:#374151}.form-group label .required{color:#dc2626;margin-left:4px}.input-wrapper{display:flex;align-items:center;gap:8px;position:relative}.input-wrapper input{flex:1;padding:10px 14px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;color:#374151;outline:none;transition:border-color .2s}.input-wrapper input:focus{border-color:#4f46e5}.input-wrapper.readonly input{background:#f9fafb;color:#6b7280}.btn-toggle-visibility,.btn-copy{padding:8px;border:none;background:#f3f4f6;border-radius:6px;cursor:pointer;font-size:14px;transition:background .2s}.btn-toggle-visibility:hover,.btn-copy:hover{background:#e5e7eb}.field-hint{display:block;margin-top:6px;font-size:12px;color:#9ca3af}.scopes-list{display:flex;flex-wrap:wrap;gap:8px}.scope-tag{display:inline-block;padding:4px 10px;background:#f3f4f6;border-radius:4px;font-size:12px;color:#4b5563;font-family:monospace}.setup-instructions{display:flex;flex-direction:column;gap:16px}.instruction-item{display:flex;gap:14px;align-items:flex-start}.instruction-item .step{width:28px;height:28px;background:#4f46e5;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;flex-shrink:0}.instruction-item strong{display:block;margin-bottom:4px;font-size:14px;color:#1a1a2e}.instruction-item p{margin:0;font-size:13px;color:#6b7280}.redirect-uri{display:block;margin-top:8px;padding:10px 14px;background:#1a1a2e;color:#a5f3fc;border-radius:6px;font-size:12px;word-break:break-all}.form-footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;background:#f9fafb;border-top:1px solid #e5e7eb}.form-footer button{padding:10px 20px;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.form-footer button:disabled{opacity:.5;cursor:not-allowed}.btn-test{background:#f3f4f6;color:#374151}.btn-test:hover:not(:disabled){background:#e5e7eb}.btn-save{background:#4f46e5;color:#fff}.btn-save:hover:not(:disabled){background:#4338ca}.loading{display:flex;justify-content:center;align-items:center;min-height:400px;font-size:16px;color:#6b7280}.error{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:400px;gap:16px}.error p{color:#ef4444;font-size:16px}.error button{padding:10px 20px;background:#4f46e5;color:#fff;border:none;border-radius:6px;cursor:pointer}@media (max-width: 900px){.settings-container{flex-direction:column}.platform-tabs{width:100%;flex-direction:row;flex-wrap:wrap;gap:8px}.platform-tab{flex:1;min-width:140px;justify-content:center}.tab-name{display:none}.platform-tab.active .tab-name{display:block}}.integration-health-page{padding:24px;max-width:1400px;margin:0 auto}.health-tabs{display:flex;gap:4px;margin-bottom:24px;border-bottom:1px solid #e5e7eb}.health-tabs .tab{padding:12px 20px;border:none;background:transparent;color:#6b7280;font-size:14px;font-weight:500;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:all .2s;display:flex;align-items:center;gap:8px}.health-tabs .tab:hover{color:#4f46e5}.health-tabs .tab.active{color:#4f46e5;border-bottom-color:#4f46e5}.error-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;background:#ef4444;color:#fff;border-radius:10px;font-size:11px;font-weight:600}.overview-content{display:block}.summary-cards{display:flex;flex-wrap:nowrap;gap:16px;margin-bottom:32px}.summary-card{flex:1;min-width:0;background:#fff;border-radius:12px;padding:24px 20px;text-align:center;box-shadow:0 1px 3px #0000001a;border-left:4px solid #e5e7eb;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:0;height:auto}.summary-card.total{border-left-color:#6366f1}.summary-card.healthy{border-left-color:#22c55e}.summary-card.warning{border-left-color:#f59e0b}.summary-card.error{border-left-color:#ef4444}.summary-card .summary-value{display:block;font-size:36px;font-weight:700;color:#1a1a2e;line-height:1;margin:0 0 8px}.summary-card .summary-label{display:block;font-size:14px;color:#6b7280;margin:0}.section-title{margin:0 0 16px;font-size:16px;font-weight:600;color:#1a1a2e}.platform-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;align-items:start}.platform-card{background:#fff;border-radius:12px;padding:16px;box-shadow:0 1px 3px #0000001a;cursor:pointer;transition:all .2s;border-left:4px solid #e5e7eb;display:block}.platform-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.platform-card.healthy{border-left-color:#22c55e}.platform-card.warning{border-left-color:#f59e0b}.platform-card.error{border-left-color:#ef4444}.platform-card.inactive{border-left-color:#9ca3af;opacity:.7}.platform-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:12px}.platform-icon{font-size:24px;line-height:1;flex-shrink:0}.platform-info{flex:1;min-width:0}.platform-info h4{margin:0;font-size:14px;font-weight:600;color:#1a1a2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-indicator{display:inline-block;padding:4px 10px;border-radius:4px;font-size:10px;font-weight:600;text-transform:uppercase;line-height:1;white-space:nowrap}.status-indicator.healthy{background:#dcfce7;color:#15803d}.status-indicator.warning{background:#fef3c7;color:#b45309}.status-indicator.error{background:#fee2e2;color:#dc2626}.status-indicator.inactive{background:#f3f4f6;color:#6b7280}.platform-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-bottom:12px}.platform-stats .stat{text-align:center;padding:6px 4px;background:#f9fafb;border-radius:6px}.platform-stats .stat .stat-value{display:block;font-size:18px;font-weight:600;color:#1a1a2e;line-height:1}.platform-stats .stat .stat-label{display:block;font-size:9px;color:#6b7280;text-transform:uppercase;margin-top:4px}.platform-stats .stat.healthy .stat-value{color:#22c55e}.platform-stats .stat.warning .stat-value{color:#f59e0b}.platform-stats .stat.error .stat-value{color:#ef4444}.platform-footer{padding-top:10px;border-top:1px solid #f3f4f6;margin-top:4px}.last-sync{font-size:11px;color:#9ca3af}.platform-detail{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a}.detail-header{display:flex;align-items:center;gap:16px;margin-bottom:24px;flex-wrap:wrap}.detail-header h3{margin:0;flex:1;font-size:18px;font-weight:600;color:#1a1a2e}.btn-back{padding:8px 16px;background:#f3f4f6;color:#374151;border:none;border-radius:6px;font-size:14px;cursor:pointer;transition:background .2s}.btn-back:hover{background:#e5e7eb}.status-filter{padding:8px 12px;border:1px solid #e5e7eb;border-radius:6px;font-size:14px;color:#374151;background:#fff}.integration-name{font-weight:500;color:#1a1a2e}.user-info .user-name{font-weight:500;color:#1a1a2e;font-size:14px}.status-badge.inactive,.status-badge.disconnected{background:#fee2e2;color:#dc2626}.status-badge.pending{background:#fef3c7;color:#b45309}.health-dot{display:inline-block;width:12px;height:12px;border-radius:50%}.error-text{font-size:12px;color:#ef4444;max-width:200px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn-retry{padding:6px 12px;background:#fef3c7;color:#b45309;border:none;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;transition:background .2s}.btn-retry:hover{background:#fde68a}.platform-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;background:#f3f4f6;border-radius:6px;font-size:13px;color:#374151}.error-message{font-size:13px;color:#ef4444;max-width:300px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.errors-content,.history-content{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a}.history-timeline{display:flex;flex-direction:column;gap:8px}.timeline-item{display:flex;gap:20px;padding:12px 16px;background:#f9fafb;border-radius:8px;align-items:center}.timeline-time{flex-shrink:0;width:160px;font-size:13px;color:#6b7280}.timeline-content{flex:1;display:flex;align-items:center;gap:16px}.sync-stats{display:flex;gap:12px}.sync-count{font-size:13px;color:#374151}.sync-stats .error-count{font-size:13px;color:#ef4444;font-weight:500}.empty-state.success{color:#22c55e}@media (max-width: 1200px){.summary-cards{flex-wrap:wrap}.summary-card{flex:1 1 calc(50% - 12px);min-width:150px}.platform-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.summary-cards{flex-wrap:wrap}.summary-card{flex:1 1 calc(50% - 8px);min-width:120px}.platform-grid{grid-template-columns:1fr}.page-header{flex-direction:column;gap:16px}.detail-header{flex-direction:column;align-items:flex-start}.timeline-item{flex-direction:column;align-items:flex-start;gap:8px}.timeline-time{width:auto}}@media (max-width: 480px){.summary-cards{flex-direction:column}.summary-card{flex:1 1 100%}}.usage-page{padding:24px}.page-header h2{margin:0 0 8px;font-size:24px;color:#1a1a2e}.header-actions{display:flex;gap:12px}.range-select{padding:8px 12px;border:1px solid #e5e7eb;border-radius:6px;font-size:14px;color:#374151;background:#fff}.usage-tabs{display:flex;gap:4px;margin-bottom:24px;border-bottom:1px solid #e5e7eb;padding-bottom:0}.usage-tabs .tab{padding:12px 20px;border:none;background:transparent;color:#6b7280;font-size:14px;font-weight:500;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:all .2s}.usage-tabs .tab:hover{color:#4f46e5}.usage-tabs .tab.active{color:#4f46e5;border-bottom-color:#4f46e5}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:32px}.stat-card{background:#fff;border-radius:12px;padding:20px;display:flex;align-items:center;gap:16px;box-shadow:0 2px 8px #0000000f}.stat-icon{width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px}.stat-icon.api{background:#dbeafe}.stat-icon.clients{background:#dcfce7}.stat-icon.integrations{background:#fef3c7}.stat-icon.reports{background:#f3e8ff}.stat-info{display:flex;flex-direction:column}.stat-value{font-size:28px;font-weight:700;color:#1a1a2e}.stat-label{font-size:13px;color:#6b7280}.section{background:#fff;border-radius:12px;padding:24px;margin-bottom:24px;box-shadow:0 2px 8px #0000000f}.section h3{margin:0 0 20px;font-size:16px;font-weight:600;color:#1a1a2e}.table-container{overflow-x:auto}.user-cell{display:flex;align-items:center;gap:10px}.user-cell .rank{width:28px;height:28px;background:#4f46e5;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.user-cell .name{font-weight:500;color:#1a1a2e}.user-info .user-name{font-weight:500;color:#1a1a2e}.user-info .user-email{font-size:12px;color:#6b7280}.usage-bars{display:flex;flex-direction:column;gap:16px}.usage-bar-item{display:flex;flex-direction:column;gap:8px}.bar-header{display:flex;justify-content:space-between;align-items:center}.bar-label{font-size:14px;color:#374151}.bar-value{font-size:14px;font-weight:500;color:#1a1a2e}.bar-track{height:8px;background:#f3f4f6;border-radius:4px;overflow:hidden}.bar-fill{height:100%;border-radius:4px;transition:width .3s ease}.bar-fill.api_call{background:#3b82f6}.bar-fill.client_created{background:#22c55e}.bar-fill.integration_added{background:#f59e0b}.bar-fill.report_generated{background:#a855f7}.filters-bar{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}.filters-bar select,.filters-bar input{padding:10px 14px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;color:#374151;background:#fff}.filters-bar input[type=text]{min-width:200px}.filters-bar input[type=date]{min-width:150px}.btn-filter{padding:10px 20px;background:#4f46e5;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.btn-filter:hover{background:#4338ca}.type-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:6px;font-size:12px;font-weight:500}.type-badge.api_call{background:#dbeafe;color:#1d4ed8}.type-badge.client_created{background:#dcfce7;color:#15803d}.type-badge.integration_added{background:#fef3c7;color:#b45309}.type-badge.report_generated{background:#f3e8ff;color:#7e22ce}.status-badge.trialing{background:#dbeafe;color:#1d4ed8}.plan-badge{display:inline-block;padding:4px 10px;background:#f3f4f6;border-radius:6px;font-size:12px;font-weight:500;color:#374151}.resource{font-size:13px;color:#6b7280;font-family:monospace}.metadata{font-size:12px;color:#9ca3af;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.usage-cell{display:flex;align-items:center;gap:4px}.usage-cell .limit{color:#9ca3af;font-size:12px}.quota-bar{position:relative;width:100px;height:8px;background:#f3f4f6;border-radius:4px;overflow:hidden}.quota-fill{height:100%;background:#22c55e;border-radius:4px;transition:width .3s ease}.quota-fill.warning{background:#f59e0b}.quota-fill.danger{background:#ef4444}.quota-text{position:absolute;right:-35px;top:-3px;font-size:11px;color:#6b7280}.unlimited{color:#9ca3af;font-size:12px;font-style:italic}.pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:24px}@media (max-width: 1200px){.stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.stats-grid{grid-template-columns:1fr}.page-header{flex-direction:column;gap:16px}.filters-bar{flex-direction:column}.filters-bar input,.filters-bar select{width:100%}}.payment-methods-page{padding:24px;max-width:1600px;margin:0 auto}.stats-cards{display:flex;gap:16px;margin-bottom:24px}.stat-card{flex:1;background:#fff;border-radius:12px;padding:20px;text-align:center;box-shadow:0 1px 3px #0000001a;border-left:4px solid #e5e7eb}.stat-card.has-payment{border-left-color:#22c55e}.stat-card.no-payment{border-left-color:#f59e0b}.stat-card.stripe{border-left-color:#6366f1}.stat-card.active{border-left-color:#06b6d4}.stat-card .stat-value{display:block;font-size:32px;font-weight:700;color:#1a1a2e;line-height:1;margin-bottom:8px}.stat-card .stat-label{display:block;font-size:13px;color:#6b7280}.search-form{display:flex;flex:1;max-width:500px;gap:8px}.status-filter{padding:10px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;color:#374151;background:#fff;min-width:180px}.user-info{display:flex;flex-direction:column}.user-name{font-weight:500;color:#1a1a2e;font-size:14px}.user-email{font-size:12px;color:#6b7280}.stripe-id{font-family:monospace;font-size:12px;color:#6366f1;background:#eef2ff;padding:4px 8px;border-radius:4px}.no-data{color:#9ca3af;font-size:13px;font-style:italic}.payment-method-badge{display:inline-block;padding:4px 10px;border-radius:6px;font-size:12px;font-family:monospace}.payment-method-badge.has{background:#dcfce7;color:#15803d}.payment-method-badge.none{background:#fef3c7;color:#b45309}.plan-badge{display:inline-block;padding:4px 10px;background:#e0e7ff;color:#4338ca;border-radius:6px;font-size:12px;font-weight:500}.status-badge.trialing{background:#e0e7ff;color:#4338ca}.status-badge.past_due{background:#fee2e2;color:#dc2626}.status-badge.canceled,.status-badge.cancelled{background:#f3f4f6;color:#6b7280}.status-badge.none{background:#f3f4f6;color:#9ca3af}.btn-view{padding:6px 12px;background:#f3f4f6;color:#374151;border:none;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:background .2s}.btn-view:hover{background:#e5e7eb}.btn-remove{padding:6px 12px;background:#fee2e2;color:#dc2626;border:none;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:background .2s}.btn-remove:hover{background:#fecaca}.detail-row .value{font-size:13px;color:#1a1a2e;font-weight:500;text-align:right;max-width:200px;word-break:break-all}.stripe-value{font-family:monospace;font-size:11px!important;color:#6366f1!important}.invoices-list{display:flex;flex-direction:column;gap:8px}.invoice-item{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#f9fafb;border-radius:8px}.invoice-info{display:flex;align-items:center;gap:10px}.invoice-amount{font-weight:600;color:#1a1a2e;font-size:14px}.invoice-status{font-size:11px;padding:2px 8px;border-radius:10px;font-weight:500}.invoice-status.paid{background:#dcfce7;color:#15803d}.invoice-status.pending,.invoice-status.open{background:#fef3c7;color:#b45309}.invoice-status.void,.invoice-status.uncollectible{background:#f3f4f6;color:#6b7280}.invoice-date{font-size:12px;color:#9ca3af}.btn-danger{width:100%;padding:12px;background:#fee2e2;color:#dc2626;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.btn-danger:hover{background:#fecaca}@media (max-width: 1200px){.content-layout{flex-direction:column}.details-panel{width:100%;position:static;max-height:none}.stats-cards{flex-wrap:wrap}.stat-card{flex:1 1 calc(33.333% - 12px);min-width:150px}}@media (max-width: 768px){.filters-bar{flex-direction:column;align-items:stretch}.search-form{max-width:none}.status-filter{width:100%}.stat-card{flex:1 1 calc(50% - 8px)}.page-header{flex-direction:column;gap:16px}.data-table th,.data-table td{padding:10px 12px;font-size:12px}}@media (max-width: 480px){.stats-cards{flex-direction:column}.stat-card{flex:1 1 100%}}.coupons-page{padding:24px;max-width:1600px;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.btn-primary{padding:10px 20px;background:#4f46e5;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.btn-primary:hover{background:#4338ca}.filters-bar{display:flex;gap:16px;margin-bottom:24px;align-items:center}.search-form{display:flex;flex:1;max-width:400px;gap:8px}.search-input{flex:1;padding:10px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;color:#374151}.btn-search{padding:10px 20px;background:#f3f4f6;color:#374151;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;cursor:pointer;transition:background .2s}.status-filter{padding:10px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;color:#374151;background:#fff;min-width:150px}.content-layout{display:flex;gap:24px}.table-section{flex:1;min-width:0}.table-container{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.data-table th,.data-table td{padding:12px 16px;text-align:left;border-bottom:1px solid #f3f4f6}.data-table th{font-size:12px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;background:#f9fafb}.data-table tbody tr{cursor:pointer;transition:background .2s}.data-table tbody tr.selected{background:#eef2ff}.coupon-code{display:flex;flex-direction:column}.coupon-code .code{font-family:monospace;font-weight:600;font-size:14px;color:#4f46e5;background:#eef2ff;padding:4px 8px;border-radius:4px;display:inline-block;width:fit-content}.coupon-code .description{font-size:12px;color:#6b7280;margin-top:4px}.discount-badge{display:inline-block;padding:4px 10px;background:#dcfce7;color:#15803d;border-radius:6px;font-size:13px;font-weight:600}.usage-info{font-size:13px;color:#374151}.validity-info{font-size:12px;color:#6b7280}.no-expiry{color:#22c55e}.status-badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:500;text-transform:capitalize}.status-badge.active{background:#dcfce7;color:#15803d}.status-badge.expired{background:#fee2e2;color:#dc2626}.status-badge.exhausted{background:#fef3c7;color:#b45309}.action-buttons{display:flex;gap:8px}.btn-edit{padding:6px 12px;background:#f3f4f6;color:#374151;border:none;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:background .2s}.btn-edit:hover{background:#e5e7eb}.btn-delete{padding:6px 12px;background:#fee2e2;color:#dc2626;border:none;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:background .2s}.btn-delete:hover{background:#fecaca}.pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:16px;background:#fff;border-top:1px solid #f3f4f6}.pagination button{padding:8px 16px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;font-size:14px;color:#374151;cursor:pointer;transition:all .2s}.pagination button:hover:not(:disabled){background:#f9fafb;border-color:#d1d5db}.pagination span{font-size:14px;color:#6b7280}.details-panel{width:380px;flex-shrink:0;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;overflow:hidden;position:sticky;top:24px;max-height:calc(100vh - 200px);overflow-y:auto}.panel-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #f3f4f6;background:#f9fafb}.panel-header h3{margin:0;font-size:16px;font-weight:600;color:#1a1a2e}.btn-close{padding:6px 12px;background:transparent;color:#6b7280;border:none;font-size:13px;cursor:pointer}.panel-content{padding:16px 20px}.detail-section{margin-bottom:24px}.detail-section:last-child{margin-bottom:0}.detail-section h4{margin:0 0 12px;font-size:13px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.05em}.detail-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #f3f4f6}.detail-row:last-child{border-bottom:none}.detail-row .label{font-size:13px;color:#6b7280}.detail-row .value{font-size:13px;color:#1a1a2e;font-weight:500;text-align:right}.code-value{font-family:monospace;color:#4f46e5!important;background:#eef2ff;padding:2px 8px;border-radius:4px}.redemptions-list{display:flex;flex-direction:column;gap:8px}.redemption-item{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#f9fafb;border-radius:8px}.redemption-info{display:flex;flex-direction:column;gap:2px}.redemption-info .user-email{font-size:13px;color:#1a1a2e}.redemption-info .discount-amount{font-size:12px;color:#22c55e;font-weight:500}.redemption-date{font-size:11px;color:#9ca3af}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000;padding:20px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #f3f4f6}.modal-header h3{margin:0;font-size:18px;font-weight:600;color:#1a1a2e}.modal-header .btn-close{font-size:24px;line-height:1;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px}.modal-header .btn-close:hover{background:#f3f4f6}.form-row{display:flex;gap:16px;margin-bottom:16px}.form-row .form-group{flex:1;margin-bottom:0}.form-group label{display:block;font-size:13px;font-weight:500;color:#374151;margin-bottom:6px}.form-group input,.form-group select{width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;color:#374151;transition:border-color .2s}.form-group input:focus,.form-group select:focus{outline:none;border-color:#4f46e5}.modal-footer{display:flex;justify-content:flex-end;gap:12px;padding-top:16px;border-top:1px solid #f3f4f6;margin-top:8px}.btn-secondary{padding:10px 20px;background:#f3f4f6;color:#374151;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.btn-secondary:hover{background:#e5e7eb}.loading{display:flex;justify-content:center;align-items:center;min-height:200px;font-size:14px;color:#6b7280}.empty-state{text-align:center;padding:40px 20px;color:#9ca3af}@media (max-width: 1200px){.content-layout{flex-direction:column}.details-panel{width:100%;position:static;max-height:none}}@media (max-width: 768px){.filters-bar{flex-direction:column;align-items:stretch}.search-form{max-width:none}.status-filter{width:100%}.page-header{flex-direction:column;gap:16px}.form-row{flex-direction:column}.data-table th,.data-table td{padding:10px 12px;font-size:12px}}.support-tickets-page{padding:24px;max-width:1600px;margin:0 auto;height:calc(100vh - 80px);display:flex;flex-direction:column}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;flex-shrink:0}.page-header h2{margin:0 0 8px;font-size:24px;font-weight:600;color:#1a1a2e}.page-description{margin:0;color:#6b7280;font-size:14px}.btn-refresh{padding:10px 20px;background:#4f46e5;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.btn-refresh:hover{background:#4338ca}.stats-cards,.stats-detail-row{display:flex;gap:12px;margin-bottom:20px;flex-shrink:0}.stats-detail-card{flex:1;background:#fff;border-radius:10px;padding:12px 16px;box-shadow:0 1px 3px #00000014;display:flex;flex-direction:column;gap:6px}.stats-detail-card.categories{flex:2}.detail-label{font-size:12px;color:#6b7280;text-transform:uppercase;letter-spacing:.04em}.detail-value{font-size:20px;font-weight:700;color:#1a1a2e}.category-chips{display:flex;flex-wrap:wrap;gap:8px}.category-chip{background:#eef2ff;color:#4338ca;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:500;display:inline-flex;align-items:center;gap:6px}.empty-chip{font-size:12px;color:#9ca3af}.stat-card{flex:1;background:#fff;border-radius:10px;padding:16px;text-align:center;box-shadow:0 1px 3px #0000001a;border-top:3px solid #e5e7eb}.stat-card.open{border-top-color:#3b82f6}.stat-card.in-progress{border-top-color:#f59e0b}.stat-card.urgent{border-top-color:#dc2626}.stat-card.unassigned{border-top-color:#8b5cf6}.stat-card.resolved{border-top-color:#22c55e}.stat-card .stat-value{display:block;font-size:28px;font-weight:700;color:#1a1a2e;line-height:1;margin-bottom:4px}.stat-card .stat-label{font-size:12px;color:#6b7280}.filters-bar{display:flex;gap:12px;margin-bottom:20px;flex-shrink:0}.search-form{display:flex;flex:1;max-width:300px;gap:8px}.search-input{flex:1;padding:8px 12px;border:1px solid #e5e7eb;border-radius:6px;font-size:14px}.search-input:focus{outline:none;border-color:#4f46e5}.btn-search{padding:8px 16px;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;font-size:14px;cursor:pointer}.btn-search:hover{background:#e5e7eb}.filter-select{padding:8px 12px;border:1px solid #e5e7eb;border-radius:6px;font-size:14px;background:#fff;min-width:140px}.content-layout{display:flex;gap:20px;flex:1;min-height:0;overflow:hidden}.tickets-list{width:380px;flex-shrink:0;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-right:8px}.ticket-card{background:#fff;border-radius:10px;padding:14px;cursor:pointer;transition:all .2s;border-left:4px solid #e5e7eb;box-shadow:0 1px 3px #0000000d}.ticket-card:hover{box-shadow:0 4px 12px #0000001a}.ticket-card.selected{background:#eef2ff;border-left-color:#4f46e5}.ticket-card.open{border-left-color:#3b82f6}.ticket-card.in_progress{border-left-color:#f59e0b}.ticket-card.waiting_on_customer{border-left-color:#8b5cf6}.ticket-card.resolved{border-left-color:#22c55e}.ticket-card.closed{border-left-color:#6b7280}.ticket-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.ticket-number{font-family:monospace;font-size:11px;color:#6b7280}.priority-badge{padding:2px 8px;border-radius:10px;font-size:10px;font-weight:600;color:#fff;text-transform:uppercase}.ticket-subject{margin:0 0 8px;font-size:14px;font-weight:500;color:#1a1a2e;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ticket-meta{display:flex;justify-content:space-between;font-size:12px;color:#6b7280;margin-bottom:8px}.ticket-footer{display:flex;justify-content:space-between;align-items:center}.status-badge{padding:3px 8px;border-radius:10px;font-size:11px;font-weight:500;text-transform:capitalize}.status-badge.open{background:#dbeafe;color:#1d4ed8}.status-badge.in_progress{background:#fef3c7;color:#b45309}.status-badge.waiting_on_customer{background:#ede9fe;color:#6d28d9}.status-badge.resolved{background:#dcfce7;color:#15803d}.status-badge.closed{background:#f3f4f6;color:#6b7280}.message-count{font-size:11px;color:#9ca3af}.ticket-details{flex:1;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;display:flex;flex-direction:column;overflow:hidden}.details-header{padding:16px 20px;border-bottom:1px solid #f3f4f6;flex-shrink:0}.details-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.details-title .ticket-number{font-size:12px}.btn-close{padding:4px 12px;background:transparent;color:#6b7280;border:none;font-size:13px;cursor:pointer}.btn-close:hover{color:#374151}.details-header h3{margin:0 0 10px;font-size:16px;font-weight:600;color:#1a1a2e}.details-meta{display:flex;gap:12px;font-size:12px;color:#6b7280;align-items:center;flex-wrap:wrap}.category-badge{background:#f3f4f6;padding:3px 10px;border-radius:10px;font-weight:500;text-transform:capitalize}.assigned-pill{background:#e0f2fe;color:#0369a1;padding:3px 10px;border-radius:999px;font-weight:600;font-size:11px}.quick-actions{display:flex;gap:16px;padding:12px 20px;background:#f9fafb;border-bottom:1px solid #f3f4f6;flex-shrink:0;flex-wrap:wrap}.action-group{display:flex;align-items:center;gap:8px}.action-group label{font-size:12px;font-weight:500;color:#6b7280}.action-group select{padding:6px 10px;border:1px solid #e5e7eb;border-radius:6px;font-size:13px;background:#fff}.assign-actions{display:flex;gap:8px}.btn-assign,.btn-unassign{padding:6px 10px;border-radius:6px;font-size:12px;border:1px solid #e5e7eb;background:#fff;cursor:pointer}.btn-assign{background:#4f46e5;color:#fff;border-color:#4f46e5}.btn-assign:disabled{opacity:.6;cursor:not-allowed}.btn-unassign{background:#f3f4f6;color:#374151}.tags-section{padding:16px 20px;border-bottom:1px solid #f3f4f6;background:#fff}.tags-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.tags-header h4{margin:0;font-size:14px;color:#1a1a2e}.btn-save-tags{padding:6px 12px;border:none;border-radius:6px;background:#4f46e5;color:#fff;font-size:12px;cursor:pointer}.tags-grid{display:flex;flex-wrap:wrap;gap:8px}.tag-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;border:1px solid #e5e7eb;background:#f9fafb;font-size:12px;color:#374151;cursor:pointer}.tag-chip input{margin:0}.tag-chip.active{background:#eef2ff;border-color:#c7d2fe;color:#4338ca}.empty-tags{font-size:12px;color:#9ca3af}.messages-container{flex:1;overflow-y:auto;padding:16px 20px;display:flex;flex-direction:column;gap:12px}.message{max-width:85%;padding:12px 16px;border-radius:12px;font-size:14px}.message.customer{align-self:flex-start;background:#f3f4f6;border-bottom-left-radius:4px}.message.admin{align-self:flex-end;background:#eef2ff;border-bottom-right-radius:4px}.message.internal{background:#fef3c7;border:1px dashed #f59e0b}.message-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;gap:12px}.message-author{font-size:12px;font-weight:600;color:#374151;display:flex;align-items:center;gap:8px}.internal-badge{background:#f59e0b;color:#fff;padding:2px 6px;border-radius:8px;font-size:10px;font-weight:500}.message-time{font-size:11px;color:#9ca3af}.message-content{color:#374151;line-height:1.5;white-space:pre-wrap}.reply-form{padding:16px 20px;border-top:1px solid #f3f4f6;background:#f9fafb;flex-shrink:0}.reply-form textarea{width:100%;padding:12px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;resize:none;font-family:inherit}.reply-form textarea:focus{outline:none;border-color:#4f46e5}.reply-actions{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.internal-note-toggle{display:flex;align-items:center;gap:6px;font-size:12px;color:#6b7280;cursor:pointer}.internal-note-toggle input{cursor:pointer}.btn-send{padding:10px 20px;background:#4f46e5;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.btn-send:hover:not(:disabled){background:#4338ca}.btn-send:disabled{opacity:.5;cursor:not-allowed}.pagination{display:flex;justify-content:center;align-items:center;gap:12px;padding:12px 0;margin-top:auto}.pagination button{padding:6px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;font-size:13px;cursor:pointer}.pagination button:disabled{opacity:.5;cursor:not-allowed}.pagination span{font-size:13px;color:#6b7280}.loading{display:flex;justify-content:center;align-items:center;min-height:200px;color:#6b7280}.empty-state{display:flex;justify-content:center;align-items:center;min-height:200px;color:#9ca3af;text-align:center}.error-state{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:300px;gap:16px}.error-state p{color:#ef4444}.error-state button{padding:10px 20px;background:#4f46e5;color:#fff;border:none;border-radius:6px;cursor:pointer}@media (max-width: 1200px){.content-layout{flex-direction:column}.tickets-list{width:100%;max-height:300px}.ticket-details{min-height:400px}}@media (max-width: 768px){.stats-cards{flex-wrap:wrap}.stat-card{flex:1 1 calc(33.333% - 8px);min-width:100px}.filters-bar{flex-wrap:wrap}.search-form{max-width:none;width:100%}.filter-select{flex:1}.page-header{flex-direction:column;gap:16px}}.reports-page{padding:0}.tabs-container{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.tabs{display:flex;gap:8px;background:#f3f4f6;padding:4px;border-radius:8px}.tab{padding:10px 20px;border:none;background:transparent;border-radius:6px;cursor:pointer;font-weight:500;color:#6b7280;transition:all .2s}.tab:hover{color:#374151}.tab.active{background:#fff;color:#1f2937;box-shadow:0 1px 3px #0000001a}.tab-actions{display:flex;gap:12px}.filters-row{display:flex;gap:12px;margin-bottom:20px}.filters-row select{padding:8px 12px;border:1px solid #e5e7eb;border-radius:6px;font-size:14px;min-width:150px}.badge-success{background:#d1fae5;color:#059669}.badge-muted{background:#f3f4f6;color:#6b7280}.type-badge{display:inline-block;padding:4px 8px;background:#f3f4f6;border-radius:4px;font-size:12px;font-weight:500;text-transform:capitalize}.schedule-badge{display:inline-block;padding:4px 8px;background:#ede9fe;color:#7c3aed;border-radius:4px;font-size:12px;font-weight:500;text-transform:capitalize}.report-name{display:flex;flex-direction:column;gap:2px}.report-name strong{color:#1f2937}.report-name small{color:#6b7280;font-size:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:#fff;border-radius:12px;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a}.modal-lg{max-width:700px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e5e7eb}.form-group input,.form-group select,.form-group textarea{width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:6px;font-size:14px}@media (max-width: 768px){.stats-grid{grid-template-columns:1fr}.tabs-container{flex-direction:column;gap:16px;align-items:stretch}.tabs{width:100%}.tab{flex:1;text-align:center}.form-row{flex-direction:column;gap:0}.data-table{display:block;overflow-x:auto}}.email-templates-page{padding:0}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:24px}.stat-card{background:#fff;border-radius:12px;padding:20px;display:flex;align-items:center;gap:16px;box-shadow:0 1px 3px #0000001a}.stat-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px}.stat-icon.blue{background:#dbeafe}.stat-icon.green{background:#d1fae5}.stat-icon.purple{background:#ede9fe}.stat-icon.yellow{background:#fef3c7}.stat-content{flex:1}.stat-value{font-size:28px;font-weight:700;color:#1f2937;line-height:1.2}.stat-label{font-size:13px;color:#6b7280;margin-top:2px}.alert{padding:12px 16px;border-radius:8px;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center}.alert button{background:none;border:none;font-size:18px;cursor:pointer;opacity:.6}.alert-error{background:#fee2e2;color:#dc2626;border:1px solid #fecaca}.alert-success{background:#d1fae5;color:#059669;border:1px solid #a7f3d0}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.filters{display:flex;gap:12px}.filters select,.filters input{padding:8px 12px;border:1px solid #e5e7eb;border-radius:6px;font-size:14px}.filters input{min-width:250px}.card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:12px 16px;text-align:left;border-bottom:1px solid #e5e7eb}.data-table th{font-weight:600;color:#374151;background:#f9fafb;font-size:13px;text-transform:uppercase;letter-spacing:.5px}.data-table td{color:#4b5563;font-size:14px}.data-table tbody tr:hover{background:#f9fafb}.template-info{display:flex;flex-direction:column;gap:4px}.template-info strong{color:#1f2937}.template-info code{font-size:11px;color:#6b7280;background:#f3f4f6;padding:2px 6px;border-radius:4px;width:fit-content}.system-badge{display:inline-block;padding:2px 6px;background:#e0e7ff;color:#4338ca;font-size:10px;font-weight:600;border-radius:4px;text-transform:uppercase;width:fit-content}.subject-cell{max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:500;text-transform:capitalize}.status-badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:500}.status-badge.active{background:#d1fae5;color:#059669}.status-badge.inactive{background:#f3f4f6;color:#6b7280}.action-buttons{display:flex;gap:6px}.btn{padding:8px 16px;border:none;border-radius:6px;cursor:pointer;font-weight:500;font-size:14px;transition:all .2s;background:#f3f4f6;color:#374151}.btn:hover{background:#e5e7eb}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:#3b82f6;color:#fff}.btn-primary:hover{background:#2563eb}.btn-success{background:#10b981;color:#fff}.btn-success:hover{background:#059669}.btn-warning{background:#f59e0b;color:#fff}.btn-warning:hover{background:#d97706}.btn-danger{background:#ef4444;color:#fff}.btn-danger:hover{background:#dc2626}.btn-sm{padding:6px 10px;font-size:13px}.empty-state,.loading-state{text-align:center;padding:48px;color:#6b7280}.empty-state p{margin-bottom:16px}.pagination{display:flex;justify-content:space-between;align-items:center;padding-top:20px;border-top:1px solid #e5e7eb;margin-top:20px}.pagination span{color:#6b7280;font-size:14px}.pagination-buttons{display:flex;gap:8px}.pagination-buttons button{padding:8px 16px;border:1px solid #e5e7eb;background:#fff;border-radius:6px;cursor:pointer;font-size:14px}.pagination-buttons button:hover:not(:disabled){background:#f3f4f6}.pagination-buttons button:disabled{opacity:.5;cursor:not-allowed}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal{background:#fff;border-radius:12px;width:100%;max-width:600px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a}.modal-xl{max-width:900px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e5e7eb;position:sticky;top:0;background:#fff;z-index:1}.modal-header h2{font-size:18px;font-weight:600;margin:0}.modal-close{background:none;border:none;font-size:24px;cursor:pointer;color:#6b7280;padding:0;line-height:1}.modal-close:hover{color:#1f2937}.modal-body{padding:24px}.modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #e5e7eb;background:#f9fafb;border-radius:0 0 12px 12px}.form-group{margin-bottom:16px}.form-group label{display:block;font-weight:500;margin-bottom:6px;color:#374151;font-size:14px}.form-group input,.form-group select,.form-group textarea{width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:6px;font-size:14px;font-family:inherit}.form-group textarea{resize:vertical;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:13px}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.form-group small{display:block;margin-top:4px;color:#6b7280;font-size:12px}.form-row{display:flex;gap:16px}.form-row .form-group{flex:1}.variables-help{background:#f9fafb;padding:12px 16px;border-radius:8px;margin-top:16px;font-size:13px}.variables-help strong{display:block;margin-bottom:8px;color:#374151}.variables-help code{display:inline-block;background:#e5e7eb;padding:2px 8px;border-radius:4px;margin:2px 4px 2px 0;font-size:12px}.preview-subject{background:#f9fafb;padding:12px 16px;border-radius:8px;margin-bottom:16px}.preview-frame{border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;margin-bottom:20px}.preview-frame iframe{width:100%;height:400px;border:none;background:#fff}.test-email-section{background:#f9fafb;padding:16px;border-radius:8px}.test-email-section h4{margin:0 0 12px;font-size:14px}.test-email-form{display:flex;gap:12px}.test-email-form input{flex:1;padding:8px 12px;border:1px solid #e5e7eb;border-radius:6px}@media (max-width: 1024px){.stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.stats-grid{grid-template-columns:1fr}.section-header{flex-direction:column;gap:16px;align-items:stretch}.filters{flex-direction:column}.filters input{min-width:auto}.form-row{flex-direction:column;gap:0}.data-table{display:block;overflow-x:auto}.test-email-form{flex-direction:column}}.revenue-analytics-page{padding:0}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.header-title h2{margin:0 0 6px;font-size:26px;font-weight:700;color:#111827;letter-spacing:-.5px}.header-title p{margin:0;color:#6b7280;font-size:14px}.header-actions select{padding:10px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;background:#fff;cursor:pointer;color:#374151;font-weight:500;transition:all .2s ease;box-shadow:0 1px 2px #0000000d}.header-actions select:hover{border-color:#d1d5db;background:#f9fafb}.header-actions select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.alert{padding:14px 18px;border-radius:10px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center;font-size:14px}.alert button{background:none;border:none;font-size:18px;cursor:pointer;opacity:.6;transition:opacity .2s}.alert button:hover{opacity:1}.alert-error{background:linear-gradient(135deg,#fef2f2,#fee2e2);color:#dc2626;border:1px solid #fecaca}.metrics-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:18px;margin-bottom:28px}.metric-card{background:#fff;border-radius:14px;padding:22px;box-shadow:0 1px 3px #00000014,0 1px 2px #0000000a;display:flex;gap:16px;align-items:flex-start;transition:all .25s ease;border:1px solid #f3f4f6}.metric-card:hover{transform:translateY(-2px);box-shadow:0 8px 25px #00000014;border-color:#e5e7eb}.metric-card.primary{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;border:none}.metric-card.primary:hover{transform:translateY(-2px);box-shadow:0 12px 30px #3b82f659}.metric-card.primary .metric-label,.metric-card.primary .metric-sub{color:#ffffffd9}.metric-card.primary .metric-change{color:#86efac}.metric-card.primary .metric-change.negative{color:#fca5a5}.metric-card.warning{border-left:4px solid #f59e0b}.metric-card.success{border-left:4px solid #10b981}.metric-icon{font-size:22px;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eff6ff,#dbeafe);border-radius:12px;flex-shrink:0}.metric-card.primary .metric-icon{background:#fff3}.metric-card.warning .metric-icon{background:linear-gradient(135deg,#fffbeb,#fef3c7)}.metric-card.success .metric-icon{background:linear-gradient(135deg,#ecfdf5,#d1fae5)}.metric-content{flex:1;min-width:0}.metric-value{font-size:26px;font-weight:700;color:#111827;line-height:1.2;letter-spacing:-.5px}.metric-card.primary .metric-value{color:#fff}.metric-label{font-size:12px;color:#6b7280;margin-top:4px;font-weight:500;text-transform:uppercase;letter-spacing:.3px}.metric-change{font-size:12px;margin-top:6px;font-weight:600;display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:6px;background:#10b9811a}.metric-change.positive{color:#059669;background:#10b9811a}.metric-change.negative{color:#dc2626;background:#ef44441a}.metric-card.primary .metric-change{background:#ffffff26}.metric-sub{font-size:12px;color:#9ca3af;margin-top:6px}.charts-row{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;margin-bottom:22px}.chart-card{background:#fff;border-radius:14px;box-shadow:0 1px 3px #00000014,0 1px 2px #0000000a;overflow:hidden;border:1px solid #f3f4f6;transition:all .25s ease}.chart-card:hover{box-shadow:0 8px 25px #00000014;border-color:#e5e7eb}.chart-card.large{grid-column:span 2}.chart-header{padding:18px 22px;border-bottom:1px solid #f3f4f6;background:linear-gradient(180deg,#fafafa,#fff)}.chart-header h3{margin:0;font-size:15px;font-weight:600;color:#1f2937;letter-spacing:-.2px}.chart-body{padding:22px}.plan-table{overflow-x:auto}.plan-table table{width:100%;border-collapse:collapse}.plan-table th,.plan-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #f3f4f6}.plan-table th{font-size:11px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.5px;background:#fafafa}.plan-table td{font-size:14px;color:#374151;font-weight:500}.plan-table tbody tr{transition:background .2s ease}.plan-table tbody tr:hover{background:#f9fafb}.plan-table tbody tr:last-child td{border-bottom:none}.plan-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:10px;box-shadow:0 0 0 2px #fffc}.badge{display:inline-block;padding:4px 10px;background:linear-gradient(135deg,#f3f4f6,#e5e7eb);border-radius:6px;font-size:11px;font-weight:600;text-transform:capitalize;color:#4b5563}.ltv-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-bottom:18px}.ltv-card{background:linear-gradient(135deg,#f9fafb,#f3f4f6);border-radius:12px;padding:18px;border:1px solid #e5e7eb;transition:all .2s ease}.ltv-card:hover{border-color:#d1d5db;transform:translateY(-1px)}.ltv-plan-name{font-size:12px;color:#6b7280;margin-bottom:6px;font-weight:500;text-transform:uppercase;letter-spacing:.3px}.ltv-value{font-size:28px;font-weight:700;color:#111827;letter-spacing:-.5px}.ltv-details{display:flex;gap:14px;margin-top:10px;font-size:12px;color:#9ca3af}.ltv-details span{display:flex;align-items:center;gap:4px}.projected-ltv{background:linear-gradient(135deg,#7c3aed,#5b21b6);border-radius:14px;padding:24px;text-align:center;color:#fff;box-shadow:0 8px 25px #7c3aed40}.projected-title{font-size:12px;opacity:.9;margin-bottom:6px;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.projected-value{font-size:38px;font-weight:700;letter-spacing:-1px}.projected-details{font-size:13px;opacity:.8;margin-top:10px}.summary-section{background:#fff;border-radius:14px;padding:26px;box-shadow:0 1px 3px #00000014,0 1px 2px #0000000a;border:1px solid #f3f4f6}.summary-section h3{margin:0 0 20px;font-size:16px;font-weight:600;color:#111827;letter-spacing:-.2px}.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}.summary-item{display:flex;flex-direction:column;gap:6px;padding:16px;background:linear-gradient(135deg,#f9fafb,#f3f4f6);border-radius:10px;border:1px solid #e5e7eb}.summary-label{font-size:12px;color:#6b7280;font-weight:500}.summary-value{font-size:22px;font-weight:700;color:#111827;letter-spacing:-.3px}.loading-state{text-align:center;padding:80px 40px;color:#6b7280;font-size:15px;display:flex;flex-direction:column;align-items:center;gap:16px}.loading-spinner{width:40px;height:40px;border:3px solid #f3f4f6;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.custom-tooltip{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:12px 16px;box-shadow:0 10px 25px #0000001a}.tooltip-label{font-weight:600;color:#111827;margin:0 0 8px;font-size:13px}.tooltip-value{margin:4px 0;font-size:13px;font-weight:500}.chart-subtitle{display:block;font-size:12px;color:#9ca3af;font-weight:400;margin-top:4px}.empty-chart{display:flex;align-items:center;justify-content:center;height:300px;color:#9ca3af;font-size:14px}.empty-chart.small{height:100px}.empty-table{text-align:center;color:#9ca3af;padding:40px 20px!important}.ltv-body{display:flex;flex-direction:column;gap:18px}.coming-soon{font-size:12px;color:#9ca3af;font-weight:500}.projected-details .divider{opacity:.6;margin:0 8px}.recharts-cartesian-grid-horizontal line,.recharts-cartesian-grid-vertical line{stroke:#f3f4f6}.recharts-tooltip-wrapper{outline:none}.recharts-default-tooltip{background:#fff!important;border:1px solid #e5e7eb!important;border-radius:10px!important;box-shadow:0 10px 25px #0000001a!important;padding:12px 16px!important}.recharts-tooltip-label{font-weight:600!important;color:#111827!important;margin-bottom:8px!important}.recharts-legend-wrapper{padding-top:16px!important}.recharts-legend-item-text{color:#4b5563!important;font-size:13px!important;font-weight:500!important}@media (max-width: 1400px){.metrics-grid{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1024px){.metrics-grid{grid-template-columns:repeat(2,1fr)}.charts-row{grid-template-columns:1fr}.chart-card.large{grid-column:span 1}.summary-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.page-header{flex-direction:column;gap:16px;align-items:flex-start}.metrics-grid,.ltv-cards,.summary-grid{grid-template-columns:1fr}.metric-value{font-size:22px}.projected-value{font-size:30px}}.layout{display:flex;min-height:100vh}.sidebar{width:260px;background:linear-gradient(180deg,#1a1a2e,#16213e);color:#fff;display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;z-index:100}.sidebar-header{padding:20px;border-bottom:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;align-items:center}.logo{display:flex;align-items:center;gap:10px}.logo-icon{font-size:24px}.logo-text{font-size:18px;font-weight:700;color:#fff}.badge{padding:4px 10px;background:#4f46e54d;color:#a5b4fc;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.sidebar-nav{display:flex;flex-direction:column;padding:16px 12px;flex:1;overflow-y:auto}.nav-divider{padding:16px 12px 8px;margin-top:8px}.nav-divider span{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:#fff6}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 16px;color:#ffffffb3;text-decoration:none;border-radius:8px;transition:all .2s;margin-bottom:4px}.nav-item:hover{background:#ffffff1a;color:#fff}.nav-item.active{background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;box-shadow:0 4px 12px #4f46e566}.nav-icon{font-size:18px;width:24px;text-align:center}.nav-label{font-size:14px;font-weight:500}.sidebar-footer{padding:16px;border-top:1px solid rgba(255,255,255,.1)}.user-info{display:flex;align-items:center;gap:12px}.user-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#4f46e5,#7c3aed);display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:600;color:#fff}.user-details{display:flex;flex-direction:column;overflow:hidden}.user-name{font-size:14px;font-weight:600;color:#fff}.user-email{font-size:12px;color:#ffffff80;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.main-content{flex:1;display:flex;flex-direction:column;margin-left:260px}.header{background:#fff;border-bottom:1px solid #e5e7eb;padding:16px 24px;position:sticky;top:0;z-index:50}.header-content{display:flex;justify-content:space-between;align-items:center}.header-left h1{margin:0;font-size:20px;color:#1a1a2e;font-weight:600}.header-right{display:flex;align-items:center;gap:12px}.btn-icon{width:40px;height:40px;border-radius:50%;border:1px solid #e5e7eb;background:#fff;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;transition:all .2s}.btn-icon:hover{background:#f9fafb;border-color:#d1d5db}.btn-logout{padding:10px 20px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;font-weight:500;color:#374151;cursor:pointer;transition:all .2s}.btn-logout:hover{background:#f9fafb;border-color:#d1d5db}.content{flex:1;padding:0;background:#f5f7fa;min-height:calc(100vh - 73px)}@media (max-width: 1024px){.sidebar{width:240px}.main-content{margin-left:240px}}@media (max-width: 768px){.sidebar{width:70px}.sidebar-header{justify-content:center;padding:16px}.logo-text,.badge,.nav-label,.nav-divider,.user-details{display:none}.nav-item{justify-content:center;padding:14px}.nav-icon{width:auto;font-size:20px}.user-info{justify-content:center}.main-content{margin-left:70px}}.app{min-height:100vh;width:100%}*{margin:0;padding:0;box-sizing:border-box}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#213547;background-color:#f5f5f5;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;display:flex;min-width:320px;min-height:100vh;color:#213547;background-color:#f5f5f5}#root{width:100%;min-height:100vh}input,select,textarea{color:#374151;font-family:inherit}select option{color:#374151;background:#fff}
