:root {
    --bg-color: #030303; 
    --text-color: #ffffff;
    --white-glow: rgba(255, 255, 255, 0.4);
}

body, html {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Noto Sans KR', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

#cursor-glow {
    position: fixed; top: 0; left: 0;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%; pointer-events: none; z-index: 9999;
}

#hero-split {
    width: 100%; height: 100vh;
    display: flex; background-color: var(--bg-color);
}

.hero-left {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start;
    padding-left: 10%; gap: 80px; z-index: 10;
}

.main-text {
    font-size: 4.5rem; font-weight: 600; letter-spacing: 2px;
    margin: 0; color: #fff; text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.white-btn {
    padding: 15px 40px; font-size: 1.2rem; font-weight: 600;
    color: #fff; background: transparent;
    border: 2px solid #fff; border-radius: 50px; 
    cursor: pointer; letter-spacing: 1px; transition: all 0.3s ease;
}
.white-btn:hover {
    color: #000; background-color: #fff; box-shadow: 0 0 20px var(--white-glow);
}

.hero-right { flex: 1.2; height: 100vh; }
.image-wrapper { width: 100%; height: 100%; }
.image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
    opacity: 0.75; 
}

#coin-selection {
    width: 100%; min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; background-color: #050505; padding: 50px 0;
}

.main-title { font-size: 2.5rem; font-weight: 500; color: #fff; }

.coin-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px; width: 85%; max-width: 1100px;
}

.coin-card {
    border: 1px solid rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.02);
    border-radius: 15px; padding: 20px; display: flex; flex-direction: column;
    justify-content: center; align-items: center; cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.coin-card:hover, .coin-card.selected {
    transform: translateY(-5px); border-color: var(--hover-color, #fff);
    box-shadow: 0 0 20px var(--hover-color, var(--white-glow));
}

.coin-logo-placeholder {
    width: 50px; height: 50px; border-radius: 50%; background-color: #222;
    margin-bottom: 15px; display: flex; justify-content: center; align-items: center;
    color: rgba(255, 255, 255, 0.9); font-size: 0.8rem; font-weight: bold;
}

.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(5px); z-index: 10000;
    justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.show { display: flex; opacity: 1; }

.modal-content {
    background: #111; border: 1px solid #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1); border-radius: 20px;
    padding: 40px; width: 90%; max-width: 500px; text-align: center; position: relative;
}

.close-btn {
    position: absolute; top: 15px; right: 20px; background: none; border: none;
    color: #fff; font-size: 2rem; cursor: pointer; transition: color 0.3s;
}
.close-btn:hover { color: #888; }

.input-group { display: flex; flex-direction: column; text-align: left; margin-bottom: 25px; }
.input-group label { color: #ddd; margin-bottom: 10px; font-size: 1rem; font-weight: 500; }
.input-group input {
    padding: 15px; background: #000; border: 1px solid #444; color: #fff;
    border-radius: 10px; font-size: 1rem; outline: none; transition: border-color 0.3s;
}
.input-group input:focus { border-color: #fff; }

.network-btn-group { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.net-btn {
    background: #222; border: 1px solid #444; color: #fff;
    padding: 10px 15px; border-radius: 10px; cursor: pointer; transition: all 0.2s; font-size: 0.9rem; font-weight: 500;
}
.net-btn:hover, .net-btn.active { border-color: #fff; box-shadow: 0 0 10px #fff; }

.qr-placeholder {
    width: 160px; height: 160px; background: #222; margin: 0 auto 20px;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: #555; border: 1px solid #333; overflow: hidden;
}
.qr-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.address-box { display: flex; justify-content: center; width: 100%; }
.address-box input {
    width: 100%; padding: 15px; text-align: center; cursor: pointer;
    background: rgba(255, 255, 255, 0.05); border: 1px solid #555;
    color: #fff; border-radius: 10px; font-family: monospace; font-size: 1rem;
}

.signature-text {
    margin-top: 35px; font-family: 'Brush Script MT', 'cursive', serif;
    font-size: 2.8rem; color: #fff; opacity: 0.8; letter-spacing: 2px;
}

#donation-history {
    width: 100%; min-height: 50vh; display: flex; flex-direction: column;
    align-items: center; background-color: #030303; padding: 100px 0; border-top: 1px solid #222;
}
.history-table-container {
    width: 80%; max-width: 900px; background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333; border-radius: 15px; padding: 20px; overflow-x: auto;
}
.history-table { width: 100%; border-collapse: collapse; text-align: center; }
.history-table th { color: #888; font-size: 1.1rem; font-weight: 500; padding: 15px; border-bottom: 2px solid #444; }
.history-table td { color: #fff; font-size: 1.2rem; font-weight: 600; padding: 20px 15px; border-bottom: 1px solid #222; }

#toast-container {
    position: fixed; top: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 10001; pointer-events: none;
}
.capsule-toast {
    background: #fff; color: #000; padding: 15px 35px; border-radius: 50px;
    font-size: 1.1rem; font-weight: 700; box-shadow: 0 0 20px rgba(255,255,255,0.4);
    animation: slideInRight 0.5s ease forwards;
}
@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }