:root {
    --primary: #E11D48;
    --primary-dark: #BE123C;
    --secondary: #FFE4E6;
    --bg-main: #F8FAFC;
    --white: #FFFFFF;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --shadow: 0 8px 24px rgba(225, 29, 72, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background: #F1F5F9; color: var(--text-dark); }
.hidden { display: none !important; }

.auth-wrapper {
    min-height: 100vh; background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
    display: flex; justify-content: center; align-items: center; padding: 20px;
}
.auth-card { background: var(--white); width: 100%; max-width: 420px; padding: 32px; border-radius: 24px; box-shadow: var(--shadow); }
.brand-header { text-align: center; margin-bottom: 22px; }
.brand-header h1 { color: var(--primary); font-size: 30px; font-weight: 800; }
.brand-header p { color: var(--text-muted); font-size: 11px; letter-spacing: 2px; font-weight: 700; }

.auth-tabs { display: flex; background: #FFF1F2; padding: 5px; border-radius: 12px; margin-bottom: 20px; }
.tab-btn { flex: 1; padding: 10px; border: none; background: transparent; font-weight: 700; color: var(--text-muted); border-radius: 9px; cursor: pointer; }
.tab-btn.active { background: var(--primary); color: var(--white); }

.input-group { margin-bottom: 14px; text-align: left; }
.input-group label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; color: #334155; }
.input-group input, .input-group select { width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; outline: none; }
.input-group input:focus, .input-group select:focus { border-color: var(--primary); }

.pass-wrap { position: relative; }
.pass-wrap span { position: absolute; right: 12px; top: 13px; font-size: 12px; color: var(--primary); font-weight: 700; cursor: pointer; }

.otp-section { background: #FFF1F2; padding: 12px; border-radius: 12px; margin-bottom: 15px; border: 1px dashed var(--primary); }
.otp-row { display: flex; gap: 8px; margin-top: 6px; }

.btn-primary { background: var(--primary); color: var(--white); border: none; padding: 12px 18px; border-radius: 12px; font-weight: 700; cursor: pointer; }
.btn-secondary { background: var(--secondary); color: var(--primary); border: none; padding: 12px 18px; border-radius: 12px; font-weight: 700; cursor: pointer; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); padding: 12px; border-radius: 12px; font-weight: 700; cursor: pointer; }
.btn-white { background: var(--white); color: var(--primary); border: none; padding: 8px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.full-btn { width: 100%; }

.alert-box { padding: 10px; border-radius: 10px; font-size: 13px; margin-bottom: 15px; text-align: center; background: #FFE4E6; color: #BE123C; font-weight: 700; }

.app-container { max-width: 600px; margin: 0 auto; min-height: 100vh; background: var(--bg-main); padding-bottom: 85px; box-shadow: 0 0 40px rgba(0,0,0,0.05); }
.top-header { background: linear-gradient(135deg, var(--primary), #FB7185); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; color: var(--white); }
.brand-pill { background: rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 20px; font-weight: 800; font-size: 16px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.vip-badge-top { background: #FBBF24; color: #78350F; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 800; }
.icon-btn { background: rgba(255,255,255,0.2); border: none; color: var(--white); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; }

.tab-content { padding: 16px; }
.company-banner { position: relative; border-radius: 18px; overflow: hidden; height: 185px; margin-bottom: 16px; box-shadow: var(--shadow); }
.company-banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.75)); padding: 12px 16px; color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 1px; }

.three-wallet-card { background: linear-gradient(135deg, #BE123C, #E11D48); color: var(--white); border-radius: 18px; padding: 18px 10px; display: flex; justify-content: space-around; align-items: center; text-align: center; margin-bottom: 16px; box-shadow: var(--shadow); }
.wallet-col h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.wallet-col p { font-size: 12px; font-weight: 600; }
.wallet-col small { font-size: 10px; opacity: 0.8; display: block; }
.wallet-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.25); }

.quick-grid { background: var(--white); border-radius: 18px; padding: 18px 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; margin-bottom: 16px; box-shadow: var(--shadow); }
.q-item { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.q-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--white); font-weight: 800; }
.bg-amber { background: #F59E0B; } .bg-rose { background: #E11D48; } .bg-orange { background: #F97316; } .bg-purple { background: #8B5CF6; }
.q-item span { font-size: 12px; font-weight: 700; color: var(--text-dark); }

.sim-bar { background: #FEF3C7; border: 1px solid #F59E0B; padding: 10px 14px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.btn-small-rose { background: var(--primary); color: var(--white); border: none; padding: 6px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }

.white-card { background: var(--white); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; text-align: left; }
.white-card h4, .white-card h3 { font-size: 15px; margin-bottom: 12px; color: var(--text-dark); border-left: 4px solid var(--primary); padding-left: 10px; }

.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.cat-pills { display: flex; gap: 8px; }
.cat-btn { padding: 8px 14px; border-radius: 20px; border: none; background: var(--white); font-weight: 700; font-size: 12px; cursor: pointer; color: var(--text-muted); }
.cat-btn.active { background: var(--primary); color: var(--white); }

.plan-card { background: var(--white); border-radius: 20px; overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow); border: 1px solid var(--border); text-align: left; }
.plan-img-box { position: relative; height: 160px; }
.plan-img-box img { width: 100%; height: 100%; object-fit: cover; }
.vip-tag { position: absolute; top: 12px; left: 12px; background: #F59E0B; color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 800; }
.days-tag { position: absolute; top: 12px; right: 12px; background: rgba(15,23,42,0.75); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }

.plan-details { padding: 18px; }
.plan-details h3 { font-size: 18px; margin-bottom: 12px; }
.plan-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; background: #FFF1F2; padding: 12px; border-radius: 12px; }
.metric span { font-size: 11px; color: var(--text-muted); display: block; }
.metric strong { font-size: 16px; color: var(--primary); }

.vip-hero-card { background: linear-gradient(135deg, #F59E0B, #D97706); color: var(--white); padding: 20px; border-radius: 18px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; text-align: left; }
.vip-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); text-align: left; }

.invite-banner { background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: var(--white); padding: 20px; border-radius: 18px; margin-bottom: 16px; text-align: left; }
.invite-banner p { font-size: 13px; margin: 10px 0 15px; line-height: 1.5; }
.copy-box { background: rgba(255,255,255,0.15); padding: 10px 14px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; }

.account-header-card { background: linear-gradient(135deg, var(--primary), #9F1239); color: var(--white); padding: 22px; border-radius: 20px; margin-bottom: 16px; text-align: left; }
.acc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.acc-avatar { width: 56px; height: 56px; background: var(--white); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; }
.id-pill, .vip-pill { background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 12px; font-size: 12px; margin-right: 6px; }
.acc-balances { display: flex; justify-content: space-around; text-align: center; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 14px; }
.acc-balances strong { display: block; font-size: 16px; }
.acc-balances span { font-size: 11px; opacity: 0.85; }

.act-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; text-align: left; }

.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 600px; background: var(--white); display: flex; justify-content: space-around; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); z-index: 100; }
.b-nav { background: none; border: none; display: flex; flex-direction: column; align-items: center; font-size: 18px; color: var(--text-muted); cursor: pointer; }
.b-nav span { font-size: 11px; font-weight: 700; margin-top: 2px; }
.b-nav.active { color: var(--primary); }
.center-vip { background: var(--primary); color: var(--white) !important; width: 52px; height: 52px; border-radius: 50%; justify-content: center; margin-top: -22px; box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4); }

.admin-container { max-width: 1000px; margin: 0 auto; min-height: 100vh; background: var(--bg-main); }
.admin-topbar { background: #0F172A; color: var(--white); padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.admin-body { padding: 20px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
.a-stat { background: var(--white); padding: 18px; border-radius: 14px; box-shadow: var(--shadow); text-align: left; }
.a-stat h3 { font-size: 26px; color: var(--primary); margin-top: 5px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #F8FAFC; font-weight: 700; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: end; }

.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; padding: 20px; z-index: 999; }
.modal-box { background: var(--white); width: 100%; max-width: 400px; padding: 25px; border-radius: 20px; text-align: center; }
.qr-container { background: #FFF1F2; padding: 15px; border-radius: 14px; margin: 15px 0; }
.qr-container img { width: 160px; height: 160px; margin: 0 auto 8px; display: block; object-fit: contain; }
.modal-btns { display: flex; gap: 10px; margin-top: 15px; }
.modal-btns button { flex: 1; }