img, video, canvas, svg { max-width: 100%; }
pre { overflow-x: auto; }


@media (max-width: 640px) {
    p, li, td, th, h1, h2, h3, h4 { overflow-wrap: break-word; }
}



@media (max-width: 1024px) {
    [style*="display:grid"] > *,
    [style*="display: grid"] > * { min-width: 0; }

    [style*="display:flex"] > [style*="flex:1"],
    [style*="display:flex"] > [style*="flex: 1"] { min-width: 0; }
}





@media (max-width: 767.98px) {
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:repeat(2,1fr)"],
    [style*="grid-template-columns:repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="grid-template-columns:1fr 1fr"] > *,
    [style*="grid-template-columns: 1fr 1fr"] > *,
    [style*="grid-template-columns:repeat(2,1fr)"] > *,
    [style*="grid-template-columns:repeat(2, 1fr)"] > * {
        grid-column: auto !important;
    }
}


@media (max-width: 1023.98px) {
    [style*="grid-template-columns:repeat(3,1fr)"],
    [style*="grid-template-columns:repeat(3, 1fr)"],
    [style*="grid-template-columns:repeat(4,1fr)"],
    [style*="grid-template-columns:repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 560px) {
    [style*="grid-template-columns:repeat(3,1fr)"],
    [style*="grid-template-columns:repeat(3, 1fr)"],
    [style*="grid-template-columns:repeat(4,1fr)"],
    [style*="grid-template-columns:repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns:repeat(3,1fr)"] > *,
    [style*="grid-template-columns:repeat(3, 1fr)"] > *,
    [style*="grid-template-columns:repeat(4,1fr)"] > *,
    [style*="grid-template-columns:repeat(4, 1fr)"] > * {
        grid-column: auto !important;
    }
}


@media (max-width: 1023.98px) {
    [style*="grid-template-columns:1fr 420px"],
    [style*="grid-template-columns:1fr 380px"],
    [style*="grid-template-columns:1fr 360px"],
    [style*="grid-template-columns:minmax(0,1fr) 360px"],
    [style*="grid-template-columns:380px 1fr"],
    [style*="grid-template-columns:260px 1fr"],
    [style*="grid-template-columns:262px minmax(0,1fr)"] {
        grid-template-columns: 1fr !important;
    }
}



@media (max-width: 640px) {
    [style*="max-width:1280px"],
    [style*="max-width:1360px"],
    [style*="max-width:1400px"],
    [style*="max-width:1120px"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    [style*="padding:40px"],
    [style*="padding:0 40px"],
    [style*="padding:48px"],
    [style*="padding:60px 40px"] {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}
@media (max-width: 400px) {
    [style*="max-width:1280px"],
    [style*="max-width:1360px"],
    [style*="max-width:1400px"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}



@media (max-width: 900px) {
    *:has(> table) {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
    }
    *:has(> table)::-webkit-scrollbar { height: 6px; }

    table {
        table-layout: auto !important;
        width: max-content !important;
        min-width: 100% !important;
    }
    
    table col { width: auto !important; }
    
    table td { max-width: min(70vw, 460px); }
}



@media (max-width: 640px) {
    .fg-modal__head { padding: 18px 16px 14px !important; gap: 12px !important; }
    .fg-modal__body { padding: 16px !important; gap: 14px !important; }
    .fg-modal__foot { padding: 14px 16px !important; }
    .fg-modal__title { font-size: 19px !important; line-height: 1.15 !important; }

    
    .fg-modal__foot > div,
    .fg-modal__foot > form { flex-wrap: wrap; }
    .fg-modal__foot button,
    .fg-modal__foot a { min-height: 42px; }
}
@media (max-width: 400px) {
    .fg-modal__head { padding: 16px 13px 12px !important; }
    .fg-modal__body { padding: 13px !important; }
    .fg-modal__foot { padding: 12px 13px !important; }
    .fg-modal__title { font-size: 17px !important; }
}



.fg-tbl-wrap { width: 100%; }
.fg-tbl-simples { width: 100%; border-collapse: collapse; font-family: 'Space Grotesk', sans-serif; }
.fg-tbl-simples th {
    padding: 10px 12px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #5f7089;
    border-bottom: 1px solid rgba(0, 229, 255, 0.12);
    white-space: nowrap;
}
.fg-tbl-simples td {
    padding: 11px 12px;
    font-size: 13.5px;
    color: rgba(234, 246, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.fg-tbl-simples tbody tr:hover td { background: rgba(0, 229, 255, 0.035); }
.fg-tbl-simples .fg-tbl-vazio {
    padding: 26px 12px;
    text-align: center;
    color: rgba(234, 246, 255, 0.4);
    border-bottom: none;
}



.fg-um { position: relative; display: flex; align-items: center; }

.fg-um-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    background: rgba(0, 229, 255, 0.06);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #EAF6FF;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
}
.fg-um-pill:hover { border-color: rgba(0, 229, 255, 0.45); }
.fg-um-pill.aberto {
    border-color: rgba(0, 229, 255, 0.55);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.09);
}
.fg-um-pill:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.28); }

.fg-um-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: #0b111c;
    color: #fff;
    flex-shrink: 0;
}

.fg-um-avatar.vazio {
    background: #5865F2;
}
.fg-um-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fg-um-avatar.vazio img {
    display: none;
}
.fg-um-seta {
    color: rgba(234, 246, 255, 0.45);
    margin-right: 2px;
    transition: transform .2s ease, color .18s;
}
.fg-um-pill.aberto .fg-um-seta { transform: rotate(180deg); color: #00E5FF; }

.fg-um-painel {
    position: fixed;
    z-index: 9998;
    width: 246px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(0, 229, 255, 0.16);
    background: rgba(6, 8, 16, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    font-family: 'Space Grotesk', sans-serif;
}


.fg-um-ent { transition: opacity .14s ease-out, transform .14s ease-out; }
.fg-um-sai { transition: opacity .1s ease-in, transform .1s ease-in; }
.fg-um-ent-de { opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right; }
.fg-um-ent-ate { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .fg-um-ent, .fg-um-sai { transition: opacity .12s linear; }
    .fg-um-ent-de { transform: none; }
    .fg-um-seta { transition: color .18s; }
}

.fg-um-cabeca {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 12px 13px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}
.fg-um-rotulo {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(234, 246, 255, 0.38);
}
.fg-um-conta {
    font-size: 13px;
    font-weight: 600;
    color: #EAF6FF;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fg-um-saldo { font-size: 12px; font-weight: 500; color: #00E5FF; }

.fg-um-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 9px;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: rgba(234, 246, 255, 0.82);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color .16s, background .16s;
}
.fg-um-item svg { color: rgba(234, 246, 255, 0.4); transition: color .16s; }


.fg-um-item::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    width: 2px;
    height: 0;
    border-radius: 2px;
    background: #00E5FF;
    transform: translateY(-50%);
    transition: height .16s ease;
}
.fg-um-item:hover { background: rgba(0, 229, 255, 0.07); color: #00E5FF; }
.fg-um-item:hover svg { color: #00E5FF; }
.fg-um-item:hover::before { height: 18px; }
.fg-um-item:focus-visible { outline: none; background: rgba(0, 229, 255, 0.1); color: #00E5FF; }

.fg-um-sair-form { margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(0, 229, 255, 0.1); }
.fg-um-sair:hover { background: rgba(255, 77, 94, 0.08); color: #FF4D5E; }
.fg-um-sair:hover svg { color: #FF4D5E; }
.fg-um-sair::before { background: #FF4D5E; }


.fg-um-idioma {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px 5px;
    margin-top: 4px;
    border-top: 1px solid rgba(0, 229, 255, 0.08);
}
.fg-um-idioma > svg { color: rgba(234, 246, 255, 0.4); flex-shrink: 0; }
.fg-um-idioma-lbl {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(234, 246, 255, 0.82);
}
.fg-um-lang {
    margin-left: auto;
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 9px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.12);
}
.fg-um-lang-op {
    min-width: 30px;
    padding: 4px 9px;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-align: center;
    text-decoration: none;
    color: rgba(234, 246, 255, 0.5);
    transition: color .14s, background .14s, box-shadow .14s;
}
.fg-um-lang-op:hover { color: #EAF6FF; }
.fg-um-lang-op.on {
    background: #00E5FF;
    color: #04121c;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}
.fg-um-lang-op:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.4); }


.fg-idioma {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
}
.fg-idioma > svg { color: rgba(234, 246, 255, 0.42); flex-shrink: 0; }
.fg-idioma-seg {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 8px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.12);
}
.fg-idioma-op {
    min-width: 26px;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    color: rgba(234, 246, 255, 0.5);
    transition: color .14s, background .14s, box-shadow .14s;
}
.fg-idioma-op:hover { color: #EAF6FF; }
.fg-idioma-op.on {
    background: #00E5FF;
    color: #04121c;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}
.fg-idioma-op:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.4); }


.fgm-label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(234, 246, 255, 0.5);
    margin-bottom: 8px;
}
.fgm-input {
    width: 100%;
    height: 46px;
    padding: 0 15px;
    background-color: #0a0f1c;
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #EAF6FF;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color .18s, box-shadow .18s, background .18s;
    box-sizing: border-box;
}
.fgm-input::placeholder { color: rgba(234, 246, 255, 0.28); }
.fgm-input:hover { border-color: rgba(0, 229, 255, 0.34); }
.fgm-input:focus {
    border-color: rgba(0, 229, 255, 0.6);
    background-color: #0b1322;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 3px rgba(0, 229, 255, 0.13), 0 0 22px rgba(0, 229, 255, 0.08);
}

.fgm-input[type=number]::-webkit-outer-spin-button,
.fgm-input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fgm-input[type=number] { -moz-appearance: textfield; }

.fgm-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300E5FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 40px;
    cursor: pointer;
}
.fgm-select option { background: #0A0F1A; color: #EAF6FF; }


.fgm-cs { position: relative; }
.fgm-cs-trigger {
    display: flex;
    align-items: center;
    text-align: left;
    cursor: pointer;
}
.fgm-cs-trigger.aberto {
    border-color: rgba(0, 229, 255, 0.6);
    background-color: #0b1322;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 3px rgba(0, 229, 255, 0.13), 0 0 22px rgba(0, 229, 255, 0.08);
}
.fgm-cs-txt {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fgm-cs-txt.vazio { color: rgba(234, 246, 255, 0.4); }

.fgm-cs-panel {
    position: fixed;
    z-index: 99999;
    max-height: 264px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 12px;
    background: rgba(8, 11, 20, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 229, 255, 0.05);
}
.fgm-cs-panel::-webkit-scrollbar { width: 9px; }
.fgm-cs-panel::-webkit-scrollbar-track { background: transparent; }
.fgm-cs-panel::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.22); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
.fgm-cs-op {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(234, 246, 255, 0.82);
    cursor: pointer;
    transition: background .13s, color .13s;
}
.fgm-cs-op:hover { background: rgba(0, 229, 255, 0.09); color: #EAF6FF; }
.fgm-cs-op.on {
    background: rgba(0, 229, 255, 0.14);
    color: #00E5FF;
    font-weight: 700;
}


.fg-switch {
    flex-shrink: 0;
    position: relative;
    width: 46px;
    height: 26px;
    padding: 0;
    border-radius: 100px;
    border: 1px solid rgba(100, 116, 139, 0.35);
    background: rgba(100, 116, 139, 0.18);
    cursor: pointer;
    transition: background .18s, border-color .18s, box-shadow .18s;
}
.fg-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #64748b;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: transform .18s, background .18s;
}
.fg-switch[aria-checked="true"] .fg-switch-knob { transform: translateX(20px); }
.fg-switch[aria-checked="true"] {
    background: rgba(0, 229, 255, 0.25);
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
}
.fg-switch[aria-checked="true"] .fg-switch-knob { background: #00E5FF; }
.fg-switch:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.3); }
.fg-switch--on-danger[aria-checked="true"] {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.65);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.28);
}
.fg-switch--on-danger[aria-checked="true"] .fg-switch-knob { background: #ef4444; }


.fg-seg {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #0a0f1c;
    border: 1px solid rgba(0, 229, 255, 0.14);
}
.fg-seg-op {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: 9px;
    background: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    color: rgba(234, 246, 255, 0.5);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.fg-seg-op svg { flex-shrink: 0; }
.fg-seg-op:hover { color: rgba(234, 246, 255, 0.85); }
.fg-seg-op.on {
    background: rgba(0, 229, 255, 0.14);
    color: #00E5FF;
    box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.25);
}


.fg-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 10px;
    border: 1px solid rgba(0, 229, 255, 0.14);
    background: rgba(6, 8, 16, 0.55);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #8695ab;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.fg-chip:hover { border-color: rgba(0, 229, 255, 0.35); color: #EAF6FF; }
.fg-chip-mark {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1.5px solid rgba(100, 116, 139, 0.5);
    display: grid;
    place-items: center;
    color: transparent;
    transition: all .15s;
}
.fg-chip.on {
    border-color: rgba(0, 229, 255, 0.55);
    background: rgba(0, 229, 255, 0.1);
    color: #EAF6FF;
}
.fg-chip.on .fg-chip-mark {
    border-color: #00E5FF;
    background: #00E5FF;
    color: #04121c;
}

.fgm-cs-ent { transition: opacity .14s ease-out, transform .14s ease-out; }
.fgm-cs-sai { transition: opacity .1s ease-in, transform .1s ease-in; }
.fgm-cs-de { opacity: 0; transform: translateY(-6px) scale(.98); }
.fgm-cs-ate { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .fgm-cs-ent, .fgm-cs-sai { transition: opacity .12s linear; }
    .fgm-cs-de { transform: none; }
}


@media (max-width: 640px) {
    .fg-um-nome { display: none; }
    .fg-um-pill { padding: 6px 8px 6px 8px; }
}


.fg-sair-mobile {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-top: 1px solid rgba(0, 229, 255, 0.06);
    background: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(234, 246, 255, 0.72);
    text-align: left;
    cursor: pointer;
    transition: background .16s, color .16s;
}
.fg-sair-mobile svg { color: #FF4D5E; }
.fg-sair-mobile:hover { background: rgba(255, 77, 94, 0.07); color: #FF4D5E; }



* { scrollbar-width: thin; scrollbar-color: rgba(0, 229, 255, 0.22) rgba(6, 8, 16, 0.9); }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: #060810; }
::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.18); border-radius: 6px; border: 2px solid #060810; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 229, 255, 0.4); }
::-webkit-scrollbar-corner { background: #060810; }
