/* =========================================================
   GUYBET — GLOBAL ENERGY / VISUAL POLISH PASS
   Desktop + Mobile
   IMPORTANT:
   - Visual effects only
   - Does NOT intentionally change layout/grid/spacing
   - Keep existing GuyBet green brand color
========================================================= */

:root {
    --gb-green: #00e817;
    --gb-green-bright: #19ff38;
    --gb-green-soft: rgba(0, 232, 23, 0.14);
    --gb-green-softer: rgba(0, 232, 23, 0.07);
    --gb-green-border: rgba(33, 255, 65, 0.20);

    --gb-bg: #050908;
    --gb-card: rgba(8, 13, 12, 0.94);

    --gb-border-default: rgba(255, 255, 255, 0.08);

    --gb-glow-small:
        0 0 14px rgba(0, 232, 23, 0.08);

    --gb-glow-medium:
        0 0 24px rgba(0, 232, 23, 0.10),
        0 0 50px rgba(0, 232, 23, 0.035);

    --gb-glow-strong:
        0 0 20px rgba(0, 232, 23, 0.16),
        0 0 55px rgba(0, 232, 23, 0.06);

    --gb-transition: 0.25s ease;
}


/* =========================================================
   1. PAGE BACKGROUND ENERGY
========================================================= */

html,
body {
    background-color: var(--gb-bg);
}

body {
    position: relative;
}

/*
Soft ambient background lighting.
No layout impact because fixed + pointer-events none.
*/
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(0, 232, 23, 0.075),
            transparent 26%
        ),
        radial-gradient(
            circle at 92% 32%,
            rgba(0, 232, 23, 0.05),
            transparent 25%
        ),
        radial-gradient(
            circle at 50% 105%,
            rgba(0, 232, 23, 0.035),
            transparent 30%
        );

    opacity: 0.95;
}

/* Keep real content above ambient background */
.site,
.website-wrapper,
.main-page-wrapper,
.page-wrapper,
.wd-content-layout,
#page,
#main {
    position: relative;
    z-index: 1;
}


/* =========================================================
   2. SUBTLE SECTION ENERGY
========================================================= */

.gb-energy-section {
    position: relative;
    isolation: isolate;
}

.gb-energy-section::before {
    content: "";
    position: absolute;
    z-index: -1;

    width: 70%;
    height: 75%;

    left: 15%;
    top: 12%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(0, 232, 23, 0.07),
            transparent 70%
        );

    filter: blur(40px);
    pointer-events: none;
}


/* =========================================================
   3. REUSABLE ENERGY CARD
========================================================= */

.gb-energy-card {
    position: relative;
    background-color: var(--gb-card);

    border-color: var(--gb-border-default);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.025),
        var(--gb-glow-small);

    transition:
        border-color var(--gb-transition),
        box-shadow var(--gb-transition),
        transform var(--gb-transition);
}

.gb-energy-card::after {
    content: "";
    position: absolute;
    inset: -1px;

    border-radius: inherit;
    pointer-events: none;

    border: 1px solid rgba(0, 232, 23, 0);

    transition:
        border-color var(--gb-transition),
        box-shadow var(--gb-transition);
}

.gb-energy-card:hover {
    border-color: var(--gb-green-border);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 0 18px rgba(0, 232, 23, 0.08),
        0 0 35px rgba(0, 232, 23, 0.025);
}

.gb-energy-card:hover::after {
    border-color: rgba(0, 232, 23, 0.16);
}


/* =========================================================
   4. PRIMARY CTA BUTTON ENERGY
========================================================= */

.gb-energy-button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.btn-color-primary,
.wd-add-btn a,
.single_add_to_cart_button {
    position: relative;

    box-shadow:
        0 0 0 rgba(0, 232, 23, 0);

    transition:
        filter var(--gb-transition),
        box-shadow var(--gb-transition),
        transform var(--gb-transition);
}

.gb-energy-button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover,
.btn-color-primary:hover,
.wd-add-btn a:hover,
.single_add_to_cart_button:hover {
    box-shadow:
        0 0 18px rgba(0, 232, 23, 0.22),
        0 0 40px rgba(0, 232, 23, 0.07);

    filter: brightness(1.06);
}

.gb-energy-button:active,
.woocommerce button.button.alt:active,
.single_add_to_cart_button:active {
    transform: translateY(1px);
}


/* =========================================================
   5. PRODUCT PAGE
========================================================= */

.single-product .woocommerce-product-gallery,
.single-product .product-image-summary .product-images,
.single-product .product-image-wrap {
    position: relative;
}

.single-product .woocommerce-product-gallery::before,
.single-product .product-image-summary .product-images::before {
    content: "";
    position: absolute;

    inset: 8%;

    z-index: -1;

    background:
        radial-gradient(
            circle,
            rgba(0, 232, 23, 0.14),
            transparent 66%
        );

    filter: blur(38px);

    pointer-events: none;
}

.single-product .summary,
.single-product .product-summary-inner {
    position: relative;
}

.single-product .product_meta {
    border-color: rgba(0, 232, 23, 0.10);
}

.single-product .woocommerce-tabs,
.single-product .tabs-layout-accordion,
.single-product #reviews,
.single-product .woocommerce-Reviews {
    position: relative;
}


/* =========================================================
   6. SHOP / CATEGORY PRODUCT CARDS
========================================================= */

.products .product-grid-item,
.wd-products .product-grid-item,
.product-grid-item {
    position: relative;

    transition:
        box-shadow var(--gb-transition),
        border-color var(--gb-transition);
}

.products .product-grid-item:hover,
.wd-products .product-grid-item:hover {
    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.28),
        0 0 24px rgba(0, 232, 23, 0.045);
}

.product-grid-item .product-image-link,
.product-grid-item .product-element-top {
    position: relative;
}

.product-grid-item .product-element-top::after {
    content: "";
    position: absolute;

    inset: 8%;

    z-index: -1;

    background:
        radial-gradient(
            ellipse,
            rgba(0, 232, 23, 0.045),
            transparent 68%
        );

    filter: blur(24px);

    pointer-events: none;
}


/* =========================================================
   7. CART & CHECKOUT
========================================================= */

.woocommerce-cart-form,
.cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-checkout-payment,
.checkout-order-review,
.wd-checkout-prod,
.wd-checkout-order-review {
    position: relative;
}

.cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-checkout-payment {
    border-color: rgba(0, 232, 23, 0.10);

    box-shadow:
        0 0 25px rgba(0, 232, 23, 0.025);
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: rgba(0, 232, 23, 0.60) !important;

    box-shadow:
        0 0 0 3px rgba(0, 232, 23, 0.07) !important;

    outline: none;
}


/* =========================================================
   8. INPUTS / SELECTS
========================================================= */

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select,
.select2-container--default .select2-selection--single {
    transition:
        border-color var(--gb-transition),
        box-shadow var(--gb-transition),
        background-color var(--gb-transition);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus,
.select2-container--open .select2-selection--single {
    border-color: rgba(0, 232, 23, 0.42) !important;

    box-shadow:
        0 0 0 3px rgba(0, 232, 23, 0.055);

    outline: none;
}


/* =========================================================
   9. MY ACCOUNT / DASHBOARD
========================================================= */

.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation,
.wd-my-account-sidebar,
.wd-my-account-links,
.account-dashboard,
.my-account-content {
    position: relative;
}

.woocommerce-MyAccount-content {
    isolation: isolate;
}

.woocommerce-MyAccount-content::before {
    content: "";
    position: absolute;

    inset: 5% 2%;

    z-index: -1;

    background:
        radial-gradient(
            circle at 75% 5%,
            rgba(0, 232, 23, 0.045),
            transparent 32%
        );

    pointer-events: none;
}

.woocommerce-MyAccount-navigation li.is-active > a,
.woocommerce-MyAccount-navigation .active > a {
    color: var(--gb-green);

    text-shadow:
        0 0 16px rgba(0, 232, 23, 0.13);
}


/* =========================================================
   10. WALLET / KYC / ORDERS / CUSTOM CARDS
========================================================= */

.wallet-card,
.kyc-card,
.order-card,
.gcoin-card,
.account-card,
.dashboard-card,
.gb-card,
/* --- real GuyBet selectors mapped to the same treatment,
       confirmed live this session --- */
body.woocommerce-account .wal-dashboard-profile-wrapper,
body.woocommerce-account .wps_wpr_points_wrapper_with_exp,
body.woocommerce-account .wd-my-account-links > div,
body.woocommerce-account .woocommerce-orders-table__row,
body.woocommerce-account table.kyc-details,
body.woocommerce-account .woocommerce-Address,
body.woocommerce-account fieldset.wps_wpr_each_section {
    position: relative;

    transition:
        border-color var(--gb-transition),
        box-shadow var(--gb-transition);
}

.wallet-card:hover,
.kyc-card:hover,
.order-card:hover,
.gcoin-card:hover,
.account-card:hover,
.dashboard-card:hover,
.gb-card:hover,
body.woocommerce-account .wal-dashboard-profile-wrapper:hover,
body.woocommerce-account .wps_wpr_points_wrapper_with_exp:hover,
body.woocommerce-account .woocommerce-orders-table__row:hover,
body.woocommerce-account .woocommerce-Address:hover {
    border-color: rgba(0, 232, 23, 0.17);

    box-shadow:
        0 0 22px rgba(0, 232, 23, 0.045);
}

/* dashboard shortcut cards already have their own hover treatment
   from the My Account redesign — layer the energy glow on top,
   don't replace it */
body.woocommerce-account .wd-my-account-links > div:hover {
    box-shadow:
        0 18px 44px rgba(0,0,0,.45),
        0 0 0 1px rgba(63,198,40,.16),
        0 0 22px rgba(0, 232, 23, 0.06);
}


/* =========================================================
   11. HEADER
========================================================= */

.whb-header,
.main-header,
header.site-header {
    position: relative;
}

.whb-header::after,
header.site-header::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0, 232, 23, 0.18),
            transparent
        );

    pointer-events: none;
}


/* =========================================================
   12. GREEN BADGES / LABELS
========================================================= */

.gb-badge,
.product-label,
.onsale,
.wd-label {
    box-shadow:
        0 0 14px rgba(0, 232, 23, 0.055);
}


/* =========================================================
   13. OPTIONAL DECORATIVE PAGE ENERGY
========================================================= */

.gb-page-energy {
    position: absolute;
    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;
}

.gb-page-energy::before,
.gb-page-energy::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.25;
}

.gb-page-energy::before {
    top: -240px;
    left: -180px;

    background:
        rgba(0, 232, 23, 0.18);
}

.gb-page-energy::after {
    right: -230px;
    bottom: 10%;

    background:
        rgba(0, 232, 23, 0.11);
}


/* =========================================================
   14. VERY SUBTLE GREEN DIVIDERS
========================================================= */

.gb-energy-divider {
    height: 1px;

    border: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0, 232, 23, 0.24),
            transparent
        );
}


/* =========================================================
   15. MOBILE — REDUCE EFFECT INTENSITY
========================================================= */

@media (max-width: 767px) {

    body::before {
        background:
            radial-gradient(
                circle at 10% 5%,
                rgba(0, 232, 23, 0.04),
                transparent 27%
            ),
            radial-gradient(
                circle at 100% 45%,
                rgba(0, 232, 23, 0.025),
                transparent 28%
            );
    }


    .gb-energy-section::before {
        opacity: 0.55;

        filter: blur(28px);
    }


    .gb-energy-card,
    .wallet-card,
    .kyc-card,
    .order-card,
    .dashboard-card,
    .account-card,
    body.woocommerce-account .wal-dashboard-profile-wrapper,
    body.woocommerce-account .wps_wpr_points_wrapper_with_exp,
    body.woocommerce-account .woocommerce-orders-table__row,
    body.woocommerce-account .woocommerce-Address {
        box-shadow:
            0 0 12px rgba(0, 232, 23, 0.025);
    }


    .gb-energy-card:hover,
    .wallet-card:hover,
    .kyc-card:hover,
    .order-card:hover,
    .dashboard-card:hover,
    .account-card:hover,
    body.woocommerce-account .wal-dashboard-profile-wrapper:hover,
    body.woocommerce-account .wps_wpr_points_wrapper_with_exp:hover,
    body.woocommerce-account .woocommerce-orders-table__row:hover,
    body.woocommerce-account .woocommerce-Address:hover {
        box-shadow:
            0 0 14px rgba(0, 232, 23, 0.035);
    }


    .single-product .woocommerce-product-gallery::before,
    .single-product .product-image-summary .product-images::before {
        opacity: 0.55;

        filter: blur(25px);
    }


    .woocommerce button.button.alt,
    .woocommerce a.button.alt,
    .single_add_to_cart_button,
    .btn-color-primary {
        box-shadow:
            0 0 10px rgba(0, 232, 23, 0.07);
    }


    .woocommerce button.button.alt:hover,
    .woocommerce a.button.alt:hover,
    .single_add_to_cart_button:hover,
    .btn-color-primary:hover {
        box-shadow:
            0 0 15px rgba(0, 232, 23, 0.11);
    }


    .gb-page-energy {
        opacity: 0.45;
    }
}


/* =========================================================
   16. TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    body::before {
        opacity: 0.72;
    }

    .gb-energy-section::before {
        opacity: 0.72;
    }
}


/* =========================================================
   17. ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .gb-energy-card,
    .gb-energy-button,
    .product-grid-item,
    button,
    a {
        transition-duration: 0.01ms !important;
    }
}
