.profile-page {
    padding: 40px 0 80px;
    background: #fff;
}


/* Big dark panel */
.profile-panel {
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}


/* Header: greeting + profile photo */
.profile-greeting {
    font-family: 'Abhaya Libre', serif;
    font-weight: 800;
    font-size: 26px;
    color: #E6E8EF;
    margin-bottom: 6px;
}

.profile-greeting span {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    color: #E6E8EF;
}

/* Subtitle "Here is your quick overview" */
/* Tambahkan elemen <p> ini di HTML, tepat di bawah <h1 class="profile-greeting"> */
.profile-greeting-sub {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #A1A2A7;
    margin-bottom: 28px;
}

.profile-avatar-wrap {
    position: absolute;
    top: 36px;
    right: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* hapus position dari .profile-avatar yang lama, ganti jadi: */
.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.25);
    background: #ccc;
}

.btn-edit-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #4D6674;
    color: #E6E8EF;
    border-radius: 6px;
    padding: 5px 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    width: 64px;
    transition: opacity .15s;
}

.btn-edit-avatar:hover {
    opacity: 0.85;
}

.btn-edit-avatar svg {
    flex-shrink: 0;
}

/* Two-column layout */
.profile-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}


/* Form fields */
.profile-field {
    margin-bottom: 18px;
}

.profile-field label {
    display: block;
    font-family: 'Abhaya Libre', serif;
    font-weight: 800;
    font-size: 20px;
    color: #E6E8EF;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
    /* ← tambah ini */
}

.profile-field input,
.profile-field textarea,
.profile-field select {
    width: 100%;
    padding: 11px 16px;
    background: #B2C9DD;
    border: 1px solid #8A8A8A;
    border-radius: 999px;
    /* lengkung sempurna */
    font-family: 'Amethysta', serif;
    font-size: 15px;
    color: #21394f;
    outline: none;
}

.profile-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2321394f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    padding-left: 42px;
    padding-right: 16px;
}

.profile-field input::placeholder,
.profile-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.profile-field input:focus,
.profile-field textarea:focus,
.profile-field select:focus {
    border-color: #6A87A1;
    background: #c8d9e8;
}

.profile-field textarea {
    border-radius: 16px;
    /* textarea pakai rounded biasa, bukan pill */
    resize: vertical;
    min-height: 70px;
}

.profile-field select option {
    color: #2e3f50;
}

.profile-field select {
    border-radius: 999px;
}

.profile-field input::placeholder,
.profile-field textarea::placeholder {
    color: rgba(33, 57, 79, 0.5);
}

/* Right column */
.profile-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 44px;
    container-type: inline-size;
}


/* Saldo card */
.saldo-card {
    position: relative;
    width: 100%;
    margin-top: -30px;
}

.saldo-card .saldo-bg {
    width: 100%;
    height: auto;
    display: block;
}

.saldo-card .saldo-icon-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 72px;
    height: 74px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
}

.saldo-card .saldo-icon-btn svg {
    width: 28px;
    height: 28px;
    stroke: #21394F;
    fill: none;
    stroke-width: 1.8;
}

/* Badge +2.3% */
.saldo-card .saldo-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 3px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #1D4734;
    margin-bottom: 12px;
}

.saldo-texts {
    position: absolute;
    left: 10%;
    right: 40%;
    top: 35%;
}

/* Label Saldo */
.saldo-label {
    font-family: 'Inter', sans-serif;
    font-size: clamp(12px, 5qw, 18px);
    font-weight: 800;
    color: #21394F;
    margin-bottom: 6px;
    margin-top: 2%;
}

/* Nominal */
.saldo-amount {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    font-size: clamp(20px, 10cqw, 24px);
    color: #000000;
    line-height: 1.2;
    margin-top: 15%;
    white-space: nowrap;
}

/* Stat row */
.profile-stat label {
    display: block;
    font-family: 'Abhaya Libre', serif;
    font-weight: 800;
    font-size: 20px;
    color: #E6E8EF;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.profile-stat .stat-value {
    width: 60%;
    padding: 11px 16px;
    background: #B2C9DD;
    border: 1px solid #8A8A8A;
    border-radius: 999px;
    font-family: 'Amethysta', serif;
    font-size: 15px;
    color: #21394f;
    box-sizing: border-box;
    text-align: center;
}


/* Save button */
.btn-save-profile {
    margin-top: 8px;
    padding: 13px 0;
    width: 100%;
    background: #4D6674;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: transform .15s, opacity .15s;
}

.btn-save-profile:hover {
    transform: translateY(-2px);
    opacity: 0.94;
}

/* ============ MY RENTALS SECTION (inside dark panel) ============ */
.profile-rentals {
    margin-top: 32px;
    padding: 32px 48px 40px;
    background: #1a2f40;
    /* sedikit lebih gelap dari panel */
    border-radius: 0 0 24px 24px;
    margin-left: -48px;
    margin-right: -48px;
    margin-bottom: -48px;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
}

.profile-rentals-title {
    font-family: 'Volkhov', Georgia, serif;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    margin-bottom: 24px;
}

.profile-rentals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.profile-rental-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px 12px 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.20);
    cursor: pointer;
    transition: transform .18s;
}

.profile-rental-card:hover {
    transform: translateY(-3px);
}

.profile-rental-card .pr-img {
    aspect-ratio: 4/3;
    background: #ededed;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.profile-rental-card .pr-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-rental-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #484848;
    line-height: 1.35;
    margin-bottom: 4px;
}

.profile-rental-card .pr-loc {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #8A8A8A;
}

.profile-rental-card .pr-loc svg {
    width: 11px;
    height: 11px;
    stroke: #55959E;
}

.profile-rental-card .pr-price {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #484848;
    margin-top: 8px;
}


/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .profile-right {
        padding-top: 0;
    }

    .profile-rentals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-avatar {
        position: static;
        margin-bottom: 16px;
    }

    .profile-greeting {
        font-size: 22px;
    }
}

@media (max-width: 560px) {
    .profile-panel {
        padding: 24px 20px 32px;
    }

    .profile-rentals-grid {
        grid-template-columns: 1fr;
    }
}