@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background: #f1f5f9; display: flex; justify-content: center; min-height: 100vh; }
.mobile-container { width: 100%; max-width: 480px; background: #f8fafc; min-height: 100vh; position: relative; box-shadow: 0 0 40px rgba(0,0,0,0.05); display: flex; flex-direction: column; overflow-x: hidden; }

/* === LOGIN STYLES === */
.header-banner { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); padding: 50px 30px 40px; color: white; text-align: center; border-radius: 0 0 30px 30px; position: relative; overflow: hidden; }
.header-banner h1 { font-size: 28px; font-weight: 800; margin-bottom: 5px; position: relative; z-index: 2; }
.header-banner p { font-size: 14px; color: #94a3b8; font-weight: 500; position: relative; z-index: 2; }
.header-banner::after { content: ''; position: absolute; width: 200px; height: 200px; background: rgba(255,255,255,0.05); border-radius: 50%; top: -50px; right: -50px; z-index: 1; }
.auth-content { padding: 30px; flex: 1; margin-top: -30px; position: relative; z-index: 10; }
.tab-container { display: flex; background: #f8fafc; border-radius: 16px; padding: 6px; margin-bottom: 25px; border: 1px solid #e2e8f0; }
.tab-btn { flex: 1; padding: 12px; text-align: center; font-size: 14px; font-weight: 700; color: #64748b; border-radius: 12px; cursor: pointer; transition: 0.3s; }
.tab-btn.active { background: #fff; color: #0f172a; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.form-section { display: none; animation: fadeIn 0.3s ease; }
.form-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.input-group { position: relative; margin-bottom: 20px; }
.input-group i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 20px; transition: 0.3s; }
.form-control { width: 100%; padding: 16px 20px 16px 50px; border: 2px solid #e2e8f0; border-radius: 16px; font-size: 15px; font-weight: 600; color: #0f172a; background: #fff; outline: none; transition: 0.3s; }
.form-control:focus { background: #fff; border-color: #059669; box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1); }
.form-control:focus + i, .input-group:focus-within i { color: #059669; }
.btn-primary { width: 100%; background: #059669; color: white; border: none; padding: 18px; border-radius: 16px; font-size: 16px; font-weight: 800; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; box-shadow: 0 10px 20px rgba(5, 150, 105, 0.2); }
.btn-primary:active { transform: scale(0.98); }
.btn-trainer { background: #2563eb; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2); }
.form-control.trainer-input:focus { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.form-control.trainer-input:focus + i, .trainer-group:focus-within i { color: #2563eb; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; padding: 15px; border-radius: 12px; margin-bottom: 20px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.help-text { text-align: center; margin-top: 30px; font-size: 13px; color: #64748b; font-weight: 500; line-height: 1.6; }

/* === DASHBOARD PORTAL STYLES === */
.portal-header { padding: 30px 25px 20px; display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 0 0 24px 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); margin-bottom: 20px; position: sticky; top: 0; z-index: 50;}
.user-greeting h2 { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 2px;}
.user-greeting p { font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;}
.user-avatar { width: 45px; height: 45px; border-radius: 50%; background: #e0f2fe; color: #0284c7; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; border: 2px solid #bae6fd;}

.portal-content { padding: 0 25px 90px; flex: 1; overflow-y: auto;}

/* Card Member Digital */
.card-digital { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border-radius: 20px; padding: 25px; color: white; position: relative; overflow: hidden; margin-bottom: 25px; box-shadow: 0 15px 30px rgba(15, 23, 42, 0.2); }
.card-digital::after { content: ''; position: absolute; width: 150px; height: 150px; background: rgba(255,255,255,0.05); border-radius: 50%; top: -30px; right: -30px; }
.gym-title { font-size: 12px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 15px; display: flex; align-items: center; gap: 6px; }
.member-name { font-size: 22px; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; }
.qr-box { background: white; padding: 10px; border-radius: 12px; display: inline-block; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.qr-box img { width: 110px; height: 110px; display: block; }
.card-flex { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 2; }
.status-badge { background: rgba(5, 205, 153, 0.2); color: #10b981; padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(16, 185, 129, 0.3);}
.status-expired { background: rgba(239, 68, 68, 0.2); color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }

/* Statistik Sisa Sesi/Hari */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; }
.stat-box { background: #fff; padding: 20px; border-radius: 20px; border: 1px solid #e2e8f0; box-shadow: 0 4px 10px rgba(0,0,0,0.02); display: flex; align-items: center; gap: 15px; }
.stat-icon { width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.stat-box span { display: block; font-size: 12px; color: #64748b; font-weight: 700; margin-bottom: 2px; }
.stat-box strong { display: block; font-size: 18px; font-weight: 800; color: #0f172a; }

/* Riwayat Checkin */
.section-title { font-size: 16px; font-weight: 800; color: #0f172a; margin-bottom: 15px; display: flex; align-items: center; gap: 8px;}
.history-list { background: #fff; border-radius: 20px; border: 1px solid #e2e8f0; padding: 10px 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #f1f5f9; }
.history-item:last-child { border-bottom: none; }
.history-info strong { display: block; font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 3px;}
.history-info span { font-size: 12px; color: #64748b; }
.history-time { font-size: 13px; font-weight: 800; color: #059669; background: #ecfdf5; padding: 6px 12px; border-radius: 8px; border: 1px solid #a7f3d0;}

/* Bottom Navigation Bar */
.bottom-nav { position: fixed; bottom: 0; width: 100%; max-width: 480px; background: #fff; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-around; padding: 12px 15px 25px; z-index: 100; box-shadow: 0 -5px 20px rgba(0,0,0,0.03); }
.nav-item { text-align: center; color: #94a3b8; text-decoration: none; font-size: 11px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: 0.3s; }
.nav-item i { font-size: 24px; }
.nav-item.active { color: #059669; }
.nav-item:hover { color: #059669; }

/* === INFORMASI PERSONAL === */
.info-panel-portal { background: #fff; border-radius: 20px; padding: 5px 20px; margin-bottom: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); border: 1px solid #e2e8f0; }
.info-row { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px dashed #f1f5f9; }
.info-row:last-child { border-bottom: none; }
.info-icon { width: 36px; height: 36px; border-radius: 12px; background: #f8fafc; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.info-text span { display: block; font-size: 11px; color: #94a3b8; font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
.info-text strong { display: block; font-size: 14px; color: #0f172a; word-break: break-word;}

/* === TOAST NOTIFICATION (PENGGANTI ALERT) === */
.custom-toast { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 12px 24px; border-radius: 50px; font-size: 13px; font-weight: 700; box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); z-index: 9999; display: flex; align-items: center; gap: 8px; width: max-content; max-width: 90%; opacity: 0; pointer-events: none;}
.custom-toast.show { bottom: 90px; opacity: 1; }