:root {
  --bg-body: #050505;
  --bg-card: #121212;
  --text-main: #ffffff;
  --text-muted: #999999;
  --accent: #ff0000;
  --border-light: rgba(255, 255, 255, 0.08);
  --color-yape: #bc36c9;
  --color-plin: #00d3ea;
  --color-lemon: #ccff00;
  --font-stack: "Inter", system-ui, -apple-system, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-stack);
  font-size: 1.6rem;
  min-height: 100dvh;
  background-image: radial-gradient(
    circle at 50% -20%,
    #220505 0%,
    #050505 60%
  );
  background-attachment: fixed;
  padding-top: clamp(60px, 10vh, 100px);
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.main-wrapper {
  width: min(100% - 4rem, 1000px);
  margin: 0 auto;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3rem, 5vw, 6rem);
}

.page-header {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.icon-glow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 0, 0, 0.08);
  border-radius: 50%;
  color: var(--accent);
  font-size: 2.4rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.15);
  backdrop-filter: blur(5px);
}

.title {
  font-size: clamp(3.2rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, #fff 40%, #aaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
  line-height: 1.1;
}

.description {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: clamp(1.5rem, 2vw, 1.7rem);
  text-wrap: pretty;
}

.vip-card {
  width: 100%;
  max-width: 700px;
  background: linear-gradient(135deg, #1a0505 0%, #0a0a0a 100%);
  border: 1px solid rgba(255, 0, 0, 0.15);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6);
  contain: paint layout;
}

.vip-content {
  position: relative;
  z-index: 2;
}

.vip-badge {
  display: inline-flex;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.6em 1.2em;
  border-radius: 99px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.vip-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.vip-text {
  color: #ccc;
  font-size: clamp(1.4rem, 2vw, 1.6rem);
}

.vip-text strong {
  color: #fff;
  font-weight: 700;
}

.sub-text {
  display: block;
  margin-top: 1rem;
  font-size: 1.3rem;
  color: var(--text-muted);
}

.vip-visual {
  font-size: clamp(6rem, 10vw, 9rem);
  color: var(--accent);
  opacity: 0.08;
  transform: rotate(-15deg) translate(10px, 10px);
  pointer-events: none;
  user-select: none;
}

.methods-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.method-card {
  --theme: var(--border-light);
  --glow: transparent;

  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  isolation: isolate;
  flex: 1 1 300px;
  max-width: 450px;
  width: 100%;
  will-change: transform;
  transform: translateZ(0);
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.yape-style {
  --theme: var(--color-yape);
  --glow: rgba(188, 54, 201, 0.15);
}

.plin-style {
  --theme: var(--color-plin);
  --glow: rgba(0, 211, 234, 0.15);
}

.lemon-style {
  --theme: var(--color-lemon);
  --glow: rgba(204, 255, 0, 0.15);
}

@media (hover: hover) {
  .method-card:hover {
    transform: translateY(-6px);
    background: #151515;
    border-color: var(--theme);
    box-shadow: 0 15px 40px -10px var(--glow);
  }
}

.card-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 600;
}

.qr-box {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  width: 180px;
  height: 180px;
  margin-bottom: 2rem;
  aspect-ratio: 1/1;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.scan-hint {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.global-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-light),
    transparent
  );
}

.divider span {
  padding: 0 2rem;
}

.kofi-container {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  height: clamp(450px, 60vh, 500px);
  transform: translateZ(0);
}

#kofiframe {
  width: 100%;
  height: 100%;
  border: none;
}

.simple-footer {
  color: var(--text-muted);
  font-size: 1.2rem;
  opacity: 0.5;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .vip-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .vip-visual {
    position: static;
    font-size: 4rem;
    margin-top: 1rem;
    transform: none;
    display: block;
  }

  .method-card {
    padding: 2rem;
    max-width: 100%;
  }

  .qr-box {
    width: 150px;
    height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
