﻿.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.btn-gradient {
    background: linear-gradient(135deg, #155EEF 0%, #6941C6 100%);
    box-shadow: 0 8px 20px rgba(21, 94, 239, 0.22);
    transition: all 0.2s ease-in-out;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(21, 94, 239, 0.32);
}

.card-premium {
    background: #FFFFFF;
    border: 1px solid #E4E7EC;
    box-shadow: 0 2px 8px rgba(11, 20, 55, 0.05);
    transition: all 0.2s ease-in-out;
}

.card-premium:hover {
    box-shadow: 0 8px 24px rgba(11, 20, 55, 0.08);
    border-color: #155EEF;
}

.pulse-dot {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.25);
    }
}

.page-view {
    display: none;
    animation: fadeIn 0.2s ease-in-out;
}

.page-view.active {
    display: block;
}

/* Indicator menu aktif. Ditulis eksplisit supaya status active tetap terbaca
   walau JavaScript belum selesai jalan atau Tailwind CDN gagal dimuat. */
.nav-btn,
.nav-mobile-btn {
    text-decoration: none;
    cursor: pointer;
}

.nav-btn.active,
.nav-mobile-btn.active {
    color: #155EEF;
    background-color: #EEF2FF;
    font-weight: 600;
}

/* Item dropdown "Pusat Bantuan" pada navbar customer. Sama seperti .nav-btn.active,
   ditulis eksplisit agar status active tetap terbaca bila Tailwind CDN gagal dimuat. */
.nav-dropdown-item {
    text-decoration: none;
    cursor: pointer;
}

.nav-dropdown-item.active {
    color: #155EEF;
    background-color: #EEF2FF;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #F2F4F7;
    border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #D0D5DD;
    border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #98A2B3;
}

/* SweetAlert2: popup Contact Us (sukses) & Cek Status (pesanan tidak ditemukan)
   disesuaikan dengan tema situs. */
.swal2-popup.contact-success-popup,
.swal2-popup.tracking-notfound-popup {
    border: 1px solid #E4E7EC;
    border-radius: 1rem;
    padding: 2rem 1.75rem 1.5rem;
    box-shadow: 0 16px 40px rgba(11, 20, 55, 0.16);
}

.swal2-popup.contact-success-popup .swal2-title,
.swal2-popup.tracking-notfound-popup .swal2-title {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    color: #0B1437;
    font-size: 1.25rem;
}

.swal2-popup.contact-success-popup .swal2-html-container,
.swal2-popup.tracking-notfound-popup .swal2-html-container {
    margin-top: 0.75rem;
}

.swal2-popup.contact-success-popup .swal2-actions,
.swal2-popup.tracking-notfound-popup .swal2-actions {
    margin-top: 1.25rem;
}

.swal2-popup.contact-success-popup .swal2-actions .btn-gradient:focus-visible,
.swal2-popup.tracking-notfound-popup .swal2-actions .btn-gradient:focus-visible {
    outline: 2px solid #155EEF;
    outline-offset: 2px;
}

@keyframes swalPopupIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.swal2-show.contact-success-popup,
.swal2-show.tracking-notfound-popup {
    animation: swalPopupIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .swal2-show.contact-success-popup,
    .swal2-show.tracking-notfound-popup {
        animation: none;
    }
}

/* Isi Ketentuan Layanan: HTML dari editor Quill (admin) maupun teks polos data lama. */
.terms-content {
    overflow-wrap: anywhere;
}

/* Data lama berupa teks polos dengan newline. */
.terms-content.is-plain {
    white-space: pre-line;
}

.terms-content p {
    margin-bottom: 0.85rem;
}

.terms-content p:last-child {
    margin-bottom: 0;
}

.terms-content h1,
.terms-content h2,
.terms-content h3 {
    font-family: "Sora", system-ui, sans-serif;
    font-weight: 700;
    color: #0B1437;
    line-height: 1.3;
    margin: 1.25rem 0 0.6rem;
}

.terms-content h1 { font-size: 1.25rem; }
.terms-content h2 { font-size: 1.125rem; }
.terms-content h3 { font-size: 1rem; }

.terms-content ul,
.terms-content ol {
    margin: 0 0 0.85rem 1.25rem;
    padding-left: 0.25rem;
}

.terms-content ul { list-style: disc; }
.terms-content ol { list-style: decimal; }
.terms-content li { margin-bottom: 0.35rem; }

.terms-content blockquote {
    border-left: 3px solid #155EEF;
    padding: 0.35rem 0 0.35rem 0.9rem;
    margin: 0.85rem 0;
    color: #5A6785;
    font-style: italic;
}

.terms-content a {
    color: #155EEF;
    text-decoration: underline;
}

.terms-content strong {
    font-weight: 700;
    color: #0B1437;
}

.terms-content code {
    background: #F2F4F7;
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    font-size: 0.85em;
}

/* Bintang testimoni. Dipakai header halaman /testimoni (render server) dan
   kartu read-only testimoni customer, dengan warna eksplisit agar tetap terbaca
   walau Tailwind CDN gagal dimuat. */
.testimoni-star {
    color: #D0D5DD;
    font-size: 1.05rem;
}

.testimoni-star.star-filled {
    color: #F79009;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.testimoni-star.star-half {
    color: #F79009;
}

.testimoni-star.star-empty {
    color: #D0D5DD;
}

/* Picker bintang pada form testimoni Order Detail (state NONE / EDITABLE). */
.rating-star-btn {
    background: transparent;
    border: 0;
    padding: 0.15rem;
    line-height: 1;
    cursor: pointer;
    color: #D0D5DD;
    transition: transform 0.15s ease-in-out, color 0.15s ease-in-out;
}

.rating-star-btn .material-symbols-outlined {
    font-size: 1.9rem;
}

.rating-star-btn:hover {
    transform: translateY(-2px);
}

.rating-star-btn:focus-visible {
    outline: 2px solid #155EEF;
    outline-offset: 2px;
    border-radius: 6px;
}

.rating-star-btn.is-active {
    color: #F79009;
}

.rating-star-btn.is-active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}


/* ===== Live Sales Pop-up (social proof) ===== */
/* Widget notifikasi pojok kanan bawah halaman publik. Struktur markup ada di
   Views/Shared/_LiveSalesPopup.cshtml, perilakunya di wwwroot/js/cust.js. */
.lsp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 330px;
    max-width: calc(100vw - 32px);
    padding: 14px 34px 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    background: #FFFFFF;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.lsp.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.lsp[hidden] {
    display: none;
}

.lsp-close {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

.lsp-close:hover,
.lsp-close:focus-visible {
    background: rgba(16, 24, 40, 0.06);
    color: #101828;
}

.lsp-close .material-symbols-outlined {
    font-size: 16px;
}

.lsp-avatar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-image: linear-gradient(135deg, #155EEF, #7A5AF8);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.lsp-body {
    min-width: 0;
    flex: 1 1 auto;
}

.lsp-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #101828;
    overflow-wrap: anywhere;
}

.lsp-title strong {
    font-weight: 600;
}

.lsp-meta {
    margin: 4px 0 0;
    font-size: 12px;
    color: #475467;
}

.lsp-time {
    margin: 2px 0 0;
    font-size: 11px;
    color: #98A2B3;
}

/* Popup disembunyikan total di layar kecil supaya tidak menutupi konten halaman. */
@media (max-width: 767.98px) {
    .lsp {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lsp {
        transition: none;
    }
}

