*{box-sizing:border-box;margin:0;padding:0}html,body{min-height:100%}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px;color:#333}a{color:#667eea;text-decoration:none}a:hover{color:#764ba2;text-decoration:underline}.container{max-width:1400px;margin:0 auto}.card{background:#fff;border-radius:12px;padding:30px;box-shadow:0 10px 40px #0000001a;margin-bottom:20px}h1{color:#333;font-size:32px}h2{color:#333;font-size:24px;font-weight:700;margin-bottom:20px}.header-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.nav-buttons{display:flex;gap:10px}.nav-btn{padding:10px 20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:8px;font-size:14px;font-weight:600}.nav-btn-secondary{background:linear-gradient(135deg,#f093fb,#f5576c)}.btn{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:14px 28px;border-radius:8px;font-size:16px;font-weight:600;font-family:inherit}.btn-outline{background:#fff;color:#666;border:2px solid #e0e0e0;padding:12px 24px;border-radius:8px;font-size:14px;font-weight:600;font-family:inherit}.input{width:100%;padding:12px 16px;border:2px solid #e0e0e0;border-radius:8px;font-size:14px;font-family:inherit;color:#333;background:#fff}.input.mono{font-family:Courier New,monospace;font-size:13px}.label{display:block;color:#333;font-weight:600;font-size:14px;margin-bottom:8px}.help-link{color:#667eea;font-size:13px;font-weight:500}.collapse{background:#f8f9fa;border:2px solid #e0e0e0;border-radius:8px;overflow:hidden}.collapse-head{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;font-size:16px;font-weight:600;color:#333}.collapse-arrow{font-size:14px;color:#667eea}.collapse-body{border-top:1px solid #e0e0e0;padding:16px 20px;background:#fff}.tabs{display:flex;gap:20px;margin-bottom:20px}.tab{flex:1;text-align:center;padding:18px;border-radius:12px;font-size:20px;font-weight:600;color:#fff;border:2px solid rgba(255,255,255,.85);background:#ffffff1a}.tab.active{background:#fff;color:#667eea;border-color:#fff;box-shadow:0 10px 40px #0000001a}.stats{display:flex;gap:20px;margin-bottom:20px}.stat-card{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:20px;border-radius:8px;flex:1;min-width:200px}.stat-card.dim{opacity:.55}.stat-value{font-size:32px;font-weight:700;margin-bottom:5px}.stat-label{font-size:14px;opacity:.9}.actions{display:flex;gap:10px;margin-bottom:20px}.btn-restore{background:#17a2b8;color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:14px;font-weight:600;font-family:inherit}table{width:100%;border-collapse:collapse}th{background:#f8f9fa;padding:12px;text-align:left;font-weight:600;font-size:14px;color:#333;border-bottom:2px solid #dee2e6}td{padding:12px;border-bottom:1px solid #dee2e6;font-size:14px;vertical-align:middle}.num{font-variant-numeric:tabular-nums;white-space:nowrap}.mono{font-family:Courier New,monospace}.preview-ph{width:90px;height:160px;border-radius:4px;background:linear-gradient(160deg,#cfd6e4,#9aa5bb);display:flex;align-items:center;justify-content:center}.btn-process{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:8px 16px;border-radius:6px;font-size:13px;font-weight:500;font-family:inherit;white-space:nowrap}.btn-process.processed{background:#28a745}.btn-process.expanded{background:#218838}.btn-small{color:#fff;border:none;padding:8px 12px;border-radius:6px;font-size:13px;font-weight:500;font-family:inherit;white-space:nowrap}.btn-small.grey{background:#6c757d}.btn-small.teal{background:#17a2b8}.btn-small.red{background:#dc3545}.row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-start;max-width:360px}.details-row td{background:#f8f9fa;padding:0}.details-content{padding:20px;border-left:3px solid #667eea;display:flex;flex-direction:column;gap:15px}.url-field{display:flex;align-items:center;gap:6px}.url-field .input{flex:1;min-width:0;padding:10px 14px;font-size:13px}.btn-open-url{display:inline-flex;align-items:center;justify-content:center;width:38px;height:42px;background:#f0f4ff;border:1px solid #c7d0f5;border-radius:6px;color:#667eea;flex-shrink:0}.check{display:flex;align-items:center;gap:10px;margin-top:8px;font-size:13px;color:#555}.url-warning{border-color:#dc3545!important;background:#fff5f5!important}.field-error{margin-top:8px;font-size:13px;color:#dc3545;font-weight:500}.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:12px;font-size:12px;font-weight:600;white-space:nowrap}.pill.ok{background:#d4edda;color:#155724}.pill.warn{background:#fff3cd;color:#856404}.pill.info{background:#e0f2fe;color:#0369a1}.pill.bad{background:#fee;color:#c33}.pill.idle{background:#f0f0f0;color:#666}.placement-list{border:1px solid #e0e0e0;border-radius:8px;background:#f8f9fa;overflow:hidden}.placement-controls{background:#fff;padding:12px;border-bottom:2px solid #e0e0e0}.placement-search{width:100%;padding:10px 14px;border:2px solid #667eea;border-radius:6px;font-size:14px;font-family:inherit;color:#999;background:#fff}.placement-groups{padding:10px}.platform-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:8px 12px;border-radius:6px;font-weight:600;font-size:14px;margin-bottom:8px;display:flex;justify-content:space-between}.platform-placements{display:flex;flex-direction:column;gap:6px}.placement-item{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#fff;border:1px solid #e0e0e0;border-radius:6px}.placement-item.published{background:#e8f5e9;border-color:#c8e6c9}.placement-description{flex:0 1 190px;font-size:13px;color:#333;padding-right:10px}.placement-settings{display:flex;gap:18px;align-items:center;flex:1;padding:0 10px}.setting-group{display:flex;gap:10px;align-items:center;padding:4px 0}.setting-group+.setting-group{padding-left:18px;border-left:1px solid #e6e8ee}.setting-checkbox{display:flex;align-items:center;gap:4px;font-size:11px;color:#555;white-space:nowrap}.setting-checkbox input{width:14px;height:14px;accent-color:#667eea}.setting-checkbox.disabled{opacity:.5}.setting-note{font-size:11px;color:#856404}.published-badge{display:inline-block;background:#28a745;color:#fff;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;margin-left:8px}.placement-actions{display:flex;gap:6px;align-items:center}.btn-open-group{display:inline-flex;align-items:center;justify-content:center;background:#667eea;color:#fff;border:none;border-radius:5px;width:32px;height:28px}.btn-publish-hooppy{background:#ff6b35;color:#fff;border:none;padding:6px 14px;border-radius:5px;font-size:12px;font-weight:600;font-family:inherit;white-space:nowrap}.btn-add-blacklist{display:inline-flex;align-items:center;justify-content:center;background:#6c757d;color:#fff;border:none;border-radius:5px;width:32px;height:28px}.btn-hide-item{display:inline-flex;align-items:center;justify-content:center;background:#dc3545;color:#fff;border:none;border-radius:4px;width:24px;height:24px}.overlay{position:absolute;inset:0;background:#00000080}.modal{position:relative;background:#fff;border-radius:12px;box-shadow:0 10px 40px #0003;width:600px;display:flex;flex-direction:column}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px 12px 0 0}.modal-header h3{font-size:18px;color:#fff;font-weight:600}.modal-close{display:inline-flex;align-items:center;justify-content:center;background:#fff3;border-radius:6px;width:30px;height:30px;color:#fff}.modal-body{padding:24px;display:flex;flex-direction:column;gap:16px}.placement-name{padding:12px 16px;background:linear-gradient(135deg,#f5f7fa,#e4e8eb);border-radius:8px;font-size:14px;color:#333}.modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:20px 24px;border-top:1px solid #e0e0e0;background:#f8f9fa;border-radius:0 0 12px 12px}.text-edit{width:100%;padding:16px;background:#f8f9fa;border:2px solid #e0e0e0;border-radius:8px;font-size:14px;line-height:1.6;color:#333;white-space:pre-wrap}.btn-reset{padding:6px 12px;border:2px solid #e0e0e0;background:#fff;color:#666;border-radius:6px;font-size:13px;font-weight:600;font-family:inherit}.hint{font-size:12px;color:#888}button{cursor:pointer;font-family:inherit}button:disabled{opacity:.6;cursor:default}.nav-btn,.modal-close{border:none}.btn-compact{padding:12px 24px;font-size:14px}.table-scroll{overflow-x:auto}.col-preview{width:120px}.col-actions{width:240px}.login-screen{min-height:calc(100vh - 40px);display:flex;align-items:center;justify-content:center}.login-card{width:360px;max-width:100%;display:flex;flex-direction:column;gap:16px;margin:0}.login-card h2{margin:0;text-align:center}.modal-backdrop{position:fixed;inset:0;z-index:100;display:flex;align-items:flex-start;justify-content:center;padding:60px 16px;overflow-y:auto;background:#00000080}.modal{max-width:100%}.modal-close{font-size:20px;line-height:1}.pp-status{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-bottom:20px;font-size:14px;color:#666}.desc-product{margin-top:6px;display:flex;flex-direction:column;gap:6px}.desc-product .mono{font-size:12px;color:#888;word-break:break-all}.desc-product .shop-url{color:#c33}.product-check{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:#555}.pill.shop{background:#fee;color:#c33}.preview-img{width:90px;height:160px;object-fit:cover;border-radius:4px;display:block}.check-box{border:2px solid #c3e6cb;background:#f3fbf5;border-radius:8px;padding:12px 16px}.check-box.warn{border-color:#ffc107;background:#fffaf0}.check-box.bad{border-color:#f5c2c7;background:#fff5f5}.check-title{font-size:14px;font-weight:600;color:#155724}.check-box.warn .check-title{color:#856404}.check-box.bad .check-title{color:#c33}.check-meta{font-size:13px;color:#555;margin-top:2px}.setting-note.ok{color:#555}.platform-count{font-weight:500;opacity:.9}.placement-search{color:#333}.steps{display:flex;flex-direction:column;border:1px solid #e0e0e0;border-radius:8px;overflow:hidden}.step{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 16px;font-size:14px;color:#333}.step+.step{border-top:1px solid #eef0f3}.step .meta{margin-left:auto;font-size:13px;color:#888}.step-error{flex-basis:100%;font-size:12px;color:#dc3545}.progress{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px}.progress-count{font-weight:600;color:#0369a1;font-size:13px}.progress-bar{flex:1;height:7px;background:#e2e8f0;border-radius:4px;overflow:hidden}.progress-fill{height:100%;background:#3b82f6;border-radius:4px;transition:width .3s}.settings-container{max-width:800px;margin:0 auto;padding:20px 20px 40px}.settings-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.settings-header h1{color:#fff;font-size:28px;font-weight:700}.btn-back{background:#fff3;color:#fff;border:none;padding:10px 20px;border-radius:8px;font-size:14px}.settings-category{background:#ffffff0d;border-radius:12px;margin-bottom:16px;overflow:hidden;border:1px solid rgba(255,255,255,.1)}.category-header{display:flex;align-items:center;gap:16px;padding:20px}.category-icon{font-size:26px;width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#667eea33;border-radius:12px}.category-title{flex:1}.category-title h2{color:#fff;font-size:18px;font-weight:600;margin:0}.category-subtitle{color:#fff9;font-size:13px;margin-top:2px;display:block}.category-content{padding:0 20px 20px;border-top:1px solid rgba(255,255,255,.1)}.settings-section{padding:16px 0;display:flex;flex-direction:column;gap:12px}.settings-section h3{color:#fff;font-size:16px;margin:0;font-weight:600}.settings-description{color:#fff9;font-size:13px;line-height:1.5}.token-label{color:#fffc;font-size:13px;font-weight:500;margin-bottom:6px;display:block}.token-input{width:100%;padding:12px;border:1px solid rgba(255,255,255,.2);border-radius:8px;background:#0000004d;color:#fff;font-size:14px;font-family:Courier New,monospace}.token-input::placeholder{color:#fff6}.number-input{display:flex;align-items:center;gap:8px}.number-input .token-input{width:110px;text-align:center;font-family:inherit}.number-input span{color:#ffffffb3;font-size:13px}.cred-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.btn-glass{background:#ffffff26;color:#fff;border:1px solid rgba(255,255,255,.3);padding:12px 20px;border-radius:8px;font-size:14px;font-weight:600;white-space:nowrap;display:inline-block}a.btn-glass:hover{color:#fff;text-decoration:none;background:#ffffff40}.button-row{display:flex;gap:10px;flex-wrap:wrap}.status-ok,.status-bad{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:8px;font-size:14px}.status-ok{background:#4caf5033;border:1px solid rgba(76,175,80,.5);color:#b9f6c3}.status-bad{background:#dc354533;border:1px solid rgba(220,53,69,.5);color:#ffd0d5}.settings-container .field-error{color:#ffd0d5}.settings-save{display:flex;justify-content:flex-end;align-items:center;gap:14px}.save-ok{color:#b9f6c3;font-size:14px}
