.tier-manager{max-width:1200px;margin:0 auto;padding:20px}.tier-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.tier-header h2{margin:0;color:#1f2937}.add-tier-btn{background:#10b981;color:#fff;border:none;padding:10px 20px;border-radius:8px;cursor:pointer;font-weight:500;transition:background-color .2s}.add-tier-btn:hover{background:#059669}.tiers-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-bottom:30px}.tier-card{border:2px solid #e5e7eb;border-radius:12px;padding:24px;cursor:pointer;transition:all .3s ease;background:#fff;position:relative;overflow:hidden}.tier-card:hover{border-color:#3b82f6;transform:translateY(-2px);box-shadow:0 8px 25px #3b82f626}.tier-card.selected{border-color:#3b82f6;background:#eff6ff;box-shadow:0 4px 20px #3b82f633}.tier-card.promotional{border-color:#f59e0b;background:linear-gradient(135deg,#fffbeb,#fef3c7)}.tier-card.promotional:hover,.tier-card.promotional.selected{border-color:#d97706;box-shadow:0 8px 25px #f59e0b33}.tier-header-card{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.tier-header-card h3{margin:0;font-size:1.25rem;font-weight:600;color:#1f2937}.promotional-badge{background:#f59e0b;color:#fff;padding:4px 12px;border-radius:20px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.tier-pricing{margin-bottom:20px;text-align:center}.price{font-size:2rem;font-weight:700;color:#1f2937;margin-bottom:4px;display:flex;align-items:center;justify-content:center;gap:12px}.original-price{font-size:1.2rem;font-weight:400;color:#9ca3af;text-decoration:line-through}.duration{color:#6b7280;font-size:.9rem;margin-bottom:8px}.savings{color:#059669;font-weight:600;font-size:.9rem;background:#d1fae5;padding:4px 12px;border-radius:20px;display:inline-block}.tier-features{margin-bottom:24px}.description{color:#6b7280;font-size:.9rem;margin-bottom:16px;line-height:1.5}.tier-features ul{list-style:none;padding:0;margin:0}.tier-features li{padding:6px 0;color:#374151;font-size:.9rem;display:flex;align-items:center}.tier-features li:before{content:"✓";color:#10b981;font-weight:700;margin-right:8px;font-size:1rem}.tier-actions{display:flex;gap:12px}.select-btn{flex:1;background:#3b82f6;color:#fff;border:none;padding:12px 24px;border-radius:8px;cursor:pointer;font-weight:500;transition:background-color .2s}.select-btn:hover{background:#2563eb}.tier-card.promotional .select-btn{background:#f59e0b}.tier-card.promotional .select-btn:hover{background:#d97706}.edit-btn{background:#6b7280;color:#fff;border:none;padding:12px 16px;border-radius:8px;cursor:pointer;font-weight:500;transition:background-color .2s}.edit-btn:hover{background:#4b5563}.tier-editor-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}.tier-editor{background:#fff;border-radius:12px;padding:30px;max-width:600px;width:100%;max-height:90vh;overflow-y:auto}.tier-editor h3{margin:0 0 30px;font-size:1.5rem;color:#1f2937}.form-row{display:flex;gap:20px;margin-bottom:20px}.form-group{flex:1}.form-group label{display:block;margin-bottom:8px;font-weight:500;color:#374151}.form-group input,.form-group select{width:100%;padding:12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;transition:border-color .2s}.form-group input:focus,.form-group select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.checkbox-group{display:flex;align-items:center}.checkbox-group label{display:flex;align-items:center;cursor:pointer;margin:0}.checkbox-group input[type=checkbox]{width:auto;margin-right:8px}.features-section{margin-bottom:30px}.features-section>label{display:block;margin-bottom:12px;font-weight:500;color:#374151}.features-list{margin-bottom:12px}.feature-item{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f3f4f6;border-radius:6px;margin-bottom:8px}.feature-item button{background:#ef4444;color:#fff;border:none;width:24px;height:24px;border-radius:50%;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center}.add-feature{display:flex;gap:12px}.add-feature input{flex:1;padding:10px;border:1px solid #d1d5db;border-radius:6px}.add-feature button{background:#10b981;color:#fff;border:none;padding:10px 16px;border-radius:6px;cursor:pointer;font-weight:500}.form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:30px;padding-top:20px;border-top:1px solid #e5e7eb}.form-actions button{padding:12px 24px;border:none;border-radius:8px;cursor:pointer;font-weight:500;transition:background-color .2s}.form-actions button[type=button]{background:#6b7280;color:#fff}.form-actions button[type=button]:hover{background:#4b5563}.form-actions button[type=submit]{background:#3b82f6;color:#fff}.form-actions button[type=submit]:hover{background:#2563eb}@media (max-width: 768px){.tiers-grid{grid-template-columns:1fr}.tier-header{flex-direction:column;gap:20px;align-items:stretch}.form-row{flex-direction:column}.tier-editor{margin:10px;padding:20px}}:root{--primary-color: #2563eb;--primary-hover: #1d4ed8;--bg-color: #f8fafc;--card-bg: #ffffff;--text-color: #334155;--border-color: #e2e8f0;--success-color: #10b981;--error-color: #ef4444}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;background-color:var(--bg-color);color:var(--text-color);line-height:1.5}.app{display:flex;flex-direction:column;min-height:100vh}.navigation{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;background-color:#fff;border-bottom:1px solid var(--border-color)}.nav-brand a{font-size:1.25rem;font-weight:700;color:var(--primary-color);text-decoration:none}.nav-links{display:flex;gap:1.5rem}.nav-links a{color:var(--text-color);text-decoration:none}.nav-links a:hover{color:var(--primary-color)}.content{flex:1;padding:2rem}h1{margin-bottom:1.5rem;color:#1e293b}.card{background-color:var(--card-bg);border-radius:.5rem;box-shadow:0 1px 3px #0000001a;padding:1.5rem}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:500}.form-group input,.form-group select{width:100%;padding:.75rem;border:1px solid var(--border-color);border-radius:.375rem}button{background-color:var(--primary-color);color:#fff;padding:.75rem 1.5rem;border:none;border-radius:.375rem;cursor:pointer;font-size:1rem}button:hover{background-color:var(--primary-hover)}button:disabled{background-color:#94a3b8;cursor:not-allowed}.result{margin-top:1.5rem;padding:1rem;border-radius:.375rem}.result.success{background-color:#f0fdf4;color:#15803d;border:1px solid #bbf7d0}.result.error{background-color:#fef2f2;color:#b91c1c;border:1px solid #fecaca}table{width:100%;border-collapse:collapse}th,td{padding:.75rem;text-align:left;border-bottom:1px solid var(--border-color)}th{background-color:#f1f5f9}.status{text-transform:capitalize;font-weight:700}.status.active{color:var(--success-color)}.email{font-size:.875rem;color:#64748b}.payment-form{max-width:1200px;margin:0 auto}.checkout-section{margin-top:30px;padding:30px;background:#f8fafc;border-radius:12px;border:1px solid #e2e8f0}.checkout-section h2{margin:0 0 20px;color:#1e293b;font-size:1.5rem}.selected-tier-summary{background:#fff;padding:20px;border-radius:8px;margin-bottom:30px;border:1px solid #e2e8f0}.selected-tier-summary h3{margin:0 0 8px;color:#1e293b;font-size:1.25rem}.selected-tier-summary p{margin:0 0 15px;color:#64748b}.tier-price{display:flex;align-items:center;gap:12px}.tier-price .price{font-size:1.75rem;font-weight:700;color:#1e293b}.tier-price .original-price{font-size:1.2rem;color:#9ca3af;text-decoration:line-through}.tier-price .free-tier{font-size:1.75rem;font-weight:700;color:#059669;background:#d1fae5;padding:8px 16px;border-radius:20px}.pay-button{width:100%;background:#3b82f6;color:#fff;border:none;padding:16px 24px;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.1rem;transition:background-color .2s;margin-top:20px}.pay-button:hover:not(:disabled){background:#2563eb}.pay-button:disabled{background:#9ca3af;cursor:not-allowed}.tabs{display:flex;gap:4px;margin-bottom:30px;background:#f1f5f9;padding:4px;border-radius:8px;max-width:400px}.tabs button{flex:1;padding:12px 24px;border:none;background:transparent;border-radius:6px;cursor:pointer;font-weight:500;color:#64748b;transition:all .2s}.tabs button.active{background:#fff;color:#1e293b;box-shadow:0 1px 2px #0000000d}.tabs button:hover:not(.active){color:#1e293b}.error{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:16px;border-radius:8px;margin-top:20px}.result.success{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;padding:20px;border-radius:8px;margin-top:30px}.result.success h3{margin:0 0 12px;color:#166534}.result.success p{margin:6px 0}.result.success p strong{color:#14532d}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}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
