﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   Product Support — bold blue consumer UI
   Bright blue accent, near-black actions, green check marks
   ============================================================ */

:root {
  --bg: #f4f7ff;
  --surface: #ffffff;
  --surface-2: #f7f9ff;
  --surface-3: #eef3fb;
  --surface-ink: #050d18;
  --border: #e2e9f4;
  --border-strong: #cdd9ea;
  --text: #040d18;
  --text-2: #4a5568;
  --text-3: #6b7685;
  --primary: #0057fc;
  --primary-hover: #0043c4;
  --primary-soft: #e9f0ff;
  --accent: #0057fc;
  --accent-soft: #e9f0ff;
  --ring: rgba(0, 87, 252, 0.18);
  --success: #16a34a;
  --success-soft: #eaf9ef;
  --success-border: #c8efd6;
  --danger: #b3261e;
  --danger-soft: #fdf3f2;
  --danger-border: #f2d3d0;

  --font: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 24, 26, 0.04), 0 10px 30px -18px rgba(23, 24, 26, 0.18);
  --shadow-md: 0 1px 2px rgba(23, 24, 26, 0.05), 0 18px 44px -20px rgba(23, 24, 26, 0.24);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page-h5,
.page-h5 button,
.page-h5 input,
.page-h5 textarea {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { letter-spacing: -0.015em; }
::selection { background: #dbe7ff; color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Generic logo mark */
.brand-mark {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--text);
  flex-shrink: 0;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px solid #f2f8ff;
  border-radius: 2px;
}
.auth-brand .brand-mark,
.home-brand .brand-mark { background: var(--primary); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--surface-ink);
  border-right: 1px solid #182437;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand-mark { background: var(--primary); }
.sidebar .brand-mark::before { border-color: #ffffff; }
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}
.sidebar-brand .brand-text { min-width: 0; }
.sidebar-brand .brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  color: #eef5fc;
}
.sidebar-brand .brand-sub {
  font-size: 12.5px;
  color: #8fa3b8;
  margin-top: 1px;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f93aa;
  padding: 4px 8px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  color: #b7c7d8;
  margin-bottom: 2px;
  transition: background 0.18s, color 0.18s;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85; }
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #eef5fc; }
.nav-item.active {
  background: rgba(0, 87, 252, 0.18);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #4d8dff;
}

.sidebar-foot {
  margin-top: auto;
  padding: 12px 8px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  line-height: 1.6;
  color: #8095ab;
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 58px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.topbar-crumb {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-2);
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-ink);
  color: #eef5fc;
  font-size: 13.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  text-transform: uppercase;
}
.logout-link { font-size: 15px; color: var(--text-3); }
.logout-link:hover { color: var(--text); }

.content {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 28px 48px;
}
.content-narrow { max-width: 880px; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head h1 {
  position: relative;
  padding-left: 14px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.page-head h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.page-head .sub {
  font-size: 15px;
  color: var(--text-3);
  margin-top: 4px;
}
.page-head .head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 16px -10px rgba(0, 87, 252, 0.55);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 10px 22px -12px rgba(0, 87, 252, 0.6);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--surface-2); border-color: #b9ccf0; color: var(--primary); }

.btn-soft {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary-hover);
}
.btn-soft:hover { background: #dbe7ff; color: var(--primary-hover); }

.btn-sm { height: 30px; padding: 0 10px; font-size: 14px; }
.btn-sm svg { width: 13px; height: 13px; }

.btn-danger {
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--danger);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.btn-danger:hover { background: var(--danger-soft); }

.btn-block { width: 100%; }

/* ============================================================
   CARDS / TABLES
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-pad { padding: 24px; }
.card-narrow { max-width: 780px; }
.card-sm { max-width: 520px; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th {
  text-align: left;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f5f8ff; }
td strong { color: var(--text); font-weight: 600; }

.code-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--primary-hover);
  background: var(--primary-soft);
  border: 1px solid #d8e4fb;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}
.cell-muted { color: var(--text-3); font-size: 15px; white-space: nowrap; }
.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.row-actions form { display: inline; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}
.tag-yes { background: var(--success-soft); color: var(--success); }
.tag-no { background: var(--surface-3); color: var(--text-3); }

.empty-state { padding: 56px 24px; text-align: center; }
.empty-state .empty-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.empty-state .empty-icon svg { width: 20px; height: 20px; }
.empty-state h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.empty-state p { font-size: 15px; color: var(--text-3); margin-bottom: 18px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-group > label {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 6px;
}
.form-group > label .required { color: var(--danger); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="file"],
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 15px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:hover,
.form-group textarea:hover { border-color: #b9c9da; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}
.form-group input:disabled {
  color: var(--text-3);
  background: var(--surface-2);
  cursor: not-allowed;
}
.form-group input[type="file"] {
  padding: 7px 10px;
  font-size: 15px;
  cursor: pointer;
}
.form-group input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
}
.form-group textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.form-group .hint {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-3);
  margin-top: 6px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Captcha */
.captcha-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.captcha-line label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.captcha-refresh {
  padding: 0;
  border: none;
  background: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.captcha-refresh:hover { text-decoration: underline; }
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.captcha-row input { flex: 1; min-width: 0; height: 44px; }
.captcha-box {
  width: 132px;
  height: 44px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
}
.captcha-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.section-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin: 0 0 18px;
}
.section-gap { margin-top: 26px; }
.section-note { font-size: 14px; line-height: 1.6; color: var(--text-3); margin-bottom: 16px; }
.inline-link { color: var(--primary); }
.inline-link:hover { text-decoration: underline; }

.current-video-url {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-top: 8px;
  word-break: break-all;
}
.video-preview {
  margin-top: 10px;
  max-width: 400px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.video-preview video { width: 100%; display: block; }

.cover-preview {
  margin-top: 10px;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}
.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Notices */
.notice-panel {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  margin-bottom: 16px;
}
.notice-ok { background: var(--success-soft); border-color: var(--success-border); color: var(--success); }
.notice-err { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger); }

/* Tabs */
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab-btn {
  height: 40px;
  padding: 0;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--text-2); }
.tab-btn.active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   QR PAGE
   ============================================================ */
.page-qr {
  min-height: 100svh;
  background:
    radial-gradient(600px 360px at 84% -8%, #e3edff 0%, rgba(227, 237, 255, 0) 70%),
    var(--bg);
}

.qr-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 16px;
}
.back-link svg { width: 14px; height: 14px; }
.back-link:hover { color: var(--primary); }

.qr-card { text-align: center; padding: 28px 24px 24px; }
.qr-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.qr-card h1 { font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
.qr-card .qr-code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 4px;
}
.qr-frame {
  width: fit-content;
  margin: 20px auto;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.qr-frame img { width: 220px; height: 220px; }
.qr-url {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  word-break: break-all;
  margin-bottom: 18px;
}
.qr-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.qr-tips {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.qr-tips .tips-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.qr-tips ol { margin: 0; padding-left: 18px; }
.qr-tips li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-3);
}

/* ============================================================
   LOGIN
   ============================================================ */
.page-auth {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(600px 360px at 84% -8%, #e3edff 0%, rgba(227, 237, 255, 0) 70%),
    radial-gradient(900px 480px at 50% -12%, #fbfdff 0%, rgba(251, 253, 255, 0) 70%),
    var(--bg);
}
.auth-card {
  width: min(404px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 38px 32px 30px;
  box-shadow: var(--shadow-md);
}
.auth-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 22px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}
.auth-card h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; }
.auth-card .subtitle {
  font-size: 15px;
  color: var(--text-3);
  margin: 4px 0 20px;
}
.auth-card .form-group { margin-bottom: 14px; }
.auth-card .btn { height: 42px; margin-top: 6px; font-size: 14.5px; letter-spacing: 0.12em; }
.auth-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-3);
}

/* ============================================================
   HOME
   ============================================================ */
.page-home {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(600px 360px at 84% -8%, #e3edff 0%, rgba(227, 237, 255, 0) 70%),
    radial-gradient(900px 480px at 50% -12%, #fbfdff 0%, rgba(251, 253, 255, 0) 70%),
    var(--bg);
}
.home-card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 22px;
}
.home-card h1 { font-size: 32px; font-weight: 700; line-height: 1.28; letter-spacing: -0.025em; }
.home-card .intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  margin-top: 10px;
}
.home-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.home-card .btn { height: 40px; }
.home-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-3);
}
.home-foot .foot-meta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   404
   ============================================================ */
.page-404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--bg);
}
.notfound {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 38px 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.notfound .big-code {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.03em;
}
.notfound .big-code span { color: var(--primary); }
.notfound h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 10px; }
.notfound p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-3);
}
.notfound .invalid-code {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-2);
}
.notfound .invalid-code span { color: var(--text-3); font-family: var(--font); margin-right: 6px; }
.notfound .actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

/* ============================================================
   CUSTOMER H5
   ============================================================ */
.page-h5 {
  background:
    radial-gradient(720px 400px at 88% -6%, #e3edff 0%, rgba(227, 237, 255, 0) 70%),
    radial-gradient(760px 420px at 50% -8%, #fbfdff 0%, rgba(251, 253, 255, 0) 72%),
    var(--bg);
}

.h5-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.h5-topbar__inner {
  max-width: 640px;
  margin: 0 auto;
  height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.h5-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
}
.h5-brand .brand-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--primary); }
.h5-brand .brand-mark::before { inset: 8px; }
.h5-brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h5-topbar__link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.h5-topbar__link:hover { color: var(--text); }

.h5-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 18px 24px;
}

.h5-hero { padding: 40px 0 24px; }
.h5-hero .hero-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.h5-hero h1 {
  font-size: 37px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--text);
}
.h5-hero h1 .hl { color: var(--primary); }
.h5-hero .tagline {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  margin-top: 12px;
}
.h5-hero .commitment {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-3);
  margin-top: 12px;
  max-width: 46ch;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.link-arrow svg { width: 13px; height: 13px; }
.link-arrow:hover { color: var(--text); }

.video-intro {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 10px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.video-intro__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}
.video-intro__icon svg { width: 23px; height: 23px; }
.video-intro__body { min-width: 0; }
.video-intro__kicker,
.video-intro__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}
.video-intro__kicker { margin-bottom: 3px; text-align: center; }

.video-shell {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(23, 24, 26, 0.08);
  box-shadow: 0 1px 2px rgba(23, 24, 26, 0.06), 0 24px 48px -28px rgba(23, 24, 26, 0.35);
}
.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.video-shell video[data-cover] { object-fit: contain; }

.video-cta { margin-top: 10px; }
.contact-cta {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-ink);
  border: 1px solid var(--surface-ink);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px -18px rgba(5, 13, 24, 0.7);
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.contact-cta__text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.contact-cta svg { width: 19px; height: 19px; }
.contact-cta__arrow {
  color: inherit;
  transition: transform 0.18s, color 0.18s;
}
.contact-cta:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 28px -16px rgba(0, 87, 252, 0.55);
  transform: translateY(-1px);
}
.contact-cta:hover .contact-cta__arrow { color: #ffffff; transform: translateX(2px); }

.support-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 6px;
}
.support-greeting__avatar {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  background: var(--primary-soft);
  box-shadow: 0 8px 20px -12px rgba(5, 13, 24, 0.45);
}
.support-greeting__copy { min-width: 0; }
.support-greeting__title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.support-greeting__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-3);
}
.support-greeting__status {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}
.contact-card {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 27, 42, 0.04);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s, background 0.18s;
}
.contact-card:hover {
  border-color: #b9ccf0;
  box-shadow: 0 12px 26px -18px rgba(5, 13, 24, 0.28);
  transform: translateY(-1px);
}
.contact-card__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
}
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.contact-card__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-card__value {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-card--email .contact-card__icon {
  background: var(--primary-soft);
  color: var(--primary);
}
.contact-card--email .contact-card__value {
  font-size: 14px;
  letter-spacing: -0.01em;
}
.contact-card--whatsapp .contact-card__icon {
  background: #e7f8ee;
  color: #16a34a;
}
.contact-card--facebook .contact-card__icon {
  background: var(--surface-ink);
  color: #ffffff;
}

.benefit {
  position: relative;
  margin-top: 14px;
  padding: 28px 24px 26px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0, 87, 252, 0.1) 0%, rgba(0, 87, 252, 0) 58%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid #dbe6fb;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 40, 90, 0.07);
  overflow: hidden;
}
.benefit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #0057fc 0%, #4d8dff 48%, #a8c8ff 100%);
}
.benefit-tag {
  position: relative;
  display: flex;
  width: fit-content;
  align-items: center;
  padding: 5px 11px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(0, 87, 252, 0.09);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--primary);
}
.benefit h2 {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0a1b3d;
}
.benefit-desc {
  position: relative;
  margin-top: 10px;
  display: grid;
  gap: 7px;
}
.benefit-desc p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}
.benefit-list {
  position: relative;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.benefit-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e4edfb;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.benefit-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}
.benefit-check svg { width: 14px; height: 14px; }

.h5-form {
  margin-top: 16px;
  padding: 26px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.form-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  text-align: center;
}
.form-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.field { margin-bottom: 16px; }
.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field input:hover { border-color: var(--border-strong); }
.field input:focus { background: var(--surface); }
.field input::placeholder { color: var(--text-3); }
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 18px;
}
.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox-row label {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  height: 50px;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px -16px rgba(0, 87, 252, 0.6);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.submit-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 14px 28px -14px rgba(0, 87, 252, 0.6);
  transform: translateY(-1px);
}
.submit-btn:active { background: #0037a3; transform: translateY(0); }
.submit-btn:disabled {
  background: var(--border-strong);
  border-color: var(--border-strong);
  color: #fdfcf9;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.privacy {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-3);
  text-align: center;
}

.notice {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.notice-success { background: var(--success-soft); border-color: var(--success-border); color: var(--success); }
.notice-error { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger); }

.h5-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--text-3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 10px 16px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .sidebar-brand {
    border-bottom: none;
    padding: 0 12px 0 0;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .sidebar-brand .brand-sub { display: none; }
  .nav-label, .sidebar-foot { display: none; }
  .nav-item {
    margin-bottom: 0;
    padding: 7px 10px;
    font-size: 15px;
    white-space: nowrap;
  }
  .nav-item.active { box-shadow: inset 0 -2px 0 #4d8dff; }
  .nav-item svg { display: none; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 36px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 12px; }

  table { min-width: 0; }
  th, td { padding: 12px 14px; }
  .table-products td strong { white-space: nowrap; }
  .table-products th:nth-child(1),
  .table-products td:nth-child(1),
  .table-products th:nth-child(4),
  .table-products td:nth-child(4),
  .table-submissions th:nth-child(1),
  .table-submissions td:nth-child(1) { display: none; }
}

@media (max-width: 680px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .card-pad { padding: 20px 16px; }
  .h5-hero { padding: 28px 0 18px; }
  .h5-hero h1 { font-size: 31px; }
  .video-intro { padding: 16px 12px; border-radius: 14px; }
  .video-intro__icon { width: 40px; height: 40px; border-radius: 12px; }
  .h5-form { padding: 22px 18px 20px; border-radius: 16px; }
  .benefit { padding: 22px 18px 20px; border-radius: 16px; }
  .benefit h2 { font-size: 21px; }
  .h5-footer { flex-direction: row; align-items: center; justify-content: center; gap: 6px; }
  .home-card { padding: 26px 20px; }
  .home-card h1 { font-size: 26px; }
  .home-foot { flex-direction: column; gap: 6px; }
  .qr-card { padding: 22px 16px 18px; }
  .qr-frame img { width: 200px; height: 200px; }
  .notfound { padding: 30px 20px; }
}

/* ============================================================
   MOTION
   ============================================================ */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.h5-hero,
.video-intro,
.video-shell,
.video-cta,
.support-greeting,
.contact-row,
.benefit,
.h5-form,
.h5-footer {
  animation: rise-in 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.video-intro { animation-delay: 0.04s; }
.video-shell { animation-delay: 0.08s; }
.video-cta { animation-delay: 0.1s; }
.support-greeting { animation-delay: 0.12s; }
.contact-row { animation-delay: 0.14s; }
.benefit { animation-delay: 0.18s; }
.h5-form { animation-delay: 0.22s; }
.h5-footer { animation-delay: 0.28s; }

.auth-card,
.home-card,
.notfound {
  animation: rise-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Print: QR sheet */
@media print {
  body { background: #fff; }
  .back-link, .qr-actions, .qr-tips { display: none !important; }
  .qr-shell { padding: 0; max-width: none; }
  .card { border: none; box-shadow: none; }
}






