/* Premium feedback UI and HAYDAY storefront loader */

/* Compact notification toasts */
#notification-container {
    top: 14px;
    right: 14px;
    width: min(300px, calc(100vw - 28px));
    max-width: 300px;
    gap: 8px;
}

.notification {
    width: 100%;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 10px 34px 10px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 12px 30px rgba(16, 37, 31, 0.17), 0 2px 8px rgba(16, 37, 31, 0.08);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.notification:hover {
    transform: translateX(-2px);
    box-shadow: 0 16px 34px rgba(16, 37, 31, 0.21), 0 2px 8px rgba(16, 37, 31, 0.09);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.notification-icon svg { width: 16px; height: 16px; }
.notification-content { line-height: 1.2; }

.notification-title {
    margin: 0 0 2px;
    font-size: 0.79rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.notification-message {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.7rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notification-close {
    top: 8px;
    right: 8px;
    width: 19px;
    height: 19px;
    background: rgba(255, 255, 255, 0.16);
}

.notification-close svg { width: 9px; height: 9px; }
.notification-progress { height: 2px; border-radius: 0 0 14px 14px; }
.notification.notification-success { background: linear-gradient(135deg, rgba(25, 166, 107, 0.95), rgba(46, 196, 143, 0.94)); }
.notification.notification-error { background: linear-gradient(135deg, rgba(214, 58, 79, 0.96), rgba(238, 73, 112, 0.94)); }
.notification.notification-warning { background: linear-gradient(135deg, rgba(247, 174, 40, 0.97), rgba(255, 203, 75, 0.95)); }
.notification.notification-info { background: linear-gradient(135deg, rgba(26, 151, 188, 0.96), rgba(61, 124, 219, 0.94)); }
.notification.notification-default { background: linear-gradient(135deg, rgba(55, 70, 78, 0.95), rgba(78, 94, 102, 0.94)); }

/* Refined confirmation dialog */
#confirm-modal-overlay {
    padding: 18px;
    background: radial-gradient(circle at 50% 40%, rgba(68, 190, 126, 0.13), transparent 38%), rgba(10, 26, 22, 0.58);
    backdrop-filter: blur(9px) saturate(110%);
    -webkit-backdrop-filter: blur(9px) saturate(110%);
}

.confirm-modal {
    width: min(350px, 100%);
    max-width: 350px;
    padding: 24px;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 28px 70px rgba(7, 27, 20, 0.3), 0 4px 16px rgba(7, 27, 20, 0.12);
}

.confirm-modal::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #16a66b, #83d637, #f5c44c);
}

.confirm-modal-icon {
    width: 50px;
    height: 50px;
    margin: 2px auto 14px;
    border-radius: 15px;
    transform: rotate(-3deg);
}

.confirm-modal-icon svg { width: 25px; height: 25px; transform: rotate(3deg); }
.confirm-modal-icon.icon-warning { background: linear-gradient(145deg, #ffcb49, #f59b24); box-shadow: 0 9px 22px rgba(245, 155, 36, 0.28); }
.confirm-modal-icon.icon-danger { background: linear-gradient(145deg, #fa5d73, #d92d4d); box-shadow: 0 9px 22px rgba(217, 45, 77, 0.25); }
.confirm-modal-icon.icon-info { background: linear-gradient(145deg, #27bdd4, #2875d6); box-shadow: 0 9px 22px rgba(40, 117, 214, 0.24); }

.confirm-modal-title {
    margin: 0 0 7px;
    color: #17352c;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    text-shadow: none;
}

.confirm-modal-message {
    max-width: 285px;
    margin: 0 auto 20px;
    color: #64736e;
    font-size: 0.8rem;
    line-height: 1.55;
}

.confirm-modal-buttons { gap: 9px; }
.confirm-modal-btn { max-width: none; min-height: 42px; padding: 9px 14px; border-radius: 12px; font-size: 0.82rem; font-weight: 750; }
.confirm-modal-btn.btn-cancel { color: #4c6059; background: #f1f5f3; border: 1px solid #dce5e1; }
.confirm-modal-btn.btn-cancel:hover { color: #263f36; background: #e8efec; transform: translateY(-1px); }
.confirm-modal-btn.btn-confirm { background: linear-gradient(135deg, #e43c5d, #d92970); box-shadow: 0 7px 16px rgba(217, 41, 112, 0.22); }
.confirm-modal-btn.btn-confirm:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(217, 41, 112, 0.3); }
.confirm-modal-btn.btn-confirm.confirm-success { background: linear-gradient(135deg, #17a86c, #3cc786); box-shadow: 0 7px 16px rgba(23, 168, 108, 0.23); }
.confirm-modal-btn.btn-confirm.confirm-info { background: linear-gradient(135deg, #159bb9, #347bd8); box-shadow: 0 7px 16px rgba(52, 123, 216, 0.22); }

body.dark-mode .confirm-modal { background: rgba(26, 36, 33, 0.98); border-color: rgba(255, 255, 255, 0.09); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5); }
body.dark-mode .confirm-modal-title { color: #f4faf7; }
body.dark-mode .confirm-modal-message { color: #aebcb7; }
body.dark-mode .confirm-modal-btn.btn-cancel { color: #d9e5e0; background: #35443f; border-color: #485b54; }

/* Entirely new premium loading experience */
#loading-screen {
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(18px, 4vw, 40px);
    background: radial-gradient(circle at 12% 16%, rgba(255, 225, 112, 0.32), transparent 22%), radial-gradient(circle at 88% 12%, rgba(99, 216, 178, 0.35), transparent 26%), linear-gradient(145deg, #eaf9f3 0%, #d9f2eb 43%, #c9eae1 100%);
}

#loading-screen > .clouds-container,
#loading-screen > .falling-leaves,
#loading-screen > .birds-container,
#loading-screen > .ui-container,
#loading-screen > .landscape { display: none !important; }

.hayday-premium-loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(18px, 4vw, 40px);
    font-family: var(--global-font, 'Prompt', sans-serif);
}

.hayday-premium-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image: radial-gradient(rgba(26, 126, 88, 0.19) 0.8px, transparent 0.8px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000, transparent 76%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.hayday-loader-orb { position: absolute; border-radius: 50%; filter: blur(2px); will-change: transform; animation: haydayLoaderFloat 8s ease-in-out infinite alternate; }
.hayday-loader-orb-one { top: -11vw; right: -8vw; width: clamp(190px, 34vw, 500px); aspect-ratio: 1; background: linear-gradient(145deg, rgba(62, 190, 139, 0.25), rgba(255, 255, 255, 0.48)); }
.hayday-loader-orb-two { bottom: 4%; left: -10vw; width: clamp(160px, 28vw, 410px); aspect-ratio: 1; background: linear-gradient(145deg, rgba(255, 207, 75, 0.19), rgba(31, 159, 102, 0.18)); animation-delay: -3s; }

.hayday-loader-clouds {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hayday-loader-cloud {
    --cloud-scale: 1;
    position: absolute;
    width: 142px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 251, 247, 0.82));
    box-shadow: 0 13px 30px rgba(50, 137, 108, 0.09), inset 0 -5px 12px rgba(112, 190, 164, 0.06);
    transform: scale(var(--cloud-scale));
    will-change: transform;
    animation: haydayCloudDrift 11s ease-in-out infinite alternate;
}

.hayday-loader-cloud i {
    position: absolute;
    bottom: 8px;
    display: block;
    border-radius: 50%;
    background: inherit;
}

.hayday-loader-cloud i:nth-child(1) { left: 20px; width: 52px; height: 52px; }
.hayday-loader-cloud i:nth-child(2) { left: 55px; width: 70px; height: 70px; }
.hayday-loader-cloud i:nth-child(3) { right: 8px; width: 44px; height: 44px; }
.hayday-loader-cloud.cloud-a { top: 8%; left: 7%; opacity: 0.88; }
.hayday-loader-cloud.cloud-b { top: 13%; right: -18px; width: 178px; opacity: 0.74; animation-duration: 14s; animation-delay: -5s; }
.hayday-loader-cloud.cloud-c { --cloud-scale: 0.72; top: 3.5%; left: 57%; width: 96px; height: 29px; opacity: 0.55; animation-duration: 9s; animation-delay: -2s; }

.hayday-loader-card {
    position: relative;
    z-index: 3;
    width: min(420px, 100%);
    padding: clamp(20px, 4vw, 30px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 30px 90px rgba(22, 91, 68, 0.19), 0 4px 18px rgba(22, 91, 68, 0.08), inset 0 1px rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(22px) saturate(125%);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
}

.hayday-loader-card::after { content: ''; position: absolute; right: -80px; bottom: -90px; width: 210px; height: 210px; border: 42px solid rgba(39, 173, 111, 0.055); border-radius: 50%; pointer-events: none; }
.hayday-loader-topline, .hayday-loader-progress-head, .hayday-loader-footnote { display: flex; align-items: center; }
.hayday-loader-topline { position: relative; z-index: 2; min-height: 24px; justify-content: flex-end; }
.hayday-loader-live { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; color: #168a59; border: 1px solid #ccebdd; border-radius: 999px; background: rgba(233, 250, 242, 0.8); font-size: 0.51rem; font-weight: 850; letter-spacing: 0.08em; }
.hayday-loader-live i { width: 5px; height: 5px; border-radius: 50%; background: #22b873; box-shadow: 0 0 0 4px rgba(34, 184, 115, 0.12); animation: haydayLoaderPulse 1.8s ease-out infinite; }

.hayday-loader-hero { position: relative; z-index: 2; display: grid; justify-items: center; padding: clamp(14px, 3vh, 26px) 0 25px; text-align: center; }
.hayday-loader-emblem { display: grid; width: 66px; height: 66px; margin-bottom: 12px; place-items: center; color: #fff; border: 4px solid rgba(255, 255, 255, 0.9); border-radius: 22px; background: linear-gradient(145deg, #1db476, #72cc45); box-shadow: 0 14px 28px rgba(29, 180, 118, 0.25), inset 0 1px rgba(255, 255, 255, 0.3); transform: rotate(-4deg); }
.hayday-loader-emblem svg { width: 40px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform: rotate(4deg); }
.hayday-loader-emblem .hayday-loader-leaf { fill: #f7d452; stroke: #f7d452; }
.hayday-loader-eyebrow { margin: 0 0 2px; color: #719087; font-size: 0.56rem; font-weight: 850; letter-spacing: 0.19em; }
.hayday-loader-hero h1 { display: flex; gap: 5px; margin: 0; font-size: clamp(2.35rem, 11vw, 3.25rem); font-weight: 950; line-height: 1; letter-spacing: -0.07em; filter: drop-shadow(0 5px 0 rgba(18, 90, 53, 0.1)); }
.hayday-loader-hero h1 span:first-child { color: #178e59; }
.hayday-loader-hero h1 span:last-child { color: #6fbd3d; }
.hayday-loader-subtitle { max-width: 300px; margin: 8px 0 0; color: #657a73; font-size: 0.72rem; line-height: 1.55; }

.hayday-loader-progress-head { position: relative; z-index: 2; justify-content: space-between; margin-bottom: 8px; color: #6a8078; font-size: 0.64rem; }
.hayday-loader-progress-head strong { color: #167f53; font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.hayday-loader-progress-track { position: relative; z-index: 2; height: 8px; overflow: hidden; border-radius: 999px; background: #dae9e2; box-shadow: inset 0 1px 3px rgba(24, 92, 68, 0.11); }
.hayday-loader-progress-fill { width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #159c63, #53c774 64%, #d1db43); box-shadow: 0 0 13px rgba(45, 185, 111, 0.35); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.hayday-loader-progress-fill::after { content: ''; display: block; width: 30%; height: 100%; margin-left: 70%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68)); }
.hayday-loader-footnote { position: relative; z-index: 2; justify-content: center; gap: 5px; margin-top: 11px; color: #8a9b95; font-size: 0.54rem; }
.hayday-loader-footnote svg { width: 13px; stroke: #36a875; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hayday-loader-ground { position: absolute; inset: auto 0 0; height: 20vh; min-height: 100px; opacity: 0.9; pointer-events: none; }
.hayday-loader-ground span { position: absolute; left: -10%; bottom: -55%; width: 120%; height: 130%; border-radius: 50% 50% 0 0; background: #53b66e; }
.hayday-loader-ground span:nth-child(2) { left: -35%; bottom: -77%; background: #27945b; transform: rotate(5deg); }
.hayday-loader-ground span:nth-child(3) { left: 28%; bottom: -82%; background: #78c56d; transform: rotate(-6deg); }

@keyframes haydayLoaderFloat { from { transform: translate3d(0, -6px, 0) scale(0.98); } to { transform: translate3d(12px, 10px, 0) scale(1.04); } }
@keyframes haydayLoaderPulse { 0% { box-shadow: 0 0 0 0 rgba(34, 184, 115, 0.32); } 70%, 100% { box-shadow: 0 0 0 7px rgba(34, 184, 115, 0); } }
@keyframes haydayCloudDrift {
    from { transform: translate3d(-10px, 0, 0) scale(var(--cloud-scale)); }
    to { transform: translate3d(18px, 6px, 0) scale(var(--cloud-scale)); }
}

@media (max-width: 480px) {
    #notification-container { top: 10px; right: 10px; left: auto; width: min(286px, calc(100vw - 20px)); }
    .notification { padding: 9px 32px 9px 9px; border-radius: 13px; }
    .confirm-modal { padding: 22px 18px 18px; border-radius: 20px; }
    .confirm-modal-buttons { flex-direction: row; }
    .hayday-loader-card { padding: 18px; border-radius: 24px; }
    .hayday-loader-hero { padding: 12px 0 22px; }
    .hayday-loader-cloud.cloud-a { --cloud-scale: 0.72; top: 9%; left: -28px; }
    .hayday-loader-cloud.cloud-b { --cloud-scale: 0.72; top: 16%; right: -62px; }
    .hayday-loader-cloud.cloud-c { top: 3%; left: 58%; }
}

@media (max-height: 620px) {
    .hayday-loader-card { padding: 16px 20px; }
    .hayday-loader-hero { padding: 12px 0; }
    .hayday-loader-emblem { width: 50px; height: 50px; margin-bottom: 7px; border-radius: 17px; }
    .hayday-loader-emblem svg { width: 31px; }
    .hayday-loader-footnote { margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .hayday-loader-orb, .hayday-loader-live i, .hayday-loader-cloud { animation: none; }
    .notification, .confirm-modal { transition-duration: 0.01ms; }
}

/* ================================================================
   WARISHAYDAY FARM LOADER — based on the supplied visual direction
   ================================================================ */
.hayday-premium-loader {
    --waris-green: #3d9d39;
    --waris-lime: #91d448;
    --waris-mint: #e8f7e7;
    --waris-cream: #fffef4;
    --waris-gold: #f4c33f;
    padding: clamp(14px, 2.5vw, 30px);
}

#loading-screen {
    background:
        radial-gradient(circle at 46% 15%, rgba(255, 249, 194, 0.72), transparent 22%),
        radial-gradient(circle at 15% 5%, rgba(255, 255, 255, 0.75), transparent 24%),
        linear-gradient(160deg, #d6f2e9 0%, #eef8d9 52%, #d3efd3 100%);
}

.hayday-premium-loader::before {
    opacity: 0.48;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(255, 238, 151, 0.75) 0 1.5px, transparent 2.5px);
    background-position: 0 0, 12px 12px;
    background-size: 72px 72px, 95px 95px;
}

.hayday-loader-card {
    width: min(440px, 82vw);
    max-height: calc(100svh - 64px);
    padding: clamp(15px, 2.5vw, 22px) clamp(17px, 3vw, 27px) clamp(14px, 2.3vw, 20px);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: clamp(30px, 5vw, 46px);
    background:
        radial-gradient(circle at 82% 32%, rgba(225, 245, 205, 0.55), transparent 25%),
        linear-gradient(155deg, rgba(255, 255, 250, 0.92), rgba(251, 255, 238, 0.84));
    box-shadow: 0 35px 90px rgba(49, 115, 68, 0.22), 0 8px 24px rgba(75, 132, 78, 0.12), inset 0 1px 0 #fff;
    backdrop-filter: blur(22px) saturate(120%);
    -webkit-backdrop-filter: blur(22px) saturate(120%);
    animation: warisCardArrive 0.7s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.hayday-loader-card::before {
    content: '';
    position: absolute;
    inset: auto -10% -9% -10%;
    height: 26%;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(150deg, rgba(198, 234, 141, 0.3), rgba(101, 184, 90, 0.08));
    pointer-events: none;
}

.hayday-loader-card::after {
    right: -105px;
    bottom: -100px;
    width: 250px;
    height: 250px;
    border-width: 48px;
    border-color: rgba(101, 184, 90, 0.055);
}

.hayday-loader-topline {
    min-height: 26px;
}

.hayday-loader-live {
    gap: 7px;
    padding: 7px 13px;
    color: #318445;
    border: 2px solid rgba(84, 159, 76, 0.2);
    background: rgba(248, 255, 242, 0.75);
    font-size: 0.65rem;
}

.hayday-loader-live i {
    width: 7px;
    height: 7px;
    background: #48b650;
}

.waris-loader-showcase {
    position: relative;
    z-index: 2;
    width: min(89%, 380px);
    margin: clamp(-8px, -1vh, 0px) auto -2px;
    animation: warisShopFloat 3.8s ease-in-out infinite;
}

.waris-loader-showcase svg {
    display: block;
    width: 100%;
    max-height: clamp(120px, 20vh, 160px);
}

.waris-loader-brand {
    position: relative;
    z-index: 3;
    display: grid;
    justify-items: center;
    text-align: center;
}

.waris-loader-brand h1 {
    margin: -2px 0 10px;
    color: #4da934;
    font-size: clamp(1.8rem, 7vw, 2.95rem);
    font-weight: 950;
    line-height: 0.95;
    letter-spacing: -0.065em;
    -webkit-text-stroke: 2px rgba(255, 255, 242, 0.95);
    paint-order: stroke fill;
    text-shadow: 0 5px 0 #277a34, 0 9px 15px rgba(45, 109, 48, 0.2);
}

.waris-loader-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    color: #378b3d;
    border: 1px solid rgba(88, 155, 73, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(240, 250, 217, 0.96), rgba(226, 244, 194, 0.92));
    box-shadow: inset 0 1px #fff, 0 5px 14px rgba(88, 155, 73, 0.08);
    font-size: clamp(0.68rem, 2.4vw, 0.9rem);
    font-weight: 800;
}

.waris-loader-tagline svg {
    width: 20px;
    stroke: #55a73c;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.waris-loader-brand p {
    margin: 11px 0 15px;
    color: #516158;
    font-size: clamp(0.65rem, 2.2vw, 0.82rem);
    line-height: 1.45;
}

.waris-loader-brand p strong {
    color: #378b3d;
}

.waris-loader-products {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(6px, 1.6vw, 12px);
    width: min(91%, 380px);
    margin: 0 auto clamp(14px, 2.4vh, 21px);
}

.waris-product-icon {
    display: grid;
    aspect-ratio: 1;
    min-width: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: clamp(14px, 2.5vw, 21px);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(245, 251, 225, 0.72));
    box-shadow: 0 8px 20px rgba(73, 130, 65, 0.12), inset 0 1px #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.waris-product-icon:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 0 13px 25px rgba(73, 130, 65, 0.18), inset 0 1px #fff;
}

.waris-product-icon svg {
    width: 75%;
    height: 75%;
    filter: drop-shadow(0 4px 3px rgba(63, 93, 42, 0.12));
}

.waris-loader-statusline {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 9px;
    color: #5c675f;
    font-size: clamp(0.66rem, 2.2vw, 0.82rem);
    font-weight: 750;
}

.waris-loader-statusline svg {
    width: 15px;
    fill: #6eb33e;
}

.waris-loader-statusline svg:last-child {
    transform: scaleX(-1);
}

.waris-loader-progress-row {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(100%, 450px);
    margin: 0 auto;
}

.waris-loader-progress-row .hayday-loader-progress-track {
    height: 16px;
    padding: 2px;
    border: 2px solid rgba(116, 163, 67, 0.3);
    background: rgba(255, 255, 248, 0.82);
    box-shadow: inset 0 2px 5px rgba(54, 108, 45, 0.1), 0 2px 7px rgba(76, 131, 64, 0.07);
}

.waris-loader-progress-row .hayday-loader-progress-fill {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #2da641, #8bd23c 58%, #c1dc38);
    box-shadow: inset 0 2px rgba(255, 255, 255, 0.28), 0 0 13px rgba(91, 184, 61, 0.34);
}

.waris-loader-progress-row .hayday-loader-progress-fill::after {
    position: absolute;
    inset: 0;
    width: auto;
    margin: 0;
    background: repeating-linear-gradient(120deg, transparent 0 18px, rgba(255, 255, 255, 0.22) 19px 28px, transparent 29px 44px);
    animation: warisProgressShimmer 1.1s linear infinite;
}

.waris-loader-progress-row > strong {
    min-width: 45px;
    color: #378e39;
    font-size: clamp(1.05rem, 3.5vw, 1.35rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.hayday-loader-footnote {
    gap: 8px;
    margin-top: clamp(17px, 3vh, 25px);
    padding-top: clamp(13px, 2.4vh, 19px);
    color: #6f7d73;
    border-top: 1px solid rgba(83, 137, 75, 0.16);
    font-size: clamp(0.6rem, 2vw, 0.76rem);
    font-weight: 650;
}

.hayday-loader-footnote svg {
    width: 19px;
    stroke: #438f4a;
}

.hayday-loader-ambient {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.hayday-loader-ambient .spark {
    position: absolute;
    width: 13px;
    height: 13px;
    background: #fffce0;
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    filter: drop-shadow(0 0 6px rgba(255, 245, 164, 0.7));
    animation: warisSparkle 2.8s ease-in-out infinite;
}

.spark-one { top: 14%; left: 25%; }
.spark-two { top: 24%; right: 18%; animation-delay: -1.2s !important; }
.spark-three { bottom: 18%; left: 12%; animation-delay: -2s !important; }

.hayday-loader-ambient .float-leaf {
    position: absolute;
    width: 25px;
    height: 13px;
    border-radius: 100% 0 100% 0;
    background: linear-gradient(135deg, #c7df39, #5daf37);
    box-shadow: inset -3px -2px rgba(37, 122, 53, 0.13), 0 4px 8px rgba(64, 128, 53, 0.12);
    animation: warisLeafFloat 8s ease-in-out infinite;
}

.float-leaf::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    width: 17px;
    height: 1px;
    background: rgba(255, 255, 210, 0.58);
    transform: rotate(-24deg);
}

.leaf-one { top: 12%; left: 7%; transform: rotate(18deg); }
.leaf-two { top: 7%; right: 24%; animation-delay: -3s !important; transform: scale(0.78) rotate(-12deg); }
.leaf-three { top: 34%; right: 5%; animation-delay: -5s !important; transform: scale(0.65) rotate(28deg); }

.hayday-loader-ground {
    height: 27vh;
    min-height: 150px;
    opacity: 0.94;
}

.hayday-loader-ground span:nth-child(1) { bottom: -48%; background: #75c66d; }
.hayday-loader-ground span:nth-child(2) { bottom: -68%; background: #3aa35b; }
.hayday-loader-ground span:nth-child(3) { bottom: -76%; background: #a5d663; }

.waris-loader-farm-props {
    position: absolute;
    inset: 0;
}

.farm-house {
    position: absolute;
    right: 11%;
    bottom: 22%;
    width: 58px;
    height: 42px;
    border: 3px solid rgba(55, 119, 56, 0.35);
    border-radius: 3px;
    background: #eef6d9;
    box-shadow: 0 8px 15px rgba(43, 98, 52, 0.12);
}

.farm-house::before {
    content: '';
    position: absolute;
    left: -7px;
    top: -22px;
    width: 66px;
    height: 32px;
    background: #4b9960;
    clip-path: polygon(50% 0, 100% 70%, 92% 82%, 50% 28%, 8% 82%, 0 70%);
}

.farm-house::after {
    content: '';
    position: absolute;
    left: 23px;
    bottom: 0;
    width: 14px;
    height: 24px;
    background: #72b36c;
}

.farm-windmill {
    position: absolute;
    right: 4%;
    bottom: 16%;
    width: 4px;
    height: 74px;
    background: rgba(62, 110, 58, 0.45);
    transform: rotate(-5deg);
}

.farm-windmill::before,
.farm-windmill::after {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 54px;
    height: 3px;
    background: rgba(62, 110, 58, 0.45);
}

.farm-windmill::after { transform: rotate(90deg); }

.farm-fence {
    position: absolute;
    left: -1%;
    bottom: 6%;
    width: 27%;
    height: 44px;
    border-top: 9px solid rgba(255, 255, 245, 0.88);
    border-bottom: 9px solid rgba(255, 255, 245, 0.88);
    transform: rotate(7deg);
    filter: drop-shadow(0 5px 5px rgba(57, 111, 53, 0.12));
}

.farm-fence::before {
    content: '';
    position: absolute;
    inset: -18px 8% -18px;
    background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 245, 0.92) 23px 31px, transparent 32px 53px);
}

@keyframes warisCardArrive {
    from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.97); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes warisShopFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -5px, 0); }
}

@keyframes warisProgressShimmer {
    from { transform: translateX(-44px); }
    to { transform: translateX(44px); }
}

@keyframes warisSparkle {
    0%, 100% { opacity: 0.25; transform: scale(0.65) rotate(0); }
    50% { opacity: 1; transform: scale(1.15) rotate(45deg); }
}

@keyframes warisLeafFloat {
    0%, 100% { translate: 0 -5px; rotate: -8deg; }
    50% { translate: 16px 11px; rotate: 14deg; }
}

@media (max-width: 560px) {
    .hayday-loader-card {
        width: 82vw;
        padding: 12px 14px 13px;
        border-width: 2px;
        border-radius: 30px;
    }

    .hayday-loader-live { padding: 5px 9px; font-size: 0.54rem; }
    .waris-loader-showcase { width: 85%; margin-top: -11px; }
    .waris-loader-showcase svg { max-height: 130px; }
    .waris-loader-brand h1 { margin-bottom: 8px; -webkit-text-stroke-width: 1.5px; text-shadow: 0 4px 0 #277a34, 0 7px 12px rgba(45, 109, 48, 0.18); }
    .waris-loader-tagline { padding: 6px 13px; }
    .waris-loader-brand p { margin: 7px 0 10px; }
    .waris-loader-products { width: 88%; margin-bottom: 10px; }
    .waris-product-icon { border-radius: 14px; }
    .waris-loader-progress-row { gap: 8px; }
    .waris-loader-progress-row .hayday-loader-progress-track { height: 14px; }
    .hayday-loader-footnote { margin-top: 12px; padding-top: 9px; }
}

@media (max-height: 680px) {
    .hayday-loader-card { padding-top: 13px; padding-bottom: 13px; }
    .hayday-loader-topline { min-height: 22px; }
    .waris-loader-showcase { width: 76%; margin-top: -18px; }
    .waris-loader-showcase svg { max-height: 125px; }
    .waris-loader-brand h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); margin-bottom: 6px; }
    .waris-loader-tagline { padding-block: 5px; }
    .waris-loader-brand p { margin: 6px 0 9px; }
    .waris-loader-products { width: 84%; margin-bottom: 9px; }
    .waris-loader-statusline { margin-bottom: 5px; }
    .hayday-loader-footnote { margin-top: 10px; padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .waris-loader-showcase,
    .hayday-loader-card,
    .hayday-loader-ambient .spark,
    .hayday-loader-ambient .float-leaf,
    .waris-loader-progress-row .hayday-loader-progress-fill::after {
        animation: none;
    }
}

/* ================================================================
   SOFT PREMIUM CUSTOMER EXPERIENCE
   ================================================================ */

/* Customer storefront surfaces */
#customer-view {
    --soft-mint: #23bd94;
    --soft-cyan: #16b6cc;
    --soft-ink: #29443e;
    --soft-muted: #758781;
    --soft-line: rgba(63, 117, 103, 0.12);
    --soft-surface: rgba(255, 255, 255, 0.9);
}

#customer-view .card,
#customer-view #product-controls-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 253, 251, 0.88));
    box-shadow: 0 14px 34px rgba(42, 82, 72, 0.09), 0 3px 10px rgba(42, 82, 72, 0.05), inset 0 1px #fff;
    backdrop-filter: blur(14px) saturate(112%);
    -webkit-backdrop-filter: blur(14px) saturate(112%);
}

#customer-view #product-controls-wrapper {
    padding: 11px 13px;
    gap: 12px;
}

#customer-view .category-scroller {
    padding: 5px 7px;
    border: 1px solid var(--soft-line);
    border-radius: 18px;
    background: rgba(248, 252, 251, 0.88);
    box-shadow: inset 0 2px 5px rgba(39, 77, 67, 0.035);
}

#customer-view .cat-scroll-btn {
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border-radius: 10px;
    font-size: 1.15rem;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

#customer-view .cat-scroll-btn:hover {
    color: #159675;
    background: #e7f7f1;
    transform: translateY(-1px);
}

#customer-view #category-tabs {
    gap: 8px;
    padding: 3px 5px;
}

#customer-view .tab {
    min-height: 34px;
    padding: 7px 18px;
    color: #60736d;
    border: 1px solid rgba(65, 111, 99, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 3px 8px rgba(45, 86, 75, 0.035);
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}

#customer-view .tab:hover {
    color: var(--primary-color);
    border-color: rgba(var(--primary-color-rgb), 0.28);
    background: rgba(var(--primary-color-rgb), 0.07);
    box-shadow: 0 6px 14px rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-1px);
}

#customer-view .tab.active {
    color: #fff;
    border-color: transparent;
    background: var(--primary-gradient);
    box-shadow: 0 8px 18px rgba(var(--primary-color-rgb), 0.25), inset 0 1px rgba(255, 255, 255, 0.28);
}

#customer-view #search-box {
    height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(65, 111, 99, 0.14);
    border-radius: 11px;
    background: rgba(250, 253, 252, 0.88);
    box-shadow: inset 0 2px 5px rgba(39, 77, 67, 0.035);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#customer-view #search-box:focus {
    border-color: rgba(var(--primary-color-rgb), 0.48);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.1), inset 0 1px 3px rgba(39, 77, 67, 0.025);
    outline: none;
}

#customer-view .filter-container .btn,
#customer-view .clear-search-btn,
#customer-view .customer-reset-btn,
#customer-view .customer-price-tag-btn {
    color: #4e7067;
    border: 1px solid rgba(65, 111, 99, 0.1);
    border-radius: 11px;
    background: linear-gradient(145deg, #f8fcfb, #eaf5f1);
    box-shadow: 0 5px 12px rgba(45, 86, 75, 0.08), inset 0 1px #fff;
}

#customer-view .filter-container .btn:hover,
#customer-view .clear-search-btn:hover,
#customer-view .customer-reset-btn:hover,
#customer-view .customer-price-tag-btn:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.07);
    box-shadow: 0 8px 16px rgba(var(--primary-color-rgb), 0.14), inset 0 1px #fff;
    transform: translateY(-2px);
}

#customer-view #product-list-container {
    padding: clamp(16px, 3vw, 24px);
    border-radius: 24px;
}

#customer-view #current-category-name {
    color: #315d70;
    font-weight: 800;
    letter-spacing: -0.02em;
}

#customer-view .product-card {
    border-width: 1px;
    border-color: rgba(var(--primary-color-rgb), 0.25);
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(247, 253, 251, 0.9));
    box-shadow: 0 5px 14px rgba(var(--primary-color-rgb), 0.06), inset 0 1px #fff;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

#customer-view .product-card:hover {
    z-index: 3;
    border-color: rgba(var(--primary-color-rgb), 0.5);
    box-shadow: 0 14px 26px rgba(var(--primary-color-rgb), 0.16), inset 0 1px #fff;
    transform: translateY(-4px) scale(1.015);
}

#customer-view .product-card-level {
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(21, 55, 47, 0.11);
}

#customer-view .product-card-icon {
    filter: drop-shadow(0 7px 7px rgba(47, 80, 57, 0.13));
    transition: filter 0.25s ease, transform 0.25s ease;
}

#customer-view .product-card:hover .product-card-icon {
    filter: drop-shadow(0 10px 9px rgba(47, 80, 57, 0.18));
}

/* Customer buttons */
#customer-view .btn,
#order-modal .btn,
#cart-modal .btn {
    min-height: 40px;
    border-radius: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 7px 16px rgba(38, 83, 72, 0.1), inset 0 1px rgba(255, 255, 255, 0.24);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.25s ease, filter 0.25s ease;
}

#customer-view .btn:hover,
#order-modal .btn:hover,
#cart-modal .btn:hover {
    filter: saturate(1.05) brightness(1.02);
    transform: translateY(-2px);
}

#customer-view .btn:active,
#order-modal .btn:active,
#cart-modal .btn:active {
    transform: translateY(0) scale(0.985);
}

/* Compact select action used only by Coins, Vouchers and Diamond/Farm Pass catalogs. */
#customer-view .catalog-compact-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 52px;
    min-height: 32px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 12px rgba(38, 83, 72, 0.12), inset 0 1px rgba(255, 255, 255, 0.24);
}

@media (max-width: 520px) {
    #customer-view .catalog-compact-select {
        min-width: 48px;
        min-height: 30px;
        padding: 3px 10px;
        font-size: 0.74rem;
    }
}

#customer-view .btn-primary,
#customer-view .btn-success,
#order-modal .btn-success,
#cart-modal .btn-success {
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: 0 9px 20px rgba(var(--primary-color-rgb), 0.25), inset 0 1px rgba(255, 255, 255, 0.28);
}

#customer-view .btn-secondary,
#order-modal .btn-secondary,
#cart-modal .btn-secondary {
    color: #4b655e;
    border: 1px solid rgba(78, 116, 106, 0.09);
    background: linear-gradient(145deg, #eff9f7, #dff4f3);
    box-shadow: 0 7px 16px rgba(51, 105, 92, 0.09), inset 0 1px #fff;
}

#order-modal .btn-danger {
    color: #fff;
    background: linear-gradient(135deg, #f25a68, #e93862);
    box-shadow: 0 9px 20px rgba(227, 55, 91, 0.2), inset 0 1px rgba(255, 255, 255, 0.24);
}

/* Floating order bar */
#order-summary {
    left: clamp(8px, 2vw, 18px);
    bottom: clamp(8px, 2vw, 15px);
    width: calc(100% - clamp(16px, 4vw, 36px));
    padding: clamp(10px, 2vw, 16px);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 -4px 24px rgba(42, 82, 72, 0.08), 0 12px 30px rgba(42, 82, 72, 0.13), inset 0 1px #fff;
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

#order-summary .order-buttons {
    gap: 9px;
}

#order-summary .order-buttons .btn {
    border-radius: 13px;
}

#swap-catalog-btn {
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #2f82dc, #3259c8);
    box-shadow: 0 8px 18px rgba(44, 94, 199, 0.28), inset 0 1px rgba(255, 255, 255, 0.26);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#swap-catalog-btn:hover {
    transform: translateY(-2px) rotate(8deg);
    box-shadow: 0 11px 22px rgba(44, 94, 199, 0.34), inset 0 1px rgba(255, 255, 255, 0.28);
}

/* Order modals */
#order-modal,
#cart-modal {
    padding: 16px;
    background: radial-gradient(circle at 50% 30%, rgba(90, 203, 168, 0.14), transparent 35%), rgba(25, 42, 38, 0.53);
    backdrop-filter: blur(8px) saturate(108%);
    -webkit-backdrop-filter: blur(8px) saturate(108%);
}

#order-modal .modal-content,
#cart-modal .modal-content {
    width: min(520px, 94vw);
    max-width: 520px;
    max-height: min(84vh, 720px);
    padding: clamp(20px, 4vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 250, 0.96));
    box-shadow: 0 32px 80px rgba(14, 37, 30, 0.28), 0 8px 22px rgba(14, 37, 30, 0.12), inset 0 1px #fff;
    animation: softModalEnter 0.36s cubic-bezier(0.2, 0.8, 0.25, 1) both;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-color-rgb), 0.35) transparent;
}

#order-modal .modal-content::before,
#cart-modal .modal-content::before {
    content: '';
    position: absolute;
    inset: 0 18% auto;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: var(--primary-gradient);
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.2);
}

#order-modal .modal-header-row,
#cart-modal .modal-content > div:first-child {
    margin-bottom: 15px !important;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(62, 115, 101, 0.1);
}

#order-modal h2,
#cart-modal h2 {
    margin: 0 !important;
    color: var(--primary-color);
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 850;
    letter-spacing: -0.02em;
}

#order-number-badge {
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: var(--primary-gradient);
    box-shadow: 0 7px 16px rgba(var(--primary-color-rgb), 0.22), inset 0 1px rgba(255, 255, 255, 0.3);
}

#order-details,
#cart-details {
    padding: clamp(14px, 3vw, 19px);
    border: 1px solid rgba(61, 112, 99, 0.12);
    border-radius: 17px;
    background: linear-gradient(150deg, #f8fbfa, #f2f8f6);
    box-shadow: inset 0 2px 7px rgba(40, 83, 72, 0.035);
}

#cart-details > h3 {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 0 0 15px !important;
    padding: 8px 12px;
    color: var(--primary-color);
    border-radius: 12px;
    background: rgba(var(--primary-color-rgb), 0.1);
    font-size: 0.85rem;
}

#order-details .order-summary-section,
#cart-details .order-summary-section {
    margin: 8px 0;
    padding: 11px 12px;
    border: 1px solid rgba(63, 117, 103, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 5px 13px rgba(44, 86, 75, 0.045);
}

#order-details .order-summary-section h4,
#cart-details .order-summary-section h4 {
    margin: 0 0 9px !important;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
}

#order-details .order-visual-item,
#cart-details .cart-item {
    min-height: 45px;
    margin: 5px 0;
    padding: 7px 9px;
    border: 0;
    border-radius: 11px;
    background: rgba(247, 251, 250, 0.92);
    transition: background 0.22s ease, transform 0.22s ease;
}

#order-details .order-visual-item:hover,
#cart-details .cart-item:hover {
    background: #eff9f6;
    transform: translateX(2px);
}

#order-details .summary-item-icon,
#cart-details .summary-item-icon {
    width: 32px;
    height: 32px;
    padding: 4px;
    border: 1px solid rgba(64, 115, 102, 0.08);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(43, 83, 72, 0.08);
}

#order-details .order-item-name,
#cart-details .cart-item-name {
    color: #40564f;
    font-size: 0.76rem;
    font-weight: 650;
}

#order-details .summary-line,
#cart-details .summary-line {
    align-items: center;
    min-height: 30px;
    margin: 3px 0;
    padding: 5px 8px;
    color: #60736d;
    border-radius: 9px;
    font-size: 0.76rem;
}

#order-details .summary-line.grand-total,
#cart-details .summary-line.grand-total {
    margin-top: 9px;
    padding: 10px 9px 6px;
    color: #0da889;
    border-top: 1px solid rgba(29, 178, 142, 0.18);
    border-radius: 0;
    font-size: 0.9rem;
}

#cart-details .cart-item-controls {
    gap: 7px;
}

#cart-details .cart-item-controls .btn-op {
    display: grid;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    place-items: center;
    color: #39746a;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(145deg, #e9f8f5, #d9f2f1);
    box-shadow: 0 5px 11px rgba(45, 108, 94, 0.1), inset 0 1px #fff;
}

#cart-details .cart-item-quantity {
    color: #344c45;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

#cart-details .cart-item-controls .btn-delete {
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border-radius: 10px;
    background: #fff0f2;
    box-shadow: 0 4px 10px rgba(210, 60, 82, 0.07);
    font-size: 0.95rem;
}

#order-modal input[type="text"],
#order-modal input[type="email"] {
    min-height: 42px;
    border: 1px solid rgba(63, 117, 103, 0.15) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: inset 0 2px 5px rgba(40, 83, 72, 0.035);
}

#order-modal input:focus {
    border-color: rgba(29, 182, 146, 0.48) !important;
    box-shadow: 0 0 0 4px rgba(29, 182, 146, 0.09) !important;
}

#order-modal #add-tag-btn {
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 11px !important;
    box-shadow: 0 5px 12px rgba(30, 169, 133, 0.1);
}

#order-modal .modal-actions,
#cart-modal .modal-actions {
    gap: 10px !important;
    margin-top: 4px;
}

#order-modal .modal-actions .btn,
#cart-modal .modal-actions .btn {
    min-height: 43px;
    padding: 10px 14px !important;
    font-size: 0.76rem !important;
}

#order-modal-prompt {
    color: #e36979 !important;
    font-size: 0.63rem !important;
}

@keyframes softModalEnter {
    from { opacity: 0; transform: translate3d(0, 15px, 0) scale(0.975); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

body.dark-mode #customer-view .card,
body.dark-mode #customer-view #product-controls-wrapper,
body.dark-mode #order-summary {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(39, 50, 47, 0.96), rgba(27, 38, 35, 0.92));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.04);
}

body.dark-mode #order-modal .modal-content,
body.dark-mode #cart-modal .modal-content {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(150deg, #25332f, #1d2a26);
}

body.dark-mode #order-details,
body.dark-mode #cart-details,
body.dark-mode #order-details .order-summary-section,
body.dark-mode #cart-details .order-summary-section,
body.dark-mode #order-details .order-visual-item,
body.dark-mode #cart-details .cart-item {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
}

body.dark-mode #order-details .order-item-name,
body.dark-mode #cart-details .cart-item-name,
body.dark-mode #order-details .summary-line,
body.dark-mode #cart-details .summary-line {
    color: #c6d4cf;
}

@media (max-width: 600px) {
    #customer-view #product-controls-wrapper {
        border-radius: 18px;
    }

    #customer-view #product-list-container {
        padding: 14px 12px;
        border-radius: 20px;
    }

    #customer-view .product-card {
        border-radius: 13px;
    }

    #order-summary {
        left: 7px;
        bottom: 7px;
        width: calc(100% - 14px);
        border-radius: 16px;
    }

    #order-modal,
    #cart-modal {
        padding: 10px;
    }

    #order-modal .modal-content,
    #cart-modal .modal-content {
        width: 95vw;
        max-height: 88vh;
        padding: 18px 16px;
        border-radius: 20px;
    }

    #order-modal .modal-header-row {
        align-items: flex-start !important;
        gap: 10px;
    }

    #order-number-badge {
        padding: 6px 10px;
        font-size: 9px !important;
    }

    #order-details,
    #cart-details {
        padding: 11px;
        border-radius: 14px;
    }

    #order-details .order-summary-section,
    #cart-details .order-summary-section {
        padding: 9px;
        border-radius: 12px;
    }

    #order-modal .modal-actions,
    #cart-modal .modal-actions {
        gap: 7px !important;
    }

    #order-modal .modal-actions .btn,
    #cart-modal .modal-actions .btn {
        min-width: 0;
        min-height: 40px;
        padding: 8px 7px !important;
        border-radius: 11px;
        font-size: 0.66rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #order-modal .modal-content,
    #cart-modal .modal-content {
        animation: none;
    }
}

/* ================================================================
   CUSTOMER UI FOLLOW-UP: FILTER, ORDER DOCK, FIXED HELP BUTTON COLOR
   ================================================================ */

/* Keep the level sorting menu above the product section */
#customer-view #product-controls-wrapper {
    position: relative;
    z-index: 80;
    overflow: visible;
}

#customer-view .search-and-filter-container,
#customer-view .filter-container {
    position: relative;
    z-index: 90;
    overflow: visible;
}

#customer-view .filter-dropdown-content {
    top: calc(100% + 9px);
    right: 0;
    z-index: 999;
    min-width: 178px;
    overflow: hidden;
    padding: 6px;
    border: 1px solid rgba(64, 115, 102, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 34px rgba(36, 75, 65, 0.18), 0 4px 12px rgba(36, 75, 65, 0.08), inset 0 1px #fff;
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    animation: softFilterMenuIn 0.22s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

#customer-view .filter-dropdown-content a {
    padding: 9px 11px;
    color: #526a63;
    border-radius: 9px;
    font-size: 0.74rem;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

#customer-view .filter-dropdown-content a:hover {
    color: #118b70;
    background: linear-gradient(135deg, #eefaf6, #e2f6f2);
    transform: translateX(2px);
}

#customer-view #product-view-container,
#customer-view #product-list-container {
    position: relative;
    z-index: 1;
}

/* Solid bottom dock: products can no longer show through or beneath it */
#order-summary,
#order-summary[data-layout="buttons-top"] {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    background: #ffffff;
    box-shadow: 0 -12px 30px rgba(36, 75, 65, 0.13), 0 -2px 8px rgba(36, 75, 65, 0.06), inset 0 1px #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.dark-mode #order-summary,
body.dark-mode #order-summary[data-layout="buttons-top"] {
    background: #24312e;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.05);
}

/* These tutorial buttons must stay red regardless of the selected theme */
#order-modal #order-details button[onclick*="openTagTutorialModal"],
#order-modal #order-details button[onclick*="openMailTutorialModal"] {
    color: #fff !important;
    border: 1px solid rgba(180, 24, 53, 0.16) !important;
    background: linear-gradient(135deg, #f45468, #dc294e) !important;
    box-shadow: 0 7px 16px rgba(210, 41, 72, 0.24), inset 0 1px rgba(255, 255, 255, 0.24) !important;
}

#order-modal #order-details button[onclick*="openTagTutorialModal"]:hover,
#order-modal #order-details button[onclick*="openMailTutorialModal"]:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #ed4158, #c91f43) !important;
    box-shadow: 0 10px 20px rgba(202, 31, 66, 0.3), inset 0 1px rgba(255, 255, 255, 0.26) !important;
}

@keyframes softFilterMenuIn {
    from { opacity: 0; transform: translate3d(0, -6px, 0) scale(0.98); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (max-width: 600px) {
    #order-summary,
    #order-summary[data-layout="buttons-top"] {
        left: 0;
        bottom: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
    }

    #customer-view .filter-dropdown-content {
        right: 0;
        min-width: 165px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #customer-view .filter-dropdown-content {
        animation: none;
    }
}

/* ================================================================
   PRODUCT MACHINE CATALOG — 4 COLUMNS ON PHONE, AUTO-GROW ON DESKTOP
   ================================================================ */

#customer-view .product-machines-storefront-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: clamp(9px, 1.5vw, 16px);
    width: 100%;
    margin-top: 16px;
}

#customer-view .product-machine-storefront-card {
    min-width: 0;
    padding: clamp(7px, 1.2vw, 12px);
    border: 1px solid rgba(46, 127, 105, 0.13);
    border-radius: clamp(13px, 2vw, 18px);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 248, 0.92));
    box-shadow: 0 8px 20px rgba(42, 83, 72, 0.08), inset 0 1px #fff;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.25, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

#customer-view .product-machine-storefront-card:hover {
    border-color: rgba(25, 181, 146, 0.42);
    box-shadow: 0 15px 28px rgba(37, 114, 94, 0.16), inset 0 1px #fff;
    transform: translateY(-4px) scale(1.015);
}

#customer-view .product-machine-storefront-image {
    margin-bottom: clamp(5px, 1vw, 9px);
    border-radius: clamp(10px, 1.7vw, 15px);
    background: linear-gradient(145deg, #f6f8f7, #eef4f1);
    box-shadow: inset 0 2px 7px rgba(43, 83, 72, 0.035);
}

#customer-view .product-machine-storefront-image img {
    object-fit: contain;
    padding: clamp(2px, 0.6vw, 6px);
    filter: drop-shadow(0 7px 7px rgba(43, 76, 52, 0.1));
}

#customer-view .product-machine-storefront-card strong {
    color: #354f48;
    font-size: clamp(0.7rem, 1.5vw, 0.92rem);
    font-weight: 750;
    line-height: 1.3;
}

#customer-view .product-machine-storefront-card small {
    margin-top: 3px;
    color: #82928d;
    font-size: clamp(0.58rem, 1.2vw, 0.72rem);
    line-height: 1.25;
}

@media (min-width: 900px) {
    #customer-view .product-machines-storefront-grid {
        grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    }
}

@media (max-width: 700px) {
    #customer-view .product-machines-storefront-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(4px, 1.4vw, 7px);
        margin-top: 12px;
    }

    #customer-view .product-machine-storefront-card {
        padding: 5px;
        border-radius: 11px;
        box-shadow: 0 5px 12px rgba(42, 83, 72, 0.065), inset 0 1px #fff;
    }

    #customer-view .product-machine-storefront-card:hover {
        transform: translateY(-2px);
    }

    #customer-view .product-machine-storefront-image {
        margin-bottom: 5px;
        border-radius: 8px;
    }

    #customer-view .product-machine-storefront-image img {
        padding: 1px;
    }

    #customer-view .product-machine-storefront-card strong {
        min-height: 2.5em;
        display: -webkit-box;
        overflow: hidden;
        font-size: clamp(0.52rem, 2.25vw, 0.66rem);
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    #customer-view .product-machine-storefront-card small {
        margin-top: 2px;
        font-size: clamp(0.46rem, 1.9vw, 0.57rem);
    }
}

@media (max-width: 360px) {
    #customer-view .product-machines-storefront-grid {
        gap: 3px;
    }

    #customer-view .product-machine-storefront-card {
        padding: 4px;
        border-radius: 9px;
    }
}

/* ========================================================================== */
/* DARK CUSTOMER CATALOG: one navy surface across product browsing            */
/* ========================================================================== */
body.dark-mode #customer-view {
    --customer-dark-navy: #191a2e;
    --customer-dark-navy-border: rgba(126, 145, 196, 0.2);
}

/* Category bar and search bar */
body.dark-mode #customer-view #product-controls-wrapper,
body.dark-mode #customer-view .category-scroller,
body.dark-mode #customer-view .search-and-filter-container,
body.dark-mode #customer-view #search-box,
body.dark-mode #customer-view .filter-container .btn,
body.dark-mode #customer-view .clear-search-btn {
    color: #e8edf8;
    border-color: var(--customer-dark-navy-border) !important;
    background: var(--customer-dark-navy) !important;
    box-shadow: none !important;
}

body.dark-mode #customer-view #search-box::placeholder {
    color: #929ab2;
}

body.dark-mode #customer-view #search-box:focus {
    color: #ffffff;
    border-color: rgba(var(--primary-color-rgb), 0.55) !important;
    background: var(--customer-dark-navy) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15) !important;
}

body.dark-mode #customer-view #category-tabs .tab:not(.active) {
    color: #d7deed;
    border-color: var(--customer-dark-navy-border) !important;
    background: var(--customer-dark-navy) !important;
    box-shadow: none !important;
}

/* Main product area and every snack/product card, regardless of frame style */
body.dark-mode #customer-view #product-list-container,
body.dark-mode #customer-view .product-card,
body.dark-mode #customer-view .product-card[class*="frame-style-"] {
    color: #e8edf8;
    border-color: var(--customer-dark-navy-border) !important;
    background: var(--customer-dark-navy) !important;
    box-shadow: none !important;
}

/* Product-machine catalog and its cards */
body.dark-mode #customer-view .product-machines-catalog,
body.dark-mode #customer-view .product-machine-detail,
body.dark-mode #customer-view .product-machine-storefront-card,
body.dark-mode #customer-view .product-machine-storefront-image,
body.dark-mode #customer-view .product-machines-empty {
    color: #e8edf8;
    border-color: var(--customer-dark-navy-border) !important;
    background: var(--customer-dark-navy) !important;
    box-shadow: none !important;
}

body.dark-mode #customer-view .product-machine-storefront-card strong,
body.dark-mode #customer-view .product-machine-storefront-card small {
    color: #dbe3f3;
}

/* Dark order dock, cart and order receipt use the same navy as the catalog. */
body.dark-mode #order-summary,
body.dark-mode #order-summary[data-layout="buttons-top"],
body.dark-mode #order-modal .modal-content,
body.dark-mode #cart-modal .modal-content,
body.dark-mode #order-details,
body.dark-mode #cart-details,
body.dark-mode #order-details .order-summary-section,
body.dark-mode #cart-details .order-summary-section,
body.dark-mode #order-details .order-visual-item,
body.dark-mode #cart-details .cart-item,
body.dark-mode #cart-details > h3 {
    color: #e8edf8;
    border-color: rgba(126, 145, 196, 0.2) !important;
    background: #191a2e !important;
    box-shadow: none !important;
}

body.dark-mode #order-summary,
body.dark-mode #order-summary[data-layout="buttons-top"] {
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode #order-modal .modal-content,
body.dark-mode #cart-modal .modal-content {
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.04) !important;
}

body.dark-mode #order-modal .modal-header-row,
body.dark-mode #cart-modal .modal-content > div:first-child,
body.dark-mode #order-details .summary-line.grand-total,
body.dark-mode #cart-details .summary-line.grand-total {
    border-color: rgba(126, 145, 196, 0.2) !important;
}

body.dark-mode #order-details .order-visual-item:hover,
body.dark-mode #cart-details .cart-item:hover {
    background: #1f2138 !important;
}

body.dark-mode #order-details .order-item-name,
body.dark-mode #cart-details .cart-item-name,
body.dark-mode #cart-details .cart-item-quantity,
body.dark-mode #order-details .summary-line,
body.dark-mode #cart-details .summary-line,
body.dark-mode #order-validation-message .category-total {
    color: #d7deed;
}

body.dark-mode #order-details .summary-item-icon,
body.dark-mode #cart-details .summary-item-icon,
body.dark-mode #cart-details .cart-item-controls .btn-op {
    color: #dfe7f7;
    border-color: rgba(126, 145, 196, 0.2) !important;
    background: #22243b !important;
    box-shadow: none !important;
}

body.dark-mode #order-modal input[type="text"],
body.dark-mode #order-modal input[type="email"] {
    color: #eef2fb !important;
    border-color: rgba(126, 145, 196, 0.25) !important;
    background: #191a2e !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22) !important;
}

body.dark-mode #order-modal input[type="text"]::placeholder,
body.dark-mode #order-modal input[type="email"]::placeholder {
    color: #8992aa;
}

/* Product-machine cards that already contributed items to the current cart. */
#customer-view .product-machine-storefront-card {
    position: relative;
}

#customer-view .product-machine-storefront-card.machine-has-cart-items {
    border-color: rgba(var(--primary-color-rgb), 0.72);
    background: linear-gradient(150deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--primary-color-rgb), 0.04));
    box-shadow: inset 0 4px 12px rgba(var(--primary-color-rgb), 0.12), 0 4px 10px rgba(var(--primary-color-rgb), 0.07);
    transform: translateY(1px) scale(0.985);
}

#customer-view .product-machine-storefront-card.machine-has-cart-items:hover {
    border-color: var(--primary-color);
    box-shadow: inset 0 4px 12px rgba(var(--primary-color-rgb), 0.14), 0 8px 18px rgba(var(--primary-color-rgb), 0.18);
    transform: translateY(-1px) scale(0.99);
}

#customer-view .machine-has-cart-items .product-machine-storefront-image {
    opacity: 0.82;
    filter: saturate(0.86);
}

#customer-view .machine-purchased-badge {
    position: absolute;
    z-index: 3;
    top: 7px;
    right: 7px;
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 7px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    background: var(--primary-gradient);
    box-shadow: 0 6px 14px rgba(var(--primary-color-rgb), .25);
    font-size: .62rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

#customer-view .machine-has-cart-items .machine-cart-count {
    color: var(--primary-color);
    font-weight: 750;
}

body.dark-mode #customer-view .product-machine-storefront-card.machine-has-cart-items {
    border-color: rgba(var(--primary-color-rgb), 0.75) !important;
    background: #22243b !important;
    box-shadow: inset 0 4px 13px rgba(0, 0, 0, .24), 0 0 0 2px rgba(var(--primary-color-rgb), .12) !important;
}

body.dark-mode #customer-view .machine-has-cart-items .machine-cart-count {
    color: var(--primary-color-light);
}

@media (max-width: 700px) {
    #customer-view .machine-purchased-badge {
        top: 4px;
        right: 4px;
        width: 22px;
        min-width: 22px;
        min-height: 22px;
        padding: 0;
        font-size: .68rem;
    }

    #customer-view .machine-purchased-badge-text,
    #customer-view .machine-cart-count {
        display: none;
    }
}
