body {
    font-family: Arial, sans-serif;
    background: url("https://i.postimg.cc/0yZsTQcy/matteblack.png") no-repeat top center fixed;
    background-size: cover;
    animation: fade-in 1s ease-in;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* BLACK HEADER */
.black-header {
    width: 100%;
    height: 100px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    overflow: visible;
}

.header-content {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    position: relative;
    z-index: 150;
}

/* WALLET BUTTON — PURE IMAGE */
#walletContainer {
    display: flex;
    align-items: center;
}

.wallet-button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.wallet-button:hover {
    transform: scale(1.10);
}

.wallet-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* CENTERED RCADYA LOGO */
.center-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 58px;
}

.center-logo img {
    height: 58px;
    width: auto;
    cursor: pointer;
}

/* MAIN CONTENT - Flex grow to push footer down */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px 40px;
}

/* GAMES BUTTON - Space from header kept perfect */
.header {
    width: 100%;
    text-align: center;
    margin-top: 50px;
    padding: 0;
}

.centered-buttons {
    display: inline-block;
    margin-left: -40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.small-button {
    width: 190px;
    height: 48px;
    border-radius: 24px;
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 14px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 12px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: initial;
    display: flex;
    align-items: center;
    justify-content: center;
}

#walletRequiredButton {
    font-size: 12px !important;
    position: relative;
    z-index: 6;
}

.small-button:hover {
    background-color: #fff;
    color: #000;
}

#walletRequiredButton {
    border: 2px solid #000 !important;
    background-color: transparent !important;
    color: #fff !important;
    cursor: default !important;
    pointer-events: none !important;
    opacity: 0.9;
}

#walletRequiredButton:hover,
#walletRequiredButton:active,
#walletRequiredButton:focus {
    background-color: transparent !important;
    color: #fff !important;
    border: 2px solid #000 !important;
    opacity: 0.9 !important;
    box-shadow: none !important;
    transform: none !important;
}

.game-button {
    width: 340px !important;
    height: 340px !important;
    border-radius: 68px !important;
    background: url('https://i.postimg.cc/5JZvzhKv/Rock-Paper-Scissors.png') center/contain no-repeat !important;
    background-color: transparent !important;
    border: 6px solid #000000 !important;
    color: transparent !important;
    font-size: 0 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 5;
    margin: 0 auto;
}

.game-button:hover {
    transform: none !important;
    box-shadow:
        0 0 30px 10px rgba(255, 255, 255, 0.25),
        0 0 50px 20px rgba(255, 255, 255, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.08) !important;
    border-color: #FFFFFF !important;
    opacity: 1 !important;
    filter: none !important;
}

.game-button.clicked {
    animation: buttonScale 0.6s ease;
}

/* CONTACT SECTION - ORBITRON FOR BOTH */
.contact-section {
    margin-top: 120px;
    text-align: center;
}

.contact-us-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: white;
    letter-spacing: 6px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.contact-email {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 26px;
    color: white;
    letter-spacing: 2px;
}

.contact-email a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-email a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.rcadya-link {
    margin-right: -30px;
    margin-left: 7px;
}

button {
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 28px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    margin: 5px;
    border: 4px solid #00FFFF;
}

.header button {
    border: 2px solid rgb(180, 102, 255);
    background-color: transparent;
    font-size: 24px;
    padding: 10px 20px;
    transition: background-color 0.2s, opacity 0.3s;
}

button:hover {
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0.8;
    border-color: #00FFFF;
}

@keyframes buttonScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes genieEffect {
    0% {
        transform: scale(0.5) translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

#profileSection {
    display: flex !important;
    align-items: center;
    margin-right: 0;
    margin-top: 0;
    position: relative;
    visibility: visible !important;
    z-index: 200;
}

@keyframes slide-down {
    0% {
        opacity: 0;
        transform: translateY(-28%);
    }
    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    width: 251px;
    right: 0;
    top: 100%;
    margin-top: 0px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 9999;
    border-radius: 20px;
    padding: 17px 0;
    text-align: center;
    animation: slide-down 0.3s ease-in;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 55px;
    font-size: 18px;
}

.dropdown-content a:hover {
    background-color: white;
    color: black;
}

#profileName {
    font-size: 23px;
    padding: 10px 20px;
    border-radius: 28px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

#profileName:hover {
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0.7;
}

/* ── PROFILE PICTURE WRAPPER — replaces ::before, badge anchors to this ── */
#profilePicWrapper {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    margin-right: 25px;
}

#profilePicImg {
    width: 45px;
    height: 45px;
    border: 2px solid white;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* ── NOTIFICATION BADGE ON PROFILE PICTURE (Facebook Messenger style) ── */
#profileNotifBadge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    z-index: 9999;
    pointer-events: none;
    padding: 0 4px;
    box-sizing: border-box;
    line-height: 1;
}

/* ── NOTIFICATION BADGE NEXT TO FRIENDS LINK (no border) ── */
#friendsNotifBadge {
    background: #e74c3c !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    min-width: 21px !important;
    height: 21px !important;
    display: none; /* hidden by default, JS sets inline-flex when count > 0 */
    align-items: center !important;
    justify-content: center !important;
    padding: 0 3px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    vertical-align: middle;
    margin-top: 3px;
    margin-left: 5px;
    border: none !important;
    box-shadow: none !important;
}

/* Friends link: flex container so badge margin-top works */
#dropdownConnected a[href="friends.html"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

#dropdownConnected a[href="friends.html"] #friendsNotifBadge {
    margin-left: 10px !important;
    margin-top: 0px !important;
}

.follow-us {
    position: absolute;
    left: 10px;
    top: 72%;
    font-size: 24px;
    font-weight: bold;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.instagram-link, .discord-link, .twitter-link, .reddit-link {
    position: absolute;
    top: 77%;
    transition: all 0.3s ease;
}

.instagram-link img, .reddit-link img {
    width: 60px;
    height: 60px;
}

.instagram-link {
    left: 30px;
}

.reddit-link {
    left: 285px;
    top: 77%;
}

.discord-link img {
    width: 61px;
    height: 61px;
}

.discord-link {
    left: 115px;
}

.twitter-link img {
    width: 65px;
    height: 65px;
}

.twitter-link {
    left: 200px;
}

.instagram-link:hover img, .discord-link:hover img, .twitter-link:hover img, .reddit-link:hover img {
    opacity: 0.7;
    transform: scale(1.10);
}

/* BLACK FOOTER - At the bottom after scrolling */
.black-footer {
    width: 100%;
    height: 100px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
}

.footer-content {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
}

.footer-left a,
.footer-right a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 0 15px;
    transition: opacity 0.3s ease;
}

.footer-left a:hover,
.footer-right a:hover {
    opacity: 0.7;
}

.separator {
    color: white;
    font-size: 16px;
    padding: 0 15px;
}

#year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    white-space: nowrap;
}

/* Mobile Styles: Tablets and Phones */
@media screen and (max-width: 800px) {
    body {
        min-height: 120vh;
        overflow-x: hidden;
        background-position: 48.7% top;
        width: 100%;
        max-width: 100vw;
    }

    * {
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* Exception: profile elements must not be constrained by wildcard rule above */
    #profilePicWrapper,
    #profilePicImg,
    #profileNotifBadge {
        max-width: none;
    }

    .black-header {
        height: 90px;
    }

    .header-content {
        padding: 0 20px 0 20px;
        padding-right: 12px;
        align-items: center;
    }

    .center-logo {
        height: 48px;
    }

    .center-logo img {
        height: 48px;
    }

    /* MOBILE: Wallet icon */
    .wallet-img {
        width: 40px !important;
        height: 40px !important;
    }

    /* MOBILE: Profile Section — position unchanged */
    #profileSection {
        margin-right: 27px;
        margin-top: 0;
        flex-shrink: 0;
        margin-left: 0;
    }

    #profileName {
        font-size: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        overflow: visible;
    }

    /* MOBILE: Profile picture size */
    #profilePicWrapper {
        margin-right: 0;
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    #profilePicImg {
        width: 38px !important;
        height: 38px !important;
    }

    /* MOBILE: Badge scales up slightly */
    #profileNotifBadge {
        top: -5px;
        right: -5px;
        min-width: 21px;
        height: 21px;
        font-size: 11px;
        padding: 0 3px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* MOBILE: Friends badge */
    #friendsNotifBadge {
        min-width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
        padding: 0 3px !important;
        border: none !important;
        box-shadow: none !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #dropdownConnected a[href="friends.html"] #friendsNotifBadge {
        margin-top: 0px !important;
    }

    /* MOBILE: Dropdown stays attached to header naturally */
    .dropdown {
        position: relative;
    }

    .dropdown-content {
        position: absolute !important;
        right: -39px !important; /* more to the right side */
        left: auto !important;
        top: calc(100% + 26px) !important; /* space from top */
        width: 210px;
        padding: 12px 0;
        margin-top: 0;
        background-color: rgba(0, 0, 0, 0.45) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.55);
    }

    .dropdown-content a {
        font-size: 17px;
        padding: 11px 16px;
    }

    /* MOBILE: Center "PLAY" & "ADD FUNDS FIRST" buttons */
    .centered-buttons {
        margin-left: 0 !important;
        align-items: center;
    }

    .small-button {
        width: 180px;
        font-size: 13px;
        padding: 0 10px;
    }

    #walletRequiredButton {
        font-size: 11px !important;
    }

    .game-button {
        width: 280px !important;
        height: 280px !important;
        border-radius: 56px !important;
        margin: 0 auto !important;
    }

    /* MOBILE: Bigger space below biggest button */
    .contact-section {
        margin-top: 100px !important;
    }

    /* MOBILE: "CONTACT US" + email EVEN SMALLER */
    .contact-us-text {
        font-size: 26px !important;
        letter-spacing: 4px;
    }

    .contact-email {
        font-size: 18px !important;
        letter-spacing: 1px;
    }

    /* MOBILE: Align "FOLLOW US" & Social Icons */
    .follow-us {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin: 15px auto 11px auto !important;
        font-size: 26px !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        font-family: 'Orbitron', sans-serif !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 4px !important;
    }

    /* Social Icons: Centered on mobile version */
    .instagram-link, .discord-link, .twitter-link, .reddit-link {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        display: inline-block !important;
        margin: 15px 12px !important;
        z-index: 1 !important;
    }

    .instagram-link img {
        width: 60px !important;
        height: 60px !important;
        vertical-align: middle !important;
    }

    .reddit-link img {
        width: 60px !important;
        height: 60px !important;
        vertical-align: middle !important;
    }

    .discord-link img {
        width: 61px !important;
        height: 61px !important;
        vertical-align: middle !important;
    }

    .twitter-link img {
        width: 65px !important;
        height: 65px !important;
        vertical-align: middle !important;
    }

    /* FIXED MOBILE FOOTER: COPYRIGHT BELOW LINKS */
    .black-footer {
        height: auto;
        min-height: 100px;
        padding: 15px 20px;
        margin-top: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        align-items: center;
    }

    .footer-left,
    .footer-right {
        order: 1;
        font-size: 13px;
        white-space: nowrap;
    }

    .footer-left a,
    .footer-right a {
        font-size: 13px;
        padding: 0 6px;
    }

    .separator {
        display: inline;
        padding: 0 6px;
        font-size: 13px;
    }

    #year {
        order: 2;
        position: static;
        transform: none;
        font-size: 13px;
        margin-top: 6px;
    }

    /* How It Works on its own line above TandC */
    .footer-left {
        margin-bottom: 6px;
    }
}

/* Wide Screens: For large 16:9 Desktop Monitors (1920px+ width) */
@media screen and (min-width: 1920px) {
    .header-content {
        padding: 0 13px;
    }

    .footer-content {
        padding: 0 13px;
    }

    .header-content,
    .footer-content {
        max-width: 1800px;
    }
}

/* Desktop-specific adjustments */
@media screen and (min-width: 801px) {
    .contact-section {
        position: absolute;
        top: 72%;
        right: 40px;
        margin-top: 0;
        text-align: right;
    }

    .contact-email {
        margin-right: 3px;
    }

    .contact-us-text {
        font-size: 32px;
    }

    .main-content {
        padding: 40px 20px 459px;
    }

    .centered-buttons {
        margin-left: 0 !important;
        margin-top: -40px;
    }

    #gamesButton {
        margin-left: -40px !important;
    }

    .follow-us {
        left: 35px;
    }

    .instagram-link img,
    .reddit-link img {
        width: 55px;
        height: 55px;
    }

    .discord-link img {
        width: 56px;
        height: 56px;
    }

    .twitter-link img {
        width: 60px;
        height: 60px;
    }

    .instagram-link {
        left: 47px;
    }

    .discord-link {
        left: 130px;
    }

    .twitter-link {
        left: 213px;
        top: calc(77% - 3px);
    }

    .reddit-link {
        left: 296px;
    }
}

/* Block selection where it doesn't make sense */
.black-header,
.header-content,
.center-logo,
.center-logo img,
.wallet-button,
.wallet-img,
.game-button,
.contact-us-text,
.black-footer,
.footer-content,
.footer-left,
.footer-right,
#year,
#profileSection,
#profileName,
.dropdown-content,
button,
.rcadya-link,
.follow-us,
.instagram-link,
.discord-link,
.twitter-link,
.reddit-link,
.wallet-modal,
.wallet-card,
.wallet-card-header,
.wallet-title,
.wallet-close,
.wallet-metrics,
.wallet-metric,
.wallet-actions,
.wallet-action,
.wallet-section-title,
.wallet-history,
.wallet-history-item,
.wallet-deposit,
.wallet-deposit-box,
.wallet-deposit-note,
.wallet-address-row,
.wallet-address,
.wallet-copy,
.wallet-gotit {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Explicitly ALLOW selection on the email */
.contact-email,
.contact-email a,
.contact-email a:link,
.contact-email a:visited,
.contact-email a:hover {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    cursor: text !important;
}

/* PLAY BUTTON STYLE - blue with white border */
#playButton {
    background-color: #0066ff !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    transition: all 0.4s ease !important;
}

#playButton:hover {
    background-color: #0066ff !important;
    transform: scale(1.08) !important;
    box-shadow: none !important;
}

/* =========================
   Wallet Modal (RCADYA)
   ========================= */

.wallet-modal.hidden { display: none; }
.wallet-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.wallet-card {
  width: min(520px, 94vw);
  background: radial-gradient(120% 120% at 50% 0%, #262a33 0%, #12141a 70%, #0b0c10 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.6);
  overflow: hidden;
  color: #fff;
}

.wallet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 10px 18px;
}

.wallet-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 22px;
}

.wallet-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.wallet-close {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  color: rgba(255,255,255,0.75);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.wallet-close:hover {
  color: #fff;
  background: transparent !important;
  text-shadow: 0 0 8px rgba(255,255,255,0.75);
}

@media screen and (max-width: 800px) {
  .wallet-close {
    font-size: 32px !important;
    padding: 10px !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

.wallet-metrics {
  padding: 6px 18px 0 18px;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.wallet-card.hide-metrics .wallet-metrics {
  display: none;
}

.wallet-card.hide-metrics .wallet-section-title,
.wallet-card.hide-metrics .wallet-history {
  display: none;
}

.wallet-metric {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.wallet-metric:first-child { border-top: 0; }

.wallet-metric .label {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  margin-bottom: 6px;
}

.wallet-metric .value {
  font-size: 34px;
  font-weight: 900;
}

.wallet-metric .unit {
  font-size: 18px;
  opacity: 0.85;
}

.wallet-actions {
  padding: 14px 28px 10px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  box-sizing: border-box;
}

@media screen and (max-width: 800px) {
  .wallet-actions {
    padding: 14px 32px 10px 20px;
  }
}

.wallet-action {
  width: 100%;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  box-sizing: border-box;
  text-align: center;
}

.wallet-action.primary {
  border: 2px solid #00B359 !important;
  background: rgba(0, 179, 89, 0.08) !important;
  color: #ffffff !important;
}

.wallet-action.primary:hover {
  background: #00B359 !important;
  border-color: #00B359 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(0, 179, 89, 0.5) !important;
}

.wallet-action.secondary {
  border-color: #dc143c;
}

.wallet-action.secondary:hover {
  background: rgba(220,20,60,0.92) !important;
  border-color: #dc143c !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(220,20,60,0.5);
}

.wallet-action:hover:not(.primary):not(.secondary) {
  background: rgba(255,255,255,0.12);
}

.wallet-section-title {
  padding: 10px 18px 0 18px;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  cursor: pointer;
}

#transactionHistoryLink:hover {
    text-decoration: underline !important;
    opacity: 0.85;
}

.wallet-history {
  padding: 10px 18px 16px 18px;
  max-height: 180px;
  overflow: auto;
}

.wallet-history-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}

.wallet-history-item:last-child { border-bottom: 0; }

.wallet-history-empty {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  padding: 8px 0;
}

.wallet-deposit.hidden { display: none; }
.wallet-deposit { padding: 0 18px 18px 18px; }

.wallet-deposit-box {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
}

@media screen and (min-width: 801px) {
  #walletCashoutPanel .wallet-deposit-box {
    grid-template-columns: 1fr;
  }

  .cashout-btn {
    width: 140px;
  }
}

@media screen and (max-width: 800px) {
  #walletCashoutPanel .wallet-deposit-box {
    padding: 14px 10px;
  }

  #walletCashoutPanel input[type="text"],
  #walletCashoutPanel input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px; /* prevents iOS auto-zoom on focus */
  }

  .cashout-btn {
    width: 120px;
    font-size: 14px;
  }

  .wallet-deposit-box {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }
}

.wallet-deposit-note {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  margin-bottom: 10px;
}

.wallet-address-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wallet-address {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  word-break: break-all;
  overflow-wrap: break-word;
  line-height: 1.4;
}

@media screen and (max-width: 800px) {
  .wallet-address {
    width: 100%;
    font-size: 12px;
  }

  .wallet-deposit-right {
    width: 100%;
  }

  .wallet-address-row {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .wallet-copy {
    width: 100%;
  }
}

.wallet-copy {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.wallet-copy:hover {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
}

@media (hover: hover) and (pointer: fine) {
  .wallet-copy:hover {
    background: rgba(255,255,255,0.08);
  }
}

@media screen and (max-width: 800px) {
  .wallet-copy {
    -webkit-tap-highlight-color: transparent;
  }

  .wallet-copy:hover,
  .wallet-copy:focus,
  .wallet-copy:active,
  .wallet-copy:focus-visible {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
  }
}

.wallet-gotit {
  margin-top: 14px;
  width: 100%;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(90deg, rgba(90,190,255,0.45), rgba(255,210,80,0.45));
  color: #fff;
}

/* Prevent scrolling when WALLET modal is open */
body.wallet-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Blur Background when WALLET is open */
body.wallet-open .black-header,
body.wallet-open .main-content,
body.wallet-open .follow-us,
body.wallet-open .black-footer,
body.wallet-open .instagram-link,
body.wallet-open .discord-link,
body.wallet-open .twitter-link,
body.wallet-open .reddit-link {
  filter: blur(5px);
  transition: filter 0.25s ease;
}

/* Drop the dropdown below the wallet modal and blur it when wallet is open */
body.wallet-open .dropdown-content {
  z-index: 100 !important;           /* Below wallet modal z-index of 9999 */
  filter: blur(5px);
  transition: filter 0.25s ease;
}

/* Also blur the Profile Picture button so nothing in the header escapes */
body.wallet-open #profileSection {
  filter: blur(5px);
  transition: filter 0.25s ease;
}
