/* ==========================================================================
   Theme-E Welcome Modal & Extra First Deposit Bonus Popup Chain
   Matches Photo 2 (theme-e.anotechsolutions.shop) 100% Pixel-Perfect
   ========================================================================== */

/* Overlay Container (Shared for both Popups) */
.welcome-popup-overlay,
.deposit-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(3, 10, 30, 0.88) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.welcome-popup-overlay.active,
.deposit-popup-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ==========================================================================
   POPUP 1: Welcome Announcement Modal
   ========================================================================== */

.welcome-popup-card {
    width: 100% !important;
    max-width: 350px !important;
    background: linear-gradient(180deg, #09287a 0%, #041852 100%) !important;
    border: 1.5px solid #e0ad38 !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(37, 99, 235, 0.35) !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
}

.welcome-popup-overlay.active .welcome-popup-card,
.deposit-popup-overlay.active .deposit-popup-card {
    transform: scale(1) !important;
}

/* Tabs Bar Container */
.welcome-popup-tabs {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(4, 15, 52, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 22px !important;
    padding: 3px !important;
    margin-bottom: 10px !important;
    gap: 3px !important;
}

.welcome-popup-tab {
    flex: 1 !important;
    text-align: center !important;
    padding: 7px 4px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    border-radius: 18px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    user-select: none !important;
}

.welcome-popup-tab.active {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4) !important;
}

/* Main Tab Body Content */
.welcome-popup-body {
    background: linear-gradient(180deg, #071d5b 0%, #03113d 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.35) !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    max-height: 65vh !important;
    overflow-y: auto !important;
}

.welcome-popup-body::-webkit-scrollbar,
.deposit-popup-body::-webkit-scrollbar {
    width: 4px;
}

.welcome-popup-body::-webkit-scrollbar-thumb,
.deposit-popup-body::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

/* Header Banner inside Body */
.welcome-header-banner {
    text-align: center !important;
    background: linear-gradient(180deg, #0c2b75 0%, #071948 100%) !important;
    border: 1.5px solid #e2b047 !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
    margin-bottom: 12px !important;
    position: relative !important;
    box-shadow: inset 0 0 10px rgba(226, 176, 71, 0.25) !important;
}

.welcome-header-title {
    font-size: 14.5px !important;
    font-weight: 900 !important;
    color: #ffe89e !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.welcome-header-title::before,
.welcome-header-title::after {
    content: "★";
    color: #f59e0b;
    font-size: 12px;
}

/* Feature List Items */
.welcome-feature-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.welcome-feature-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    background: rgba(13, 35, 92, 0.55) !important;
    border-left: 2.5px solid #f59e0b !important;
    border-radius: 6px !important;
    padding: 6px 8px !important;
}

.welcome-feature-star {
    color: #f59e0b !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    flex-shrink: 0 !important;
}

.welcome-feature-content {
    display: flex !important;
    flex-direction: column !important;
}

.welcome-feature-title {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
}

.welcome-feature-desc {
    font-size: 10px !important;
    color: #94a3b8 !important;
    line-height: 1.2 !important;
    margin-top: 1px !important;
}

.welcome-graphics-container {
    background: linear-gradient(180deg, rgba(20, 50, 125, 0.5) 0%, rgba(5, 16, 48, 0.9) 100%) !important;
    border-radius: 12px !important;
    padding: 10px 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    border: 1px dashed rgba(226, 176, 71, 0.35) !important;
    margin-top: 8px !important;
}

.welcome-graphic-badge {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
}

.welcome-graphic-icon {
    width: 40px !important;
    height: 40px !important;
    background: radial-gradient(circle, #f59e0b 0%, #b45309 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    font-size: 20px !important;
}

.welcome-graphic-label {
    font-size: 9.5px !important;
    font-weight: 600 !important;
    color: #ffd700 !important;
}

/* ==========================================================================
   POPUP 2 STYLES: Extra First Deposit Bonus (100% Matches Photo 2 Target)
   ========================================================================== */

.deposit-popup-card {
    width: 100% !important;
    max-width: 360px !important;
    background: linear-gradient(180deg, #093cb4 0%, #041f6e 60%, #03144c 100%) !important;
    border: 2px solid #e0ad38 !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(9, 60, 180, 0.5) !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
}

.deposit-popup-header {
    text-align: center !important;
    padding: 4px 0 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    margin-bottom: 10px !important;
}

.deposit-popup-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 3px !important;
    letter-spacing: 0.3px !important;
}

.deposit-popup-subtitle {
    font-size: 11px !important;
    color: #b0c4de !important;
}

.deposit-popup-body {
    max-height: 56vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding-right: 2px !important;
}

/* Tier Item Box */
.deposit-tier-card {
    background: #061e5c !important;
    border: 1.5px solid #1c52d4 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
}

.deposit-tier-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 2px !important;
}

.deposit-tier-name {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.deposit-tier-name span.gold-amount {
    color: #ffd700 !important;
    font-weight: 800 !important;
}

.deposit-tier-bonus {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #ffd700 !important;
}

.deposit-tier-subtext {
    font-size: 10px !important;
    color: #9cb3d9 !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
}

.deposit-tier-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

/* Capsule Progress Bar */
.deposit-progress-bar-bg {
    flex: 1 !important;
    height: 20px !important;
    background: #122863 !important;
    border-radius: 10px !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid #1a45ac !important;
}

.deposit-progress-bar-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%) !important;
    width: 0% !important;
    border-radius: 10px !important;
}

.deposit-progress-text {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

/* Gold Deposit Button */
.deposit-action-btn {
    padding: 6px 20px !important;
    background: linear-gradient(180deg, #ffdc43 0%, #ff9500 100%) !important;
    color: #0d1b3e !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    border: 1px solid #ffe670 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4) !important;
    white-space: nowrap !important;
}

.deposit-action-btn:active {
    transform: scale(0.96) !important;
}

/* Card Footer Row inside Modal */
.deposit-card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 10px !important;
    padding-top: 6px !important;
}

.deposit-no-reminder-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 11px !important;
    color: #d0e1fd !important;
    cursor: pointer !important;
    user-select: none !important;
}

.deposit-no-reminder-radio {
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #ffd700 !important;
    border-radius: 50% !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.deposit-no-reminder-radio.checked::after {
    content: '' !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: 6px !important;
    height: 6px !important;
    background: #ffd700 !important;
    border-radius: 50% !important;
}

.deposit-activity-btn {
    padding: 7px 22px !important;
    background: linear-gradient(180deg, #ffdc43 0%, #ff9500 100%) !important;
    color: #0d1b3e !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    border: 1px solid #ffe670 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4) !important;
}

.deposit-activity-btn:active {
    transform: scale(0.96) !important;
}

/* Shared Footer Controls below Card */
.welcome-popup-footer,
.deposit-popup-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-top: 12px !important;
    gap: 10px !important;
}

.welcome-close-btn,
.deposit-close-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #071f5c !important;
    border: 2px solid #2864f0 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

.welcome-close-btn:hover,
.deposit-close-btn:hover {
    background: rgba(239, 68, 68, 0.9) !important;
    border-color: #ef4444 !important;
    transform: scale(1.08) !important;
}

.welcome-close-btn svg,
.deposit-close-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
    fill: none !important;
}
