/* ---------------------------------------------------------------------- */
/* Reset & base                                                            */
/* ---------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #dcdce2;
  color: #1c1c1e;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
input, textarea { font-family: inherit; }

#viewport {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f2f2f5;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,.15);
  overflow-x: hidden;
}

/* Full width on larger screens (desktop/PC) - both the consumer app and
   the admin panel expand to fill the browser window instead of being
   boxed into the narrow mobile-app column. Actual phones (under 768px)
   keep the narrow column, since that's still correct there. */
@media (min-width: 768px) {
  #viewport {
    max-width: 100%;
    box-shadow: none;
  }
}

.hidden { display: none !important; }

/* ---------------------------------------------------------------------- */
/* Auth screens (login / register)                                        */
/* ---------------------------------------------------------------------- */
.auth-screen {
  min-height: 100vh;
  padding: 20px 24px 40px;
  background:
    radial-gradient(ellipse at 50% 100%, #7a0808 0%, #430303 38%, #180101 72%, #000 100%);
  position: relative;
}

.lang-picker {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  color: #e9e9ee;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}

.auth-logo {
  display: flex;
  justify-content: center;
  padding: 70px 10px 40px;
}
.auth-logo img { width: 220px; max-width: 70%; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-pill {
  background: #fff;
  border-radius: 28px;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 10px;
}
.input-pill input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 15px;
  background: transparent;
  color: #333;
  min-width: 0;
}
.input-pill input::placeholder { color: #9a9a9a; }
.input-icon { color: #b5b5b5; display: flex; }
.input-icon--right { cursor: pointer; }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #ddd;
  gap: 10px;
  padding: 0 4px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.checkbox input { display: none; }
.checkbox-box {
  width: 16px; height: 16px;
  border: 1.5px solid #ccc;
  border-radius: 3px;
  display: inline-block;
  position: relative;
  background: transparent;
}
.checkbox input:checked + .checkbox-box {
  background: #3b7cff;
  border-color: #3b7cff;
}
.checkbox input:checked + .checkbox-box::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.link { color: #ddd; }

.btn {
  border: none;
  border-radius: 26px;
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.btn-red {
  background: linear-gradient(90deg, #ff5757, #d92626);
  box-shadow: 0 6px 16px rgba(217,38,38,.4);
  margin-top: 6px;
}
.btn-red--dark {
  background: linear-gradient(90deg, #b32323, #6e0f0f);
  margin-top: 0;
}
.auth-switch {
  text-align: center;
  color: #e6c9c9;
  font-size: 13.5px;
  margin-top: 6px;
}

/* Language bottom sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}
.sheet {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 12px);
  animation: sheet-up .22s ease-out;
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-header {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}
.sheet-action { color: #555; }
.sheet-action--primary { color: #1a8fff; font-weight: 600; }
.sheet-list { padding: 6px 0; max-height: 50vh; overflow-y: auto; }
.sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #f2f2f2;
}
.sheet-item.is-selected { font-weight: 600; color: #111; }
.radio {
  width: 18px; height: 18px;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.radio.checked { border-color: #3b7cff; }
.radio.checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #3b7cff;
}

/* ---------------------------------------------------------------------- */
/* App chrome: topbar + bottom nav                                         */
/* ---------------------------------------------------------------------- */
.screen { min-height: 100vh; background: #f2f2f5; padding-bottom: 20px; }
.screen--with-nav { padding-bottom: 78px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-bottom: 1px solid #eee;
}
.topbar h1 {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  margin-right: 34px;
}
.topbar-back {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #f1f1f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}
.topbar-right-spacer { width: 34px; }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  background: linear-gradient(90deg, #6f5cf0, #4f7dff);
  display: flex;
  padding: 10px 4px 14px;
  z-index: 20;
}
@media (min-width: 768px) {
  .bottom-nav { max-width: 100%; }
}
.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,.65);
  font-size: 11.5px;
}
.nav-tab.is-active { color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------------- */
/* Home                                                                    */
/* ---------------------------------------------------------------------- */
.home-logo-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 12px 6px;
  background: #f2f2f5;
}
.home-logo-strip img {
  height: 40px;
  width: auto;
  max-width: 70%;
  object-fit: contain;
}

.promo-banner {
  display: block;
  margin: 6px 12px 12px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  min-height: 110px;
  max-height: 220px;
  background: #1a1440;
}
.promo-banner-track {
  display: flex;
  transition: transform .5s ease-in-out;
  width: 100%;
  height: 100%;
}
.promo-banner-photo {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  min-height: 110px;
}
.promo-banner-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.promo-banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: background .3s, width .3s;
}
.promo-banner-dot.is-active {
  background: #fff;
  width: 16px;
  border-radius: 3px;
}

.marquee {
  margin: 0 12px 12px;
  background: #fff;
  border-radius: 10px;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.marquee-icon { color: #999; flex-shrink: 0; }
.marquee-track {
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
}
.marquee-track span {
  display: inline-block;
  font-size: 12.5px;
  color: #555;
  padding-left: 100%;
  animation: marquee 16s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 12px 18px;
}
.quick-action {
  background: #fff;
  border-radius: 12px;
  padding: 14px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #555;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.qa-icon { color: #3b7cff; }

.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  margin: 0 14px 10px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  padding: 0 12px;
}
@media (min-width: 768px) {
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 220px)); }
}
.movie-card { display: block; }
.movie-poster {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #ddd;
}
.movie-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.movie-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.movie-title {
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
  color: #222;
  line-height: 1.3;
}
.movie-tags { display: flex; gap: 6px; margin-top: 6px; }
.tag {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 10px;
}
.tag--apoyar { background: #eaf1ff; color: #3b7cff; }
.tag--popular { background: #fff1e8; color: #ff7a3d; }

/* ---------------------------------------------------------------------- */
/* Apoyar screen                                                           */
/* ---------------------------------------------------------------------- */
.scroll-body { padding: 12px; }
.scroll-body--overlap { margin-top: -34px; }

.apoyar-hero {
  background: linear-gradient(120deg, #7c5cff, #4f7dff);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  margin-bottom: 16px;
}
.apoyar-hero img { width: 56px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.apoyar-hero h2 { font-size: 15px; margin: 0 0 4px; }
.apoyar-hero p { font-size: 12px; margin: 0; opacity: .85; }

.panel {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.panel--flush { padding: 0; overflow: hidden; }
.panel-divider-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 14px;
  justify-content: center;
}
.panel-divider-title::before,
.panel-divider-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e6e6ec;
}
.panel-divider-title--toggle { cursor: pointer; justify-content: space-between; }
.panel-divider-title--toggle::before,
.panel-divider-title--toggle::after { display: none; }
.chev { margin-left: auto; transition: transform .2s; }
.panel-divider-title--toggle.is-open .chev { transform: rotate(180deg); }

.movie-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.strip-item { flex-shrink: 0; width: 72px; text-align: center; }
.strip-thumb {
  position: relative;
  width: 72px; height: 96px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
}
.strip-item.is-selected .strip-thumb { border-color: #4f7dff; }
.strip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.strip-check {
  position: absolute; inset: 0;
  background: rgba(79,125,255,.55);
  display: flex; align-items: center; justify-content: center;
}
.strip-label { display: block; font-size: 10.5px; margin-top: 6px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mode-buttons { display: flex; gap: 12px; }
.btn-mode {
  flex: 1;
  border: none;
  border-radius: 24px;
  height: 46px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.btn-mode--activate { background: linear-gradient(90deg, #2ee671, #17c46a); }
.btn-mode--deactivate { background: linear-gradient(90deg, #ff8ba0, #ef4d63); }
.btn-mode:disabled { background: #e2e2e8; color: #aaa; cursor: not-allowed; }

.records-preview { margin-top: 6px; }
.see-all { display: block; text-align: center; color: #4f7dff; font-size: 13px; margin-top: 8px; }

.record-card {
  background: #fbfbfd;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.record-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 8px; }
.record-top h4 { font-size: 14px; margin: 0; font-weight: 600; }
.status-pill { font-size: 11px; padding: 3px 10px; border-radius: 10px; flex-shrink: 0; }
.status-gain { background: #e5f9ee; color: #1aa860; }
.status-loss { background: #fdeaea; color: #e6484f; }
.record-row { display: flex; justify-content: space-between; font-size: 12.5px; color: #777; padding: 3px 0; }
.record-row span:last-child { color: #333; }
.c-blue { color: #3b7cff !important; }
.c-green { color: #1aa860 !important; }
.c-orange { color: #ff8a00 !important; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px 0; }
.page-arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: #4f7dff;
  color: #fff;
  font-size: 16px;
}
.page-arrow:disabled { background: #dcdce2; color: #aaa; }
.page-label { color: #4f7dff; font-size: 14px; }

/* ---------------------------------------------------------------------- */
/* Modal (Activar / Desactivar)                                            */
/* ---------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 60;
}
.modal-sheet {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  animation: sheet-up .22s ease-out;
  max-height: 88vh;
  overflow-y: auto;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-header h3 { font-size: 18px; margin: 0; }
.modal-close {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #f1f1f4;
  display: flex; align-items: center; justify-content: center;
  color: #666;
}
.modal-movie-row {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
}
.modal-movie-row img { width: 40px; height: 52px; object-fit: cover; border-radius: 6px; }
.modal-movie-row span { font-size: 14px; font-weight: 600; }
.modal-label { font-size: 13px; color: #888; margin: 14px 0 8px; }
.perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perf-option {
  border: 1px solid #eee;
  background: #fafafc;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.perf-option.is-selected {
  background: linear-gradient(120deg, #7c5cff, #4f7dff);
  border-color: transparent;
}
.perf-option .perf-name { font-size: 13.5px; font-weight: 600; color: #333; }
.perf-option.is-selected .perf-name { color: #fff; }
.perf-option .perf-rate { font-size: 12.5px; color: #3b7cff; }
.perf-option.is-selected .perf-rate { color: #ffe27a; }

.amount-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stepper-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(120deg, #7c5cff, #4f7dff);
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}
.amount-stepper input {
  flex: 1;
  height: 42px;
  border: 1px solid #eee;
  background: #fafafc;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  outline: none;
}
.expected-gain { margin-top: 10px; font-size: 13px; color: #777; }
.expected-gain span { color: #1aa860; font-weight: 600; }

.modal-actions { display: flex; gap: 12px; margin-top: 20px; }
.btn-cancel { flex: 1; background: #f1f1f4; color: #777; }
.btn-confirm { flex: 1.4; background: linear-gradient(90deg, #7c5cff, #4f7dff); }

/* ---------------------------------------------------------------------- */
/* Actividad                                                               */
/* ---------------------------------------------------------------------- */
.activity-hero {
  background: linear-gradient(120deg, #ff5fa2, #ff3d63);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  color: #fff;
  margin-bottom: 16px;
}
.activity-hero-icon { font-size: 30px; margin-bottom: 8px; }
.activity-hero h2 { margin: 0 0 6px; font-size: 20px; }
.activity-hero p { margin: 0; font-size: 12.5px; opacity: .9; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 30px 0 10px; }
.empty-icon { margin-bottom: 14px; }
.empty-title { font-size: 14px; color: #555; margin: 0 0 4px; }
.empty-sub { font-size: 12px; color: #aaa; margin: 0; }
.empty-plain { text-align: center; color: #bbb; font-size: 13px; padding: 60px 0; }

.anuncio-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.anuncio-list-title { font-size: 14px; color: #222; margin-bottom: 4px; line-height: 1.4; }
.anuncio-list-date { font-size: 11.5px; color: #aaa; }
.anuncio-detail-title { font-size: 16px; margin: 0 0 6px; color: #222; }
.anuncio-detail-date { font-size: 11.5px; color: #aaa; margin-bottom: 14px; }
.anuncio-detail-image { width: 100%; border-radius: 8px; margin-bottom: 14px; display: block; }
.anuncio-detail-body { font-size: 13.5px; color: #444; line-height: 1.7; margin: 0; }

/* ---------------------------------------------------------------------- */
/* Comments                                                                */
/* ---------------------------------------------------------------------- */
.comment-label {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.dot-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #3b7cff;
  display: flex; align-items: center; justify-content: center;
}
.req { color: #e6484f; }
.char-count { margin-left: auto; color: #bbb; font-size: 12px; }
.comment-textarea {
  width: 100%;
  border: none;
  outline: none;
  min-height: 110px;
  padding: 14px 16px;
  font-size: 14px;
  resize: none;
}
.field-label { font-size: 13px; color: #666; margin: 16px 4px 8px; }
.field-label--first { margin-top: 0; }
.text-input {
  width: 100%;
  height: 46px;
  border: 1px solid #e6e6ec;
  background: #fff;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}
.btn-blue { background: linear-gradient(90deg, #4f8cff, #2f6dff); width: 100%; margin-top: 22px; }
.btn-black { background: #111; width: 100%; margin-top: 10px; margin-bottom: 4px; }

/* ---------------------------------------------------------------------- */
/* Mi (profile)                                                            */
/* ---------------------------------------------------------------------- */
.profile-hero {
  background: linear-gradient(120deg, #7c5cff, #4f7dff);
  padding: 26px 20px 60px;
  color: #fff;
}
.profile-hero h2 { margin: 0 0 4px; font-size: 21px; }
.profile-hero p { margin: 0; font-size: 13px; opacity: .85; }

.profile-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  margin-bottom: 14px;
}
.profile-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0; }
.profile-gear {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef0fb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.badge-pasante { background: #ffe1ee; color: #e8618c; font-size: 10.5px; padding: 2px 9px; border-radius: 10px; font-weight: 500; }
.credit-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #999; }
.credit-bar { flex: 1; height: 5px; background: #eee; border-radius: 3px; overflow: hidden; }
.credit-bar-fill { height: 100%; background: linear-gradient(90deg, #7c5cff, #4f7dff); }

.fund-actions { display: flex; gap: 12px; margin-bottom: 14px; }
.fund-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
}
.fund-btn--green { background: linear-gradient(120deg, #2ee671, #17c46a); }
.fund-btn--orange { background: linear-gradient(120deg, #ffb648, #ff8a00); }
.chev-r { margin-left: auto; opacity: .8; }

.balance-panel { padding: 16px; }
.balance-label { font-size: 12.5px; color: #888; margin-bottom: 6px; }
.balance-value { font-size: 26px; font-weight: 700; }

.list-panel { padding: 6px 16px; }
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f2f2f4;
  font-size: 14px;
}
.list-item:last-child { border-bottom: none; }
.list-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.list-icon svg { width: 17px; height: 17px; }
.list-label { flex: 1; color: #333; }
.list-chev { color: #ccc; font-size: 16px; }

/* colored icon backgrounds for list items (matched to recorded screenshots) */
.list-panel .list-item:nth-child(1) .list-icon { background: #7c6ae8; }
.list-panel .list-item:nth-child(2) .list-icon { background: #e8618c; }
.list-panel .list-item:nth-child(3) .list-icon { background: #21c7bb; }
.list-panel .list-item:nth-child(4) .list-icon { background: #37b36b; }
.list-panel .list-item:nth-child(5) .list-icon { background: #7a8cff; }
.list-panel .list-item:nth-child(6) .list-icon { background: #f0a35c; }

/* ---------------------------------------------------------------------- */
/* Recargar / Retirar / Activo                                            */
/* ---------------------------------------------------------------------- */
.gradient-panel {
  background: linear-gradient(120deg, #a86bff 0%, #6d7dff 50%, #4f8cff 100%);
  color: #fff;
  padding: 18px;
}
.gradient-panel-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 8px; }
.pill-link { background: rgba(255,255,255,.2); padding: 5px 12px; border-radius: 12px; font-size: 11.5px; }
.gradient-panel-value { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.gradient-panel-note { font-size: 11.5px; opacity: .85; line-height: 1.5; margin: 0; }

.address-box {
  background: #fff;
  border: 1px solid #e6e6ec;
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  word-break: break-all;
  color: #333;
  margin-bottom: 10px;
}

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amount-chip {
  border: 1px solid #e6e6ec;
  background: #fff;
  border-radius: 10px;
  height: 44px;
  font-size: 14px;
  color: #333;
}
.amount-chip.is-selected {
  background: linear-gradient(120deg, #7c5cff, #4f8cff);
  color: #fff;
  border-color: transparent;
}

.upload-box {
  border: 1.5px dashed #ccc;
  border-radius: 10px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  background: #fafafc;
}
.upload-plus { font-size: 26px; }
.upload-box--filled { border-style: solid; border-color: #2ee671; color: #17c46a; font-size: 13px; }

.panel-card {
  background: #fff;
  border-radius: 14px;
  padding: 4px 16px 16px;
  margin: 16px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.notes-card { padding: 14px 16px; }
.dot-list li {
  position: relative;
  font-size: 12.5px;
  color: #777;
  padding-left: 14px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.dot-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4f8cff;
}

.circle-actions { display: flex; justify-content: space-around; padding: 20px 16px; }
.circle-action { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: #444; }
.circle-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.circle-icon--green { background: linear-gradient(120deg, #2ee671, #17c46a); }
.circle-icon--orange { background: linear-gradient(120deg, #ffb648, #ff8a00); }

.finance-summary { display: flex; justify-content: space-between; text-align: center; }
.finance-summary div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.finance-summary strong { font-size: 16px; }
.finance-summary span { font-size: 11px; color: #999; }

/* ---------------------------------------------------------------------- */
/* Registros de retiros tabs                                              */
/* ---------------------------------------------------------------------- */
.tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0 20px;
}
.tab {
  padding: 14px 0;
  margin-right: 26px;
  font-size: 14px;
  color: #888;
  position: relative;
}
.tab.is-active { color: #2f6dff; font-weight: 600; }
.tab.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: #2f6dff;
}

/* ---------------------------------------------------------------------- */
/* Responsive tweaks                                                      */
/* ---------------------------------------------------------------------- */
@media (min-width: 461px) {
  body { background: #b9b9c4; }
}

/* ---------------------------------------------------------------------- */
/* Additions for the real-backend build: loading overlay, form feedback,  */
/* page transitions, upload preview, logout button, neutral status pill   */
/* ---------------------------------------------------------------------- */

.loading-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: overlay-fade-in .12s ease-out;
}
@keyframes overlay-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.spinner {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid #e3e3ea;
  border-top-color: #6f5cf0;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-in { animation: fade-in .18s ease-out; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-error, .form-success {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  animation: fade-in .18s ease-out;
}
.form-error {
  background: rgba(233, 64, 64, .12);
  color: #ffb3b3;
  border: 1px solid rgba(233,64,64,.3);
}
.auth-screen .form-error { color: #ffcaca; }
.screen .form-error {
  background: #fdeaea;
  color: #c73434;
  border: 1px solid #f6c9c9;
  margin: 12px;
}
.screen .form-success {
  background: #e5f9ee;
  color: #1aa860;
  border: 1px solid #bdeed2;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 12px;
  animation: fade-in .18s ease-out;
}

.modal-error {
  color: #e6484f;
  font-size: 12.5px;
  min-height: 16px;
  margin-top: 4px;
}

.expected-gain--loss { color: #e6484f; }
.expected-gain--loss span { color: #e6484f; }

.upload-preview {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.btn-logout {
  width: 100%;
  background: none;
  border: 1px solid #eee;
  color: #999;
  height: 46px;
  border-radius: 12px;
  margin-top: 4px;
  font-size: 14px;
}

.status-neutral { background: #eef1ff; color: #4f7dff; }

.record-screenshot {
  width: 100%;
  border-radius: 8px;
  margin-top: 10px;
  display: block;
}

.btn[disabled], button[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

/* Button press feedback - subtle scale-down, mirrors native app tap states */
.btn:active,
.btn-mode:active,
.amount-chip:active,
.perf-option:active,
.quick-action:active,
.movie-card:active .movie-poster,
.fund-btn:active,
.circle-action:active .circle-icon,
.list-item:active,
.stepper-btn:active {
  transform: scale(0.97);
}
.btn, .btn-mode, .amount-chip, .perf-option, .quick-action, .fund-btn, .stepper-btn {
  transition: transform .1s ease-out;
}
.movie-poster, .circle-icon { transition: transform .1s ease-out; }

/* ---------------------------------------------------------------------- */
/* Update-round additions: Ver más, partners, sheet close anim, settings   */
/* ---------------------------------------------------------------------- */

.see-more-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 2px 12px 20px;
  background: none;
  border: 1px solid #e6e6ec;
  color: #4f7dff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
}

.section-title--partners { margin-top: 4px; }
.partners-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 130px));
  gap: 10px;
  padding: 0 12px 20px;
}
@media (min-width: 768px) {
  .partners-row { grid-template-columns: repeat(auto-fill, minmax(100px, 130px)); }
}
.partner-card {
  background: #fff;
  border-radius: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.partner-card img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

/* Sheet closing animation - slides down instead of an abrupt full re-render */
.sheet-backdrop.is-closing { background: rgba(0,0,0,0); transition: background .18s ease-out; }
.sheet-backdrop.is-closing .sheet { animation: sheet-down .18s ease-in forwards; }
@keyframes sheet-down {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}


/* ---------------------------------------------------------------------- */
/* Apoyar tab landing (rebuilt to match the reference recording)          */
/* ---------------------------------------------------------------------- */
.apoyar-landing-hero {
  background: linear-gradient(120deg, #7c5cff, #4f7dff);
  border-radius: 16px;
  padding: 26px 20px;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}
.apoyar-landing-hero h2 {
  margin: 0 0 10px;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.apoyar-landing-hero p {
  margin: 0;
  font-size: 13px;
  opacity: .9;
  line-height: 1.5;
}

.top-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(120deg, #ff6f91, #ef4d63);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  z-index: 2;
}
.see-more-btn--link {
  display: block;
  text-decoration: none;
}

/* ---------------------------------------------------------------------- */
/* Ajustes (settings) screen                                               */
/* ---------------------------------------------------------------------- */
.ajustes-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px;
}
.ajustes-avatar-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.ajustes-avatar-btn img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.ajustes-user-label { font-size: 12px; color: #999; margin-bottom: 3px; }
.ajustes-username { font-size: 16px; font-weight: 600; color: #222; }

.list-panel--settings { margin: 0 12px 16px; padding: 4px 16px; }
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #f2f2f4;
}
.settings-item:last-child { border-bottom: none; }
.settings-item-title { font-size: 14.5px; color: #222; font-weight: 500; margin-bottom: 3px; }
.settings-item-sub { font-size: 12px; color: #999; }

.btn-logout-solid {
  display: block;
  width: calc(100% - 24px);
  margin: 8px 12px 0;
  background: linear-gradient(90deg, #ff5757, #d92626);
  color: #fff;
  border: none;
  height: 48px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
}

/* Avatar picker sheet */
.avatar-sheet { max-height: 75vh; }
.avatar-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px;
  overflow-y: auto;
}
.avatar-option {
  border: 3px solid transparent;
  border-radius: 50%;
  padding: 0;
  background: none;
  cursor: pointer;
  aspect-ratio: 1;
}
.avatar-option img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-option.is-selected { border-color: #4f7dff; }

/* Cambiar (change password) screen - shared by payment & login password */
.cambiar-card { padding: 16px; }
.cambiar-section-title { font-size: 13px; color: #999; margin-bottom: 12px; }
.cambiar-row { margin-bottom: 14px; }
.cambiar-row:last-child { margin-bottom: 0; }
.cambiar-field-label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.cambiar-input {
  width: 100%;
  height: 44px;
  border: 1px solid #e6e6ec;
  background: #fafafc;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}
.cambiar-input[readonly] { color: #999; background: #f2f2f4; }

.cambiar-notice {
  padding: 12px 14px;
  border-left: 3px solid #4f7dff;
  background: #f7f9ff;
  border-radius: 0 8px 8px 0;
  margin: 0 0 20px;
}
.cambiar-notice-title { font-size: 12.5px; font-weight: 600; color: #444; margin-bottom: 4px; }
.cambiar-notice-body { font-size: 12.5px; color: #777; line-height: 1.5; }

/* Active support position banner (Apoyar detail screen) */
.active-position-banner {
  background: #fff;
  border: 1px solid #e8ebff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.active-position-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #777;
  padding: 3px 0;
}
.active-position-row span:last-child { color: #333; font-weight: 500; }

/* Desactivar confirmation modal summary */
.deactivate-summary {
  background: #fafbff;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 6px 0 4px;
}
.deactivate-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #777;
  padding: 5px 0;
}
.deactivate-row--total {
  border-top: 1px solid #e6e6ec;
  margin-top: 4px;
  padding-top: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

/* ---------------------------------------------------------------------- */
/* "Confirmar apoyo" review step (second step of Activar/Desactivar)      */
/* ---------------------------------------------------------------------- */
.confirm-apoyo-sheet { padding: 0; overflow: hidden; }
.confirm-apoyo-header { background: linear-gradient(120deg, #7c5cff, #4f7dff); padding: 28px 20px 24px; text-align: center; color: #fff; }
.confirm-apoyo-icon { font-size: 40px; margin-bottom: 10px; }
.confirm-apoyo-header h3 { margin: 0; font-size: 19px; }
.confirm-apoyo-body { padding: 18px 20px 0; }
.confirm-apoyo-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.confirm-apoyo-row span:first-child { color: #888; }
.confirm-apoyo-row span:last-child { color: #222; font-weight: 500; text-align: right; }
.confirm-apoyo-sheet .modal-error, .confirm-apoyo-sheet .modal-actions { padding-left: 20px; padding-right: 20px; }
.confirm-apoyo-sheet .modal-actions { padding-bottom: 20px; }

/* ---------------------------------------------------------------------- */
/* Admin panel - hierarchical sidebar + data-table design, matching the   */
/* reference screenshots. Colors: teal accent #179E91, dark sidebar       */
/* #1e1f28, dark header #242c38, light content #eeedf0.                   */
/* ---------------------------------------------------------------------- */
.admin-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dfe1e4;
  padding: 24px;
}
.admin-login-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 4px;
  padding: 0 0 28px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.admin-login-logo {
  position: relative;
  background: #179E91;
  padding: 20px 22px 26px;
  margin-bottom: 30px;
}
.admin-login-logo::after {
  content: '';
  position: absolute;
  left: 0; bottom: -14px;
  border-style: solid;
  border-width: 14px 20px 0 0;
  border-color: #0d6d63 transparent transparent transparent;
}
.admin-login-badge { display: block; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.admin-login-card .form-error { margin: 0 22px 14px; }
.admin-login-card form { display: flex; flex-direction: column; gap: 16px; padding: 0 22px; }
.admin-login-card .input-pill { background: #fff; border: 1px solid #d8dbe0; border-radius: 4px; height: 46px; }
.admin-login-card .btn-red { background: #179E91; box-shadow: none; border-radius: 4px; margin-top: 4px; }

.admin-shell { min-height: 100vh; background: #eeedf0; position: relative; }

/* Slide-in/out drawer (matches "goes inside and comes back" request) -
   fixed overlay, off-screen by default, slides in over the content when
   opened via the hamburger button, closes on backdrop click, closing the
   X button, or picking any item from the menu. */
.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background .25s ease;
  z-index: 20;
}
.admin-sidebar-backdrop.is-visible {
  background: rgba(0,0,0,.45);
  pointer-events: auto;
}

.admin-sidebar {
  width: 210px;
  background: #1e1f28;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 21;
  transform: translateX(-100%);
  transition: transform .28s ease;
  box-shadow: 2px 0 12px rgba(0,0,0,.25);
}
.admin-sidebar.is-open { transform: translateX(0); }

.admin-sidebar-brand {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 18px;
  border-bottom: 1px solid #2c2d3a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-sidebar-close {
  background: none;
  border: none;
  color: #9497a6;
  font-size: 16px;
  padding: 4px 6px;
  flex-shrink: 0;
}
.admin-sidebar-section { border-bottom: 1px solid #26272f; }
.admin-sidebar-heading {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #9497a6;
  padding: 12px 16px;
  font-size: 13px;
  cursor: pointer;
}
.admin-sidebar-icon { font-size: 13px; width: 16px; }
.admin-sidebar-label { flex: 1; text-align: left; }
.admin-sidebar-chevron { font-size: 10px; transition: transform .15s; }
.admin-sidebar-section.is-expanded .admin-sidebar-chevron { transform: rotate(180deg); }
.admin-sidebar-children { display: none; flex-direction: column; padding-bottom: 6px; }
.admin-sidebar-section.is-expanded .admin-sidebar-children { display: flex; }
.admin-sidebar-child {
  padding: 9px 16px 9px 40px;
  color: #82859a;
  font-size: 12.5px;
}
.admin-sidebar-child.is-active { background: #179E91; color: #fff; }

.admin-main { min-width: 0; }
.admin-hamburger-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  padding: 0;
  margin-right: 10px;
  flex-shrink: 0;
}
.admin-hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.admin-topbar {
  background: #242c38;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.admin-topbar-title { font-size: 13.5px; font-weight: 600; }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-user-menu { position: relative; }
.admin-topbar-user {
  font-size: 12px;
  color: #cfd2db;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
}
.admin-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  min-width: 120px;
  overflow: hidden;
  z-index: 30;
}
.admin-user-dropdown.is-open { display: block; }
.admin-user-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 12.5px;
  color: #444;
  border-bottom: 1px solid #f2f2f4;
}
.admin-user-dropdown a:last-child { border-bottom: none; color: #e6484f; }
.admin-user-dropdown a:hover { background: #f7f7fa; }

.admin-profile-sheet { max-width: 420px; }
.admin-profile-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.admin-profile-row label { font-size: 12.5px; color: #666; }
.admin-profile-row input {
  height: 38px;
  border: 1px solid #e6e6ec;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  grid-column: 2;
}
.admin-profile-hint { grid-column: 2; font-size: 11px; color: #aaa; margin-top: 2px; }

.admin-breadcrumb {
  background: #fff;
  color: #999;
  font-size: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 4px;
}
.admin-refresh-btn { margin-left: auto; background: none; border: none; color: #179E91; font-size: 15px; cursor: pointer; }
.admin-body { padding: 14px; overflow-x: auto; }

.admin-welcome-banner {
  background: #fff;
  border-left: 3px solid #179E91;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 13px;
  color: #444;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.admin-welcome-banner strong { color: #e6484f; font-weight: 600; }
.admin-section-heading { font-size: 12.5px; color: #999; margin: 0 0 12px; }

.admin-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-stat-card {
  border-radius: 4px;
  padding: 16px;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.admin-stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.admin-stat-label { font-size: 12px; opacity: .92; }
.admin-stat-badge {
  background: rgba(255,255,255,.3);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 8px;
}
.admin-stat-value { font-size: 21px; font-weight: 700; }

/* Generic data table */
.admin-table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 12px; margin-bottom: 12px; }
.admin-table th {
  background: #f5f6f8;
  color: #666;
  text-align: left;
  padding: 9px 10px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid #e8e8ec;
}
.admin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f0f0f2;
  color: #333;
  vertical-align: middle;
}
.admin-table tr:hover td { background: #fafbfc; }
.admin-table-content { max-width: 260px; }
.admin-thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 3px; display: block; }
.admin-empty { text-align: center; color: #bbb; padding: 30px 0 !important; }
.admin-reject-reason { color: #e6484f; font-size: 11px; margin-top: 3px; }

.admin-pill {
  display: inline-block;
  background: #eef0fb;
  color: #5b4fd6;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
  margin: 2px 3px 2px 0;
}
.admin-referrer { color: #c8368c; }

/* Buttons */
.admin-add-btn, .admin-submit-btn {
  background: #3b7cff;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 12.5px;
  margin-bottom: 12px;
  cursor: pointer;
}
.admin-submit-btn { background: #179E91; margin-right: 8px; }
.admin-settle-btn { background: #ff8a00; color: #fff; border: none; border-radius: 3px; padding: 8px 16px; font-size: 12.5px; margin-bottom: 12px; cursor: pointer; }
.admin-reset-btn { background: #fff; border: 1px solid #d8dbe0; color: #666; border-radius: 3px; padding: 8px 16px; font-size: 12.5px; }
.admin-search-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.admin-search-input { flex: 1; min-width: 160px; height: 34px; border: 1px solid #d8dbe0; border-radius: 3px; padding: 0 10px; font-size: 12.5px; background: #fff; }
.admin-search-btn { background: #179E91; color: #fff; border: none; border-radius: 3px; padding: 0 16px; font-size: 12px; }

.admin-mini-btn {
  border: none;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 11px;
  color: #fff;
  background: #909399;
  margin: 1px 2px 1px 0;
  cursor: pointer;
}
.admin-mini-btn--green { background: #17c46a; }
.admin-mini-btn--red { background: #ef4d63; }

.admin-status-pill {
  border: none;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.admin-status-pill.is-normal { background: #e5f9ee; color: #17a860; }
.admin-status-pill.is-inactive { background: #fff6e0; color: #c98a00; }
.admin-status-pill.is-open { background: #e5f9ee; color: #17a860; }
.admin-status-pill.is-closed { background: #fdeaea; color: #e6484f; }
.admin-inline-edit-btn {
  background: none;
  border: none;
  color: #179E91;
  font-size: 11px;
  cursor: pointer;
  margin-left: 3px;
}
.admin-mini-btn--yellow { background: #ffb648; }
.admin-mini-btn--blue { background: #3b7cff; }

.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 0; }
.admin-page-btn { width: 26px; height: 26px; border-radius: 3px; border: 1px solid #d8dbe0; background: #fff; color: #555; font-size: 13px; }
.admin-page-btn:disabled { color: #ccc; }
.admin-page-label { font-size: 12px; color: #666; }

/* 系统参数 variable-style settings table */
.admin-var-table { background: #fff; border: 1px solid #eee; border-radius: 4px; margin-bottom: 14px; overflow: hidden; }
.admin-var-header, .admin-var-row {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f2f2f4;
}
.admin-var-header { background: #f5f6f8; color: #888; font-size: 11.5px; font-weight: 600; }
.admin-var-title { color: #333; font-size: 12.5px; }
.admin-var-name { color: #bbb; font-size: 11px; }
.admin-var-input {
  border: 1px solid #d8dbe0;
  border-radius: 3px;
  padding: 7px 10px;
  font-size: 12.5px;
  width: 100%;
  box-sizing: border-box;
}
.admin-toggle {
  width: 42px; height: 22px;
  border-radius: 11px;
  background: #ccc;
  border: none;
  position: relative;
  cursor: pointer;
  justify-self: start;
}
.admin-toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left .15s;
}
.admin-toggle.is-on { background: #179E91; }
.admin-toggle.is-on .admin-toggle-knob { left: 22px; }
.admin-var-static { color: #666; font-size: 12.5px; }

.admin-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef0fb;
  color: #5b4fd6;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.admin-permission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.admin-permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #444;
}
.admin-permission-item input { width: 15px; height: 15px; }

.admin-settings-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 14px;
  border-bottom: 1px solid #e6e6ec;
}
.admin-settings-tab {
  background: none;
  border: none;
  padding: 9px 14px;
  font-size: 12.5px;
  color: #777;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.admin-settings-tab.is-active { color: #179E91; font-weight: 600; border-bottom-color: #179E91; }

.admin-banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.admin-banner-slide {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #eee;
}
.admin-banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-banner-delete {
  position: absolute;
  bottom: 4px; left: 4px; right: 4px;
  background: #ef4d63;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 11px;
  padding: 4px 0;
}
.admin-banner-add {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  border: 1px dashed #c8cbd4;
  border-radius: 6px;
  color: #999;
  font-size: 12px;
  cursor: pointer;
}

.admin-richtext-area {
  width: 100%;
  min-height: 220px;
  border: 1px solid #d8dbe0;
  border-radius: 4px;
  padding: 12px;
  font-size: 13px;
  box-sizing: border-box;
  font-family: inherit;
  margin-bottom: 12px;
  resize: vertical;
}
.admin-actions-row { display: flex; gap: 8px; }
.admin-setting-label { display: block; font-size: 12.5px; color: #666; margin-bottom: 8px; }

/* Modals (add/edit forms) */
.admin-form-field { margin-bottom: 14px; }
.admin-form-field label { display: block; font-size: 12.5px; color: #666; margin-bottom: 6px; }
.admin-form-field input, .admin-form-field select, .admin-form-field textarea {
  width: 100%;
  border: 1px solid #d8dbe0;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 13px;
  box-sizing: border-box;
  font-family: inherit;
}
.admin-form-field textarea { min-height: 90px; resize: vertical; }

/* 团队记录 flat list rows */
.admin-team-list { background: #fff; border-radius: 4px; padding: 4px 0; }
.admin-team-row {
  padding: 10px 14px;
  font-size: 12px;
  color: #555;
  border-bottom: 1px solid #f2f2f4;
  line-height: 1.6;
}

/* 产品列表 new-product inline form */
.admin-new-product-form {
  background: #fff;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}
.admin-new-product-form .admin-form-field { margin-bottom: 0; min-width: 140px; flex: 1; }
