/* =======================================================
   HOME GLOBAL THEME — colores, fuentes y márgenes base
   ======================================================= */
:root {
  --theme-bg: linear-gradient(135deg, #1a0f00 0%, #994407 60%, #1a0f00 100%);
  --theme-text: #ffffff;
  --secondary-bar-height: 70px;
  --font-primary: 'Poppins', sans-serif;

  /* COLORES NUEVOS PARA BOTÓN DINÁMICO */
  --btn-azul: linear-gradient(180deg, #00c6ff 0%, #0072ff 100%);
  --btn-verde: linear-gradient(180deg, #00ff88 0%, #00cc66 100%);
  --btn-rojo: linear-gradient(180deg, #ff3b3b 0%, #cc0000 100%);
}

/* =======================================================
   BASE DEL BODY
   ======================================================= */
body {
  background: linear-gradient(135deg, #1a0f00 0%, #471e01 60%, #1a0f00 100%);
  color: var(--theme-text);
  font-family: var(--font-primary);
  margin: 0;
  padding-top: var(--secondary-bar-height);
}

/* =======================================================
   MAIN HEADER
   ======================================================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--secondary-bar-height);
  background: var(--theme-bg);
  color: var(--theme-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
}

/* LOGO */
.header-logo {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.header-logo:hover {
  transform: scale(1.05);
  opacity: 0.8;
}
.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: url('logo.png') center/cover no-repeat;
  border: 2px solid #f8f5f3;
}
.logo-text {
  color: var(--theme-text);
  text-decoration: none;
}
.header-logo:hover .logo-text {
  text-decoration: underline;
  text-decoration-color: #ffffff;
}

/* =======================================================
   ICONO HOME 2D
   ======================================================= */
.home-icon-2d {
  --icon-color: #fff;
  --icon-size: 30px;
  --icon-move-x: -10px;
  --icon-move-y: 8px;
  width: 22px;
  height: 22px;
  position: relative;
  margin-left: 0.6rem;
  top: -10px;
  color: var(--icon-color);
  transform: translate(var(--icon-move-x), var(--icon-move-y)) scale(calc(var(--icon-size) / 22px));
  transform-origin: left top;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.home-icon-2d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 11px solid currentColor;
}
.home-icon-2d::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 3px;
  width: 16px;
  height: 11px;
  background: currentColor;
}
.home-icon-2d:hover {
  transform: scale(1.1) rotate(8deg);
  opacity: 0.85;
}

/* =======================================================
   BOTÓN HOME
   ======================================================= */
.language-selector {
  margin-left: 1rem;
}
.lang-btn {
  background: linear-gradient(180deg, #eb4411 0%, #000000 50%, #6b2205 100%);
  border: 2px solid #faf6f6;
  color: var(--theme-text);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
  top: 2px;
}
.lang-btn:hover {
  background: #fffdfc;
  color: #000;
}

/* =======================================================
   HOME CONTROLS
   ======================================================= */
.home-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: 985px;
}


/* ============================================================
   BOTÓN DE DIRECCIÓN
   ============================================================ */
.direction-btn {
  --scale: 1;
  --arrow-ratio: 0.50;

  background-color: #220b01;
  border: 2px solid #ffffff;
  border-radius: 10px;
  width: calc(35px * var(--scale));
  height: calc(35px * var(--scale));
  position: absolute;
  top: 21.8px;
  left: 400px;
  margin-left: 13px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.direction-btn .arrow-icon {
  position: absolute;
  top: calc(50% + var(--offset-y, 0px));
  left: calc(50% + var(--offset-x, 0px));
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  width: 0;
  height: 0;
  border-left: calc(12px * var(--scale, 1)) solid transparent;
  border-right: calc(12px * var(--scale, 1)) solid transparent;
  border-bottom: calc(15px * var(--scale, 1)) solid var(--arrow-color, #fff);
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.4));
  transition: all 0.3s ease;
}

.direction-btn.down .arrow-icon {
  transform: translateX(-50%) rotate(180deg);
}

.direction-btn:hover {
  background-color: #f70b0b;
  transform: scale(1.05);
}

.direction-btn:active {
  transform: scale(0.80);
  opacity: 0.85;
}

.direction-btn {
  transform: scale(var(--btn-scale, 1));
  transform-origin: center center;
}

/* ============================================================
   BOTÓN LOGIN SPOTIFY — OBLICUO + GRADIENTE (REAL-LIVE)
   ============================================================ */

.login-spotify-btn {
  display: none;
  padding:5px 20px;
  border:none;
  font-size:16px;
  font-weight:1000;
  font-style:oblique;
  letter-spacing:.5px;
  color:#fff;
  
margin:0 10px;

  position:absolute;
  top:24px;
  left:452px;

  /* MISMO COLOR QUE TENÍAS PERO EN GRADIENTE */
  background:linear-gradient(
    180deg,
    #220b01,
    #000000
  );

  cursor:pointer;
  border-radius:14px;

  /* FORMA OBLICUA */
  clip-path:polygon(6% 0%,100% 0%,94% 100%,0% 100%);

  transition:transform .12s ease,background .15s ease,box-shadow .15s ease;
  box-shadow:0 6px 18px rgba(0,0,0,.45);


}

.login-spotify-btn:hover{
  transform:translateY(-3px);

  /* MISMO COLOR HOVER PERO EN GRADIENTE */
  background:linear-gradient(
    90deg,
    #f70b0b,
    #5a0000
  );

  box-shadow:0 10px 26px rgba(0,0,0,.6);
}

.login-spotify-btn:active{
  transform:scale(0.80);
  opacity:0.85;
}

/* =======================================================
   BLOQUE DERECHO DE LA BARRA SUPERIOR
   ======================================================= */
.header-right {
  position: absolute;
  top: 0;
  right: 4rem;
  height: 100%;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
  z-index: 1200;
}



/* ============================================================
   AVATARES
   ============================================================ */
.user-avatar,
.curator-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.12);
  flex: 0 0 auto;
  cursor: pointer;
}
.user-avatar img,
.curator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .18s ease, opacity .18s ease;
}
.user-avatar img:hover,
.curator-avatar img:hover {
  transform: scale(1.08);
  opacity: 0.95;
}

/* ============================================================
   SELECTOR DE IDIOMA
   ============================================================ */
.lang-selector {
  padding: 6px 12px;
  border: 2px solid #fff;
  border-radius: 25px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
}
.lang-selector:hover {
  background: #fff;
  color: #000;
}

/* ============================================================
   BOTONES DEL BLOQUE DERECHO
   ============================================================ */
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-btn i {
  font-size: 1.3rem;
  margin-bottom: 0.15rem;
}
.nav-btn:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* ============================================================
   CONFIGURACIÓN DE LA CUENTA - MENÚ DASHBOARD MOBILE BASE OCULTA PC (REAL-LIVE)
   ============================================================ */
.mobile-dashboard-menu-shell,
.mobile-dashboard-menu-btn,
#mobile-dashboard-menu {
  display: none;
}

/* ============================================================
   MENÚ EXPLORAR — NUEVO DISEÑO COMPACTO Y VISTOSO
   ============================================================ */
.explorar-dropdown {
  position: absolute;
  top: 60px;
  right: 115px;
  width: 350px;

  background: #120700;
  border: 2px solid #ff9a3c;
  border-radius: 14px;

  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;

  box-shadow: 0 6px 18px rgba(0,0,0,0.65),
              0 0 10px rgba(255,120,0,0.55);

  z-index: 99999;
}

#user-menu {
  right: 115px !important;
  top: 55px !important;
}

.explorar-dropdown.show {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

.explorar-item {
  width: 90%;
  padding: 3px 0;
  text-align: center;

  font-weight: 800;
  font-size: 0.95rem;
  color: #ffd79e;

  border-bottom: 2px solid rgba(255,150,50,0.35);

  background: linear-gradient(180deg, #4a1a00, #2a0c00);
  cursor: pointer;
  transition: all .2s ease;

  border-radius: 10px;
  margin: 3px auto;
}

.explorar-item:last-child {
  border-bottom: none;
}

.explorar-item:hover {
  background: linear-gradient(180deg, #ff7c11, #b93f00);
  color: #fff;
  transform: scale(1.03);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .header-right {
    max-width: calc(100% - 120px);
    right: 0.6rem;
    gap: 0.6rem;
  }
  .user-avatar,
  .curator-avatar {
    width: 36px;
    height: 36px;
  }
  .nav-btn i {
    font-size: 1.1rem;
  }
  .nav-btn .nav-label {
    font-size: 0.72rem;
  }
}

/* ============================================================
   BARRA SECUNDARIA
   ============================================================ */
.secondary-bar {
  width: 100%;
  background: linear-gradient(180deg, rgba(97, 13, 2, 0.9) 0%, rgba(11,11,11,0.8) 100%);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  position: relative;
  z-index: 9;
  border-bottom: 0px solid rgb(41, 19, 1);
  backdrop-filter: blur(6px);
}

.secondary-bar .container {
  width: 100%;
  max-width: 1400px;
  padding: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sb-group {
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateX(70px);
}

/* TÍTULO DE SECCIÓN */
.language-selector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 25px;
  background: rgba(207, 94, 14, 0.678);
  box-shadow: 0 3px 8px rgba(255,107,0,0.28);
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  margin-left: -35px;
}

.language-selector:hover {
  background: rgba(255, 106, 0, 0.959);
  transform: translateY(-1px);
}


/* ============================================================
   TOKENS EN BARRA SECUNDARIA - VERSIÓN FINAL
   ============================================================ */
.tokens-container {
  display: flex;
  align-items: center;
  gap: 0px;
  margin-left: 0px;
  cursor: pointer;
}

.token-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(165, 73, 11, 0);
  border-radius: 50px;
  padding: 6px 12px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}
.token-item:hover {
  transform: scale(1.05);
}

.token-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.token-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.token-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.token-count {
  font-size: 0.7rem;
  font-weight: 800;
  color: #ffae42;
}


/* DIFERENCIAS VISUALES */
.token-item[data-token="daily"] .token-icon { box-shadow: 0 0 10px rgba(0,145,255,0.8); }
.token-item[data-token="indie"] .token-icon { box-shadow: 0 0 10px rgba(0,255,120,0.8); }
.token-item[data-token="regalo"] .token-icon { box-shadow: 0 0 10px rgba(255,0,200,0.8); }


/* =======================================================
   FOOTER
   ======================================================= */

.footer {
  text-align:center;
  padding:10px 10px;
  background:#000;
  border-top: 1px solid rgba(255,165,77,0.12);
  margin-top:375px;
  margin-left: 10px;
  width: 97%;
  border-radius: 40px;
}
.footer p { font-size:0.95rem; color:#ccc; font-weight:800; margin-bottom:8px; }
.footer-links { font-weight:800; }
.footer-links a { color:#999; text-decoration:none; transition: color .25s; }
.footer-links a:hover { color: var(--accent-light); }

.footer-mobile-break {
  display: none;
}

/* =======================================================
   CONFIGURACIÓN DE LA CUENTA - SHELL PRINCIPAL
   ======================================================= */
.dashboard-main-shell {
  width: min(1380px, calc(100% - 40px));
  margin: 34px auto 0;
  padding: 0 0 24px;
}

/* =======================================================
   CONFIGURACIÓN DE LA CUENTA - HERO
   ======================================================= */
.account-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px 36px;
  border: 1px solid rgba(255, 172, 94, 0.3);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 119, 24, 0.25), transparent 34%),
    linear-gradient(145deg, rgba(18, 7, 0, 0.96), rgba(73, 27, 2, 0.92));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.account-hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 186, 122, 0.36);
  color: #ffd4a2;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.account-hero-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.account-hero-text {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 232, 212, 0.92);
  font-size: 1rem;
  line-height: 1.65;
}

.account-hero-identity {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 132, 33, 0.18), rgba(0, 0, 0, 0.42)),
    rgba(12, 6, 1, 0.9);
  border: 1px solid rgba(255, 202, 153, 0.2);
}

.account-hero-identity::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 129, 11, 0.34), transparent 70%);
  filter: blur(2px);
}

.account-hero-avatar-ring,
.account-avatar-preview-ring {
  position: relative;
  flex: 0 0 auto;
  width: 122px;
  height: 122px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffb66c, #ff6100, #20140b);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.account-avatar-preview-ring {
  width: 154px;
  height: 154px;
}

.account-hero-avatar-image,
.account-avatar-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  background: #160700;
}

.account-hero-identity-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.account-hero-label,
.account-inline-label,
.account-stat-label {
  color: rgba(255, 205, 163, 0.8);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.account-hero-identity-copy strong,
.account-inline-metric strong,
.account-member-box strong {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.1;
  font-weight: 900;
}

.account-principal-id {
  color: rgba(255, 236, 221, 0.74);
  font-size: 0.95rem;
  font-weight: 700;
}

/* =======================================================
   CONFIGURACIÓN DE LA CUENTA - ESTADO
   ======================================================= */
.account-status-strip {
  margin-top: 22px;
  display: flex;
  justify-content: flex-start;
}

.account-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 180, 107, 0.26);
  background: rgba(17, 7, 0, 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  color: #ffe3c5;
  font-size: 0.94rem;
  font-weight: 700;
}

.account-status-pill.is-success {
  border-color: rgba(0, 255, 140, 0.34);
  color: #d9ffe9;
}

.account-status-pill.is-error {
  border-color: rgba(255, 99, 71, 0.42);
  color: #ffd8d0;
}

/* =======================================================
   CONFIGURACIÓN DE LA CUENTA - GRID
   ======================================================= */
.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.account-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 176, 97, 0.16);
  background:
    linear-gradient(180deg, rgba(14, 6, 0, 0.94), rgba(54, 19, 1, 0.92));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.account-card-wallet {
  grid-column: 1 / -1;
}

.account-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-card-step {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 120, 17, 0.16);
  color: #ffcb92;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-card-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.05;
}

.account-card-text,
.account-helper-text {
  margin: 0;
  color: rgba(255, 228, 202, 0.83);
  font-size: 0.95rem;
  line-height: 1.65;
}

.account-field-label {
  color: #ffe1be;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =======================================================
   CONFIGURACIÓN DE LA CUENTA - CONTROLES
   ======================================================= */
.account-avatar-editor,
.account-username-shell,
.account-spotify-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-avatar-editor {
  gap: 22px;
}

.account-avatar-preview-shell {
  display: flex;
  justify-content: center;
}

.account-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.account-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-primary-btn,
.account-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-family: var(--font-primary);
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.account-primary-btn {
  background: linear-gradient(135deg, #ff7a18, #ff4000);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 104, 11, 0.26);
}

.account-secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 198, 148, 0.18);
  color: #ffe5cb;
}

.account-primary-btn:hover,
.account-secondary-btn:hover,
.account-service-link:hover {
  transform: translateY(-2px);
}

.account-primary-btn:active,
.account-secondary-btn:active {
  transform: scale(0.97);
}

.account-primary-btn:disabled,
.account-secondary-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.account-hidden-file-input {
  display: none;
}

.account-text-input {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 177, 102, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-text-input:focus {
  border-color: rgba(255, 146, 43, 0.68);
  box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.14);
}

.account-inline-metric,
.account-member-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 201, 153, 0.12);
}

/* =======================================================
   CONFIGURACIÓN DE LA CUENTA - SPOTIFY
   ======================================================= */
.account-service-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 215, 96, 0.18), rgba(0, 0, 0, 0.34));
  border: 1px solid rgba(30, 215, 96, 0.28);
  color: #f3fff7;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.account-service-link.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.account-service-logo {
  width: 34px;
  height: 34px;
  display: inline-flex;
}

.account-service-logo svg {
  width: 100%;
  height: 100%;
  fill: #1ed760;
}

.account-service-name {
  font-size: 1rem;
  font-weight: 900;
}

/* =======================================================
   CONFIGURACIÓN DE LA CUENTA - MIEMBRO Y MÉTRICAS
   ======================================================= */
.account-member-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-stat-chip {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 191, 147, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-stat-chip strong {
  font-size: 1.35rem;
  font-weight: 900;
}

/* =======================================================
   CONFIGURACIÓN DE LA CUENTA - BILLETERA
   ======================================================= */
.wallet-methods-list {
  display: grid;
  gap: 14px;
}

.wallet-method-card,
.wallet-empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 197, 146, 0.14);
}

.wallet-empty-state {
  justify-content: center;
  min-height: 96px;
  color: rgba(255, 227, 200, 0.8);
  text-align: center;
  line-height: 1.6;
}

.wallet-method-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-method-title {
  font-size: 1.04rem;
  font-weight: 900;
}

.wallet-method-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 225, 194, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
}

.wallet-method-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =======================================================
   CONFIGURACIÓN DE LA CUENTA - FOOTER Y RESPONSIVE
   ======================================================= */
.footer {
  margin-top: 72px;
  width: min(97%, 1380px);
}

@media (max-width: 1100px) {
  .account-hero-panel,
  .account-settings-grid {
    grid-template-columns: 1fr;
  }

  .account-card-wallet {
    grid-column: auto;
  }
}

@media (max-width: 780px) {
  .dashboard-main-shell {
    width: min(100% - 20px, 1380px);
  }

  .account-hero-panel,
  .account-card {
    padding: 22px;
    border-radius: 24px;
  }

  .account-hero-identity {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-avatar-preview-ring {
    width: 132px;
    height: 132px;
  }

  .account-member-stats {
    grid-template-columns: 1fr;
  }

  .wallet-method-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   CONFIGURACIÓN DE LA CUENTA - BARRA PRINCIPAL MOBILE REAL-LIVE
   ============================================================ */
@media (hover: none) and (pointer: coarse) and (max-width: 920px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  .main-header,
  .main-header * {
    box-sizing: border-box;
  }

  .main-header {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: var(--secondary-bar-height);
    min-height: var(--secondary-bar-height);
    padding: 10px;
    gap: 0;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
    overflow: visible;
  }

  .header-logo {
    gap: 0.6rem;
    min-width: 0;
    max-width: calc(100vw - 238px);
    margin-right: 0;
    font-size: clamp(0.84rem, 3.4vw, 0.9rem);
    font-weight: 900;
    flex: 0 1 auto;
    transform: none;
  }

  .header-logo:hover {
    transform: none;
    opacity: 0.88;
  }

  .logo-circle {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
  }

  .logo-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-icon-2d,
  .login-spotify-btn,
  .header-right > :not(.lang-selector):not(.mobile-dashboard-menu-shell) {
    display: none !important;
  }

  .home-controls {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 1202;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: 6px;
    margin-right: 0;
    transform: none;
  }

  .language-selector-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .lang-btn {
    top: 0;
    min-width: 54px;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 25px;
    font-size: 0.84rem;
    line-height: 1;
    text-transform: uppercase;
  }

  .direction-btn {
    --scale: 1;
    position: relative;
    top: auto;
    left: auto;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin-left: 0;
  }

  .direction-btn .arrow-icon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 13px solid #fff;
  }

  .direction-btn.down .arrow-icon {
    transform: translate(-50%, -50%) rotate(180deg);
  }

  .header-right {
    position: relative;
    top: auto;
    right: auto;
    height: auto;
    max-width: none;
    z-index: 1201;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    transform: none;
    gap: 6px;
  }

  .header-right .lang-selector {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 25px;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-dashboard-menu-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .mobile-dashboard-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 34px;
    padding: 6px 10px;
    border: 2px solid #fff;
    border-radius: 25px;
    background: linear-gradient(180deg, #4a1a00, #120700);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    list-style: none;
    transition: transform .2s ease, opacity .2s ease, background .2s ease;
  }

  .mobile-dashboard-menu-btn::-webkit-details-marker {
    display: none;
  }

  .mobile-dashboard-menu-btn:hover,
  .mobile-dashboard-menu-btn:focus-visible {
    background: linear-gradient(180deg, #ff7c11, #7a2600);
    opacity: 0.95;
    outline: none;
    transform: scale(1.03);
  }

  #mobile-dashboard-menu.mobile-dashboard-dropdown {
    position: fixed;
    top: calc(var(--secondary-bar-height) + 8px);
    left: 50%;
    right: auto;
    width: min(310px, calc(100vw - 32px));
    max-height: 0;
    display: flex;
    padding: 12px 0;
    transform: translate(-50%, -10px);
    z-index: 99999;
  }

  #mobile-dashboard-menu.mobile-dashboard-dropdown .explorar-item {
    min-height: 36px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    box-sizing: border-box;
  }

  .mobile-dashboard-menu-shell[open] #mobile-dashboard-menu.mobile-dashboard-dropdown,
  #mobile-dashboard-menu.mobile-dashboard-dropdown.show {
    max-height: min(520px, calc(100vh - var(--secondary-bar-height) - 24px));
    overflow-y: auto;
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 360px) {
  .header-logo {
    max-width: calc(100vw - 238px);
  }

  .lang-btn {
    min-width: 50px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .mobile-dashboard-menu-btn {
    min-width: 56px;
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* ============================================================
   CONFIGURACIÓN DE LA CUENTA - INPUT MOBILE SIN AUTO-ZOOM SAFARI (REAL-LIVE)
   ============================================================ */
@media (hover: none) and (pointer: coarse) and (max-width: 920px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  .account-text-input {
    font-size: 16px !important;
  }
}

/* ============================================================
   CONFIGURACIÓN DE LA CUENTA - BARRA SECUNDARIA MOBILE REAL-LIVE
   ============================================================ */
@media (hover: none) and (pointer: coarse) and (max-width: 920px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  .secondary-bar {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .secondary-bar .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .secondary-bar .sb-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform: none;
  }

  .secondary-bar .sb-group > .language-selector:not(:first-child),
  .secondary-bar .tokens-container {
    display: none !important;
  }

  .secondary-bar .sb-group > .language-selector:first-child {
    margin-left: 0;
    padding: 8px 26px;
    text-align: center;
  }
}

/* ============================================================
   CONFIGURACIÓN DE LA CUENTA - ANCHO MOBILE SIN OVERFLOW REAL-LIVE
   ============================================================ */
@media (hover: none) and (pointer: coarse) and (max-width: 920px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  html,
  body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    position: relative;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  .secondary-bar,
  .dashboard-main-shell,
  .account-hero-panel,
  .account-hero-copy,
  .account-hero-identity,
  .account-status-strip,
  .account-settings-grid,
  .account-card,
  .account-avatar-editor,
  .account-username-shell,
  .account-spotify-panel,
  .wallet-methods-list,
  .wallet-method-card,
  .wallet-empty-state,
  .footer {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  @supports (overflow: clip) {
    html,
    body,
    .secondary-bar,
    .dashboard-main-shell,
    .account-hero-panel,
    .account-status-strip,
    .account-settings-grid,
    .account-card,
    .footer {
      overflow-x: clip !important;
    }
  }

  .dashboard-main-shell {
    width: calc(100% - 20px);
    margin: 24px auto 0;
    padding-right: 0;
    padding-left: 0;
  }

  .account-hero-panel,
  .account-settings-grid {
    grid-template-columns: 1fr;
  }

  .account-card-wallet {
    grid-column: auto;
  }

  .account-hero-panel,
  .account-card {
    padding: 22px;
    border-radius: 24px;
  }

  .account-hero-identity {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-actions-row,
  .account-member-stats,
  .wallet-method-card,
  .wallet-method-meta {
    width: 100%;
    max-width: 100%;
  }

  .account-member-stats {
    grid-template-columns: 1fr;
  }

  .wallet-method-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-primary-btn,
  .account-secondary-btn,
  .account-service-link,
  .account-text-input {
    max-width: 100%;
    box-sizing: border-box;
  }

  .account-hero-title,
  .account-card-title,
  .account-card-text,
  .account-helper-text,
  .account-principal-id,
  .account-service-name,
  .wallet-empty-state,
  .wallet-method-title,
  .wallet-method-meta {
    overflow-wrap: anywhere;
  }

  .footer {
    width: calc(100% - 20px);
    margin-top: 22px;
    margin-right: auto;
    margin-left: auto;
    padding-top: 18px;
    padding-bottom: 24px;
  }
}

/* ============================================================
   CONFIGURACIÓN DE LA CUENTA - ESTADO VERDE MOBILE CON MÁS VOLUMEN REAL-LIVE
   ============================================================ */
@media (hover: none) and (pointer: coarse) and (max-width: 920px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  .account-status-pill {
    width: 100%;
    min-height: 66px;
    padding: 12px 18px;
    line-height: 1.45;
  }
}

/* ============================================================
   CONFIGURACIÓN DE LA CUENTA - FOOTER TEXTO MOBILE EN 3 LÍNEAS REAL-LIVE
   ============================================================ */
@media (max-width: 767px), (hover: none) and (pointer: coarse) and (max-width: 980px) {
  .footer-desktop-separator {
    display: none;
  }

  .footer-mobile-break {
    display: block;
  }
}
