/* Global font */
body {
    font-family: 'Montserrat', sans-serif !important;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.02em;
}

/* Global Button Utilities */
.btn-back,
.btn-icon-subtle,
.btn-back-translucent,
.btn-step-back {
    text-decoration: none !important;
}

/* ─── Mobile Container ────────────────────────────────────────────────────── */
.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* ─── App Bar (shared sticky header) ─────────────────────────────────────── */
.app-bar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ─── Bottom Navigation Bar ──────────────────────────────────────────────── */
.bottom-nav {
    height: 70px;
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 -4px 10px rgba(0, 0, 0, 0.08));
}

.bottom-nav-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    -webkit-mask-image: radial-gradient(circle at center 0, transparent 40px, white 41px);
    mask-image: radial-gradient(circle at center 0, transparent 40px, white 41px);
    z-index: -1;
}

.no-qris .bottom-nav-bg {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr 1fr 80px 1fr 1fr;
    align-items: center;
    height: 100%;
    width: 100%;
}

.no-qris .nav-container {
    grid-template-columns: repeat(4, 1fr) !important;
}

.nav-item {
    transition: color 0.2s ease;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav-item i {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item.active {
    color: #7c3aed !important;
}

.nav-item:active i {
    transform: scale(0.8);
}

/* QRIS floating button */
.qris-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
}

.qris-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #7c3aed 0%, #e65f2e 100%) !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.4) !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    z-index: 20;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.qris-btn:hover,
.qris-btn:active {
    transform: translateX(-50%) scale(1.05) !important;
}

.qris-label {
    position: absolute;
    bottom: 5px;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #7c3aed;
}

/* Shared shadow utility */
.premium-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ─── Toast Notification System ───────────────────────────────────────── */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 440px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    pointer-events: all;
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.app-toast.toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.app-toast.toast-hide {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
}

.app-toast.toast-success {
    background: rgba(16, 185, 129, 0.92);
    color: #fff;
}

.app-toast.toast-error {
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
}

.app-toast.toast-info {
    background: rgba(124, 58, 237, 0.92);
    color: #fff;
}

.app-toast .toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.app-toast .toast-msg {
    flex: 1;
    line-height: 1.4;
    font-weight: 500;
}

.app-toast .toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
}

.app-toast .toast-close:hover {
    color: #fff;
}

/* ─── Session Timeout Modal ───────────────────────────────────────────────── */

/* Full-screen frosted overlay */
.session-timeout-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(15, 10, 30, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.session-timeout-overlay--visible {
    opacity: 1;
}

/* Bottom sheet panel */
.session-timeout-sheet {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 12px 28px 44px;
    text-align: center;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.session-timeout-sheet--visible {
    transform: translateY(0);
}

/* Drag handle */
.session-timeout-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    margin: 0 auto 24px;
}

/* Icon */
.session-timeout-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.session-timeout-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(230, 95, 46, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #7c3aed;
}

/* Title */
.session-timeout-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e1b2e;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

/* Body */
.session-timeout-body {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Countdown badge */
.session-timeout-countdown {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

.session-timeout-countdown strong {
    color: #7c3aed;
}

/* CTA button */
.session-timeout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed 0%, #e65f2e 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.18s ease;
}

.session-timeout-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.ki-heart .path1.custom::before {
    opacity: 1 !important;
}

.grecaptcha-badge {
    visibility: hidden;
}