* { box-sizing: border-box; }

:root {
  --bg: #1b2b23;
  --bg-deep: #142019;
  --green: #607e68;
  --gold: #d9b572;
  --cream: #f2efe8;
  --muted: rgba(242, 239, 232, 0.68);
  --card: rgba(255, 255, 255, 0.055);
  --border: rgba(217, 181, 114, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 0%, rgba(96, 126, 104, 0.20), transparent 38rem),
    linear-gradient(180deg, #1d3026 0%, var(--bg) 45%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

a { color: inherit; }

.background-icons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.decor {
  position: absolute;
  object-fit: contain;
  opacity: 0.055;
  filter: saturate(.8);
}

.decor-hop { width: 290px; height: 470px; left: -100px; top: -130px; transform: rotate(-20deg); }
.decor-corn { width: 270px; height: 430px; right: -110px; top: 12vh; transform: rotate(14deg); }
.decor-can { width: 220px; height: 390px; left: -95px; bottom: -130px; transform: rotate(9deg); }
.decor-glass { width: 195px; height: 390px; right: -80px; bottom: -120px; transform: rotate(-9deg); }

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 18px;
}

.linktree { width: min(100%, 560px); }

.brand {
  display: flex;
  justify-content: center;
  margin: 0 auto 28px;
}

.logo {
  display: block;
  width: min(82vw, 430px);
  height: auto;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}

.links { display: grid; gap: 14px; }

.link-card {
  display: grid;
  grid-template-columns: 54px 1fr 28px;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 12px 18px 12px 12px;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(217, 181, 114, .14), transparent 60%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 181, 114, .6);
  background:
    linear-gradient(135deg, rgba(217, 181, 114, .20), transparent 60%),
    rgba(255, 255, 255, .075);
}

.link-card:focus-visible,
.iban-toggle:focus-visible,
.copy-iban:focus-visible {
  outline: 3px solid rgba(217, 181, 114, .55);
  outline-offset: 4px;
}

.link-symbol {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 900;
  font-size: 1.15rem;
}

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

.link-title {
  display: block;
  font-size: 1.08rem;
  font-weight: 750;
}

.link-url {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .90rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrow {
  color: var(--gold);
  font-size: 1.45rem;
  line-height: 1;
  text-align: right;
}

.iban-area {
  margin-top: 14px;
  text-align: center;
}

.iban-toggle {
  border: 0;
  background: transparent;
  color: rgba(242, 239, 232, .42);
  cursor: pointer;
  padding: 8px 12px;
  font: inherit;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .15s ease;
}

.iban-toggle:hover { color: var(--gold); }

.iban-panel {
  margin-top: 8px;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(217, 181, 114, .18);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.iban-row {
  display: grid;
  gap: 4px;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.iban-label {
  color: rgba(242,239,232,.45);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.iban-row strong,
.iban-row code {
  color: var(--cream);
  font-size: .92rem;
  overflow-wrap: anywhere;
}

.copy-iban {
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(217,181,114,.28);
  border-radius: 14px;
  padding: 11px 14px;
  background: rgba(217,181,114,.10);
  color: var(--gold);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.copy-status {
  min-height: 1.1em;
  margin: 8px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: .78rem;
}

.footer {
  padding-top: 24px;
  text-align: center;
}

.mini-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  height: 27px;
  margin-bottom: 13px;
}

.mini-icons img {
  width: 22px;
  height: 25px;
  object-fit: contain;
  opacity: .72;
}

.footer > a {
  color: var(--muted);
  font-size: .86rem;
  text-decoration: none;
  letter-spacing: .08em;
}

.footer > a:hover { color: var(--gold); }

@media (max-width: 520px) {
  .page { align-items: start; padding-top: 22px; }
  .logo { width: min(91vw, 430px); border-radius: 22px; }
  .brand { margin-bottom: 22px; }
  .link-card { min-height: 72px; border-radius: 19px; }
}
