/* PHL B2B Buying Intelligence & Monthly Showcase Master CSS */
:root {
    --phl-primary: #3c904e;
    --phl-primary-hover: #2c6b39;
    --phl-navy: #1e3a8a;
    --phl-navy-dark: #0f172a;
    --phl-bg-light: #f8fafc;
    --phl-border: #e2e8f0;
    --phl-text: #1e293b;
    --phl-text-muted: #64748b;
    --phl-gold: #f59e0b;
}

/* Dashboard Master Container */
.phl-bi-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 30px;
}

/* Header Banner */
.phl-bi-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3c904e 100%);
    border-radius: 10px;
    padding: 24px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.phl-bi-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.phl-bi-header-text h2 {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 4px 0 !important;
}
.phl-bi-header-text p {
    color: #e2e8f0 !important;
    font-size: 14px !important;
    margin: 0 !important;
}
.phl-bi-header-actions {
    flex-shrink: 0;
}
.phl-bi-btn-primary {
    background: #ffffff !important;
    color: #1e3a8a !important;
    border: none !important;
    padding: 14px 26px !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.phl-bi-btn-primary:hover {
    background: #f8fafc !important;
    color: #3c904e !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25) !important;
}

/* KPI Cards */
.phl-bi-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.phl-bi-kpi-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.phl-bi-kpi-icon {
    font-size: 28px;
    background: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.phl-bi-kpi-info {
    display: flex;
    flex-direction: column;
}
.phl-bi-kpi-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.phl-bi-kpi-value {
    font-size: 16px;
    font-weight: 800;
    color: #1e3a8a;
}
.phl-bi-kpi-sub {
    font-size: 11px;
    color: #94a3b8;
}

/* Tabs */
.phl-bi-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
}
.phl-bi-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}
.phl-bi-tab:hover {
    color: #1e3a8a;
}
.phl-bi-tab.active {
    color: #3c904e;
    border-bottom-color: #3c904e;
}
.phl-bi-tab-content {
    display: none;
}
.phl-bi-tab-content.active {
    display: block;
}

/* Product Cards Grid */
.phl-bi-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.phl-bi-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.phl-bi-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.phl-bi-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 2;
}
.phl-badge-hot {
    background: #ef4444;
}
.phl-badge-ai {
    background: #8b5cf6;
}

.phl-bi-product-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px;
}
.phl-bi-product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.phl-bi-product-title a {
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.phl-bi-sku {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}
.phl-bi-product-price {
    font-size: 16px;
    font-weight: 800;
    color: #3c904e;
    margin: 8px 0;
}
.phl-bi-product-meta {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phl-bi-pack-badge {
    font-size: 11px;
    font-weight: 700;
    color: #1e3a8a;
    background: #dbeafe;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 6px;
}

/* Stepper */
.phl-bi-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #ffffff;
}
.phl-bi-qty-stepper button {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 34px;
    font-weight: bold;
    color: #334155;
    cursor: pointer;
}
.phl-bi-qty-stepper button:hover {
    background: #e2e8f0;
}
.phl-bi-qty-input {
    width: 100% !important;
    text-align: center !important;
    border: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    padding: 0 !important;
    height: 34px !important;
    box-shadow: none !important;
}

.phl-bi-add-btn {
    width: 100%;
    background: #3c904e;
    color: #ffffff !important;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.phl-bi-add-btn:hover {
    background: #2c6b39;
}

/* Regional Map */
.phl-bi-regional-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}
.phl-bi-map-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}
.phl-bi-map-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}
.phl-bi-map-header span {
    font-weight: 800;
    color: #1e3a8a;

}
.phl-bi-uk-svg {
    width: 100%;
    height: auto;
}
.phl-map-region {
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: all;
}
.phl-map-region:hover {
    fill: #1e3a8a !important;
    opacity: 0.9 !important;
}
.phl-map-region.active {
    fill: #1e3a8a !important;
    opacity: 1 !important;
}
.phl-bi-uk-svg text {
    pointer-events: none !important;
}
.phl-bi-map-tooltip {
    background: #1e3a8a;
    color: #ffffff;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
}

/* Toast */
.phl-bi-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e3a8a;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: none;
    z-index: 99999;
}


/* ==========================================================================
   STANDALONE MONTHLY SHOWCASE THEATRE PAGE STYLING (PREMIUM OVERHAUL)
   ========================================================================== */
.phl-standalone-showcase {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background: #0b0f19 !important;
    color: #ffffff !important;
    border-radius: 16px !important;
    padding: 28px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35) !important;
    margin-bottom: 40px !important;
}

.phl-showcase-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3c904e 100%) !important;
    padding: 24px 30px !important;
    border-radius: 12px !important;
    margin-bottom: 24px !important;
}
.phl-showcase-header-text h2 {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 6px 0 !important;
}
.phl-showcase-header-text p {
    color: #e2e8f0 !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.phl-theatre-player {
    background: #111827 !important;
    border: 1px solid #1f2937 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}
.phl-theatre-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 24px !important;
    background: #1f2937 !important;
    border-bottom: 1px solid #374151 !important;
}
.phl-live-pulse {
    color: #ef4444 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    margin-right: 12px !important;
    letter-spacing: 1px !important;
}
#phl-showcase-counter {
    color: #9ca3af !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}
.phl-theatre-actions {
    display: flex !important;
    gap: 8px !important;
}
.phl-theatre-btn {
    background: #374151 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.phl-theatre-btn:hover {
    background: #3c904e !important;
}
.phl-theatre-play {
    background: #3c904e !important;
}
.phl-theatre-audio {
    background: #2563eb !important;
}

.phl-theatre-progress {
    height: 5px !important;
    background: #1f2937 !important;
}
.phl-showcase-fill {
    height: 100% !important;
    background: #10b981 !important;
    width: 0% !important;
    transition: width 0.1s linear !important;
}

.phl-theatre-stage {
    min-height: 420px !important;
    padding: 32px !important;
}
.phl-showcase-slide {
    display: none !important;
}
.phl-showcase-slide.active {
    display: block !important;
    animation: fadeIn 0.4s ease !important;
}

.phl-theatre-grid {
    display: grid !important;
    grid-template-columns: 360px 1fr !important;
    gap: 36px !important;
    align-items: center !important;
}
.phl-theatre-media {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 24px !important;
    height: 340px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}
.phl-theatre-badge {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    background: #1e3a8a !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    border: none !important;
}
.phl-theatre-badge::before,
.phl-theatre-badge::after {
    display: none !important;
}
.phl-theatre-img {
    max-height: 280px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    transition: transform 6s ease !important;
}
.phl-showcase-slide.active .phl-theatre-img {
    transform: scale(1.06) !important;
}

.phl-theatre-info {
    color: #ffffff !important;
}
.phl-theatre-meta {
    display: flex !important;
    gap: 16px !important;
    font-size: 12px !important;
    color: #9ca3af !important;
    margin-bottom: 10px !important;
}
.phl-theatre-title {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
}
.phl-theatre-price {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #4ade80 !important;
    margin-bottom: 20px !important;
}

/* AI Speech Box */
.phl-ai-speech-box {
    background: #1f2937 !important;
    border-left: 4px solid #10b981 !important;
    border-radius: 10px !important;
    padding: 18px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
}
.phl-ai-speech-header {
    font-size: 14px !important;
    color: #4ade80 !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 700 !important;
}
.phl-ai-speech-text {
    color: #f1f5f9 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Order Actions & Stepper */
.phl-theatre-order-box {
    margin-top: 20px !important;
}
.phl-theatre-stepper-row {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}
.phl-theatre-order-box .phl-bi-qty-stepper {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
    border-radius: 28px !important;
    padding: 4px 12px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.phl-theatre-order-box .phl-bi-qty-minus,
.phl-theatre-order-box .phl-bi-qty-plus {
    background: #374151 !important;
    color: #ffffff !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s !important;
}
.phl-theatre-order-box .phl-bi-qty-minus:hover,
.phl-theatre-order-box .phl-bi-qty-plus:hover {
    background: #10b981 !important;
}
.phl-theatre-order-box .phl-bi-qty-input {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    width: 50px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    margin: 0 !important;
}
.phl-theatre-order-box .phl-bi-add-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
    border-radius: 28px !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(16,185,129,0.35) !important;
    cursor: pointer !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.phl-theatre-order-box .phl-bi-add-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(16,185,129,0.5) !important;
}

/* Thumbnail Strip */
.phl-theatre-strip {
    display: flex !important;
    gap: 12px !important;
    padding: 16px 24px !important;
    background: #1f2937 !important;
    overflow-x: auto !important;
    border-top: 1px solid #374151 !important;
}
.phl-thumb-item {
    width: 64px !important;
    height: 64px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    padding: 4px !important;
    cursor: pointer !important;
    opacity: 0.6 !important;
    transition: all 0.2s !important;
    border: 2px solid transparent !important;
    flex-shrink: 0 !important;
}
.phl-thumb-item.active,
.phl-thumb-item:hover {
    opacity: 1 !important;
    border-color: #10b981 !important;
}
.phl-thumb-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
