@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
  --background-color: #050505;
  --bar-bg-color: #1c1c1c;
  --form-bg-color: #121212;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --accent-cyan: #00f2ea;
  --accent-red: #ff0000;
  --border-color: #333333;
}

@keyframes price-glow {
  0% { text-shadow: 0 0 5px var(--accent-cyan); }
  50% { text-shadow: 0 0 15px var(--accent-cyan), 0 0 25px var(--accent-cyan); }
  100% { text-shadow: 0 0 5px var(--accent-cyan); }
}

@keyframes moveBlob1 { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(40vw, -30vh); } 50% { transform: translate(-20vw, 20vh); } 75% { transform: translate(30vw, 30vh); } }
@keyframes moveBlob2 { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-30vw, 20vh); } 50% { transform: translate(40vw, -10vh); } 75% { transform: translate(-20vw, -30vh); } }
@keyframes moveBlob3 { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(10vw, 40vh); } 50% { transform: translate(-40vw, -20vh); } 75% { transform: translate(20vw, -10vh); } }
.background-aurora { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; filter: blur(80px); }
.blob { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.04); }
.blob:nth-child(1) { width: 50vw; height: 50vw; top: -10vh; left: -10vw; animation: moveBlob1 35s infinite alternate; }
.blob:nth-child(2) { width: 40vw; height: 40vw; bottom: 0; right: -20vw; animation: moveBlob2 30s infinite alternate; }
.blob:nth-child(3) { width: 45vw; height: 45vw; top: 20vh; right: -10vw; animation: moveBlob3 25s infinite alternate; }

body { font-family: 'Inter', sans-serif; background-color: var(--background-color); color: var(--text-primary); display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; box-sizing: border-box; overflow-x: hidden; position: relative; }
.page-container { max-width: 600px; width: 100%; position: relative; z-index: 1; }

@keyframes slideUpFadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.channel-bar, .navigation-bar, .content-wrapper, .page-footer { opacity: 0; animation: slideUpFadeIn 0.7s ease-out forwards; }
.navigation-bar { animation-delay: 0.1s; }
.content-wrapper { animation-delay: 0.2s; }
.page-footer { animation-delay: 0.3s; }

@keyframes rotateCube { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(360deg); } }
.cube-container { position: absolute; top: 50%; left: 100%; transform: translateY(-50%); padding-left: 120px; perspective: 1000px; opacity: 0; animation: slideUpFadeIn 1s ease-out 0.5s forwards; }
.cube { width: 100px; height: 100px; position: relative; transform-style: preserve-3d; animation: rotateCube 20s infinite linear; }
.face { position: absolute; width: 100px; height: 100px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.02); }
.front { transform: rotateY(0deg) translateZ(50px); } .back { transform: rotateY(180deg) translateZ(50px); } .right { transform: rotateY(90deg) translateZ(50px); }
.left { transform: rotateY(-90deg) translateZ(50px); } .top { transform: rotateX(90deg) translateZ(50px); } .bottom { transform: rotateX(-90deg) translateZ(50px); }

.channel-bar { display: flex; justify-content: space-between; align-items: center; background-color: var(--bar-bg-color); padding: 12px 20px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5); }
.channel-info { display: flex; align-items: center; gap: 15px; }
.channel-logo { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); object-fit: cover; }
.channel-text h3 { margin: 0; font-size: 1.2em; font-weight: 700; color: var(--text-primary); }
.channel-text p { margin: 0; color: var(--text-secondary); font-size: 0.9em; }
.subscribe-button { background-color: var(--accent-red); color: #fff; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 700; transition: transform 0.2s ease, box-shadow 0.2s ease; white-space: nowrap; }
.subscribe-button:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 0, 0, 0.6); }

.navigation-bar { display: flex; justify-content: center; gap: 20px; margin: 25px 0; }
.navigation-bar a { color: var(--text-secondary); text-decoration: none; font-weight: 700; font-size: 1em; padding: 10px 5px; border-bottom: 2px solid transparent; transition: all 0.2s ease; }
.navigation-bar a:hover { color: var(--text-primary); }
.navigation-bar a.active { color: var(--text-primary); border-bottom-color: var(--accent-cyan); }

.content-wrapper { background-color: var(--form-bg-color); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.content-wrapper h2 { text-align: center; color: var(--text-primary); font-weight: 900; margin-top: 0; margin-bottom: 30px; }
#welcome-view p { color: var(--text-secondary); font-size: 1.1em; line-height: 1.7; margin-bottom: 20px; }
#welcome-view p:last-child { margin-bottom: 0; }

.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--text-secondary); }
input, textarea { width: 100%; padding: 12px; background-color: var(--bar-bg-color); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-primary); font-size: 16px; box-sizing: border-box; transition: border-color 0.3s, box-shadow 0.3s; }
button[type="submit"] { width: 100%; padding: 15px; background: var(--accent-red); border: none; border-radius: 6px; color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
#status-message { text-align: center; margin-top: 20px; font-weight: 700; min-height: 20px; }
#status-message.success { color: var(--accent-cyan); } #status-message.error { color: var(--accent-red); }

#shop-view .shop-section { border-top: 1px solid var(--border-color); padding-top: 30px; margin-top: 30px; }
#shop-view .shop-section:first-child { border-top: none; padding-top: 0; margin-top: 0; }
#shop-view h3 { font-size: 1.2em; color: var(--text-secondary); text-align: center; margin-bottom: 25px; }
.product-card { display: flex; gap: 20px; background-color: var(--bar-bg-color); padding: 20px; border-radius: 8px; align-items: center; }
.product-image { width: 120px; height: 120px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.product-info { display: flex; flex-direction: column; }
.product-info h4 { margin: 0 0 10px 0; font-size: 1.2em; color: var(--text-primary); }
.product-description { font-size: 0.9em; color: var(--text-secondary); line-height: 1.6; margin: 0 0 15px 0; }
.product-purchase { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-size: 1.5em; font-weight: 900; color: var(--accent-cyan); animation: price-glow 2s infinite ease-in-out; }
.product-buy-button { background-color: var(--accent-red); color: #fff; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 700; transition: transform 0.2s ease; }
.product-buy-button:hover { transform: scale(1.05); }
.coming-soon { text-align: center; color: var(--text-secondary); font-style: italic; padding: 20px 0; }

.checkbox-group { display: flex; align-items: center; margin-top: 5px; }
.checkbox-group label { color: var(--text-secondary); font-weight: 400; cursor: pointer; position: relative; padding-left: 30px; line-height: 20px; display: block; margin-bottom: 0; }
.checkbox-group input[type="checkbox"] { display: none; }
.checkbox-group label::before { content: ''; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background-color: var(--bar-bg-color); border: 1px solid var(--border-color); border-radius: 4px; transition: all 0.2s ease; }
.checkbox-group input[type="checkbox"]:checked + label::before { border-color: var(--accent-cyan); background-color: #112f2e; }
.checkbox-group .checkmark-svg { position: absolute; left: -1px; top: -1px; width: 22px; height: 22px; }
.checkbox-group .checkmark-svg path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.3s ease-in-out; }
.checkbox-group input[type="checkbox"]:checked + label .checkmark-svg path { stroke-dashoffset: 0; }

.page-footer { text-align: center; margin-top: 40px; }
.page-footer p { color: #777; font-size: 0.9em; }
.page-footer svg { margin: 0 5px 0 8px; vertical-align: -3px; fill: #777; }

#donor-list-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#donor-list-overlay.visible { opacity: 1; pointer-events: auto; }
.donor-list-content { background-color: var(--form-bg-color); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 10px 40px rgba(0,0,0,0.6); width: 100%; max-width: 900px; position: relative; transform: scale(0.95); transition: transform 0.3s ease; }
#donor-list-overlay.visible .donor-list-content { transform: scale(1); }
.close-button { position: absolute; top: 15px; right: 15px; background: none; border: none; color: var(--text-secondary); font-size: 2.5rem; line-height: 1; cursor: pointer; transition: color 0.2s ease, transform 0.2s ease; }
.close-button:hover { color: var(--text-primary); transform: scale(1.1); }
.donor-list-content h2 { text-align: center; margin-top: 0; margin-bottom: 25px; font-weight: 900; }
.donor-list-content h3 { margin-top: 0; margin-bottom: 20px; font-weight: 700; color: var(--text-primary); }
.donor-list-content h4 { margin-top: 0; margin-bottom: 10px; font-weight: 700; color: var(--accent-cyan); }
.donor-grid { display: flex; gap: 40px; margin-top: 20px; }
.donor-ranking { flex: 1; }
.donation-options { flex: 1; border-left: 1px solid var(--border-color); padding-left: 40px; }
.donation-section { text-align: center; }
.donation-section:not(:last-child) { margin-bottom: 40px; }
.donation-section p { color: var(--text-secondary); line-height: 1.6; margin: 0 auto 20px auto; }
.paypal-button { display: inline-block; background-color: var(--accent-cyan); color: #000; padding: 12px 30px; border-radius: 6px; text-decoration: none; font-weight: 700; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.paypal-button:hover { transform: scale(1.05); box-shadow: 0 0 15px var(--accent-cyan); }
.tierheim-image { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; border: 2px solid var(--border-color); margin-bottom: 20px; }
.tierheim-button { background-color: #0070ba; color: #fff; }
.tierheim-button:hover { box-shadow: 0 0 15px #0070ba; }

.donor-table { width: 100%; border-collapse: collapse; }
.donor-table th, .donor-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
.donor-table th { color: var(--text-secondary); font-size: 0.9em; }
.donor-table td { font-weight: 700; }
.rank-1 { color: #FFD700; font-weight: 900; text-shadow: 0 0 5px #FFD700; }
.rank-2 { color: #C0C0C0; font-weight: 900; text-shadow: 0 0 5px #C0C0C0; }
.rank-3 { color: #CD7F32; font-weight: 900; text-shadow: 0 0 5px #CD7F32; }

@media (max-width: 950px) { .cube-container { display: none; } }
@media (max-width: 768px) {
  .donor-grid { flex-direction: column; gap: 30px; }
  .donation-options { border-left: none; padding-left: 0; border-top: 1px solid var(--border-color); padding-top: 30px; }
  .product-card { flex-direction: column; }
}