:root {
  --blue: #003A70;
  --blue-mid: #062B45;
  --green: #2E5E4E;
  --olive: #6B7F2A;
  --gold: #A6A11A;
  --grad: linear-gradient(90deg, #003A70 0%, #062B45 20%, #2E5E4E 55%, #6B7F2A 80%, #A6A11A 100%);

  --bg: #FFFFFF;
  --bg-soft: #F7F7F5;
  --bg-card: #FFFFFF;
  --border: #E8E4DC;
  --border-lt: #F0EDE8;

  --text: #0A0A0A;
  --text-2: #5A5A5A;
  --text-3: #9B9B9B;

  --font: 'Poppins', sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.11);

  --t: 0.2s ease;

  --tab-h: 64px;
  --top-h: 54px;
  --frame: 620px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: clamp(15px, 4.15vw, 19px);
}

img, video, iframe { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

body {
  font-family: var(--font);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.14; }

#app-top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border-lt);
}

.top-inner {
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.top-brand .dot {
  width: 26px; height: 26px;
  border-radius: var(--r-full);
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff; font-size: 0.8rem;
}

.top-menu {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  font-size: 1.4rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border-lt);
  transition: transform var(--t), background var(--t);
}
.top-menu:active { transform: scale(0.92); }

.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.42);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 95;
  width: min(82vw, 328px);
  background: var(--bg);
  box-shadow: -14px 0 44px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 0.7rem) 1.1rem calc(env(safe-area-inset-bottom, 0px) + 1.2rem);
}
.drawer.open { transform: translateX(0); }

.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-x {
  width: 38px; height: 38px; border-radius: var(--r-full);
  background: var(--bg-soft); border: 1px solid var(--border-lt);
  display: grid; place-items: center; font-size: 1.2rem; color: var(--text-2);
}
.drawer-sub {
  font-size: 0.58rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-3); margin: 0.55rem 0.15rem 1.3rem; font-weight: 500;
}
.drawer-nav { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.drawer-link {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.95rem 0.75rem;
  border-radius: var(--r-md);
  color: var(--text); font-size: 0.95rem; font-weight: 500;
  transition: background var(--t);
}
.drawer-link > i:first-child { font-size: 1.35rem; color: var(--blue); }
.drawer-link .go { margin-left: auto; font-size: 1rem; color: var(--text-3); }
.drawer-link:active { background: var(--bg-soft); }
.drawer-foot { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-lt); }
.drawer-na { display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; color: var(--text-3); }
.drawer-na img { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; }

#view {
  max-width: var(--frame);
  margin: 0 auto;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 1.4rem);
  min-height: calc(100dvh - var(--top-h));
  background: var(--bg);
}

.wrap { padding: 1.15rem; }
.wrap-tight { padding: 0 1.15rem; }

.section-label {
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
  font-weight: 500;
}

.h-sec {
  font-size: clamp(1.35rem, 6vw, 1.8rem);
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.muted { color: var(--text-3); font-size: 0.82rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 20px rgba(0,58,112,0.22); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-ghost-inv { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0.6rem 1.2rem; font-size: 0.64rem; }

.hero {
  position: relative;
  margin: 0.9rem 0.9rem 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 10%, rgba(255,255,255,0.16), transparent 55%);
  z-index: -1;
}
.hero-photo {
  position: absolute;
  right: -6%;
  top: 0;
  height: 78%;
  z-index: -1;
  opacity: 0.96;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
}
.hero-photo img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); }
.hero-body { padding: 1.5rem 1.35rem 1.25rem; }
.hero-eyebrow {
  font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.82); margin-bottom: 0.85rem; font-weight: 500;
}
.hero-title {
  font-size: clamp(2.1rem, 12vw, 3rem);
  line-height: 0.98;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.hero-title .light { display: block; font-weight: 300; opacity: 0.9; font-size: 0.5em; letter-spacing: 0.5px; margin-bottom: 0.2rem; }
.hero-desc { font-size: 0.82rem; color: rgba(255,255,255,0.9); font-weight: 300; max-width: 33ch; }

.thought {
  margin: 1.1rem 0.9rem;
  padding: 1.3rem 1.25rem;
  border-radius: var(--r-lg);
  background: var(--blue-mid);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.thought .lbl { font-size: 0.58rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.thought p { font-size: 0.86rem; font-weight: 300; line-height: 1.65; white-space: pre-line; }

.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-lt);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.skill-grid { display: grid; gap: 0.8rem; }
.skill {
  padding: 1.1rem;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-lt);
}
.skill .ic {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 0.7rem;
}
.skill h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.skill p { font-size: 0.78rem; color: var(--text-2); font-weight: 300; }

.book-row {
  display: flex; gap: 0.85rem; align-items: stretch;
  padding: 0.75rem; margin-bottom: 0.75rem;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.book-row:active { transform: scale(0.985); }
.book-cover {
  width: 68px; flex-shrink: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--grad);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.85); font-size: 1.5rem;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.book-meta h4 { font-size: 0.92rem; margin-bottom: 0.2rem; }
.book-meta .by { font-size: 0.72rem; color: var(--text-3); }
.book-meta .chip { font-size: 0.62rem; color: var(--olive); letter-spacing: 0.5px; margin-top: 0.4rem; }
.book-go { align-self: center; color: var(--text-3); font-size: 1.2rem; padding-right: 0.3rem; }

.list-card {
  display: flex; gap: 0.85rem;
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t);
}
.list-card:active { transform: scale(0.985); }
.list-thumb {
  width: 58px; height: 58px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 1.4rem;
}
.list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.list-body h4 { font-size: 0.9rem; margin-bottom: 0.25rem; }
.list-body p { font-size: 0.76rem; color: var(--text-2); font-weight: 300; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-body .sub { font-size: 0.68rem; color: var(--text-3); }

.video-thumb-wrap { position: relative; width: 92px; height: 58px; flex-shrink: 0; border-radius: var(--r-md); overflow: hidden; background: #000; }
.video-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 34px; height: 34px; border-radius: var(--r-full);
  background: rgba(255,255,255,0.92); color: var(--blue);
  display: grid; place-items: center; font-size: 1rem;
}

.empty {
  text-align: center;
  padding: 3.2rem 1.5rem;
  color: var(--text-3);
}
.empty .ic { font-size: 2.6rem; color: var(--border); margin-bottom: 0.7rem; }
.empty p { font-size: 0.82rem; }

.na-teaser {
  margin: 1.2rem 0.9rem;
  padding: 1.2rem;
  border-radius: var(--r-lg);
  background: var(--blue-mid);
  color: #fff;
  display: flex; align-items: center; gap: 0.9rem;
}
.na-teaser .logo { width: 48px; height: 48px; border-radius: var(--r-md); background: rgba(255,255,255,0.1); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.na-teaser .logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.na-teaser h4 { font-size: 0.92rem; margin-bottom: 0.2rem; }
.na-teaser p { font-size: 0.74rem; color: rgba(255,255,255,0.72); font-weight: 300; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.stat {
  padding: 1rem; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--border-lt); text-align: center;
}
.stat .n { font-size: 1.6rem; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { font-size: 0.64rem; color: var(--text-3); letter-spacing: 0.4px; }

.reader-head {
  padding: 1.1rem 1.15rem 0.6rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.back-btn {
  width: 40px; height: 40px; border-radius: var(--r-full);
  background: var(--bg-soft); border: 1px solid var(--border-lt);
  display: grid; place-items: center; font-size: 1.2rem; color: var(--text);
  flex-shrink: 0;
}
.reader-head h2 { font-size: 1.05rem; }

.chapter-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 0.4rem;
  border-bottom: 1px solid var(--border-lt);
}
.chapter-item:active { opacity: 0.7; }
.chapter-num {
  width: 30px; height: 30px; border-radius: var(--r-full); flex-shrink: 0;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 0.72rem; color: var(--text-2); font-weight: 500;
}
.chapter-item h4 { font-size: 0.85rem; font-weight: 500; flex: 1; }
.chapter-item .go { color: var(--text-3); font-size: 1rem; }

.chapter-content { padding: 0.4rem 0.2rem 2rem; }
.chapter-content h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.chapter-content .body { font-size: 0.9rem; line-height: 1.85; color: #1a1a1a; font-weight: 300; white-space: pre-wrap; word-wrap: break-word; }

.contact-block {
  margin-bottom: 1.1rem;
  padding: 1.2rem;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  box-shadow: var(--shadow-sm);
}
.contact-block .cb-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.contact-block .cb-logo { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--grad); display: grid; place-items: center; color: #fff; overflow: hidden; flex-shrink: 0; }
.contact-block .cb-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.contact-block h3 { font-size: 1rem; }
.contact-block .cb-sub { font-size: 0.68rem; color: var(--text-3); letter-spacing: 0.4px; }
.mail-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 0.9rem; margin-bottom: 0.9rem;
  border-radius: var(--r-md); background: var(--bg-soft); border: 1px solid var(--border-lt);
  font-size: 0.8rem; color: var(--text-2); word-break: break-all;
}
.mail-row i { color: var(--blue); font-size: 1rem; flex-shrink: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.social-btn {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--border-lt);
  display: grid; place-items: center; font-size: 1.3rem; color: var(--blue);
  transition: transform var(--t), background var(--t);
}
.social-btn:active { transform: scale(0.92); }

#tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.5) blur(16px);
  border-top: 1px solid var(--border-lt);
  display: flex;
}
.tab-inner {
  width: 100%; max-width: var(--frame); margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 44px;
  color: var(--text-3);
  position: relative;
  transition: color var(--t);
}
.tab i { font-size: 1.45rem; }
.tab span { font-size: 0.56rem; letter-spacing: 0.4px; font-weight: 500; }
.tab.active { color: var(--blue); }
.tab.active::before {
  content: ""; position: absolute; top: 0; width: 26px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--grad);
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.86);
  z-index: 9800; display: flex; align-items: center; justify-content: center;
  padding: 1.2rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-inner { position: relative; width: 100%; max-width: 560px; }
.modal-close { position: absolute; top: -2.6rem; right: 0; color: #fff; font-size: 1.8rem; opacity: 0.8; }
.modal-yt { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; }
.modal-yt iframe { width: 100%; height: 100%; border: none; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  z-index: 9900; display: flex; align-items: center; justify-content: center;
  padding: 1.4rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: var(--r-full); background: rgba(255,255,255,0.14); color: #fff; display: grid; place-items: center; font-size: 1.3rem; }
#lightbox-content { max-width: 92vw; max-height: 84dvh; border-radius: var(--r-md); overflow: hidden; }
#lightbox-content img { width: 100%; height: auto; }

#toast-container { position: fixed; bottom: calc(var(--tab-h) + var(--safe-b) + 1rem); left: 50%; transform: translateX(-50%); z-index: 9950; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 0.6rem 1.3rem; border-radius: var(--r-full); font-size: 0.76rem; font-weight: 500; white-space: nowrap; animation: toastIn 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.skeleton { background: linear-gradient(90deg, #eee 25%, #e2e2e2 50%, #eee 75%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp 0.5s ease forwards; }
.fade-up:nth-child(2) { animation-delay: 0.05s; }
.fade-up:nth-child(3) { animation-delay: 0.1s; }
.fade-up:nth-child(4) { animation-delay: 0.15s; }
.fade-up:nth-child(5) { animation-delay: 0.2s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .fade-up { opacity: 1; transform: none; }
}

.portfolio-cta {
  width: 100%;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  text-align: left; color: var(--text);
  transition: transform var(--t);
}
.portfolio-cta:active { transform: scale(0.99); }
.portfolio-cta .pc-ic {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0;
}
.portfolio-cta .pc-body { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.portfolio-cta .pc-h { font-size: 0.95rem; font-weight: 600; }
.portfolio-cta .pc-p { font-size: 0.74rem; color: var(--text-3); font-weight: 300; }
.portfolio-cta .pc-go { color: var(--blue); font-size: 1.15rem; }

.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pf-item {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 1; background: var(--bg-soft); cursor: pointer;
}
.pf-item.wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.pf-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-item:active { opacity: 0.9; }

.na-hero {
  position: relative;
  margin: 0.9rem 0.9rem 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  padding: 1.7rem 1.35rem 1.5rem;
  min-height: 40dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.na-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 85% 8%, rgba(255,255,255,0.16), transparent 55%);
}
.na-hero-logo {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 64px; height: 64px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.12);
  display: grid; place-items: center; overflow: hidden;
}
.na-hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }

.med-card {
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
}
.med-card h4 { font-size: 0.92rem; margin-bottom: 0.4rem; }
.med-text {
  font-size: 0.8rem; color: var(--text-2); font-weight: 300; line-height: 1.6;
  white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.med-text.open { -webkit-line-clamp: unset; }

.drawer-na-btn {
  width: 100%;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 1rem;
  margin-top: 0.9rem;
  border-radius: var(--r-lg);
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,58,112,0.28);
  text-align: left;
  transition: transform var(--t);
}
.drawer-na-btn:active { transform: scale(0.99); }
.drawer-na-btn img {
  width: 36px; height: 36px; object-fit: contain;
  border-radius: 9px; background: rgba(255,255,255,0.15); padding: 5px; flex-shrink: 0;
}
.drawer-na-btn .na-btn-body { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.drawer-na-btn .na-btn-t { font-size: 0.95rem; font-weight: 600; }
.drawer-na-btn .na-btn-s { font-size: 0.68rem; opacity: 0.85; font-weight: 300; }
.drawer-na-btn > i { font-size: 1.1rem; opacity: 0.9; }

.med-dl {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-full);
  background: var(--blue);
  color: #fff;
  font-size: 0.76rem; font-weight: 500;
  transition: opacity var(--t);
}
.med-dl:active { opacity: 0.88; }
.med-dl i { font-size: 1rem; }

.buy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 1.3rem;
}
.buy-info { margin-bottom: 0.85rem; }
.buy-price { font-size: 1.3rem; font-weight: 700; color: var(--blue); }
.buy-note { font-size: 0.72rem; color: var(--text-3); font-weight: 300; margin-top: 0.25rem; line-height: 1.4; }

.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.45); backdrop-filter: blur(2px);
  z-index: 9700; opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
}
.sheet-overlay.open { opacity: 1; pointer-events: auto; }
.pay-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9750;
  background: var(--bg); border-radius: 22px 22px 0 0;
  padding: 0.6rem 1.15rem calc(env(safe-area-inset-bottom, 0px) + 1.15rem);
  box-shadow: 0 -14px 44px rgba(0,0,0,0.18);
  transform: translateY(100%); transition: transform 0.34s cubic-bezier(0.4,0,0.2,1);
  max-width: 620px; margin: 0 auto;
}
.pay-sheet.open { transform: translateY(0); }
.sheet-handle { width: 40px; height: 4px; border-radius: 999px; background: var(--border-lt); margin: 0.3rem auto 0.8rem; }
.pay-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.pay-head h3 { font-size: 1rem; }
.sheet-x { width: 34px; height: 34px; border-radius: var(--r-full); background: var(--bg-soft); border: 1px solid var(--border-lt); display: grid; place-items: center; color: var(--text-2); flex-shrink: 0; }
.pay-lbl { display: block; font-size: 0.64rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); margin: 0.7rem 0 0.5rem; font-weight: 500; }
.op-row { display: flex; gap: 0.6rem; }
.op-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.8rem 0.5rem; border-radius: var(--r-md); border: 1.5px solid var(--border-lt); background: var(--bg-soft); color: var(--text); font-size: 0.82rem; font-weight: 500; transition: all var(--t); }
.op-btn.active { border-color: var(--blue); background: rgba(0,58,112,0.06); color: var(--blue); }
.pay-input { width: 100%; padding: 0.85rem 1rem; border-radius: var(--r-md); border: 1.5px solid var(--border-lt); background: var(--bg-soft); font-size: 0.95rem; color: var(--text); }
.pay-input:focus { outline: none; border-color: var(--blue); }
.pay-msg { margin-top: 0.7rem; font-size: 0.78rem; color: var(--text-2); line-height: 1.45; }
.pay-msg.err { color: #c0392b; }
.pay-foot { margin-top: 1.1rem; }
.pay-amount { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; padding-top: 0.85rem; border-top: 1px solid var(--border-lt); }
.pay-amount span { font-size: 0.8rem; color: var(--text-3); }
.pay-amount strong { font-size: 1.2rem; color: var(--text); }
