/* CSS dari member2.html (dengan beberapa penyesuaian) */
:root { --primary-color: #4a90e2; --secondary-color: #357abd; --accent-color: #ff6b6b; --success-color: #28a745; --dark-color: #333; --light-color: #f8f9fa; --shadow: 0 4px 20px rgba(0,0,0,0.1); --radius: 15px; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); color: var(--dark-color); }
#app { max-width: 400px; margin: 0 auto; background: #FFF; min-height: 100vh; position: relative; }
.app-container { overflow-y: auto; height: 100vh; -webkit-overflow-scrolling: touch; }
.app-container::-webkit-scrollbar { display: none; }
/* Header */
.header { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; padding: 20px; text-align: center; position: sticky; top: 0; z-index: 100; }
.back-btn { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: white; font-size: 20px; cursor: pointer; }
.header h1 { font-size: 22px; margin: 0; }
.header .subtitle { font-size: 13px; opacity: 0.9; }
/* Transisi Halaman */
.page-enter-active, .page-leave-active { transition: opacity 0.3s ease, transform 0.3s ease; }
.page-enter-from { opacity: 0; transform: translateX(20px); }
.page-leave-to { opacity: 0; transform: translateX(-20px); }
/* Login */
.login-form { padding: 30px 20px; }
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 15px; border: 2px solid #E1E5E9; border-radius: var(--radius); font-size: 16px; background: #F8F9FA; }
.btn { width: 100%; padding: 15px; border: none; border-radius: var(--radius); font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; }
/* Dashboard */
.dashboard { padding: 20px; }
.member-card { background: linear-gradient(135deg, var(--accent-color), #ee5a52); color: white; border-radius: var(--radius); padding: 25px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3); }
.member-name { font-size: 22px; font-weight: 700; }
.point-balance { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.point-value { font-size: 28px; font-weight: 700; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.menu-item { background: white; border: 1px solid #E9ECEF; border-radius: var(--radius); padding: 20px; text-align: center; cursor: pointer; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
.menu-icon { font-size: 32px; margin-bottom: 10px; }
.btn-secondary { background: #FBE9D7; color: #6C757D; border: 1px solid #E9ECEF; margin-top: 20px; }
/* Halaman Konten (Riwayat, Tambah Poin, dll) */
.content-section { padding: 20px 5px 20px 10px; }
.loading { text-align: center; padding: 50px; color: #888; }
.spinner { width: 30px; height: 30px; border: 3px solid #F3F3F3; border-top: 3px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px; }
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Riwayat */
.history-item { background: white; border-radius: var(--radius); padding: 15px; margin-bottom: 10px; border-left: 4px solid; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.history-item.add-point { border-left-color: var(--success-color); }
.history-item.redeem { border-left-color: var(--danger-color); }
.history-header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.history-points { font-size: 18px; font-weight: 700; }
/* Tambah Poin */
.qr-container { text-align: center; padding: 30px; background: #F8F9FA; border-radius: var(--radius); }
.qr-code { display: inline-block; padding: 20px; background: white; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
/* Hadiah (Rewards) - Diambil dari reward.html */
.reward-card { display: flex; background: #FFF; border-radius: var(--radius); margin-bottom: 7px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid #EEF1F4; }
.reward-image { width: 100px; height: 120px; object-fit: cover; flex-shrink: 0; background-color: #F0F0F0; }
.reward-details { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.reward-title { font-weight: 600; font-size: 0.95rem; }
.reward-product { font-size: 1rem; color: #666; margin-bottom: -1px; }
.price-normal { text-decoration: line-through; color: #999; }
.price-offer { font-weight: 700; color: var(--accent-color); }
.points-badge, .free-badge { background-color: #EAF3FF; color: var(--primary-color); font-weight: 600; padding: 4px 8px; border-radius: 20px; font-size: 1.1rem; display: inline-block; }
.free-badge { background-color: #D4EDDA; color: var(--success-color); font-size: 18px; }
.redeem-button { margin-top: 10px; background: var(--primary-color); color: white; border: none; width: 100%; padding: 10px; border-radius: 8px; }
/* Info & Promo (Tampilan Baru) */
.promo-card { border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow); }
.promo-image { width: 100%; height: 487px; object-fit: cover; display: block; }
.info-card { background: white; border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08); }
.info-title { font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
/* Modal QR */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: white; padding: 25px; border-radius: var(--radius); text-align: center; width: 80%; max-width: 300px; }
