/* ── Variáveis ────────────────────────────────────────────────────────────── */
:root {
    --green:  #00A136;
    --green2: #008A2E;
    --dark:   #111111;
    --white:  #FFFFFF;
    --gold:   #F0A800;
    --red:    #E53935;
}

/* ── Acessibilidade ─────────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Elementos do jogo que não queremos exibir ──────────────────────────── */
.sound-popup      { display: none !important; }
.loader-div       { display: none !important; }
.online-user      { display: none !important; }
.history-icon     { display: none !important; }
.autoplay-icon    { display: none !important; }
.win-popup-text1  { display: none !important; }
.win-popup-text2  { display: none !important; }

/* ── Canvas do jogo: começa invisível até o PIXI inicializar ────────────── */
.game-div,
.horizontal-view {
    opacity: 0;
    pointer-events: none;
    transition: opacity .08s ease;
}
.game-div { overflow: hidden; }

/* Logo do FootballX */
.footballX-logo {
    width:  300px !important;
    height: 200px !important;
    top:     48px !important;
    background-size:     contain  !important;
    background-position: center   !important;
}

/* Fundo verde (cor do campo) enquanto carrega */
html { background: #00a136; min-height: 100%; }
body { background-size: cover !important; background-position: center top !important; min-height: 100%; }

/* Fonte customizada do jogo */
@font-face {
    font-family: IntroRegular;
    src: url('assets/fonts/Intro-Regular.otf') format('opentype');
}

/* Resets para todos os elementos do HUD */
#ig-wrap *, #ig-wrap ::after, #ig-wrap ::before {
    box-sizing: border-box;
    margin: 0; padding: 0;
    font-family: Inter, system-ui, sans-serif;
}

/* ── Animações ──────────────────────────────────────────────────────────── */
@keyframes ig-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
@keyframes ig-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes ig-slide {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes pixPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

/* ── Barra superior ─────────────────────────────────────────────────────── */
#ig-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9000;
    display: none;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 14px;
    background: #0b5c26;
}
#ig-saldo-badge {
    display: flex;
    align-items: center;
    background: #00a135;
    border: none;
    border-radius: 7px;
    padding: 0 14px;
    height: 36px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    flex-shrink: 0;
    white-space: nowrap;
}
#ig-bar-balance {
    font-size: 13px;
    font-weight: 900;
    color: #fff;
}
.ig-spacer {
    flex: 1;
    min-width: 0;
}
#ig-bar-dep {
    background: #d7b100;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 0 20px;
    height: 36px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: filter .15s, transform .1s;
}
#ig-bar-dep:active {
    filter: brightness(.88);
    transform: scale(.95);
}

/* ── Botões laterais ────────────────────────────────────────────────────── */
#ig-side-btns {
    position: fixed;
    top: 60px; left: 10px;
    z-index: 8900;
    display: none;
    flex-direction: column;
    gap: 8px;
}
.ig-side-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(11, 92, 38, .5);
    border: 1.5px solid rgba(0, 161, 54, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, transform .1s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.ig-side-btn:active {
    background: rgba(0, 161, 54, .15);
    transform: scale(.92);
}

/* ── Fundo dos modais ───────────────────────────────────────────────────── */
.ig-modal-bg {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .6);
    display: none;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.ig-modal-bg.open {
    display: flex;
    animation: ig-fade .18s;
}

/* Mensagem de erro nos formulários */
.ig-error {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
    min-height: 18px;
}

/* ── Componentes compartilhados pelos modais ────────────────────────────── */
.profile-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 20px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.profile-modal-header h2 {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #fff !important;
}
.profile-modal-close {
    width: 30px; height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    border: none;
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-modal-close:active { background: rgba(255, 255, 255, .2); }

.limits-grid {
    display: flex;
    gap: 0;
}
.limit-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.limit-item:first-child {
    border-right: 1px solid rgba(255, 255, 255, .1);
    padding-right: 14px !important;
    margin-right: 14px !important;
}
.limit-label { font-size: 11px !important; color: rgba(255, 255, 255, .4) !important; }
.limit-value { font-size: 16px !important; font-weight: 800 !important; color: #fff !important; }

.dep-field-label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4) !important;
    margin-bottom: 8px !important;
}
.input-help {
    font-size: 11px !important;
    color: rgba(255, 255, 255, .3) !important;
    margin-top: 6px !important;
}
.form-actions {
    display: flex !important;
    gap: 10px !important;
    margin-top: 4px !important;
}
.cancel-btn {
    flex: 1;
    height: 48px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    border: 1.5px solid rgba(255, 255, 255, .13);
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    font-weight: 700;
    font-family: Inter, sans-serif;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.cancel-btn:active {
    background: rgba(255, 255, 255, .15);
    transform: scale(.97);
}
.submit-btn {
    flex: 1.6;
    height: 48px;
    border-radius: 9px;
    background: #d7b100;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    font-family: Inter, sans-serif;
    cursor: pointer;
    transition: filter .15s, transform .1s;
}
.submit-btn:active  { filter: brightness(.88); transform: scale(.97); }
.submit-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── Modal: Depósito ────────────────────────────────────────────────────── */
#ig-dep-modal { align-items: center; }

#ig-dep-modal .profile-modal.deposit-modal {
    background: #0d1f10;
    border-radius: 16px;
    width: calc(100% - 32px);
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1.5px solid rgba(0, 161, 54, .35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .85);
    position: relative;
    animation: ig-up .2s ease-out;
    font-family: Inter, sans-serif;
}
#ig-dep-modal .deposit-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 16px !important;
}
#ig-dep-modal .deposit-limits {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    padding: 14px !important;
}
#ig-dep-modal .deposit-limits h4,
#ig-dep-modal .recommended-amounts h4 {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4) !important;
    margin-bottom: 10px !important;
}
#ig-dep-modal .amounts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.amount-card {
    height: 40px;
    padding: 0 6px !important;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    font-weight: 700;
    font-family: Inter, sans-serif;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    text-align: center;
}
.amount-card.active {
    border-color: #00a135;
    color: #00a135;
    background: rgba(0, 161, 53, .14);
}
.amount-card:active { transform: scale(.94); }

#ig-dep-modal .deposit-form input[type=number] {
    width: 100%;
    height: 48px;
    padding: 0 14px !important;
    border-radius: 9px;
    border: 1.5px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 15px;
    font-family: Inter, sans-serif;
    outline: 0;
    transition: border-color .15s;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
#ig-dep-modal .deposit-form input[type=number]::-webkit-inner-spin-button,
#ig-dep-modal .deposit-form input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
#ig-dep-modal .deposit-form input[type=number]::placeholder { color: rgba(255, 255, 255, .3); }
#ig-dep-modal .deposit-form input[type=number]:focus { border-color: #00a135; }

/* Painel PIX */
#ig-dep-pix-panel {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 4px 0 !important;
    width: 100% !important;
}
#ig-dep-qr-wrap {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 220px !important;
    min-height: 220px !important;
}

.playbtn, .hold-btn {
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

.game-icon-bt, .menu-div-sub {
    display: none !important;
}
#ig-dep-qr img {
    display: block !important;
    max-width: 200px;
    max-height: 200px;
}
.pix-waiting-badge {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: rgba(0, 161, 53, .15) !important;
    border: 1px solid rgba(0, 161, 53, .35) !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #4dff88 !important;
}
.pix-waiting-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4dff88;
    flex-shrink: 0;
    animation: pixPulse 1.2s ease-in-out infinite;
}
.pix-code-block {
    width: 100% !important;
    background: rgba(0, 0, 0, .4) !important;
    border: 1.5px solid rgba(0, 161, 53, .35) !important;
    border-radius: 12px !important;
    padding: 12px 14px 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.pix-copypaste-label {
    font-size: 9px !important;
    font-weight: 800 !important;
    color: rgba(0, 161, 53, .8) !important;
    text-transform: uppercase !important;
    letter-spacing: .1em !important;
}
.pix-code-preview {
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    word-break: break-all !important;
    line-height: 1.4 !important;
}
.pix-code-area { display: none !important; }
.pix-close-btn { width: 100% !important; flex: unset !important; transition: background .2s !important; }

/* ── Modal: Perfil ──────────────────────────────────────────────────────── */
#ig-profile-modal { align-items: center; }

#ig-profile-modal .profile-modal {
    background: #0d1f10;
    border-radius: 16px;
    width: calc(100% - 32px);
    max-width: 420px;
    overflow: hidden;
    border: 1.5px solid rgba(0, 161, 54, .35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .85);
    position: relative;
    animation: ig-up .2s ease-out;
    font-family: Inter, sans-serif;
}
#ig-profile-modal .profile-user-info {
    padding: 18px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
#ig-profile-modal .profile-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}
#ig-profile-modal .profile-detail-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
#ig-profile-modal .detail-label {
    font-size: 13px !important;
    color: rgba(255, 255, 255, .4) !important;
}
#ig-profile-modal .detail-value {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
}
#ig-profile-modal .balance-value {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #d7b100 !important;
}
#ig-profile-modal .profile-menu { padding: 14px 16px !important; }
#ig-profile-modal .profile-menu-item {
    width: 100%;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-radius: 10px;
    background: rgba(244, 67, 54, .07);
    border: 1px solid rgba(244, 67, 54, .2);
    cursor: pointer;
    transition: background .15s;
    text-align: left;
}
#ig-profile-modal .profile-menu-item:active { background: rgba(244, 67, 54, .15); }
#ig-profile-modal .menu-item-icon  { color: #f44336; display: flex; align-items: center; flex-shrink: 0; }
#ig-profile-modal .menu-item-label { flex: 1 !important; font-size: 14px !important; font-weight: 700 !important; color: #f44336 !important; }
#ig-profile-modal .menu-item-arrow { color: rgba(244, 67, 54, .5); display: flex; align-items: center; }

/* ── Modal: Saque ───────────────────────────────────────────────────────── */
#ig-saque-modal { align-items: center; }

#ig-saque-modal .profile-modal.withdrawal-modal {
    background: #0d1f10;
    border-radius: 16px;
    width: calc(100% - 32px);
    max-width: 420px;
    max-height: 90vh;
    overflow: hidden;
    border: 1.5px solid rgba(0, 161, 54, .35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .85);
    position: relative;
    animation: ig-up .2s ease-out;
    font-family: Inter, sans-serif;
}
#ig-saque-modal .withdrawal-balance-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
#ig-saque-modal .withdrawal-bal-label {
    display: block !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, .4) !important;
    margin-bottom: 4px !important;
}
#ig-saque-modal .withdrawal-bal-value {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #00a135 !important;
}
#ig-saque-modal .withdrawal-content {
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}
#ig-saque-modal .withdrawal-limits {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    padding: 14px !important;
}
#ig-saque-modal .withdrawal-limits h4 {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4) !important;
    margin-bottom: 12px !important;
}
#ig-saque-modal .withdrawal-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}
#ig-saque-modal .form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}
#ig-saque-modal .withdrawal-form input {
    width: 100%;
    height: 48px;
    padding: 0 14px !important;
    border-radius: 9px;
    border: 1.5px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 15px;
    font-family: Inter, sans-serif;
    outline: 0;
    transition: border-color .15s;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
#ig-saque-modal .withdrawal-form input::-webkit-inner-spin-button,
#ig-saque-modal .withdrawal-form input::-webkit-outer-spin-button { -webkit-appearance: none; }
#ig-saque-modal .withdrawal-form input::placeholder { color: rgba(255, 255, 255, .3); }
#ig-saque-modal .withdrawal-form input:focus { border-color: #00a135; }

/* ── Toast (notificação temporária) ─────────────────────────────────────── */
.ig-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, .1);
    border-left: 3px solid var(--green);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    z-index: 999999;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: ig-up .22s ease-out;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
