/* PREMIUM FINTECH APP DESIGN SYSTEM (OVO PREMIUM LOOK) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Color Palette: Deep Fresh Emerald Green & Solid Gold/Yellow */
    --primary-gradient: linear-gradient(135deg, #0d7a33 0%, #065420 100%);
    --bg-premium-dark: #065420;
    --accent-gold: #ffcc00; /* Kuning OVO / Gold Premium */
    --fresh-green: #10b981; /* Indikator hijau cerah */
    --light-green-bg: #f0fdf4;
    
    /* Neutrals */
    --app-bg: #f6f9f7;
    --surface-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --border-light: #e2e8f0;
    
    /* Shadows & Radii */
    --card-shadow: 0 8px 24px rgba(13, 122, 51, 0.05);
    --premium-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

/* ==========================================================================
   PERBAIKAN UTAMA: HILANGKAN FRAME HP, LAYAR PENUH DI MOBILE, LOCKED DI DESKTOP
   ========================================================================== */

body {
    background-color: #f6f9f7; /* Menggunakan warna dasar aplikasi agar menyatu bersih jika dibuka di desktop */
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* APP VIEWPORT (OTOMATIS FULL DI HP, TERKUNCI TENGAH DI DESKTOP) */
.app-viewport {
    width: 100%;
    max-width: 415px; /* Batas maksimum lebar tampilan smartphone di desktop */
    min-height: 100vh;
    background-color: var(--app-bg);
    position: relative;
    
    /* MENGHILANGKAN FRAME FISIK HP SEPERTI BORDER MELENGKUNG DAN BLACK BOX */
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* MAIN HEADER BLOCK WITH GRADIENT */
.main-header {
    background: var(--primary-gradient);
    padding: 35px 20px 85px 20px;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.mosque-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-logo i {
    color: var(--accent-gold);
    font-size: 20px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.welcome-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.mosque-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.3px;
}

.notification-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-white);
    font-size: 18px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-dot {
    position: absolute;
    top: 10px;
    right: 11px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    border: 1.5px solid var(--bg-premium-dark);
}

.location-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 500;
}

.location-bar i {
    color: var(--accent-gold);
}

/* OVO STYLE FLOATING WALLET CARD */
.wallet-card {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: absolute;
    bottom: -55px;
    left: 20px;
    right: 20px;
    box-shadow: var(--premium-shadow);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.wallet-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px dashed var(--border-light);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.wallet-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-label i {
    color: #0d7a33;
}

.wallet-balance {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-top: 2px;
}

.status-pill {
    background-color: var(--light-green-bg);
    color: #047857;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dot-active {
    width: 6px;
    height: 6px;
    background-color: var(--fresh-green);
    border-radius: 50%;
}

.wallet-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.action-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.action-icon {
    width: 55px;
    height: 55px;
    background-color: #caffda;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0d7a33;
    font-size: 22px;
    transition: all 0.2s ease;
}

.action-item:hover .action-icon {
    background-color: #0d7a33;
    color: white;
    transform: translateY(-2px);
}

.action-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
}

/* MAIN CONTENT BLOCK */
.app-content {
    padding: 75px 20px 20px 20px;
}

/* SECTION STRUCTURE */
.section-container {
    margin-top: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    margin-top: -10px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.section-action {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.section-link {
    font-size: 12px;
    font-weight: 700;
    color: #0d7a33;
    text-decoration: none;
}

/* PRAYER COUNTDOWN BANNER */
/* UPDATE: BANNER GRID LAYOUT (2 KOLOM) & FLIP-CLOCK */
.next1-prayer-banner {
    background: linear-gradient(161deg, #1e293b 0%, #0d7a33 100%);
    border-radius: var(--radius-md);
    padding: 16px;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    box-shadow: var(--card-shadow);
    align-items: center;
    margin-top:-8px;
}

.banner1-col { display: flex; flex-direction: column; justify-content: center; }
.banner1-divider { border-left: 1px solid rgba(255, 255, 255, 0.15); padding-left: 12px; }
.banner1-title { font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 4px; display: block; }
.banner1-main-text { font-size: 14px; font-weight: 700; line-height: 1.3; }
.banner1-sub-text { font-size: 10px; color: #eee; margin-top: 5px; }

/* Combined Prayer Name-Time Styling (e.g., Subuh - 04:22) */
.prayer1-combined {
    margin-bottom: 6px;
    font-size: 15px; /* Sedikit lebih besar untuk nama shalat */
    letter-spacing: -0.2px;
}

/* Mechanical Flip Clock Countdown Styling */
.countdown1-display {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.digit1-pair {
    display: flex;
    gap: 1px;
}

.flip1-digit-card {
    background-color: #01290f; /* Warna latar digit flip clock gelap */
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 28px;
    color: #9ce1b4;
    font-family: monospace; /* Aligned digits */
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin-top:5px;
}

/* Garis tengah horizontal jam flip */
.flip1-digit-card::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%);
}

.countdown1-colon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    font-weight: 700;
    padding: 0 1px;
    line-height: 1;
}

/* Adzan label ("menuju Adzan") */
.banner1-sub-text.adzan-label {
    font-size: 11px;
    color: #eee;
    margin-top: 0;
}

/* SHALAT GRID MICRO CARDS */
.prayer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.prayer-card {
    background-color: var(--surface-white);
    border-radius: var(--radius-sm);
    padding: 12px 4px;
    text-align: center;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    box-shadow: var(--card-shadow);
}

.prayer-card.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.p-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.prayer-card.active .p-name {
    color: rgba(255,255,255,0.8);
}

.p-time {
    font-size: 13px;
    font-weight: 700;
}

.active-indicator {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 99px;
}

/* PREMIUM CROWDFUNDING CARD */
.premium-campaign-card {
    background-color: var(--surface-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    position: relative;
}

.campaign-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.campaign-body {
    padding: 20px;
}

.campaign-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    padding-right: 65px;
    margin-bottom: 6px;
}

.campaign-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 16px;
}

.progress-wrapper {
    margin-bottom: 18px;
}

.progress-track {
    background-color: #f1f5f9;
    height: 6px;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    background: linear-gradient(90deg, #10b981, #0d7a33);
    height: 100%;
    border-radius: 99px;
}

.progress-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-funds {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.current-funds small {
    font-weight: 500;
    color: var(--text-muted);
}

.target-percentage {
    font-size: 12px;
    font-weight: 700;
    color: #0d7a33;
}

.btn-premium-primary {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13, 122, 51, 0.15);
}

/* FINANCIAL ANALYTICS ROW */
.cash-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.cash-mini-card {
    background-color: var(--surface-white);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
}

.cash-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.type-in .cash-icon-wrap { background-color: #ecfdf5; color: #10b981; }
.type-out .cash-icon-wrap { background-color: #fef2f2; color: #ef4444; }

.cash-data {
    display: flex;
    flex-direction: column;
}

.cash-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.cash-amount {
    font-size: 14px;
    font-weight: 700;
}

.type-in .cash-amount { color: #10b981; }
.type-out .cash-amount { color: #ef4444; }

/* PREMIUM CARD LIST TRANSACTIONS */
.modern-list {
    background-color: var(--surface-white);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
}

.list-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.list-item-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.list-item-icon.in { background-color: #f0fdf4; color: #0d7a33; }
.list-item-icon.out { background-color: #fff1f2; color: #e11d48; }

.list-item-info {
    flex: 1;
    margin-left: 12px;
}

.list-item-info h5 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
}

.list-item-info p {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.list-amount {
    font-size: 13px;
    font-weight: 700;
}

.list-amount.positive { color: #10b981; }
.list-amount.negative { color: #ef4444; }

/* ZAKAT BANNER */
.premium-service-card {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--card-shadow);
    color: white;
}

.service-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding-right: 10px;
}

.service-badge-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--accent-gold);
}

.service-text h4 {
    font-size: 13px;
    font-weight: 700;
}

.service-text p {
    font-size: 10px;
    color: rgba(255,255,255,0.75);
    line-height: 1.3;
    margin-top: 2px;
}

.btn-premium-accent {
    background-color: var(--accent-gold);
    color: var(--bg-premium-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.25);
}

/* BLOG CARD STYLE */
.blog-premium-card {
    background-color: var(--surface-white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
}

.blog-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.author-avatar {
    width: 34px;
    height: 34px;
    background-color: var(--light-green-bg);
    color: #0d7a33;
    font-weight: 700;
    font-size: 11px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-info {
    flex: 1;
    margin-left: 10px;
}

.author-info h5 {
    font-size: 12px;
    font-weight: 700;
}

.author-info p {
    font-size: 10px;
    color: var(--text-muted);
}

.share-mini-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
}

.blog-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.blog-excerpt {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.read-time {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-read {
    font-size: 11px;
    font-weight: 700;
    color: #0d7a33;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* STRUCTURE HORIZONTAL SCROLL */
.profile-scroll-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.profile-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.profile-member-card {
    background-color: var(--surface-white);
    min-width: 125px;
    padding: 14px 10px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
}

.member-avatar {
    width: 44px;
    height: 44px;
    background-color: #f1f5f9;
    color: var(--text-muted);
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 8px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    border: 2px solid var(--light-green-bg);
}

.profile-member-card h5 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-member-card p {
    font-size: 10px;
    color: #0d7a33;
    font-weight: 600;
    margin-top: 2px;
}

/* ==========================================================================
   PERBAIKAN BOTTOM MENU: FIXED & TETAP STATIS TINGGAL DI BAWAH VIEWPORT
   ========================================================================== */
.bottom-nav {
    position: fixed; /* Mengunci komponen agar tetap mengambang di bawah saat di-scroll */
    bottom: 0;
    width: 100%;
    max-width: 415px; /* Menyesuaikan lebar menu secara presisi dengan batas app-viewport */
    height: 76px;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 999;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #94a3b8;
    cursor: pointer;
    flex: 1;
    height: 100%;
}

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

.nav-item span {
    font-size: 10px;
    font-weight: 600;
}

.nav-item.active {
    color: #0d7a33;
}

/* FLOATING QRIS CENTER BUTTON EFFECT */
.nav-item.center-scan {
    position: relative;
    top: -14px;
    overflow: visible;
}

.scan-button-inner {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #ffcc00 0%, #e6b800 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 16px rgba(255, 204, 0, 0.35);
    border: 4px solid var(--surface-white);
    transition: all 0.2s ease;
}

.scan-button-inner i {
    color: var(--bg-premium-dark);
    font-size: 22px;
}

.nav-item.center-scan:active .scan-button-inner {
    transform: scale(0.92);
}

.scan-label {
    margin-top: 2px;
    color: var(--text-main) !important;
    font-weight: 700 !important;
}
/* ==========================================================================
   HANYA MENAMBAHKAN KODE BARU DI BAWAH INI (PEMBATAS BANNER KIRI & KANAN)
   Agar tidak mempengaruhi tampilan lain, kita akan menargetkan elemen-elemen
   ini secara spesifik berdasarkan letaknya di dalam .next1-prayer-banner.
   ========================================================================== */

/* ==========================================================================
   AL-MUHTADIN ACTION BUTTON - RATA KANAN MUTLAK (FORCED RIGHT)
   ========================================================================== */

/* Pastikan container induk utamanya membuka lebar penuh */
.wallet-info {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.balance-container {
    width: 100% !important;
    display: block !important; /* Diubah ke block agar tidak mengunci lebar anak-anaknya */
}

/* Pembungkus Baris Nominal & Tombol */
.almuhtadin-row-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;        /* Memaksa selebar box putih */
    margin-top: 4px !important;
}

/* Memastikan teks saldo tidak serakah mengambil sisa ruang */
.almuhtadin-row-content .wallet-balance {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    flex-shrink: 1 !important;
}

/* Tombol Cek Detail - Kunci Rata Kanan Pakai Margin Auto */
.almuhtadin-detail-btn {
    margin-left: auto !important;   /* JURUS SAKTI: Menendang tombol ke kanan mentok secara paksa */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15) !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;     /* Mencegah tombol mengecil/gepeng */
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Ikon di dalam tombol */
.almuhtadin-detail-btn i {
    font-size: 11px !important;
    color: #ffffff !important;
}

/* Efek sentuhan di HP */
.almuhtadin-detail-btn:active {
    transform: scale(0.95) !important;
}
/* ==========================================================================
   BRIDGE OVERRIDE WARNA WALLET ACTIONS (TAMPILAN TETAP UTAS, WARNA BERUBAH)
   ========================================================================== */
.wallet-actions .action-item .action-icon.color-fitra { background-color: #c5edd5 !important; color: #0d7a33 !important; }
.wallet-actions .action-item .action-icon.color-infak { background-color: #ffdfb3 !important; color: #ff9800 !important; }
.wallet-actions .action-item .action-icon.color-quran { background-color: #b3ccff !important; color: #3b82f6 !important; }