﻿/* html:root has specificity (0-1-0-1), which beats @theme's :root (0-1-0-0).
   This guarantees theme values always win regardless of CSS source order. */
html:root {
    /* Social Media Login */
    --social-login-btn-bg:            #1D1D1D;
    --social-login-btn-text-color:    #e0e0e0;
    --social-login-btn-border-color:  #484848;

    --pwa-download-modal-a-color: #d8f221;
    --pwa-assets-color: brightness(0) saturate(100%) invert(78%) sepia(90%) saturate(440%) hue-rotate(15deg) brightness(111%) contrast(90%);
    /* ── COLOR GUIDE PALETTE ────────────────────────────────────────────────── */

    /* Secondary (dark grays — darkest to lightest) */
    --secondary-color-1: #E1E5FF; /* Title Footer, grey text */
    --secondary-color-2: #C5B7DC; /* Grey text */
    --secondary-color-3: #9BA3D6; /* Footer Text, Category icons */
    --secondary-color-4: #999EBC; /* Footer Description, placeholder text */
    --secondary-color-5: #3E1C55; /* Dash stroke */
    --secondary-color-6: #250D3F; /* Form Stroke, Desktop scrolling text, default tab */
    --secondary-color-7: #180723; /* Navigation Menu, BG Pop up */
    --secondary-color-8: #130020; /* Header, BG Game Category, BG Payment Method, BG game list */
    --secondary-color-9: #0E0019; /* Footer, Form */
    --secondary-color-10: #0C0114; /* Background Page */
    --secondary-color-11: #140520; /* Background Payment Method */
    --secondary-color-12: #40027E; /* Desktop BG Scrolling Text */
    --secondary-color-13: #180723; /* Navigation Menu */
    --secondary-color-14: #000000; /* Pop-up BG */
    --secondary-color-15: #ffffff; /* Title game, Title pop up */
    --secondary-color-16: #310059; /* White text */
    --secondary-color-17: #AFB2C8; /* Footer description */
    --secondary-color-18: #D4B8EB; /* Footer menu text */
    --secondary-color-19: #73778C; /* Placeholder text */
    --secondary-color-20: #B9B3DD; /* Navigation Menu text */
    --secondary-color-22: #450287; /* Active mobile category tab gradient start - CHM --main-menu-outer-cntr-link-active-bg. TODO: confirm with UI/UX (not in Color Guide yet) */
    --secondary-color-23: #25013B; /* Active mobile category tab gradient end (same value as primary-6) - TODO: confirm with UI/UX */

    /* Primary (gold scale — lightest to darkest) */
    --primary-color-1: #E4FF23; /* Header Icon, Gold Text 1 */
    --primary-color-2: #E0C55E; /* Icon game active */
    --primary-color-3: #BAD01D; /* Active tab, Gold Text 2 */
    --primary-color-4: #D8F221; /* BG Game Popular */
    --primary-color-5: #310059; /* Text on primary button */
    --primary-color-6: #25013B; /* Header */
    --primary-color-7: #460289; /* Header Stroke */
    --primary-color-8: #12021C; /* Header 2 Desktop */
    --primary-color-9: #520291; /* BG Provider Menu Hover */
    --primary-color-10: #5D4D1C; /* BG Provider Asset */
    --primary-color-11: #4F4011; /* BG Provider Asset */
    --primary-color-12: #AD01C9; /* Stroke Provider Asset */
    --primary-color-13: #E4FF23; /* */
    --primary-color-14: #BBCC42; /* */
    --primary-color-15: #FFFFFF; /* */

    /* System (feedback) */
    --system-color-1: #f97c7c; /* Error */
    --system-color-2: #a6ff94; /* Success */
    --system-color-3: #ffd167; /* Validation / Warning */
    --system-color-4: #EE0000; /* Required */
    --system-color-5: #00FF00; /* Status */
    --bank-list-online-bg: #00FF00;
    --bank-list-offline-bg: #5a2096;


    /* components/login/forgotPasswordModalContent.tsx (shared desktop modal) - verified against
       CHM NormadAlpha Theme/desktop-dark-purple.css: --form-control-bg/-border/-color (input+select),
       --reg-forgot-simple-modal-input-text-pass-bg/-border/-color (country-code box + dialing
       code text), --std-inline-form-group-label-color, --a-color (default link, not primary-1). */
    --forgot-password-input-bg: #12021e;
    --forgot-password-input-border: #320050;
    --forgot-password-input-text: #ccc;
    --forgot-password-dropdown-bg: #080808;
    --forgot-password-dropdown-border: #393939;
    --forgot-password-dialing-code-text: #fff;
    --forgot-password-label: #838383;
    /* mobile forgot-password submit button - own vars so the topbar register button
       (--login-panel-register-btn-bg) keeps its purple gradient */
    --forgot-password-submit-bg: linear-gradient(to bottom, #e4ff23 0%, #8ea103 100%);
    --forgot-password-submit-hover-bg: linear-gradient(to bottom, #8ea103 0%, #e4ff23 100%);

    /* mobile home Register/Login buttons (LoginAndRegisterSection) - separate from the
       topbar --login-panel-* buttons */
    --home-register-btn-bg: linear-gradient(to bottom, #e4ff23 0%, #8ea103 100%);
    --home-register-btn-hover-bg: linear-gradient(to bottom, #8ea103 0%, #e4ff23 100%);
    --home-login-btn-bg: linear-gradient(to bottom, #3f0279 0%, #26013f 100%);
    --home-login-btn-hover-bg: linear-gradient(to bottom, #26013f 0%, #3f0279 100%);
    --home-login-btn-color: #ffffff;

    /* desktop topbar Login/Register (Header .login-panel) - own vars so the other
       .register-button CTAs falling back to --login-panel-* stay untouched */
    --topbar-login-btn-bg: linear-gradient(to bottom, #3f0279 0%, #26013f 100%);
    --topbar-login-btn-hover-bg: linear-gradient(to bottom, #26013f 0%, #3f0279 100%);
    --topbar-login-btn-color: #ffffff;
    --topbar-register-btn-bg: linear-gradient(to bottom, #e4ff23 0%, #8ea103 100%);
    --topbar-register-btn-hover-bg: linear-gradient(to bottom, #8ea103 0%, #e4ff23 100%);
    --topbar-register-btn-color: var(--primary-color-5);

    /* login modal submit button (desktop + mobile) */
    --login-submit-bg: linear-gradient(to bottom, #e4ff23 0%, #8ea103 100%);
    --login-submit-hover-bg: linear-gradient(to bottom, #8ea103 0%, #e4ff23 100%);

    /* register pre-modal "Create New Account" button (desktop + mobile) */
    --register-premodal-bg: linear-gradient(to bottom, #e4ff23 0%, #8ea103 100%);
    --register-premodal-hover-bg: linear-gradient(to bottom, #8ea103 0%, #e4ff23 100%);

    /* register form JOIN button (desktop + mobile) */
    --register-join-bg: linear-gradient(to bottom, #e4ff23 0%, #8ea103 100%);
    --register-join-hover-bg: linear-gradient(to bottom, #8ea103 0%, #e4ff23 100%);
    --modal-body-link-color: #d8f221;

    /* Button Colors */
    --btn-color-primary-from: var(--primary-color-1);   /* primary button gradient start */
    --btn-color-primary-to: var(--primary-color-3);     /* primary button gradient end */
    --btn-color-secondary-from: #3F0279; /* secondary button gradient start */
    --btn-color-secondary-to: #26013F;   /* secondary button gradient end */
    --btn-stroke-gray: #5F3C76;        /* button border/stroke */
    --btn-stroke-gold: #D8F221;          /* button border/stroke */
    --btn-close-gray: #CACACA;

    /* ── REQUIRED: define in every theme ─────────────────────────────────── */

    /* Brand */
    --color-primary: var(--primary-color-4);
    --color-primary-hover: var(--primary-color-3);
    --color-primary-foreground: var(--primary-color-5);

    /* Surfaces */
    --color-background: var(--secondary-color-10);
    --color-surface: var(--secondary-color-8);
    --color-surface-raised: var(--secondary-color-7);
    --color-modal-header: #171717;
    --color-modal-content: #101010;

    /* Text */
    --color-foreground: #f1f5f9;
    --color-muted-foreground: var(--secondary-color-3);
    --color-foreground-inverse: var(--secondary-color-10);

    /* Borders */
    --color-border: var(--secondary-color-6);
    --color-border-strong: var(--secondary-color-5);

    /* Feedback */
    --color-success: var(--system-color-2);
    --color-warning: var(--system-color-3);
    --color-error: var(--system-color-1);
    --color-info: #60a5fa;

    /* Typography */
    --text-heading-size: 22px;
    --text-heading-line-height: 1.5;
    --text-heading-weight: 700;

    --text-body-size: 16px;
    --text-body-line-height: 1.5;
    --text-body-weight: 400;

    --text-caption-size: 12px;
    --text-caption-line-height: 1.4;
    --text-caption-weight: 400;

    /* Layout */
    --container-max-width: 1140px;
    --container-padding-x: 0.75rem;

    /* ── NORMAD-ALPHA SPECIFIC: only used in normad-alpha components ─────────── */
    --register-page-reminder-color: #858585;

    /* Login Panel (topbar login/register buttons) - exact values from CHM's
       Theme/desktop-dark-purple.css */
    --login-panel-login-btn-bg: linear-gradient(to bottom, #6a6a6a 0%, #484848 100%);
    --login-panel-login-btn-color: #fff;
    --login-panel-login-btn-border: transparent;
    --login-panel-login-btn-hover-bg: linear-gradient(to bottom, #484848 0%, #6a6a6a 100%);
    --login-panel-login-btn-hover-color: #fff;
    --login-panel-register-btn-bg: linear-gradient(to bottom, #3f0279 0%, #270140 100%);
    --login-panel-register-btn-color: #fff;
    --login-panel-register-btn-border: transparent;
    --login-panel-register-btn-hover-bg: linear-gradient(to bottom, #270140 0%, #3f0279 100%);
    --login-panel-register-btn-hover-color: #fff;
    --login-panel-register-btn-hover-ts: none;
    /* CHM .standard-button-group .btn-primary (desktop-standard.css) - the login modal's submit
       button, distinct from the topbar register-button gradient above. */
    --login-submit-btn-bg: linear-gradient(to bottom, #e4ff23 0%, #9db20a 100%);
    --login-submit-btn-color: #310059;
    --login-submit-btn-hover-bg: linear-gradient(to bottom, #9db20a 0%, #e4ff23 100%);
    --login-submit-btn-hover-color: #fff;

    /* Header */
    --site-header-bg: var(--primary-color-6);
    --site-header-borderbtm: 4px solid var(--primary-color-7);

    /* Sidebar */
    --color-sidebar: var(--secondary-color-8);
    --color-sidebar-foreground: #f1f5f9;
    --color-sidebar-active: var(--primary-color-4);

    /* Header buttons */
    --btn-login-from: var(--btn-color-secondary-from);
    --btn-login-to: var(--btn-color-secondary-to);
    --btn-login-from-hover: var(--btn-color-secondary-to);
    --btn-login-to-hover: var(--btn-color-secondary-from);

    --btn-register-from: var(--btn-color-primary-from);
    --btn-register-to: var(--btn-color-primary-to);
    --btn-register-from-hover: var(--btn-color-primary-to);
    --btn-register-to-hover: var(--btn-color-primary-from);
    --btn-register-color: var(--primary-color-5);
    --btn-register-border: transparent;
    --download-apk-content-bg: #151515;
    --download-apk-details-title-color: #fff;
    --download-apk-details-desc-color: #DBDBDB;
    --download-apk-details-btn-color: #fff;
    --download-apk-details-btn-bg: linear-gradient(to bottom, #f3dd7f 0%, #b88416 100%);
    --download-apk-details-btn-back-color: #fff;
    --download-apk-details-btn-back-bg: #444;
    --download-apk-details-btn-back-bs: none;
    --download-apk-btn-color: #fefefe;
    --download-apk-btn-bg: linear-gradient(to bottom, #e4ff24 0%, #8ea00e 100%);
    --pwa-platform-view-bg: #25013b;
    --pwa-platform-view-bg-image: radial-gradient(120% 80% at 50% 0%, #25013b 0%, #0f0f0f 100%);
    --pwa-phone-header-bg: #25013b;
    --pwa-phone-header-color: #fff;
    --pwa-title-color: var(--tx);
    --pwa-muted-text-color: var(--tx-soft);
    --pwa-tagline-color: var(--gold-bright);
    --pwa-badge-color: var(--tx-mut);
    --pwa-lite-button-bg: linear-gradient(135deg, #e4ff23, #9db20a);
    --pwa-lite-button-shadow: 0 14px 30px -10px #e4ff23, inset 0 1px 0 rgba(255, 255, 255, 0.25);

    /* Announcement Banner */
    --announcement-cntr-bg: var(--secondary-color-6);
    --announcement-cntr-color: var(--primary-color-1);
    --announcement-cntr-section-announcement-bg: #2c0354;
    --announcement-cntr-section-announcement-color: #fff;
    --announcement-cntr-list-li-color: #fff;

    /* Progressive Jackpot */
    --home-progressive-jackpot-bg: linear-gradient(#0D0119, var(--secondary-color-12), #0D0119);
    --home-progressive-jackpot-color: #fff;
    --home-progressive-jackpot-outer-cntr-bg: #000000;
    --home-progressive-jackpot-inner-cntr-bg: linear-gradient(#28014F, #220043);
    --home-progressive-jackpot-border-cntr-bg: #00000099;
    --home-progressive-jackpot-border-cntr-border: 2px solid #5C07B1;
    --home-progressive-jackpot-jackpot-cntr-font-size: 40px;
    --home-progressive-jackpot-jackpot-cntr-letter-spacing: 5px;
    --home-progressive-jackpot-jackpot-cntr-font-family: "Open24DisplaySt", sans-serif;
    --home-progressive-jackpot-jackpot-cntr-bg: linear-gradient(#9D3BFF, #220043);
    --home-progressive-jackpot-jackpot-inner-cntr-bg: #000000;
    --home-progressive-jackpot-jackpot-border-cntr-border: 2px dotted #7D00FA;
    --home-progressive-jackpot-jackpot-currency-color: #9D3BFF;
    --home-progressive-jackpot-jackpot-play-text-color: #fd6f16;
    --home-progressive-jackpot-jackpot-play-text-label-color: #009fc5;
    --home-progressive-jackpot-border-color: #7D00FA;
    --home-progressive-jackpot-currency-color: #9D3BFF;

    /* Lottery Jackpot */
    --lottery-result-cntr-bg: var(--secondary-color-8);
    --lottery-result-cntr-color: var(--secondary-color-4);
    --lottery-result-cntr-title-bg: var(--secondary-color-6);
    --lottery-result-cntr-title-color: #FFFFFF;
    --lottery-result-cntr-numbers-bg: var(--secondary-color-10);

    /* Sport Match Item */
    --sport-match-item-bg: linear-gradient(to bottom, var(--primary-color-1) 0%, var(--primary-color-4) 100%);
    --sport-match-item-color: var(--secondary-color-16); /* #310059 on the yellow date/time box */
    --sport-match-item-even-bg: var(--secondary-color-7);
    --sport-match-item-even-color: #d6ccb4;
    --sport-match-item-info-cntr-bg: var(--secondary-color-8);
    --sport-match-item-even-info-cntr-bg: var(--secondary-color-9);
    --sport-match-item-even-info-cntr-color: #fff;
    --sport-match-item-info-color: var(--primary-color-1);
    --sport-match-item-teams-span-color: var(--primary-color-3);

    /* Hot Match */
    --hot-match-cntr-color: #d6ccb4;
    --hot-match-cntr-data-match-info-date-color: var(--primary-color-1);

    /* Popular Slots Games */
    --popular-game-title-cntr-title-span-color: #fff;
    --popular-game-title-cntr-title-span-bg: var(--primary-color-4);
    --popular-game-title-cntr-title-span-after-bg: var(--primary-color-4);
    --popular-game-title-cntr-content-border: 1px solid var(--primary-color-4);
    --popular-game-title-cntr-content-game-list-game-item-game-name-color: var(--primary-color-1);
    --popular-game-title-cntr-content-game-list-game-item-provider-name-color: #fff;
    --popular-game-title-cntr-content-game-list-scrollbar-thumb-bg: var(--secondary-color-4);
    --popular-games-bg-image: url("/assets/images/popular-games-background.jpg");
    --popular-games-bg: var(--secondary-color-10);
    --popular-games-left-section-title-bg: var(--secondary-color-8);
    --popular-games-left-section-title-color: #FFF;
    --popular-games-title-color: var(--secondary-color-16); /* #310059 on the primary-4 title tab */
    --popular-games-scrtabs-tab-cntr-bg: linear-gradient(to bottom, var(--secondary-color-7) 0%, var(--secondary-color-4) 46%, var(--secondary-color-7) 100%);
    --popular-games-nav-tabs-li-a-bg: var(--secondary-color-9);
    --popular-games-nav-tabs-li-a-active-bg: var(--secondary-color-7);
    --popular-games-scroll-arrow-bg: transparent;
    --popular-games-scroll-arrow-color: var(--primary-color-2);
    --popular-games-tab-pane-bg: var(--secondary-color-10);
    --popular-games-tab-content-border: 1px solid var(--secondary-color-7);
    --popular-games-list-game-item-hover-link-cntr-bg: rgba(0, 0, 0, 0.7);

    /* Promotion */
    --promotion-accent: var(--primary-color-4);
    --promotion-accent-hover: var(--primary-color-3);
    --promotion-accent-foreground: var(--primary-color-5);
    /* mobile promotion card "Get Promo" button */
    --promotion-get-promo-bg: linear-gradient(to bottom, #e4ff23 0%, #8ea103 100%);
    --promotion-get-promo-hover-bg: linear-gradient(to bottom, #8ea103 0%, #e4ff23 100%);
    --promotion-tab-inactive-bg: var(--secondary-color-8);
    --promotion-tab-inactive-fg: rgba(255, 255, 255, 0.7);
    --promotion-sidebar-bg: var(--secondary-color-9);
    --promotion-card-bg: var(--secondary-color-8);
    --promotion-btn-secondary-bg: var(--secondary-color-7);
    --promotion-btn-secondary-hover-bg: var(--secondary-color-6);
    --promotion-layout-bg: #000000cc;
    --promotion-cntr-bg: rgba(0, 0, 0, 0.8);

    /* Info Center */
    --info-center-title-bg: var(--primary-color-3);
    --info-center-title-color: var(--secondary-color-16);
    --std-side-menu-bg: var(--secondary-color-8);
    --std-password-field-i-color: #939393;
    --info-center-content-bg: var(--secondary-color-10);
    --info-center-content-color: #fff;
    --info-center-content-h4-color: #fff;
    --a-color: var(--primary-color-1);
    --a-focus-hover-color: var(--primary-color-4);
    --std-side-menu-group-label-menu-a-color: #fff;
    --std-side-menu-group-label-menu-a-bg: var(--secondary-color-9);
    --info-center-content-title-bg: var(--secondary-color-7);
    --info-center-content-title-color: #fff;

    /* Jackpot Winners */
    --jackpot-winners-bg: linear-gradient(to bottom, var(--secondary-color-10) 0%, var(--secondary-color-7) 46%, var(--secondary-color-10) 100%);
    --jackpot-winners-jackpot-winner-title-color: #fff;
    --jackpot-winners-winners-ticker-cntr-bg: var(--secondary-color-10);
    --winners-ticker-ul-li-winner-info-color: #fff;
    --winners-ticker-ul-li-winner-amount-color: var(--primary-color-3);

    /* Play Now & Free Play Buttons */
    --play-now-free-play-border: none;
    --play-now-bg: linear-gradient(to bottom, var(--btn-color-primary-from) 0%, var(--btn-color-primary-to) 88%);
    --play-now-color: #330460;
    --play-now-bs: none;
    --play-now-hover-bg: linear-gradient(to bottom, var(--btn-color-primary-to) 0%, var(--btn-color-primary-from) 88%);
    --play-now-hover-color: #e4ff23;
    /* "No game list" provider page description text - independent from --play-now-color */
    --game-provider-desc-color: #858585;
    --free-play-bg: linear-gradient(to bottom, var(--btn-color-secondary-from) 0%, var(--btn-color-secondary-to) 100%);
    --free-play-color: #fff;
    --free-play-bs: none;
    --free-play-hover-bg: linear-gradient(to bottom, var(--btn-color-secondary-to) 0%, var(--btn-color-secondary-from) 100%);
    --free-play-hover-color: #fff;

    /* Floating Action Button */
    --floating-action-button-item-bg: linear-gradient(0deg, #26013F 0%, #3F0279 100%);
    --floating-action-button-item-border: #7E34C5;
    --floating-action-button-item-bs: 0 4px 24px 0 #3f027980;

    /* Search Game Modal */
    --search-icon: var(primary-color-1);

    /* Gradients */
    --nxa-card-gradient: linear-gradient(180deg, rgb(from #45056C r g b / 0) 0%, rgb(from #45056C r g b / 0.337) 50.36%, #45056C 99.75%);

    /* Banner Carousel Indicators */
    --banner-bg: #070707;
    --carousel-dots-li-border: 1px solid #fff;
    --carousel-dots-active-bg: #e4ff23;
    --carousel-dots-active-border: #e4ff23;

    /* Register Section Header (CHM .standard-form-title) */
    --register-section-header-bg: #320050;
    --register-section-header-color: #FFFFFF;
    --register-form-container-bg: #0c0114;
    --modal-content-bg: #0c0c0c;

    /* Search Icon (CHM Cdn.Images.Root filter on black-fill search.svg) */
    --search-icon-filter: invert(82%) sepia(81%) saturate(463%) hue-rotate(11deg) brightness(103%) contrast(103%);

    /* Header game-list dropdown (CHM .top-menu .game-list) */
    --top-menu-game-list-btop: 4px solid #151515;
    --top-menu-game-list-bg: rgba(0, 0, 0, 0.90);
    --top-menu-game-list-bbot: 10px solid #242424;
    --top-menu-game-list-li-a-background-bg: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #520291 99.99%);
    --top-menu-game-list-li-a-background-border: 1px solid #AD01C9;

    /* Contact Us mobile (CHM NormadAlpha/ContactUs/mobile-content.css) */
    --box-shadow: rgba(128, 128, 128, 0.2);
    --live-chat-icon-filter: brightness(0) saturate(100%) invert(86%) sepia(99%) saturate(490%) hue-rotate(9deg) brightness(102%) contrast(90%);
    --live-chat-cntr-bg: #1e1e1e80;
    --live-chat-cntr-color: #fff;
    --live-chat-cntr-h6-color: #A8A8A8;
    --live-chat-link-bg: linear-gradient(to bottom,#3f0279 0%,#26013f 100%);
    --live-chat-link-color: #fff;
    --contact-us-list-bg: #1e1e1e80;
    --contact-us-list-icon-filter: invert(1) opacity(0.7);
    --contact-us-list-h3-color: #FFFFFF;
    --contact-us-list-link-border: #2f2f2f;
    --contact-us-list-info-h6-color: #B6B6B6;
    --contact-us-list-info-icon-filter: invert(1);

    /* Contact Us desktop (CHM NormadAlpha desktop-standard.css, desktop-side-menu.css,
       ContactUs/desktop-content.css; std-side-menu-* renamed contact-us-side-menu-* where the CHM name is already used by the Info page) */
    --std-form-cntr-bg: #0c0114;
    --std-form-title-bg: #320050;
    --std-form-title-color: #FFFFFF;
    --std-form-content-bg: #12021e;
    --std-form-content-color: #f5f5f5;
    --form-control-border: #320050;
    --form-control-bg: #12021e;
    --form-control-color: #ccc;
    --std-btn-group-btn-primary-bg: linear-gradient(to bottom, #e4ff23 0%,#9db20a 100%);
    --std-btn-group-btn-primary-color: #310059;
    --std-btn-group-btn-primary-hover-bg: linear-gradient(to bottom, #9db20a 0%,#e4ff23 100%);
    --std-btn-group-btn-primary-hover-color: #fff;
    --contact-us-list-li-h6-color: #787878;
    --contact-us-list-li-a-color: #e4ff23;
    --contact-us-side-menu-bg: #1b002b;
    --contact-us-side-menu-a-bg: #130020;
    --contact-us-side-menu-a-color: #e1e5ff;
    --contact-us-side-menu-a-border: none;
    --std-side-menu-a-active-hover-bg: #0e0019;
    --std-side-menu-a-active-hover-color: #e4ff23;
}
