.admin-app {
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 20px 60px;
}

.admin-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-login-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(26,37,47,0.08);
  text-align: center;
}
.admin-login-card .logo-badge { margin: 0 auto 12px; }
.admin-login-card .login-form { margin-top: 18px; }
.admin-login-card .admin-link { display: block; margin-top: 18px; }

.admin-dashboard.hidden { display: none; }

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 18px;
}
.admin-header h1 { font-size: 22px; font-weight: 800; margin: 0; }
.admin-feria-sub { color: var(--text-soft); font-size: 14px; margin: 2px 0 0; font-weight: 600; }

.admin-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.admin-tab {
  background: none;
  border: none;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-soft);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.admin-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-panel h2 { font-size: 19px; font-weight: 800; margin: 0 0 4px; }

.admin-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.admin-panel-header h2 { margin: 0; }

.admin-form {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(26,37,47,0.06);
}
.admin-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }

.admin-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin: 16px 0;
  box-shadow: 0 1px 4px rgba(26,37,47,0.06);
}
.admin-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }

.admin-inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-inline-form .text-input { flex: 1; min-width: 140px; margin-bottom: 0; }

.admin-currency-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: #fff;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  margin-bottom: 4px;
}
.admin-currency-preview strong { font-family: 'Manrope', sans-serif; font-size: 22px; }

.admin-table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius-sm); box-shadow: 0 1px 4px rgba(26,37,47,0.06); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.admin-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-soft);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .btn-small { white-space: nowrap; }

.admin-toggle-row { display: flex; gap: 10px; }
.ajuste-tipo-btn { flex: 1; }
.ajuste-tipo-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.admin-toggle-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-toggle-card h3 { margin: 0 0 4px; }
.admin-toggle-card p { margin: 0; }

.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border); border-radius: 100px; transition: 0.2s;
}
.switch-slider::before {
  content: ""; position: absolute; height: 22px; width: 22px; left: 4px; top: 4px;
  background: #fff; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch input:checked + .switch-slider { background: var(--blue); }
.switch input:checked + .switch-slider::before { transform: translateX(22px); }

.cupon-generado {
  background: var(--green-bg);
  color: var(--green);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 700;
  margin-top: 14px;
  font-size: 15px;
}

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,37,47,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 360px;
}
.modal-card h3 { margin: 0 0 6px; font-size: 18px; }

@media (max-width: 480px) {
  .admin-app { padding: 0 14px 60px; }
}
