/* ═══════════════════════════════════════════════════════════════════
   7AZZANI Sponsorship & Infrastructure Backing — Signal Design System
   Hardware-specular, console aesthetic for developer patronage & sponsorship.
   Scoped to .sg and .don- to preserve strict style isolation.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Ambient Glow & Page Backdrop ─── */
.sg.don-root {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(52, 211, 153, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 20%, rgba(103, 232, 249, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 15% 55%, rgba(52, 211, 153, 0.04) 0%, transparent 40%),
    linear-gradient(to bottom, transparent, var(--bg));
  position: relative;
}

.sg.don-root::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 50%, transparent 100%);
}

.don-container {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(6rem, 10vw, 9rem);
}

/* ─── Hero Section ─── */
.don-hero {
  text-align: center;
  max-width: 58rem;
  margin-inline: auto;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
}

.don-hero .sg-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1.05rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.22);
  font: 600 0.68rem/1 var(--mono);
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
}

.don-hero .sg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  display: inline-block;
  animation: don-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes don-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.don-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}

.don-hero h1 .don-gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--green-2) 80%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.don-hero p.don-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 46rem;
  margin-inline: auto;
}

/* ─── Telemetry Ribbon ─── */
.don-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

.don-telemetry-item {
  padding: 1.2rem 1.35rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(10, 17, 25, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  transition: border-color 0.25s, transform 0.25s;
}

.don-telemetry-item:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.don-telemetry-item .don-tel-label {
  font: 600 0.64rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.don-telemetry-item .don-tel-value {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.don-telemetry-item .don-tel-value span.don-highlight {
  color: var(--green);
}

.don-telemetry-item .don-tel-desc {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── Section 01 · Sponsorship Tiers ─── */
.don-tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.don-tier-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  overflow: hidden;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset, 0 15px 35px rgba(0, 0, 0, 0.4);
}

.don-tier-card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.09) inset, 0 20px 45px rgba(0, 0, 0, 0.55);
}

.don-tier-card.is-featured {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(155deg, rgba(52, 211, 153, 0.08) 0%, var(--panel) 55%);
}

.don-tier-card.is-featured::before {
  content: 'POPULAR CHOICE';
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font: 700 0.58rem/1 var(--mono);
  letter-spacing: 0.16em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--green);
}

.don-tier-head {
  margin-bottom: 1.4rem;
}

.don-tier-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 1.2rem;
  transition: transform 0.25s;
}

.don-tier-card:hover .don-tier-icon {
  transform: scale(1.08);
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--green-2);
}

.don-tier-name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.don-tier-price {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.don-tier-price small {
  font: 500 0.8rem/1 var(--mono);
  color: var(--dim);
}

.don-tier-impact {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.don-tier-action {
  margin-top: 1.6rem;
}

.don-tier-btn {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font: 600 0.85rem/1 var(--body);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.don-tier-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(52, 211, 153, 0.08);
  color: #fff;
  transform: translateY(-2px);
}

.don-tier-btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #04110c;
  font-weight: 700;
}

.don-tier-btn.primary:hover {
  background: var(--green-2);
  border-color: var(--green-2);
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.35);
}

/* ─── Section 02 · Payment Rails Matrix ─── */
.don-rails-section {
  margin-top: clamp(4.5rem, 8vw, 7rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.don-rails-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: rgba(10, 17, 25, 0.8);
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  width: fit-content;
}

.don-tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: transparent;
  border: none;
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.don-tab-btn:hover {
  color: #fff;
}

.don-tab-btn.is-active {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--green);
}

.don-rails-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.don-rail-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem 1.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.04) inset;
}

.don-rail-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.08) inset, 0 15px 35px rgba(0, 0, 0, 0.4);
}

.don-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.don-rail-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.don-rail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--green);
  flex-shrink: 0;
}

.don-rail-card:hover .don-rail-icon {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: var(--green-2);
}

.don-rail-info h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.don-rail-info span.don-network {
  font: 600 0.62rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.don-rail-badge {
  font: 600 0.62rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Preset Amount Selector for PayPal */
.don-preset-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.don-preset-btn {
  flex: 1;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  font: 600 0.8rem/1 var(--mono);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.don-preset-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
}

.don-preset-btn.is-active {
  border-color: var(--green);
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.15);
}

/* Address Code Block & Actions */
.don-address-box {
  background: #060a10;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

.don-address-code {
  font: 500 0.78rem/1.3 var(--mono);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.don-action-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.don-copy-btn,
.don-qr-toggle-btn {
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: 600 0.68rem/1 var(--mono);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.don-copy-btn:hover,
.don-qr-toggle-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
}

/* Collapsible QR Drawer */
.don-qr-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
  border-top: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.don-qr-drawer.is-open {
  max-height: 240px;
  opacity: 1;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top-color: var(--line);
}

.don-qr-frame {
  width: 130px;
  height: 130px;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.don-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.don-qr-meta {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.don-qr-meta b {
  color: #fff;
  display: block;
  margin-bottom: 0.25rem;
}

/* ─── Section 03 · Allocation Transparency ─── */
.don-alloc-section {
  margin-top: clamp(4.5rem, 8vw, 7rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.don-alloc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.2rem;
}

.don-alloc-card {
  padding: 1.6rem 1.7rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.04) inset;
}

.don-alloc-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}

.don-alloc-pct {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.don-alloc-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.don-alloc-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ─── Section 04 · The Independent Manifesto (Bento) ─── */
.don-manifesto-section {
  margin-top: clamp(4.5rem, 8vw, 7rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.don-manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.2rem;
}

.don-manifesto-card {
  padding: 1.8rem 1.8rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.04) inset;
  transition: all 0.25s;
}

.don-manifesto-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}

.don-manifesto-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.don-manifesto-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.don-manifesto-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ─── Section 05 · Corporate Sponsorship & Founder Note ─── */
.don-founder-banner {
  margin-top: clamp(4.5rem, 8vw, 6.5rem);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  padding: clamp(2.2rem, 4.5vw, 3.5rem) clamp(2.2rem, 5vw, 4rem);
  border-radius: var(--r);
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.09) 0%, rgba(10, 17, 25, 0.98) 60%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.08) inset, 0 20px 45px -10px rgba(0, 0, 0, 0.6);
}

.don-founder-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.16), transparent 70%);
  pointer-events: none;
}

.don-founder-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.don-founder-content h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.don-founder-content p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.don-founder-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 1080px) {
  .don-tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .don-alloc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .don-manifesto-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .don-telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .don-rails-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .don-telemetry-strip {
    grid-template-columns: 1fr;
  }
  .don-tiers-grid {
    grid-template-columns: 1fr;
  }
  .don-alloc-grid {
    grid-template-columns: 1fr;
  }
  .don-qr-drawer {
    flex-direction: column;
    text-align: center;
  }
  .don-qr-drawer.is-open {
    max-height: 380px;
  }
  .don-founder-banner {
    padding: 1.8rem 1.4rem;
  }
}
