
:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --border: #dadce0;
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --grad: linear-gradient(135deg, #4285f4, #7b61ff, #a142f4);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 24px 20px 40px; }
.top {
  position: sticky; top: 0; z-index: 100;
  height: 60px;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 600; letter-spacing: -.3px; color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .domain { color: var(--primary); }
.sparkle {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.top-actions { display: flex; gap: 8px; align-items: center; }
.top-actions a {
  color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 20px;
  transition: background .2s, color .2s;
}
.top-actions a:hover { background: #f1f3f4; color: var(--text); text-decoration: none; }
.top-actions .badge {
  background: #e8f0fe; color: var(--primary);
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.top-actions .badge:hover { background: #dbe7fb; }
.draft {
  background: #fff8e1; border: 1px solid #f9d97a; color: #7a5b00;
  border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px;
}
.draft code { background: #fff3c4; padding: 1px 5px; border-radius: 4px; }
.doc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px; box-shadow: 0 4px 20px rgba(32,33,36,.08);
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.doc-head {
  display: grid; grid-template-columns: 48px 1fr 48px;
  align-items: center; gap: 8px; margin: 0 0 24px;
}
.doc-heading { text-align: center; min-width: 0; }
.doc-heading h1 { margin: 0 0 6px; }
.doc-heading .updated { margin: 0; }
.doc-side { display: flex; align-items: center; }
.doc-side-right { justify-content: flex-end; }
.doc-side a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; text-decoration: none;
  transition: transform .2s, opacity .2s;
}
.doc-side a:hover { transform: scale(1.1); opacity: .85; text-decoration: none; }
.doc-side svg { width: 34px; height: 34px; display: block; }
.doc-nav-prev svg { transform: translateX(-2px); }
.doc-nav-next svg { transform: translateX(2px); }
.doc h1 { font-size: 28px; font-weight: 700; letter-spacing: -.4px; line-height: 1.3; margin: 0 0 6px; }
.updated { font-size: 13px; color: var(--muted); margin: 0 0 26px; }
.doc h2 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.doc p { margin: 0 0 10px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 4px; }
.req { margin: 18px 0 0; }
.req > div {
  display: grid; grid-template-columns: 220px 1fr; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.req dt { color: var(--muted); font-size: 14px; }
.req dd { margin: 0; font-weight: 500; word-break: break-word; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0 6px; }
.contact-card { border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: #fbfcfe; }
.contact-card .label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.contact-card .value { font-size: 16px; font-weight: 600; word-break: break-word; }
.note { background: #f1f6ff; border: 1px solid #d7e5ff; border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-top: 18px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pay-methods span {
  background: #f1f3f4; border: 1px solid var(--border); border-radius: 10px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.doc-list { list-style: none; padding: 0; margin: 18px 0 0; }
.doc-list li { border-bottom: 1px solid var(--border); padding: 14px 0; }
.doc-list a { font-size: 16px; font-weight: 600; }
.doc-list span { display: block; color: var(--muted); font-size: 14px; }
.footer {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 24px; color: var(--muted); font-size: 12px;
  margin-top: 32px; border-top: 1px solid var(--border);
}
.footer a { color: inherit; text-decoration: none; }
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2px 4px; margin-bottom: 4px;
}
.footer-links > a {
  padding: 6px 11px; border-radius: 16px;
  font-size: 12px; font-weight: 500; color: var(--muted);
  transition: background .2s, color .2s;
}
.footer-links > a:hover { background: #f1f3f4; color: var(--text); text-decoration: none; }
.footer-legal {
  display: inline-flex; align-items: center; gap: 5px;
  background: #e8f0fe; color: var(--primary) !important;
}
.footer-legal svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }
.footer-legal:hover { background: #dbe7fb !important; color: var(--primary) !important; }
.footer-copy { font-size: 11px; margin: 0; }
.support-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(32,33,36,.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.support-overlay[hidden] { display: none; }
.support-modal {
  position: relative;
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
  padding: 32px 28px 24px;
  animation: supportIn .25s ease;
}
@keyframes supportIn { from { transform: scale(.95) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.support-modal h3 { font-size: 20px; font-weight: 600; text-align: center; margin: 0 0 4px; }
.support-sub { color: var(--muted); text-align: center; font-size: 13px; margin-bottom: 20px; }
.support-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: #f1f3f4; color: var(--muted); font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.support-close:hover { background: #e8eaed; }
.support-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 12px;
}
.support-icon {
  width: 40px; height: 40px; border-radius: 50%; background: #e8f0fe;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.support-icon svg { width: 20px; height: 20px; fill: var(--primary); }
.support-info { flex: 1; min-width: 0; }
.support-label { font-size: 12px; color: var(--muted); }
.support-value { font-size: 14px; font-weight: 600; color: var(--text); word-break: break-all; }
.support-btn {
  flex-shrink: 0; background: var(--primary); color: #fff;
  text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 22px;
  transition: background .2s, transform .2s;
}
.support-btn:hover { background: var(--primary-dark); transform: translateY(-1px); text-decoration: none; }
@media (max-width: 600px) {
  .support-overlay { padding: 12px; align-items: flex-end; }
  .support-modal { padding: 28px 20px 24px; border-radius: 20px 20px 0 0; max-height: 92vh; }
}
@media (max-width: 720px) {
  .doc { padding: 24px 18px; border-radius: 14px; }
  .doc h1 { font-size: 22px; }
  .doc h2 { font-size: 16px; }
  .req > div { grid-template-columns: 1fr; gap: 2px; }
  .wrap { padding: 18px 14px 32px; }
  .doc-head { grid-template-columns: 40px 1fr 40px; gap: 4px; }
  .doc-side a { width: 40px; height: 40px; }
  .doc-side svg { width: 28px; height: 28px; }
}
@media (max-width: 600px) {
  .top { height: 54px; padding: 0 14px; }
  .brand { font-size: 17px; }
}
@media (max-width: 400px) {
  .top { padding: 0 10px; }
  .brand { font-size: 15px; }
  .brand .sparkle { width: 22px; height: 22px; }
  .top-actions a { padding: 6px 8px; font-size: 12px; }
  .top-actions .badge { padding: 4px 10px; font-size: 11px; }
}
@media print {
  body { background: #fff; }
  .top, .draft, .footer { display: none; }
  .doc { border: none; box-shadow: none; padding: 0; }
}
