:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}#root{width:100%}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.admin-layout{display:flex;min-height:100vh;background:#f5f7fa}.admin-content{margin-left:250px;flex:1;padding:0;width:calc(100% - 250px)}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background:#f5f7fa}.loader{border:4px solid #f3f3f3;border-top:4px solid #32cef5;border-radius:50%;width:50px;height:50px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-screen p{margin-top:1rem;color:#666;font-size:1.125rem}.access-denied{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;text-align:center;background:#f5f7fa;padding:2rem}.access-denied h1{font-size:3rem;margin:0 0 1rem;color:#ff3b30}.access-denied p{font-size:1.125rem;color:#666;max-width:500px}.admin-sidebar{width:250px;background:linear-gradient(180deg,#1a1a2e,#0f0f1e);color:#fff;height:100vh;display:flex;flex-direction:column;position:fixed;left:0;top:0}.sidebar-header{padding:2rem 1.5rem;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar-header h1{font-size:1.5rem;margin:0 0 .5rem;color:#32cef5}.admin-name{font-size:.875rem;color:#fff9;margin:0}.sidebar-nav{flex:1;padding:1rem 0}.sidebar-nav a{display:flex;align-items:center;gap:.75rem;padding:.875rem 1.5rem;color:#ffffffb3;text-decoration:none;transition:all .2s}.sidebar-nav a:hover{background:#32cef51a;color:#fff}.sidebar-nav a.active{background:#32cef526;color:#32cef5;border-left:3px solid #32cef5}.sidebar-nav a .icon{font-size:1.25rem}.sidebar-footer{padding:1.5rem;border-top:1px solid rgba(255,255,255,.1)}.logout-btn{display:flex;align-items:center;gap:.75rem;width:100%;padding:.875rem;background:#ff3b301a;color:#ff3b30;border:1px solid rgba(255,59,48,.3);border-radius:8px;cursor:pointer;transition:all .2s;font-size:.938rem}.logout-btn:hover{background:#ff3b3033;border-color:#ff3b30}.login-container{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#32cef5);padding:2rem}.login-box{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;padding:3rem;width:100%;max-width:450px;animation:fadeIn .5s ease-in}@keyframes fadeIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.login-header{text-align:center;margin-bottom:2.5rem}.login-header h1{font-size:2rem;margin:0 0 .5rem;color:#1a1a2e}.login-header p{color:#666;margin:0;font-size:1rem}.login-form{display:flex;flex-direction:column;gap:1.5rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-weight:600;color:#333;font-size:.875rem;text-transform:uppercase;letter-spacing:.5px}.form-group input{padding:.875rem 1rem;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;transition:all .3s}.form-group input:focus{outline:none;border-color:#32cef5;box-shadow:0 0 0 3px #32cef51a}.error-message{background:#ffe6e6;color:#d32f2f;padding:.875rem;border-radius:8px;border-left:4px solid #d32f2f;font-size:.875rem;animation:shake .3s}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}}.login-button{padding:1rem;background:linear-gradient(135deg,#667eea,#32cef5);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s;text-transform:uppercase;letter-spacing:1px}.login-button:hover{transform:translateY(-2px);box-shadow:0 10px 20px #32cef54d}.login-button:active{transform:translateY(0)}.login-footer{margin-top:2rem;text-align:center}.security-note{color:#666;font-size:.875rem;margin:0}.dashboard-page{padding:2rem}.dashboard-page h1{color:#1a1a2e;margin-bottom:2rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:3rem}.stat-card{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000001a;border-left:4px solid #32cef5}.stat-card h3{font-size:.875rem;color:#666;margin:0 0 .5rem;text-transform:uppercase;letter-spacing:.5px}.stat-number{font-size:2rem;font-weight:700;color:#1a1a2e;margin:0}.plan-distribution{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 2px 8px #0000001a}.plan-distribution h2{margin:0 0 1.5rem;color:#1a1a2e}.plan-list{display:flex;flex-direction:column;gap:1rem}.plan-item{display:flex;justify-content:space-between;padding:1rem;background:#f8f9fa;border-radius:8px}.plan-name{font-weight:600;color:#32cef5;text-transform:capitalize}.plan-count{color:#666}.loading{display:flex;justify-content:center;align-items:center;min-height:400px;font-size:1.125rem;color:#666}.users-page{padding:2rem}.users-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.users-header h1{margin:0;color:#1a1a2e}.users-controls{display:flex;gap:1rem}.search-input,.filter-select{padding:.75rem 1rem;border:2px solid #e0e0e0;border-radius:8px;font-size:.938rem}.search-input{min-width:300px}.search-input:focus,.filter-select:focus{outline:none;border-color:#32cef5}.users-content{display:grid;grid-template-columns:1fr 400px;gap:2rem}.users-list{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a}.users-table{width:100%;border-collapse:collapse}.users-table th{text-align:left;padding:1rem;background:#f8f9fa;font-weight:600;color:#333;border-bottom:2px solid #e0e0e0}.users-table td{padding:1rem;border-bottom:1px solid #f0f0f0}.users-table tr:hover{background:#f8f9fa}.users-table tr.active{background:#32cef51a}.plan-badge{padding:.25rem .75rem;border-radius:12px;font-size:.813rem;font-weight:600;text-transform:capitalize}.plan-badge.free{background:#e3f2fd;color:#1976d2}.plan-badge.starter{background:#f3e5f5;color:#7b1fa2}.plan-badge.professional{background:#e8f5e9;color:#388e3c}.plan-badge.enterprise{background:#fff3e0;color:#f57c00}.status-badge{padding:.25rem .75rem;border-radius:12px;font-size:.813rem;font-weight:600;text-transform:capitalize}.status-badge.active{background:#e8f5e9;color:#388e3c}.status-badge.canceled,.status-badge.past_due{background:#ffebee;color:#c62828}.btn-view{padding:.5rem 1rem;background:#32cef5;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.875rem;transition:all .2s}.btn-view:hover{background:#2ab8dc}.pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e0e0e0}.btn-page{padding:.5rem 1rem;background:#fff;border:1px solid #ddd;border-radius:6px;cursor:pointer;transition:all .2s}.btn-page:hover:not(:disabled){background:#f5f5f5}.btn-page:disabled{opacity:.5;cursor:not-allowed}.user-details{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a;max-height:calc(100vh - 200px);overflow-y:auto}.details-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid #e0e0e0}.details-header h2{margin:0;color:#1a1a2e}.btn-close{background:none;border:none;font-size:1.5rem;cursor:pointer;color:#666;padding:.25rem .5rem;line-height:1}.btn-close:hover{color:#333}.details-section{margin-bottom:2rem}.details-section h3{margin:0 0 1rem;color:#333;font-size:1.125rem}.detail-row{display:flex;justify-content:space-between;padding:.75rem 0;border-bottom:1px solid #f0f0f0}.detail-row label{font-weight:600;color:#666}.detail-row span{color:#333}.btn-danger{width:100%;padding:.75rem;background:#ff3b30;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:600;margin-top:1rem;transition:all .2s}.btn-danger:hover{background:#e63329}.surveys-list{display:flex;flex-direction:column;gap:.75rem}.survey-item{padding:.75rem;background:#f8f9fa;border-radius:8px;display:flex;flex-direction:column;gap:.25rem}.survey-item strong{color:#333}.survey-item span{font-size:.875rem;color:#666}@media(max-width:1200px){.users-content{grid-template-columns:1fr}.user-details{max-height:600px}}.subscriptions-page{padding:2rem}.subscriptions-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.subscriptions-header h1{margin:0;color:#1a1a2e}.subscriptions-controls{display:flex;gap:1rem}.subscription-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-box{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000001a;border-left:4px solid #32cef5}.stat-box h3{margin:0 0 .5rem;font-size:.875rem;color:#666;text-transform:uppercase;letter-spacing:.5px}.stat-value{font-size:2rem;font-weight:700;color:#1a1a2e;margin:0}.subscriptions-table-container{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a;overflow-x:auto}.subscriptions-table{width:100%;border-collapse:collapse;min-width:1000px}.subscriptions-table th{text-align:left;padding:1rem;background:#f8f9fa;font-weight:600;color:#333;border-bottom:2px solid #e0e0e0;white-space:nowrap}.subscriptions-table td{padding:1rem;border-bottom:1px solid #f0f0f0}.subscriptions-table tr:hover{background:#f8f9fa}.status-dot{margin-right:.5rem;font-size:.75rem}.status-dot.green{color:#4caf50}.status-dot.red{color:#f44336}.status-dot.blue{color:#2196f3}.status-dot.gray{color:#9e9e9e}.status-text{text-transform:capitalize}.price-col{font-weight:600;color:#388e3c}.monospace{font-family:Courier New,monospace;font-size:.813rem;color:#666}.no-data{text-align:center;padding:3rem;color:#999}.no-data p{margin:0;font-size:1.125rem}.revenue-page{padding:2rem}.revenue-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.revenue-header h1{margin:0;color:#1a1a2e}.period-select{padding:.75rem 1rem;border:2px solid #e0e0e0;border-radius:8px;font-size:.938rem;background:#fff;cursor:pointer}.period-select:focus{outline:none;border-color:#32cef5}.revenue-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.metric-card{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000001a;border-left:4px solid #32cef5}.metric-card.primary{border-left-color:#4caf50;background:linear-gradient(135deg,#fff,#f1f8f4)}.metric-card h3{margin:0 0 .75rem;font-size:.875rem;color:#666;text-transform:uppercase;letter-spacing:.5px}.metric-value{font-size:2.5rem;font-weight:700;color:#1a1a2e;margin:0 0 .5rem}.metric-change{font-size:.875rem;font-weight:600;padding:.25rem .75rem;border-radius:12px}.metric-change.positive{background:#e8f5e9;color:#388e3c}.metric-change.negative{background:#ffebee;color:#c62828}.metric-change.neutral{background:#f5f5f5;color:#757575}.revenue-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(450px,1fr));gap:2rem;margin-bottom:2rem}.chart-card{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000001a}.chart-card h2{margin:0 0 1.5rem;color:#1a1a2e;font-size:1.25rem}.pie-chart{display:flex;flex-direction:column;gap:1.5rem}.chart-item{display:flex;flex-direction:column;gap:.5rem}.chart-bar-container{width:100%;height:8px;background:#f0f0f0;border-radius:4px;overflow:hidden}.chart-bar{height:100%;transition:width .5s ease;border-radius:4px}.chart-label{display:flex;align-items:center;gap:.75rem;font-size:.938rem}.color-dot{width:12px;height:12px;border-radius:50%}.plan-name{text-transform:capitalize;font-weight:600;color:#333}.plan-value{margin-left:auto;color:#666}.breakdown-grid{display:grid;gap:1rem}.breakdown-item{padding:1rem;background:#f8f9fa;border-radius:8px;border-left:4px solid #32cef5}.breakdown-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid #e0e0e0}.breakdown-header h4{margin:0;text-transform:capitalize;color:#333}.breakdown-count{font-size:.875rem;color:#666}.breakdown-stats{display:flex;flex-direction:column;gap:.5rem}.breakdown-stats .stat{display:flex;justify-content:space-between;font-size:.938rem}.breakdown-stats label{color:#666}.breakdown-stats span{font-weight:600;color:#333}.breakdown-stats .total{color:#4caf50;font-size:1.125rem}.revenue-table{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000001a;margin-bottom:2rem;overflow-x:auto}.revenue-table h2{margin:0 0 1.5rem;color:#1a1a2e}.revenue-table table{width:100%;border-collapse:collapse}.revenue-table th{text-align:left;padding:1rem;background:#f8f9fa;font-weight:600;color:#333;border-bottom:2px solid #e0e0e0;white-space:nowrap}.revenue-table td{padding:1rem;border-bottom:1px solid #f0f0f0}.revenue-table tr:hover:not(.total-row){background:#f8f9fa}.revenue-col{font-weight:600;color:#388e3c}.total-row{background:#f8f9fa;border-top:2px solid #e0e0e0}.total-row td{padding:1.25rem 1rem;border-bottom:none}.insights-section{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000001a}.insights-section h2{margin:0 0 1.5rem;color:#1a1a2e}.insights-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.insight-card{padding:1.5rem;background:linear-gradient(135deg,#f8f9fa,#fff);border-radius:8px;border:1px solid #e0e0e0}.insight-icon{font-size:2rem;display:block;margin-bottom:.75rem}.insight-card h3{margin:0 0 .5rem;color:#333;font-size:1.125rem}.insight-card p{margin:0;color:#666;font-size:.938rem;line-height:1.5}@media(max-width:1024px){.revenue-charts{grid-template-columns:1fr}}
