/**
 * Homepage - Global Immigration Radar
 * Visto n' Visa - Trust Portal
 * 
 * Layout: Full-screen map + horizontal country strip at bottom
 */

/* ===== BASE VARIABLES ===== */
:root {
    --home-primary: #030712;
    --home-primary-hover: #1f2937;
    --home-bg: #f3f4f6;
    --home-card-bg: #ffffff;
    --home-border: #e5e7eb;
    --home-text: #1f2937;
    --home-text-muted: #6b7280;
    --home-text-light: #9ca3af;
    --home-radius: 0.75rem;
    --home-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --home-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --strip-height: 360px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ===== MAP WRAPPER ===== */
.home-map-wrapper {
    position: relative;
    display: flex;
    overflow: hidden;
    height: calc(100vh - 64px);
    height: calc(var(--app-vh, 100dvh) - 64px);
}

#map {
    flex: 1;
    z-index: 1;
}

/* ===== STRIP CHECKOUT BAR ===== */
.home-strip-checkout {
    flex-shrink: 0;
    padding: 0 1.5rem;
    max-height: 80px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, padding 0.25s ease;
}

.home-strip-checkout--empty {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.home-strip-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 0.625rem 1rem;
    background: var(--home-primary);
    color: #fff;
    border-radius: 0.625rem;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.15s ease;
}

.home-strip-checkout-btn:hover {
    background: var(--home-primary-hover);
}

.home-strip-checkout-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 380px;
    margin: 0 auto;
}

.home-strip-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 0.625rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.home-strip-clear-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.home-strip-clear-btn > i,
.home-strip-clear-btn > svg {
    width: 1rem;
    height: 1rem;
}

.home-strip-checkout-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-strip-checkout-left > i,
.home-strip-checkout-left > svg {
    width: 1.125rem;
    height: 1.125rem;
}

.home-strip-checkout-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    background: #fff;
    color: var(--home-primary);
    border-radius: 9999px;
}

.home-strip-checkout-total {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
}

.home-strip-checkout-right {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.home-strip-checkout-right > i,
.home-strip-checkout-right > svg {
    width: 1rem;
    height: 1rem;
}

/* ===== STRIP FOOTER (inside strip, below countries) ===== */
.home-strip-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1.25rem 0.625rem;
    flex-shrink: 0;
}

.home-strip-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.home-strip-footer-links a {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--home-text-light);
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
}

.home-strip-footer-links a:hover {
    color: var(--home-text);
    border-color: #d1d5db;
    background: rgba(0, 0, 0, 0.02);
}

.home-strip-footer-copy {
    font-size: 0.6875rem;
    color: var(--home-text-light);
    margin: 0;
}

/* ===== HORIZONTAL COUNTRY STRIP (floating box) ===== */
.home-strip {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
    max-width: 80rem;
    z-index: 1000;
    height: auto;
    max-height: var(--strip-height);
    background: var(--home-card-bg);
    border-radius: 1rem;
    box-shadow: var(--home-shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-strip.hp-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.home-strip-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem 0.75rem;
    flex-shrink: 0;
}

.home-strip-title {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin: 0;
    width: 100%;
    text-align: center;
}

.home-strip-headline {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--home-text);
    letter-spacing: -0.01em;
}

.home-strip-subtitle {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--home-text-light);
}

.home-strip-media-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.375rem;
}

.home-media-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: #030712; /* gray-950 */
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.home-media-btn:hover {
    color: #fff;
    background: #030712; /* gray-950 */
    opacity: 0.9;
}

.home-media-btn svg {
    width: 0.875rem;
    height: 0.875rem;
}

.home-strip-toggle {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.15s ease;
}

.home-strip-toggle:hover {
    background: #f3f4f6;
    color: #374151;
}

.home-strip-toggle > i,
.home-strip-toggle > svg {
    width: 1rem;
    height: 1rem;
}

.home-strip.minimized .home-strip-toggle {
    transform: rotate(180deg);
}

.home-strip.minimized .home-strip-scroll {
    max-height: 0 !important;
    min-height: 0 !important;
    flex: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-strip.minimized .home-strip-checkout {
    max-height: 0 !important;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

/* ===== HORIZONTAL SCROLL CONTAINER ===== */
@-webkit-keyframes home-strip-marquee {
    from { -webkit-transform: translateX(0); transform: translateX(0); }
    to   { -webkit-transform: var(--marquee-distance, translateX(-50%)); transform: translateX(var(--marquee-distance, -50%)); }
}
@keyframes home-strip-marquee {
    from { -webkit-transform: translateX(0); transform: translateX(0); }
    to   { -webkit-transform: var(--marquee-distance, translateX(-50%)); transform: translateX(var(--marquee-distance, -50%)); }
}

.home-strip-scroll {
    overflow: hidden !important;
    flex: 1;
    min-height: 155px;
    max-height: 500px;
    padding: 0;
    touch-action: pan-y;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
    mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                min-height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease,
                padding 0.25s ease;
}

.home-strip-rail {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    width: -webkit-max-content;
    width: max-content;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    -webkit-animation: home-strip-marquee 60s linear infinite;
    animation: home-strip-marquee 60s linear infinite;
}

body.is-dragging,
body.is-dragging * {
    cursor: grabbing !important;
}

/* ===== COUNTRY CARD ===== */
.home-country-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-width: 160px;
    max-width: 160px;
    padding: 0.5625rem 0.75rem;
    background: transparent;
    cursor: grab;
    transition: transform 0.25s ease;
    text-decoration: none;
    color: inherit;
    text-align: center;
    flex-shrink: 0;
}

.home-country-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e5e7eb, transparent);
}

.home-country-card:last-child::after {
    display: none;
}

.home-country-card:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-3px);
}

.home-country-card.highlighted {
    background: transparent;
}

/* ===== POPULAR BADGE ===== */
.home-country-badge {
    position: absolute;
    top: -0.375rem;
    right: -0.25rem;
    padding: 0.0625rem 0.375rem;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: white;
    background: #f59e0b;
    border-radius: 9999px;
    line-height: 1.4;
}

/* ===== FLAG ===== */
.home-country-flag {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--home-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--home-border);
}

.home-country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-country-flag i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--home-text-muted);
}

/* ===== COUNTRY NAME ===== */
.home-country-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--home-text);
    text-align: center;
    max-width: 100%;
    line-height: 1.2;
}

/* ===== PRICE ===== */
.home-country-price {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--home-text-muted);
}

/* ===== CTA BUTTON ===== */
.home-country-cta {
    font-size: 0.6875rem;
    font-weight: 400;
    color: #9ca3af;
    margin-top: -0.125rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-country-card:hover .home-country-cta {
    opacity: 1;
}

.home-country-cart-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 0.25rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
    color: #9ca3af !important;
    padding: 0.125rem 0.5rem;
    margin-top: 0;
    opacity: 0.3;
    transition: opacity 0.3s ease, color 0.15s ease, border-color 0.15s ease;
}

.home-country-card:hover .home-country-cart-btn {
    border-color: #d1d5db;
}

.home-country-cart-btn:hover {
    color: #374151 !important;
    border-color: #9ca3af !important;
}

.home-cart-btn--added {
    opacity: 1 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
}

.home-cart-btn--added:hover {
    color: #dc2626 !important;
    border-color: #ef4444 !important;
}

/* ===== OWNED CARD ===== */
.home-country-card--owned .home-country-flag {
    border-color: #10b981;
}

.home-country-owned-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #10b981;
}

.home-country-owned-icon {
    width: 0.625rem;
    height: 0.625rem;
    flex-shrink: 0;
}

.home-country-cta--credits {
    opacity: 0.3;
    color: #9ca3af !important;
    text-decoration: none;
    font-size: 0.5625rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease, color 0.15s ease, border-color 0.15s ease;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.125rem 0.5rem;
    white-space: nowrap;
}

.home-country-card--owned:hover .home-country-cta--credits {
    opacity: 1;
}

.home-country-cta--credits:hover {
    color: #374151 !important;
    border-color: #9ca3af !important;
}

.home-country-cta i {
    width: 0.75rem;
    height: 0.75rem;
}

/* ===== MAP POPUP ===== */
@keyframes hp-popup-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-popup .leaflet-popup-content-wrapper {
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 0;
    border: none;
    animation: hp-popup-in 0.15s cubic-bezier(0.34, 1.1, 0.64, 1) both;
    transform-origin: bottom center;
}

.home-popup .leaflet-popup-content {
    margin: 0;
    line-height: 1.4;
    width: 280px !important;
}

.home-popup .leaflet-popup-tip {
    box-shadow: none;
}

/* Popup opens to the left (NZ, Fiji - near right edge of map) */
.home-popup--left .leaflet-popup-content-wrapper {
    transform-origin: right center;
}

.home-popup--left .leaflet-popup-tip-container {
    left: auto;
    right: 0;
    top: 50%;
    margin-top: -10px;
    margin-left: 0;
    margin-right: -1px;
    width: 20px;
    height: 40px;
}

.home-popup--left .leaflet-popup-tip {
    margin: 0 auto;
    transform: rotate(-45deg);
}

/* ===== POPUP CARD ===== */
.hp-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
}

.hp-card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.hp-card-flag {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.hp-card-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.hp-card-type {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    line-height: 1.2;
}

.hp-card-country {
    font-size: 1rem;
    font-weight: 700;
    color: #030712;
    line-height: 1.2;
}

.hp-card-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.hp-card-price {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #030712;
}

.hp-card-actions {
    display: flex;
    gap: 0.375rem;
}

.hp-card-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3125rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.hp-card-action-btn:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

.hp-card-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.25rem;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: #030712;
    border: 1px solid #030712;
    border-radius: 0.5rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

a.hp-card-cart-btn,
a.hp-card-cart-btn:link,
a.hp-card-cart-btn:visited {
    text-decoration: none;
}

a.hp-card-cart-btn--view,
a.hp-card-cart-btn--view:link,
a.hp-card-cart-btn--view:visited {
    color: #fff;
}

a.hp-card-cart-btn--credits,
a.hp-card-cart-btn--credits:link,
a.hp-card-cart-btn--credits:visited {
    color: #6b7280;
}

.hp-card-cart-btn:hover {
    background: #1f2937;
    border-color: #1f2937;
}

.hp-card-cart-btn--remove {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.hp-card-cart-btn--remove:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

.hp-card-owned-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
}

.hp-card-cart-btn--view {
    background: #030712;
    color: #fff;
    border-color: #030712;
}

.hp-card-cart-btn--view:hover {
    background: #1f2937;
    border-color: #1f2937;
}

.hp-card-cart-btn--credits {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.hp-card-cart-btn--credits:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

/* ===== CUSTOM MAP MARKERS ===== */
.home-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--home-primary);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: white;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.home-marker:hover {
    transform: scale(1.1);
}

.home-marker i {
    width: 1.25rem;
    height: 1.25rem;
}

.home-marker-flag {
    background: white;
    overflow: hidden;
}

.home-marker-flag img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== CLUSTER MARKERS ===== */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: rgba(3, 7, 18, 0.2);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: var(--home-primary);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.leaflet-cluster-spider-leg {
    display: none !important;
}

.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
    transition: none !important;
}

/* ===== HIDE LEAFLET DEFAULT CONTROLS ===== */
.leaflet-control-zoom,
.leaflet-control-attribution {
    display: none !important;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    :root {
        --strip-height: 400px;
    }

    .home-strip {
        bottom: 0.75rem;
        width: calc(100% - 1.5rem);
        border-radius: 0.75rem;
    }

    .home-strip-checkout {
        padding: 0.5rem 0.75rem;
    }

    .home-strip-checkout-wrapper {
        max-width: 100%;
    }

    .home-strip-checkout-btn {
        max-width: 100%;
        flex: 1;
    }

    .home-strip-footer {
        padding: 0.375rem 0.75rem 0.5rem;
    }

    .home-strip-footer-links {
        margin-bottom: 0.625rem;
    }

    .home-strip-header {
        padding: 0.5rem 0.75rem;
    }

    .home-strip-headline {
        font-size: 0.9375rem;
    }

    .home-strip-subtitle {
        font-size: 0.75rem;
    }

    .home-strip-scroll {
        padding: 0 0 0.5rem;
    }

    .home-strip-rail {
        gap: 1rem;
    }

    .home-country-card {
        min-width: 130px;
        max-width: 130px;
        padding: 0.75rem 0.5rem;
    }

    .home-country-flag {
        width: 1.75rem;
        height: 1.75rem;
    }

    .home-country-name {
        font-size: 0.6875rem;
    }

    .home-country-price {
        font-size: 0.625rem;
    }

    .home-country-cart-btn {
        font-size: 0.625rem !important;
        font-weight: 500 !important;
        padding: 0.3rem 0.75rem;
        border-width: 1px;
        border-style: solid;
        border-color: #d1d5db;
        border-radius: 0.3rem;
    }

    .home-country-cta--credits {
        font-size: 0.625rem !important;
        font-weight: 500 !important;
        padding: 0.3rem 0.75rem;
        border-width: 1px;
        border-style: solid;
        border-color: #d1d5db;
        border-radius: 0.3rem;
    }

}

@media (max-width: 480px) {
    :root {
        --strip-height: 340px;
    }

    .home-strip {
        bottom: 0.5rem;
        width: calc(100% - 1rem);
    }

    .home-strip-rail {
        gap: 1rem;
    }

    .home-country-card {
        min-width: 120px;
        max-width: 120px;
    }
}

/* ===== COUPON TOAST ===== */
.coupon-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 16rem;
    height: 16rem;
    padding: 2rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: 5px dashed #065f46;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.coupon-toast.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.coupon-toast-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.coupon-toast-icon-wrapper svg {
    width: 2.25rem;
    height: 2.25rem;
}

.coupon-toast-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.coupon-toast-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.coupon-toast-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
    max-width: 11rem;
}

/* ===== COUPON LIGHTBOX ===== */
.coupon-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.coupon-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.coupon-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.75);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.coupon-lightbox-content {
    position: relative;
    background: #374151;
    padding: 2.5rem 2rem;
    max-width: 380px;
    width: calc(100% - 2rem);
    text-align: center;
    border-radius: 1rem;
    transform: scale(0.95) translateY(10px);
    transition: transform 300ms ease;
}

.coupon-lightbox.active .coupon-lightbox-content {
    transform: scale(1) translateY(0);
}

.coupon-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 150ms ease;
}

.coupon-lightbox-close:hover {
    color: #F3F4F6;
}

.coupon-lightbox-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: #4B5563;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    color: #F9FAFB;
}

.coupon-lightbox-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F9FAFB;
    margin: 0 0 0.5rem;
}

.coupon-lightbox-message {
    font-size: 0.9375rem;
    color: #D1D5DB;
    margin: 0 0 1.5rem;
}

.coupon-lightbox-code {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #1F2937;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.coupon-lightbox-code span {
    font-family: ui-monospace, monospace;
    font-size: 1.125rem;
    font-weight: 600;
    color: #F9FAFB;
    letter-spacing: 0.05em;
}

.coupon-copy-btn {
    background: transparent;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 150ms ease;
}

.coupon-copy-btn:hover {
    color: #F3F4F6;
}

.coupon-lightbox-discount {
    font-size: 0.875rem;
    font-weight: 600;
    color: #10B981;
    margin: 0 0 1.5rem;
}

.coupon-lightbox-apply {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #F9FAFB;
    color: #1F2937;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 150ms ease;
}

.coupon-lightbox-apply:hover {
    background: #E5E7EB;
}
