/* Volunteer desk — mobile-first */
.festa-volunteer-app {
  --vol-primary: #6b1d3a;
  --vol-primary-dark: #4a1228;
  --vol-bg: #faf8f5;
  --vol-surface: #ffffff;
  --vol-text: #1a2332;
  --vol-muted: #5c6b73;
  --vol-border: #dde3e8;
  --vol-success: #166534;
  --vol-warning: #b45309;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--vol-text);
  background: var(--vol-bg);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.festa-volunteer-app *,
.festa-volunteer-app *::before,
.festa-volunteer-app *::after {
  box-sizing: border-box;
}

.festa-volunteer-topbar {
  background: var(--vol-surface);
  border-bottom: 1px solid var(--vol-border);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 12px rgba(107, 29, 58, 0.08);
}

.festa-volunteer-topbar-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.festa-volunteer-brand {
  margin: 0;
  font-weight: 800;
  color: var(--vol-primary);
  font-size: 1rem;
}

.festa-volunteer-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: var(--vol-muted);
  flex: 1 1 100%;
}

.festa-volunteer-user {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  flex: 1;
}

.festa-volunteer-logout {
  border: 1px solid var(--vol-border);
  background: var(--vol-surface);
  color: var(--vol-primary);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.festa-volunteer-main {
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem 1rem 6rem;
}

.festa-volunteer-panel h1 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--vol-primary);
}

.festa-volunteer-lead {
  margin: 0 0 1rem;
  color: var(--vol-muted);
  line-height: 1.45;
}

.festa-volunteer-form label {
  display: block;
  font-weight: 600;
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.festa-volunteer-form input[type="text"],
.festa-volunteer-form input[type="password"],
.festa-volunteer-form input[type="search"] {
  width: 100%;
  padding: 0.85rem 0.9rem;
  font-size: 1.05rem;
  border: 2px solid var(--vol-border);
  border-radius: 10px;
  margin-bottom: 0.85rem;
  background: var(--vol-surface);
  color: var(--vol-text);
}

.festa-volunteer-form input:focus {
  outline: none;
  border-color: var(--vol-primary);
  box-shadow: 0 0 0 3px rgba(107, 29, 58, 0.15);
}

.festa-volunteer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.festa-volunteer-btn-primary {
  background: var(--vol-primary);
  color: #fff;
}

.festa-volunteer-btn-success {
  background: var(--vol-success);
  color: #fff;
}

.festa-volunteer-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.festa-volunteer-form-error,
.festa-volunteer-error {
  color: #b91c1c;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.festa-volunteer-results {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.festa-volunteer-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--vol-surface);
  border: 2px solid var(--vol-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.festa-volunteer-card:active {
  border-color: var(--vol-primary);
}

.festa-volunteer-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.festa-volunteer-card-code {
  font-family: ui-monospace, monospace;
  font-weight: 800;
  color: var(--vol-primary);
  font-size: 0.95rem;
}

.festa-volunteer-card-total {
  font-weight: 800;
  white-space: nowrap;
}

.festa-volunteer-card-name {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.festa-volunteer-status {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.festa-volunteer-status-pending {
  background: #fef3c7;
  color: #92400e;
}

.festa-volunteer-status-paid_cash {
  background: #dcfce7;
  color: #166534;
}

.festa-volunteer-status-fulfilled {
  background: #e0e7ff;
  color: #3730a3;
}

.festa-volunteer-back-wrap {
  margin-bottom: 1rem;
}

.festa-volunteer-back-wrap .festa-volunteer-btn {
  font-size: 1.1rem;
  min-height: 3.25rem;
}

.festa-volunteer-detail-code {
  font-family: ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--vol-primary);
  margin: 0 0 0.25rem;
}

.festa-volunteer-detail-name {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.festa-volunteer-detail-total {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.festa-volunteer-detail-section {
  background: var(--vol-surface);
  border: 1px solid var(--vol-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.festa-volunteer-detail-section h2 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vol-muted);
}

.festa-volunteer-detail-section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.festa-volunteer-detail-section li {
  margin-bottom: 0.25rem;
}

.festa-volunteer-paid-note {
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  color: #166534;
  font-weight: 600;
}

.festa-volunteer-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(250, 248, 245, 0.95);
  border-top: 1px solid var(--vol-border);
  backdrop-filter: blur(6px);
}

.festa-volunteer-action-bar .festa-volunteer-btn {
  max-width: 520px;
  margin: 0 auto;
}

.festa-volunteer-empty {
  color: var(--vol-muted);
  margin: 1rem 0 0;
}

.festa-volunteer-search-actions {
  margin-top: 1.25rem;
}

.festa-volunteer-btn-secondary {
  background: #fff;
  color: var(--vol-primary);
  border: 2px solid var(--vol-primary);
  box-shadow: 0 2px 6px rgba(107, 29, 58, 0.12);
}

.festa-volunteer-panel-create {
  padding-bottom: calc(7rem + env(safe-area-inset-bottom));
}

.festa-volunteer-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.festa-volunteer-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--vol-surface);
  border: 1px solid var(--vol-border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.festa-volunteer-qty-label {
  flex: 1;
  min-width: 0;
}

.festa-volunteer-qty-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.festa-volunteer-qty-price {
  display: block;
  color: var(--vol-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.festa-volunteer-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.festa-volunteer-qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 2px solid var(--vol-border);
  background: var(--vol-surface);
  color: var(--vol-primary);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.festa-volunteer-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.festa-volunteer-qty-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.festa-volunteer-create-total {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.festa-volunteer-qty-row-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.festa-volunteer-gf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-left: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: #f4f7f9;
  border: 1px dashed var(--vol-border);
}

.festa-volunteer-gf-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vol-muted);
}

.festa-volunteer-app.festa-theme-castanyada {
  --vol-primary: #8d3d52;
  --vol-primary-dark: #3a1c18;
  --vol-bg: #1c1410;
  --vol-surface: #2a1d16;
  --vol-text: #f4e7d4;
  --vol-muted: #cbb59a;
  --vol-border: #5a3b2c;
  font-family: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
}

.festa-volunteer-app.festa-theme-castanyada input,
.festa-volunteer-app.festa-theme-castanyada textarea {
  background: #f4e7d4;
  color: #1c120c;
}

.festa-volunteer-app.festa-theme-nadal {
  --vol-primary: #b4232e;
  --vol-primary-dark: #14352c;
  --vol-bg: #eef3f1;
  --vol-surface: #ffffff;
  --vol-text: #14352c;
  --vol-muted: #5a6b64;
  --vol-border: #c5d4cd;
  font-family: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
}

.festa-volunteer-demo-hint {
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.9rem;
  color: #5c6b73;
  background: #fff3cd;
  border-bottom: 1px solid #fde68a;
}

.festa-volunteer-demo-hint a {
  color: inherit;
}
