:root, html[pc='1'], html {
  --theme-bg-color: #a60c4f !important;
  --theme-top-bar: #a60c4f !important;
  --theme-header-color: #a60c4f !important;
  --theme-template-color: #a60c4f !important;
  --theme-main-color: #f5f7b2 !important;
  --theme-text-button: #e5e1e1 !important;
  --theme-tite-color: #ffffff !important;
  --theme-light-line-color: #ffffff !important;
  --theme-money: #f5f7b2 !important;
  --theme-homebars-bg: #a60c4f !important;
  --theme-sidebar-color: #a60c4f !important;
  --theme-line-color: #ffffff !important;
  --theme-head-button-bg: #f5f7b2 !important;
  --theme-head-button-text: #e5e1e1 !important;
  --theme-default-icon: #ffffff !important;
  --theme-white-color: #ffffff !important;
}

/* Background principal - Fundo geral da página */
html[pc='1'], html[pc='1'] body, html[pc='1'] #root, html[pc='1'] #start_page {
  background-color: #a60c4f !important;
}

/* HeaderBox, HomebarsBox e DownloadBox - Cor compartilhada */
html[pc='1'] #headerBoxDom,
html[pc='1'] [class*='homebarsBox'],
html[pc='1'] #downloadDom {
  background-color: #a60c4f !important;
}

/* Download e ToTop - Cor mais escura (tom mais forte) */
html[pc='1'] [class*='_download_8jr3q_'],
html[pc='1'] [class*='_ToTop_1dedw_'],
html[pc='1'] [class*='_ToTop_']:not([class*='btn']) {
  background-color: #8d0a43 !important;
}

/* activity_list - Fundo principal (atrás das imagens) */
html[pc='1'] .activity_list:not([class*='item']),
html[pc='1'] [class*='_activity_'] .activity_list {
  background-color: #a60c4f !important;
}

/* Tabs do agente - Fundo principal e correções */
html[pc='1'] ._C_h5_tabs_8ifzc_55,
html[pc='1'] [class*='_C_h5_tabs_'] {
  background-color: #a60c4f !important;
  background: #a60c4f !important;
}
html[pc='1'] ._C_h5_tabs_8ifzc_55 .tab,
html[pc='1'] ._C_h5_tabs_8ifzc_55 .tab_active {
  background-color: transparent !important;
  background: transparent !important;
}

/* Container pai das tabs na página /agent - forçar cor de fundo */
html[pc='1'] ._C_h5_tabs_8ifzc_55 > *,
html[pc='1'] [class*='_C_h5_tabs_'] > *,
html[pc='1'] div[style*='display: flex'] > ._C_h5_tabs_8ifzc_55,
html[pc='1'] div[style*='display: flex'] > [class*='_C_h5_tabs_'],
html[pc='1'] div[style*='display:flex'] > ._C_h5_tabs_8ifzc_55,
html[pc='1'] div[style*='display:flex'] > [class*='_C_h5_tabs_'] {
  background-color: #a60c4f !important;
  background: #a60c4f !important;
}
html[pc='1'] div[style*='display: flex']:has(> ._C_h5_tabs_8ifzc_55),
html[pc='1'] div[style*='display: flex']:has(> [class*='_C_h5_tabs_']),
html[pc='1'] div[style*='display:flex']:has(> ._C_h5_tabs_8ifzc_55),
html[pc='1'] div[style*='display:flex']:has(> [class*='_C_h5_tabs_']) {
  background-color: #a60c4f !important;
  background: #a60c4f !important;
}

/* SVG com fill verde - Corrigir para cor principal */
html[pc='1'] svg path[fill='#2FA33F'],
html[pc='1'] svg path[fill="#2FA33F"],
html[pc='1'] svg *[fill='#2FA33F'],
html[pc='1'] svg *[fill="#2FA33F"],
html[pc='1'] svg .cusPath {
  fill: #f5f7b2 !important;
}

/* SVG com fill cinza/azul - Corrigir para cor de título */
html[pc='1'] svg path[fill='#A7B7D7'],
html[pc='1'] svg path[fill="#A7B7D7"],
html[pc='1'] svg *[fill='#A7B7D7'],
html[pc='1'] svg *[fill="#A7B7D7"] {
  fill: #ffffff !important;
}

/* SVGs específicos em contextos de navegação/ação - usar main_color */
html[pc='1'] [class*='_back_'] svg path:not([fill='white']):not([fill="white"]):not([fill='#fff']):not([fill="#fff"]),
html[pc='1'] [class*='_toLink_'] svg path:not([fill='white']):not([fill="white"]):not([fill='#fff']):not([fill="#fff"]) {
  fill: #f5f7b2 !important;
}

/* Alert box - Item ativo deve usar template_color */
html[pc='1'] ._alert_box_1rns5_97 ._active_1rns5_71,
html[pc='1'] [class*='_alert_box'] ._active_1rns5_71 {
  background-color: #a60c4f !important;
}

/* Elementos específicos - ToTop circle deve usar cor mais escura */
html[pc='1'] [class*='_ToTop_'] svg circle[fill='#2FA33F'],
html[pc='1'] [class*='_ToTop_'] svg circle[fill="#2FA33F"] {
  fill: #8d0a43 !important;
}

/* Substituir imagem black.webp do personHeader por SVG adaptável */
html[pc='1'] img[src*='personHeader'][src*='black.webp'],
html[pc='1'] img[src*='tem3'][src*='black.webp'],
html[pc='1'] img[src*='centarl_bg_black'],
html[pc='1'] img[src*='withdraw_bg_black'],
html[pc='1'] img[src*='center_wallent_black'],
html[pc='1'] [class*='_imgBg_cxn6v_'] img,
html[pc='1'] [class*='_header_cxn6v_'] [class*='_imgBg_'] img {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}
html[pc='1'] *[style*='personHeader'][style*='black.webp'],
html[pc='1'] *[style*='tem3'][style*='black.webp'] {
  background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%221920%22%20height%3D%221080%22%20viewBox%3D%220%200%201920%201080%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22bg_custom_36b7aa74d6aed84283caf1d039c9d5cd%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23a60c4f%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23a60c4f%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%221920%22%20height%3D%221080%22%20fill%3D%22url%28%23bg_custom_36b7aa74d6aed84283caf1d039c9d5cd%29%22%2F%3E%3Cpath%20d%3D%22M%20-600%201200%20A%201200%201200%200%200%201%20600%200%20L%20450%200%20A%201050%201050%200%200%200%20-450%201050%20Z%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.05%22%2F%3E%3Cpath%20d%3D%22M%20100%201300%20A%201400%201400%200%200%201%201400%20-100%20L%201300%20-100%20A%201250%201250%200%200%200%20250%201150%20Z%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.035%22%2F%3E%3Ccircle%20cx%3D%221920%22%20cy%3D%220%22%20r%3D%22520%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.04%22%2F%3E%3C%2Fsvg%3E') !important;
}
html[pc='1'] [class*='_imgBg_cxn6v_'],
html[pc='1'] [class*='_header_cxn6v_'] [class*='_imgBg_'],
html[pc='1'] [class*='_header_cxn6v_'][class*='_imgBg_'] {
  background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%221920%22%20height%3D%221080%22%20viewBox%3D%220%200%201920%201080%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22bg_custom_36b7aa74d6aed84283caf1d039c9d5cd%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23a60c4f%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23a60c4f%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%221920%22%20height%3D%221080%22%20fill%3D%22url%28%23bg_custom_36b7aa74d6aed84283caf1d039c9d5cd%29%22%2F%3E%3Cpath%20d%3D%22M%20-600%201200%20A%201200%201200%200%200%201%20600%200%20L%20450%200%20A%201050%201050%200%200%200%20-450%201050%20Z%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.05%22%2F%3E%3Cpath%20d%3D%22M%20100%201300%20A%201400%201400%200%200%201%201400%20-100%20L%201300%20-100%20A%201250%201250%200%200%200%20250%201150%20Z%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.035%22%2F%3E%3Ccircle%20cx%3D%221920%22%20cy%3D%220%22%20r%3D%22520%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.04%22%2F%3E%3C%2Fsvg%3E') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  position: relative !important;
}

/* Substituir ícone checkd.webp por SVG adaptável - Tamanho adaptável */
html[pc='1'] img[src*='checkd.webp'],
html[pc='1'] img[src*='/home/icons/checkd'],
html[pc='1'] [class*='_activeTip_'] img[src*='checkd'],
html[pc='1'] [class*='_activeTip_'] img {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}
html[pc='1'] [class*='_activeTip_'] {
  background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpolygon%20points%3D%2264%2C0%2064%2C64%200%2C64%22%20fill%3D%22%23f5f7b2%22%2F%3E%3Cpath%20d%3D%22M34%2042%20L40%2048%20L52%2034%22%20fill%3D%22none%22%20stroke%3D%22%23e5e1e1%22%20stroke-width%3D%226%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E') !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Corrigir cores de texto cinzas/escuras no homebarsBox - tornar mais claras */
html[pc='1'] [class*='_homebarsBox_tecje_'] *:not(svg):not(svg *),
html[pc='1'] [class*='_homebarsBox_tecje_'] span,
html[pc='1'] [class*='_homebarsBox_tecje_'] div:not([class*='icon']):not([class*='svg']) {
  color: #ffffff !important;
}
html[pc='1'] *[style*='color'][style*='#9D9D9D'],
html[pc='1'] *[style*='color'][style*='#999'],
html[pc='1'] *[style*='color'][style*='rgb(157, 157, 157)'],
html[pc='1'] *[style*='color'][style*='rgb(153, 153, 153)'] {
  color: #ffffff !important;
}

/* HomebarsBox - Corrigir detalhes verdes (cusPath) para usar cor principal do tema */
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg .cusPath[fill='#2FA33F'],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg .cusPath[fill="#2FA33F"],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg path.cusPath[fill='#2FA33F'],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg path.cusPath[fill="#2FA33F"],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg circle.cusPath[fill='#2FA33F'],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg circle.cusPath[fill="#2FA33F"],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg rect.cusPath[fill='#2FA33F'],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg rect.cusPath[fill="#2FA33F"],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg .cusFill[fill='#2FA33F'],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg .cusFill[fill="#2FA33F"],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg path.cusFill[fill='#2FA33F'],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg path.cusFill[fill="#2FA33F"] {
  fill: #f5f7b2 !important;
}
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg .cusPath[stroke='#2FA33F'],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg .cusPath[stroke="#2FA33F"],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg path.cusPath[stroke='#2FA33F'],
html[pc='1'] [class*='_homebarsBox_tecje_'] > div svg path.cusPath[stroke="#2FA33F"] {
  stroke: #f5f7b2 !important;
}

/* HomebarsBox - Uniformizar cor dos contornos (stroke) de todos os ícones - usar cor do painel admin */
html[pc='1'] [class*='_homebarsBox_tecje_'] > div:not([class*='_active_tecje_1190']) svg,
html[pc='1'] [class*='_homebarsBox_tecje_'] > div:not([class*='_active_tecje_1190']) svg path,
html[pc='1'] [class*='_homebarsBox_tecje_'] > div:not([class*='_active_tecje_1190']) svg g,
html[pc='1'] [class*='_homebarsBox_tecje_'] > div:not([class*='_active_tecje_1190']) svg *[stroke] {
  stroke: #f5f7b2 !important;
}
html[pc='1'] [class*='_homebarsBox_tecje_'] > div:not([class*='_active_tecje_1190']) svg *[fill]:not([fill='none']):not([fill='transparent']):not([class*='cusPath']):not([class*='cusFill']) {
  fill: #f5f7b2 !important;
}

/* DepositContent - Usar cor de template */
html[pc='1'] [class*='_depositContent_'] {
  background-color: #a60c4f !important;
}

/* Withdraw lightBg - Usar cor de template */
html[pc='1'] [class*='_lightBg_'][class*='_1pnl3_'],
html[pc='1'] [class*='_WithdrawDialog_'] [class*='_withdraw_container_'] {
  background-color: #a60c4f !important;
}

/* GameTabs - Ícone selecionado deve ter cor principal e opacidade completa */
html[pc='1'] [class*='_gameTabs_'] [class*='_tabItemBox_'][class*='_select_'] [class*='_icon_'][class*='_iconSelect_'],
html[pc='1'] [class*='_gameTabs_'] [class*='_tabItemBox_'][class*='_select_'] [class*='_icon_'][class*='_iconSelect_'] *,
html[pc='1'] [class*='_gameTabs_'] [class*='_tabItemBox_'][class*='_select_'] [class*='_icons_'][class*='_iconSelect_'],
html[pc='1'] [class*='_gameTabs_'] [class*='_tabItemBox_'][class*='_select_'] [class*='_icons_'][class*='_iconSelect_'] * {
  fill: #f5f7b2 !important;
  fill-opacity: 1 !important;
}
/* Corrigir elementos com cor verde fixa no withdraw - substituir por cor principal do tema */
html[pc='1'] [class*='withdraw'] *[style*='background'][style*='#2FA33F'],
html[pc='1'] [class*='withdraw'] *[style*='background'][style*='#21A57D'],
html[pc='1'] [class*='_WithdrawDialog_'] *[style*='background'][style*='#2FA33F'],
html[pc='1'] [class*='_WithdrawDialog_'] *[style*='background'][style*='#21A57D'] {
  background-color: #f5f7b2 !important;
}

/* Header da Carteira Central - Remover faixa verde e usar cor do tema */
html[pc='1'] [class*='_header_cxn6v_55'] {
  background-color: #a60c4f !important;
  background: #a60c4f !important;
}
html[pc='1'] [class*='_header_cxn6v_55'][style*='background'][style*='#30a33f'],
html[pc='1'] [class*='_header_cxn6v_55'][style*='background'][style*='#2FA33F'],
html[pc='1'] [class*='_header_cxn6v_55'][style*='background'][style*='green'] {
  background-color: #a60c4f !important;
  background: #a60c4f !important;
}
html[pc='1'] [class*='_header_cxn6v_55'] [class*='_special_cxn6v_375'],
html[pc='1'] [class*='_special_cxn6v_375'] {
  color: #f5f7b2 !important;
}

/* Registro de Recarga - Substituir cores roxas hardcoded por cores do tema */
html[pc='1'] [class*='_pcDateContainer_'] *[style*='background-color'][style*='rgb(146, 32, 188)'],
html[pc='1'] [class*='_pcDateContainer_'] *[style*='background'][style*='rgb(146, 32, 188)'],
html[pc='1'] [class*='_pcDateContainer_'] *[style*='background-color'][style*='rgb(97, 31, 178)'],
html[pc='1'] [class*='_pcDateContainer_'] *[style*='background'][style*='rgb(97, 31, 178)'],
html[pc='1'] [class*='_pcDateContainer_'] *[style*='background'][style*='linear-gradient'][style*='rgb(146, 32, 188)'] {
  background-color: #f5f7b2 !important;
  background: #f5f7b2 !important;
}
html[pc='1'] [class*='_pcDateContainer_'] *[style*='linear-gradient(rgb(146, 32, 188)'] {
  background: linear-gradient(#f5f7b2, rgba(245, 247, 178, 0)) !important;
}
html[pc='1'] [class*='_pcDateContainer_'] *[style*='linear-gradient(to top, rgb(146, 32, 188)'] {
  background: linear-gradient(to top, #f5f7b2, rgba(245, 247, 178, 0)) !important;
}
html[pc='1'] [class*='_pcDateContainer_'] *[style*='color'][style*='rgb(167, 183, 215)'],
html[pc='1'] [class*='_depositContainer_'] *[style*='color'][style*='rgb(167, 183, 215)'] {
  color: #ffffff !important;
}
html[pc='1'] [class*='_depositContainer_'] svg path[fill='#FDD981'],
html[pc='1'] [class*='_depositContainer_'] svg path[fill="#FDD981"],
html[pc='1'] [class*='_copy_'] svg path[fill='#FDD981'],
html[pc='1'] [class*='_copy_'] svg path[fill="#FDD981"] {
  fill: #f5f7b2 !important;
}
html[pc='1'] [class*='_depositContainer_1o847_55'] {
  background-color: #a60c4f !important;
}
html[pc='1'] [class*='_item_1o847_422'] {
  background-color: #a60c4f !important;
}
html[pc='1'] [class*='_item_odd_1o847_488'] {
  background-color: #a60c4f !important;
}
html[pc='1'] [class*='_total_1o847_69'] {
  color: #ffffff !important;
}
html[pc='1'] [class*='_total_1o847_69'] span {
  color: #f5f7b2 !important;
}
html[pc='1'] [class*='_amount_1o847_744'] {
  color: #f5f7b2 !important;
}
html[pc='1'] [class*='_pending_1o847_1010'] {
  color: #f5f7b2 !important;
}
html[pc='1'] [class*='_pcDateContainer_'] button[style*='background-color'][style*='rgb(97, 31, 178)'],
html[pc='1'] [class*='_pcDateContainer_'] button[style*='background'][style*='rgb(97, 31, 178)'] {
  background-color: #f5f7b2 !important;
  background: #f5f7b2 !important;
}
html[pc='1'] [class*='_pcDateContainer_'] button[style*='color'][style*='rgba(255, 255, 255, 0.6)'] {
  color: #e5e1e1 !important;
}
html[pc='1'] [class*='_pcDateContainer_'] button[style*='border'][style*='rgba(255, 255, 255, 0.2)'] {
  border-color: #ffffff !important;
}

/* Background Imagem - Aplicar apenas dentro de #root */
html[pc='1'] #root,
html[pc='1'] #root > div,
html[pc='1'] #app {
  background-image: url('/uploads/custom_theme_bg_1768448977_IMG_5120 (1).PNG') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  background-color: #a60c4f !important;
}
html[pc='1'] body, html[pc='1'] html {
  background-image: none !important;
  background-color: #a60c4f !important;
}

