:root {
    --honey: #FFCA28;
    --honey-dark: #FFB300;
    --honey-glow: rgba(255, 202, 40, 0.4);
    --forest: #66BB6A;
    --amber: #FFB74D;
    --bg-dark: #0c1a0a;
    --bg-card: rgba(16, 36, 16, 0.75);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --border-honey: rgba(255, 202, 40, 0.15);
    --border-forest: rgba(102, 187, 106, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    overflow-x: hidden;
    color: var(--text-primary);
    background: var(--bg-dark);
}

/* Background */
.bg-fixed { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.bg-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; transform: scale(1.1); transition: transform 0.1s ease-out; }
.bg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(12,26,10,0.5) 0%, rgba(12,26,10,0.7) 50%, rgba(12,26,10,0.95) 100%); }

/* Fireflies */
.fireflies { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.firefly { position: absolute; bottom: -10px; background: var(--honey); border-radius: 50%; animation: ff linear infinite; filter: blur(1px); box-shadow: 0 0 8px var(--honey-glow); }
@keyframes ff { 0%{transform:translateY(0) translateX(0);opacity:0}5%{opacity:.8}50%{transform:translateY(-50vh) translateX(30px);opacity:.4}100%{transform:translateY(-100vh) translateX(-20px);opacity:0} }

/* Page */
.donate-page {
    position: relative; z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 110px 24px 60px;
}

/* Page Header */
.page-header { text-align: center; margin-bottom: 40px; }

.page-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px;
    background: rgba(255,202,40,0.06);
    border: 1px solid var(--border-honey);
    border-radius: 50px;
    font-size: 12px; font-weight: 600; color: var(--honey);
    margin-bottom: 16px;
}

.badge-dot { width: 6px; height: 6px; background: var(--honey); border-radius: 50%; box-shadow: 0 0 8px var(--honey-glow); }

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900;
    background: linear-gradient(135deg, var(--honey), var(--forest));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 8px;
}

.page-subtitle { font-size: 0.95rem; color: var(--text-secondary); }

/* Layout: Left + Right sidebar */
.donate-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-honey);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.card-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 18px;
}

.card-icon {
    width: 40px; height: 40px;
    background: rgba(255,202,40,0.1);
    border: 1px solid var(--border-honey);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--honey); font-size: 15px; flex-shrink: 0;
}

.card-icon.icon-green { background: rgba(102,187,106,0.1); border-color: var(--border-forest); color: var(--forest); }
.card-icon.icon-amber { background: rgba(255,183,77,0.1); border-color: rgba(255,183,77,0.15); color: var(--amber); }

.card-title { font-size: 0.95rem; font-weight: 700; }
.card-desc { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }

/* Input */
.input-field {
    width: 100%; padding: 13px 16px;
    border: 1px solid var(--border-honey);
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    color: var(--text-primary);
    font-size: 0.9rem; font-family: inherit;
    transition: var(--transition);
}
.input-field:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 3px rgba(255,202,40,0.08); }
.input-field::placeholder { color: rgba(255,255,255,0.2); }

/* Payment Tabs */
.payment-tabs { display: flex; gap: 10px; }
.payment-tab {
    flex: 1; padding: 14px;
    border: 1px solid var(--border-honey); border-radius: 12px;
    background: rgba(255,202,40,0.03);
    color: var(--text-secondary);
    font-size: 13px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit;
}
.payment-tab:hover { border-color: rgba(255,202,40,0.35); background: rgba(255,202,40,0.06); }
.payment-tab.active { border-color: var(--honey); background: rgba(255,202,40,0.1); color: var(--honey); }
.payment-tab i { font-size: 15px; }

.payment-content { display: none; }
.payment-content.active { display: block; }

/* Submit */
.submit-btn {
    width: 100%; padding: 15px;
    border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--honey), var(--honey-dark));
    color: #1a1a1a;
    font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(255,202,40,0.25);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,202,40,0.45); }

/* Giftcard */
.giftcard-item {
    background: rgba(255,202,40,0.03);
    border: 1px solid var(--border-honey);
    border-radius: 10px;
    padding: 14px; margin-bottom: 10px;
}
.giftcard-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.giftcard-item-title { font-size: 12px; color: var(--honey); font-weight: 600; }
.giftcard-remove-btn { background: none; border: none; color: #ff6b6b; cursor: pointer; font-size: 13px; padding: 2px; }
.giftcard-remove-btn:hover { color: #ff4444; }
.giftcard-inputs { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }

.add-giftcard-btn {
    width: 100%; padding: 11px;
    border: 2px dashed rgba(255,202,40,0.2); border-radius: 10px;
    background: none; color: var(--honey);
    font-size: 12px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    margin-bottom: 12px; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.add-giftcard-btn:hover { border-color: var(--honey); background: rgba(255,202,40,0.04); }

.giftcard-total {
    background: rgba(255,202,40,0.05);
    border: 1px solid var(--border-honey);
    border-radius: 10px;
    padding: 14px; text-align: center;
}
.giftcard-total-label { font-size: 11px; color: var(--honey); margin-bottom: 4px; }
.giftcard-total-value { font-size: 1.4rem; font-weight: 700; }

/* Sidebar */
.donate-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-honey);
    border-radius: 16px;
    padding: 24px;
}

.sidebar-icon {
    width: 38px; height: 38px;
    background: rgba(255,202,40,0.1);
    border: 1px solid var(--border-honey);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--honey); font-size: 15px;
    margin-bottom: 14px;
}

.sidebar-icon.icon-green { background: rgba(102,187,106,0.1); border-color: var(--border-forest); color: var(--forest); }
.sidebar-icon.icon-amber { background: rgba(255,183,77,0.1); border-color: rgba(255,183,77,0.15); color: var(--amber); }

.sidebar-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }

.sidebar-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 10px;
}

.sidebar-list li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}

.sidebar-list li::before {
    content: '';
    position: absolute; left: 0; top: 7px;
    width: 5px; height: 5px;
    background: var(--honey);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255,202,40,0.3);
}

.sidebar-help-text { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.5; }

.sidebar-link {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px;
    border: 1px solid var(--border-forest);
    border-radius: 10px;
    background: rgba(102,187,106,0.06);
    color: var(--forest);
    font-size: 0.82rem; font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.sidebar-link:hover { background: rgba(102,187,106,0.12); border-color: rgba(102,187,106,0.4); }

/* Modal */
.modal-overlay {
    display: none; position: fixed; z-index: 200;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.25s ease-out; }
@keyframes fadeIn { from{opacity:0}to{opacity:1} }

.modal-card {
    background: rgba(16,36,16,0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-honey);
    border-radius: 20px;
    padding: 40px; width: 90%; max-width: 420px;
    text-align: center; position: relative;
    animation: slideUp 0.3s ease-out;
}
.modal-card-sm { max-width: 380px; padding: 36px; }
@keyframes slideUp { from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)} }

.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-secondary); font-size: 16px; cursor: pointer; }
.modal-close:hover { color: var(--honey); }

.modal-icon {
    width: 52px; height: 52px;
    background: rgba(255,202,40,0.1);
    border: 1px solid var(--border-honey);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    color: var(--honey); font-size: 20px;
}

.modal-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 6px; }
.modal-desc { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 22px; }
.modal-card .input-field { margin-bottom: 16px; }
.modal-card .submit-btn { margin-bottom: 0; }

/* Alert */
.alert-icon {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 20px; font-weight: 700;
}
.alert-icon.error { background: rgba(255,68,68,0.15); color: #ff6b6b; }
.alert-icon.warning { background: rgba(255,202,40,0.15); color: var(--honey); }
.alert-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.alert-message { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 22px; }

/* Responsive */
@media (max-width: 900px) {
    .donate-layout {
        grid-template-columns: 1fr;
    }

    .donate-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card { flex: 1; min-width: 200px; }
}

@media (max-width: 600px) {
    .donate-page { padding: 90px 14px 40px; }
    .page-title { font-size: 1.5rem; }
    .payment-tabs { flex-direction: column; }
    .giftcard-inputs { grid-template-columns: 1fr; }
    .donate-sidebar { flex-direction: column; }
    .sidebar-card { min-width: auto; }
}