/* DiscTimestamp — light tool theme, blurple accent. No dependencies. */
:root {
  --bg: #f4f5fb;
  --surface: #ffffff;
  --ink: #1d2233;
  --muted: #5d6579;
  --line: #e3e6f0;
  --brand: #5865f2;
  --brand-dark: #4752c4;
  --brand-soft: #eceffe;
  --green: #17914f;
  --green-soft: #e3f5ea;
  --chat-bg: #313338;
  --chat-ink: #dbdee1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 35, 70, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-dark); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 26px; min-height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 9px; }
.nav a:hover { color: var(--ink); background: var(--brand-soft); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, #e9edff 0%, var(--bg) 78%); padding: 56px 0 8px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); background: #fff; border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.12; margin: 16px 0 12px; letter-spacing: -.02em; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 18px; max-width: 52ch; }
.steps-mini { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; padding: 0; list-style: none; }
.steps-mini li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; font-weight: 700; }
.steps-mini b { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; align-items: center; justify-content: center; margin-right: 7px; }
.badges { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.badges i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 7px; }
.btn { display: inline-block; background: var(--brand); color: #fff !important; font-weight: 800; text-decoration: none; padding: 13px 26px; border-radius: 12px; border: 0; cursor: pointer; font-size: 16.5px; box-shadow: 0 6px 18px rgba(88, 101, 242, .35); }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: var(--surface); color: var(--brand-dark) !important; border: 1.5px solid var(--brand); box-shadow: none; }
.btn.small { padding: 9px 16px; font-size: 15px; border-radius: 10px; }

/* hero visual: mini chat card */
.hero-visual { min-width: 0; }
.chat { background: var(--chat-bg); color: var(--chat-ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 15px; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid #232428; font-weight: 700; color: #fff; }
.chat-head .hash { color: #949ba4; font-weight: 400; font-size: 20px; }
.chat-body { padding: 14px 16px 18px; }
.msg { display: flex; gap: 12px; padding: 7px 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.msg-meta { font-size: 15px; }
.msg-meta .who { font-weight: 700; color: #fff; }
.msg-meta .when { font-size: 12px; color: #949ba4; margin-left: 7px; }
.msg-text { margin-top: 2px; line-height: 1.5; }
.msg-text .pill { background: #3b3f4a; border-radius: 6px; padding: 1px 7px; font-weight: 600; }
.chat-float { margin: 14px auto -24px; position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 10px 16px; font-size: 14.5px; font-weight: 700; max-width: 320px; text-align: center; }

/* ---------- tool card ---------- */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; margin: 34px 0 8px; }
.tool h2 { margin: 0 0 4px; font-size: 23px; }
.tool .sub { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }
.presets { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { border: 1.5px solid var(--line); background: #fafbff; border-radius: 999px; padding: 8px 15px; font-size: 14.5px; font-weight: 700; color: var(--ink); cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.fld { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: .02em; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; }
input[type="datetime-local"], select {
  width: 100%; font: inherit; font-size: 16.5px; padding: 12px 14px; border-radius: 11px;
  border: 1.5px solid var(--line); background: #fafbff; color: var(--ink); min-width: 0;
}
input:focus, select:focus, button:focus-visible { outline: 3px solid rgba(88, 101, 242, .3); border-color: var(--brand); }
.unix-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #0f1226; color: #c7cdf7; border-radius: 12px; padding: 14px 18px; margin-top: 18px; font-size: 15px; }
.unix-row code { font-size: 20px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.tz-note { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }

/* format rows */
.formats { margin-top: 22px; border-top: 1px solid var(--line); }
.format-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.format-row .fname { font-weight: 800; font-size: 15.5px; }
.format-row .fname small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }
.format-row code { font-size: 14.5px; background: #f1f3fb; border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; overflow-x: auto; white-space: nowrap; }
.copy-btn { border: 1.5px solid var(--brand); background: #fff; color: var(--brand-dark); font-weight: 800; border-radius: 10px; padding: 9px 18px; cursor: pointer; font-size: 15px; font-family: inherit; white-space: nowrap; }
.copy-btn:hover { background: var(--brand-soft); }
.copy-btn.done { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.history { margin-top: 18px; }
.history p { font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 9px; }
.history .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.history .none { color: var(--muted); font-size: 14.5px; }

/* ---------- sections ---------- */
.section { padding: 46px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head h2, .section h2 { font-size: 29px; margin: 0 0 8px; letter-spacing: -.01em; }
.section-head p, .section > .wrap > p { color: var(--muted); margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section.alt .card { background: var(--surface); }
.card .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18.5px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.steps { counter-reset: st; display: grid; gap: 14px; margin-top: 20px; }
.step { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 66px; }
.section.alt .step { background: var(--surface); }
.step::before { counter-increment: st; content: counter(st); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }
table.tbl { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; background: var(--surface); }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tbl th { background: #eef0fb; font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; }
.tbl code { background: #f1f3fb; padding: 2px 8px; border-radius: 6px; font-size: 14px; }
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.guide-card { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: inherit; }
.section.alt .guide-card { background: var(--surface); }
.guide-card:hover { border-color: var(--brand); }
.guide-card h3 { margin: 0 0 8px; font-size: 19px; color: var(--brand-dark); }
.guide-card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 800; cursor: pointer; font-size: 17px; }
.faq details p { color: var(--muted); margin: 10px 0 2px; }

/* article pages */
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 40px 44px; margin: 34px 0; box-shadow: var(--shadow); }
.article h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 0; }
.article h2 { font-size: 24px; margin: 34px 0 10px; }
.article p, .article li { color: #333a4f; }
.article .lead { font-size: 19px; color: var(--muted); }
.note { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; padding: 14px 18px; }
.crumb { font-size: 14.5px; color: var(--muted); margin: 26px 0 0; }
.crumb a { text-decoration: none; }

/* ad slots (hidden automatically when no keys are configured) */
.ad-slot { max-width: 1060px; margin: 26px auto; padding: 0 22px; text-align: center; }
.ad-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #9aa1b5; margin-bottom: 6px; }
.ad-in { display: flex; justify-content: center; }
.ad-in iframe { max-width: 100%; }

/* footer */
.site-footer { background: #1d2233; color: #c3c9dc; margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 44px 0 10px; }
.site-footer .logo { color: #fff; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c3c9dc; text-decoration: none; font-size: 15.5px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.disclaimer { font-size: 13.5px; color: #8d94ab; border-top: 1px solid #333a52; margin-top: 26px; padding-top: 20px; }
.fine { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 26px; font-size: 14px; color: #8d94ab; }

/* error page */
.error-box { text-align: center; padding: 90px 0; }
.error-box h1 { font-size: 90px; margin: 0; color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; }
  .tool { padding: 20px 16px; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .format-row { grid-template-columns: 1fr; gap: 8px; }
  .cards, .guides-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .article { padding: 26px 20px; }
  .nav a { padding: 8px 8px; font-size: 14px; }
}
