/* Style for modal */
.modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: flex-end;
    z-index: 999999999999999999999999999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms ease, visibility 280ms ease;
    backdrop-filter: blur(2px); /* optional, looks nice with your dark bg */
}

.modal_overlay.is-open {
    display: flex;           /* your layout */
    opacity: 1;
    visibility: visible;
}

.modal_close_button {
    background-color: transparent;
    border: none;
    Padding: 0;
    cursor: pointer;
    font-size: 20px;
    color: var(--accent2);
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal_container {
    background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 40%),
    linear-gradient(
        132deg,
        #0b0b0b 0%,
        #121212 25%,
        #1a1a1a 50%,
        #101010 75%,
        #181818 100%
    );
    border-radius: 20px 20px 0 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    transform: translateY(24px) scale(0.98);
    opacity: 0;
    will-change: transform, opacity;
}

.modal_overlay.is-open .modal_container {
    animation: modalIn 2000ms cubic-bezier(.2,.95,.25,1) forwards;
}

@keyframes modalIn {
    0%   { transform: translateY(24px) scale(0.98); opacity: 0; }
    60%  { transform: translateY(0)    scale(1.00); opacity: 1; }
    100% { transform: translateY(0)    scale(1.00); opacity: 1; }
}

@keyframes modalOut {
    0%   { transform: translateY(0)    scale(1.00); opacity: 1; }
    100% { transform: translateY(16px) scale(0.99); opacity: 0; }
}

.modal_header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.modal_header_title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.modal_body {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    width: 100%;
    gap: 20px;
}

.default_deposit_button{
    text-decoration: underline;
    color: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 550;
    text-align: center;
}

.modal_body_image {
    height: 25vh;
    transform-origin: center center;
    animation: seamlessSway 6s ease-in-out infinite;
}
 
@keyframes seamlessSway {
    0%   { transform: rotate(-2deg); }
    25%  { transform: rotate(2deg); }
    50%  { transform: rotate(-2deg); }
    75%  { transform: rotate(2deg); }
    100% { transform: rotate(-2deg); }
}

.nav_icon_wrapper { position: relative; display: inline-flex; }
/* your badge class name in HTML is wallet_badge, so style that */
.wallet_badge {
    display: none;
    position: absolute;
    top: -4px;
    right: -4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFC107, #FFB300);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.9), 0 0 14px rgba(255, 200, 0, 0.7);
    animation: navBadgePulse 2s infinite ease-in-out;
    line-height: 12px;
    text-align: center;
    font-size: 10px;
    color: #1a1600;              /* optional, for the ★ contrast */
  }
  
  @keyframes navBadgePulse {
    0%   { transform: scale(1);   box-shadow: 0 0 6px rgba(255, 215, 0, .6); }
    50%  { transform: scale(1.05); box-shadow: 0 0 8px rgba(255, 215, 0, 1); }
    100% { transform: scale(1);   box-shadow: 0 0 6px rgba(255, 215, 0, .6); }
  }

.tablo_main_wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tablo_title {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.modal_body_text {
    text-align: center;
    font-weight: 600;
}

.tablo_wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.tablo_card {
    width: 40px;
    height: 56px;
    border: 2px solid #2D2D2D;
    background: linear-gradient(0deg, #1F1F1F 35%, #2D2D2D 50%, #1F1F1F 65%);
    border-radius: 10px;
    font-size: 36px;
    color: white;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.5);
}

.tablo_seperator {
    font-size: 36px;
    font-weight: 700;
    animation: pulseOpacity 2s infinite ease-in-out;
}

@keyframes pulseOpacity {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}


.modal_button {
    height: 50px;
    width: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 40%, #FFB300 70%, #FFD700 100%);
    color: #fffbea;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8), 0 0 24px rgba(255, 200, 0, 0.6);
    animation: goldenPulse 2.5s infinite ease-in-out;
    transition: all 0.3s ease-in-out;
    position: relative;     /* needed for ::after */
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulseShadow {
    0% {
        box-shadow: 0 0 10px 0 var(--accent);
    }
    50% {
        box-shadow: 0 0 15px 1px var(--accent);
    }
    100% {
        box-shadow: 0 0 10px 0 var(--accent);
    }
}

.preconnect_subtitle {
    font-weight: 450;
    font-size: 14px;
    color: var(--light);
    text-align: center;
}

.preconnect_title {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 600;
    text-align: center;
}

/* Ensure the gold "Claim Reward!" button uses the correct gradient */
#welcome_modal_overlay .modal_button {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 40%, #FFB300 70%, #FFD700 100%);
    color: #fffbea;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8), 0 0 24px rgba(255, 200, 0, 0.6);
    animation: goldenPulse 2.5s infinite ease-in-out;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 100%;
    cursor: pointer;
  }