@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-navy: #031B62;
    --primary-blue: #0A369D;
    --accent-blue: #1D63DC;
    --bg-light: #F3F5F9;
    --card-white: #FFFFFF;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --shadow-soft: 0 8px 24px rgba(3, 27, 98, 0.08);
    --shadow-nav: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: #E2E8F0;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 440px;
    background-color: var(--bg-light);
    min-height: 100vh;
    position: relative;
    padding-bottom: 95px;
    box-shadow: 0 0 35px rgba(0,0,0,0.12);
    overflow-x: hidden;
}

/* Top Header */
.top-header {
    background: var(--card-white);
    margin: 14px 16px;
    padding: 14px 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 12px;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left i {
    font-size: 18px;
    color: #0F172A;
}

.brand-title {
    font-size: 17px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.3px;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748B;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Hero Banner */
.hero-wrapper {
    padding: 0 16px;
    margin-bottom: 18px;
}

.hero-banner {
    background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 50%, #BFDBFE 100%);
    border-radius: 24px 24px 0 0;
    padding: 20px 18px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.hero-logo-badge {
    background: var(--primary-navy);
    color: #FBBF24;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(3, 27, 98, 0.3);
}

.hero-title {
    font-size: 23px;
    font-weight: 800;
    color: var(--primary-navy);
}

.hero-title span {
    color: var(--accent-blue);
}

.hero-subtitle {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 16px;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.badge-item {
    background: linear-gradient(180deg, #031B62 0%, #0A2E8A 100%);
    color: #FFFFFF;
    border: 1.5px solid #FBBF24;
    border-radius: 14px;
    padding: 10px 6px;
    text-align: center;
}

.badge-item i {
    color: #FBBF24;
    font-size: 16px;
    margin-bottom: 4px;
    display: block;
}

.badge-item h4 {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
}

.badge-item p {
    font-size: 8px;
    color: #CBD5E1;
}

/* Action Card (Tanpa Halo user & Tanpa Saldo Poin sesuai revisi Gambar 1) */
.action-card {
    background: var(--card-white);
    border-radius: 22px;
    padding: 18px 16px;
    margin-top: -14px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-soft);
}

.action-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.quick-btns {
    display: flex;
    gap: 10px;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    width: 68px;
}

.quick-icon-box {
    width: 64px;
    height: 44px;
    background: var(--primary-navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38BDF8;
    font-size: 18px;
    margin-bottom: 6px;
    transition: transform 0.2s;
}

.quick-action-item:hover .quick-icon-box {
    transform: translateY(-2px);
    background: var(--primary-blue);
}

.quick-action-item span {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.task-progress-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.progress-pill {
    width: 100%;
    height: 36px;
    border: 1.5px solid var(--primary-navy);
    border-radius: 10px;
    overflow: hidden;
    background: #FFFFFF;
    margin-bottom: 8px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary-navy);
    transition: width 0.4s ease;
}

.task-counter-text {
    font-size: 11px;
    font-weight: 800;
    color: #0F172A;
    text-align: right;
    letter-spacing: 0.2px;
}

/* Showcase Card */
.showcase-card {
    background: var(--card-white);
    margin: 0 16px 20px;
    padding: 20px 16px;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.btn-continue {
    display: block;
    width: 100%;
    background: var(--primary-navy);
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 15px;
    border-radius: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    box-shadow: 0 6px 16px rgba(3, 27, 98, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-continue:hover {
    background: var(--primary-blue);
    transform: translateY(-1px);
}

.product-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.product-strip::-webkit-scrollbar {
    display: none;
}

.product-thumb {
    min-width: 82px;
    height: 105px;
    border-radius: 14px;
    overflow: hidden;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: var(--card-white);
    border-radius: 24px 24px 0 0;
    box-shadow: var(--shadow-nav);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 8px 6px 12px;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94A3B8;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.nav-item i {
    font-size: 18px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #0F172A;
    font-weight: 700;
}

.nav-center-btn {
    position: relative;
    top: -18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #0F172A;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.nav-center-circle {
    width: 52px;
    height: 52px;
    background: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38BDF8;
    font-size: 20px;
    box-shadow: 0 6px 18px rgba(3, 27, 98, 0.35);
    margin-bottom: 4px;
}

/* Orders Dual Tabs (Gambar 2) */
.order-tabs-wrap {
    background: #FFFFFF;
    margin: 0 16px;
    padding: 18px 16px 24px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.order-tabs {
    background: #EFEFEF;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    margin-bottom: 20px;
}

.order-tab-btn {
    padding: 12px 10px;
    border-radius: 18px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    transition: all 0.2s;
}

.order-tab-btn.active {
    background: var(--primary-navy);
    color: #2563EB;
    box-shadow: 0 4px 12px rgba(3, 27, 98, 0.25);
}

.order-tab-btn.active span {
    color: #3B82F6;
}

.order-visual-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    height: 265px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.order-visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-status-ribbon {
    position: absolute;
    top: 26px;
    right: 0;
    background: rgba(239, 68, 68, 0.92);
    color: #FFFFFF;
    padding: 8px 14px;
    border-radius: 6px 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-status-ribbon.done {
    background: rgba(22, 163, 74, 0.92);
}

.order-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.78);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    padding: 14px 16px;
}

.order-prod-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #E2E8F0;
    margin-top: 4px;
}

.order-meta-row strong {
    color: #FFFFFF;
    font-weight: 700;
}

/* Modal Popup Hasil Klaim (Gambar 4) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 300;
}

.claim-modal {
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border-radius: 28px 28px 0 0;
    padding: 24px 22px 28px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.claim-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.claim-modal-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.claim-modal-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.check-circle-green {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #84CC16;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.claim-modal-img {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid #E2E8F0;
}

/* Profile & VIP Cards (Gambar 6 & 7) */
.profile-card-main {
    background: #FFFFFF;
    margin: 28px 16px 18px;
    padding: 46px 18px 22px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    position: relative;
    text-align: center;
}

.profile-medal-top {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 100%);
    border: 4px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #031B62;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.vip-banner-card {
    border-radius: 22px;
    padding: 20px 22px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin: 16px 0;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: transform 0.2s;
}

.vip-banner-card:hover {
    transform: translateY(-2px);
}

.vip-banner-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.vip-banner-card ul {
    list-style: disc;
    padding-left: 18px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.vip-medal-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.profile-menu-list {
    margin-top: 14px;
    text-align: left;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid #F1F5F9;
    text-decoration: none;
    color: #0F172A;
    font-size: 14px;
    font-weight: 600;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.menu-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin-right: 12px;
    font-size: 14px;
}

/* Rekening Bank Card (Gambar 8) */
.bank-card-box {
    background: #FFFFFF;
    margin: 10px 16px;
    padding: 26px 20px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.bank-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.bank-icon-navy {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-navy);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(3, 27, 98, 0.25);
}

.bank-header-row h2 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    color: #0F172A;
}

/* Auth Pages */
.auth-bg {
    min-height: 100vh;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(rgba(255, 255, 255, 0.72), rgba(241, 245, 249, 0.85)),
                url('https://images.unsplash.com/photo-1519567241046-7f570eee3ce6?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}

.auth-logo-area {
    text-align: center;
    margin-bottom: 24px;
}

.auth-bag-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #0284C7 0%, #031B62 100%);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(3, 27, 98, 0.25);
    margin-bottom: 8px;
}

.auth-brand-name {
    font-size: 21px;
    font-weight: 800;
    color: var(--primary-navy);
}

.auth-brand-name span {
    color: #0284C7;
}

.auth-card {
    background: #FFFFFF;
    width: 100%;
    border-radius: 26px;
    padding: 30px 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.auth-card h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 22px;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 15px;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    font-size: 13px;
    color: #0F172A;
    outline: none;
    background: #FFFFFF;
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--primary-navy);
}

.btn-auth {
    width: 100%;
    background: var(--primary-navy);
    color: #FFFFFF;
    border: none;
    padding: 15px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(3, 27, 98, 0.25);
}

.btn-auth:hover {
    background: var(--primary-blue);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 12px;
}

.auth-links a {
    color: #94A3B8;
    text-decoration: none;
}

/* Inner Page Cards & Alerts */
.page-section {
    padding: 0 16px;
}

.card-box {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }

.balance-banner {
    background: linear-gradient(135deg, #031B62 0%, #1D4ED8 100%);
    color: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(3, 27, 98, 0.25);
}

.balance-label {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 26px;
    font-weight: 800;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 13px;
}

.list-row:last-child { border-bottom: none; }

.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.status-pending { background: #FEF3C7; color: #92400E; }
.status-approved, .status-completed { background: #DCFCE7; color: #166534; }
.status-rejected { background: #FEE2E2; color: #991B1B; }
