/* ====================== MAIN LAYOUT ====================== */
.app-container {
  display: flex;
  min-height: calc(100vh - 70px);
  max-width: 1400px;
  margin: 0 auto;
  gap: 0.5rem;
  padding: 0.5rem;
}

.left-column {
  flex: 0 0 235px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.center-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  transition: flex var(--transition-normal);
}

.right-column {
  flex: 0 0 210px;
}

.section {
  display: none;
  animation: fadeIn 0.5s ease;
  height: 100%;
}

.section.active {
  display: flex;
  flex-direction: column;
}

/* Hide side columns in non-chat tabs */
.chat-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ====================== HEADER ====================== */
header {
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--card-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(106, 17, 203, 0.5);
  animation: glow 3s infinite;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-3d ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

#logout-btn {
  flex-shrink: 0;
  white-space: nowrap;
  display: flex !important;
}

.language-selector {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

/* Garante que o botão de login/logout não quebre linha */
#login-btn, #logout-btn {
  white-space: nowrap;
}

/* No seu arquivo CSS */
#login-btn, #logout-btn, #user-wallet {
    transition: all 0.3s ease;
}

#login-btn.hidden, #logout-btn.hidden, #user-wallet.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

#login-btn:not(.hidden), #logout-btn:not(.hidden), #user-wallet:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.lang-btn {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
}

.lang-btn:hover {
    background: var(--card-bg);
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: var(--glass-shadow);
    display: none;
    z-index: 1000;
    min-width: 120px;
    margin-top: 0.5rem;
    border: 1px solid var(--card-border);
}



.lang-option {
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-option:hover {
    background: rgba(37, 117, 252, 0.2);
}

.lang-options.show {
    display: block !important;
}
#user-wallet {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.balance-display {
  background: var(--input-bg);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ====================== FOOTER ====================== */
footer {
  background: var(--footer-bg);
  padding: 3rem 2rem;
  border-top: 1px solid var(--card-border);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  flex: 1;
  min-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--accent-color);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: 3rem;
  text-align: center;
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ====================== RESPONSIVENESS ====================== */
@media (max-width: 1200px) {
   .header-container {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .nav-3d {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .app-container {
      flex-direction: column;
  }
  
  .left-column, .right-column {
      flex: 1;
      width: 100%;
  }
  
  .fund-options {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
      flex-wrap: wrap;
  }
  
  .nav-3d {
      order: 3;
      width: 100%;
      margin-top: 1rem;
  }
    .header-actions {
    gap: 0.5rem;
  }
  
  .balance-display {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  .nav-3d ul {
      justify-content: center;
  }
  
  .profile-header {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }
  
  .shop-grid {
      grid-template-columns: 1fr;
  }
  
  .fund-options {
      grid-template-columns: 1fr;
  }
  
  .room-actions {
      flex-wrap: wrap;
  }
  
  .chat-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
  }
  
  .room-actions {
      width: 100%;
      justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .app-container {
      padding: 1rem;
  }
  
  .modal-content {
      width: 95%;
      padding: 1rem;
  }
  
  .room-action-btn span {
      display: none;
  }
}

@media (max-width: 600px) {
  .profile-modal-actions {
      flex-direction: column;
  }
  
  .profile-modal-address {
      flex-direction: column;
      gap: 5px;
  }
}

@media (max-width: 768px) {
  .effect-glow {
      text-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
  }
  
  .gold-text {
      text-shadow: 0 0 8px rgba(255, 215, 0, 0.7), 0 0 16px rgba(255, 215, 0, 0.4);
  }
}