/* LotsoStore · Mi cuenta (propuesta de Claude, 2026-10-30).
   Mismos tonos que el borrador de la web (marino, azul, amarillo) con Plus Jakarta Sans.
   Se aplica sobre el marcado real de cuenta.html. */

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --card-raised: #ffffff;
  --ink: #0b1b3a;
  --ink-2: #53617b;
  --ink-3: #8a94a8;
  --sep: #e1e6f0;
  --fill: #e9eef8;
  --fill-2: #d5deed;
  --accent: #0a5cff;
  --link: #0a5cff;
  --coin: #ffe600;
  --coin-ink: #0b1b3a;
  --green: #19623c;
  --green-dot: #22a861;
  --scrim: rgba(11, 27, 58, 0.45);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1b3a; --card: #12264e; --card-raised: #1a315b; --ink: #f5f7ff; --ink-2: #a9b7d6; --ink-3: #7a8bb0;
  --sep: #2b4066; --fill: #1a315b; --fill-2: #2b4066; --link: #9dbbff; --green: #5fe08a; --scrim: rgba(3, 10, 24, 0.6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1b3a; --card: #12264e; --card-raised: #1a315b; --ink: #f5f7ff; --ink-2: #a9b7d6; --ink-3: #7a8bb0;
    --sep: #2b4066; --fill: #1a315b; --fill-2: #2b4066; --link: #9dbbff; --green: #5fe08a; --scrim: rgba(3, 10, 24, 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a, .link-button { color: var(--link); text-decoration: none; }
.link-button { border: 0; background: none; padding: 0; min-height: 44px; font-weight: 700; font-size: 14px; }
:is(a, button, input, select, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Barra superior: logo azul en claro, tienda y tema a la derecha */
.account-topbar, .account-page, .account-legal { width: min(1000px, 100% - 32px); margin-inline: auto; }
.account-topbar { display: flex; align-items: center; gap: 10px; min-height: 76px; }
.account-brand img { height: 40px; width: auto; }
:root:not([data-theme="dark"]) .account-brand img { filter: brightness(0) saturate(100%) invert(28%) sepia(99%) saturate(4515%) hue-rotate(213deg); }
:root[data-theme="dark"] .account-brand img { filter: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .account-brand img { filter: none; } }
.back-store { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--sep); color: var(--ink); font-size: 14px; font-weight: 700; }
.back-store::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.5-5h15L21 9'/%3E%3Cpath d='M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0'/%3E%3Cpath d='M5 12v8h14v-8'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.5-5h15L21 9'/%3E%3Cpath d='M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0'/%3E%3Cpath d='M5 12v8h14v-8'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E") center / contain no-repeat; }
.back-store:hover { border-color: var(--fill-2); }
.preview-theme { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sep); background: var(--card); display: grid; place-items: center; }
.preview-theme svg { width: 18px; height: 18px; }

.account-page { padding: 8px 0 48px; }
.account-loading { color: var(--ink-2); padding: 40px 0; }

/* Columna lateral (en móvil queda arriba) */
.account-hero { padding: 8px 0 20px; }
.account-identity { display: flex; align-items: center; gap: 16px; }
.account-identity > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; flex: 1; min-width: 0; }
.account-kicker { display: none; }
#heroUsername { grid-column: 1; margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.account-identity > div > p:last-child { grid-column: 1; margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }

.avatar-edit { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 16px; }
#heroAvatar { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: var(--fill); }
.avatar-edit-badge { position: absolute; right: -6px; bottom: -6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; border: 3px solid var(--bg); transition: transform 0.15s var(--ease); }
.avatar-edit-badge svg { width: 13px; height: 13px; }
.avatar-edit:hover .avatar-edit-badge { transform: scale(1.08); }

.account-session-menu { grid-column: 2; grid-row: 1 / span 2; position: relative; }
.account-session-menu summary { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.account-session-menu summary::-webkit-details-marker { display: none; }
.account-session-menu summary img { width: 16px; opacity: 0.6; }
:root[data-theme="dark"] .account-session-menu summary img { filter: invert(1); }
.account-session-menu summary:hover { background: var(--fill); }
.account-hero-actions { position: absolute; right: 0; top: 44px; z-index: 5; min-width: 200px; padding: 6px; background: var(--card-raised); border: 1px solid var(--sep); border-radius: 12px; box-shadow: 0 12px 32px rgba(11, 27, 58, 0.16); }
.account-hero-actions > * { display: flex; width: 100%; min-height: 40px; align-items: center; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-size: 14px; font-weight: 600; text-align: left; }
.account-hero-actions > *:hover { background: var(--fill); }
#signOutButton { color: #d92d20; }
#signOutButton:disabled { opacity: 0.45; cursor: default; }

.account-tabs { display: flex; gap: 6px; margin: 0 0 24px; overflow-x: auto; scrollbar-width: none; }
.account-tabs button { flex: 1 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: 14px; font-weight: 700; text-align: center; transition: background-color 0.15s var(--ease), color 0.15s var(--ease); }
.account-tabs button:hover { color: var(--ink); }
.account-tabs button[aria-pressed="true"] { background: #0a5cff; color: #fff; }

/* Encabezados */
.account-orders-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.25; }
.section-heading { margin: 0 0 16px; }

/* LotsoCoins */
.coin-balance { display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--coin); color: var(--coin-ink); }
.coin-balance::before { content: "L"; grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--coin-ink); color: var(--coin); font-size: 13px; font-weight: 800; }
.coin-balance strong { font-size: 16px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.coin-balance span { grid-column: 2; font-size: 11px; font-weight: 600; opacity: 0.75; white-space: nowrap; }
#coinExchangeRate { display: none; }

/* Pedidos */
#accountOrdersList { display: grid; gap: 14px; }
.account-order { display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--card); border: 1px solid var(--sep); border-radius: 12px; }
.account-order > :is(.purchase-product, .purchase-state) { padding-block: 18px 16px; }
.purchase-product { display: flex; gap: 14px; align-items: center; min-width: 0; padding-left: 18px; }
.purchase-product > img, .account-order .tile { width: 60px; height: 60px; flex: none; border-radius: 10px; object-fit: contain; background: var(--fill); padding: 4px; }
.purchase-product > div { min-width: 0; }
.purchase-product p { margin: 0; font-size: 16px; font-weight: 700; }
.purchase-product span, .purchase-product small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.purchase-state { display: flex; flex-direction: column-reverse; align-items: flex-end; justify-content: center; gap: 8px; padding: 0 18px 0 12px; }
.purchase-state strong { font-size: 20px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-order-status { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.account-order-status.notified { background: #fff1cc; color: #6b4e00; }
.account-order-status.completed { background: #dcf4e5; color: #19623c; }
.account-order-status.verified { background: #e3ecff; color: #0a3fb3; }
:root[data-theme="dark"] .account-order-status.notified { background: rgba(255, 201, 92, 0.16); color: #ffc95c; }
:root[data-theme="dark"] .account-order-status.completed { background: rgba(95, 224, 138, 0.14); color: #5fe08a; }
:root[data-theme="dark"] .account-order-status.verified { background: rgba(157, 187, 255, 0.16); color: #9dbbff; }
.account-order-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin: 0 18px; padding: 6px 0; border-top: 1px solid var(--sep); }
.account-order-actions button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--link); font-size: 14px; font-weight: 700; }
.account-order-actions button:hover { background: var(--fill); }
.account-orders-empty { margin: 0; padding: 20px; background: var(--card); border: 1px solid var(--sep); border-radius: 12px; color: var(--ink-2); font-size: 15px; }
.history-controls:empty { display: none; }

/* Ayuda: contacto por WhatsApp y preguntas frecuentes */
.account-help[hidden] { display: none; }
.help-contact { padding: 20px; background: var(--card); border: 1px solid var(--sep); border-radius: 12px; }
.help-contact p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.help-faq { display: grid; gap: 10px; margin-top: 16px; }
.help-faq details { background: var(--card); border: 1px solid var(--sep); border-radius: 12px; }
.help-faq summary { padding: 16px 18px; font-size: 15px; font-weight: 700; cursor: pointer; }
.help-faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* Trajes de la tienda: encuadre del pecho hacia arriba sobre el color de su rareza */
.tile { position: relative; overflow: hidden; }
:is(.purchase-product, .sheet-product) .tile img { position: absolute; left: 50%; top: 2%; width: 210%; height: auto; max-width: none; transform: translateX(-50%); }

/* LotsoCoins: movimientos */
#coinMovements { background: var(--card); border: 1px solid var(--sep); border-radius: 12px; }
.coin-movement { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 18px; padding: 14px 0; }
.coin-movement + .coin-movement { border-top: 1px solid var(--sep); }
.coin-movement div strong { display: block; font-size: 15px; font-weight: 700; }
.coin-movement span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.coin-movement > strong { font-size: 16px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }

/* Perfil */
#accountForm { display: grid; gap: 16px; max-width: 680px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.avatar-picker { padding: 16px 18px 18px; background: var(--card); border: 1px solid var(--sep); border-radius: 12px; }
.avatar-picker > legend { display: none; }
.avatar-picker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.avatar-picker-head strong { font-size: 15px; font-weight: 700; }
.account-avatar-arrow { display: none; }
.account-avatar-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px; }
.avatar-choice { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--fill); box-shadow: 0 0 0 2px transparent; transition: box-shadow 0.15s var(--ease); }
.avatar-choice img { width: 100%; height: 100%; object-fit: cover; }
.avatar-choice:hover { box-shadow: 0 0 0 2px var(--fill-2); }
.avatar-choice[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }

.profile-card { display: grid; gap: 16px; padding: 18px; background: var(--card); border: 1px solid var(--sep); border-radius: 12px; }
.account-field { display: grid; gap: 6px; margin: 0; }
.account-field > span { font-size: 13px; font-weight: 700; color: var(--ink); }
.account-field input, .account-phone-row input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--sep); border-radius: 10px; background: var(--bg); font-size: 16px; font-weight: 500; transition: border-color 0.15s var(--ease); }
:is(.account-field, .game-account-row) input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.account-field input::placeholder { color: var(--ink-3); }
.account-phone-row { display: flex; align-items: stretch; gap: 8px; }
.country-select { position: relative; flex: none; display: inline-flex; }
.country-select select { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.country-select-display { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; border: 1px solid var(--sep); border-radius: 10px; background: var(--bg); font-size: 15px; font-weight: 600; }
.country-select-display img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.profile-note { margin: -6px 4px 8px; font-size: 13px; color: var(--ink-2); }

/* Cuentas de juego: tarjetas con el color de cada plataforma */
.profile-games { display: grid; gap: 12px; }
.profile-games-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.profile-games-head p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
#gameAccountsEditor { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.game-account-row { --platform: #2b2b2b; position: relative; display: grid; gap: 12px; align-content: start; padding: 14px 16px; border-radius: 12px; background: transparent; border: 1.5px dashed var(--fill-2); transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease); }
.game-account-row:has([data-platform="playstation"]) { --platform: #0070d1; }
.game-account-row:has([data-platform="xbox"]) { --platform: #107c10; }
.game-account-row:has([data-platform="nintendo_switch"]) { --platform: #e60012; }
:root[data-theme="dark"] .game-account-row:has([data-platform="epic_games"]) { --platform: #c9d3ea; }
.game-account-row:hover { border-color: var(--ink-3); }
.game-account-row:has(input[type="checkbox"]:checked) { background: var(--card); border: 1px solid var(--sep); box-shadow: inset 4px 0 0 var(--platform); }
.game-account-switch { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 700; cursor: pointer; }
.game-account-switch input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.game-account-row:has(input[type="checkbox"]:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.game-account-switch::after { content: "+ Añadir"; justify-self: end; color: var(--link); font-size: 14px; font-weight: 700; }
.game-account-row:has(:checked) .game-account-switch::after { content: "Quitar"; color: var(--ink-3); font-weight: 600; font-size: 13px; }
.game-platform-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--platform) 12%, var(--card)); }
.game-platform-icon img { width: 24px; height: 24px; object-fit: contain; }
.game-account-row:not(:has(:checked)) .game-platform-icon { filter: grayscale(1); opacity: 0.6; }
.game-account-row > input[data-account] { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--sep); border-radius: 10px; background: var(--bg); font-size: 16px; font-weight: 600; }

.account-status { margin: 0; font-size: 14px; color: var(--ink-2); }
.account-status:empty { display: none; }
.save-account { width: 100%; min-height: 50px; padding: 0 32px; border: 0; border-radius: 999px; background: var(--coin); color: var(--coin-ink); font-size: 15px; font-weight: 800; transition: transform 0.1s var(--ease), filter 0.15s var(--ease); }
.save-account:hover { filter: brightness(0.97); }
.save-account:active { transform: scale(0.98); }

.account-legal { padding: 24px 0 40px; border-top: 1px solid var(--sep); }
.account-legal p { margin: 0 0 8px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }

/* Ventana de pedido y «Corregir datos» */
.sheet { width: min(460px, 100% - 32px); max-height: min(720px, 100dvh - 48px); padding: 0; border: 1px solid var(--sep); border-radius: 16px; background: var(--card); color: var(--ink); overflow: auto; box-shadow: 0 24px 60px rgba(11, 27, 58, 0.25); }
.sheet::backdrop { background: var(--scrim); }

/* Móvil */
@media (max-width: 600px) {
  .account-topbar { min-height: 64px; }
  .account-brand img { height: 32px; }
  .back-store { padding: 0 14px; }
  .account-orders-heading h2 { font-size: 20px; white-space: nowrap; }
  .coin-balance { padding: 4px 12px 4px 4px; }
  .coin-balance::before { width: 24px; height: 24px; font-size: 12px; }
  .coin-balance span { font-size: 10px; }
  .account-order { grid-template-columns: minmax(0, 1fr); }
  .account-order > .purchase-product { padding: 16px 16px 8px; }
  .account-order > .purchase-state { flex-direction: row; justify-content: space-between; align-items: center; padding: 0 16px 14px 90px; }
  .account-order-actions { margin: 0 16px; }
  .account-phone-row { flex-wrap: nowrap; }
  .save-account { position: sticky; bottom: 12px; box-shadow: 0 8px 24px rgba(11, 27, 58, 0.18); }
  .sheet { width: 100%; max-width: none; max-height: calc(100dvh - 24px); margin: auto 0 0; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}

/* PC: columna lateral con avatar, nombre y pestañas */
@media (min-width: 900px) {
  .account-topbar, .account-page, .account-legal { width: min(1000px, 100% - 64px); }
  #accountView:not([hidden]) { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 48px; align-items: start; }
  .account-hero { grid-column: 1; grid-row: 1; padding: 16px 0 24px; }
  .account-identity { flex-direction: column; align-items: flex-start; gap: 16px; }
  .account-identity > div { width: 100%; }
  .account-tabs { grid-column: 1; grid-row: 2; flex-direction: column; margin: 0; padding: 0 0 24px; border-bottom: 1px solid var(--sep); }
  .account-tabs button { text-align: left; }
  :is(.account-orders, .account-coins-history, .account-layout, .account-help) { grid-column: 2; grid-row: 1 / span 3; padding-top: 16px; }
  .account-orders-heading { margin-bottom: 20px; }
  .account-orders-heading h2, .section-heading h2 { font-size: 26px; }
  .profile-card { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .profile-card > label[for="accountUsername"] { grid-column: 1 / -1; max-width: calc(50% - 8px); }
  .save-account { width: auto; justify-self: end; }
  .account-status { text-align: right; }
}

@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in 0.25s var(--ease); }
  .sheet[open]::backdrop { animation: scrim-in 0.2s var(--ease); }
  @media (max-width: 600px) { .sheet[open] { animation: sheet-up 0.3s var(--ease); } }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(8px); } }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  @keyframes scrim-in { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Claude 2026-11-01: saldo arriba de «Movimientos» en la pestaña LotsoCoins. */

/* Web real (2026-11-01): clases que genera account.js y que la vista previa no tenía. */
.account-avatar-choice { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--fill); box-shadow: 0 0 0 2px transparent; transition: box-shadow 0.15s var(--ease); cursor: pointer; }
.account-avatar-choice img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-avatar-choice:hover { box-shadow: 0 0 0 2px var(--fill-2); }
.account-avatar-choice[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.account-order-actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--link); font-size: 14px; font-weight: 700; text-decoration: none; }
.account-order-actions a:hover { background: var(--fill); }
.account-order-clock { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 3px; }
.account-order-status.pending { background: #e3ecff; color: #0a3fb3; }
.account-order-status.cancelled, .account-order-status.expired { background: var(--fill); color: var(--ink-2); }
:root[data-theme="dark"] .account-order-status.pending { background: rgba(157, 187, 255, 0.16); color: #9dbbff; }
.coin-balance #coinExchangeRate { display: none; }
.history-controls { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.history-controls button { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--sep); background: var(--card); color: var(--ink); font: 700 14px var(--font); cursor: pointer; }
.history-controls button[hidden] { display: none; }
.signed-out-view { padding: 48px 0; }
.signed-out-view h1 { font-size: 28px; font-weight: 800; margin: 6px 0 8px; }
.signed-out-view p { color: var(--ink-2); }
.primary-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; margin-top: 12px; border-radius: 999px; background: var(--coin); color: var(--coin-ink); font-weight: 800; text-decoration: none; }
.account-admin-link { display: block; padding: 10px 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.account-admin-link span { color: var(--ink-2); font-weight: 600; margin-left: 6px; }
/* Selector de país (country-flags.js crea un botón y un menú propios). */
.country-select { position: relative; }
.country-select select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.country-select-button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 1; border-radius: inherit; }
.country-select-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.country-select-menu { position: absolute; z-index: 100; top: calc(100% + 6px); left: 0; width: min(320px, calc(100vw - 40px)); padding: 8px; border: 1px solid var(--sep); border-radius: 12px; background: var(--card-raised); box-shadow: 0 16px 40px rgba(11, 27, 58, 0.18); }
.country-select-menu[hidden] { display: none; }
.country-search { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--sep); border-radius: 8px; background: var(--fill); color: var(--ink); font: inherit; }
.country-options { max-height: min(280px, 45vh); overflow-y: auto; overscroll-behavior: contain; margin-top: 6px; }
.country-option { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: 600 14px var(--font); }
.country-option:hover, .country-option[aria-selected="true"] { background: var(--fill); }
.country-option img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }
.country-option-code { color: var(--ink-2); }
.country-empty { margin: 0; padding: 12px 9px; color: var(--ink-2); }

.account-order-actions .account-order-change { cursor: pointer; }
