/* --- Digital Card Page Styles --- */

.digital-card-wrapper {
    background: url('/assets/images/pattern.png') center center / auto 100% no-repeat, #f4f6f9;
}

/* Header Area (Sama dengan Account Header) */
.account-header {
    background: linear-gradient(180deg, #064CAD 0%, #04367B 100%);
    padding: 20px 16px;
    color: #ffffff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.btn-back {
    color: #ffffff;
    font-size: 1.25rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.header-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

/* Member Switcher Card */
.member-switcher-card {
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid #064CAD; /* Border biru halus */
    box-shadow: 0 4px 12px rgba(6, 76, 173, 0.05);
}

.member-avatar-box {
    width: 44px;
    height: 44px;
    background-color: #064CAD;
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.member-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
}

.member-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 3px;
}

.btn-switch-member {
    background: transparent;
    border: none;
    color: #064CAD;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.btn-switch-member:active {
    transform: scale(0.9);
}

/* Info Note */
.card-info-note {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.45;
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
}

/* Status Badge & Magnify Button Toolbar */
.badge-status-active {
    background-color: #f0fdf4;
    color: #16a34a;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dcfce7;
}

.dot-indicator {
    width: 7px;
    height: 7px;
    background-color: #16a34a;
    border-radius: 50%;
    display: inline-block;
}

.btn-magnify {
    background-color: #2557a7;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(37, 87, 167, 0.2);
    transition: background-color 0.2s ease;
}

.btn-magnify:active {
    background-color: #1d4382;
}

/* Bottom Learn More Button */
.btn-learn-more {
    background-color: #f7fee7;
    color: #65a30d;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px;
    border-radius: 25px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(101, 163, 13, 0.1);
    transition: all 0.2s ease;
}

.btn-learn-more:active {
    background-color: #ecfccb;
    color: #4d7c0f;
}

/* Modal Magnify Styling */
.btn-close-modal {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.home-digital-card-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
    transition: transform 0.2s ease;
}

.home-digital-card-img:active {
    transform: scale(0.98); /* Efek tombol saat ditekan */
}

.learn-more-sheet {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    height: auto !important;
    max-height: 85vh;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);

    width: 100% !important;
    max-width: 640px;
    left: 50% !important;
    right: auto !important;

    transform: translate(-50%, 100%) !important;
    transition: transform 0.3s ease-in-out !important;
    visibility: visible;
}

.learn-more-sheet.show {
    transform: translate(-50%, 0) !important;
}

.learn-more-sheet .fs-7 {
    font-size: 0.82rem;
    line-height: 1.5;
}

.learn-more-sheet .terms-list {
    font-size: 0.82rem;
}

.learn-more-sheet .btn-close:focus {
    box-shadow: none;
}