* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* NOTE: main padding removed — each page handles its own top padding */

.bg-ayu-bg {
    background-color: #F4F8F4 !important;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(45, 122, 58, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

/* ── Utility: hide scrollbars but keep scrolling ── */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ── Marketplace Card Styles ── */
.market-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.market-card:active {
    transform: scale(0.97);
}

/* Spinner border-3 */
.border-3 {
    border-width: 3px;
}

/* Category pill active animation */
@keyframes pill-pop {
    0% {
        transform: scale(0.94);
    }

    60% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

.cat-active {
    animation: pill-pop 0.22s ease forwards;
}

/* ── Chat Launcher — full animation from ayu_chat_launcher.html ── */
.launcher-fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 54px;
    height: 54px;
    z-index: 50;
    cursor: pointer;
}

/* Ripple rings */
.launcher-fab .ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid #E8632A;
    opacity: 0;
    animation: fab-ripple 2.8s ease-out infinite;
}

.launcher-fab .ring:nth-child(2) {
    animation-delay: 0.9s;
}

.launcher-fab .ring:nth-child(3) {
    animation-delay: 1.8s;
}

@keyframes fab-ripple {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Main circular button */
.launcher-fab .launcher-btn {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #E8632A;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fab-float 3s ease-in-out infinite;
    transition: transform 0.2s, background 0.2s;
    z-index: 2;

}

.launcher-fab .launcher-btn:hover {
    background: #C44518;
}

.ring {

    --tw-ring-offset-shadow: none !important;
    --tw-ring-shadow: none !important;
    box-shadow: none !important;
}

@keyframes fab-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Icon morph */
.launcher-fab .icon-chat,
.launcher-fab .icon-leaf {
    position: absolute;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}

.launcher-fab .icon-chat {
    animation: fab-morphOut 5s ease-in-out infinite;
}

.launcher-fab .icon-leaf {
    animation: fab-morphIn 5s ease-in-out infinite;
}

@keyframes fab-morphOut {

    0%,
    35% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    45%,
    55% {
        opacity: 0;
        transform: scale(0.4) rotate(20deg);
    }

    65%,
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fab-morphIn {

    0%,
    35% {
        opacity: 0;
        transform: scale(0.4) rotate(-20deg);
    }

    45%,
    55% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    65%,
    100% {
        opacity: 0;
        transform: scale(0.4) rotate(-20deg);
    }
}

/* Notification badge */
.launcher-fab .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: #2C2418;
    border-radius: 50%;
    border: 2px solid #FAF6F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    z-index: 3;
    animation: fab-badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

@keyframes fab-badgePop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Tooltip bubble */
.launcher-fab .tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: #2C2418;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 20px;
    pointer-events: none;
    animation: fab-tooltip 4s ease-in-out 1.2s infinite;
    z-index: 5;
}

.launcher-fab .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2C2418;
}

@keyframes fab-tooltip {

    0%,
    10% {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }

    20%,
    70% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    80%,
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px);
    }
}

/* Particle sparks */
.launcher-fab .sparks {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.launcher-fab .spark {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #E8632A;
    top: 50%;
    left: 50%;
    animation: fab-spark 3s ease-out infinite;
}

.launcher-fab .spark:nth-child(1) {
    animation-delay: 0s;
    --dx: -38px;
    --dy: -36px;
}

.launcher-fab .spark:nth-child(2) {
    animation-delay: 0.4s;
    --dx: 40px;
    --dy: -30px;
    background: #F5C4A0;
}

.launcher-fab .spark:nth-child(3) {
    animation-delay: 0.8s;
    --dx: -42px;
    --dy: 28px;
    background: #2A6E38;
}

.launcher-fab .spark:nth-child(4) {
    animation-delay: 1.2s;
    --dx: 36px;
    --dy: 38px;
    background: #FAC775;
}

.launcher-fab .spark:nth-child(5) {
    animation-delay: 1.6s;
    --dx: 0px;
    --dy: -46px;
}

.launcher-fab .spark:nth-child(6) {
    animation-delay: 2.0s;
    --dx: 44px;
    --dy: 4px;
    background: #F5C4A0;
}

@keyframes fab-spark {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }

    60% {
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.6);
        opacity: 0.6;
    }

    100% {
        transform: translate(calc(-50% + var(--dx)*1.5), calc(-50% + var(--dy)*1.5)) scale(0);
        opacity: 0;
    }
}

/* Halo ring */
.launcher-fab .halo {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid rgba(232, 99, 42, 0.3);
    animation: fab-halo 6s linear infinite;
}

.launcher-fab .halo::before,
.launcher-fab .halo::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E8632A;
}

.launcher-fab .halo::before {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.launcher-fab .halo::after {
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

@keyframes fab-halo {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ── Ayu Chat Styles ── */
.chat-wallpaper {
    background: #FAFAFA;
}

.ayu-bubble-in {
    background: #fff;
    border-radius: 4px 16px 16px 16px;
    color: #1A2E1C;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 95%;
    border: 1px solid #E8F0E8;
    box-shadow: 0 2px 12px rgba(45, 122, 58, 0.03);
}

.ayu-bubble-out {
    background: #cedec5;
    border-radius: 16px 16px 4px 16px;
    color: #1A2E1C;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 85%;
}

.ayu-bubble-time {
    font-size: 11px;
    color: #8C998E;
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}

.ayu-bubble-time .check-icon {
    color: #4CAF50;
    font-size: 14px;
}

.ayu-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EBF5ED;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2D7A3A;
    flex-shrink: 0;
    align-self: flex-start;
}

.ayu-typing-dots {
    background: #fff;
    border-radius: 4px 16px 16px 16px;
    padding: 12px 16px;
    display: flex;
    gap: 4px;
    align-items: center;
    border: 1px solid #E8F0E8;
}

.ayu-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8C998E;
    animation: ayuBounce 1.2s infinite;
}

.ayu-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ayu-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes ayuBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }
}

.ayu-chat-input-area {
    background: #fff;
    padding: 10px 16px 20px;
}

.ayu-msg-input-wrap {
    background: #fff;
    border-radius: 28px;
    border: 1px solid #E8F0E8;
    display: flex;
    align-items: center;
    padding: 6px 6px 6px 16px;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(45, 122, 58, 0.04);
}

.ayu-msg-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    background: transparent;
    color: #1A2E1C;
    resize: none;
    max-height: 100px;
    line-height: 1.4;
    padding: 6px 0;
}

.ayu-msg-input::placeholder {
    color: #A0B0A4;
}

.ayu-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2D7A3A;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.ayu-date-pill {
    color: #2D7A3A;
    font-size: 12px;
    font-weight: 500;
}

/* New Content Blocks */
.chat-why-block {
    background: #F3FAF4;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    color: #3E5A44;
    font-size: 13px;
    line-height: 1.5;
}

.chat-alt-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chat-alt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #E8F0E8;
    border-radius: 12px;
    padding: 10px 12px;
}

.chat-alt-item .alt-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F0F7F1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.chat-alt-item .alt-text {
    flex: 1;
}

.chat-alt-item .alt-title {
    font-weight: 600;
    color: #1A2E1C;
    font-size: 14px;
}

.chat-alt-item .alt-desc {
    color: #6B8C72;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 2px;
}

.chat-alt-item i {
    color: #6B8C72;
}

/* ── Hero Greeting Card ── */
@keyframes heroPhotoZoom {
    0% {
        transform: scale(1.04);
    }

    50% {
        transform: scale(1.10);
    }

    100% {
        transform: scale(1.04);
    }
}

@keyframes heroPhotoBadgeIn {
    0% {
        opacity: 0;
        transform: scale(0.80) translateY(6px);
    }

    70% {
        transform: scale(1.05) translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes heroScorePulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    50% {
        box-shadow: 0 4px 24px rgba(255, 255, 255, 0.18), 0 4px 16px rgba(0, 0, 0, 0.15);
    }
}

@keyframes heroDoshaPillIn {
    0% {
        opacity: 0;
        transform: translateX(12px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-greeting-card {
    transition: box-shadow 0.3s ease;
}

.hero-greeting-card:hover {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.30) !important;
}

/* Full-bleed background photo Ken Burns animation */
.hero-greeting-card img.hero-bg-img {
    animation: heroPhotoZoom 14s ease-in-out infinite;
    will-change: transform;
}

/* Floating photo badge entrance */
.hero-greeting-card .hero-photo-badge {
    animation: heroPhotoBadgeIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}

/* Score pill subtle pulse */
.hero-greeting-card .hero-score-pill {
    animation: heroScorePulse 3s ease-in-out infinite;
}

/* Dosha pill entrance */
.hero-greeting-card .dosha-badge-pill {
    animation: heroDoshaPillIn 0.5s ease 0.4s both;
}

/* SVG score ring transition */
.hero-greeting-card circle {
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.chat-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-icon-wrap::before,
.chat-icon-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    animation: ripple-ring 2.4s ease-out infinite;
}

.chat-icon-wrap::after {
    animation-delay: 0.8s;
}

.chat-icon-wrap i {
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes ripple-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

@keyframes icon-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.08);
    }
}

@media (min-width: 320px) and (max-width: 768px) {
    .hero-photo-badge {
        width: 110px !important;
    }
}