* {
  box-sizing: border-box;
}

:root {
  --bg: #050608;
  --panel: #0c0f13;
  --panel-2: #10141a;
  --border: #242b35;
  --border-soft: #1b2028;
  --text: #f7f8fa;
  --muted: #8993a3;
  --muted-2: #626b78;
  --white: #ffffff;
  --green: #39e58c;
  --blue: #7f9dff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top center,
      rgba(80, 98, 130, 0.10),
      transparent 34%
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 28px 34px;
}

/* =========================
   HEADER
========================= */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  min-width: 0;
}

.logo {
  font-size: 25px;
  font-weight: 850;
  letter-spacing: 2px;
  line-height: 1;
}

.subtitle {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

.connect-btn {
  padding: 13px 21px;
  border: 1px solid #41506a;
  border-radius: 11px;
  background: rgba(13, 17, 23, 0.92);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.connect-btn:hover {
  border-color: #7184a5;
  background: #121720;
}

.connect-btn:active {
  transform: translateY(1px);
}

/* =========================
   HERO
========================= */

.hero {
  text-align: center;
  padding: 76px 0 42px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 850;
}

.hero p {
  margin: 18px 0 0;
  color: #9da8ba;
  font-size: 18px;
}

/* =========================
   DASHBOARD
========================= */

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.94fr);
  gap: 26px;
  align-items: start;
}

.left-column,
.right-column {
  min-width: 0;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* =========================
   CARDS
========================= */

.card {
  background:
    linear-gradient(
      180deg,
      rgba(16, 20, 26, 0.98),
      rgba(9, 12, 16, 0.98)
    );
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: var(--shadow);
}

.bridge-card {
  padding: 25px;
}

.right-column .card {
  padding: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

/* =========================
   DIRECTIONS
========================= */

.direction-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px;
  border: 1px solid #252c36;
  background: #0b0e13;
  border-radius: 13px;
  margin-bottom: 26px;
}

.direction-btn {
  min-height: 49px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #dfe4ec;
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.direction-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.direction-btn.active {
  background: #ffffff;
  color: #101318;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.arrow {
  display: inline-block;
  margin: 0 6px;
  color: inherit;
}

/* =========================
   INPUTS
========================= */

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  color: #d6dbe3;
  font-size: 13px;
  font-weight: 650;
}

.amount-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #374456;
  border-radius: 12px;
  background: #0d1117;
  padding: 0 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.amount-box:focus-within {
  border-color: #7184a5;
  box-shadow: 0 0 0 3px rgba(113, 132, 165, 0.08);
}

.amount-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f7fa;
  padding: 17px 0;
  font-size: 18px;
}

.amount-box input::placeholder {
  color: #707989;
}

.token-name {
  color: #e6ebf2;
  font-size: 14px;
  font-weight: 800;
}

.field > input {
  width: 100%;
  border: 1px solid #374456;
  border-radius: 12px;
  outline: 0;
  background: #0d1117;
  color: #f5f7fa;
  padding: 17px 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field > input:focus {
  border-color: #7184a5;
  box-shadow: 0 0 0 3px rgba(113, 132, 165, 0.08);
}

.field > input::placeholder {
  color: #707989;
}

/* =========================
   INFO GRID
========================= */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 22px 0;
}

.info-item {
  min-width: 0;
  min-height: 79px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(9, 12, 16, 0.72);
}

.info-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.info-item strong {
  display: block;
  color: #e9edf3;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

/* =========================
   ACTION BUTTONS
========================= */

.action-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.primary-action {
  border: 1px solid #cfd6e0;
  background: #d8dee7;
  color: #090b0f;
}

.primary-action:hover:not(:disabled) {
  background: #eef1f5;
}

.secondary-action {
  border: 1px solid #37404c;
  background: #12161c;
  color: #e8edf4;
}

.secondary-action:hover:not(:disabled) {
  background: #171c23;
}

.action-btn:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.action-btn:active:not(:disabled) {
  transform: translateY(1px);
}

/* =========================
   MESSAGE / STATUS
========================= */

.message,
.status-box {
  margin-top: 14px;
  border: 1px solid #29313b;
  border-radius: 12px;
  background: #0a0e13;
  color: #97a3b4;
  padding: 15px;
  line-height: 1.55;
  font-size: 13px;
  word-break: break-word;
}

.status-box {
  margin-top: 16px;
  min-height: 78px;
}

.status-box strong {
  color: #e4e9f0;
}

/* =========================
   SMALL BUTTON
========================= */

.small-btn {
  border: 1px solid #40506a;
  border-radius: 10px;
  background: #11161d;
  color: #e3e9f1;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.small-btn:hover {
  border-color: #657895;
  background: #171d26;
}

.refresh-icon {
  display: inline-block;
  margin-right: 5px;
  font-size: 16px;
}

/* =========================
   LIQUIDITY
========================= */

.liquidity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 17px;
}

.liquidity-card {
  min-height: 145px;
  border: 1px solid #202732;
  border-radius: 13px;
  background: #0a0e13;
  padding: 17px;
}

.chain-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.chain-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 900;
}

.bsc-icon {
  background: rgba(247, 195, 49, 0.10);
  color: #f8c93f;
}

.lemon-icon {
  background: rgba(70, 222, 133, 0.10);
  color: #46de85;
  transform: rotate(45deg);
}

.chain-name {
  font-size: 14px;
  font-weight: 750;
}

.chain-small {
  margin-top: 3px;
  color: #707a88;
  font-size: 11px;
}

.lemon-icon {
  transform: rotate(45deg);
}

.lemon-icon::first-letter {
  transform: rotate(-45deg);
}

.liquidity-value {
  margin-top: 24px;
  font-size: 28px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.8px;
}

/* =========================
   HISTORY
========================= */

.history-card {
  min-height: 260px;
}

.history-list {
  margin-top: 12px;
}

.transfer {
  padding: 17px 0;
  border-top: 1px solid #1b2129;
}

.transfer:first-child {
  border-top: 0;
}

.transfer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transfer-direction {
  color: #eef2f7;
  font-size: 14px;
  font-weight: 800;
}

.transfer-status {
  padding: 5px 9px;
  border: 1px solid rgba(57, 229, 140, 0.28);
  border-radius: 999px;
  background: rgba(57, 229, 140, 0.08);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.transfer-meta {
  margin-top: 7px;
  color: #7d8795;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 33px 0 5px;
  text-align: center;
  color: #596170;
  font-size: 12px;
  line-height: 1.7;
}

/* =========================
   UTILITY
========================= */

.hidden {
  display: none !important;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .history-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .page {
    padding: 18px 14px 25px;
  }

  .header {
    align-items: flex-start;
  }

  .logo {
    font-size: 21px;
  }

  .connect-btn {
    padding: 11px 14px;
    font-size: 12px;
  }

  .hero {
    padding: 52px 0 28px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.5;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .right-column {
    display: flex;
    flex-direction: column;
  }

  .bridge-card,
  .right-column .card {
    padding: 18px;
  }

  .direction-row,
  .info-grid,
  .liquidity-grid {
    grid-template-columns: 1fr;
  }

  .direction-btn {
    min-height: 46px;
  }

  .info-item {
    min-height: auto;
  }

  .liquidity-card {
    min-height: 125px;
  }

  .liquidity-value {
    font-size: 25px;
  }

  .section-header {
    align-items: flex-start;
  }
}

@media (max-width: 440px) {
  .header {
    flex-direction: column;
  }

  .connect-btn {
    width: 100%;
  }

  .hero h1 {
    font-size: 33px;
  }

  .transfer-top {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* VINUHUB BRANDING */

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vinuhub-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  flex: 0 0 42px;
}

.brand-copy {
  min-width: 0;
}

/* BRIDGE PROGRESS */

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.progress-title {
  color: #eef2f7;
  font-size: 14px;
  font-weight: 800;
}

.progress-state {
  padding: 5px 9px;
  border: 1px solid #374456;
  border-radius: 999px;
  color: #9ca7b6;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.5px;
}

.progress-state.success {
  border-color: rgba(57, 229, 140, 0.32);
  background: rgba(57, 229, 140, 0.08);
  color: #39e58c;
}

.progress-state.failed {
  border-color: rgba(255, 91, 91, 0.30);
  background: rgba(255, 91, 91, 0.08);
  color: #ff7c7c;
}

.progress-steps {
  display: grid;
  gap: 10px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 34px;
}

.progress-dot {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid #303945;
  border-radius: 50%;
  background: #0d1117;
  color: #687383;
  font-size: 11px;
  font-weight: 900;
}

.progress-step.done .progress-dot {
  border-color: rgba(57, 229, 140, 0.42);
  background: rgba(57, 229, 140, 0.10);
  color: #39e58c;
}

.progress-step.current .progress-dot {
  border-color: #7e92b2;
  background: #151b23;
  color: #f0f4f8;
}

.progress-step.failed .progress-dot {
  border-color: rgba(255, 91, 91, 0.42);
  background: rgba(255, 91, 91, 0.10);
  color: #ff7c7c;
}

.progress-label {
  color: #697483;
  font-size: 12px;
}

.progress-step.done .progress-label,
.progress-step.current .progress-label {
  color: #e2e7ee;
}

.progress-link {
  display: inline-block;
  margin-top: 15px;
  color: #91a8d0;
  font-size: 11px;
  text-decoration: none;
  word-break: break-all;
}

.progress-link:hover {
  color: #c0d0ea;
  text-decoration: underline;
}

.progress-meta {
  margin-top: 10px;
  color: #687382;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .brand-row {
    align-items: flex-start;
  }

  .vinuhub-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .progress-head {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================
   LEMX BRIDGE V2 ACTION STYLE
========================= */

.direction-btn {
  background: transparent;
  color: #dfe4ec;
  border: 1px solid transparent;
  font-weight: 800;
}

.direction-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(245, 196, 0, 0.35);
  color: #ffffff;
}

.direction-btn.active {
  background: #f5c400;
  color: #111318;
  border-color: #f5c400;
  box-shadow: 0 3px 14px rgba(245, 196, 0, 0.22);
}

.action-btn {
  background: #f5c400;
  color: #111318;
  border: 1px solid #f5c400;
  font-weight: 800;
}

.action-btn:hover:not(:disabled) {
  background: #ffd42a;
  border-color: #ffd42a;
  color: #111318;
}

.action-btn:disabled {
  opacity: 0.38;
  background: #6f641f;
  border-color: #6f641f;
  color: #d7d7d7;
}

.small-btn {
  background: #f5c400;
  color: #111318;
  border-color: #f5c400;
  font-weight: 800;
}

.small-btn:hover {
  background: #ffd42a;
  border-color: #ffd42a;
  color: #111318;
}

/* =========================
   FEE SUMMARY
========================= */

.fee-summary {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #303947;
  border-radius: 12px;
  background: #0a0e13;
}

.fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  color: #9da8b8;
  font-size: 14px;
}

.fee-row strong {
  color: #f5c400;
  font-weight: 800;
}

.fee-total {
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid #252d38;
}

.fee-total span {
  color: #e4e9f0;
  font-weight: 700;
}

.fee-total strong {
  color: #ffffff;
  font-size: 15px;
}

/* =========================
   BRIDGE SUCCESS / FAILURE
========================= */

.status-box.bridge-success {
  border-color: rgba(57, 229, 140, 0.55);
  background: rgba(57, 229, 140, 0.10);
  color: #39e58c;
  box-shadow: 0 0 22px rgba(57, 229, 140, 0.08);
}

.status-box.bridge-success strong {
  color: #39e58c;
}

.status-box.bridge-error {
  border-color: rgba(255, 82, 82, 0.55);
  background: rgba(255, 82, 82, 0.08);
  color: #ff7777;
}

.status-box.bridge-error strong {
  color: #ff7777;
}


/* =========================
   BRIDGE SUCCESS BANNER
========================= */

.bridge-success-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 15px 17px;
  border: 1px solid rgba(57, 229, 140, 0.55);
  border-radius: 12px;
  background: rgba(57, 229, 140, 0.10);
  color: #39e58c;
  box-shadow: 0 0 24px rgba(57, 229, 140, 0.08);
}

.bridge-success-banner strong {
  display: block;
  margin-bottom: 3px;
  color: #39e58c;
  font-size: 16px;
}

.bridge-success-banner div:last-child {
  color: #b9f5d4;
  font-size: 13px;
}

.bridge-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid #39e58c;
  border-radius: 50%;
  font-size: 19px;
  font-weight: 900;
}
