*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans SC",sans-serif;background:#f7f8fa;color:#1a1d2e;line-height:1.6;min-height:100vh}
a{color:#4f6ef7;text-decoration:none}a:hover{text-decoration:underline}

.navbar{display:flex;align-items:center;justify-content:space-between;padding:0 24px;height:56px;background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:100}
.nav-brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700}
.nav-logo{font-size:24px}
.nav-links{display:flex;gap:4px}
.nav-link{padding:8px 16px;border-radius:6px;font-size:14px;font-weight:500;color:#555;transition:all .15s}
.nav-link:hover{background:#f0f1f5;color:#1a1d2e;text-decoration:none}
.nav-link.active{background:#4f6ef7;color:#fff}
.nav-actions{display:flex;align-items:center;gap:10px}
.nav-user{display:flex;align-items:center;gap:8px;font-size:13px;color:#555}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:4px}
@media(max-width:768px){.nav-links{display:none;position:absolute;top:56px;left:0;right:0;background:#fff;flex-direction:column;padding:8px;border-bottom:1px solid #e5e7eb}.nav-links.open{display:flex}.nav-toggle{display:block}}

.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border-radius:6px;border:1px solid transparent;font-size:14px;font-weight:500;cursor:pointer;transition:all .15s}
.btn-primary{background:#4f6ef7;color:#fff;border-color:#4f6ef7}.btn-primary:hover{background:#3b5de7}
.btn-outline{background:#fff;color:#4f6ef7;border-color:#4f6ef7}.btn-outline:hover{background:#f0f3ff}
.btn-ghost{background:none;color:#555}.btn-ghost:hover{background:#f0f1f5}
.btn-sm{padding:4px 12px;font-size:13px}
.btn-lg{padding:12px 28px;font-size:16px}
.btn-full{width:100%;justify-content:center}
.btn:disabled{opacity:.5;cursor:not-allowed}

.hero{padding:80px 24px 60px;text-align:center;background:linear-gradient(160deg,#eef1ff 0%,#f7f8fa 40%,#fff 100%)}
.hero-title{font-size:44px;font-weight:800;color:#1a1d2e;line-height:1.25;margin-bottom:16px}
.hero-desc{font-size:17px;color:#666;margin-bottom:32px;max-width:600px;margin-left:auto;margin-right:auto}
.hero-actions{display:flex;gap:12px;justify-content:center;margin-bottom:48px}
.hero-stats{display:flex;justify-content:center;gap:48px}
.stat-item{text-align:center}.stat-num{display:block;font-size:28px;font-weight:800;color:#4f6ef7}.stat-label{display:block;font-size:13px;color:#888;margin-top:2px}
@media(max-width:640px){.hero-title{font-size:28px}.hero-stats{gap:24px}.hero-actions{flex-direction:column;align-items:center}}

.section{padding:72px 24px;max-width:1120px;margin:0 auto}
.section-header{text-align:center;margin-bottom:32px}.section-header h2{font-size:24px;font-weight:700}

.service-menu{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;max-width:1120px;margin:0 auto;padding:0 24px}
.service-item{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px 20px;cursor:pointer;transition:all .15s}
.service-item:hover{box-shadow:0 2px 12px rgba(0,0,0,.06);border-color:#c7cdfc}
.service-icon{width:40px;height:40px;min-width:40px;background:#eef1ff;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#4f6ef7}
.service-info{flex:1;min-width:0}.service-info h3{font-size:14px;font-weight:600;margin-bottom:3px}.service-info p{font-size:12px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.service-badge{display:inline-block;padding:2px 10px;border-radius:10px;font-size:11px;font-weight:500;background:#f3f4f6;color:#888;white-space:nowrap}
.active-badge{background:#dcfce7;color:#16a34a}
@media(max-width:640px){.service-menu{grid-template-columns:1fr}}

.footer{background:#1a1d2e;color:#999;padding:32px 24px}
.footer-content{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr;gap:40px;margin-bottom:20px}
.footer-col h4{color:#fff;font-size:15px;margin-bottom:8px}
.footer-col p,.footer-col a{font-size:13px;line-height:2;display:block;color:#999}
.footer-bottom{max-width:1120px;margin:0 auto;padding-top:12px;border-top:1px solid #333;font-size:12px;text-align:center}

.auth-container{max-width:440px;margin:80px auto;padding:0 16px}
.auth-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:40px 32px}
.auth-header{text-align:center;margin-bottom:28px}.auth-header h2{font-size:22px;font-weight:700;margin-bottom:8px}.auth-header p{font-size:14px;color:#888}

.form-group{margin-bottom:16px}.form-group label{display:block;font-size:13px;font-weight:600;color:#444;margin-bottom:6px}
.form-group input,.form-group textarea,.form-group select{width:100%;padding:9px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;font-family:inherit;background:#fff}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#4f6ef7;box-shadow:0 0 0 3px rgba(79,110,247,.1)}
.form-group textarea{resize:vertical}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:480px){.form-row{grid-template-columns:1fr}}
.form-section{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:24px;margin-bottom:16px}
.form-section h3{font-size:16px;font-weight:600;margin-bottom:12px}
.toggle-section{cursor:pointer;user-select:none;display:flex;align-items:center;gap:4px}.toggle-section:hover{color:#4f6ef7}
.required{color:#ef4444}
.form-error{color:#ef4444;font-size:13px;margin-bottom:12px;min-height:20px}

.page-header{display:flex;align-items:center;justify-content:space-between;padding:32px 24px 24px;max-width:1120px;margin:0 auto}
.page-header h1{font-size:24px;font-weight:700}
.page-header-actions{display:flex;gap:8px}
@media(max-width:640px){.page-header{flex-direction:column;gap:12px;align-items:flex-start}}

.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:1120px;margin:0 auto 24px;padding:0 24px}
.stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px 24px}
.stat-value{font-size:32px;font-weight:800;color:#4f6ef7}
.stat-card-mr{background:#fafbff;border-color:#dde1f8}
.stat-card-mr .stat-value{color:#6b7df7}
@media(max-width:480px){.stats-row{grid-template-columns:1fr}}

.status-badge{display:inline-block;padding:2px 10px;border-radius:10px;font-size:12px;font-weight:500}
.status-pending{background:#fef3c7;color:#92400e}
.status-processing{background:#dbeafe;color:#1e40af;animation:pulse 2s infinite}
.status-completed{background:#dcfce7;color:#16a34a}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.7}}

.mini-progress{width:80px;height:6px;background:#e5e7eb;border-radius:3px;display:inline-block;vertical-align:middle;margin-right:4px}
.mini-bar{height:100%;background:#4f6ef7;border-radius:3px;transition:width .5s}

.table-wrap{max-width:1120px;margin:0 auto;padding:0 24px 48px;overflow-x:auto}
.data-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}
.data-table th{background:#f9fafb;padding:11px 14px;font-size:12px;font-weight:600;color:#666;text-align:left;text-transform:uppercase;letter-spacing:.5px}
.data-table td{padding:12px 14px;font-size:13px;border-top:1px solid #f0f1f5}
.data-table .empty-msg{text-align:center;color:#aaa;padding:40px}

.modal-overlay{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.4);z-index:200}
.modal-window{background:#fff;border-radius:8px;max-width:640px;width:90%;max-height:85vh;overflow-y:auto;box-shadow:0 8px 32px rgba(0,0,0,.15)}
.modal-lg{max-width:720px}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e5e7eb}
.modal-header h3{font-size:18px;font-weight:700}
.modal-close{background:none;border:none;font-size:24px;cursor:pointer;color:#888;line-height:1}.modal-close:hover{color:#333}
.modal-body{padding:24px}

.prog-overview{padding:20px;background:#f9fafb;border-radius:8px;margin-bottom:16px;text-align:center}
.prog-pct{font-size:48px;font-weight:800;color:#4f6ef7;margin-bottom:8px}
.prog-bar-wrap{height:10px;background:#e5e7eb;border-radius:5px;margin-bottom:8px;overflow:hidden}
.prog-bar{height:100%;background:linear-gradient(90deg,#4f6ef7,#818cf8);border-radius:5px;transition:width 1s}
.prog-meta{font-size:12px;color:#888}
.prog-platforms{max-height:350px;overflow-y:auto}
.prog-row{display:flex;align-items:center;gap:12px;padding:8px 10px;border-bottom:1px solid #f0f1f5}
.prog-row-info{display:flex;flex-direction:column;width:160px;min-width:160px}
.prog-name{font-size:13px;font-weight:600;color:#1a1d2e}
.prog-step{font-size:11px;color:#888}
.prog-row-bar{flex:1;height:6px;background:#e5e7eb;border-radius:3px;overflow:hidden}
.prog-fill{height:100%;background:#22c55e;border-radius:3px;transition:width 1s}
.prog-num{font-size:12px;font-weight:600;color:#555;width:40px;text-align:right}

.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}
.detail-row{display:flex;flex-direction:column;gap:2px}.detail-row label{font-size:11px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.5px}.detail-row span{font-size:14px;color:#1a1d2e;word-break:break-all}
.detail-section{margin-bottom:16px}.detail-section h4{font-size:14px;font-weight:600;margin-bottom:8px}
.detail-section textarea{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;font-family:inherit;resize:vertical}
.backlinks-display{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}
.backlink-item{display:block;padding:6px 10px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:4px;font-size:13px;color:#16a34a;word-break:break-all}
.detail-actions{display:flex;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid #e5e7eb}

.admin-container{max-width:1120px;margin:0 auto 48px;padding:0 24px}
.admin-tabs{display:flex;gap:0;border-bottom:2px solid #e5e7eb;margin-bottom:24px}
.admin-tab{padding:10px 24px;font-size:14px;font-weight:500;color:#888;background:none;border:none;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px}
.admin-tab:hover{color:#1a1d2e}.admin-tab.active{color:#4f6ef7;border-bottom-color:#4f6ef7}
.admin-panel{display:none}.admin-panel.active{display:block}
.admin-form{max-width:640px}
.admin-stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}

.pricing-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;max-width:720px;margin:0 auto 48px;padding:0 24px}
.pricing-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:36px 32px;text-align:center;position:relative}
.pricing-card.featured{border-color:#4f6ef7;box-shadow:0 0 0 1px #4f6ef7}
.featured-tag{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:#4f6ef7;color:#fff;padding:3px 16px;border-radius:10px;font-size:12px;font-weight:600}
.pricing-card h3{font-size:18px;font-weight:600;margin-bottom:16px}
.price{font-size:36px;font-weight:800;color:#1a1d2e;margin-bottom:24px}.price span{font-size:15px;font-weight:400;color:#888}
.pricing-card ul{margin-bottom:28px}.pricing-card li{padding:6px 0;font-size:14px;color:#555}.pricing-card li::before{content:"â ";color:#22c55e;font-weight:700;margin-right:4px}
@media(max-width:640px){.pricing-grid{grid-template-columns:1fr}}

.view{display:none}.view.active{display:block}
#toastContainer{position:fixed;top:72px;right:24px;z-index:300;display:flex;flex-direction:column;gap:8px}
.toast{padding:12px 20px;border-radius:8px;font-size:14px;color:#fff;animation:toastIn .3s ease;max-width:360px;box-shadow:0 4px 16px rgba(0,0,0,.12)}
.toast-success{background:#22c55e}.toast-error{background:#ef4444}.toast-info{background:#4f6ef7}
@keyframes toastIn{from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:translateX(0)}}
.icon-sm{width:16px;height:16px}
.spinner{display:inline-block;width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.server-info-bar{max-width:1120px;margin:0 auto 20px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:14px 24px;gap:8px}
.server-info-item{display:flex;align-items:center;gap:10px;min-width:0}
.server-info-icon{width:36px;height:36px;min-width:36px;background:#f0fdf4;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#16a34a}
.server-info-text{display:flex;flex-direction:column;min-width:0}
.server-info-label{font-size:11px;color:#888;white-space:nowrap}
.server-info-value{font-size:14px;font-weight:700;color:#1a1d2e;white-space:nowrap}
.server-info-sub{font-size:11px;color:#999;white-space:nowrap}
.server-info-divider{width:1px;height:36px;background:#e5e7eb;flex-shrink:0}
@media(max-width:768px){.server-info-bar{flex-wrap:wrap;gap:6px;padding:12px 16px}.server-info-divider{display:none}.server-info-item{flex:1 1 45%}}

/* Service Pages */
.service-page{max-width:1120px;margin:0 auto;padding:0 24px 48px}
.service-hero{text-align:center;padding:48px 24px 40px}
.service-hero-icon{width:64px;height:64px;margin:0 auto 16px;background:#eff6ff;border-radius:16px;display:flex;align-items:center;justify-content:center;color:#4f6ef7}
.service-hero h1{font-size:32px;font-weight:800;color:#1a1d2e;margin:0 0 12px}
.service-hero-desc{font-size:16px;color:#666;max-width:640px;margin:0 auto 24px;line-height:1.7}
.service-hero-stats{display:flex;justify-content:center;gap:40px;margin-top:24px}
.service-stat{text-align:center;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#888}
.service-stat-num{font-size:24px;font-weight:800;color:#1a1d2e}
.service-body{padding-top:8px}
.service-features h2{font-size:20px;font-weight:700;color:#1a1d2e;margin-bottom:20px;text-align:center}
.feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:40px}
.feature-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:24px;display:flex;flex-direction:column;gap:8px}
.feature-card i{color:#4f6ef7;width:28px;height:28px}
.feature-card h3{font-size:15px;font-weight:600;color:#1a1d2e;margin:0}
.feature-card p{font-size:13px;color:#777;line-height:1.6;margin:0}
.service-cta{text-align:center;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:40px 24px}
.service-cta h2{font-size:20px;font-weight:700;color:#1a1d2e;margin:0 0 8px}
.service-cta p{font-size:14px;color:#888;margin:0 0 20px}
.service-cta .btn{padding:12px 36px}
@media(max-width:640px){
  .service-hero h1{font-size:24px}
  .service-hero-desc{font-size:14px}
  .service-hero-stats{gap:24px}
  .feature-grid{grid-template-columns:1fr}
  .service-cta{padding:28px 16px}
}
.qr-status{padding:8px 16px;border-radius:6px;font-size:14px;font-weight:600;display:inline-block}
.qr-waiting{background:#fef3c7;color:#d97706}
.qr-success{background:#d1fae5;color:#059669}
.qr-fail{background:#fee2e2;color:#dc2626}
.code-row{display:flex;gap:8px}.code-row input{flex:1;min-width:0}.code-row .btn{flex-shrink:0;white-space:nowrap;padding:8px 14px;font-size:13px}
/* Push result display */
.mr-response {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}
/* Detail: summary bar */
.detail-summary {
  display: flex;
  gap: 24px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #555;
  flex-wrap: wrap;
}
.detail-summary b { color: #1a1d2e; font-weight: 700; }

/* Platform progress table */
.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.platform-table th {
  text-align: left;
  padding: 8px 10px;
  background: #f1f5f9;
  color: #555;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
}
.platform-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #f1f5f9;
}
.platform-table tr:hover td { background: #fafbfc; }
.platform-step {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}

/* Push result display */
.mr-response {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}
/* Stats cards for traffic/video */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stats-card-item {
  background: linear-gradient(135deg, #f0f9ff, #ecfdf5);
  border: 1px solid #d1fae5;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.stats-card-num {
  font-size: 28px;
  font-weight: 800;
  color: #059669;
  line-height: 1.2;
}
.stats-card-label {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}
/* Price preview in service form */
.price-preview {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.price-cost { font-size: 14px; color: #92400e; }
.price-cost b { font-size: 18px; color: #dc2626; }
.price-balance { font-size: 12px; color: #888; }
/* Round banner */
.round-banner {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.round-badge {
  background: rgba(255,255,255,0.2);
  font-size: 20px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 6px;
  white-space: nowrap;
}
.round-info {
  font-size: 14px;
  opacity: 0.9;
}
/* Modal styles */
.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:9999;display:flex;align-items:center;justify-content:center}
.modal-box{background:#fff;border-radius:12px;width:90%;max-width:520px;max-height:80vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,0.3)}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e2e8f0}
.modal-header h3{margin:0;font-size:16px;font-weight:600}
.modal-close-btn{background:none;border:none;font-size:24px;cursor:pointer;color:#94a3b8;padding:0;line-height:1}
.modal-close-btn:hover{color:#334155}
.modal-body{padding:20px}