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

:root {
    --bg-main: #f0edeb;
    --bg-panel: #ffffff;
    --bg-panel-soft: #f8fafc;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --border-soft: rgba(15, 23, 42, 0.12);
    --text-muted: #6b7280;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
}

body {
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background: var(--bg-main);
}

body::before {
    display: none;
}

.domain-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(90deg, #f78b2f, #f7a43d);
    color: #250f03;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14px;
}

.domain-banner .banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(37,15,3,0.16);
    font-size: 0.68rem;
}

.domain-banner .banner-detail {
    opacity: 0.72;
    font-weight: 700;
}

.header{
    width: 100%;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 10;
    color: #fff;
}

.topbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 40px;
    padding: 0 12px;
    background: #f0edeb;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.brand-and-links{
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.brand-group{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo{
    height: 30px;
    width: auto;
}

.brand-name{
    font-size: 1.38rem;
    font-weight: 800;
    letter-spacing: 0.44px;
    color: #111827;
}

.top-links{
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
}

.top-link{
    display: inline-flex;
    align-items: center;
    padding: 4px 5px;
    color: #6b7280;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
}

.top-link.active,
.top-link:hover{
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 0;
}

.top-actions{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-icon-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #1f2937;
    cursor: pointer;
}

.header-icon-btn svg{
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.network-selector{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    color: #5a81f3;
    cursor: pointer;
}

.network-icon{
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.network-caret{
    color: #5a81f3;
    font-size: 0.78rem;
    line-height: 1;
}

.header-connect{
    border: none;
    background: #3976ee;
    color: #f8f7f7;
    border-radius: 0;
    padding: 4px 5px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.subbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
    padding: 0 12px;
    background: #f0edeb;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.subnav-tabs{
    display: flex;
    align-items: center;
    gap: 8px;
}

.subnav-tab{
    display: inline-flex;
    align-items: center;
    padding: 6px 10px 4px;
    color: #6b7280;
    font-size: 0.94rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.subnav-tab:hover,
.subnav-tab.active{
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.stats-strip{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stat-pill{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #111827;
    font-size: 0.68rem;
    font-weight: 700;
}

.stat-label{
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-value{
    color: #111827;
}

.sectionMain{
    width: 100%;
    padding: 22px 16px 32px;
}

.swap-main-container {
  min-height: calc(100vh - 180px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.swap-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0 auto;
  width: 448px;
  max-width: 100%;
}

.swap-panel h2 {
  color: #111827;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.swap-box {
  background: #ffffff;
  border-radius: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.swap-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 0;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0;
}

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

.field-top .label {
    color: #6b7280;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.quick-percentages {
    display: flex;
    gap: 5px;
}

.quick-percentages button {
    border: none;
    border-radius: 0;
    padding: 4px 8px;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 0.52rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.quick-percentages button:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

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

.amount-row {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.amount-row input {
  width: 100%;
  background: transparent;
  border: none;
  color: #111827;
  font-size: 2rem;
  font-weight: 700;
  padding: 0;
  outline: none;
}

.amount-row input::placeholder {
    color: rgba(17,24,39,0.32);
}

.token-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.token-selected {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0;
  background: #ffffff;
  color: #111827;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  justify-content: space-between;
}

.token-selected:hover,
.token-selected:focus {
  border-color: #2563eb;
  outline: none;
}

.token-icon {
  width: 18px;
  height: 18px;
  border-radius: 0;
  object-fit: contain;
  background: #e5e7eb;
  flex-shrink: 0;
}

.token-selected-symbol {
  flex: 1 1 auto;
  text-align: left;
}

.token-caret {
  color: #6b7280;
  font-size: 0.7rem;
  line-height: 1;
}

.token-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  max-width: 300px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  padding: 10px;
  display: none;
  z-index: 20;
}

.token-selector.is-open .token-dropdown-menu {
  display: block;
}

.token-search-row {
  margin-bottom: 8px;
}

.token-search {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #111827;
  padding: 8px 10px;
  font-size: 0.72rem;
  outline: none;
}

.token-search::placeholder {
  color: rgba(17,24,39,0.38);
}

.token-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
}

.token-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  color: #111827;
}

.token-option:hover,
.token-option.is-active {
  background: #f8fafc;
  border-color: #2563eb;
}

.token-option-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.token-option-symbol {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.token-option-name {
  font-size: 0.58rem;
  color: #6b7280;
}

.token-option-price {
  font-size: 0.62rem;
  color: #4b5563;
  margin-left: auto;
}

.token-options::-webkit-scrollbar {
  width: 6px;
}

.token-options::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
}

.value-row {
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 700;
}

.swap-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #4b5563;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  font-size: 1rem;
}

.swap-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.swap-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0;
}

.swap-info-row .label {
    color: #6b7280;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.swap-info-row .value {
    color: #111827;
    font-weight: 800;
}

.swap-info-row .note {
    color: #9ca3af;
    font-size: 0.62rem;
}

.connect-btn {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
  border-radius: 0;
  font-size: 18px;
  padding: 4px 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  width: 100%;
  margin-top: 16px;
  box-shadow: 0 4px 0 rgba(29, 78, 216, 0.35);
  transition: background 0.2s ease;
}

.connect-btn:hover {
  background: #1d4ed8;
}

.curve-footer {
  background: #f0edeb;
  color: #374151;
  padding: 24px 16px 18px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  backdrop-filter: none;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.logo-col {
  max-width: 420px;
}
.footer-logo {
  width: 32px;
  height: 32px;
  max-width: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-title {
  font-size: 1.5rem;
  color: #111827;
  font-weight: 800;
}
.footer-desc {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.45;
}
.footer-section-title {
  font-size: 0.66rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-list li {
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease;
}
.footer-list li:hover {
  color: #1d4ed8;
}
.footer-list i {
  display: none;
}
.footer-llama {
    display:flex;
    justify-content:flex-end;
}
.footer-llama img {
    width: 70px;
    opacity: 0.72;
}

  @media (max-width: 900px) {
    .curve-footer {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 768px) {
    .header {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
    .heading {
      display: none;
    }
    nav {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
    .nav-left {
      flex-wrap: wrap;
    }
    .swap-main-container {
      min-height: auto;
    }
  }
