/* ============================================================================
   CSSDONASI - Tema gelap sama persis donasi.html
   ============================================================================ */

:root {
    --bg: #0a0f0d;
    --bg-secondary: #111a16;
    --fg: #f0f7f4;
    --fg-muted: #8fa89b;
    --accent: #34d399;
    --accent-glow: rgba(52, 211, 153, 0.35);
    --accent-warm: #fbbf24;
    --card: rgba(17, 26, 22, 0.75);
    --card-border: rgba(52, 211, 153, 0.15);
    --card-border-hover: rgba(52, 211, 153, 0.4);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.donasi-alamat {
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
    user-select: all;
    -webkit-touch-callout: default;
}

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

.bg-layer::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 65%);
    animation: blobMove1 18s ease-in-out infinite;
}

.bg-layer::after {
    content: '';
    position: absolute;
    bottom: -25%;
    right: -15%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.06) 0%, transparent 65%);
    animation: blobMove2 22s ease-in-out infinite;
}

@keyframes blobMove1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10%, 15%) scale(1.1); }
    66% { transform: translate(-5%, 8%) scale(0.95); }
}

@keyframes blobMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-12%, -10%) scale(1.05); }
    66% { transform: translate(8%, -15%) scale(1.1); }
}

.grid-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(52, 211, 153, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 211, 153, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.particles-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.25rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeSlideDown 0.8s ease-out both;
}

.badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    text-align: center;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    animation: fadeSlideDown 0.8s 0.15s ease-out both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--fg-muted);
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    text-align: center;
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    animation: fadeSlideDown 0.8s 0.3s ease-out both;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.donasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 1.25rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
}

.donasi-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: cardAppear 1s ease-out both;
}

.donasi-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.08), 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.donasi-ikon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 14px;
    margin: 0 auto 18px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    display: inline-block;
}

.donasi-nama {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fg);
    margin: 0 0 10px;
}

.donasi-label {
    font-size: 0.85rem;
    color: var(--fg-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.donasi-alamat {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--fg);
    word-break: break-all;
    margin: 10px 0;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px dashed rgba(52, 211, 153, 0.2);
    width: 100%;
}

.donasi-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--bg) !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
    width: auto;
}

.donasi-link.link {
    background: #fbbf24;
    color: var(--bg) !important;
}

.donasi-link.link:hover {
    background: #f59e0b;
}

.donasi-link:hover {
    background: #2dd4a8;
    color: var(--bg) !important;
    text-decoration: none;
}

.qrcode-container {
    margin: 14px 0 8px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.qrcode-img {
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.btn-copy {
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
}

.btn-copy.crypto {
    background: var(--accent);
    color: var(--bg);
}

.btn-copy.crypto:hover {
    background: #2dd4a8;
}

.btn-copy.link {
    background: #fbbf24;
    color: var(--bg);
}

.btn-copy.link:hover {
    background: #f59e0b;
}

.btn-copy:active {
    transform: scale(0.95);
}

.btn-copy.copied {
    background: #34d399 !important;
}

.tooltip-copied {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
    white-space: nowrap;
}

.crypto-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 8px;
}

.crypto-tag.btc { background: #f7931a; color: #fff; }
.crypto-tag.eth { background: #3c3c3d; color: #fff; }
.crypto-tag.etc { background: #66877f; color: #fff; }
.crypto-tag.dogecoin { background: #c2a633; color: #fff; }
.crypto-tag.saweria { background: #ff4d4d; color: #fff; }
.crypto-tag.kofi { background: #ff5e5b; color: #fff; }

.crypto-logo {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    display: inline-block;
}

.secondary-info {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    animation: cardAppear 1s 0.75s ease-out both;
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--fg-muted);
    font-size: 0.8rem;
}

.info-item .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.15);
}

.info-item .icon-circle i {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.footer-text {
    margin-top: 2.5rem;
    color: rgba(143, 168, 155, 0.5);
    font-size: 0.75rem;
    text-align: center;
    animation: cardAppear 1s 0.9s ease-out both;
    position: relative;
    z-index: 1;
}

.footer-text span {
    color: var(--accent);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

.mouse-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease, top 0.3s ease;
    display: none;
}

@media (min-width: 768px) {
    .mouse-glow { display: block; }
}

@media (max-width: 480px) {
    .donasi-card {
        padding: 2rem 1.5rem;
        border-radius: 1.25rem;
    }
    .secondary-info { gap: 1rem; }
    main { padding: 1.5rem 1rem; }
    .donasi-grid { gap: 16px; padding: 0 1rem 2rem; }
}

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