@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

* {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-weight: 400;
    color: #2d2d2d;
    padding-top: 100px;
}

h1, h2, h3, h4, h5, h6,
b, strong {
    font-weight: 600;
}

/* Custom animations and utilities */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.shadow-glass {
    box-shadow: 0 20px 60px rgba(0, 24, 69, 0.12);
}

.shadow-glass-sm {
    box-shadow: 0 12px 34px rgba(0, 24, 69, 0.10);
}

.shadow-glass-lg {
    box-shadow: 0 30px 90px rgba(0, 24, 69, 0.18);
}

.transition-smooth {
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.landing-plan-popular {
    background: linear-gradient(135deg, #0466C8 0%, #023E7D 100%);
    box-shadow: 0 30px 90px rgba(0, 24, 69, 0.20);
    transform: scale(1.03);
}

.landing-plan-cta {
    background: #0466C8;
    color: #FFFFFF;
}

.landing-plan-cta:hover {
    background: #0353A4;
}

.landing-plan-cta-popular {
    background: #FFFFFF;
    color: #001845;
}

.landing-plan-cta-popular:hover {
    background: rgba(255, 255, 255, 0.92);
}

.landing-star {
    width: 14px;
    height: 14px;
    fill: #0466C8;
    color: #0466C8;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #0F172A 0%, #64748B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

/* Pulse ring animation */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: inherit;
    opacity: 0.5;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: -1;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom selection color */
::selection {
    background: #0F172A;
    color: white;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #0F172A;
    outline-offset: 2px;
}

/* Mobile menu animation */
.mobile-menu-enter {
    transform: translateX(100%);
    opacity: 0;
}

.mobile-menu-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease-out;
}

.mobile-menu-exit {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu-exit-active {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in;
}

/* Blob animation for background */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Counter animation helper */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Image loading placeholder */
.img-loading {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: shine 1.5s linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* Button press effect */
.btn-press:active {
    transform: scale(0.95);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: .2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.d-none { display: none !important; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom checkbox/radio styles */
.custom-checkbox:checked {
    background-color: #0F172A;
    border-color: #0F172A;
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 6px 12px;
    background: #1e293b;
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Stagger animation delay utilities */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Custom date-time popover (order modal) */
.taisom-dt-panel {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(0, 24, 69, 0.10);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    width: 520px;
}

.taisom-dt-body {
    display: grid;
    grid-template-columns: 1fr 120px;
}

.taisom-dt-calendar {
    padding: 16px 16px 12px 16px;
}

.taisom-dt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.taisom-dt-month {
    font-weight: 600;
    color: #001845;
    text-transform: lowercase;
}

.taisom-dt-nav {
    display: flex;
    gap: 6px;
}

.taisom-dt-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: rgba(0, 24, 69, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 160ms ease, color 160ms ease;
}

.taisom-dt-nav-btn:hover {
    background: rgba(0, 24, 69, 0.05);
    color: rgba(0, 24, 69, 0.85);
}

.taisom-dt-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.taisom-dt-dow {
    font-size: 12px;
    font-weight: 600;
    color: rgba(0, 24, 69, 0.45);
    text-align: center;
    padding: 6px 0 4px 0;
}

.taisom-dt-day {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #001845;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
    justify-self: center;
}

.taisom-dt-day:hover {
    background: rgba(0, 24, 69, 0.04);
}

.taisom-dt-day.is-empty {
    visibility: hidden;
    pointer-events: none;
}

.taisom-dt-day.is-selected {
    background: #5B2DFF;
    color: #FFFFFF;
    box-shadow: 0 10px 20px rgba(91, 45, 255, 0.22);
}

.taisom-dt-times {
    border-left: 1px solid rgba(0, 24, 69, 0.10);
    background: rgba(0, 24, 69, 0.02);
}

.taisom-dt-times-list {
    max-height: 290px;
    overflow: auto;
    padding: 12px 10px;
}

.taisom-dt-time {
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 12px;
    padding: 10px 8px;
    font-weight: 600;
    color: rgba(0, 24, 69, 0.75);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.taisom-dt-time:hover {
    background: rgba(0, 24, 69, 0.05);
}

.taisom-dt-time.is-selected {
    background: rgba(91, 45, 255, 0.12);
    color: #5B2DFF;
}

.taisom-dt-footer {
    padding: 10px 16px 14px 16px;
}

.taisom-dt-divider {
    height: 1px;
    background: rgba(0, 24, 69, 0.10);
    margin-bottom: 10px;
}

.taisom-dt-wait {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.taisom-dt-wait-label {
    font-weight: 600;
    color: #001845;
}

.taisom-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 44px;
    height: 22px;
}

.taisom-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.taisom-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    transition: background-color 180ms ease;
}

.taisom-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease;
}

.taisom-toggle input:checked ~ .taisom-toggle-track {
    background: #5B2DFF;
}

.taisom-toggle input:checked ~ .taisom-toggle-thumb {
    transform: translateX(22px);
}

@media (max-width: 640px) {
    .taisom-dt-panel {
        width: 100%;
    }

    .taisom-dt-body {
        grid-template-columns: 1fr;
    }

    .taisom-dt-times {
        border-left: none;
        border-top: 1px solid rgba(0, 24, 69, 0.10);
    }
}

/* Responsive typography */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}