@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/**
 * Shine GPL - Modern Header Stylesheet
 * 
 * Strict Guidelines:
 * - 100% Dynamic Colors from Shine GPL Settings
 * - Zero Emojis (Professional SVG Vector Icons only)
 * - Modern Glassmorphism & SaaS Navbar Aesthetics
 */

/* 120Hz Ultra-Smooth Rendering & Global Base Reset */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    touch-action: manipulation;
}

body {
    background-color: var(--shine-bg, #f8fafc) !important;
    color: var(--shine-text, #334155) !important;
    -webkit-overflow-scrolling: touch;
}

/* Fast 0ms Mobile Tap Responsiveness */
a, button, input, select, textarea, .button, [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* GPU Compositor Acceleration */
.shine-site-header,
.shine-subnav-container,
.shine-header-premium-btn,
.shine-subnav-action-btn,
.shine-hero-rotator,
.shine-rotator-item,
.shine-subnav-list .sub-menu,
.shine-subnav-mobile-drawer {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Global Links */
a {
    color: var(--shine-link, #0f766e);
    transition: color 0.2s ease;
}
a:hover, a:focus {
    color: var(--shine-link-hover, #047857);
}

/* Global Headings */
h1, h2, h3, h4, h5, h6,
.entry-title a {
    color: var(--shine-black, #0f172a) !important;
}

/* Cards & Content Surfaces */
.inside-article,
.site-content article,
.post-box,
.shine-card {
    background-color: var(--shine-white, #ffffff);
}

/* Primary Action Buttons */
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link {
    background-color: var(--shine-primary, #10B981);
    color: var(--shine-white, #ffffff);
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background-color: var(--shine-link-hover, #059669);
    color: var(--shine-white, #ffffff);
}

.shine-site-header {
    width: auto;
    margin-left: 10px;
    margin-right: 10px;
    background: transparent;
    border-bottom: none;
    position: relative;
    z-index: 999;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 16px 14px 8px 14px;
    box-sizing: border-box;
}

.shine-site-header *,
.shine-site-header *::before,
.shine-site-header *::after {
    box-sizing: border-box;
}

.shine-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 0 20px;
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    transition: all 0.25s ease;
}

.shine-header-container:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.11), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
}

/* ----------------------------------------------------
   LEFT: LOGO & BRAND
   ---------------------------------------------------- */
.shine-header-logo-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.shine-header-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.shine-header-logo-link:hover {
    opacity: 0.9;
}

.shine-brand-favicon-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 3px 8px var(--shine-primary-35, rgba(16, 185, 129, 0.35)));
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.shine-header-logo-link:hover .shine-brand-favicon-img {
    transform: scale(1.08);
}

.shine-custom-logo-img {
    max-height: 44px;
    width: auto;
    display: block;
}

.shine-brand-icon-box {
    width: 40px;
    height: 40px;
    background: var(--shine-primary, #10B981);
    color: var(--shine-white, #ffffff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shine-primary-30, rgba(16, 185, 129, 0.3));
    flex-shrink: 0;
}

.shine-brand-name {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--shine-site-title-size, 21px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--shine-black, #0f172a);
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.shine-brand-highlight {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    color: var(--shine-primary, #10B981);
    margin-left: 3px;
}

/* ----------------------------------------------------
   CENTER: HEADER SEARCH BAR (STRETCHED LOGO TO PLANS)
   ---------------------------------------------------- */
.shine-header-search-wrap {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin: 0 32px;
}

.shine-header-search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 9999px;
    padding: 4px 6px 4px 16px;
    height: 44px;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.shine-header-search-form:hover {
    border-color: var(--shine-primary-35, rgba(16, 185, 129, 0.35));
    background: #ffffff;
}

.shine-header-search-form:focus-within {
    border-color: var(--shine-primary, #10B981);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--shine-primary-12, rgba(16, 185, 129, 0.12)), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.shine-hdr-search-icon {
    display: flex;
    align-items: center;
    color: #94a3b8;
    margin-right: 8px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.shine-header-search-form:focus-within .shine-hdr-search-icon {
    color: var(--shine-primary, #10B981);
}

/* Bulletproof reset for inner input to remove theme box/borders */
.shine-hdr-search-input,
.shine-site-header input[type="search"].shine-hdr-search-input,
.shine-site-header input[type="text"].shine-hdr-search-input {
    width: 100% !important;
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    padding: 0 10px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--shine-black, #0f172a) !important;
    height: 100% !important;
    line-height: normal !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.shine-hdr-search-input:focus,
.shine-site-header input[type="search"].shine-hdr-search-input:focus,
.shine-site-header input[type="text"].shine-hdr-search-input:focus {
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.shine-hdr-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.shine-hdr-search-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--shine-primary, #10B981);
    color: #ffffff;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0 !important;
    margin: 0 !important;
}

.shine-hdr-search-btn:hover {
    background: var(--shine-link-hover, #059669);
    transform: scale(1.05);
}

/* ----------------------------------------------------
   RIGHT: NAVIGATION MENU & USER AUTH
   ---------------------------------------------------- */
.shine-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Premium Plans CTA Button */
.shine-header-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--shine-primary, #10B981);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 9999px;
    text-decoration: none !important;
    box-shadow: 0 3px 12px var(--shine-primary-25, rgba(16, 185, 129, 0.25));
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.shine-header-premium-btn:hover {
    background: var(--shine-link-hover, #059669);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--shine-primary-35, rgba(16, 185, 129, 0.35));
}

.shine-header-premium-btn svg {
    flex-shrink: 0;
}

/* ----------------------------------------------------
   USER AUTHENTICATION & PROFILE BLOCK
   ---------------------------------------------------- */
.shine-header-user-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LOGGED IN: Profile Badge with Button-styled Dropdown */
.shine-user-logged-in-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

button.shine-user-profile-badge,
button#shine-user-dropdown-toggle,
.shine-user-profile-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 5px 12px 5px 6px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
    line-height: inherit !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button.shine-user-profile-badge:hover,
button.shine-user-profile-badge:focus,
button.shine-user-profile-badge:focus-visible,
button.shine-user-profile-badge:active,
button#shine-user-dropdown-toggle:hover,
button#shine-user-dropdown-toggle:focus,
button#shine-user-dropdown-toggle:focus-visible,
button#shine-user-dropdown-toggle:active,
.shine-user-logged-in-wrap.is-open button.shine-user-profile-badge {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: var(--shine-primary, #10B981) !important;
    box-shadow: 0 4px 14px var(--shine-primary-15, rgba(16, 185, 129, 0.15)) !important;
    outline: none !important;
}

.shine-user-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--shine-primary, #10B981);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shine-username-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--shine-black, #0f172a);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    transition: color 0.2s ease;
}

button.shine-user-profile-badge:hover .shine-username-text,
button.shine-user-profile-badge:focus .shine-username-text,
button.shine-user-profile-badge:focus-visible .shine-username-text,
button.shine-user-profile-badge:active .shine-username-text,
button#shine-user-dropdown-toggle:hover .shine-username-text,
button#shine-user-dropdown-toggle:focus .shine-username-text,
button#shine-user-dropdown-toggle:active .shine-username-text,
.shine-user-logged-in-wrap.is-open .shine-username-text {
    color: var(--shine-primary, #10B981) !important;
}

.shine-user-chevron {
    color: #94a3b8;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

button.shine-user-profile-badge:hover .shine-user-chevron,
button.shine-user-profile-badge:focus .shine-user-chevron,
button.shine-user-profile-badge:focus-visible .shine-user-chevron,
button.shine-user-profile-badge:active .shine-user-chevron,
button#shine-user-dropdown-toggle:hover .shine-user-chevron,
button#shine-user-dropdown-toggle:focus .shine-user-chevron,
button#shine-user-dropdown-toggle:active .shine-user-chevron,
.shine-user-logged-in-wrap.is-open .shine-user-chevron {
    color: var(--shine-primary, #10B981) !important;
}

.shine-user-logged-in-wrap.is-open .shine-user-chevron {
    transform: rotate(180deg);
}

/* ----------------------------------------------------
   BUTTON-STYLED USER DROPDOWN MENU
   ---------------------------------------------------- */
.shine-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 210px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 12px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.shine-user-logged-in-wrap.is-open .shine-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.shine-dropdown-header {
    padding: 2px 6px 10px 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shine-dropdown-subtitle {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.shine-dropdown-user-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--shine-black, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shine-dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Button style items inside dropdown */
.shine-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

/* Dashboard Button */
.shine-dropdown-btn-dashboard {
    background: var(--shine-primary-8, rgba(16, 185, 129, 0.08));
    color: var(--shine-primary, #10B981) !important;
    border: 1px solid var(--shine-primary-20, rgba(16, 185, 129, 0.2));
}

.shine-dropdown-btn-dashboard:hover {
    background: var(--shine-primary, #10B981);
    color: #ffffff !important;
    border-color: var(--shine-primary, #10B981);
    box-shadow: 0 4px 14px var(--shine-primary-30, rgba(16, 185, 129, 0.3));
    transform: translateY(-1px);
}

.shine-dropdown-btn-dashboard svg {
    color: inherit;
    flex-shrink: 0;
}

/* Logout Button */
.shine-dropdown-btn-logout {
    background: #f8fafc;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.shine-dropdown-btn-logout:hover {
    background: #ef4444;
    color: #ffffff !important;
    border-color: #ef4444;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
}

.shine-dropdown-btn-logout svg {
    color: inherit;
    flex-shrink: 0;
}

/* LOGGED OUT: Guest Auth Buttons */
.shine-guest-auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shine-guest-auth-buttons {
    display: inline-flex;
    align-items: center;
}

.shine-header-client-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 5px 14px 5px 6px;
    border-radius: 9999px;
    text-decoration: none !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--shine-black, #0f172a);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.shine-header-client-login-btn:hover {
    background: #ffffff;
    border-color: var(--shine-primary, #10B981);
    box-shadow: 0 4px 14px var(--shine-primary-15, rgba(16, 185, 129, 0.15));
    color: var(--shine-primary, #10B981);
    transform: translateY(-1px);
}

.shine-client-login-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--shine-primary, #10B981);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.shine-header-client-login-btn:hover .shine-client-login-icon {
    transform: scale(1.05);
}

.shine-client-login-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--shine-black, #0f172a);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.shine-header-client-login-btn:hover .shine-client-login-text {
    color: var(--shine-primary, #10B981);
}

/* Mobile Toggle */
.shine-mobile-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--shine-black, #0f172a);
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
}

.shine-mobile-toggle-btn:hover {
    background: #f1f5f9;
}

/* Mobile Drawer */
.shine-mobile-nav-drawer {
    display: none;
    max-width: 1200px;
    margin: 12px auto 0 auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 18px 24px 24px 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.shine-mobile-nav-drawer.is-open {
    display: block;
}

.shine-mobile-search-box {
    margin-bottom: 16px;
}

.shine-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shine-mobile-menu-list a {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--shine-text, #334155);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.shine-mobile-menu-list a:hover {
    color: var(--shine-primary, #10B981);
}

.shine-mobile-menu-list .shine-mobile-cta {
    color: var(--shine-primary, #10B981);
    font-weight: 700;
}

/* ----------------------------------------------------
   SECONDARY PILL BAR: NAVIGATION MENU (LEFT-ALIGNED)
   ---------------------------------------------------- */
.shine-subnav-container {
    max-width: 1200px;
    margin: 10px auto 0 auto;
    padding: 0 16px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Left: Primary Menu, Right: Changelog Button */
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
    transition: all 0.25s ease;
    position: relative;
    z-index: 998;
}

.shine-subnav-container:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px -2px rgba(15, 23, 42, 0.07);
}

.shine-subnav-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left side alignment */
    height: 100%;
}

/* Right Side: Dual Action Buttons (Changelog & Premium Files) */
.shine-subnav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.shine-subnav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--shine-primary, #10B981);
    background: var(--shine-primary-8, rgba(16, 185, 129, 0.08));
    border: 1.5px solid var(--shine-primary-20, rgba(16, 185, 129, 0.2));
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.shine-subnav-action-btn:hover {
    background: var(--shine-primary, #10B981);
    color: #ffffff !important;
    border-color: var(--shine-primary, #10B981);
    box-shadow: 0 4px 14px var(--shine-primary-30, rgba(16, 185, 129, 0.3));
    transform: translateY(-1px);
}

.shine-subnav-action-btn:hover svg {
    stroke: #ffffff;
}

.shine-btn-changelog .shine-changelog-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--shine-primary, #10b981);
    box-shadow: 0 0 6px var(--shine-primary, #10b981);
    display: inline-block;
    animation: shinePulseGlow 2s infinite ease-in-out;
}

@keyframes shinePulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* Hide mobile toggle and mobile drawer on desktop */
.shine-subnav-mobile-toggle {
    display: none !important;
}

.shine-subnav-mobile-drawer {
    display: none !important;
}

.shine-subnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left side alignment */
    gap: 4px;
    height: 100%;
}

.shine-subnav-list > li {
    margin: 0;
    padding: 0;
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.shine-subnav-list > li > a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--shine-text, #475569);
    padding: 6px 14px;
    border-radius: 9999px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    cursor: pointer;
}

.shine-subnav-list > li > a:hover,
.shine-subnav-list > li:hover > a,
.shine-subnav-list > li.current-menu-item > a,
.shine-subnav-list > li.current-menu-ancestor > a {
    color: var(--shine-primary, #10B981);
    background: var(--shine-primary-8, rgba(16, 185, 129, 0.08));
}

/* Subtle Dropdown Chevron Indicator for items with children */
.shine-subnav-list > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 4px;
    margin-top: -3px;
    transition: transform 0.2s ease;
}

.shine-subnav-list > li.menu-item-has-children:hover > a::after,
.shine-subnav-list > li.menu-item-has-children.is-open > a::after {
    transform: rotate(-135deg);
    margin-top: 1px;
}

/* Floating Sub-menu Card - HIDDEN BY DEFAULT */
.shine-subnav-list .sub-menu {
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; /* Left-aligned under parent menu item */
    min-width: 210px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
    padding: 8px;
    list-style: none;
    margin: 0;
    z-index: 1000;
}

/* Invisible bridge so mouse never falls into empty gap */
.shine-subnav-list .sub-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -10px;
    right: -10px;
    height: 18px;
    background: transparent;
}

/* Display on hover OR when clicked (.is-open) - stays still */
.shine-subnav-list > li:hover > .sub-menu,
.shine-subnav-list > li.is-open > .sub-menu {
    display: block !important;
    animation: shineSubMenuFade 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.shine-subnav-list > li.is-open > a {
    color: var(--shine-primary, #10B981);
    background: var(--shine-primary-8, rgba(16, 185, 129, 0.08));
}

@keyframes shineSubMenuFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shine-subnav-list .sub-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shine-subnav-list .sub-menu a {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--shine-text, #334155);
    text-decoration: none !important;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.shine-subnav-list .sub-menu a:hover {
    color: var(--shine-primary, #10B981);
    background: var(--shine-primary-8, rgba(16, 185, 129, 0.08));
}

/* ----------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------- */
@media (max-width: 960px) {
    .shine-header-search-wrap {
        max-width: 240px;
        margin: 0 16px;
    }
}

@media (max-width: 768px) {
    .shine-site-header {
        width: auto !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        padding: 10px 0 6px 0 !important;
        box-sizing: border-box;
    }

    .shine-header-container {
        height: 56px;
        padding: 0 8px 0 12px;
    }

    /* 1. Logo: Hide ShineGPL text on mobile - show only logo favicon */
    .shine-brand-text-wrap {
        display: none !important;
    }

    .shine-brand-favicon-img {
        width: 34px;
        height: 34px;
    }

    /* 2. Search Bar: Visible next to logo on mobile */
    .shine-header-search-wrap {
        display: block !important;
        flex: 1;
        min-width: 0;
        margin: 0 8px;
        max-width: none;
    }

    .shine-header-search-form {
        height: 38px;
        padding: 2px 4px 2px 10px;
        border-radius: 9999px;
    }

    .shine-hdr-search-icon {
        margin-right: 4px;
    }

    .shine-hdr-search-icon svg {
        width: 14px;
        height: 14px;
    }

    .shine-hdr-search-input {
        font-size: 13px !important;
        padding: 0 4px !important;
    }

    .shine-hdr-search-btn {
        width: 28px;
        height: 28px;
    }

    .shine-hdr-search-btn svg {
        width: 13px;
        height: 13px;
    }

    /* 3. Hide Premium Plans button on mobile header */
    .shine-header-premium-btn {
        display: none !important;
    }

    /* 4. Right side: Show ONLY the user icon */
    .shine-header-right {
        gap: 0;
        flex-shrink: 0;
    }

    .shine-username-text,
    .shine-user-chevron {
        display: none !important;
    }

    .shine-user-profile-badge {
        padding: 2px !important;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        border-radius: 50% !important;
    }

    .shine-user-avatar-circle {
        width: 34px !important;
        height: 34px !important;
    }

    /* Guest user icon on mobile */
    .shine-header-client-login-btn {
        padding: 2px !important;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        border-radius: 50% !important;
    }

    .shine-header-client-login-btn .shine-client-login-text {
        display: none !important;
    }

    .shine-header-client-login-btn .shine-client-login-icon {
        width: 34px !important;
        height: 34px !important;
    }

    /* 5. Hide hamburger button and drawer */
    .shine-mobile-toggle-btn {
        display: none !important;
    }

    .shine-mobile-nav-drawer {
        display: none !important;
    }

    /* 6. Secondary Pill Bar on mobile: Hamburger on left, 2 buttons on right */
    .shine-subnav-container {
        height: 44px;
        margin-top: 8px;
        padding: 0 10px;
        justify-content: space-between;
        overflow: visible !important;
        position: relative;
        z-index: 998;
    }

    /* Mobile Hamburger Menu Toggle Button on the Left */
    .shine-subnav-mobile-toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        padding: 5px 12px;
        border-radius: 9999px;
        background: var(--shine-primary-8, rgba(16, 185, 129, 0.08));
        color: var(--shine-primary, #10B981);
        border: 1.5px solid var(--shine-primary-20, rgba(16, 185, 129, 0.2));
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
        outline: none;
    }

    .shine-subnav-mobile-toggle:hover,
    .shine-subnav-mobile-toggle.is-active {
        background: var(--shine-primary, #10B981);
        color: #ffffff !important;
        border-color: var(--shine-primary, #10B981);
    }

    .shine-subnav-mobile-toggle svg {
        flex-shrink: 0;
    }

    /* Hide desktop horizontal menu on mobile */
    .shine-subnav-bar {
        display: none !important;
    }

    /* Right Side: Dual Action Buttons side by side on Mobile */
    .shine-subnav-right {
        display: flex !important;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        flex-shrink: 0;
    }

    .shine-subnav-action-btn {
        padding: 5px 10px;
        font-size: 11px;
        gap: 5px;
        border-radius: 9999px;
    }

    .shine-subnav-action-btn svg {
        width: 12px;
        height: 12px;
    }

    /* Mobile Subnav Drawer (Slide down underneath secondary pill bar) */
    .shine-subnav-mobile-drawer {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        border-radius: 18px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(15, 23, 42, 0.05);
        padding: 12px 14px;
        z-index: 10005 !important;
        box-sizing: border-box;
    }

    .shine-subnav-mobile-drawer.is-open {
        display: block !important;
        animation: shineDrawerSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes shineDrawerSlide {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .shine-drawer-heading {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #94a3b8;
        padding-bottom: 8px;
        margin-bottom: 6px;
        border-bottom: 1px solid #f1f5f9;
    }

    .shine-mobile-drawer-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .shine-mobile-drawer-list > li {
        margin: 0;
        padding: 0;
        list-style: none;
        border-radius: 10px;
    }

    .shine-mobile-drawer-list > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 9px 12px;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--shine-text, #334155);
        text-decoration: none !important;
        border-radius: 10px;
        transition: all 0.15s ease;
    }

    .shine-mobile-drawer-list > li > a:hover,
    .shine-mobile-drawer-list > li.is-expanded > a {
        background: var(--shine-primary-8, rgba(16, 185, 129, 0.08));
        color: var(--shine-primary, #10B981);
    }

    .shine-mobile-drawer-list > li.menu-item-has-children > a::after {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
        margin-left: 6px;
    }

    .shine-mobile-drawer-list > li.is-expanded > a::after {
        transform: rotate(-135deg);
    }

    /* Submenu inside mobile drawer */
    .shine-mobile-drawer-list .sub-menu {
        display: none !important;
        list-style: none;
        margin: 0;
        padding: 4px 0 6px 14px;
        border-left: 2px solid var(--shine-primary-15, rgba(16, 185, 129, 0.15));
        margin-left: 12px;
    }

    .shine-mobile-drawer-list > li.is-expanded > .sub-menu {
        display: flex !important;
        flex-direction: column;
        gap: 2px;
    }

    .shine-mobile-drawer-list .sub-menu li {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .shine-mobile-drawer-list .sub-menu a {
        display: block;
        padding: 7px 10px;
        font-size: 12.5px;
        font-weight: 500;
        color: var(--shine-secondary, #64748b);
        text-decoration: none !important;
        border-radius: 8px;
        transition: all 0.15s ease;
    }

    .shine-mobile-drawer-list .sub-menu a:hover {
        color: var(--shine-primary, #10B981);
        background: var(--shine-primary-5, rgba(16, 185, 129, 0.05));
    }
}

/* ==========================================================================
   Shine GPL - Brands Mega Menu Styles
   ========================================================================== */

.shine-subnav-list > li.shine-menu-item-brands {
    position: relative;
}

/* Mega Menu Dropdown Container */
.shine-subnav-list > li.shine-menu-item-brands .sub-menu.shine-brands-mega-menu {
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    left: -140px;
    width: 720px;
    max-width: calc(100vw - 32px);
    background: var(--shine-white, #ffffff);
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.16), 0 4px 16px -2px rgba(15, 23, 42, 0.06);
    padding: 18px 20px 14px 20px;
    box-sizing: border-box;
    z-index: 10005 !important;
    cursor: default;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
}

/* Invisible bridge so mouse never falls into empty gap */
.shine-subnav-list > li.shine-menu-item-brands .sub-menu.shine-brands-mega-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 18px;
    background: transparent;
}

/* Display on hover or is-open */
.shine-subnav-list > li.shine-menu-item-brands:hover > .sub-menu.shine-brands-mega-menu,
.shine-subnav-list > li.shine-menu-item-brands.is-open > .sub-menu.shine-brands-mega-menu {
    display: block !important;
    animation: shineSubMenuFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 1. Mega Menu Header Bar */
.shine-mega-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shine-mega-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shine-mega-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--shine-primary-10, rgba(16, 185, 129, 0.10));
    color: var(--shine-primary, #10B981);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shine-mega-heading {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--shine-black, #0f172a);
    line-height: 1.25;
}

.shine-mega-desc {
    margin: 2px 0 0 0;
    font-size: 11.5px;
    color: var(--shine-secondary, #64748b);
    font-weight: 500;
}

/* Search Filter Box */
.shine-mega-search-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 12px;
    width: 175px;
    transition: all 0.2s ease;
}

.shine-mega-search-wrap:focus-within {
    border-color: var(--shine-primary, #10B981);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--shine-primary-15, rgba(16, 185, 129, 0.15));
    width: 195px;
}

.shine-mega-search-wrap svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.shine-mega-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: var(--shine-black, #0f172a);
    width: 100%;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
}

.shine-mega-search-input::placeholder {
    color: #94a3b8;
}

/* 2. Body List Grid */
.shine-mega-body {
    padding: 12px 0 8px 0;
}

.shine-brands-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 10px;
    max-height: 330px;
    overflow-y: auto;
    overflow-x: hidden !important;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.shine-brands-list-grid::-webkit-scrollbar {
    width: 5px;
}

.shine-brands-list-grid::-webkit-scrollbar-track {
    background: transparent;
}

.shine-brands-list-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.shine-brands-list-grid::-webkit-scrollbar-thumb:hover {
    background: var(--shine-primary, #10B981);
}

/* Brand Link */
.shine-brand-item-link {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    gap: 8px !important;
    padding: 6px 10px !important;
    border-radius: 9px !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}

.shine-brand-item-link.is-hidden {
    display: none !important;
}

.shine-brand-item-link:hover {
    background: var(--shine-primary-8, rgba(16, 185, 129, 0.08)) !important;
    border-color: var(--shine-primary-20, rgba(16, 185, 129, 0.20)) !important;
    transform: translateX(2px) translateZ(0);
}

.shine-brand-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.shine-brand-item-link:hover .shine-brand-avatar {
    background: var(--shine-primary, #10B981);
    color: #ffffff;
}

.shine-brand-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--shine-text, #334155);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    transition: color 0.15s ease;
}

.shine-brand-item-link:hover .shine-brand-text {
    color: var(--shine-primary, #10B981);
}

.shine-brand-badge {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 1px 5px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.shine-brand-item-link:hover .shine-brand-badge {
    color: var(--shine-primary, #10B981);
    background: var(--shine-primary-15, rgba(16, 185, 129, 0.15));
    border-color: var(--shine-primary-30, rgba(16, 185, 129, 0.30));
}

/* Empty notice */
.shine-brands-no-match {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

/* 3. Mega Menu Footer Bar */
.shine-mega-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 11.5px;
    flex-wrap: wrap;
    gap: 10px;
}

.shine-mega-popular {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.shine-mega-popular-label {
    font-weight: 700;
    color: var(--shine-secondary, #64748b);
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.04em;
}

.shine-mega-popular a {
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 2px 7px;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 11px;
    transition: all 0.15s ease;
}

.shine-mega-popular a:hover {
    color: var(--shine-primary, #10B981);
    background: var(--shine-primary-10, rgba(16, 185, 129, 0.10));
    border-color: var(--shine-primary-25, rgba(16, 185, 129, 0.25));
}

.shine-mega-view-all {
    color: var(--shine-secondary, #64748b);
    font-size: 11.5px;
}

.shine-mega-view-all strong {
    color: var(--shine-black, #0f172a);
}

/* Mobile Drawer Brands Submenu Styling */
.shine-mobile-drawer-list > li.shine-mobile-brand-item .shine-mobile-brands-sub {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.shine-mobile-drawer-list .shine-mobile-count {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: auto;
}

@media (max-width: 1100px) {
    .shine-subnav-list > li.shine-menu-item-brands .sub-menu.shine-brands-mega-menu {
        left: -190px;
        width: 620px;
    }
    .shine-brands-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .shine-subnav-list > li.shine-menu-item-brands .sub-menu.shine-brands-mega-menu {
        left: -240px;
        width: 500px;
    }
}
