/* MercadilloGeek 2.7 · lectura cómoda, categorías y seguridad de cuenta */

/* Menú principal con una escala uniforme */
.mg-topbar nav > a,
.mg-topbar .mg-account,
.mg-topbar .mg-login,
.mg-topbar .mg-signup,
.mg-topbar .mg-users-nav,
.mg-topbar .mg-sold-nav,
.mg-topbar .mg-publish-button {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 40px;
}
.mg-topbar .mg-message-nav { font-size: 18px; }
.mg-search input, .mg-search button { font-size: 13px; }
.mg-account > span { display: inline !important; font-size: 13px; font-weight: 800; }

/* Categorías con identidad cromática */
.mg-categories a { font-size: 13px; font-weight: 800; }
.mg-category-chip, .mg-product-category { border: 1px solid transparent; }
.mg-category-chip { box-shadow: inset 0 -2px 0 #0000000b; }
.mg-cat-all { background: #eef0f5; color: #404653 !important; }
.mg-cat-gaming { background: #eee8ff; border-color: #d7c9ff; color: #6543b5 !important; }
.mg-cat-pc-y-hardware { background: #e4edff; border-color: #c6d6ff; color: #295fbd !important; }
.mg-cat-moviles { background: #e6f8ed; border-color: #c3e9d1; color: #187346 !important; }
.mg-cat-audio { background: #fff0dc; border-color: #f1d3aa; color: #a75a17 !important; }
.mg-cat-retro { background: #ffe7f1; border-color: #f2c7d8; color: #ad3b70 !important; }
.mg-cat-maker { background: #dff7f5; border-color: #bce6e2; color: #15756d !important; }
.mg-category-chip.active { border-color: currentColor !important; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px currentColor; }
.mg-categories .mg-cat-all.active { background: #eef0f5; }
.mg-categories .mg-cat-gaming.active { background: #eee8ff; }
.mg-categories .mg-cat-pc-y-hardware.active { background: #e4edff; }
.mg-categories .mg-cat-moviles.active { background: #e6f8ed; }
.mg-categories .mg-cat-audio.active { background: #fff0dc; }
.mg-categories .mg-cat-retro.active { background: #ffe7f1; }
.mg-categories .mg-cat-maker.active { background: #dff7f5; }
.mg-product-category { border-radius: 999px; display: inline-block !important; font-size: 11px !important; font-weight: 850 !important; padding: 5px 8px; }
.mg-sold-link, .mg-sold-nav { font-size: 13px !important; }

/* Eliminar microtipografía en perfiles, anuncios, pedidos e informes */
.mg-label, .mg-listing-status, .mg-admin-chip, .mg-users-chip { font-size: 10.5px; }
.mg-dashboard small, .mg-my-listings small, .mg-admin-reports small, .mg-admin-listings small,
.mg-orders small, .mg-order-detail small, .mg-sales-report small, .mg-public-profile small,
.mg-users-directory small, .mg-messages-page small, .mg-backup-center small { font-size: 11px; line-height: 1.45; }
.mg-dashboard p, .mg-my-listings p, .mg-admin-reports p, .mg-admin-listings p,
.mg-orders p, .mg-order-detail p, .mg-sales-report p { font-size: 12px; line-height: 1.55; }
.mg-dashboard-shortcuts b, .mg-admin-shortcuts b { font-size: 14px; }
.mg-dashboard-shortcuts small, .mg-admin-shortcuts small { font-size: 11px; margin-top: 4px; }
.mg-manage-info p { font-size: 12px; }
.mg-manage-actions a, .mg-dashboard-grid aside a, .mg-view-public-profile { font-size: 12px; }
.mg-profile-stats span { font-size: 12px; }
.mg-profile-stats small { font-size: 11px; }
.mg-thread-link b { font-size: 13px; }
.mg-thread-link span, .mg-thread-link p { font-size: 11px; }
.mg-message-stream b { font-size: 11px; }
.mg-message-stream p { font-size: 13px; }
.mg-message-stream time { font-size: 10px; }
.mg-reply-form label, .mg-reply-form small { font-size: 11px; }
.mg-card .mg-seller b { font-size: 11px; }
.mg-card .mg-seller small, .mg-card .mg-seller > span, .mg-card .mg-meta time { font-size: 10px; }
.mg-primary, .mg-secondary, .mg-form-card label, .mg-register-card label, .mg-login-card label { font-size: 13px; }

/* Cierre de sesión */
.mg-logout-form { margin-left: auto; }
.mg-logout-form button { align-items: center; background: #fff2f3; border: 1px solid #efc7cb; border-radius: 10px; color: #a43d48; cursor: pointer; display: flex; font-size: 12px; font-weight: 850; gap: 7px; min-height: 42px; padding: 9px 12px; white-space: nowrap; }
.mg-logout-form button:hover { background: #a43d48; color: #fff; }
.mg-logout-form span { font-size: 18px; line-height: 1; }
.mg-avatar-form { margin-left: 0; }

/* Cambio de contraseña */
.mg-account-security { background: linear-gradient(135deg, #f5f7ff, #fbfcff); border: 1px solid #dce1f5; border-radius: 17px; margin: 24px 0 30px; overflow: hidden; }
.mg-security-copy { align-items: center; border-bottom: 1px solid #dfe3f1; display: grid; gap: 13px; grid-template-columns: 50px 1fr auto; padding: 20px 22px; }
.mg-security-icon { align-items: center; background: linear-gradient(145deg, #5d70e8, #3b4ebd); border-radius: 13px; color: #fff; display: flex; font-size: 24px; height: 50px; justify-content: center; transform: rotate(-3deg); width: 50px; }
.mg-security-copy h2 { font-size: 23px; margin: 4px 0; }
.mg-security-copy p { color: #6f7581; margin: 0; }
.mg-email-verified { background: #dff6e8; border: 1px solid #acd9bd; border-radius: 999px; color: #167144; font: 850 10px monospace; padding: 8px 11px; }
.mg-account-security > form { display: grid; gap: 14px; padding: 22px; }
.mg-account-security label { display: grid; font-size: 12px; font-weight: 800; gap: 7px; }
.mg-account-security input { background: #fff; border: 1px solid #d7dce9; border-radius: 9px; font-size: 14px; min-height: 45px; outline: 0; padding: 11px 12px; width: 100%; }
.mg-account-security input:focus { border-color: #5b70f5; box-shadow: 0 0 0 3px #5b70f51a; }
.mg-password-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mg-security-button { background: #202532; border: 0; border-radius: 10px; color: #fff; cursor: pointer; font-size: 13px; font-weight: 850; justify-self: start; min-height: 45px; padding: 12px 17px; }
.mg-google-password-note { background: #fff; border: 1px solid #e1e4ed; border-radius: 9px; color: #686e7a; margin: 0 !important; padding: 11px; }

/* Verificación de correo */
.mg-verification-page { align-items: center; display: flex; flex-direction: column; min-height: 680px; padding-block: 70px 90px; text-align: center; }
.mg-verification-icon { align-items: center; background: linear-gradient(145deg, #202637, #0d111a); border-radius: 22px; box-shadow: 0 16px 40px #1015222b; color: #fff; display: flex; font-size: 42px; height: 100px; justify-content: center; margin-bottom: 25px; position: relative; transform: rotate(-3deg); width: 100px; }
.mg-verification-icon i { align-items: center; background: #79f0ae; border: 4px solid #fff; border-radius: 50%; bottom: -10px; color: #0b4228; display: flex; font-size: 15px; font-style: normal; height: 36px; justify-content: center; position: absolute; right: -10px; width: 36px; }
.mg-verification-page h1 { font-size: 46px; letter-spacing: -2.5px; margin: 10px 0; }
.mg-verification-page > p { color: #6f747e; font-size: 14px; line-height: 1.65; max-width: 660px; }
.mg-verification-steps { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin: 25px 0; max-width: 780px; width: 100%; }
.mg-verification-steps span { align-items: center; background: #f6f7fa; border: 1px solid #e2e4ea; border-radius: 12px; display: flex; font-size: 12px; font-weight: 750; gap: 9px; padding: 13px; text-align: left; }
.mg-verification-steps b { align-items: center; background: #5b70f5; border-radius: 50%; color: #fff; display: flex; flex: 0 0 28px; height: 28px; justify-content: center; }
.mg-verification-page details { background: #fff; border: 1px solid #dfe1e7; border-radius: 12px; margin: 4px 0 18px; max-width: 560px; padding: 14px; width: 100%; }
.mg-verification-page summary { color: #4355be; cursor: pointer; font-size: 13px; font-weight: 850; }
.mg-verification-page details form { display: grid; gap: 11px; margin-top: 15px; text-align: left; }
.mg-verification-page details label { display: grid; font-size: 12px; font-weight: 800; gap: 6px; }
.mg-verification-page details input { border: 1px solid #d9dce5; border-radius: 9px; font-size: 16px; min-height: 46px; padding: 11px; }
.mg-verification-page > small { color: #7d828c; font-size: 11px; margin-top: 16px; }
.mg-notice-password_short, .mg-notice-password_mismatch, .mg-notice-password_current,
.mg-notice-password_rate, .mg-notice-verification_invalid, .mg-notice-verification_mail_error,
.mg-notice-password_changed_mail_error { background: #fff1f2 !important; border-color: #efc7cb !important; color: #9c3542 !important; }

@media (max-width: 820px) {
  .mg-topbar .mg-users-nav, .mg-topbar .mg-sold-nav { font-size: 13px !important; height: auto; padding: 9px 11px !important; width: auto; }
  .mg-topbar .mg-users-nav::before, .mg-topbar .mg-sold-nav::before { content: none; }
  .mg-topbar .mg-publish-button { font-size: 13px; min-width: auto; padding: 10px 12px; }
  .mg-topbar .mg-publish-button::before { content: none; }
  .mg-profile-head { align-items: center; }
  .mg-logout-form { order: 3; }
  .mg-avatar-form { order: 4; }
}

@media (max-width: 620px) {
  .mg-topbar nav { max-width: calc(100% - 145px); }
  .mg-topbar .mg-account { flex-basis: auto; height: 40px; padding: 4px 9px !important; width: auto; }
  .mg-topbar .mg-users-nav, .mg-topbar .mg-sold-nav { display: inline-flex !important; }
  .mg-profile-head { align-items: flex-start; }
  .mg-logout-form { margin-left: 0; width: 100%; }
  .mg-logout-form button { justify-content: center; width: 100%; }
  .mg-security-copy { align-items: start; grid-template-columns: 44px 1fr; padding: 17px; }
  .mg-security-icon { font-size: 20px; height: 44px; width: 44px; }
  .mg-email-verified { grid-column: 1 / -1; justify-self: start; }
  .mg-account-security > form { padding: 17px; }
  .mg-password-row { grid-template-columns: 1fr; }
  .mg-security-button { justify-self: stretch; width: 100%; }
  .mg-verification-page { min-height: 600px; padding-block: 45px 65px; }
  .mg-verification-page h1 { font-size: 38px; }
  .mg-verification-steps { grid-template-columns: 1fr; }
  .mg-verification-page .mg-secondary { width: 100%; }
}
