/* ==========================================================================
   STYLESPROFIL.CSS — Halaman Profil (#user-section) & Bottom Navigation
   ========================================================================== */

/* ---------- 1. DASAR TYPOGRAPHY & RESET ---------- */
.pf-page,
.bottom-nav {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

.pf-page {
    padding: 1.75rem 0.75rem 1.5rem;
    gap: 1rem;
    background-image: url("https://img.sukahemat.com/ilustrasi/bg-profil.avif");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    color: #0f172a;
    -webkit-user-select: none;
    user-select: none;
}

#user-section.pf-page {
    max-width: 28rem !important;
}

.pf-page p,
.pf-page h1,
.pf-page h2,
.pf-page h3 {
    margin: 0;
}

.pf-page button {
    font-family: inherit;
    cursor: pointer;
}

.pf-page svg,
.bottom-nav svg {
    display: block;
    flex-shrink: 0;
}

.pf-s {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pf-s2 {
    stroke-width: 2;
}

.pf-i14 { width: 0.875rem; height: 0.875rem; }
.pf-i16 { width: 1rem; height: 1rem; }
.pf-i20 { width: 1.25rem; height: 1.25rem; }
.pf-i24 { width: 1.5rem; height: 1.5rem; }
.pf-i28 { width: 1.75rem; height: 1.75rem; }

.pf-hide {
    display: none !important;
}

/* ---------- 2. HEADER PROFIL ---------- */
.pf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.75rem 0.25rem 0;
}

.pf-header-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.pf-avatar {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: linear-gradient(to top right, #1d4ed8, #2563eb, #0ea5e9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    box-shadow: 0 0 0 0.25rem #fff,
        0 0.25rem 0.375rem -0.0625rem rgba(59, 130, 246, 0.2),
        0 0.125rem 0.25rem -0.125rem rgba(59, 130, 246, 0.2);
}

.pf-name {
    font-size: 1.25rem;
    line-height: 1.375;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #0f172a;
    min-width: 0;
    word-break: break-word;
}

.pf-icon-btn {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    padding: 0;
    transition: transform 0.15s ease;
}

.pf-icon-btn:hover {
    color: #2563eb;
}

.pf-icon-btn:active {
    transform: scale(0.95);
}

/* ---------- 3. BANNER & STATUS LANGGANAN ---------- */
.pf-member {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: linear-gradient(to right, #1d4ed8, #2563eb, #0284c7);
    padding: 1rem;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.pf-member-mark {
    position: absolute;
    right: -1rem;
    bottom: -1.5rem;
    width: 8rem;
    height: 8rem;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    transform: rotate(-12deg);
}

.pf-member-row {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pf-member-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pf-glass {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(0.75rem);
    backdrop-filter: blur(0.75rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-crown {
    color: #fcd34d;
    filter: drop-shadow(0 0.0625rem 0.0625rem rgba(0, 0, 0, 0.05));
}

.pf-member-title {
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
}

.pf-member-sub {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 400;
    color: rgba(219, 234, 254, 0.9);
    margin-top: 0.125rem;
}

#user-section #subscription-buttons {
    margin: 0;
}

#user-section #btn-berlangganan {
    width: 100%;
    border: none !important;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(to right, #1d4ed8, #2563eb, #0284c7) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.15s ease;
}

#user-section #btn-berlangganan:active {
    transform: scale(0.98);
}

/* ---------- 4. KARTU UMUM & INFORMASI AKUN ---------- */
.pf-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.pf-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.pf-card-head-left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.pf-head-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.05);
}

.pf-head-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.pf-head-icon.amber {
    background: #fef3c7;
    color: #b45309;
}

.pf-card-title {
    font-size: 1.2rem;
    line-height: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

.pf-card-title.tight {
    letter-spacing: -0.025em;
}

.pf-rows > * + * {
    border-top: 1px solid rgba(241, 245, 249, 0.8);
}

.pf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.pf-row-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.pf-circle {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 9999px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-circle.wa {
    background: #10b981;
    box-shadow: 0 0.25rem 0.375rem -0.0625rem rgba(16, 185, 129, 0.2),
        0 0.125rem 0.25rem -0.125rem rgba(16, 185, 129, 0.2);
}

.pf-circle.loc {
    background: #3b82f6;
    box-shadow: 0 0.25rem 0.375rem -0.0625rem rgba(59, 130, 246, 0.2),
        0 0.125rem 0.25rem -0.125rem rgba(59, 130, 246, 0.2);
}

.pf-label {
    font-size: 0.8rem;
    line-height: 1.5;
    font-weight: 500;
    color: #94a3b8;
}

.pf-value {
    font-size: 0.9rem;
    line-height: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.pf-value.blue {
    color: #2563eb;
}

.pf-edit-sm {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    padding: 0;
    transition: color 0.15s ease;
}

.pf-edit-sm:hover {
    color: #2563eb;
}

/* ---------- 5. KEUANGAN & SALDO ---------- */
.pf-balance {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background-image: url("https://img.sukahemat.com/ilustrasi/bg-saldo-toko.avif"); /*linear-gradient(to bottom right, #0B2545, #133E87, #0A192F)*/
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 1rem;
    color: #fff;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 0.625rem 0.9375rem -0.1875rem rgba(30, 58, 138, 0.25),
        0 0.25rem 0.375rem -0.25rem rgba(30, 58, 138, 0.25);
}

.pf-balance-left {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.pf-balance .pf-glass {
    box-shadow: inset 0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.05);
}

.pf-balance-icon {
    color: #fff;
    filter: drop-shadow(0 0.0625rem 0.0625rem rgba(0, 0, 0, 0.05));
}

.pf-balance-label {
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0.025em;
    color: rgba(191, 219, 254, 0.9);
}

.pf-balance-value {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #fff;
    margin-top: 0.125rem;
    filter: drop-shadow(0 0.0625rem 0.0625rem rgba(0, 0, 0, 0.05));
}

.pf-mutasi-btn {
    position: relative;
    z-index: 10;
    background: #fff;
    color: #0D3B66;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
}

.pf-mutasi-btn:hover {
    background: #f8fafc;
}

.pf-mutasi-btn:active {
    transform: scale(0.95);
}

.pf-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.pf-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    min-width: 0;
}

.pf-mini-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-mini-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.pf-mini-icon.amber {
    background: #fef3c7;
    color: #b45309;
}

.pf-mini-label {
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 500;
    color: #94a3b8;
}

.pf-mini-value {
    font-size: 0.9rem;
    line-height: 1.25rem;
    font-weight: 700;
    color: #334155;
}

/* ---------- 6. STATISTIK PENGGUNA ---------- */
.pf-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.6);
    font-size: 0.7rem;
    line-height: 1.5;
    font-weight: 500;
    color: #64748b;
}

.pf-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-top: 0.5rem;
}

.pf-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    border-radius: 0.5rem;
    min-width: 0;
}

.pf-stat.mid {
    border-left: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
}

.pf-stat-img {
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.pf-stat-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    -webkit-user-drag: none;
}

.pf-stat-label {
    font-size: 0.8rem;
    line-height: 1.5;
    font-weight: 500;
    color: #64748b;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-stat-value {
    font-size: 0.9rem;
    line-height: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0.125rem 0 0.25rem;
}

.pf-stat-value.indigo {
    color: #312e81;
}

/* ---------- 7. TOMBOL MASUK / GANTI AKUN ---------- */
.pf-cta-wrap {
    padding-top: 0;
}

.pf-cta {
    width: 100%;
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(to right, #2563eb, #2563eb);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.25rem;
    box-shadow: 0 0.5rem 1.25rem -0.25rem rgba(37, 99, 235, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
}

.pf-cta:hover {
    background: linear-gradient(to right, #1d4ed8, #1d4ed8);
}

.pf-cta:active {
    transform: scale(0.98);
}

.pf-cta-text {
    font-size: 1rem;
    line-height: 1.5rem;
}

/* ---------- 8. BOTTOM NAVIGATION BAR ---------- */
.bottom-nav {
    position: fixed;
    bottom: calc(1.6rem + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 28rem;
    height: auto;
    padding: 0.5rem 0.5rem 0.375rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(0.75rem);
    backdrop-filter: blur(0.75rem);
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1),
        0 0.25rem 0.375rem -0.25rem rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

.bottom-nav .bottom-nav-item {
    position: relative;
    flex: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: none;
    border: none;
    padding: 0.125rem 0;
    color: #94a3b8;
    font-size: 0.6875rem;
    line-height: 1.5;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s ease;
}

.bottom-nav .bottom-nav-item:hover {
    color: #334155;
}

.bottom-nav .bottom-nav-item:active {
    transform: none;
}

.pf-nav-icon {
    width: 3rem;
    height: 2rem;
    margin-bottom: 0.125rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.bottom-nav .bottom-nav-item:hover .pf-nav-icon {
    transform: scale(1.05);
}

.bottom-nav .bottom-nav-item:active .pf-nav-icon {
    transform: scale(0.95);
}

.bottom-nav .bottom-nav-item.active,
.bottom-nav .bottom-nav-item.active:hover {
    color: #2563eb;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.bottom-nav .bottom-nav-item.active .pf-nav-icon {
    background: rgba(219, 234, 254, 0.7);
    box-shadow: 0 0.0625rem 0.125rem 0 rgba(59, 130, 246, 0.1);
}

.bottom-nav .nav-badge {
    top: 0;
    left: calc(50% + 0.5rem);
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    line-height: 1rem;
}