/**
 * Shine GPL - Black Friday & 7th Birthday Sale Styles
 * Pure Pitch Black & Bright Yellow Theme (#000000 & #FFE600)
 * Font: Poppins | Border: 2px Dotted | Radius: 9px | Zero Emojis
 */

:root {
    --shine-bf-bg: #000000;
    --shine-bf-surface: #0a0a0a;
    --shine-bf-surface-2: #141414;
    --shine-bf-yellow: #FFE600;
    --shine-bf-yellow-hover: #FFF04D;
    --shine-bf-text: #ffffff;
    --shine-bf-muted: #a1a1aa;
    --shine-bf-bar-height: 44px;
    --shine-bf-font: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   1. STICKY TOP ANNOUNCEMENT BAR
   ========================================================================== */

#shine-bf-top-bar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999990;
    background: #000000;
    border-bottom: 1.5px solid rgba(255, 230, 0, 0.4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-family: var(--shine-bf-font) !important;
    font-size: 13px;
    line-height: 1.4;
    transition: transform 0.3s ease;
}

.shine-bf-bar-inner.shine-bf-bar-centered {
    max-width: 1400px;
    margin: 0 auto;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--shine-bf-bar-height);
    box-sizing: border-box;
    text-align: center;
}

.shine-bf-bar-center-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}

.shine-bf-bar-text {
    font-size: 13.5px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.shine-bf-bar-text strong {
    color: var(--shine-bf-yellow);
    font-weight: 800;
}

/* Coupon Copy Pill */
.shine-bf-coupon-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0a0a0a;
    border: 1.5px dotted var(--shine-bf-yellow);
    padding: 3px 10px;
    border-radius: 9px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    color: #ffffff;
}

.shine-bf-coupon-pill:hover {
    background: #141414;
    border-color: #ffffff;
    transform: translateY(-1px);
}

.shine-bf-coupon-code-text {
    font-family: var(--shine-bf-font) !important;
    font-weight: 800;
    color: var(--shine-bf-yellow);
    letter-spacing: 0.8px;
    font-size: 12px;
}

.shine-bf-copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: color 0.2s;
}

/* Tooltip Feedback */
.shine-bf-copy-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--shine-bf-yellow);
    color: #000000;
    font-family: var(--shine-bf-font) !important;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 230, 0, 0.4);
    z-index: 10;
}

.shine-bf-copy-tooltip::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 4px 4px 4px;
    border-style: solid;
    border-color: transparent transparent var(--shine-bf-yellow) transparent;
}

.shine-bf-coupon-pill.is-copied .shine-bf-copy-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Top Bar CTA Button */
.shine-bf-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--shine-bf-yellow);
    color: #000000 !important;
    text-decoration: none !important;
    font-family: var(--shine-bf-font) !important;
    font-weight: 800;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(255, 230, 0, 0.35);
    white-space: nowrap;
}

.shine-bf-bar-btn:hover {
    background: var(--shine-bf-yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 230, 0, 0.5);
    color: #000000 !important;
}


/* ==========================================================================
   2. HIGH-CONVERTING COMPACT POPUP MODAL (BLACK & BRIGHT YELLOW)
   ========================================================================== */

#shine-bf-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    font-family: var(--shine-bf-font) !important;
}

#shine-bf-popup-modal * {
    font-family: var(--shine-bf-font) !important;
    box-sizing: border-box;
}

#shine-bf-popup-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Backdrop */
.shine-bf-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

/* Modal Box - Image Mode with 2px Dotted Yellow Border, 9px Radius */
.shine-bf-modal-box {
    position: relative;
    width: 100%;
    max-width: 410px;
    background: #000000;
    border: 2px dotted var(--shine-bf-yellow) !important;
    border-radius: 9px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 32px rgba(255, 230, 0, 0.22);
    padding: 12px 14px 14px;
    color: #ffffff;
    text-align: center;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

#shine-bf-popup-modal.is-open .shine-bf-modal-box {
    transform: scale(1) translateY(0);
}

/* Close Button - 9px Radius over top right */
.shine-bf-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 9px !important;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0;
}

.shine-bf-modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Clickable Promotional Banner Image */
.shine-bf-img-link {
    display: block;
    width: 100%;
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 12px;
    line-height: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.shine-bf-img-link:hover {
    opacity: 0.97;
}

.shine-bf-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 7px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* Bottom Content Container */
.shine-bf-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Coupon Area - 2px Dotted Yellow Border, 9px Radius */
.shine-bf-coupon-container {
    background: #0a0a0a;
    border: 2px dotted var(--shine-bf-yellow) !important;
    border-radius: 9px !important;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
}

.shine-bf-coupon-label-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.shine-bf-coupon-tag {
    font-size: 10px;
    color: #a1a1aa;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.shine-bf-coupon-display {
    font-family: var(--shine-bf-font) !important;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: var(--shine-bf-yellow);
}

.shine-bf-btn-copy-big {
    position: relative;
    background: #141414;
    border: 1px solid #3f3f46;
    color: #ffffff;
    font-family: var(--shine-bf-font) !important;
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 9px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.shine-bf-btn-copy-big:hover {
    background: var(--shine-bf-yellow);
    color: #000000;
    border-color: var(--shine-bf-yellow);
    transform: translateY(-1px);
}

.shine-bf-btn-copy-big.is-copied {
    background: var(--shine-bf-yellow);
    border-color: var(--shine-bf-yellow);
    color: #000000;
    font-weight: 800;
}

/* CTA Big Button - Bright Yellow, Black Text, 9px Radius */
.shine-bf-modal-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--shine-bf-yellow);
    color: #000000 !important;
    text-decoration: none !important;
    font-family: var(--shine-bf-font) !important;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 9px !important;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 18px rgba(255, 230, 0, 0.35);
}

.shine-bf-modal-cta:hover {
    background: var(--shine-bf-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 230, 0, 0.5);
    color: #000000 !important;
}

/* Real-Time Countdown Timer (Offer Ends In) */
.shine-bf-timer-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 230, 0, 0.25);
    border-radius: 9px !important;
    padding: 7px 10px;
    margin-top: 2px;
}

.shine-bf-timer-label {
    font-size: 10.5px;
    color: var(--shine-bf-yellow);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.shine-bf-timer-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2px 6px;
    min-width: 30px;
}

.shine-bf-timer-num {
    font-family: var(--shine-bf-font) !important;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.shine-bf-timer-txt {
    font-size: 8px;
    color: #a1a1aa;
    text-transform: uppercase;
    font-weight: 600;
}

.shine-bf-timer-sep {
    color: var(--shine-bf-yellow);
    font-weight: 800;
    font-size: 12px;
}


/* ==========================================================================
   3. MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --shine-bf-bar-height: 48px;
    }

    .shine-bf-bar-inner.shine-bf-bar-centered {
        padding: 6px 10px;
    }

    .shine-bf-bar-center-content {
        gap: 8px;
    }

    .shine-bf-bar-text {
        font-size: 11.5px;
    }

    .shine-bf-coupon-pill {
        padding: 2px 7px;
    }

    .shine-bf-coupon-code-text {
        font-size: 11px;
    }

    .shine-bf-bar-btn {
        padding: 3px 8px;
        font-size: 11px;
    }

    .shine-bf-modal-box {
        padding: 10px 12px 12px;
        max-width: 92vw;
        max-height: 94vh;
        overflow-y: auto;
    }

    .shine-bf-coupon-container {
        padding: 7px 10px;
    }

    .shine-bf-coupon-display {
        font-size: 15px;
    }

    .shine-bf-modal-cta {
        padding: 10px 14px;
        font-size: 13px;
    }

    .shine-bf-timer-wrap {
        padding: 5px 8px;
    }

    .shine-bf-timer-label {
        font-size: 9.5px;
    }

    .shine-bf-timer-num {
        font-size: 11.5px;
    }
}

@media (max-width: 480px) {
    .shine-bf-bar-actions .shine-bf-coupon-pill {
        display: none;
    }

    .shine-bf-bar-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}
