/*
Theme Name: Energix Power
Description: Tema premium focado em fazendas solares e investimento em energia limpa.
Author: Energix Power Team
Version: 1.8
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: energix
*/

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}


:root {
  --gold: #F5C518;
  --navy: #07152A;
  --navy2: #0D2040;
  --navy3: #122A52;
  --text: #E8EDF5;
  --muted: #7A90B0;
  --accent: #3DD6A3;
}

body {
  font-family: Georgia, serif;
  background: var(--navy);
  color: var(--text);
  overflow-x: hidden
}

/* HEADER */
.hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  background: rgba(7, 21, 42, 0.95);
  border-bottom: 1px solid rgba(245, 197, 24, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo img {
  width: 241px !important;
  height: 42px !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

nav {
  display: flex;
  gap: 28px;
  align-items: center
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 13px;
  transition: color .2s
}

nav a:hover {
  color: var(--gold)
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700 !important
}

/* MOBILE TOGGLE */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* LANG SWITCHER */
.lang-switcher {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  z-index: 100 !important;
}

.lang-switcher .gtranslate_wrapper {
  margin-bottom: 0 !important;
}

/* HERO */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 75% 50%, rgba(61, 214, 163, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(245, 197, 24, 0.07) 0%, transparent 55%);
}

/* grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(245, 197, 24, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 197, 24, 0.05) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 75%);
}

.hero-content {
  position: relative;
  max-width: 850px
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(61, 214, 163, 0.1);
  border: 1px solid rgba(61, 214, 163, 0.3);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.pulse {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s infinite
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

.hero h1 {
  font-family: 'Arial Black', Impact, sans-serif;
  line-height: .92;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 22px;
}

.hero h1 span {
  display: inline-block;
}

.hero h1 .line-small {
  font-size: clamp(38px, 5.5vw, 68px);
  letter-spacing: 2px;
  opacity: 0.95;
}

.hero h1 .line-large {
  font-size: clamp(52px, 8.5vw, 105px);
  letter-spacing: -2px;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal
}

.hero p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 460px;
  font-family: Arial, sans-serif
}

.btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.btn-p {
  background: var(--gold);
  color: var(--navy);
  padding: 13px 30px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: Arial, sans-serif;
  transition: background .2s, transform .15s
}

.btn-p:hover {
  background: #dfb200;
  transform: translateY(-1px)
}

.btn-s {
  background: transparent;
  color: var(--text);
  padding: 13px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  transition: border-color .2s, color .2s
}

.btn-s:hover {
  border-color: var(--gold);
  color: var(--gold)
}

/* SOLAR ILLUSTRATION — pure CSS */
.solar {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 197, 24, 0.2);
}

.r1 {
  inset: 0;
  animation: spin 24s linear infinite
}

.r2 {
  inset: 36px;
  border-color: rgba(61, 214, 163, 0.15);
  animation: spin 18s linear infinite reverse
}

.r3 {
  inset: 72px;
  border-color: rgba(245, 197, 24, 0.1);
  animation: spin 30s linear infinite
}

/* dots on rings */
.r1::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%)
}

.r2::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%)
}

@keyframes spin {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

.solar-core {
  position: absolute;
  inset: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.25) 0%, rgba(245, 197, 24, 0.05) 60%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sun shape: circle + rays */
.sun-wrap {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: glow 3s ease-in-out infinite
}

@keyframes glow {

  0%,
  100% {
    filter: brightness(1)
  }

  50% {
    filter: brightness(1.35)
  }
}

.sun-circle {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
}

.ray {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transform-origin: 50% 300%;
}

/* STATS */
.stats {
  background: var(--navy2);
  border-top: 1px solid rgba(245, 197, 24, 0.1);
  border-bottom: 1px solid rgba(245, 197, 24, 0.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 48px;
}

.stat {
  text-align: center;
  padding: 0 10px
}

.stat-n {
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1
}

.stat-l {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  letter-spacing: .5px
}

/* SECTIONS */
.sec {
  padding: 60px 48px
}

#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding-top: 60px
}

.sec-tag {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px
}

.sec-h {
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: .5px
}

.sec-h em {
  color: var(--gold);
  font-style: normal
}

.sec-p {
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 500px
}

/* IDs de Ancoragem (Apenas para Scroll) */
#about {}

.a-cards {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.a-card {
  background: var(--navy2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 22px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color .2s, transform .2s;
  cursor: default;
}

.a-card:hover {
  border-color: rgba(245, 197, 24, 0.3);
  transform: translateX(5px)
}

.a-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(245, 197, 24, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.a-card h3 {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px
}

.a-card p.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 241px !important;
  height: 42px !important;
  display: block;
  object-fit: contain;
}

.a-card p {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6
}

/* ICON: leaf */
.ico-leaf {
  width: 20px;
  height: 20px;
  background: var(--accent);
  clip-path: ellipse(50% 50% at 50% 50%);
  border-radius: 0 70% 0 70%
}

/* ICON: sun small */
.ico-sun {
  width: 18px;
  height: 18px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61%35%, 98%35%, 68%57%, 79%91%, 50%70%, 21%91%, 32%57%, 2%35%, 39%35%)
}

/* ICON: doc */
.ico-doc {
  width: 16px;
  height: 20px;
  background: var(--gold);
  border-radius: 2px;
  position: relative
}

.ico-doc::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 3px;
  right: 3px;
  height: 2px;
  background: var(--navy2);
  border-radius: 1px;
  box-shadow: 0 4px 0 var(--navy2), 0 8px 0 var(--navy2)
}

/* BUSINESS */
#business {}

#business .sec-p {
  margin: 0 auto 55px
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto
}

.biz-card {
  background: var(--navy3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}

.biz-card:hover {
  border-color: rgba(245, 197, 24, 0.3);
  transform: translateY(-5px)
}

.biz-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.biz-card:hover::after {
  transform: scaleX(1)
}

.biz-n {
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 44px;
  font-weight: 900;
  color: rgba(245, 197, 24, 0.13);
  line-height: 1;
  margin-bottom: 14px
}

.biz-card h3 {
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 9px
}

.biz-card p {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65
}

/* INVESTORS */
#investors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center
}

.hi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px
}

.hi {
  background: var(--navy2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 20px
}

.hi-v {
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--gold)
}

.hi-l {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px
}

.i-form {
  background: var(--navy2);
  border: 1px solid rgba(245, 197, 24, 0.18);
  border-radius: 14px;
  padding: 36px 32px
}

.i-form h3 {
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: .5px;
  line-height: 1.3
}

.i-form>p {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px
}

.fg {
  margin-bottom: 14px
}

.fg label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
  letter-spacing: .5px;
  text-transform: uppercase
}

.fg input,
.fg select {
  width: 100%;
  background: var(--navy3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 11px 13px;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}

.fg input:focus,
.fg select:focus {
  border-color: var(--gold)
}

.fg select option {
  background: var(--navy2)
}

.btn-form {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  padding: 13px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: Arial, sans-serif;
  margin-top: 6px;
  transition: background .2s, transform .15s;
}

.btn-form:hover {
  background: #dfb200;
  transform: translateY(-1px)
}

/* CONTACT (continued) */
#contact .sec-p {
  margin: 0 auto 46px;
}

/* CARBON CREDITS SECTIONS */
#carbon-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.funding-box {
    background: var(--navy2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.funding-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.funding-label {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.funding-pct {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
}

.progress-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #2ecc71);
    border-radius: 10px;
}

/* Dashboard Preview */
.dash-card {
    background: var(--navy2);
    border: 1px solid rgba(245, 197, 24, 0.15);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--accent));
}

.dash-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.dash-item {
    flex: 1;
    background: var(--navy3);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.dash-item:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 197, 24, 0.3);
}

.dash-val {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 28px;
    color: var(--gold);
    line-height: 1.2;
    margin-bottom: 5px;
}

.dash-lab {
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.dash-status-item {
    margin-bottom: 20px;
}

.dash-status-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
}

.dash-status-label {
    font-size: 13px;
    color: var(--text);
}

.dash-status-pct {
    font-size: 13px;
    font-weight: 700;
}

/* Pricing Card Enhancements */
.price-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.price-tag {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 42px;
    color: #fff;
    margin: 15px 0;
}

.price-tag span {
    font-size: 16px;
    color: var(--muted);
    font-weight: 400;
}

.price-meta {
    font-size: 14px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 25px;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
    flex-grow: 1;
}

.price-list li {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 900;
}

/* Impact & Legal */
.impact-box {
    background: rgba(61, 214, 163, 0.05);
    border: 1px dashed rgba(61, 214, 163, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin-top: 50px;
    display: flex;
    gap: 20px;
    align-items: center;
    text-align: left;
}

.legal-summary {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-top: 60px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 1024px) {
    #carbon-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 780px;
  margin: 0 auto
}

.c-card {
  background: var(--navy3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 30px 20px;
  transition: border-color .2s;
}

.c-card:hover {
  border-color: rgba(245, 197, 24, 0.25)
}

.c-ico {
  margin-bottom: 14px;
  display: flex;
  justify-content: center
}

.c-card h3 {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px
}

.c-card p {
  font-family: Arial, sans-serif;
  font-size: 14px
}

.c-card a {
  color: var(--gold);
  text-decoration: none
}

/* FOOTER */
footer {
  background: #050E1C;
  padding: 36px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer p {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--muted)
}

footer .logo img {
  width: 241px;
  height: 42px;
  display: block;
}

@media(max-width:860px) {
  .hdr {
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #07152A !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 30px 20px;
    gap: 15px;
    border-bottom: 1px solid rgba(245, 197, 24, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 1001;
  }

  nav.active {
    display: flex !important;
  }

  nav a {
    font-size: 16px;
    color: var(--muted);
    text-decoration: none;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    display: block !important;
    white-space: normal;
  }

  /* Remove a barra amarela (elementos vazios) */
  nav a:empty, 
  nav .nav-cta:empty {
    display: none !important;
  }

  nav .nav-cta {
    display: inline-flex !important;
    width: auto !important;
    min-width: 200px;
    max-width: 90%;
    background: var(--gold);
    color: var(--navy) !important;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .lang-switcher {
    position: static !important;
    transform: none !important;
    margin: 0 10px !important;
  }

  .hero {
    padding: 90px 20px 60px
  }

  .hero h1 .line-small {
    font-size: 32px !important;
    letter-spacing: 1px;
  }

  .hero h1 .line-large {
    font-size: 48px !important;
    letter-spacing: -1px;
  }

  .solar {
    display: none
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px 20px;
    gap: 20px
  }

  .sec {
    padding: 65px 20px
  }

  #about,
  #investors {
    grid-template-columns: 1fr;
    gap: 36px
  }

  .biz-grid,
  .c-grid {
    grid-template-columns: 1fr
  }

  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 24px 20px
  }
}

/* LOGIN MODAL */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s;
}

.login-modal-overlay.active {
  display: flex;
}

.login-modal-content {
  background: var(--navy2);
  border: 1px solid rgba(245, 197, 24, 0.3);
  padding: 40px;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--gold);
}

.login-box {
  background: var(--navy2);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(245, 197, 24, 0.2);
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.login-box h1 {
  font-family: 'Arial Black', sans-serif;
  color: var(--gold);
  margin-bottom: 10px;
}

.login-box .desc {
  color: var(--muted);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  background: var(--navy3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  outline: none;
}

.form-group input:focus {
  border-color: var(--gold);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.btn-submit:hover {
  background: #dfb200;
}

.login-footer {
  color: var(--muted);
  margin-top: 20px;
}

.login-footer a {
  color: var(--gold);
  font-weight: 700;
}

/* --- LAYOUT DASHBOARD (DESKTOP) --- */
.dashboard-actions, .stats-grid {
  display: grid !important;
  gap: 25px !important;
  margin-top: 25px;
  width: 100% !important;
}

.dashboard-actions {
  grid-template-columns: 1fr 1fr !important;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

/* --- RESPONSIVIDADE DASHBOARD (CORRIGIDA) --- */
@media (max-width: 768px) {

  /* Grid de ações e stats: 1 coluna */
  .dashboard-actions, .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .action-card {
    width: 100% !important;
    margin-right: 0 !important;
  }

  .hdr {
    padding: 15px 20px;
  }

  .logo img {
    width: 180px !important;
    height: auto !important;
  }

  /* Dashboard cards: contidos dentro da tela */
  .dashboard-card {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 20px !important;
    border-radius: 16px !important;
  }

  /* Tabelas: wrapper com scroll horizontal */
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    display: block !important;
  }

  .table-responsive table,
  .table-responsive .history-table {
    min-width: 600px !important;
    display: table !important;
    width: 100% !important;
  }

  .table-responsive thead {
    display: table-header-group !important;
  }

  .table-responsive tr {
    display: table-row !important;
  }

  .table-responsive td,
  .table-responsive th {
    display: table-cell !important;
    padding: 12px 10px !important;
    white-space: nowrap !important;
    font-size: 13px !important;
  }

  /* Previne overflow horizontal da página inteira */
  .dashboard-wrapper {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .dashboard-main {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding: 20px 12px !important;
  }

  /* Welcome card: texto menor */
  .welcome-card h1 {
    font-size: 1.4rem !important;
    word-break: break-word;
  }

  /* Stat values: menores no mobile */
  .stat-value {
    font-size: 1.5rem !important;
  }

  /* Formulários: full width sem overflow */
  .dashboard-card input,
  .dashboard-card select,
  .dashboard-card textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* DDI container: mais compacto */
  .ddi-container {
    width: 90px !important;
  }

  /* Crypto section cards */
  .crypto-card, .action-card {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  /* Botões: full width no mobile (exceto dentro de ações cripto) */
  .btn-submit {
    width: 100% !important;
    justify-content: center;
  }

  /* Botões de ação cripto (COMPRAR/SACAR): compactos ao lado do input */
  .dashboard-actions .btn-submit,
  #btnBuyDash,
  #btnWithdraw {
    width: auto !important;
    padding: 10px 16px !important;
    font-size: 0.75rem !important;
    border-radius: 10px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Stats grid items */
  .stat-item {
    padding: 20px !important;
  }

  /* ══ TABELAS → CARDS NO MOBILE ══ */
  /* Esconde o scroll e transforma linhas em cards empilhados */
  .table-responsive {
    overflow-x: visible !important;
    background: none !important;
  }

  .table-responsive table,
  .table-responsive .history-table,
  .transaction-table {
    min-width: 0 !important;
    display: block !important;
  }

  .table-responsive thead,
  .transaction-table thead {
    display: none !important;
  }

  .table-responsive tbody,
  .transaction-table tbody {
    display: block !important;
  }

  .table-responsive tr,
  .transaction-table tr {
    display: block !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
  }

  .table-responsive td,
  .transaction-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 4px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    white-space: normal !important;
    font-size: 13px !important;
    text-align: right !important;
    min-height: auto !important;
    gap: 10px;
  }

  .table-responsive td:last-child,
  .transaction-table td:last-child {
    border-bottom: none !important;
  }

  /* Labels das colunas via data-label */
  .table-responsive td::before,
  .transaction-table td::before {
    content: attr(data-label) !important;
    display: block !important;
    font-weight: 800 !important;
    color: var(--gold) !important;
    text-align: left !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    flex-shrink: 0;
    min-width: 90px;
  }
}

/* --- ADAPTAÇÃO PARA TELAS MUITO PEQUENAS (320px-375px) --- */
@media (max-width: 375px) {
  .dashboard-main {
    padding: 15px 8px !important;
  }

  .dashboard-card {
    padding: 15px !important;
    border-radius: 12px !important;
  }

  .welcome-card h1 {
    font-size: 1.2rem !important;
  }

  .stat-value {
    font-size: 1.3rem !important;
  }

  .sidebar-item {
    padding: 12px 15px !important;
    font-size: 0.85rem !important;
  }

  .table-responsive td,
  .table-responsive th {
    padding: 10px 8px !important;
    font-size: 12px !important;
  }
}

/* --- ADAPTAÇÃO PARA TELAS GRANDES (tablets landscape) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .dashboard-actions {
    grid-template-columns: 1fr 1fr !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .dashboard-main {
    padding: 30px 25px !important;
  }
}