html,
body {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

.scrollable-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 28px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.scrollable-content::-webkit-scrollbar {
    width: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.top-header {
    flex-shrink: 0;
    background-color: #ffffff;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 20;
    border-bottom: 1px solid #f0f0f0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-text h1 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.2;
    margin-bottom: 2px;
}

.account-no-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #777777;
    cursor: pointer;
}

.account-no-wrap:active {
    opacity: 0.7;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: background-color 0.1s;
}

.header-btn:active {
    background-color: #f3f4f6;
}

.badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.balance-card {
    background: linear-gradient(135deg, #f05a22 0%, #ea580c 100%);
    border-radius: 14px;
    margin: 12px 14px 12px;
    padding: 16px 18px 18px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}

.balance-card::after {
    content: "";
    position: absolute;
    right: -10px;
    bottom: -20px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.balance-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.balance-label-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.95;
    cursor: pointer;
}

.history-pill-btn {
    background-color: rgba(0, 0, 0, 0.18);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: background-color 0.1s;
}

.history-pill-btn:active {
    background-color: rgba(0, 0, 0, 0.28);
}

.main-balance {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.main-balance .curr {
    font-size: 16px;
    font-weight: 600;
}

.balance-sub-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 14px;
}

.sub-col {
    flex: 1;
}

.sub-col-title {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
    opacity: 0.95;
    cursor: pointer;
}

.sub-col-amount {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
}

.buka-deposito-badge {
    background-color: #fff4d9;
    color: #d95100;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    cursor: pointer;
}

.sub-col-desc {
    font-size: 10.5px;
    opacity: 0.85;
}

.features-card {
    background-color: #ffffff;
    border-radius: 14px;
    margin: 0 14px 12px;
    padding: 16px 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s;
}

.feature-item:active {
    transform: scale(0.95);
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.feature-icon-box svg {
    width: 38px;
    height: 38px;
}

.orange {
    fill: #FF6600;
}

.amber {
    fill: #F59300;
}

.feature-label {
    font-size: 11.5px;
    color: #444444;
    line-height: 1.25;
    max-width: 72px;
}

.flash-deals-card {
    background: linear-gradient(180deg, #fff3ea 0%, #fffbf8 100%);
    border: 1px solid #fedbc4;
    border-radius: 14px;
    margin: 0 14px 12px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(234, 88, 12, 0.04);
}

.flash-deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.flash-deals-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    color: var(--color-text-main);
}

.flash-deals-content {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.flash-info-col {
    flex: 1.1;
    font-size: 12.5px;
    color: #444444;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flash-highlight {
    color: var(--color-primary);
    font-weight: 700;
}

.flash-slider-col {
    flex: 1.3;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.flash-slider-col::-webkit-scrollbar {
    display: none;
}

.deal-badge-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 130px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.deal-period {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.deal-rate {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.deal-strike-rate {
    font-size: 11px;
    color: #a0a0a0;
    text-decoration: line-through;
    margin-bottom: 8px;
}

.progress-bar {
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 4px;
    position: relative;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 4px;
}

.progress-thumb {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border: 2px solid #ffffff;
    border-radius: 50%;
    position: absolute;
    top: -2px;
}

.progress-fill-80 {
    width: 80%;
}

.progress-thumb-78 {
    left: 78%;
}

.progress-fill-60 {
    width: 60%;
}

.progress-thumb-58 {
    left: 58%;
}

.margin-top-8 {
    margin-top: 8px;
}

.deal-placed {
    font-size: 10px;
    color: #777777;
}

.deal-stamp {
    position: absolute;
    bottom: -8px;
    right: -8px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(234, 88, 12, 0.25);
    border: 1px solid rgba(234, 88, 12, 0.25);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(-15deg);
    pointer-events: none;
}

.section-card {
    background-color: #ffffff;
    border-radius: 14px;
    margin: 0 14px 12px;
    padding: 16px 16px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    cursor: pointer;
}

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

.tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f6f6f6;
    cursor: pointer;
    transition: background-color 0.1s;
}

.tx-item:last-of-type {
    border-bottom: none;
}

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

.tx-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-text-main);
    margin-bottom: 2px;
}

.tx-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.tx-date {
    font-size: 11px;
    color: var(--color-text-light);
}

.tx-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-main);
    text-align: right;
}

.tx-amount.positive {
    color: var(--color-green);
}

.section-footer-link {
    text-align: center;
    padding: 12px 0 4px;
    font-size: 13px;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.section-footer-link:active {
    color: var(--color-primary);
}

.promo-banner {
    margin: 0 14px 12px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    height: 120px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.banner-left {
    flex: 1;
    background: linear-gradient(135deg, #0056d6 0%, #0040a8 100%);
    padding: 12px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner-left::after {
    content: "";
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
}

.banner-badge-yellow {
    background-color: #ffcc00;
    color: #111111;
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
    width: fit-content;
}

.banner-title-white {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.3px;
}

.banner-right {
    flex: 1.1;
    background: linear-gradient(135deg, #f05a22 0%, #d8450e 100%);
    padding: 12px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.banner-subtitle-small {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.95;
    margin-bottom: 2px;
}

.banner-big-rate {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
}

.banner-big-rate span {
    font-size: 14px;
}

.banner-tag-blue {
    background-color: #004bb5;
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
}

.transfer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f6f6f6;
    cursor: pointer;
    transition: background-color 0.1s;
}

.transfer-item:last-of-type {
    border-bottom: none;
}

.transfer-item:active {
    background-color: #fafafa;
}

.transfer-detail-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-text-main);
    margin-bottom: 2px;
}

.transfer-detail-sub {
    font-size: 12px;
    color: #777777;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bottom-nav {
    flex-shrink: 0;
    position: relative;
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    background-color: #ffffff;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding: 0 6px env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 500;
    height: 100%;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #f25c05;
    font-weight: 600;
}

.nav-item:active {
    opacity: 0.85;
}

.nav-item.qris-item {
    position: relative;
    justify-content: flex-end;
    padding-bottom: 10px;
}

.qris-circle {
    width: 54px;
    height: 54px;
    background-color: #f25c05;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -22px;
    box-shadow: 0 4px 10px rgba(242, 92, 5, 0.3);
    transition: transform 0.2s ease;
}

.nav-item.qris-item:active .qris-circle {
    transform: scale(0.95);
}

.qris-circle svg {
    width: 28px;
    height: 28px;
    margin: 0;
}
