/* Europa777 sidebar — eu-Sidebar.dc.html. Navy / gold / EU blue only. */

body.c7-redesign {
    --eu-sb-blue: #2C63F0; /* white text stays above 4.5:1; #2F6BFF is 4.49 */
}

body.c7-redesign .c7-sidebar {
    background: var(--a7-bg);
    border-right: 1px solid var(--a7-surface-2);
    color: var(--a7-text);
    overflow: hidden;
}

body.c7-redesign .c7-sidebar:has(.eu-sb__langpop:not([hidden])) {
    overflow: visible;
    z-index: 1300;
}

@media (min-width: 1024px) {
    html.eu-sb-collapsed {
        --c7-sidebar: 76px;
    }

    html.eu-sb-collapsed body.c7-redesign .c7-sidebar,
    html.eu-sb-collapsed body.c7-redesign.c7-sidebar-collapsed .c7-sidebar {
        width: 76px;
        transform: none;
    }

    html.eu-sb-collapsed body.c7-redesign .c7-main-col,
    html.eu-sb-collapsed body.c7-redesign.c7-sidebar-collapsed .c7-main-col {
        margin-left: 76px;
    }

    html.eu-sb-collapsed body.c7-redesign .c7-header__menu,
    html.eu-sb-collapsed body.c7-redesign .c7-header__logo,
    html.eu-sb-collapsed body.c7-redesign.c7-sidebar-collapsed .c7-header__menu,
    html.eu-sb-collapsed body.c7-redesign.c7-sidebar-collapsed .c7-header__logo {
        display: none;
    }

    body.c7-redesign .c7-sidebar,
    body.c7-redesign .c7-main-col {
        transition: width 0.2s ease, margin-left 0.2s ease, transform 0.2s ease;
    }
}

@media (max-width: 1023.98px) {
    body.c7-redesign .c7-sidebar {
        width: min(280px, calc(100vw - 40px));
        transform: translateX(calc(-100% - 48px));
    }

    /* The shell docks the sidebar from 900px. Below 1024 it is the design's drawer. */
    body.c7-redesign .c7-main-col,
    body.c7-redesign.c7-sidebar-collapsed .c7-main-col,
    html.eu-sb-collapsed body.c7-redesign .c7-main-col {
        margin-left: 0;
    }

    body.c7-redesign .c7-header__menu,
    body.c7-redesign .c7-header__logo,
    html.eu-sb-collapsed body.c7-redesign .c7-header__menu,
    html.eu-sb-collapsed body.c7-redesign .c7-header__logo {
        display: inline-flex;
    }

    body.c7-redesign.c7-drawer-open .c7-sidebar,
    body.c7-redesign.c7-sidebar-collapsed.c7-drawer-open .c7-sidebar,
    html.eu-sb-collapsed body.c7-redesign.c7-drawer-open .c7-sidebar {
        transform: none;
        width: min(280px, calc(100vw - 40px));
    }

    body.c7-redesign.c7-drawer-open {
        overflow: hidden;
    }

    body.c7-redesign.c7-drawer-open .c7-sidebar {
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.6);
    }

    body.c7-redesign .c7-backdrop {
        background: rgba(3, 7, 18, 0.72);
        backdrop-filter: blur(3px);
    }

    body.c7-redesign.c7-drawer-open .c7-backdrop {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.c7-redesign .c7-sidebar,
    body.c7-redesign .c7-main-col {
        transition: none;
    }
}

/* Top: logo + panel toggle. Collapsed rail stacks the mark over the toggle. */
body.c7-redesign .eu-sb__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 76px;
    flex: 0 0 76px;
    padding: 0 14px;
    border-bottom: 1px solid var(--a7-surface-2);
}

body.c7-redesign .eu-sb__logo {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
}

body.c7-redesign .eu-sb__logo img {
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

body.c7-redesign .eu-sb__mark {
    display: none;
}

body.c7-redesign .eu-sb__mark picture {
    display: contents;
}

body.c7-redesign .eu-sb__mark img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

body.c7-redesign .eu-sb__toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 8px;
    border: 1px solid var(--a7-surface-2);
    background: var(--a7-navy);
    color: var(--a7-text-2);
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
}

body.c7-redesign .eu-sb__toggle:hover {
    border-color: var(--a7-line);
}

body.c7-redesign .eu-sb__tic {
    width: 18px;
    height: 18px;
    display: grid;
}

body.c7-redesign .eu-sb__tic.is-open,
body.c7-redesign .eu-sb__tic.is-x {
    display: none;
}

@media (min-width: 1024px) {
    body.c7-redesign .eu-sb__toggle {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

@media (max-width: 1023.98px) {
    body.c7-redesign .eu-sb__tic.is-close { display: none; }
    body.c7-redesign .eu-sb__tic.is-x { display: grid; }
}

body.c7-redesign .eu-sb svg {
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
}

body.c7-redesign .eu-sb__scroll {
    gap: 12px;
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Welcome package. Amount uses the visitor symbol; FS stays gold. */
body.c7-redesign .br-sb-welcome {
    gap: 2px;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid rgba(var(--a7-red-rgb), 0.4);
    background:
        linear-gradient(90deg, var(--a7-navy) 0%, rgba(8, 25, 63, 0.92) 60%, rgba(8, 25, 63, 0.6) 100%),
        url("../img/eu/side-hero.webp") 88% 30% / cover no-repeat,
        var(--a7-navy);
    container-type: inline-size;
    text-decoration: none;
    color: var(--a7-text);
}

body.c7-redesign .br-sb-welcome:hover {
    border-color: var(--a7-red);
    color: var(--a7-text);
}

body.c7-redesign .br-sb-welcome__eye {
    color: var(--a7-red-text);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

body.c7-redesign .eu-sb__amt {
    font-size: clamp(15px, 10cqi, 20px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--a7-text);
    white-space: nowrap;
}

body.c7-redesign .br-sb-welcome em {
    font-style: normal;
    color: var(--a7-red-text);
}

body.c7-redesign .br-sb-welcome__cta {
    margin-top: 8px;
    height: 44px;
    border-radius: 8px;
    background: var(--a7-red);
    color: var(--a7-on-accent);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 6px 18px rgba(var(--a7-red-rgb), 0.28);
}

body.c7-redesign .br-sb-welcome:hover .br-sb-welcome__cta {
    color: var(--a7-on-accent);
}

/* Signed-in balance row replaces the welcome card. */
body.c7-redesign .eu-sb__balance {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 8px 10px 8px 12px;
    border-radius: 5px;
    background: var(--a7-navy);
    border: 1px solid var(--a7-surface-2);
}

body.c7-redesign .eu-sb__balcopy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

body.c7-redesign .eu-sb__ballabel {
    font-size: 11px;
    color: var(--a7-muted-2);
    white-space: nowrap;
}

body.c7-redesign .eu-sb__balance strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--a7-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.c7-redesign .eu-sb__deposit {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--eu-sb-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

body.c7-redesign .eu-sb__deposit:hover {
    background: #2456DC;
    color: #fff;
}

body.c7-redesign .eu-sb__mini {
    display: none;
    height: 44px;
    place-items: center;
    border-radius: 5px;
    text-decoration: none;
}

body.c7-redesign .eu-sb__mini .eu-sb__ic {
    width: 20px;
    height: 20px;
    color: currentColor;
}

body.c7-redesign .eu-sb__mini--join {
    background: var(--a7-red);
    color: var(--a7-navy);
}

body.c7-redesign .eu-sb__mini--join:hover {
    background: var(--a7-red-hi);
    color: var(--a7-navy);
}

body.c7-redesign .eu-sb__mini--deposit {
    background: var(--eu-sb-blue);
    color: #fff;
}

body.c7-redesign .eu-sb__mini--deposit:hover {
    background: var(--a7-red-hi);
    color: var(--a7-on-accent);
}

/* Wheel + Daily Map tiles */
body.c7-redesign .br-sb-tiles {
    gap: 6px;
}

body.c7-redesign .br-sb-tile {
    border-radius: 5px;
    border: 1px solid rgba(var(--a7-red-rgb), 0.45);
    background: radial-gradient(circle at 22% 50%, rgba(var(--a7-red-rgb), 0.22), rgba(var(--a7-red-rgb), 0) 55%), var(--a7-navy);
    color: var(--a7-text);
    min-height: 44px;
    /* 10px FREE pill sits in the corner; drop the label clear of it. */
    padding: 18px 8px 2px;
}

body.c7-redesign .br-sb-tile:hover,
body.c7-redesign .br-sb-tile[aria-current="page"] {
    border-color: var(--a7-red);
    color: var(--a7-text);
}

body.c7-redesign .br-sb-tile > span.eu-sb__wlabel {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--a7-red-text);
}

body.c7-redesign .br-sb-tile > em {
    background: var(--eu-sb-blue);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 2px 5px;
}

body.c7-redesign .b7-sbwheel__disc {
    border: 2px solid var(--a7-gold-trim);
    background:
        repeating-conic-gradient(rgba(3, 11, 31, 0.55) 0deg 1.2deg, transparent 1.2deg 30deg),
        conic-gradient(
            #FFCC00 0deg 30deg, #003399 30deg 60deg, #0A2466 60deg 90deg,
            #FFCC00 90deg 120deg, #003399 120deg 150deg, #0A2466 150deg 180deg,
            #FFCC00 180deg 210deg, #003399 210deg 240deg, #0A2466 240deg 270deg,
            #FFCC00 270deg 300deg, #003399 300deg 330deg, #0A2466 330deg 360deg
        );
    box-shadow: 0 0 10px rgba(47, 95, 208, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

body.c7-redesign .b7-sbwheel__disc::after {
    background: radial-gradient(circle at 35% 30%, var(--a7-white), var(--a7-red) 60%, var(--a7-red-deep));
    box-shadow: 0 0 0 1.5px var(--a7-navy);
}

body.c7-redesign .b7-sbwheel__ptr {
    border-top-color: var(--a7-red-2);
}

body.c7-redesign .b7-sbmap__text {
    color: var(--a7-text);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.c7-redesign .b7-sbmap__text em {
    color: var(--a7-red-text);
}

/* Casino / Sports */
body.c7-redesign .eu-side-switch {
    margin: 0;
    gap: 6px;
}

body.c7-redesign .eu-side-switch a {
    height: 44px;
    min-height: 44px;
    gap: 8px;
    border-radius: 6px;
    border: 1px solid var(--a7-surface-2);
    background: var(--a7-navy);
    color: var(--a7-text-2);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

body.c7-redesign .eu-side-switch a[aria-selected="true"] {
    background: linear-gradient(180deg, var(--a7-red-hi), var(--a7-red));
    color: var(--a7-on-accent);
    border-color: var(--a7-red);
}

body.c7-redesign .eu-side-switch a:hover {
    border-color: var(--a7-red);
    color: var(--a7-text);
}

body.c7-redesign .eu-side-switch a[aria-selected="true"]:hover {
    color: var(--a7-on-accent);
}

body.c7-redesign .eu-sb__swic {
    width: 16px;
    height: 16px;
    display: grid;
    flex-shrink: 0;
    color: currentColor;
}

/* Groups and links */
body.c7-redesign .eu-sb__nav {
    gap: 2px;
}

body.c7-redesign .eu-sb__ic {
    width: 22px;
    height: 22px;
    display: grid;
    flex-shrink: 0;
    color: var(--a7-red);
}

body.c7-redesign .eu-acc {
    border-radius: 6px;
    margin: 0;
}

body.c7-redesign .eu-acc > summary {
    list-style: none;
    position: relative;
    height: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--a7-text-2);
}

body.c7-redesign .eu-acc > summary::-webkit-details-marker {
    display: none;
}

body.c7-redesign .eu-acc > summary:hover {
    background: var(--a7-surface-2);
    color: var(--a7-text);
}

body.c7-redesign .eu-acc[open] {
    background: var(--a7-navy);
}

body.c7-redesign .eu-acc[open] > summary {
    background: var(--a7-surface-2);
    color: var(--a7-text);
    font-weight: 800;
}

body.c7-redesign .eu-sb__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.c7-redesign .eu-sb__chev {
    width: 14px;
    height: 14px;
    display: grid;
    flex-shrink: 0;
    color: var(--a7-text-2);
    transition: transform 0.2s ease;
}

body.c7-redesign .eu-acc[open] > summary .eu-sb__chev {
    transform: rotate(180deg);
}

body.c7-redesign .eu-sb__tag {
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

body.c7-redesign .eu-sb__tag--gold {
    background: var(--a7-red);
    color: var(--a7-on-accent);
}

body.c7-redesign .eu-sb__tag--blue {
    background: var(--eu-sb-blue);
    color: #fff;
}

body.c7-redesign .eu-acc__subs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 6px 8px;
}

body.c7-redesign .eu-acc__subs a {
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--a7-text-2);
    background: transparent;
    text-decoration: none;
}

body.c7-redesign .eu-acc__subs a::before {
    content: none;
}

body.c7-redesign .eu-acc__subs a:hover {
    background: var(--a7-surface-2);
    color: var(--a7-text);
}

body.c7-redesign .eu-acc__subs a.is-all {
    font-weight: 800;
    color: var(--a7-text);
    background: var(--a7-surface-2);
}

body.c7-redesign .eu-sb__rule {
    height: 1px;
    margin: 8px 4px;
    background: var(--a7-surface-2);
    flex-shrink: 0;
}

body.c7-redesign .c7-nav a.eu-sb__link {
    height: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--a7-text-2);
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
}

body.c7-redesign .c7-nav a.eu-sb__link::before {
    content: none;
}

body.c7-redesign .c7-nav a.eu-sb__link:hover,
body.c7-redesign .c7-nav a.eu-sb__link[aria-current="page"] {
    background: var(--a7-surface-2);
    color: var(--a7-text);
}

body.c7-redesign .c7-nav a.eu-sb__link[aria-current="page"] {
    font-weight: 800;
}

@media (max-width: 1023.98px) {
    body.c7-redesign .eu-acc__subs a {
        height: 44px;
        min-height: 44px;
    }
}

/* Bottom row: account, support, language. */
body.c7-redesign .eu-sb__foot {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--a7-surface-2);
    background: var(--a7-bg);
}

body.c7-redesign .eu-sb__footbtn,
body.c7-redesign .eu-sb__lang {
    flex: 1 0 44px;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    position: relative;
}

body.c7-redesign .eu-sb__footbtn,
body.c7-redesign .eu-sb__langbtn {
    display: grid;
    place-items: center;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    background: var(--a7-navy);
    border: 1px solid var(--a7-surface-2);
    color: var(--a7-text-2);
    text-decoration: none;
    padding: 0;
    cursor: pointer;
}

body.c7-redesign .eu-sb__footbtn:hover,
body.c7-redesign .eu-sb__langbtn:hover,
body.c7-redesign .eu-sb__langbtn[aria-expanded="true"] {
    border-color: var(--a7-line);
    color: var(--a7-text);
}

body.c7-redesign .eu-sb__fic {
    width: 18px;
    height: 18px;
    display: grid;
}

body.c7-redesign .eu-sb__dot {
    position: absolute;
    top: 8px;
    right: calc(50% - 14px);
    width: 8px;
    height: 8px;
    box-sizing: content-box;
    border-radius: 50%;
    background: var(--a7-red-2);
    border: 2px solid var(--a7-navy);
}

body.c7-redesign .eu-sb__langbtn .flag25,
body.c7-redesign .eu-sb__langpop .flag25 {
    margin: 0;
    flex: none;
}

body.c7-redesign .eu-sb svg.eu-sb__us {
    width: 25px;
    height: 13px;
    max-width: none;
    display: block;
    flex: none;
    border-radius: 2px;
}

body.c7-redesign .eu-sb__langpop {
    list-style: none;
    margin: 0;
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    width: 220px;
    max-height: min(300px, 60vh);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px;
    border-radius: 5px;
    background: var(--a7-navy);
    border: 1px solid var(--a7-line);
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 6;
}

body.c7-redesign .eu-sb__langpop[hidden] {
    display: none !important;
}

body.c7-redesign .eu-sb__langpop li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.c7-redesign .eu-sb__langpop a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 6px;
    background: transparent;
    color: var(--a7-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: left;
}

body.c7-redesign .eu-sb__langpop a:hover,
body.c7-redesign .eu-sb__langpop a[aria-current="true"] {
    background: var(--a7-surface);
    color: var(--a7-text);
}

body.c7-redesign .eu-sb__tick {
    margin-left: auto;
    color: var(--a7-red-text);
    font-weight: 800;
}

/* Collapsed rail: icons only, footer stacks, language list opens beside the rail. */
@media (min-width: 1024px) {
    html.eu-sb-collapsed body.c7-redesign .eu-sb__logo {
        display: none;
    }

    html.eu-sb-collapsed body.c7-redesign .eu-sb__mark {
        display: flex;
    }

    html.eu-sb-collapsed body.c7-redesign .eu-sb__top {
        flex-direction: column;
        justify-content: center;
        height: auto;
        flex-basis: auto;
        min-height: 112px;
        padding: 10px 0;
    }

    html.eu-sb-collapsed body.c7-redesign .eu-sb__tic.is-close {
        display: none;
    }

    html.eu-sb-collapsed body.c7-redesign .eu-sb__tic.is-open {
        display: grid;
    }

    html.eu-sb-collapsed body.c7-redesign .br-sb-welcome,
    html.eu-sb-collapsed body.c7-redesign .eu-sb__balance,
    html.eu-sb-collapsed body.c7-redesign .br-sb-tiles,
    html.eu-sb-collapsed body.c7-redesign .eu-side-switch,
    html.eu-sb-collapsed body.c7-redesign .eu-acc__subs {
        display: none !important;
    }

    html.eu-sb-collapsed body.c7-redesign .eu-sb__mini {
        display: grid;
    }

    html.eu-sb-collapsed body.c7-redesign .eu-sb__label,
    html.eu-sb-collapsed body.c7-redesign .eu-sb__tag,
    html.eu-sb-collapsed body.c7-redesign .eu-sb__chev {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    html.eu-sb-collapsed body.c7-redesign .eu-acc > summary,
    html.eu-sb-collapsed body.c7-redesign .c7-nav a.eu-sb__link {
        justify-content: center;
        padding: 0;
        gap: 0;
    }

    html.eu-sb-collapsed body.c7-redesign .eu-sb__foot {
        flex-direction: column;
        padding-left: 8px;
        padding-right: 8px;
    }

    html.eu-sb-collapsed body.c7-redesign .eu-sb__langpop {
        left: calc(100% + 8px);
        right: auto;
        bottom: 0;
    }
}

/* Phones / tablets: the sidebar is a closed drawer, so its welcome card's photo (54 KB) waits until the drawer
   opens (body.c7-drawer-open, ui.js) instead of downloading with every page. Desktop (1024px+) is unchanged. */
@media (max-width: 1023.98px) {
    body.c7-redesign:not(.c7-drawer-open) .br-sb-welcome {
        background-image: none;
    }
}
