*{margin:0;padding:0;box-sizing:border-box}body{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;background-color:#f8f9fa;color:#333;line-height:1.6}.app-layout{min-height:100vh;display:flex;flex-direction:column}.header{background:#fff;border-bottom:1px solid #e9ecef;padding:1rem 2rem;box-shadow:0 2px 4px #0000001a}.header-content{display:flex;align-items:center;justify-content:space-between}.header-actions,.logo-container{display:flex;align-items:center;gap:1rem}.logo{height:40px;width:auto}.app-title{font-size:1.5rem;font-weight:600;color:#2c3e50;margin:0}.auth-buttons{display:flex;align-items:center;gap:.75rem}.auth-btn{padding:.5rem 1rem;border:none;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-width:80px}.auth-btn-primary{background-color:#007bff;color:#fff}.auth-btn-primary:hover{background-color:#0056b3;transform:translateY(-1px)}.auth-btn-secondary{background-color:transparent;color:#6c757d;border:1px solid #dee2e6}.auth-btn-secondary:hover{background-color:#f8f9fa;color:#495057;border-color:#adb5bd}.user-profile{display:flex;align-items:center;gap:1rem}.user-info{display:flex;align-items:center;gap:.75rem;flex:1;min-width:0}.user-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;border:2px solid #e9ecef}.user-avatar.avatar-placeholder{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1rem;font-weight:600;border:2px solid #e9ecef;width:50px}.user-name{font-size:.875rem;font-weight:500;color:#495057;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.logout-btn{padding:.375rem .75rem;background-color:#dc3545;color:#fff;border:none;border-radius:4px;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .2s ease}.logout-btn:hover{background-color:#c82333;transform:translateY(-1px)}.loading{color:#6c757d;font-size:.875rem;font-style:italic}.detail-item{margin-bottom:1rem}.copy-field{display:flex;align-items:center;gap:.75rem;margin-top:.5rem;flex-wrap:wrap}.copy-field code{flex:1;min-width:200px;word-break:break-all;background-color:#f8f9fa;padding:.5rem;border-radius:4px;border:1px solid #e9ecef;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.8rem}.copy-btn{padding:.375rem .75rem;background-color:#007bff;color:#fff;border:none;border-radius:4px;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .2s ease;white-space:nowrap;display:flex;align-items:center;gap:.25rem}.copy-btn:hover{background-color:#0056b3;transform:translateY(-1px)}.copy-btn:active{transform:translateY(0)}.success-message .app-details{background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:1.5rem;margin:1rem 0}.success-message .detail-item p{margin-bottom:.5rem;font-weight:600;color:#495057}.success-message .detail-item ul{margin:.5rem 0;padding-left:1.5rem}.success-message .detail-item li{margin-bottom:.25rem}.success-message .detail-item li code{background-color:#e9ecef;padding:.25rem .5rem;border-radius:3px;font-size:.8rem}.main-content{display:flex;flex:1;min-height:calc(100vh - 80px)}.sidebar{width:250px;background:#fff;border-right:1px solid #e9ecef;padding:2rem 0;box-shadow:2px 0 4px #0000000d}.sidebar-nav{padding:0 1rem}.nav-list{list-style:none;margin:0;padding:0}.nav-item{margin-bottom:.5rem}.nav-link{display:block;padding:.75rem 1rem;color:#6c757d;text-decoration:none;border-radius:6px;transition:all .2s ease;font-weight:500}.nav-link:hover{background-color:#f8f9fa;color:#495057}.nav-link.active{background-color:#007bff;color:#fff}.content{flex:1;padding:2rem;overflow-y:auto}.page{max-width:1200px;margin:0 auto}.page-header{margin-bottom:1rem}.page-header h1{font-size:2rem;color:#2c3e50;margin-bottom:.5rem}.page-description{margin-bottom:2rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}.page-description p{margin:0;color:#6c757d;font-size:1.1rem;line-height:1.5;flex:1}.page-description .btn{flex-shrink:0}.search-container{margin-top:1rem}.search-input{width:100%;max-width:400px;padding:.75rem 1rem;border:1px solid #ced4da;border-radius:6px;font-size:1rem;transition:border-color .2s ease}.search-input:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 3px #007bff1a}.documentation-content{background:#fff;border-radius:8px;padding:2rem;box-shadow:0 2px 4px #0000001a}.doc-header{margin-bottom:2rem;padding-bottom:1rem;border-bottom:1px solid #e9ecef}.doc-header h2{color:#2c3e50;margin-bottom:.5rem}.doc-description{color:#6c757d;font-size:1.1rem;margin-bottom:.5rem}.doc-last-updated{color:#6c757d;font-size:.9rem}.doc-sections{margin-top:2rem}.doc-section{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid #f1f3f4}.doc-section:last-child{border-bottom:none}.doc-section h3{color:#2c3e50;margin-bottom:1rem;font-size:1.3rem}.doc-section p{color:#495057;margin-bottom:1rem}.subsections{margin-left:1rem;margin-top:1rem}.subsection{margin-bottom:1rem}.subsection h4{color:#495057;margin-bottom:.5rem;font-size:1.1rem}.subsection p{color:#6c757d;font-size:.95rem}.search-results{background:#fff;border-radius:8px;padding:2rem;box-shadow:0 2px 4px #0000001a}.search-results h2{color:#2c3e50;margin-bottom:1rem}.search-result-item{padding:1rem;border:1px solid #e9ecef;border-radius:6px;margin-bottom:1rem}.search-result-item h3{color:#2c3e50;margin-bottom:.5rem}.search-result-item p{color:#6c757d}.form-container{background:#fff;border-radius:8px;padding:2rem;box-shadow:0 2px 4px #0000001a}.client-form,.app-form{max-width:600px}.form-label{display:block;margin-bottom:.5rem;font-weight:600;color:#2c3e50}.form-input,.form-textarea{width:100%;padding:.75rem 1rem;border:1px solid #ced4da;border-radius:6px;font-size:1rem;transition:border-color .2s ease;font-family:inherit}.form-input:focus,.form-textarea:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 3px #007bff1a}.form-textarea{resize:vertical;min-height:100px}.form-actions{display:flex;gap:1rem;margin-top:2rem}.btn{padding:.75rem 1.5rem;border:none;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;text-decoration:none;display:inline-block;text-align:center}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background-color:#007bff;color:#fff}.btn-primary:hover:not(:disabled){background-color:#0056b3}.btn-secondary{background-color:#6c757d;color:#fff}.btn-secondary:hover:not(:disabled){background-color:#545b62}.loading,.error,.error-message{padding:1rem;border-radius:6px;margin:1rem 0}.loading{background-color:#e3f2fd;color:#1976d2;text-align:center}.error,.error-message{background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.success-message{background-color:#d4edda;color:#155724;border:1px solid #c3e6cb;padding:1.5rem;border-radius:6px;margin-top:2rem}.success-message h3{margin-bottom:1rem;color:#155724}.apps-section .table-wrapper{margin:12px 0 16px;border-radius:10px;position:relative;overflow-x:auto;-webkit-overflow-scrolling:touch}.apps-section .apps-table{width:100%;min-width:800px;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #00000014}.apps-section .apps-table thead{background:var(--primary-color, #1f6feb);color:#fff}.apps-section .apps-table th{padding:12px 16px;text-align:left;font-weight:600}.apps-section .apps-table td{padding:12px 16px;border-top:1px solid var(--border-color, #e5e7eb);vertical-align:middle}.apps-section .apps-table tbody tr:hover{background:#f8fafc}.apps-section .apps-table code{font-size:.875rem;background:#f3f4f6;padding:2px 6px;border-radius:4px}.apps-section .apps-table td:nth-child(6){text-align:right;white-space:nowrap}.apps-section .copy-field code{white-space:nowrap;max-width:260px;overflow:hidden;text-overflow:ellipsis;display:inline-block}.apps-section .actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px}.apps-section .icon-btn{width:32px;height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;transition:all .2s ease;border:none;border-radius:6px;cursor:pointer}.apps-section .icon-btn svg{width:16px;height:16px}.apps-section .icon-btn.regenerate{background:linear-gradient(135deg,#007bff,#0056b3);color:#fff}.apps-section .icon-btn.regenerate:hover:not(:disabled){background:linear-gradient(135deg,#0056b3,#004085);transform:translateY(-1px);box-shadow:0 4px 8px #007bff4d}.apps-section .icon-btn.edit{background:linear-gradient(135deg,#6b7280,#4b5563);color:#fff}.apps-section .icon-btn.edit:hover:not(:disabled){background:linear-gradient(135deg,#4b5563,#374151);transform:translateY(-1px);box-shadow:0 4px 8px #6b72804d}.apps-section .icon-btn.danger{background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff}.apps-section .icon-btn.danger:hover:not(:disabled){background:linear-gradient(135deg,#b91c1c,#991b1b);transform:translateY(-1px);box-shadow:0 4px 8px #dc26264d}.apps-section .blurred-secret{min-width:180px;filter:blur(5px);-webkit-user-select:none;user-select:none;letter-spacing:2px;display:inline-block}.apps-section .table-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff9;display:flex;align-items:center;justify-content:center;z-index:1}.pagination{display:flex;flex-direction:column;gap:12px;align-items:center;margin-top:24px;padding:16px 20px;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000000d;border:1px solid #e5e7eb}.pagination-buttons{display:flex;gap:4px;align-items:center}.pagination-buttons button{min-width:32px;width:32px;height:32px;padding:0;font-size:.875rem;font-weight:600;border-radius:6px;border:1px solid #e5e7eb;background:#fff;color:#374151;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.pagination-buttons button:hover:not(:disabled):not(.active){background:#f3f4f6;border-color:#d1d5db}.pagination-buttons button.active{background:#007bff;color:#fff;border-color:#007bff}.pagination-buttons button:disabled{opacity:.4;cursor:not-allowed}.pagination-prev,.pagination-next{min-width:32px;width:32px;height:32px;padding:0;font-size:1rem;font-weight:600;border-radius:6px;border:1px solid #e5e7eb;background:#fff;color:#374151;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.pagination-prev:hover:not(:disabled),.pagination-next:hover:not(:disabled){background:#f3f4f6;border-color:#d1d5db;transform:translateY(-1px)}.pagination-prev:disabled,.pagination-next:disabled{opacity:.4;cursor:not-allowed;transform:none}.pagination-ellipsis{padding:0 4px;color:#9ca3af;font-size:.875rem}.pagination-info{display:flex;align-items:center;justify-content:center}.apps-count{font-size:.8rem;color:#6b7280;font-weight:500}@media (max-width: 768px){.apps-section .table-wrapper{margin:8px 0 12px}.apps-section .apps-table th:nth-child(5),.apps-section .apps-table td:nth-child(5){display:none}.apps-section .apps-table th,.apps-section .apps-table td{padding:10px 12px;font-size:.85rem}.apps-section .copy-field code{max-width:180px;font-size:.8rem}.apps-section .apps-table{min-width:600px}.pagination{padding:12px 16px}.pagination-buttons button,.pagination-prev,.pagination-next{min-width:28px;width:28px;height:28px;font-size:.8rem}}@media (max-width: 640px){.apps-section .table-wrapper{overflow-x:visible;margin:8px 0 12px}.apps-section .apps-table{min-width:auto;display:block}.apps-section .apps-table thead{display:none}.apps-section .apps-table tbody{display:block}.apps-section .apps-table tr{display:block;margin-bottom:16px;border:1px solid #e5e7eb;border-radius:12px;padding:16px;background:#fff;box-shadow:0 2px 4px #0000000d}.apps-section .apps-table td{display:block;width:100%;border:none;padding:8px 0;text-align:left!important}.apps-section .apps-table td:before{content:attr(data-label);font-weight:600;display:block;margin-bottom:6px;color:#6b7280;font-size:.75rem;text-transform:uppercase;letter-spacing:.5px}.apps-section .apps-table td:first-child{padding-top:0}.apps-section .apps-table td:last-child{padding-bottom:0}.apps-section .actions{justify-content:flex-start;margin-top:8px}.apps-section .copy-field{flex-wrap:wrap;gap:8px}.apps-section .copy-field code{max-width:100%;flex:1;min-width:0}.apps-section .blurred-secret{min-width:auto;max-width:200px}}.client-details,.app-details{background:#fff;padding:1rem;border-radius:4px;margin-top:1rem}.client-details p,.app-details p{margin-bottom:.5rem}.client-details code,.app-details code{background-color:#f8f9fa;padding:.25rem .5rem;border-radius:3px;font-family:Courier New,monospace;font-size:.9rem}.success-actions{margin-top:1.5rem;text-align:center}.array-input-group{display:flex;gap:.75rem;margin-bottom:.75rem;align-items:flex-start}.array-input-group .form-input{flex:1}.remove-btn{background:#dc3545;color:#fff;border:1px solid #dc3545;padding:.5rem .75rem;border-radius:4px;font-size:.8rem;cursor:pointer;transition:all .2s ease;white-space:nowrap}.remove-btn:hover{background:#c82333;border-color:#bd2130}.add-btn{background:#28a745;color:#fff;border:1px solid #28a745;padding:.5rem .75rem;border-radius:4px;font-size:.8rem;cursor:pointer;transition:all .2s ease;margin-top:.5rem}.add-btn:hover{background:#218838;border-color:#1e7e34}.form-help{font-size:.85rem;color:#6c757d;margin-bottom:.75rem;line-height:1.4}.app-details ul{margin:.5rem 0;padding-left:1.5rem}.app-details li{margin-bottom:.25rem}.app-details li code{background-color:#f8f9fa;padding:.25rem .5rem;border-radius:3px;font-family:Courier New,monospace;font-size:.85rem;color:#495057}.user-profile-section{background:#fff;border-bottom:1px solid #e9ecef;padding:1rem 0;margin-bottom:2rem}.user-profile{display:flex;align-items:center;gap:1rem;max-width:1200px;margin:0 auto;padding:0 1rem}.user-avatar{width:50px;height:50px;border-radius:50%;overflow:hidden;flex-shrink:0}.avatar-image{width:100%;height:100%;object-fit:cover}.avatar-placeholder{width:100%;height:100%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.2rem;font-weight:600}.user-info{flex:1}.user-name{margin:0 0 .25rem;font-size:1.1rem;font-weight:600;color:#2c3e50}.user-username{margin:0;font-size:.9rem;color:#6c757d}.logout-btn{margin-left:auto;padding:.5rem 1rem;font-size:.9rem}.auth-prompt-section{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:2rem;margin-bottom:2rem;text-align:center}.auth-prompt h3{margin:0 0 .5rem;color:#2c3e50;font-size:1.3rem}.auth-prompt p{margin:0 0 1.5rem;color:#6c757d;font-size:1rem}.hero-section{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:4rem 2rem;margin:-2rem -2rem 3rem;border-radius:0 0 16px 16px}.hero-content{max-width:800px;margin:0 auto;text-align:center}.hero-title{font-size:3rem;font-weight:700;margin-bottom:1rem;line-height:1.2}.hero-subtitle{font-size:1.5rem;font-weight:400;margin-bottom:1rem;opacity:.9}.hero-description{font-size:1.1rem;opacity:.8;line-height:1.6;max-width:600px;margin:0 auto}.section-title{font-size:2rem;color:#2c3e50;margin-bottom:2rem;text-align:center}.features-section{margin-bottom:4rem}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;margin-top:2rem}.feature-card{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 6px #0000001a;transition:transform .2s ease,box-shadow .2s ease;border:1px solid #e9ecef}.feature-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px #00000026}.feature-icon{font-size:2.5rem;margin-bottom:1rem}.feature-title{font-size:1.3rem;color:#2c3e50;margin-bottom:1rem;font-weight:600}.feature-description{color:#6c757d;margin-bottom:1.5rem;line-height:1.6}.feature-link{color:#007bff;text-decoration:none;font-weight:600;transition:color .2s ease}.feature-link:hover{color:#0056b3}.quick-actions-section{margin-bottom:4rem}.quick-actions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:2rem;margin-top:2rem}.quick-action-card{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 6px #0000001a;transition:all .2s ease;border:2px solid transparent;text-decoration:none;color:inherit;display:block}.quick-action-card:hover{transform:translateY(-2px);box-shadow:0 8px 25px #00000026;text-decoration:none;color:inherit}.quick-action-card.primary{background:linear-gradient(135deg,#007bff,#0056b3);color:#fff;border-color:#007bff}.quick-action-card.primary:hover{background:linear-gradient(135deg,#0056b3,#004085);color:#fff}.action-content{position:relative}.action-title{font-size:1.4rem;font-weight:600;margin-bottom:.5rem}.action-description{opacity:.8;line-height:1.5;margin-bottom:1rem}.action-arrow{position:absolute;top:0;right:0;font-size:1.5rem;font-weight:700;opacity:.7}.recent-activity-section{margin-bottom:2rem}.activity-list{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 6px #0000001a;border:1px solid #e9ecef}.activity-item{display:flex;align-items:flex-start;padding:1.5rem 0;border-bottom:1px solid #f1f3f4}.activity-item:last-child{border-bottom:none}.activity-icon{font-size:1.5rem;margin-right:1rem;margin-top:.25rem}.activity-content{flex:1}.activity-title{font-size:1.1rem;color:#2c3e50;margin-bottom:.5rem;font-weight:600}.activity-description{color:#6c757d;margin-bottom:.5rem;line-height:1.5}.activity-date{color:#6c757d;font-size:.9rem;font-weight:500}@media (max-width: 768px){.main-content{flex-direction:column}.sidebar{width:100%;padding:1rem 0}.content,.header{padding:1rem}.form-actions{flex-direction:column}.btn{width:100%}.hero-section{padding:2rem 1rem;margin:-1rem -1rem 2rem}.hero-title{font-size:2rem}.hero-subtitle{font-size:1.2rem}.hero-description{font-size:1rem}.features-grid,.quick-actions-grid{grid-template-columns:1fr;gap:1.5rem}.feature-card,.quick-action-card,.activity-list{padding:1.5rem}.activity-item{padding:1rem 0}}.login-page{min-height:100vh;display:flex;background:#f8f9fa}.login-container{display:flex;width:100%;min-height:100vh}.login-branding{flex:1;background:linear-gradient(135deg,#1e3c72,#2a5298,#3b82f6);display:flex;align-items:center;justify-content:center;padding:2rem;position:relative;overflow:hidden}.login-branding:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');opacity:.3}.branding-content{text-align:center;color:#fff;z-index:1;position:relative;max-width:500px}.branding-logo{margin-bottom:2rem}.brand-logo{height:80px;width:auto;background:#fff;border-radius:12px;padding:8px;box-shadow:0 4px 12px #00000026}.branding-title{font-size:3rem;font-weight:700;margin-bottom:1rem;text-shadow:0 2px 4px rgba(0,0,0,.3)}.branding-tagline{font-size:1.5rem;margin-bottom:3rem;opacity:.9;font-weight:300}.branding-features{text-align:left}.feature-item{display:flex;align-items:center;margin-bottom:2rem;padding:1rem;background:#ffffff26;border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3);box-shadow:0 4px 12px #0000001a}.feature-icon{font-size:2rem;margin-right:1rem;min-width:60px}.feature-text h3{font-size:1.2rem;margin-bottom:.5rem;font-weight:600}.feature-text p{font-size:.95rem;opacity:.8;line-height:1.4}.login-forms{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem;background:#fff}.form-wrapper{width:100%;max-width:400px}.auth-form{width:100%}.login-method-toggle{display:flex;background:#f8f9fa;border-radius:8px;padding:4px;margin-bottom:1.5rem;border:1px solid #e9ecef}.method-btn{flex:1;padding:.75rem 1rem;border:none;background:transparent;border-radius:6px;font-size:.9rem;font-weight:600;color:#6c757d;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;gap:.5rem}.method-btn:hover{color:#495057;background:#ffffff80}.method-btn.active{background:#fff;color:#007bff;box-shadow:0 2px 4px #0000001a}.auth-title{font-size:2rem;color:#2c3e50;margin-bottom:.5rem;font-weight:700;text-align:center}.auth-subtitle{color:#6c757d;margin-bottom:2rem;text-align:center;line-height:1.5}.phone-display{background:#f8f9fa;padding:.75rem 1rem;border-radius:6px;text-align:center;color:#495057;font-weight:600;margin-bottom:1.5rem;border:1px solid #e9ecef}.form{width:100%}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-group{margin-bottom:1.5rem}.form-label{display:block;margin-bottom:.5rem;font-weight:600;color:#2c3e50;font-size:.9rem}.form-input{width:100%;padding:.875rem 1rem;border:2px solid #e9ecef;border-radius:8px;font-size:1rem;transition:all .2s ease;background:#fff}.form-input:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 3px #007bff1a}.form-input:disabled{background-color:#f8f9fa;cursor:not-allowed}.phone-input-group{display:flex;border:2px solid #e9ecef;border-radius:8px;overflow:hidden;transition:border-color .2s ease}.phone-input-group:focus-within{border-color:#007bff;box-shadow:0 0 0 3px #007bff1a}.country-code-select{padding:.875rem 1rem;border:none;background:#f8f9fa;font-size:1rem;font-weight:600;color:#495057;cursor:pointer;min-width:120px}.country-code-select:focus{outline:none}.phone-input{flex:1;border:none;border-radius:0;padding-left:.5rem}.phone-input:focus{box-shadow:none}.otp-input-group{display:flex;gap:.75rem;justify-content:center;margin-bottom:2rem}.otp-input{width:50px;height:50px;text-align:center;font-size:1.5rem;font-weight:600;border:2px solid #e9ecef;border-radius:8px;transition:all .2s ease}.otp-input:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 3px #007bff1a}.form-options{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.checkbox-label{display:flex;align-items:center;cursor:pointer;font-size:.9rem;color:#495057}.checkbox-input{margin-right:.5rem;width:16px;height:16px;accent-color:#007bff}.checkbox-text{-webkit-user-select:none;user-select:none}.forgot-password-link{background:none;border:none;color:#007bff;text-decoration:none;font-size:.9rem;cursor:pointer;font-weight:500}.forgot-password-link:hover{text-decoration:underline}.btn-full{width:100%;padding:.875rem 1.5rem;font-size:1rem;font-weight:600;margin-bottom:1.5rem}.auth-switch{text-align:center}.auth-switch p{color:#6c757d;margin:0}.switch-link{background:none;border:none;color:#007bff;text-decoration:none;cursor:pointer;font-weight:600;font-size:inherit}.switch-link:hover{text-decoration:underline}.otp-actions{text-align:center;margin-bottom:1.5rem}.resend-link{background:none;border:none;color:#007bff;text-decoration:none;cursor:pointer;font-weight:500;font-size:.9rem}.resend-link:hover:not(:disabled){text-decoration:underline}.resend-link:disabled{color:#6c757d;cursor:not-allowed}.success-icon{width:80px;height:80px;background:#28a745;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:2.5rem;margin:0 auto 2rem;font-weight:700}.loading-spinner{text-align:center;padding:2rem}.spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #007bff;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 1rem}.spinner-small{width:20px;height:20px;border:2px solid #f3f3f3;border-top:2px solid #007bff;border-radius:50%;animation:spin 1s linear infinite;margin:0}.header-loading{display:flex;align-items:center;justify-content:center;padding:.25rem}.error-message{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb;padding:.75rem 1rem;border-radius:6px;margin-bottom:1.5rem;font-size:.9rem;text-align:center}.error-text{color:#dc3545;font-size:.85rem;margin-top:.25rem;display:block}@media (max-width: 768px){.login-container{flex-direction:column}.login-branding{min-height:40vh;padding:1.5rem}.branding-title{font-size:2rem}.branding-tagline{font-size:1.2rem;margin-bottom:2rem}.branding-features{display:none}.login-forms{padding:1.5rem}.form-row{grid-template-columns:1fr;gap:0}.form-options{flex-direction:column;gap:1rem;align-items:flex-start}.phone-input-group{flex-direction:column}.country-code-select{border-radius:8px 8px 0 0;min-width:auto}.phone-input{border-radius:0 0 8px 8px;padding-left:1rem}.otp-input-group{gap:.5rem}.otp-input{width:40px;height:40px;font-size:1.2rem}}@media (max-width: 480px){.login-branding{min-height:30vh;padding:1rem}.branding-title{font-size:1.8rem}.branding-tagline{font-size:1rem}.login-forms{padding:1rem}.auth-title{font-size:1.5rem}.otp-input{width:35px;height:35px;font-size:1rem}}.modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;max-width:500px;width:100%;max-height:90vh;overflow-y:auto;animation:modalSlideIn .2s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:scale(.95) translateY(-10px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-header{padding:1.5rem 1.5rem 0;border-bottom:1px solid #e5e7eb;margin-bottom:1rem}.modal-header h3{margin:0 0 1rem;font-size:1.25rem;font-weight:600;color:#1f2937}.modal-body p{margin:0;color:#6b7280;line-height:1.6}.modal-footer{padding:0 1.5rem 1.5rem;display:flex;gap:.75rem;justify-content:flex-end}.modal-footer .btn{min-width:80px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal-content{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;max-width:600px;width:100%;max-height:90vh;overflow-y:auto;animation:modalSlideIn .2s ease-out}.modal-header{padding:1.5rem 1.5rem 0;border-bottom:1px solid #e5e7eb;margin-bottom:1rem;display:flex;justify-content:space-between;align-items:center}.modal-header h2{margin:0;font-size:1.25rem;font-weight:600;color:#1f2937}.modal-close{background:none;border:none;cursor:pointer;padding:.5rem;border-radius:6px;color:#6b7280;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.modal-close:hover{background:#f3f4f6;color:#374151}.modal-body{padding:0 1.5rem;margin-bottom:1.5rem}.modal-body .app-form{margin:0}.modal-body .form-actions{margin-top:1.5rem;padding-top:1rem;border-top:1px solid #e5e7eb}@media (max-width: 640px){.modal-backdrop{padding:.5rem}.modal{max-width:100%;margin:0}.modal-header{padding:1rem 1rem 0}.modal-header h3{font-size:1.1rem}.modal-body{padding:0 1rem;margin-bottom:1rem}.modal-footer{padding:0 1rem 1rem;flex-direction:column}.modal-footer .btn{width:100%;min-width:auto}.modal-content{max-width:100%;margin:0}.modal-header h2{font-size:1.1rem}}.apps-section{margin-bottom:3rem}.apps-section h2{font-size:1.5rem;color:#2c3e50;margin-bottom:1.5rem}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 1rem;text-align:center}.loading-spinner{margin-bottom:1rem}.spinner{width:40px;height:40px;border:4px solid #f3f4f6;border-top:4px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-state p{color:#6b7280;font-size:1rem;margin:0}.error-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 1rem;text-align:center;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin:1rem 0}.error-icon{font-size:3rem;margin-bottom:1rem}.error-state h3{color:#dc2626;font-size:1.25rem;font-weight:600;margin:0 0 .5rem}.error-state p{color:#7f1d1d;margin:0 0 1.5rem;line-height:1.5}.error-state .btn{margin-top:.5rem}.loading-row,.empty-row{text-align:center;padding:3rem 1rem}.table-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem}.table-loading .spinner{width:32px;height:32px;border:3px solid #f3f4f6;border-top:3px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite}.table-loading span{color:#6b7280;font-size:.875rem}.table-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:2rem 1rem}.table-empty-state .empty-icon{font-size:2.5rem;margin-bottom:.5rem}.table-empty-state h3{color:#374151;font-size:1.125rem;font-weight:600;margin:0}.table-empty-state p{color:#6b7280;margin:0;text-align:center;max-width:400px}.table-empty-state .btn{margin-top:.5rem}.snippet-modal{max-width:800px}.snippet-preview{margin-bottom:2rem;padding:1.5rem;background:#f8f9fa;border-radius:8px;border:1px solid #e9ecef}.snippet-preview h3{margin:0 0 1rem;font-size:1.1rem;font-weight:600;color:#2c3e50}.preview-container{display:flex;justify-content:center;margin-bottom:1rem}.preview-note{text-align:center;font-size:.875rem;color:#6c757d;margin:0;font-style:italic}.snippet-code{margin-top:1.5rem}.code-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.code-header h3{margin:0;font-size:1.1rem;font-weight:600;color:#2c3e50}.copy-snippet-btn{background:#28a745;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:background .2s ease;display:flex;align-items:center;gap:.5rem}.copy-snippet-btn:hover:not(:disabled){background:#218838}.copy-snippet-btn:disabled{background:#6c757d;cursor:not-allowed}.code-block{background:#2d3748;border-radius:8px;padding:1.5rem;overflow-x:auto;border:1px solid #4a5568}.code-block pre{margin:0;color:#e2e8f0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;line-height:1.5;white-space:pre-wrap;word-wrap:break-word}.code-block code{color:inherit;background:none;padding:0;border-radius:0;font-size:inherit}.tab-buttons{display:flex;gap:.25rem;margin-bottom:0}.tab-button{background:#f8f9fa;border:1px solid #e9ecef;color:#6c757d;padding:.5rem 1rem;border-radius:6px 6px 0 0;cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s ease;border-bottom:none}.tab-button:hover{background:#e9ecef;color:#495057}.tab-button.active{background:#007bff;color:#fff;border-color:#007bff;border-bottom:1px solid #007bff;position:relative;z-index:1}.tab-button.active:hover{background:#0056b3}.tab-button.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:1px;background:#007bff}.curl-content{display:flex;flex-direction:column;gap:1rem}.curl-explanation{background:#e3f2fd;border:1px solid #bbdefb;border-radius:6px;padding:.75rem;margin:0;color:#1565c0;font-size:.875rem;line-height:1.5}.response-format{margin-top:1rem}.response-format h4{margin:0 0 .5rem;font-size:.875rem;font-weight:600;color:#2c3e50}.response-format pre{background:#f1f3f4;border:1px solid #dadce0;border-radius:4px;padding:.75rem;margin:0;font-size:.8rem;color:#2c3e50}.response-format code{color:#2c3e50;background:none;padding:0;font-size:inherit}.icon-btn.snippet{color:#28a745}.icon-btn.snippet:hover{background:#d4edda;color:#155724}.btn-connect{display:flex;align-items:center;gap:12px;padding:12px 24px;background:#1877f2;color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:background .2s;text-decoration:none}.btn-connect img{height:24px;width:auto}.btn-connect:hover{background:#166fe5;color:#fff;text-decoration:none}.empty-state{text-align:center;padding:3rem 2rem;background:#fff;border-radius:12px;box-shadow:0 4px 6px #0000001a;border:1px solid #e9ecef}.empty-icon{font-size:4rem;margin-bottom:1rem;opacity:.6}.empty-state h3{color:#2c3e50;margin-bottom:.5rem;font-size:1.3rem}.empty-state p{color:#6c757d;margin-bottom:2rem;line-height:1.5}.apps-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem;margin-top:1.5rem}.app-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px #0000001a;border:1px solid #e9ecef;transition:transform .2s ease,box-shadow .2s ease}.app-card:hover{transform:translateY(-2px);box-shadow:0 8px 25px #00000026}.app-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.app-header h3{color:#2c3e50;margin:0;font-size:1.2rem;font-weight:600}.app-status{background:#28a745;color:#fff;padding:.25rem .75rem;border-radius:12px;font-size:.8rem;font-weight:600}.app-description{color:#6c757d;margin-bottom:1rem;line-height:1.5;font-size:.95rem}.app-details{margin-bottom:1.5rem}.app-detail{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;font-size:.9rem}.app-detail .label{color:#6c757d;font-weight:500}.api-key{background:#f8f9fa;padding:.25rem .5rem;border-radius:4px;font-family:Courier New,monospace;font-size:.8rem;color:#495057;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-actions{display:flex;gap:.75rem}.btn-sm{padding:.5rem 1rem;font-size:.85rem}.btn-outline{background:transparent;color:#007bff;border:1px solid #007bff}.btn-outline:hover{background:#007bff;color:#fff}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;flex-wrap:wrap;gap:1rem}.page-header h1{margin-bottom:0;flex:1}.page-header button{margin-left:auto;flex-shrink:0}@media (max-width: 768px){.page-header{flex-direction:column;align-items:stretch}.page-header button{margin-left:0;align-self:flex-start}.page-description{flex-direction:column;align-items:stretch}.page-description .btn{align-self:flex-start}.apps-grid{grid-template-columns:1fr;gap:1rem}.app-card{padding:1rem}.app-header{flex-direction:column;align-items:flex-start;gap:.5rem}.app-actions{flex-direction:column}.app-detail{flex-direction:column;align-items:flex-start;gap:.25rem}.api-key{max-width:100%}}.password-input-wrapper{position:relative;display:flex;align-items:center}.password-input-wrapper .form-input{padding-right:2.75rem}.password-toggle-btn{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);background:none;border:none;padding:.25rem;cursor:pointer;color:#6c757d;display:flex;align-items:center;justify-content:center;transition:color .2s ease;z-index:1}.password-toggle-btn:hover{color:#495057}.password-toggle-btn:focus{outline:none;color:#007bff}.password-toggle-btn svg{display:block}@media (max-width: 768px){.user-profile{flex-direction:column;text-align:center;gap:1rem}.user-info{order:2}.logout-btn{margin-left:0;order:3}.user-avatar{order:1}.auth-prompt{padding:1.5rem}.auth-prompt h3{font-size:1.1rem}.auth-prompt p{font-size:.9rem}}
