/* --- Gift Button & Modal (from previous step, with improvements) --- */
.gift-artist-box { text-align: center; margin: 25px 0; }
.gift-artist-btn { background: linear-gradient(90deg, #ffc600, #ff8c00); border: none; color: #000; font-weight: 700; padding: 12px 24px; border-radius: 8px; cursor: pointer; transition: all 0.25s ease; font-size: 1rem; }
.gift-artist-btn:hover { background: linear-gradient(90deg, #ffdb4d, #ffa500); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

.gift-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(5px); justify-content: center; align-items: center; z-index: 10000; font-family: 'Poppins', sans-serif; }
.gift-modal-content { background: #25003e; color: #fff; padding: 30px; border-radius: 15px; border: 1px solid #ffc600; text-align: center; width: 90%; max-width: 380px; position: relative; box-shadow: 0 0 25px rgba(255, 198, 0, 0.3); }
.gift-modal-close { position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; color: #ffc600; cursor: pointer; transition: color 0.2s ease; }
.gift-modal-close:hover { color: #fff; }
.gift-modal-content h3 { color: #ffc600; font-size: 1.5rem; margin-top: 0; margin-bottom: 10px; }
.gift-modal-content p { opacity: 0.9; margin-bottom: 25px; }
#giftForm label { display: block; font-weight: 600; margin-bottom: 10px; color: #fff; }
#giftForm select { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #ffc600; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1rem; margin-bottom: 25px; cursor: pointer; }
#giftForm select option { background: #25003e; color: #fff; }
#payGiftBtn { background: #ffc600; border: none; color: #25003e; font-weight: 700; padding: 12px 25px; border-radius: 8px; cursor: pointer; transition: all 0.25s ease; width: 100%; font-size: 1rem; }
#payGiftBtn:hover { background: #ffdb4d; box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }

/* --- Artist & Gifter Dashboard Styles --- */
.jsag-dashboard-wrap { background: #f9f9f9; border-radius: 12px; padding: 25px; max-width: 900px; margin: 20px auto; font-family: 'Poppins', sans-serif; color: #333; }
.jsag-dashboard-wrap h2 { color: #25003e; margin-top: 0; border-bottom: 2px solid #ffc600; padding-bottom: 10px; }
.jsag-dashboard-wrap h3 { color: #25003e; margin-top: 30px; }

.jsag-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 25px 0; }
.jsag-kpi-box { background: #fff; border-radius: 8px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.jsag-kpi-box .kpi-label { display: block; font-size: 0.9rem; color: #555; margin-bottom: 8px; }
.jsag-kpi-box .kpi-value { display: block; font-size: 1.7rem; font-weight: 700; color: #25003e; }
.jsag-kpi-box .kpi-value.highlight { color: #28a745; }

.jsag-section { background: #fff; padding: 20px; border-radius: 8px; margin-top: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }

.payout-info, .payout-notice { background: #e9e2f1; color: #25003e; padding: 15px; border-radius: 6px; border-left: 4px solid #8224e3; margin-top: 0; }
#payoutRequestForm textarea { width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #ccc; margin: 10px 0; font-family: inherit; }
#payoutRequestForm button { background: #25003e; color: #fff; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; }
#payout-response-message { padding: 10px; border-radius: 5px; margin-bottom: 15px; display: none; }
#payout-response-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
#payout-response-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.jsag-history-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.jsag-history-table th, .jsag-history-table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
.jsag-history-table th { background: #f1f1f1; }
.jsag-history-table .status-pending { background-color: #ffc107; color: #000; padding: 3px 8px; border-radius: 4px; font-size: 0.8em; }
.jsag-history-table .status-paid { background-color: #28a745; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 0.8em; }
