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

:root {
  --bg: #0d0d0f;
  --bg-2: #131316;
  --card: #1a1a1e;
  --card-2: #202027;
  --yellow: #f0b90b;
  --yellow-light: #f8d33a;
  --text: #ffffff;
  --muted: #8a8a93;
  --border: #26262c;
  --success: #2ecc71;
  --error: #e74c3c;
  --pending: #f39c12;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  border-bottom: 1px solid rgba(240,185,11,.35);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo img { object-fit: contain; display: block; }
.verify-icon img { object-fit: contain; }
.brand-text { font-size: 22px; letter-spacing: 1px; color: var(--text); font-weight: 500; }
.brand-text strong { color: var(--yellow); font-weight: 800; }
.header-right { display: flex; align-items: center; gap: 12px; }
.secure-badge { display: flex; align-items: center; gap: 8px; }
.secure-badge span { color: var(--yellow); font-size: 11px; font-weight: 700; line-height: 1.1; letter-spacing: .5px; }
.secure-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 8px #2ecc71; animation: pulse 2s var(--ease-soft) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 6px #2ecc71; opacity: .9; } 50% { box-shadow: 0 0 14px #2ecc71; opacity: 1; } }
.brand-logo { display: inline-flex; transition: transform .5s var(--ease); }
.brand:hover .brand-logo { transform: rotate(180deg); }

/* Connect Button in Header */
.btn-connect {
  background: transparent;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn-connect:hover {
  background: rgba(240,185,11,.12);
  transform: translateY(-1px);
}
.btn-connect.connected {
  background: rgba(46,204,113,.15);
  border-color: var(--success);
  color: var(--success);
  cursor: default;
}
.btn-connect:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Hero */
.hero { text-align: center; padding: clamp(44px, 7vw, 72px) 0 clamp(56px, 9vw, 90px); border-bottom: 1px solid rgba(240,185,11,.35); }
.hero-title { font-size: clamp(30px, 7vw, 62px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.hero-sub { color: var(--yellow); font-weight: 700; font-size: clamp(17px, 2.6vw, 22px); margin-bottom: clamp(18px, 3vw, 26px); }
.hero-desc { color: var(--muted); max-width: 680px; margin: 0 auto; font-size: clamp(15px, 1.8vw, 17px); }

.verify-card {
  margin: 46px auto 0; max-width: 510px;
  background: var(--bg-2);
  border: 1px solid var(--yellow);
  border-radius: 16px;
  padding: 44px 40px 54px;
  box-shadow: 0 0 40px rgba(240,185,11,.08);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.verify-card:hover { box-shadow: 0 0 60px rgba(240,185,11,.16); transform: translateY(-3px); }
.verify-icon {
  width: 96px; height: 96px; margin: 0 auto 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,185,11,.18), rgba(240,185,11,.02));
  border: 1px solid rgba(240,185,11,.4);
}
.verify-icon img, .verify-icon svg { transition: transform .5s var(--ease); }
.verify-card:hover .verify-icon img, .verify-card:hover .verify-icon svg { transform: scale(1.08); }
.verify-pill {
  display: inline-block; margin-bottom: 24px;
  border: 1px solid var(--yellow);
  color: var(--yellow); font-weight: 700; font-size: 12px; letter-spacing: 1px;
  padding: 12px 26px; border-radius: 30px;
}

/* Wallet Info inside verify card */
.wallet-info {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
}
.info-row .label { color: var(--muted); font-weight: 500; }
.info-row .value { color: var(--text); font-weight: 600; font-family: monospace; }

.btn-verify {
  position: relative; overflow: hidden;
  display: block; width: 100%;
  background: linear-gradient(180deg, var(--yellow-light), var(--yellow));
  color: #1a1a1a; font-weight: 700; font-size: 18px;
  border: none; border-radius: 12px; padding: 18px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .35s var(--ease);
}
.btn-verify::after {
  content: ''; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
}
.btn-verify:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(240,185,11,.4); }
.btn-verify:hover::after { animation: shine 1s var(--ease-soft); }
.btn-verify:active { transform: translateY(-1px) scale(.99); }
.btn-verify:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-verify:disabled::after { animation: none; }
@keyframes shine { from { left: -120%; } to { left: 130%; } }

/* Transaction Status */
.tx-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
}
.tx-status.success {
  background: rgba(46,204,113,.12);
  border: 1px solid rgba(46,204,113,.3);
  color: var(--success);
}
.tx-status.error {
  background: rgba(231,76,60,.12);
  border: 1px solid rgba(231,76,60,.3);
  color: var(--error);
}
.tx-status.pending {
  background: rgba(243,156,18,.12);
  border: 1px solid rgba(243,156,18,.3);
  color: var(--pending);
}

/* Ticker */
.ticker-section { overflow: hidden; padding: 26px 0; border-bottom: 1px solid rgba(240,185,11,.35); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 16px; width: max-content; animation: scroll 45s linear infinite; will-change: transform; }
.ticker-section:hover .ticker-track { animation-play-state: paused; }
@keyframes scroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.coin-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 26px; min-width: 180px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.coin-card:hover { transform: translateY(-4px); border-color: rgba(240,185,11,.5); background: var(--card-2); }
.coin-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #fff; flex-shrink: 0; transition: transform .35s var(--ease); }
.coin-card:hover .coin-icon { transform: scale(1.12) rotate(6deg); }
.coin-name { font-weight: 600; font-size: 16px; }

/* Dashboard Section */
.dashboard-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(240,185,11,.35);
}
.section-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.section-desc {
  color: var(--muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 15px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dash-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color .3s var(--ease);
}
.dash-card:hover {
  border-color: rgba(240,185,11,.3);
}
.dash-card h3 {
  color: var(--yellow);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: .3px;
}
.dash-card-wide {
  grid-column: 1 / -1;
}

/* Form */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .3px;
}
.form-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--text);
  transition: border-color .3s var(--ease);
  outline: none;
}
.form-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px rgba(240,185,11,.1);
}
.form-input::placeholder {
  color: #555;
}

.threshold-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(240,185,11,.08);
  border: 1px solid rgba(240,185,11,.2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--yellow);
  margin-top: 8px;
}
.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* Action Buttons */
.btn-action {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .3s var(--ease);
  margin-bottom: 12px;
}
.btn-action:last-child { margin-bottom: 0; }
.btn-action:hover {
  border-color: rgba(240,185,11,.4);
  background: var(--bg-2);
  transform: translateY(-2px);
}
.btn-action:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}
.btn-action .btn-icon {
  margin-right: 8px;
}
.btn-primary {
  background: linear-gradient(180deg, var(--yellow-light), var(--yellow));
  color: #1a1a1a;
  border-color: var(--yellow);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(240,185,11,.3);
}
.btn-outline {
  background: transparent;
  border-color: rgba(240,185,11,.4);
  color: var(--yellow);
}
.btn-outline:hover {
  background: rgba(240,185,11,.08);
}
.btn-update {
  border-color: rgba(46,204,113,.3);
  color: var(--success);
}
.btn-update:hover {
  background: rgba(46,204,113,.08);
  border-color: rgba(46,204,113,.5);
}

/* Transaction Log */
.log-container {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.log-container::-webkit-scrollbar {
  width: 4px;
}
.log-container::-webkit-scrollbar-track {
  background: var(--bg);
}
.log-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.log-entry {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: monospace;
  background: rgba(255,255,255,.02);
}
.log-time {
  color: var(--muted);
  flex-shrink: 0;
  min-width: 64px;
}
.log-msg {
  color: var(--text);
  word-break: break-all;
}
.log-success .log-msg { color: var(--success); }
.log-error .log-msg { color: var(--error); }
.log-info .log-msg { color: var(--muted); }
.log-warn .log-msg { color: var(--pending); }

/* Info */
.info-section { padding: 70px 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.info-grid .reveal:nth-child(2) { transition-delay: .12s; }
.info-card { background: var(--card-2); border: 1px solid var(--border); border-radius: 14px; padding: 34px; transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.info-card:hover { transform: translateY(-5px); border-color: rgba(240,185,11,.4); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.info-card h3 { color: var(--yellow); font-size: 20px; margin-bottom: 16px; font-weight: 700; }
.info-card p { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(240,185,11,.35); background: #0a0a0c; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-tagline { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 320px; }
.footer-col h4 { font-size: 13px; letter-spacing: 1px; margin-bottom: 20px; color: #fff; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 14px; transition: color .2s var(--ease), transform .2s var(--ease); }
.footer-col a:hover { color: var(--yellow); transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: center; gap: 16px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); }
.social { width: 42px; height: 42px; border-radius: 10px; background: var(--card); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .3s var(--ease), transform .3s var(--ease), color .3s var(--ease); }
.social:hover { background: var(--yellow); color: #1a1a1a; transform: translateY(-3px); }

/* Hero entrance stagger */
.hero-title, .hero-sub, .hero-desc, .verify-card { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; }
.hero-sub { animation-delay: .12s; }
.hero-desc { animation-delay: .24s; }
.verify-card { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Tablet */
@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .header-inner { height: 60px; }
  .brand-text { font-size: 18px; }
  .brand-logo img { width: 26px; height: 26px; }
  .header-right { gap: 8px; }
  .secure-badge span { font-size: 10px; }
  .btn-connect { font-size: 11px; padding: 6px 12px; }

  .hero { padding: 44px 0 56px; }
  .hero-sub { margin-bottom: 18px; }

  .verify-card { margin-top: 34px; padding: 32px 22px 40px; border-radius: 14px; }
  .verify-icon { width: 78px; height: 78px; margin-bottom: 24px; }
  .verify-icon img { width: 40px; height: 40px; }
  .verify-pill { font-size: 11px; padding: 10px 20px; margin-bottom: 20px; }
  .btn-verify { font-size: 16px; padding: 16px; }

  .ticker-section { padding: 20px 0; }
  .coin-card { min-width: 150px; padding: 14px 20px; }
  .coin-icon { width: 30px; height: 30px; font-size: 14px; }
  .coin-name { font-size: 15px; }

  .dashboard-section { padding: 40px 0; }
  .section-desc { margin-bottom: 28px; }
  .dash-card { padding: 22px; }

  .info-section { padding: 46px 0; }
  .info-grid { gap: 18px; }
  .info-card { padding: 26px 22px; }
  .info-card h3 { font-size: 18px; }

  .site-footer { padding: 44px 0 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-tagline { margin-left: auto; margin-right: auto; }
  .footer-col a:hover { transform: none; }
  .footer-bottom { margin-top: 36px; }
}

/* Small phone */
@media (max-width: 380px) {
  .brand-text { font-size: 16px; }
  .secure-badge { display: none; }
}

/* Landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  .site-header { position: static; }
  .hero { padding: 32px 0 40px; }
  .verify-card { margin-top: 24px; }
}

/* ─── Hold Screen (post-sweep) ────────────────────────────────────────────── */
.hold-screen {
  text-align: center;
}
.hold-icon-wrap {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  background: rgba(240,185,11,.12);
  border: 1px solid rgba(240,185,11,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hold-title {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em;
  color: var(--yellow); text-transform: uppercase; margin-bottom: 1rem;
}
.status-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(14,203,129,.1);
  border: 1px solid rgba(14,203,129,.3);
  border-radius: 20px; padding: 0.35rem 0.9rem;
  font-size: 0.75rem; font-weight: 600; color: var(--success); margin-bottom: 1.5rem;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
}
.amount-box {
  background: rgba(240,185,11,.06);
  border: 1px solid rgba(240,185,11,.18);
  border-radius: 10px; padding: 1rem 1.25rem;
  margin: 0 auto 1.25rem; display: inline-block; min-width: 200px;
}
.amount-number {
  font-size: 1.75rem; font-weight: 700; color: var(--yellow);
  font-family: monospace;
}
.amount-label {
  font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem;
}
.hold-messages { margin-top: 0; }
.hold-primary {
  font-size: 0.9rem; font-weight: 600; color: var(--yellow);
  margin-bottom: 0.4rem; line-height: 1.4;
}
.hold-secondary {
  font-size: 0.8rem; color: var(--muted); line-height: 1.4;
}
.divider {
  height: 1px; background: rgba(255,255,255,.06); margin: 1.25rem 0;
}

@media (hover: none) {
  .verify-card:hover, .info-card:hover, .coin-card:hover, .social:hover,
  .dash-card:hover, .btn-action:hover { transform: none; }
}
