/* Custom Styles, Animations & Micro-interactions */
body {
font-family: 'Kanit', 'Inter', sans-serif;
background-color: #090D16;
color: #F3F4F6;
overflow-x: hidden;
}
/* Scrollbar Customization */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: #111827;
}
::-webkit-scrollbar-thumb {
background: #374151;
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: #4B5563;
}
/* Tab Content Switch Animation */
.tab-content {
animation: fadeInSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInSlide {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Modal Pop Animation */
@keyframes modalPop {
from {
opacity: 0;
transform: scale(0.92) translateY(12px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
.animate-modalPop {
animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
/* PIN Error Shake Animation */
.shake-animation {
animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
10%, 90% { transform: translate3d(-1px, 0, 0); }
20%, 80% { transform: translate3d(2px, 0, 0); }
30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
40%, 60% { transform: translate3d(4px, 0, 0); }
}
/* Floating Tab Bar Glow */
.shadow-glow {
box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
}
.floating-nav-bar {
box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(55, 65, 81, 0.4);
}
.mob-nav-item.active-nav {
background-color: rgba(37, 99, 235, 0.2);
color: #3B82F6 !important;
}
.mob-nav-item.active-nav .active-dot {
display: block !important;
}
/* SweetAlert2 Dark Theme Customization */
.swal2-popup.swal2-dark-custom {
background-color: #1F2937 !important;
color: #F3F4F6 !important;
border: 1px solid #374151 !important;
border-radius: 1.5rem !important;
font-family: 'Kanit', sans-serif !important;
}
.swal2-title {
color: #FFFFFF !important;
}
.swal2-html-container {
color: #9CA3AF !important;
}
/* ===== Expandable Contact & Rating Widget ===== */
.cw-fab {
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #2563EB, #60A5FA);
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.55);
    border: 2px solid #090D16;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cw-fab:active { transform: scale(0.92); }
.cw-fab.open { transform: rotate(90deg); }

.cw-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(288px, calc(100vw - 2rem));
    max-height: calc(100vh - 15rem);
    overflow-y: auto;
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    transform-origin: bottom right;
    transform: scale(0.6) translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.cw-panel.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cw-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.85rem;
    background: #111827;
    border: 1px solid #374151;
    color: #F3F4F6;
    font-size: 0.85rem;
    transition: border-color 0.2s, transform 0.2s;
}
.cw-contact-item:hover { border-color: rgba(59, 130, 246, 0.6); transform: translateX(2px); }
.cw-contact-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

/* ----- Rating: fill -> gather into one -> morph into thanks ----- */
.cw-rating { position: relative; height: 44px; }
.cw-stars {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.cw-star {
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
    line-height: 1;
    color: #4B5563;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.25s ease;
}
.cw-star.filled {
    color: #FBBF24;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.55));
    animation: cwStarPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cw-star.fade { opacity: 0; transform: scale(0.3); }
.cw-star.merged { transition: none; animation: cwMerge 0.35s ease forwards; }
.cw-star.vanish { transition: none; opacity: 0; }
@keyframes cwStarPop { 0% { transform: scale(0.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes cwMerge {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.7); filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.9)); }
    100% { transform: scale(0) rotate(180deg); opacity: 0; }
}
.cw-thanks {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #FBBF24;
    opacity: 0;
    transform: scale(0.3);
    filter: blur(6px);
    pointer-events: none;
}
.cw-thanks.show { animation: cwThanksIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes cwThanksIn {
    0% { opacity: 0; transform: scale(0.3); filter: blur(6px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
.cw-rating.locked .cw-star { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    .cw-panel, .cw-fab, .cw-star { transition: none; }
    .cw-star.filled, .cw-star.merged, .cw-thanks.show { animation: none; }
}