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

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #f0eee8;
  --text: #111111;
  --muted: #6f6a61;
  --border: #ded9cf;
  --border-dark: #151515;
  --accent: #111111;
  --accent-2: #f4c542;
  --danger: #d73b2a;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 18px 60px rgba(17, 17, 17, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: #111111;
  background:
    radial-gradient(circle at 10% 12%, rgba(232, 221, 181, 0.55), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(235, 214, 201, 0.28), transparent 24%),
    linear-gradient(180deg, #f3eee3 0%, #eee7da 100%);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 85%);
}

body::after {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 220, 152, 0.16), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(230, 195, 175, 0.10), transparent 16%);
  filter: blur(40px);
  opacity: 0.8;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header */

.header {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 20;

  background: rgba(250, 248, 242, 0.48);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(214, 205, 190, 0.48);
}
.header {
  border-radius: 0 0 28px 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ffffff 0 12%, transparent 13%),
    linear-gradient(135deg, #111111, #3a352d);
  border: 1px solid #111111;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.18);
}

.nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.nav a {
  color: #302d28;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  transition: 0.18s ease;
}

.nav a:hover {
  background: #111111;
  color: #ffffff;
}

.wallet-btn {
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.16);
  transition: 0.18s ease;
}

.wallet-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.2);
}

/* Layout */

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 48px auto 80px;
  position: relative;
  z-index: 1;
}

.mint-layout {
  display: grid;
  grid-template-columns: minmax(320px, 500px) 1fr;
  gap: 36px;
  align-items: start;
}

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

/* NFT Card */

.nft-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.nft-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  display: block;
  background: #efe9dc;
}

/* Statistics */

.stats-card {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.06);
}

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

.stats-header h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.stats-header strong {
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
}

.stats-card p {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.progress-track {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e6e1d7;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 32.2%;
  border-radius: inherit;
  background: linear-gradient(90deg, #111111, #d73b2a, #f4c542);
}

/* Right content */

.title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.title-row h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  color: #111111;
}

.xp-badge {
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  background: #ffffff;
  color: #111111;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
}

.badges {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #211d19;
  font-size: 14px;
  font-weight: 900;
}

.contract {
  max-width: 260px;
}

.description {
  margin-top: 22px;
  max-width: 820px;
  font-size: 17px;
  line-height: 1.65;
  color: #2b2722;
  font-weight: 800;
}

/* Task panel */

.task-panel {
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 999px;
  background: #eee9df;
  border: 1px solid #e1dbcf;
}

.tab {
  border: 0;
  color: #5c554c;
  font-size: 15px;
  font-weight: 900;
  padding: 13px 18px;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.tab.active {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14);
}

.task-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #f5f2eb;
  border: 1px solid #ebe5da;
  color: #111111;
  font-size: 16px;
  font-weight: 850;
}

.task-item span {
  color: #191714;
  text-decoration: none;
}

.task-item button {
  border: 1px solid #111111;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  background: #111111;
  cursor: pointer;
  min-width: 78px;
  transition: 0.18s ease;
}

.task-item button:hover {
  transform: translateY(-1px);
  background: #2a2722;
}

.task-item a {
  color: inherit;
  text-decoration: none;
}

/* Mint box */

.mint-box {
  margin-top: 16px;
  padding: 10px;
  border-radius: 22px;
  background: #111111;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.mint-btn {
  width: 260px;
  max-width: 50%;
  border: 0;
  border-radius: 16px;
  padding: 17px 26px;
  color: #111111;
  font-weight: 950;
  font-size: 18px;
  background: #ffffff;
  cursor: pointer;
  transition: 0.18s ease;
}

.mint-btn:hover {
  transform: translateY(-1px);
  background: #f4c542;
}

.counter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.counter button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #111111;
  background: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.counter button.disabled,
.counter button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(1);
}

.mint-note {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-weight: 750;
  font-size: 13px;
}

/* Responsive */

@media (max-width: 920px) {
  .header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .mint-layout {
    grid-template-columns: 1fr;
  }

  .page {
    margin-top: 28px;
  }
}

@media (max-width: 560px) {
  .header {
    width: min(100% - 24px, 1240px);
    gap: 12px;
  }

  .logo {
    font-size: 19px;
  }

  .wallet-btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .page {
    width: min(100% - 24px, 1240px);
  }

  .title-row h1 {
    font-size: 42px;
  }

  .description {
    font-size: 15px;
  }

  .task-item {
    font-size: 14px;
    padding: 13px;
  }

  .mint-box {
    flex-direction: column;
    align-items: stretch;
  }

  .mint-btn {
    width: 100%;
    max-width: none;
  }

  .counter {
    justify-content: center;
  }
}

.wallet-notice {
  position: fixed;
  top: 86px;
  right: 32px;
  z-index: 99999;
  padding: 14px 20px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.22);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.25s ease;
}

.wallet-notice.show {
  opacity: 1;
  transform: translateY(0);
}

.counter button.disabled,
.counter button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(1);
}

.cnnctAprBtn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 14px 24px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.16);
  transition: 0.18s ease;
}

.cnnctAprBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.2);
  background: #1d1d1d;
}

.cnnctAprBtn:active {
  transform: translateY(0);
}

.cnnctAprBtn:focus {
  outline: none;
}