/* ============================================================
   Wallet Brief — PHP edition
   Dark navy editorial: #0a1525 / cards #0b1627 / #193341 lines
   accents: cyan #66f0df · blue #7db2ff · violet #a88cff
   ============================================================ */

:root {
  --bg: #0a1525;
  --bg-2: #0b1627;
  --card: #0e1b2e;
  --line: #193341;
  --line-2: #22384e;
  --cyan: #66f0df;
  --blue: #7db2ff;
  --violet: #a88cff;
  --text: #e9f1f7;
  --text-2: #9db3c4;
  --text-3: #688299;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue',
          'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', 'Noto Sans',
          'Noto Sans Japanese', 'Noto Sans Thai', Arial, sans-serif;
  --mono: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: 1280px; }

.mono, .mono-kicker { font-family: var(--mono); }

.kicker {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}

.mono-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 10px;
}

.grad {
  background: linear-gradient(90deg, var(--cyan), var(--blue) 45%, var(--violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============ Header ============ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 21, 37, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 26px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-size: 17px; font-weight: 400; letter-spacing: .01em; color: var(--text-2); }
.brand-word b { font-weight: 800; color: var(--text); }

.main-nav { display: flex; align-items: center; gap: 2px; }

.nav-link {
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  padding: 8px 13px; border-radius: 9px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--cyan); background: rgba(102, 240, 223, .06); }

.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang-pills { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-pills .pill {
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  color: var(--text-3); transition: color .15s, background .15s;
}
.lang-pills .pill:hover { color: var(--cyan); }
.lang-pills .pill.active { color: #0b1627; background: var(--cyan); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ============ Buttons ============ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14.5px; border-radius: 10px;
  padding: 13px 26px; border: 1px solid transparent;
  transition: transform .1s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

.btn-primary { background: var(--cyan); color: #0b1627; }
.btn-primary:hover { background: #8ff5e8; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.text-link { display: inline-block; margin-top: 26px; font-size: 14px; font-weight: 700; color: var(--cyan); }
.text-link:hover { color: #8ff5e8; }

/* ============ Hero ============ */

.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(760px 400px at 82% -12%, rgba(168, 140, 255, .14), transparent 62%),
    radial-gradient(700px 380px at 8% 108%, rgba(102, 240, 223, .10), transparent 60%),
    var(--bg);
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.12;
}

.hero-desc { font-size: 16.5px; color: var(--text-2); max-width: 34em; margin: 20px 0 30px; }

.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }

.hero-meta { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--text-3); }

/* ============ Sections ============ */

.section { padding: 66px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-title { font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; letter-spacing: -.015em; }
.sec-title-lg { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; letter-spacing: -.015em; margin-bottom: 30px; }
.sec-sub { font-size: 14.5px; color: var(--text-2); margin: 8px 0 32px; }

/* USDT cards */
.usdt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }

.usdt-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color .2s, transform .2s;
}
.usdt-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.usdt-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.usdt-card:nth-child(1) h3 { color: var(--cyan); }
.usdt-card:nth-child(2) h3 { color: var(--blue); }
.usdt-card:nth-child(3) h3 { color: var(--violet); }
.usdt-card p:not(.mono-kicker) { font-size: 13.5px; color: var(--text-2); }

/* Topics */
.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.topic-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s, transform .2s;
}
.topic-card:hover { border-color: var(--violet); transform: translateY(-3px); }
.topic-card h3 { font-size: 15.5px; font-weight: 700; }
.topic-count { font-size: 11.5px; color: var(--text-3); letter-spacing: .06em; }

/* Latest */
.latest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }

.latest-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .2s;
}
.latest-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.latest-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.latest-card p { font-size: 13.5px; color: var(--text-2); }

/* Search row */
.search-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }

.search-input {
  flex: 1; min-width: 240px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 11px 16px; font-size: 14px; color: var(--text); outline: none;
  transition: border-color .15s;
}
.search-input:focus { border-color: var(--cyan); }
.search-input::placeholder { color: var(--text-3); }

.search-note { font-size: 12px; color: var(--text-3); }

/* Guides grid */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .2s;
}
.guide-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.guide-card.hidden { display: none; }

.guide-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.guide-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--violet); border: 1px solid rgba(168, 140, 255, .4);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.guide-date { font-size: 11px; color: var(--text-3); }

.guide-card h3 { font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.guide-ex {
  font-size: 13px; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-read { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--cyan); }

.search-empty { margin-top: 22px; text-align: center; font-size: 14px; color: var(--text-3); }

/* ============ Article ============ */

.article { padding: 64px 22px 72px; max-width: 760px; }

.art-head { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 30px; }

.art-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.art-meta .mono { font-size: 12px; color: var(--text-3); }

.article h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }

.art-lead { margin-top: 16px; font-size: 17px; color: var(--text-2); }

.art-points ul { list-style: none; }
.art-points li {
  font-size: 15px; color: var(--text);
  padding: 15px 4px 15px 30px; position: relative;
  border-bottom: 1px solid var(--line);
}
.art-points li::before {
  content: ""; position: absolute; left: 2px; top: 24px;
  width: 14px; height: 2px; background: var(--cyan); border-radius: 2px;
}

.art-takeaway {
  margin: 34px 0;
  background: linear-gradient(135deg, rgba(102, 240, 223, .08), rgba(168, 140, 255, .08));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 22px 24px;
}
.art-takeaway p { font-size: 16.5px; font-weight: 700; color: var(--text); }

.art-more { margin-top: 40px; }
.art-more h2 { font-size: 19px; font-weight: 800; margin-bottom: 16px; }

.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.more-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; display: flex; flex-direction: column; gap: 9px;
  transition: border-color .2s;
}
.more-card:hover { border-color: var(--blue); }
.more-card h3 { font-size: 13.5px; font-weight: 700; line-height: 1.5; }

/* ============ Footer ============ */

.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 46px 0 26px; }

.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.f-tagline { font-size: 14px; color: var(--text-2); }

.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.f-links { display: flex; gap: 20px; flex-wrap: wrap; }
.f-links a { font-size: 12.5px; color: var(--text-3); }
.f-links a:hover { color: var(--cyan); }
.f-legal { font-size: 12px; color: var(--text-3); max-width: 46em; }

/* ============================================================
   Bot verification overlay (10 s) — navy style
   ============================================================ */

.bot-verify {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 13, 24, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  transition: opacity .45s ease;
}
.bot-verify.hidden { opacity: 0; pointer-events: none; }

.bv-card {
  width: min(400px, 100%);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 30px 30px 22px; text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  animation: bv-pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes bv-pop { from { transform: scale(.85) translateY(18px); opacity: 0; } }

.bv-robot { width: 108px; margin: 0 auto 6px; }
.bv-antenna { animation: bv-blink 1.1s infinite; }
@keyframes bv-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.bv-eyes { animation: bv-look 3.2s ease-in-out infinite; }
@keyframes bv-look { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(4px); } 75% { transform: translateX(-4px); } }

.bv-card h2 { font-size: 18px; font-weight: 800; color: var(--text); }

.bv-sub { font-size: 13.5px; color: var(--text-2); margin: 6px 0 20px; }

.bv-checkrow {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--card); padding: 12px 16px; margin-bottom: 20px;
}

.bv-checkbox {
  width: 24px; height: 24px; border: 2px solid var(--line-2);
  border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  flex: none; background: var(--bg-2); transition: background .25s, border-color .25s;
}
.bv-check { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .25s; }
.bv-checkbox.checked { background: var(--cyan); border-color: var(--cyan); }
.bv-checkbox.checked .bv-check { opacity: 1; transform: scale(1); }

.bv-check-label { font-size: 14px; font-weight: 600; color: var(--text); text-align: left; flex: 1; }

.bv-logo-mini { width: 20px; height: 20px; color: var(--cyan); }

.bv-progress { height: 8px; border-radius: 999px; background: var(--card); overflow: hidden; }
.bv-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
  border-radius: inherit; transition: width .2s linear;
}

.bv-status { margin-top: 12px; font-size: 13px; color: var(--text-2); min-height: 1.5em; }
#bv-pct { font-family: var(--mono); color: var(--cyan); }

.bv-done { margin: 4px 0 10px; }
.bv-done-icon { width: 58px; height: 58px; margin: 2px auto 8px; display: block; }
.bv-done-icon circle { stroke: var(--cyan); }
.bv-done-icon path { stroke: var(--cyan); animation: bv-draw .5s .1s ease-out both; }
@keyframes bv-draw { from { stroke-dasharray: 60; stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.bv-done-title { font-size: 16px; font-weight: 800; color: var(--text); }
.bv-done-welcome { font-size: 13.5px; color: var(--text-2); }

.bv-brand {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3);
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px;
}

/* ============ Responsive ============ */

@media (max-width: 1024px) {
  .usdt-grid, .guides-grid { grid-template-columns: 1fr 1fr; }
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .more-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px 22px 18px;
  }
  .main-nav.open { display: flex; }
  .latest-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .usdt-grid, .guides-grid, .topics-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
