* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0c;
  color: #e8e8ed;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ========== FONDO ANIMADO ========== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: linear-gradient(135deg, #0a0a0c 0%, #0f0f14 50%, #0a0a0c 100%);
}

.code-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.05) 2px, rgba(255,255,255,0.05) 4px);
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  color: #e8e8ed;
}

.logo span {
  color: #e8e8ed;
}

.logo span span {
  color: rgb(255, 183, 0);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: #e8e8ed;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.8rem 0.3rem 0.3rem;
  border-radius: 40px;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgb(255, 183, 0), #ff8c42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.user-menu span {
  font-size: 0.85rem;
  color: #e8e8ed;
}

/* ========== BUTTONS ========== */
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  color: #e8e8ed;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.btn-primary {
  background: #e8e8ed;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  color: #0a0a0c;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-outline-small {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 40px;
  color: #e8e8ed;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-small:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.btn-large {
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
}

/* ========== CONTAINER ========== */
.page-container {
  min-height: calc(100vh - 140px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* ========== LOADING SPINNER ========== */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgb(255, 183, 0);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner p {
  color: #6b7280;
  font-size: 0.85rem;
}

/* ========== HERO SECTION ========== */
.hero-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: #e8e8ed;
}

.soft-accent {
  color: rgb(255, 183, 0);
}

.hero-text p {
  font-size: 1rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #121216;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.image-frame img {
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
}

/* ========== SECTIONS ========== */
.stats-section, .game-support-section, .script-display-section {
  margin-bottom: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #e8e8ed;
}

.section-header p {
  color: #6b7280;
  font-size: 0.9rem;
}

/* ========== STATS GRID ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: rgba(18, 18, 22, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 1.8rem;
  text-align: center;
  transition: all 0.25s ease;
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #e8e8ed;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #e8e8ed;
}

.stat-label {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* ========== GAME SUPPORT ========== */
.support-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.support-card {
  background: rgba(18, 18, 22, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
  width: 220px;
}

.support-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.support-image {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
  margin-bottom: 1rem;
}

.support-name {
  font-weight: 600;
  font-size: 1rem;
  color: #e8e8ed;
  margin-bottom: 0.25rem;
}

.support-status {
  font-size: 0.7rem;
  color: #22c55e;
}

/* ========== SCRIPT BOX ========== */
.script-box {
  background: rgba(18, 18, 22, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 1.8rem;
}

.script-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #e8e8ed;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lua-script {
  background: #0a0a0c;
  padding: 1rem;
  border-radius: 16px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.copy-btn-small {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.7rem;
  cursor: pointer;
  color: #e8e8ed;
  transition: all 0.2s;
}

.copy-btn-small:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ========== AUTH PAGES ========== */
.auth-container {
  max-width: 420px;
  margin: 2rem auto;
}

.auth-card {
  background: rgba(18, 18, 22, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 2rem;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #e8e8ed;
}

.auth-card h2 i {
  margin-right: 0.5rem;
  color: rgb(255, 183, 0);
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-bottom: 1rem;
  padding: 0 1rem;
  transition: all 0.2s;
}

.input-group:focus-within {
  border-color: rgba(255, 255, 255, 0.15);
}

.input-group i {
  color: #6b7280;
}

.input-group input {
  background: transparent;
  border: none;
  padding: 0.9rem 0.8rem;
  width: 100%;
  outline: none;
  font-size: 0.9rem;
  color: #e8e8ed;
}

.input-group input::placeholder {
  color: #4a4a52;
}

.auth-footer {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.auth-footer a {
  color: rgb(255, 183, 0);
  text-decoration: none;
  cursor: pointer;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ========== DASHBOARD ========== */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(18, 18, 22, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 1.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgb(255, 183, 0);
  object-fit: cover;
  background: #0a0a0c;
}

.profile-info {
  flex: 1;
}

.profile-displayname {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e8e8ed;
  margin-bottom: 0.25rem;
}

.profile-username {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.profile-details {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.profile-detail {
  background: rgba(10, 10, 12, 0.6);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Dashboard Tabs */
.dashboard-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.tab-btn:hover {
  color: #e8e8ed;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.05);
  color: #e8e8ed;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Settings */
.settings-group {
  background: rgba(18, 18, 22, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.settings-group h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e8e8ed;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-label {
  font-size: 0.85rem;
  color: #9ca3af;
}

.settings-value {
  font-size: 0.85rem;
  color: #e8e8ed;
  font-family: monospace;
}

.danger-zone {
  border: 1px solid rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.03);
}

.danger-zone h3 {
  color: #ef4444;
}

.update-item {
  background: rgba(18, 18, 22, 0.6);
  backdrop-filter: blur(8px);
  border-left: 3px solid rgb(255, 183, 0);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.update-item strong {
  color: #e8e8ed;
}

.update-item p {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

/* ========== FOOTER ========== */
.footer {
  background: rgba(5, 5, 7, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 3rem;
  padding: 2rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand .logo-small {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.logo-small span span {
  color: rgb(255, 183, 0);
}

.footer-brand p {
  font-size: 0.7rem;
  opacity: 0.5;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link:hover {
  color: #e8e8ed;
}

.contact-icons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.contact-icons i {
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  color: #6b7280;
}

.contact-icons i:hover {
  color: #e8e8ed;
}

.copyright {
  font-size: 0.7rem;
  opacity: 0.4;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #1c1c1e;
  color: #e8e8ed;
  padding: 0.7rem 1.5rem;
  border-radius: 40px;
  font-size: 0.8rem;
  opacity: 0;
  transition: 0.2s;
  z-index: 400;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .nav-links {
    justify-content: center;
  }
  
  .header-actions, .user-menu {
    justify-content: center;
  }
  
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .page-container {
    padding: 1.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .contact-icons {
    justify-content: center;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-details {
    justify-content: center;
  }
}
/* Avatar en el menú de usuario */
.user-avatar-small img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-small {
    overflow: hidden;
}
.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgb(255, 183, 0);
    border: 2px solid #0a0a0c;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.change-avatar-btn:hover {
    transform: scale(1.05);
    background: #ffcc44;
}

.change-avatar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* ========== MODAL DE AVATAR MEJORADO ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.avatar-modal {
    background: #121216;
    border-radius: 28px;
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.avatar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.avatar-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e8e8ed;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.avatar-modal-header h3 i {
    color: rgb(255, 183, 0);
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #9ca3af;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e8e8ed;
}

.avatar-modal-body {
    padding: 1.8rem;
}

.info-message {
    background: rgba(255, 183, 0, 0.1);
    border: 1px solid rgba(255, 183, 0, 0.2);
    border-radius: 16px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #ffb700;
}

.info-message i {
    font-size: 1.1rem;
}

/* Área de subida de imagen */
.upload-area {
    background: rgba(10, 10, 12, 0.6);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.upload-area:hover {
    border-color: rgb(255, 183, 0);
    background: rgba(255, 183, 0, 0.05);
}

.upload-area.drag-over {
    border-color: rgb(255, 183, 0);
    background: rgba(255, 183, 0, 0.1);
}

.upload-icon {
    font-size: 3rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.upload-area p {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.upload-area small {
    color: #6b7280;
    font-size: 0.7rem;
}

.file-input-hidden {
    display: none;
}

/* Previsualización de imagen */
.avatar-preview-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgb(255, 183, 0);
    background: #0a0a0c;
    display: none;
}

.avatar-preview.show {
    display: block;
}

/* Botón de subida */
.upload-btn {
    width: 100%;
    background: linear-gradient(135deg, rgb(255, 183, 0), #ff8c42);
    border: none;
    padding: 0.9rem;
    border-radius: 40px;
    color: #0a0a0c;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.upload-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========== MEJORAS RESPONSIVE ========== */
@media (max-width: 768px) {
    .avatar-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .avatar-modal-header {
        padding: 1.2rem 1.5rem;
    }
    
    .avatar-modal-body {
        padding: 1.5rem;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .avatar-preview {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .avatar-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .upload-area p {
        font-size: 0.75rem;
    }
    
    .upload-btn {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

/* ========== RESPONSIVE GENERAL ========== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0.8rem 1rem;
    }
    
    .nav-links {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .header-actions, .user-menu {
        justify-content: center;
    }
    
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .support-grid {
        gap: 1rem;
    }
    
    .support-card {
        width: 160px;
        padding: 1rem;
    }
    
    .support-image {
        width: 70px;
        height: 70px;
    }
    
    .support-name {
        font-size: 0.8rem;
    }
    
    .script-box {
        padding: 1rem;
    }
    
    .lua-script {
        font-size: 0.65rem;
        padding: 0.8rem;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .profile-displayname {
        font-size: 1.3rem;
    }
    
    .profile-details {
        justify-content: center;
    }
    
    .dashboard-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .contact-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .support-card {
        width: 140px;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .input-group {
        padding: 0 0.8rem;
    }
    
    .input-group input {
        padding: 0.7rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .btn-primary, .btn-outline {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
}
/* ========== BOTÓN DE SINCRONIZACIÓN MINIMALISTA ========== */
.sync-btn {
    background: rgba(232, 232, 237, 0.08);
    border: 1px solid rgba(232, 232, 237, 0.15);
    border-radius: 40px;
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    color: #e8e8ed;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sync-btn:hover {
    background: rgba(232, 232, 237, 0.15);
    border-color: rgba(232, 232, 237, 0.3);
}

/* ========== BOTÓN DE CAMBIO DE AVATAR ========== */
.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(232, 232, 237, 0.9);
    border: 2px solid #0a0a0c;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #0a0a0c;
}

.change-avatar-btn:hover {
    transform: scale(1.05);
    background: #ffffff;
}

.change-avatar-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ========== MODAL AVATAR MEJORADO ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.avatar-modal {
    background: #121216;
    border-radius: 28px;
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.avatar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.avatar-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e8e8ed;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #9ca3af;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e8e8ed;
}

.avatar-modal-body {
    padding: 1.5rem;
}

.info-message {
    background: rgba(232, 232, 237, 0.05);
    border: 1px solid rgba(232, 232, 237, 0.1);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.upload-area {
    background: rgba(10, 10, 12, 0.6);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.upload-area:hover {
    border-color: rgba(232, 232, 237, 0.3);
    background: rgba(232, 232, 237, 0.03);
}

.upload-area.drag-over {
    border-color: #e8e8ed;
    background: rgba(232, 232, 237, 0.05);
}

.upload-icon {
    font-size: 2.5rem;
    color: #6b7280;
    margin-bottom: 0.8rem;
}

.upload-area p {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.upload-area small {
    color: #6b7280;
    font-size: 0.7rem;
}

.file-input-hidden {
    display: none;
}

.avatar-preview-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(232, 232, 237, 0.2);
    background: #0a0a0c;
    display: none;
}

.avatar-preview.show {
    display: block;
}

.upload-btn {
    width: 100%;
    background: #e8e8ed;
    border: none;
    padding: 0.8rem;
    border-radius: 40px;
    color: #0a0a0c;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.upload-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
