:root {
  --bg: #08080c;
  --surface: rgba(20, 20, 27, 0.9);
  --surface-2: #191922;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f4f6;
  --muted: #9ca3af;
  --primary: #e50914;
  --primary-hover: #f6121d;
  --success: #22c55e;
  --error: #ef4444;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 8%, rgba(229, 9, 20, 0.16), transparent 42%),
    radial-gradient(circle at 85% 82%, rgba(229, 9, 20, 0.09), transparent 40%);
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}

.topbar {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(8, 8, 12, 0.8);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.brand-name { font-size: 16px; letter-spacing: 0.4px; }

.support-nav { display: flex; gap: 8px; flex-wrap: wrap; }

.support-link {
  text-decoration: none;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: 0.2s;
}

.support-link:hover { border-color: var(--primary); color: #fff; }

.main-content {
  flex: 1;
  padding-top: 28px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(120, 8, 16, 0.52), rgba(20, 20, 27, 0.95));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.watermark {
  position: absolute;
  right: -14px;
  bottom: -44px;
  font-size: 220px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  line-height: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

h1 { font-size: 30px; font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
h2 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
h3 { font-size: 17px; font-weight: 700; }

.subtitle { color: var(--muted); font-size: 14px; }

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #ff6b72;
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.pill-dark {
  color: var(--muted);
  background: var(--surface-2);
  border-color: var(--border);
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin: 12px 0 6px;
}

.input-with-paste {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select {
  width: 100%;
  background: #101016;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: 0.2s;
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.btn-paste {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-paste:hover { border-color: var(--primary); }

.btn-primary, .btn-secondary, .btn-ghost {
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 13px 20px;
  font-size: 15px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 13px;
}

.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.3); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 11px;
  font-size: 12px;
}

.btn-ghost:hover { color: #fff; border-color: var(--primary); }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }
.btn-full { width: 100%; }

.hint-text { margin-top: 10px; font-size: 12px; color: var(--muted); }
.hidden { display: none !important; }

.steps-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  font-size: 12px;
  font-weight: 800;
  color: #ff6b72;
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: 8px;
  padding: 4px 8px;
}

.step-mini strong { display: block; font-size: 14px; margin-bottom: 2px; }
.step-mini p { font-size: 12px; color: var(--muted); }

.alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.alert-info {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #bfdbfe;
  margin-bottom: 14px;
}

.result-dashboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stats-banner {
  background: linear-gradient(135deg, rgba(16, 78, 52, 0.55), rgba(14, 38, 29, 0.85));
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 16px;
  padding: 16px 18px;
}

.stats-banner-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}

.stats-refresh {
  background: none;
  border: none;
  color: #a7f3d0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.stats-refresh:hover { color: #fff; }

.stats-plan-tag {
  color: #ecfdf5;
  font-weight: 700;
  font-size: 13px;
}

.muted-sep { opacity: 0.5; margin: 0 4px; }

.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-tile {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
}

.stat-tile-label {
  font-size: 11.5px;
  color: #a7f3d0;
  margin-bottom: 6px;
}

.stat-tile-val {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.stat-tile-val small {
  font-size: 13px;
  font-weight: 600;
  color: #d1fae5;
}

.result-subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.status-pill-ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
}

.result-3col {
  display: grid;
  grid-template-columns: 220px 1fr 290px;
  gap: 14px;
  align-items: start;
}

.result-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: var(--muted);
  padding-left: 4px;
}

.device-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.device-nav-btn {
  width: 100%;
  background: #14141b;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: 0.18s;
}

.device-nav-btn:hover { border-color: rgba(255, 255, 255, 0.25); }

.device-nav-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.35);
}

.device-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-nav-left strong { display: block; font-size: 13.5px; }
.device-nav-left span { display: block; font-size: 11px; opacity: 0.8; }

.repair-box {
  width: 100%;
  background: #14141b;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.repair-box:hover { border-color: var(--primary); }
.repair-icon { font-size: 16px; color: var(--muted); }
.repair-box strong { display: block; font-size: 12.5px; }
.repair-box span { display: block; font-size: 11px; color: var(--muted); }

.access-card {
  background: linear-gradient(160deg, rgba(160, 12, 22, 0.45), rgba(20, 20, 27, 0.95));
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 14px;
  padding: 14px;
}

.access-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fca5a5;
  margin-bottom: 6px;
}

.access-brand span:first-child {
  background: var(--primary);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.access-plan {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.access-meta {
  font-size: 11.5px;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.result-center {
  padding: 20px;
}

.center-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.center-device-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.center-device-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.center-url-preview {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.center-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.center-guide-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: var(--muted);
  margin-bottom: 14px;
}

.center-guide-body {
  display: flex;
  gap: 18px;
  align-items: center;
}

.center-guide-illus {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: #e5e7eb;
  flex-shrink: 0;
}

.center-guide-steps {
  font-size: 13.5px;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-panel {
  background: rgba(26, 22, 16, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 16px;
  padding: 16px;
}

.notice-head {
  font-size: 14px;
  font-weight: 700;
  color: #fcd34d;
  margin-bottom: 4px;
}

.notice-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  color: #e5e7eb;
}

.notice-box-warn {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 8px 10px;
  border-radius: 9px;
  color: #fde68a;
}

.notice-box-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 10px;
  border-radius: 9px;
  color: #fca5a5;
}

@media (max-width: 960px) {
  .result-3col { grid-template-columns: 1fr; }
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .center-guide-body { flex-direction: column; align-items: flex-start; }
}

.guide-section { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.guide-header h2 { font-size: 26px; font-weight: 800; }

.device-tabs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.device-tab {
  text-decoration: none;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.device-tab.active, .device-tab:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(229, 9, 20, 0.14);
}

.guide-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.guide-card { display: flex; flex-direction: column; gap: 12px; }

.guide-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-badge {
  background: rgba(229, 9, 20, 0.16);
  color: #ff6b72;
  border: 1px solid rgba(229, 9, 20, 0.35);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 8px;
}

.guide-note {
  font-size: 13px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 10px 12px;
  border-radius: 10px;
}

.guide-steps {
  padding-left: 18px;
  font-size: 13.5px;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-trouble {
  font-size: 12.5px;
  color: var(--muted);
}

.video-box {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.video-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.video-part-tabs { display: flex; gap: 6px; }

.part-tab {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.part-tab.active {
  background: rgba(229, 9, 20, 0.18);
  color: #fff;
  border-color: var(--primary);
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #050507;
  border: 1px solid var(--border);
  transition: max-width 0.2s, aspect-ratio 0.2s;
}

.video-wrapper.landscape {
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe { width: 100%; height: 100%; border: 0; }

.video-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}

.faq-card { padding: 16px 22px; }

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-admin { color: var(--muted); text-decoration: none; }
.footer-admin:hover { color: #fff; }

@media (max-width: 860px) {
  .hero-grid, .guide-grid-2, .steps-strip {
    grid-template-columns: 1fr;
  }
}
