.admin-dashboard{display:flex;min-height:100vh;background:#f8f9fc;font-family:Inter,Segoe UI,sans-serif;position:relative;overflow-x:clip}.admin-bottom-fade{position:fixed;bottom:0;left:230px;right:0;height:100px;background:linear-gradient(0deg,#f8f9fc 0,rgba(248,249,252,0));pointer-events:none;z-index:50;transition:left .3s ease}.admin-sidebar{width:230px;flex-shrink:0;background:#ffffff;border-right:1px solid #e5e7eb;padding:0;box-shadow:2px 0 12px rgba(0,0,0,.04);position:-webkit-sticky;position:sticky;top:0;height:100vh}.admin-sidebar,.sidebar-brand{display:flex;flex-direction:column}.sidebar-brand{padding:1.5rem 1.25rem 1.25rem;border-bottom:1px solid #f1f3f9;gap:.25rem}.sidebar-logo{height:36px;width:auto;object-fit:contain}.sidebar-label{font-size:.65rem;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#6366f1}.sidebar-nav{flex:1 1;display:flex;flex-direction:column;gap:.25rem;padding:1rem .75rem}.sidebar-nav button{display:flex;align-items:center;gap:.6rem;padding:.7rem .85rem;border:none;border-radius:8px;background:transparent;color:#6b7280;font-size:.875rem;font-weight:500;cursor:pointer;text-align:left;transition:background .15s ease,color .15s ease;width:100%}.sidebar-nav button:hover{background:#f3f4f6;color:#111827}.sidebar-nav button.active{background:#eef2ff;color:#4f46e5;font-weight:600}.sidebar-nav button svg{flex-shrink:0}.nav-badge,.nav-badge-green{margin-left:auto;background:#e5e7eb;color:#374151;font-size:.7rem;font-weight:700;padding:.1rem .45rem;border-radius:20px;line-height:1.6}.nav-badge-green{background:#d1fae5;color:#065f46}.sidebar-footer{padding:1rem .75rem;border-top:1px solid #f1f3f9;display:flex;flex-direction:column;gap:.5rem}.sidebar-user-info{display:flex;flex-direction:column;padding:.5rem .25rem;border-bottom:1px solid #f1f3f9;margin-bottom:.25rem}.sidebar-user-name{font-size:.82rem;font-weight:600;color:#111827}.sidebar-user-role{font-size:.7rem;color:#6b7280;text-transform:capitalize;letter-spacing:.3px}.sidebar-view-site{font-size:.8rem;color:#6366f1;text-decoration:none;text-align:center;padding:.45rem;border-radius:6px;border:1px solid rgba(99,102,241,.2);transition:background .15s ease}.sidebar-view-site:hover{background:#eef2ff}.sidebar-logout{background:none;border:none;color:#9ca3af;font-size:.8rem;cursor:pointer;text-align:center;padding:.3rem;border-radius:6px;transition:color .15s ease}.sidebar-logout:hover{color:#ef4444}.admin-main{flex:1 1;overflow-y:auto;padding:2rem 2.5rem;min-width:0}.panel-header{justify-content:space-between;margin-bottom:1.5rem}.panel-header,.panel-header h2{display:flex;align-items:center}.panel-header h2{font-size:1.4rem;font-weight:700;color:#111827;gap:.6rem}.badge{background:#e5e7eb;color:#374151;font-size:.75rem;font-weight:700;padding:.1rem .55rem;border-radius:20px}.badge-green{background:#d1fae5;color:#065f46}.btn-primary{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border:none;border-radius:8px;padding:.6rem 1.1rem;font-size:.875rem;font-weight:600;cursor:pointer;transition:opacity .2s ease,transform .15s ease}.btn-primary:hover{opacity:.9;transform:translateY(-1px)}.btn-secondary{background:#f3f4f6;color:#374151;border:1px solid #e5e7eb;border-radius:8px;padding:.6rem 1.1rem;font-size:.875rem;font-weight:600;cursor:pointer;transition:background .15s ease}.btn-secondary:hover{background:#e5e7eb}.posts-table-wrap{background:#fff;border-radius:12px;border:1px solid #e5e7eb}.posts-table thead tr:first-child th:first-child{border-top-left-radius:12px}.posts-table thead tr:first-child th:last-child{border-top-right-radius:12px}.posts-table tbody tr:last-child td:first-child{border-bottom-left-radius:12px}.posts-table tbody tr:last-child td:last-child{border-bottom-right-radius:12px}.posts-table{width:100%;border-collapse:collapse}.posts-table thead{background:#f9fafb;border-bottom:1px solid #e5e7eb}.posts-table th{padding:.75rem 1rem;text-align:left;font-size:.75rem;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:#6b7280}.posts-table td{padding:.85rem 1rem;font-size:.875rem;color:#374151;border-bottom:1px solid #f3f4f6;vertical-align:middle}.posts-table tr:last-child td{border-bottom:none}.posts-table tr:hover td{background:#fafafa}.post-title-cell a{color:#111827;text-decoration:none;font-weight:500}.post-title-cell a:hover{color:#6366f1;text-decoration:underline}.date-cell{color:#9ca3af;font-size:.8rem;white-space:nowrap}.tag{background:#f3f4f6;border-radius:4px;padding:.2rem .55rem;font-size:.75rem;font-weight:500;color:#374151}.status-badge{font-size:.72rem;font-weight:600;padding:.2rem .6rem;border-radius:20px;letter-spacing:.3px}.status-badge.published{background:#d1fae5;color:#065f46}.status-badge.draft{background:#fef3c7;color:#92400e}.actions-cell{display:flex;gap:.5rem}.icon-action{border:none;border-radius:6px;padding:.3rem .65rem;font-size:.78rem;font-weight:600;cursor:pointer;transition:opacity .15s ease}.icon-action.edit{background:#eef2ff;color:#4f46e5}.icon-action.edit:hover{background:#e0e7ff}.icon-action.delete:hover{background:#fee2e2}.action-dropdown{position:relative;display:inline-block}.action-dropdown-trigger{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;padding:.3rem .6rem;font-size:.75rem;font-weight:600;color:#4b5563;cursor:pointer;display:flex;align-items:center;gap:.3rem;transition:all .2s ease}.action-dropdown-trigger:hover{background:#e5e7eb;color:#111827}.action-dropdown-menu{position:absolute;right:0;top:100%;margin-top:.4rem;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 10px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.05);z-index:1000;min-width:160px;padding:.5rem;display:none;flex-direction:column;gap:.15rem}.action-dropdown:focus-within .action-dropdown-menu,.action-dropdown:hover .action-dropdown-menu{display:flex}.action-dropdown-item{background:none;border:none;padding:.5rem .75rem;font-size:.78rem;font-weight:500;color:#374151;text-align:left;cursor:pointer;border-radius:6px;display:flex;align-items:center;gap:.5rem;transition:background .15s ease;white-space:nowrap}.action-dropdown-item:hover{background:#f3f4f6;color:#111827}.action-dropdown-item.danger{color:#dc2626}.action-dropdown-item.danger:hover{background:#fef2f2}.action-dropdown-item svg{flex-shrink:0;width:14px;height:14px}.empty-state{background:#fff;border:1px dashed #d1d5db;border-radius:12px;padding:3rem;text-align:center;color:#9ca3af;display:flex;flex-direction:column;align-items:center;gap:1rem}.post-editor{width:100%}.editor-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.editor-header h2{font-size:1.4rem;font-weight:700;color:#111827}.editor-header-actions{display:flex;gap:.75rem}.editor-body{display:grid;grid-template-columns:1fr 280px;grid-gap:1.5rem;gap:1.5rem;align-items:start}.editor-main{gap:1.25rem}.editor-main,.editor-sidebar{display:flex;flex-direction:column}.editor-sidebar{gap:1rem}.sidebar-section{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:1rem}.sidebar-section h4{font-size:.78rem;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#6b7280;margin:0 0 .75rem}.field-group{display:flex;flex-direction:column;gap:.4rem}.field-group label{font-size:.82rem;font-weight:600;color:#374151}.field-group input,.field-group textarea,.sidebar-section input,.sidebar-section textarea{width:100%;padding:.65rem .85rem;border:1.5px solid #e5e7eb;border-radius:8px;font-size:.875rem;color:#111827;background:#f9fafb;resize:vertical;outline:none;font-family:inherit;transition:border-color .2s ease,box-shadow .2s ease;box-sizing:border-box}.field-group input:focus,.field-group textarea:focus,.sidebar-section input:focus,.sidebar-section textarea:focus{border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.1);background:#fff}.input-large{font-size:1rem;padding:.75rem 1rem;font-weight:500}.content-textarea{font-family:Menlo,Consolas,monospace;font-size:.83rem;line-height:1.7}.small-label{display:block;font-size:.75rem;font-weight:600;color:#6b7280;margin-bottom:.35rem}.slug-management{display:flex;flex-direction:column;gap:.5rem}.slug-preview-row{font-size:.78rem;color:#6b7280;display:flex;align-items:center;gap:.3rem;flex-wrap:wrap;background:#f9fafb;padding:.4rem .6rem;border-radius:6px;border:1px solid #e5e7eb}.slug-base{color:#9ca3af}.slug-value{color:#4f46e5;font-weight:600;word-break:break-all}.slug-edit-btn{background:none;border:none;color:#6366f1;cursor:pointer;font-size:.9rem;padding:.2rem;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background .2s}.slug-edit-btn:hover{background:#eef2ff}.slug-edit-row{display:flex;gap:.4rem;align-items:center}.slug-edit-row input{flex:1 1;padding:.35rem .6rem!important;font-size:.78rem!important}.slug-edit-actions{display:flex;gap:.3rem}.slug-auto-hint{font-size:.68rem;color:#10b981;font-style:italic}.slug-reset-btn{background:none;border:none;color:#6b7280;font-size:.7rem;text-align:left;padding:0;cursor:pointer;text-decoration:underline;width:-moz-fit-content;width:fit-content}.slug-reset-btn:hover{color:#4f46e5}.btn-small{padding:.3rem .5rem;font-size:.75rem;height:auto}.char-count{color:#9ca3af;text-align:right;margin-top:.25rem}.char-count,.slug-preview{font-size:.72rem;display:block}.slug-preview{color:#6366f1;margin-top:.35rem;font-family:monospace}.cover-preview{width:100%;border-radius:6px;margin-top:.5rem;object-fit:cover;max-height:120px}.toggle-label{display:flex;align-items:center;gap:.6rem;cursor:pointer}.toggle-label input[type=checkbox]{width:16px;height:16px;accent-color:#6366f1;cursor:pointer;border-color:#e5e7eb;box-shadow:none}.toggle-text{font-size:.875rem;font-weight:500;color:#374151}.leads-panel,.posts-list-panel,.users-panel{width:100%}.user-form-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem}.user-form-card h3{font-size:1rem;font-weight:700;color:#111827;margin:0 0 1.25rem}.user-form-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:1rem;gap:1rem}.assign-select,.role-select{width:100%;padding:.65rem .85rem;border:1.5px solid #e5e7eb;border-radius:8px;font-size:.875rem;color:#111827;background:#f9fafb;outline:none;cursor:pointer;font-family:inherit;transition:border-color .2s ease;box-sizing:border-box}.assign-select:focus,.role-select:focus{border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.1)}.assign-select{font-size:.8rem;padding:.4rem .65rem}.form-success{background:#d1fae5;border:1px solid #6ee7b7;border-radius:8px;font-weight:500;color:#065f46}.admin-login-error,.form-success{padding:.65rem 1rem;font-size:.83rem}.admin-login-error{background:#fef2f2;border:1px solid #fecaca;border-radius:8px;color:#dc2626}.img-upload-label{display:block;cursor:pointer}.img-upload-input{display:none}.img-upload-btn{display:inline-flex;align-items:center;gap:.4rem;background:#eef2ff;color:#4f46e5;border:1.5px dashed #a5b4fc;border-radius:8px;padding:.5rem .9rem;font-size:.8rem;font-weight:600;cursor:pointer;transition:background .15s;width:100%;justify-content:center;box-sizing:border-box}.img-upload-btn:hover{background:#e0e7ff}.cover-preview-wrap{position:relative;margin-top:.5rem}.cover-remove-btn{position:absolute;top:6px;right:6px;background:rgba(0,0,0,.55);color:#fff;border:none;border-radius:4px;padding:.2rem .5rem;font-size:.72rem;cursor:pointer}.editor-header-left{display:flex;align-items:center;gap:.75rem}.reading-time-badge{background:#f3f4f6;color:#6b7280;font-size:.72rem;font-weight:600;padding:.2rem .6rem;border-radius:20px}.seo-score-section{padding-bottom:.5rem}.seo-score-ring-wrap{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem}.seo-score-ring{width:52px;height:52px;border-radius:50%;border:4px solid var(--score-color,#e5e7eb);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:border-color .3s}.seo-score-num{font-size:1rem;font-weight:800;line-height:1}.seo-score-label{font-size:.8rem;font-weight:700}.seo-checks-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.3rem}.seo-check-fail,.seo-check-pass{font-size:.73rem;line-height:1.4}.seo-check-pass{color:#10b981}.seo-check-fail{color:#9ca3af}.seo-full-section{padding-top:.75rem}.seo-tabs{display:flex;gap:.25rem;border-bottom:1px solid #e5e7eb;margin-bottom:.85rem;flex-wrap:wrap}.seo-tab-btn{background:none;border:none;border-bottom:2px solid transparent;padding:.4rem .6rem;font-size:.75rem;font-weight:600;color:#9ca3af;cursor:pointer;margin-bottom:-1px;transition:color .15s,border-color .15s}.seo-tab-btn:hover{color:#6366f1}.seo-tab-btn.active{color:#6366f1;border-bottom-color:#6366f1}.seo-tab-content{display:flex;flex-direction:column;gap:.25rem}.seo-tab-note{font-size:.73rem;color:#9ca3af;line-height:1.5;margin:0 0 .25rem}.density-badge{font-size:.72rem;font-weight:600;margin-top:.25rem;display:block}.optional-tag{font-size:.65rem;font-weight:400;color:#9ca3af;margin-left:.3rem;text-transform:uppercase;letter-spacing:.3px}.og-preview{margin-top:.75rem;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#fff;font-size:.75rem}.og-preview-img{width:100%;height:90px;object-fit:cover;display:block}.og-preview-text{padding:.5rem .65rem;display:flex;flex-direction:column;gap:.2rem}.og-domain{color:#9ca3af;font-size:.68rem;text-transform:uppercase;letter-spacing:.3px}.og-preview-text strong{color:#111827;font-size:.8rem;line-height:1.3}.og-preview-text span{color:#6b7280;font-size:.72rem;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.seo-dashboard{width:100%}.seo-panel-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:2rem;border-bottom:1px solid #e5e7eb;padding-bottom:.75rem}.seo-panel-tab{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:.6rem 1rem;font-size:.85rem;font-weight:600;color:#6b7280;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.5rem}.seo-panel-tab:hover{border-color:#d1d5db;background:#f9fafb;color:#374151}.seo-panel-tab.active{background:#eef2ff;border-color:#a5b4fc;color:#4f46e5}.seo-panel-tab-icon{font-size:1.1rem}.seo-section{animation:fadeIn .3s ease-out forwards}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.seo-section h3{font-size:1.15rem;font-weight:700;color:#111827;margin:0 0 1rem}.seo-overview-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));grid-gap:1.25rem;gap:1.25rem}.seo-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1.5rem;display:flex;flex-direction:column;gap:.5rem;position:relative;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}.seo-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.04)}.seo-card:before{content:"";position:absolute;top:0;left:0;bottom:0;width:4px}.seo-card-indigo:before{background:#6366f1}.seo-card-purple:before{background:#a855f7}.seo-card-green:before{background:#10b981}.seo-card-amber:before{background:#f59e0b}.seo-card-teal:before{background:#14b8a6}.seo-card-rose:before{background:#f43f5e}.seo-card-blue:before{background:#3b82f6}.seo-card-value{font-size:2rem;font-weight:800;color:#111827;line-height:1}.seo-card-label{font-size:.82rem;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.5px}.seo-score-pill{padding:.2rem .6rem;border-radius:20px;font-size:.75rem;font-weight:700;border:1px solid transparent}.seo-analysis-table th{white-space:nowrap}.seo-sub-panel{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1.5rem}.seo-sub-panel h3,.seo-sub-panel h4{font-size:1.05rem;font-weight:700;color:#111827;margin:0 0 1rem}.seo-link-row{display:flex;align-items:center;gap:1.5rem;padding:.75rem 0;border-bottom:1px solid #f3f4f6}.seo-link-row:last-child{border-bottom:none;padding-bottom:0}.seo-link-title{width:200px;font-size:.85rem;font-weight:600;color:#374151;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seo-link-bars{flex:1 1;display:flex;gap:.25rem}.seo-link-bar{height:24px;border-radius:4px;display:flex;align-items:center;padding:0 .5rem;font-size:.7rem;font-weight:700;color:#fff;min-width:30px;justify-content:center}.seo-link-bar-in{background:#14b8a6}.seo-link-bar-out{background:#f43f5e;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.seo-code-block{background:#1e1e1e;border-radius:8px;overflow:hidden;border:1px solid #374151}.seo-code-header{background:#2d2d2d;padding:.5rem 1rem;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #404040;color:#9ca3af;font-size:.75rem;font-family:monospace}.seo-code-pre{margin:0;overflow-x:auto;color:#d4d4d4;font-size:.8rem;line-height:1.5;max-height:300px}.seo-code-pre,.seo-robots-textarea{padding:1rem;font-family:Consolas,Monaco,monospace}.seo-robots-textarea{width:100%;border:1.5px solid #e5e7eb;border-radius:8px;font-size:.88rem;color:#111827;background:#fafafa;line-height:1.6;resize:vertical;transition:border-color .2s;box-sizing:border-box;margin-top:1rem}.seo-robots-textarea:focus{border-color:#6366f1;background:#fff;outline:none;box-shadow:0 0 0 3px rgba(99,102,241,.1)}.seo-success-msg{color:#10b981;font-size:.85rem;font-weight:600;display:inline-flex;align-items:center;gap:.4rem}.seo-recs-list{display:flex;flex-direction:column;gap:1rem}.seo-rec-item{display:flex;gap:1rem;background:#fff;border:1px solid;border-radius:12px;padding:1.25rem;align-items:flex-start}.seo-rec-error{border-color:#fca5a5;background:#fef2f2}.seo-rec-warning{border-color:#fcd34d;background:#fffbeb}.seo-rec-info{border-color:#93c5fd;background:#eff6ff}.seo-rec-icon{font-size:1.5rem;line-height:1}.seo-rec-content{flex:1 1}.seo-rec-text{font-size:.95rem;font-weight:600;color:#111827;margin-bottom:.5rem}.seo-rec-posts{display:flex;flex-wrap:wrap;gap:.5rem}.seo-rec-post-btn{background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:.3rem .6rem;font-size:.75rem;color:#374151;cursor:pointer;transition:all .15s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.seo-rec-post-btn:hover{border-color:#6b7280;background:#f3f4f6}.seo-rec-more{font-size:.75rem;color:#6b7280;align-self:center}.faq-editor-section{margin-top:3rem;padding-top:2rem;border-top:1px solid #e5e7eb}.faq-editor-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.faq-editor-header h3{font-size:1.1rem;font-weight:700;color:#111827;margin:0}.faq-items{display:flex;flex-direction:column;gap:1.25rem;margin-top:1.5rem}.faq-item-card{background:#ffffff;border:1px solid #e5e7eb;border-radius:10px;padding:1.25rem;transition:box-shadow .2s}.faq-item-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.05)}.faq-item-row{display:flex;gap:1rem;margin-bottom:.75rem}.faq-field{flex:1 1}.faq-field input,.faq-field textarea{width:100%;border:1px solid #d1d5db;border-radius:6px;padding:.6rem .8rem;font-size:.9rem;transition:border-color .15s}.faq-field input:focus,.faq-field textarea:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 2px rgba(99,102,241,.1)}.faq-remove-btn{background:#fee2e2;color:#ef4444;border:none;width:32px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s}.faq-remove-btn:hover{background:#fecaca}.faq-empty-state{text-align:center;padding:3rem;background:#f9fafb;border:2px dashed #e5e7eb;border-radius:10px;color:#9ca3af;font-style:italic}@media (max-width:1024px){.admin-dashboard{flex-direction:column}.admin-sidebar{width:100%;height:auto;padding:.5rem 1rem;border-right:none;border-bottom:1px solid #e5e7eb;position:-webkit-sticky;position:sticky;top:0;z-index:100}.admin-sidebar,.sidebar-brand{flex-direction:row;align-items:center}.sidebar-brand{padding:0;border:none;gap:1rem}.sidebar-logo{height:28px}.sidebar-nav{flex-direction:row;gap:.5rem;overflow-x:auto;padding:0 1rem;margin-left:auto;flex:1 1}.sidebar-nav button{white-space:nowrap;padding:.5rem .8rem}.sidebar-footer{display:none}.admin-main{padding:1.5rem 1rem 120px}.admin-bottom-fade{left:0;height:120px;background:linear-gradient(0deg,#f8f9fc 20%,rgba(248,249,252,0))}.editor-body{grid-template-columns:1fr}.seo-overview-cards{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}