/* GHL Contact Search Styles */

/* Apple-style Font (Inter) */
:root {
    --apple-font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;

    /* Theme CSS custom properties — defaults (Default theme) */
    --theme-primary: #4f46e5;
    --theme-primary-hover: #4338ca;
    --theme-bg: #f3f4f6;
    --theme-card: #ffffff;
    --theme-text: #111827;
    --theme-accent: #4338ca;
}

/* Base styles */
body {
    font-family: var(--apple-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--theme-bg);
    min-height: 100vh;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    letter-spacing: -0.011em;
    font-feature-settings: "cv01", "cv02", "cv03", "cv04";
    font-weight: 400;
}

/* Override Tailwind font classes */
*,
.font-sans,
input,
button,
select,
textarea,
table {
    font-family: var(--apple-font) !important;
}

/* Apple-style typography */
h1, h2, h3, h4, h5, h6,
.text-lg, .text-xl, .text-2xl, .text-3xl {
    font-weight: 600;
    letter-spacing: -0.025em;
}

.text-sm {
    letter-spacing: -0.006em;
}

.text-xs {
    letter-spacing: 0.01em;
}

/* Lighter font for labels */
label, .font-medium {
    font-weight: 500;
}

@media (min-width: 640px) {
    body {
        padding-top: 0.75rem;
        padding-bottom: 1rem;
    }
}

/* Container styles */
.max-w-screen-xl {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .max-w-screen-xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .max-w-screen-xl {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.max-w-4xl {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-2xl {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* Card styles */
.bg-white {
    background-color: white;
}

.rounded-lg {
    border-radius: 1.5rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.overflow-hidden {
    overflow: hidden;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .sm\:p-6 {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:p-8 {
        padding: 2rem;
    }
}

/* Typography */
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

@media (min-width: 640px) {
    .sm\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

.text-gray-800 {
    color: rgb(31, 41, 55);
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-medium {
    font-weight: 500;
}

.text-gray-900 {
    color: rgb(17, 24, 39);
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-gray-700 {
    color: rgb(55, 65, 81);
}

.text-blue-link {
    color: #2563EB !important; /* Tailwind blue-600 */
    text-decoration: underline;
  }
  
  .text-blue-link:hover {
    color: #1D4ED8; /* Tailwind blue-700 */
    text-decoration: underline;
  }

.mb-2 {
    margin-bottom: 0.5rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-gray-500 {
    color: rgb(107, 114, 128);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* Form styles */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.block {
    display: block;
}

.mt-1 {
    margin-top: 0.25rem;
}

.w-full {
    width: 100%;
}

.border {
    border-width: 1px;
}

.border-gray-300 {
    border-color: rgb(209, 213, 219);
}

.border-gray-200 {
    border-color: rgb(229, 231, 235);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-indigo-500:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgba(99, 102, 241, var(--tw-ring-opacity));
    box-shadow: 0 0 0 3px var(--tw-ring-color);
}

.focus\:border-indigo-500:focus {
    border-color: rgb(99, 102, 241);
}

/* Button styles */
.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.border-transparent {
    border-color: transparent;
}

.text-white {
    color: white;
}

.bg-indigo-600 {
    background-color: rgb(79, 70, 229);
}

.hover\:bg-indigo-700:hover {
    background-color: rgb(67, 56, 202);
}

.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
}

.focus\:ring-offset-2:focus {
    --tw-ring-offset-width: 2px;
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

/* Loading icon */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.ml-2 {
    margin-left: 0.5rem;
}

.h-5 {
    height: 1.25rem;
}

.w-5 {
    width: 1.25rem;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-75 {
    opacity: 0.75;
}

/* Results styles */
.mt-8 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.bg-gray-50 {
    background-color: rgb(249, 250, 251);
}

.p-4 {
    padding: 1rem;
}

@media (min-width: 640px) {
    .sm\:p-6 {
        padding: 1.5rem;
    }
}

.overflow-auto {
    overflow: auto;
}

.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.max-h-96 {
    max-height: 24rem;
}

.font-mono {
    font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;
}

/* Table styles */
.overflow-x-auto {
    overflow-x: auto;
}

.min-w-full {
    min-width: 100%;
}

.divide-y > * + * {
    border-top-width: 1px;
    border-top-style: solid;
}

.divide-gray-200 > * + * {
    border-color: rgb(229, 231, 235);
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.text-left {
    text-align: left;
}

.w-1\/4 {
    width: 25%;
}

/* Tags styles */
.mt-4 {
    margin-top: 1rem;
}

/* Two-column layout styles */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.-mx-2 {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.w-full {
    width: 100%;
}

.mb-4 {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .md\:w-1\/2 {
        width: 50%;
    }
    
    .md\:mb-0 {
        margin-bottom: 0;
    }
}

.gap-2 > * + * {
    margin-left: 0.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.bg-blue-100 {
    background-color: rgb(219, 234, 254);
}

.text-blue-800 {
    color: rgb(30, 64, 175);
}

.rounded-full {
    border-radius: 9999px;
}

/* Error message styles */
.mt-4 {
    margin-top: 1rem;
}

.bg-red-50 {
    background-color: rgb(254, 242, 242);
}

.border-red-200 {
    border-color: rgb(254, 202, 202);
}

.text-red-400 {
    color: rgb(248, 113, 113);
}

.text-red-600 {
    color: #dc2626;
}

.text-red-800 {
    color: rgb(153, 27, 27);
}


/* Result content styles */
#resultContent {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

#resultContent .font-mono {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Helvetica", "Arial", sans-serif !important;
}

#loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
}

#loading.hidden {
    display: none;
}

/* Perbaiki tampilan select */
#loanProvider {
    height: 2.5rem;
    background-color: #f3f4f6 !important;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    width: 100%;
}

/* Select2 styling to match other dropdowns */
.select2-container--default .select2-selection--single {
    background-color: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.75rem !important;
    height: 2.375rem !important;
    padding: 0.25rem 0.25rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    line-height: 1.75rem !important;
    padding-left: 0.5rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 2.25rem !important;
}

.select2-container {
    width: 100% !important;
}

.select2-dropdown {
    border: 1px solid #d1d5db !important;
    border-radius: 0.75rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #4f46e5 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #d1d5db !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem !important;
}

.star-rating .star.active {
    color: #fbbf24; /* yellow-400 */
}

.star-rating .star:hover {
    color: #fbbf24; /* yellow-400 */
}
/* Welcome Call Modal styles */
.ring-teal-500 {
  box-shadow: 0 0 0 2px #14b8a6; /* teal-500 */
}

.bg-teal-600 {
  background-color: #0d9488; /* teal-600 */
}

.bg-teal-700 {
  background-color: #0f766e; /* teal-700 */
}

.bg-rose-600 {
    background-color: #e11d48; /* merah muda tua */
}
.bg-rose-700 {
    background-color: #be123c;
}
.focus\:ring-rose-500:focus {
  box-shadow: 0 0 0 2px #f43f5e;
}
.z-60 {
    z-index: 60;
}

.bg-cyan-600 {
    background-color: #0d9488; /* teal-600 */
}
.focus\:ring-cyan-500:focus {
    background-color: #0f766e; /* teal-700 */
}
.hover\:bg-cyan-700:hover {
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.5);
}

/* macOS-style Dock */
body.dock-bottom #action-dock {
    animation: dock-slide-up 0.3s ease-out;
}
body.dock-left #action-dock {
    animation: dock-slide-in-left 0.3s ease-out;
}
body.dock-right #action-dock {
    animation: dock-slide-in-right 0.3s ease-out;
}

@keyframes dock-slide-up {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes dock-slide-in-left {
    from { opacity: 0; transform: translateY(-50%) translateX(-20px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}
@keyframes dock-slide-in-right {
    from { opacity: 0; transform: translateY(-50%) translateX(20px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.dock-item:hover .dock-button:not(:disabled) {
    transform: scale(1.15);
}

.dock-item:hover .dock-button:not(:disabled) ~ .dock-item .dock-button {
    transform: scale(1.05);
}

/* Dock drag reorder */
#dock-inner [data-dock-id] {
    user-select: none;
}

#dock-inner.dragging-active .dock-item:hover .dock-button {
    transform: none !important;
}

/* Add padding to body based on dock position */
body.dock-bottom:has(#action-dock) {
    padding-bottom: 5rem;
}
body.dock-left:has(#action-dock) {
    padding-left: 5rem;
}
body.dock-right:has(#action-dock) {
    padding-right: 5rem;
}

/* Vertically center modals */
.modal-box {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    overflow-y: auto;
}

/* ===== Theme system overrides ===== */
/* Buttons using bg-indigo-600 class get theme primary */
.bg-indigo-600,
.dock-button.bg-indigo-600 {
    background-color: var(--theme-primary) !important;
}

.hover\:bg-indigo-700:hover {
    background-color: var(--theme-primary-hover) !important;
}

.text-indigo-600 {
    color: var(--theme-primary) !important;
}

.border-indigo-600 {
    border-color: var(--theme-primary) !important;
}

/* Focus rings */
.focus\:ring-indigo-500:focus,
.focus\:ring-indigo-300:focus {
    --tw-ring-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 35%, transparent) !important;
}

.focus\:border-indigo-500:focus {
    border-color: var(--theme-primary) !important;
}

/* Hover states */
.hover\:border-indigo-300:hover,
.hover\:border-indigo-400:hover,
.hover\:border-indigo-500:hover {
    border-color: var(--theme-primary) !important;
}

.hover\:text-indigo-600:hover {
    color: var(--theme-primary) !important;
}

.hover\:bg-indigo-50:hover {
    background-color: color-mix(in srgb, var(--theme-primary) 10%, white) !important;
}

/* Settings active state (for dock style, dock position, click sound buttons) */
.settings-active {
    outline: 2px solid var(--theme-primary) !important;
    outline-offset: 2px !important;
    border-color: var(--theme-primary) !important;
}

/* Sliders and checkboxes */
input[type="range"] {
    accent-color: var(--theme-primary);
}

input[type="checkbox"] {
    accent-color: var(--theme-primary);
}

/* Select2 dropdown highlight */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--theme-primary) !important;
}

/* Theme chooser card styles */
.theme-card {
    display: block;
    width: 100%;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 1.25rem;
    padding: 0.5rem 0.5rem 0.375rem;
    background: transparent;
    transition: all 0.2s ease;
    text-align: center;
}

.theme-card:hover {
    background-color: #f3f4f6;
}

.theme-card.active {
    background-color: #eef2ff;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 1px var(--theme-primary);
}

.theme-swatch {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    margin: 0 auto 0.25rem;
    pointer-events: none;
}

/* Modal outer frame — base background uses card-bg-alpha CSS variable */
.modal-outer {
    background-color: rgba(255, 255, 255, var(--card-bg-alpha, 1));
    /* Hide scrollbar while keeping scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.modal-outer::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Modal outer frame toggle — when body has .no-modal-frame, hide the outer wrapper styling */
body.no-modal-frame .modal-outer {
    background-color: transparent;
    box-shadow: none !important;
}
body.no-modal-frame .modal-inner {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Liquid glass shimmer for card-outer and modal-outer.
   background-color, backdrop-filter, and box-shadow are set as inline styles by applyDockStyle()
   Uses alternate direction so shimmer is always visible, never off-screen. */
.glass-liquid {
    background-image: linear-gradient(
        110deg,
        rgba(220, 234, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.70) 30%,
        rgba(230, 220, 255, 0.20) 55%,
        rgba(255, 255, 255, 0.60) 80%,
        rgba(220, 234, 255, 0.15) 100%
    );
    background-size: 200% 100%;
    animation: card-liquid-shimmer 2.5s ease-in-out infinite alternate;
}

@keyframes card-liquid-shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 100% center; }
}

/* Liquid Glass dock animation */
@keyframes liquid-glass-flow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes liquid-glass-pulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.18), inset 0 1.5px 0 rgba(255,255,255,0.92), inset 0 -1px 0 rgba(0,0,0,0.04), inset 0 0 0 0.5px rgba(255,255,255,0.5); }
    50%       { box-shadow: 0 8px 36px rgba(0,0,0,0.22), inset 0 1.5px 0 rgba(255,255,255,1),    inset 0 -1px 0 rgba(0,0,0,0.06), inset 0 0 0 0.5px rgba(255,255,255,0.7); }
}

#dock-inner.liquid-glass {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.06) 0%,
        rgba(255,255,255,0.58) 22%,
        rgba(255,255,255,0.10) 50%,
        rgba(255,255,255,0.58) 78%,
        rgba(255,255,255,0.06) 100%
    ) !important;
    background-size: 250% 100% !important;
    animation: liquid-glass-flow 5s ease-in-out infinite, liquid-glass-pulse 5s ease-in-out infinite;
}

/* Bouncing dots for frosted glass loader */
@keyframes bounce-dot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-8px); opacity: 1; }
}
.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--theme-primary, #6366f1);
    animation: bounce-dot 1.2s ease-in-out infinite;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

/* Indeterminate progress bar for loader */
@keyframes progress-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}
.loading-progress-bar {
    width: 120px;
    height: 3px;
    background: color-mix(in srgb, var(--theme-primary, #6366f1) 15%, transparent);
    border-radius: 999px;
    overflow: hidden;
}
.loading-progress-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--theme-primary, #6366f1);
    border-radius: 999px;
    animation: progress-slide 1.4s ease-in-out infinite;
}

/* ── Announcements scroll (hidden scrollbar) ──────────── */
#announcementsContent {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#announcementsContent::-webkit-scrollbar {
    display: none;
}

/* ── Greeting Card ────────────────────────────────────── */
#greetingOverlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 244, 246, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    cursor: pointer;
}

#greetingCard {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 40px 52px 0;
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    box-shadow: 0 24px 64px rgba(79, 70, 229, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);
    min-width: 300px;
    text-align: center;
    overflow: hidden;
}

#greetingAvatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid var(--theme-primary, #4f46e5);
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.1);
    object-fit: cover;
    margin-bottom: 8px;
}

#greetingTexts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

#greetingText {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

#greetingSubtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

#greetingDismissHint {
    font-size: 0.7rem;
    color: #d1d5db;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 10px 0 16px;
}

#greetingProgressTrack {
    width: 100%;
    height: 3px;
    background: #f3f4f6;
}

#greetingProgressBar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--theme-primary, #4f46e5), #818cf8);
    transform-origin: left;
}

/* Enter animation */
#greetingOverlay.greeting-in {
    animation: greetingOverlayIn 0.35s ease forwards;
}
#greetingOverlay.greeting-in #greetingCard {
    animation: greetingCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}
#greetingOverlay.greeting-in #greetingAvatar {
    animation: greetingAvatarIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both,
               greetingAvatarPulse 2.5s ease-in-out 0.6s infinite;
}
#greetingOverlay.greeting-in #greetingText {
    animation: greetingSlideUp 0.35s ease 0.3s both;
}
#greetingOverlay.greeting-in #greetingSubtitle {
    animation: greetingSlideUp 0.35s ease 0.4s both;
}
#greetingOverlay.greeting-in #greetingDismissHint {
    animation: greetingSlideUp 0.35s ease 0.5s both;
}
#greetingOverlay.greeting-in #greetingProgressBar {
    animation: greetingProgress 3s linear 0.35s both;
}

/* Exit animation */
#greetingOverlay.greeting-out {
    animation: greetingOverlayOut 0.4s ease forwards;
}
#greetingOverlay.greeting-out #greetingCard {
    animation: greetingCardOut 0.35s ease forwards;
}

@keyframes greetingOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes greetingOverlayOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes greetingCardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.93); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes greetingCardOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.96); }
}
@keyframes greetingAvatarIn {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes greetingAvatarPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.10); }
    50%       { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0.04); }
}
@keyframes greetingSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes greetingProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}
