/* Fuente y base */
:root {
  --bg: #0b0b0d;
  --bg-soft: #121217;
  --text: #e9e6db;
  --muted: #b6b1a4;
  --gold: #d4af37;
  --gold-strong: #b8860b;
  --shadow: rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color: var(--text);
  background: linear-gradient(120deg, #0a0a0d 0%, #0d0d12 70%, #0f0f14 100%);
}

/* Orbes dorados de fondo */
.bg-orbs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  width: 35vmax; height: 35vmax;
  background: radial-gradient( circle at 30% 30%, rgba(212,175,55,.35), rgba(184,134,11,.1) 60%, transparent 70% );
  filter: blur(40px); opacity: .55; mix-blend-mode: screen; animation: float 18s ease-in-out infinite;
}
.orb-1 { top: -10vmax; left: -5vmax; }
.orb-2 { bottom: -15vmax; right: -10vmax; animation-delay: 4s; }
.orb-3 { top: 40%; left: 60%; animation-delay: 8s; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-2vmax) } }

/* Navegación flotante */
.site-header { position: sticky; top: 0; z-index: 1000; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 1.25rem; margin: .75rem auto; max-width: 1080px;
  background: rgba(18,18,23,.55);
  border: 1px solid rgba(212,175,55,.18);
  box-shadow: 0 10px 30px var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: saturate(140%) blur(12px);
  border-radius: 16px;
}
.brand { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--text); letter-spacing: .4px; }
.brand span { color: var(--gold); }
.nav-links { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; padding: .5rem .75rem; border-radius: 12px; transition: color .2s ease, background .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(212,175,55,.14); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; padding: 8rem 1.25rem 5rem; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient( 1200px 420px at 50% 0%, rgba(212,175,55,.14), transparent 60% );
}
.hero-content { max-width: 1080px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.08; margin: 0 0 1rem; }
.hero p { font-size: clamp(1rem, 2.6vw, 1.2rem); color: var(--muted); margin: 0 auto 2rem; max-width: 680px; }
.cta { display: inline-flex; gap: .75rem; }
/* App download centering */
.app-download { max-width: 1080px; margin: 0 auto; text-align: center; }
.app-download .playstore-button { margin-top: .5rem; }

.btn { display: inline-block; text-decoration: none; border-radius: 14px; padding: .8rem 1.15rem; font-weight: 600; letter-spacing: .2px; }
.btn-primary {
  color: #1a1a1d;
  background: linear-gradient(135deg, #f5d76e 0%, #d4af37 40%, #caa433 100%);
  box-shadow: 0 12px 28px rgba(212,175,55,.25), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { color: var(--text); border: 1px solid rgba(212,175,55,.25); background: rgba(212,175,55,.08); }
.btn-secondary:hover { background: rgba(212,175,55,.18); }

/* Uiverse-style: wicked-fly-52 (adaptado) */
.btn-android-uiverse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.25rem;
  border-radius: 14px;
  color: #0b0b0d;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 50%, #5be7ff 100%);
  box-shadow: 0 12px 28px rgba(120,255,214,.25), inset 0 1px 0 rgba(255,255,255,.5);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-android-uiverse::before {
  content: '';
  position: absolute;
  inset: -40% -25% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), rgba(255,255,255,0));
  filter: blur(40px);
  opacity: .35;
  transform: translate3d(0,0,0);
  pointer-events: none;
}
.btn-android-uiverse:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 36px rgba(120,255,214,.28), inset 0 1px 0 rgba(255,255,255,.55);
}
.btn-android-uiverse:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
.btn-android-uiverse .icon {
  width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
}

/* Posición flotante para Android (similar a reCAPTCHA badge) */
.android-float { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
@media (max-width: 640px) { .android-float { bottom: 16px; right: 16px; } }

/* Admin button variant */
.btn-admin { display:inline-flex; align-items:center; gap:.5rem; padding:.55rem .9rem; border-radius:12px; border:1px solid rgba(212,175,55,.28); background:linear-gradient(135deg, rgba(212,175,55,.12), rgba(212,175,55,.06)); color:var(--text); box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 8px 20px rgba(0,0,0,.18); transition:background .2s ease, border-color .2s ease, transform .2s ease; }
.btn-admin:hover { background:linear-gradient(135deg, rgba(212,175,55,.18), rgba(212,175,55,.08)); border-color:rgba(212,175,55,.45); transform:translateY(-1px); }
#admin-panel-btn .icon { width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; color:rgb(212,175,55); }

/* Dropzone dorada */
.dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.5rem; padding:1rem; border:2px dashed rgba(212,175,55,.35); background: rgba(212,175,55,.08); border-radius: 12px; cursor:pointer; text-align:center; }
.dropzone .dz-icon { font-size: 1.6rem; color: var(--gold); }
.dropzone .dz-text { color: var(--muted); }
.dropzone .dz-file { color: var(--gold); font-weight: 600; }
.dropzone.dragover { background: rgba(212,175,55,.15); border-color: rgba(212,175,55,.55); }

/* Checks dorados */
.modal-card .checkbox { display:flex; align-items:center; gap:.5rem; padding:.35rem .6rem; border:1px solid rgba(212,175,55,.18); border-radius:10px; background: rgba(212,175,55,.06); }
.modal-card .checkbox:hover { border-color: rgba(212,175,55,.35); background: rgba(212,175,55,.12); }
.modal-card input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); }
.modal-card .checkbox span { font-weight: 600; }

/* Secciones */
.section { padding: 4rem 1.25rem; }
.section h2 { max-width: 1080px; margin: 0 auto 1.75rem; font-size: clamp(1.6rem, 4vw, 2.2rem); text-align: center;}

/* Cards Servicios */
.cards { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: linear-gradient(180deg, rgba(20,20,25,.75), rgba(16,16,21,.75));
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 16px; padding: 1.25rem; box-shadow: 0 10px 30px var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.55); border-color: rgba(212,175,55,.35); }
.card .icon { color: var(--gold); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(212,175,55,.1); border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(212,175,55,.25); margin-bottom: .75rem; }
.card h3 { margin: .25rem 0 .5rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }

/* Ventajas */
.feature-list { max-width: 1080px; margin: 0 auto; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.feature-list li { background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.18); border-radius: 12px; padding: .75rem 1rem; color: var(--text); display: flex; align-items: center; gap: .5rem; }
.check { color: var(--gold); font-weight: 700; }

/* Contacto */
.contact-form { max-width: 720px; margin: 0 auto; background: rgba(20,20,25,.6); border: 1px solid rgba(212,175,55,.18); border-radius: 16px; padding: 1.25rem; box-shadow: 0 10px 30px var(--shadow); }
.field { display: grid; gap: .35rem; margin-bottom: .85rem; }
.field label { color: var(--muted); font-size: .9rem; }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid rgba(212,175,55,.18); color: var(--text); background: rgba(12,12,16,.6);
}
.field input::placeholder, .field textarea::placeholder { color: #8e8a7f; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(212,175,55,.45); box-shadow: 0 0 0 3px rgba(212,175,55,.14); }

/* Functions Grid */
.functions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.function-card {
  background: rgba(18,18,23,.6);
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.function-card:hover {
  border-color: rgba(212,175,55,.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.function-card.available {
  border-color: rgba(76,175,80,.3);
}

.function-card.unavailable {
  opacity: 0.6;
  border-color: rgba(244,67,54,.3);
}

.function-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,175,55,.1);
  border-radius: 12px;
  color: var(--accent);
}

.function-card.available .function-icon {
  background: rgba(76,175,80,.1);
  color: #4caf50;
}

.function-card.unavailable .function-icon {
  background: rgba(244,67,54,.1);
  color: #f44336;
}

.function-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.function-status {
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
  color: var(--muted);
}

.function-card.available .function-status {
  color: #4caf50;
}

.function-card.unavailable .function-status {
  color: #f44336;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Footer */
.footer { padding: 2rem 1.25rem 3rem; text-align: center; color: var(--muted); }

/* Responsive */
@media (max-width: 920px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: .75rem 1rem; }
  .nav-toggle { display: inline-block; }
  .nav-links { position: absolute; right: 1rem; top: calc(100% + .5rem); background: rgba(18,18,23,.85); border: 1px solid rgba(212,175,55,.18); backdrop-filter: blur(10px); border-radius: 12px; padding: .5rem; display: none; flex-direction: column; }
  .nav-links.show { display: flex; }
  .hero { padding: 6rem 1rem 3.5rem; }
  .cards { grid-template-columns: 1fr; }
  .cta { flex-direction: column; }
}

/* Modal overlay improvements and dark/gold theme */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-overlay.show { display: flex; }
.modal-card {
  background: #000;
  color: #d4af37;
  border: 1px solid #d4af37;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
  max-width: 640px;
  width: 92%;
  padding: 1rem;
}
.modal-header h3 { margin: 0; }
.modal-footer .btn { min-width: 100px; }

/* Créditos Modal: layout más holgado y botones dorados */
.modal-body { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.modal-body .user-row { display: flex; gap: .5rem; align-items: baseline; color: var(--muted); }
.modal-body .user-row .gold { color: var(--gold); font-weight: 600; }
.modal-body .form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; align-items: end; }
.modal-body .form-group { display: grid; gap: .4rem; }
.form-control { width: 100%; padding: .6rem .8rem; border-radius: 10px; border: 1px solid rgba(212,175,55,.28); background: rgba(18,18,23,.72); color: var(--text); }
.form-control::placeholder { color: #8e8a7f; }
.form-control:focus { outline: none; border-color: rgba(212,175,55,.55); box-shadow: 0 0 0 3px rgba(212,175,55,.16); }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; padding: .85rem 1.25rem; border-top: 1px solid rgba(212,175,55,.18); }

/* Botones dorados */
.btn-gold { color: #1a1a1d; background: linear-gradient(135deg, #f5d76e 0%, #d4af37 40%, #caa433 100%); border: 1px solid rgba(212,175,55,.45); box-shadow: 0 12px 28px rgba(212,175,55,.25), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-gold:hover { filter: brightness(1.06); }

/* Botón fantasma dorado */
.btn-ghost { color: var(--text); border: 1px solid rgba(212,175,55,.28); background: rgba(212,175,55,.08); }
.btn-ghost:hover { background: rgba(212,175,55,.18); border-color: rgba(212,175,55,.45); }

/* Notice modal variants */
.modal-card.notice-success { border-color: #28a745; }
.modal-card.notice-error { border-color: #dc3545; }

/* Spinner fix: only the icon spins, not the text */
.spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.spinner::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #d4af37;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin-rotate 0.8s linear infinite;
}
@keyframes spin-rotate { to { transform: rotate(360deg); } }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(212,175,55,.18);
  background: linear-gradient(180deg, rgba(212,175,55,.08), rgba(212,175,55,.02));
}
/* Account grid/cards inside modal */
.account-grid {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}
.account-card {
  background: #1a1a1d;
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 8px 24px var(--shadow);
}
/* Check icons for booleans */
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  margin-right: 6px;
}
.check-true {
  background: #1b5e20;
  color: #c8e6c9;
}
.check-false {
  background: #b71c1c;
  color: #ffcdd2;
}
/* Badge styles for status messages */
.badge {
  display: inline-block;
  padding: .4rem .6rem;
  border-radius: 12px;
  font-size: .85rem;
  border: 1px solid rgba(212,175,55,.25);
  background: rgba(212,175,55,.08);
  color: var(--text);
}
.badge-success {
  border-color: rgba(76,175,80,.35);
  background: rgba(76,175,80,.12);
  color: #c8e6c9;
}
.badge-error {
  border-color: rgba(244,67,54,.35);
  background: rgba(244,67,54,.12);
  color: #ffcdd2;
}
/* List styling inside modal */
#account-functions li, #account-flags li {
  display: flex;
  align-items: center;
}
#account-functions li span.label, #account-flags li span.label {
  flex: 1;
}
#account-photo-status { margin-top: .75rem; }
.modal-header h3 { font-weight: 700; letter-spacing: .2px; }
/* Comparativa de fotos */
.photo-compare { display:flex; gap:1rem; align-items:center; }
.photo-col { display:flex; flex-direction:column; align-items:center; gap:.4rem; color: var(--muted); }
.photo-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212,175,55,.35);
  box-shadow: 0 6px 18px var(--shadow);
  background: #2a2a2d;
}
.photo-col.photo-new .photo-circle {
  border-color: #d4af37;
  box-shadow: 0 8px 22px rgba(212,175,55,.25);
}
.photo-circle img { width:100%; height:100%; object-fit:cover; display:block; }
.photo-col small { color: var(--muted); }
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Footer */
.footer { padding: 2rem 1.25rem 3rem; text-align: center; color: var(--muted); }

/* Responsive */
@media (max-width: 920px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: .75rem 1rem; }
  .nav-toggle { display: inline-block; }
  .nav-links { position: absolute; right: 1rem; top: calc(100% + .5rem); background: rgba(18,18,23,.85); border: 1px solid rgba(212,175,55,.18); backdrop-filter: blur(10px); border-radius: 12px; padding: .5rem; display: none; flex-direction: column; }
  .nav-links.show { display: flex; }
  .hero { padding: 6rem 1rem 3.5rem; }
  .cards { grid-template-columns: 1fr; }
  .cta { flex-direction: column; }
}

/* Modal overlay styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none; /* use display:flex to show */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-card {
  background: #1a1a1d;
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 14px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(212,175,55,.18);
  background: linear-gradient(180deg, rgba(212,175,55,.08), rgba(212,175,55,.02));
}
/* Account grid/cards inside modal */
.account-grid {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}
.account-card {
  background: #1a1a1d;
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 8px 24px var(--shadow);
}
/* Check icons for booleans */
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  margin-right: 6px;
}
.check-true {
  background: #1b5e20;
  color: #c8e6c9;
}
.check-false {
  background: #b71c1c;
  color: #ffcdd2;
}
/* Badge styles for status messages */
.badge {
  display: inline-block;
  padding: .4rem .6rem;
  border-radius: 12px;
  font-size: .85rem;
  border: 1px solid rgba(212,175,55,.25);
  background: rgba(212,175,55,.08);
  color: var(--text);
}
.badge-success {
  border-color: rgba(76,175,80,.35);
  background: rgba(76,175,80,.12);
  color: #c8e6c9;
}
.badge-error {
  border-color: rgba(244,67,54,.35);
  background: rgba(244,67,54,.12);
  color: #ffcdd2;
}
/* List styling inside modal */
#account-functions li, #account-flags li {
  display: flex;
  align-items: center;
}
#account-functions li span.label, #account-flags li span.label {
  flex: 1;
}
#account-photo-status { margin-top: .75rem; }
.modal-header h3 { font-weight: 700; letter-spacing: .2px; }
/* Loading spinner */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8em;
}
.loading-spinner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-spinner-circle {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background-color: #db9334;
  margin: 0 5px;
  animation: loading-spinner 1s ease-in-out infinite;
}
.loading-spinner-circle:nth-child(2) { animation-delay: 0.2s; }
.loading-spinner-circle:nth-child(3) { animation-delay: 0.4s; }
.loading-spinner-circle:nth-child(4) { animation-delay: 0.6s; }
.loading-spinner-circle:nth-child(5) { animation-delay: 0.8s; }
@keyframes loading-spinner {
  0% { transform: scale(1); opacity: 1; }
  20% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* Button loading state */
.btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.9;
}
.btn.loading::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Optional: button progress bar style (use class .loading-bar instead of .loading) */
.btn.loading-bar {
  position: relative;
  pointer-events: none;
  opacity: 0.95;
}
.btn.loading-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, rgba(212,175,55,0.25) 0%, rgba(212,175,55,0.85) 50%, rgba(212,175,55,0.25) 100%);
  background-size: 200% 100%;
  animation: loadingBar 1s linear infinite;
}
@keyframes loadingBar {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

/* Modal pop animation on open */
.animate-pop {
  animation: pop 0.18s ease-out;
}
@keyframes pop {
  0% { transform: scale(0.98); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Admin Users page: dark table with golden text */
.admin-users-card { background:#0d0d0d; color:#d4af37; }
.admin-users-card .controls .input { background:#111; color:#d4af37; border:1px solid rgba(212,175,55,.35); }
.admin-users-card .btn { background:rgba(212,175,55,.12); border-color:rgba(212,175,55,.35); color:#d4af37; }
.admin-users-card .btn:hover { background:rgba(212,175,55,.18); }
.admin-users-card .badge { background:rgba(212,175,55,.08); border:1px solid rgba(212,175,55,.35); color:#d4af37; }
.admin-users-card .table-wrap { background:#0b0b0b; border:1px solid rgba(212,175,55,.25); border-radius:8px; }

#admin-users-table { width:100%; background:#0e0e0e; color:#d4af37; }
#admin-users-table thead th { position:sticky; top:0; z-index:2; background:#151515; color:#d4af37; }
#admin-users-table th, #admin-users-table td { padding:.5rem .75rem; border-bottom:1px solid rgba(212,175,55,.18); }
#admin-users-table tbody tr:hover { background:rgba(212,175,55,.08); }

/* Admin actions dropdown (professional card style) */
.actions-dropdown { position: relative; display: inline-block; }
.dropdown-toggle { display:inline-flex; align-items:center; gap:.4rem; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin-top: .25rem;
  background: #1a1a1d;
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  padding: .25rem 0;
  z-index: 50;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .75rem;
  color: var(--text);
  cursor: pointer;
}
.dropdown-item:hover { background: rgba(212,175,55,.08); }
.cf-icon { width:16px; height:16px; display:inline-flex; align-items:center; justify-content:center; }

/* Loader: Calm Earwig (minimal ring) */
.loader-calm {
  --size: 22px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 3px solid rgba(244,129,32,.18);
  border-right-color: #F48120;
  display: inline-block;
  animation: loaderSpin .9s linear infinite;
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

/* Botón flotante de Empower */
.empower-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  animation: slideInRight 0.3s ease-out;
}

.empower-btn-link {
  text-decoration: none;
  display: block;
}

.empower-btn-content {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.empower-btn-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.5);
}

.empower-icon {
  font-size: 24px;
  animation: pulse 2s infinite;
}

.empower-text {
  color: #0b0b0d;
  font-weight: 600;
  line-height: 1.2;
}

.empower-title {
  font-size: 13px;
  font-weight: 700;
}

.empower-subtitle {
  font-size: 11px;
  opacity: 0.9;
}

.empower-arrow {
  color: #0b0b0d;
  font-size: 18px;
  font-weight: bold;
  margin-left: 8px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Redes Sociales */
.social { text-align: center; position: relative; z-index: 1; }
.social-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}
.social-content p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.btn-telegram {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(34, 158, 217, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8em;
}
.loading-spinner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-spinner-circle {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background-color: #db9334;
  margin: 0 5px;
  animation: loading-spinner 1s ease-in-out infinite;
}
.loading-spinner-circle:nth-child(2) { animation-delay: 0.2s; }
.loading-spinner-circle:nth-child(3) { animation-delay: 0.4s; }
.loading-spinner-circle:nth-child(4) { animation-delay: 0.6s; }
.loading-spinner-circle:nth-child(5) { animation-delay: 0.8s; }
@keyframes loading-spinner {
  0% { transform: scale(1); opacity: 1; }
  20% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* Button loading state */
.btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.9;
}
.btn.loading::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Optional: button progress bar style (use class .loading-bar instead of .loading) */
.btn.loading-bar {
  position: relative;
  pointer-events: none;
  opacity: 0.95;
}
.btn.loading-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, rgba(212,175,55,0.25) 0%, rgba(212,175,55,0.85) 50%, rgba(212,175,55,0.25) 100%);
  background-size: 200% 100%;
  animation: loadingBar 1s linear infinite;
}
@keyframes loadingBar {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

/* Modal pop animation on open */
.animate-pop {
  animation: pop 0.18s ease-out;
}
@keyframes pop {
  0% { transform: scale(0.98); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Admin Users page: dark table with golden text */
.admin-users-card { background:#0d0d0d; color:#d4af37; }
.admin-users-card .controls .input { background:#111; color:#d4af37; border:1px solid rgba(212,175,55,.35); }
.admin-users-card .btn { background:rgba(212,175,55,.12); border-color:rgba(212,175,55,.35); color:#d4af37; }
.admin-users-card .btn:hover { background:rgba(212,175,55,.18); }
.admin-users-card .badge { background:rgba(212,175,55,.08); border:1px solid rgba(212,175,55,.35); color:#d4af37; }
.admin-users-card .table-wrap { background:#0b0b0b; border:1px solid rgba(212,175,55,.25); border-radius:8px; }

#admin-users-table { width:100%; background:#0e0e0e; color:#d4af37; }
#admin-users-table thead th { position:sticky; top:0; z-index:2; background:#151515; color:#d4af37; }
#admin-users-table th, #admin-users-table td { padding:.5rem .75rem; border-bottom:1px solid rgba(212,175,55,.18); }
#admin-users-table tbody tr:hover { background:rgba(212,175,55,.08); }

/* Botón flotante de Empower */
.empower-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  animation: slideInRight 0.3s ease-out;
}

.empower-btn-link {
  text-decoration: none;
  display: block;
}

.empower-btn-content {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.empower-btn-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.5);
}

.empower-icon {
  font-size: 24px;
  animation: pulse 2s infinite;
}

.empower-text {
  color: #0b0b0d;
  font-weight: 600;
  line-height: 1.2;
}

.empower-title {
  font-size: 13px;
  font-weight: 700;
}

.empower-subtitle {
  font-size: 11px;
  opacity: 0.9;
}

.empower-arrow {
  color: #0b0b0d;
  font-size: 18px;
  font-weight: bold;
  margin-left: 8px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Redes Sociales */
.social { text-align: center; position: relative; z-index: 1; }
.social-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}
.social-content p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.btn-telegram {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(34, 158, 217, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-telegram:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(34, 158, 217, 0.5);
  filter: brightness(1.05);
}

.btn-telegram svg {
  width: 24px;
  height: 24px;
}

/* Botón flotante Telegram */
.telegram-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  color: #0b0b0d;
  background: linear-gradient(135deg, #9be2ff 0%, #2AABEE 45%, #229ED9 100%);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 12px 28px rgba(34,158,217,.28), inset 0 1px 0 rgba(255,255,255,.55);
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.telegram-float::before {
  content: '';
  position: absolute;
  inset: -40% -25% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), rgba(255,255,255,0));
  filter: blur(40px);
  opacity: .35;
  transform: translate3d(0,0,0);
  pointer-events: none;
}
.telegram-float:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 36px rgba(34,158,217,.32), inset 0 1px 0 rgba(255,255,255,.6);
}
.telegram-float:active {
  transform: translateY(0);
  filter: brightness(.98);
}
.telegram-float svg {
  width: 24px;
  height: 24px;
  color: #0b0b0d;
}
