/* CSS Variables */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --success-dark: #15803d;
  --warning: #f59e0b;
  --danger: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--gray-900);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.tagline {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Main */
.main {
  flex: 1;
  padding: 1.5rem 0;
}

/* Steps */
.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
}

.card-subtitle {
  color: var(--gray-500);
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input:disabled {
  background: var(--gray-100);
  cursor: not-allowed;
}

.input-with-check {
  position: relative;
}

.input-status {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
}

.input-status.valid::before {
  content: '✓';
  color: var(--success);
}

.input-status.invalid::before {
  content: '✗';
  color: var(--danger);
}

/* Checkboxes */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.checkbox-label input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  background: var(--gray-300);
  color: white;
  border-radius: 50%;
  font-size: 0.625rem;
  cursor: help;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: var(--success-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover:not(:disabled) {
  background: var(--gray-100);
}

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
}

.btn-lg {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

/* Saved Users */
.saved-users {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.saved-users-label,
.selector-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.user-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.user-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.user-btn.selected {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--primary);
}

.user-info {
  text-align: left;
}

.user-name {
  font-weight: 500;
  color: var(--gray-800);
}

.user-dni {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.user-delete {
  padding: 0.25rem;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 1rem;
}

.user-delete:hover {
  color: var(--danger);
}

/* Location & Sport Selectors */
.location-selector,
.sport-selector,
.date-selector,
.time-selector,
.court-selector {
  margin-bottom: 1.5rem;
}

.location-buttons,
.date-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.location-btn,
.date-btn {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.location-btn:hover,
.date-btn:hover {
  border-color: var(--gray-300);
}

.location-btn.active,
.date-btn.active {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.date-day {
  font-weight: 600;
}

.date-full {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Sports Grid */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.sport-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.sport-btn:hover {
  border-color: var(--gray-300);
  transform: translateY(-2px);
}

.sport-btn.active {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--primary);
}

.sport-icon {
  font-size: 1.5rem;
}

.sport-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* Times Grid */
.times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
}

.time-btn {
  padding: 0.75rem 0.5rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.time-btn:hover:not(:disabled) {
  border-color: var(--gray-300);
}

.time-btn.available {
  background: rgba(22, 163, 74, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.time-btn.available:hover {
  background: rgba(22, 163, 74, 0.2);
}

.time-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.time-btn:disabled {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
}

.time-btn .courts-available {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

/* Courts Grid */
.courts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.court-btn {
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.court-btn:hover {
  border-color: var(--gray-300);
}

.court-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.court-type {
  display: block;
  font-size: 0.6875rem;
  color: var(--gray-500);
  margin-top: 0.125rem;
}

.court-btn.active .court-type {
  color: rgba(255, 255, 255, 0.8);
}

/* Weather Info */
.weather-info {
  margin-bottom: 1rem;
}

.weather-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.weather-icon {
  font-size: 1.5rem;
}

.weather-text {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.weather-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
}

/* Lighting Option */
.lighting-option {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.lighting-card {
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.lighting-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.lighting-suggestion {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.lighting-buttons {
  display: flex;
  gap: 0.5rem;
}

.lighting-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lighting-btn:hover {
  border-color: var(--gray-300);
}

.lighting-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Alerts */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
}

.alert-icon {
  flex-shrink: 0;
}

/* Companions */
.add-companion {
  margin-bottom: 1.5rem;
}

.companion-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.companion-form input {
  flex: 1;
  min-width: 100px;
}

.companions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.companion-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
}

.companion-chip:hover {
  background: var(--gray-200);
}

.companion-chip.selected {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--primary);
}

.selected-companions {
  margin-bottom: 1.5rem;
}

.players-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-badge {
  padding: 0.125rem 0.375rem;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
}

.player-remove {
  padding: 0.25rem;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
}

.player-remove:hover {
  color: var(--danger);
}

/* Reservation Summary */
.reservation-summary {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--gray-500);
}

.summary-value {
  font-weight: 500;
}

.summary-total {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--gray-300);
}

.summary-total .summary-value {
  font-size: 1.125rem;
  color: var(--primary);
}

/* Terms */
.terms-section {
  margin-bottom: 1.5rem;
}

.terms-details {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.terms-details summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-700);
}

.terms-content {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.terms-content p {
  margin-bottom: 0.5rem;
}

.terms-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.terms-links a {
  color: var(--primary);
  text-decoration: none;
}

.terms-links a:hover {
  text-decoration: underline;
}

/* Payment */
.payment-info {
  text-align: center;
  margin-bottom: 1.5rem;
}

.payment-amount {
  font-size: 1.125rem;
}

.payment-amount strong {
  font-size: 1.5rem;
  color: var(--primary);
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-option {
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.payment-option h3 {
  margin-bottom: 0.5rem;
}

.payment-option p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.payment-taquilla details {
  margin: 0;
}

.payment-taquilla summary {
  cursor: pointer;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.taquilla-content {
  margin-top: 1rem;
}

.taquilla-warning {
  padding: 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: #92400e;
  margin-bottom: 1rem;
}

/* Success */
.card-success {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  background: var(--success);
  color: white;
  border-radius: 50%;
  font-size: 2rem;
}

.card-success h2 {
  margin-bottom: 0.5rem;
}

.card-success p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.success-details {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  text-align: left;
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--gray-500);
}

.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--gray-300);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-content {
  text-align: center;
}

.loading-content .spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer-content {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.footer-content a {
  color: var(--gray-600);
}

.footer-contact {
  margin-top: 0.5rem;
}

/* Back Button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--gray-500);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: 0.5rem;
}

.btn-back:hover {
  color: var(--gray-700);
}

.btn-back::before {
  content: '←';
  font-size: 1rem;
}

/* Step Header with Back Button */
.step-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

/* Select Date Hint */
.select-date-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  color: var(--gray-500);
  font-size: 0.875rem;
  text-align: center;
  background: var(--gray-50);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
}

/* Rainy Time Slots */
.time-btn.rainy {
  position: relative;
}

.time-btn .rain-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.75rem;
}

/* Court Warning */
.court-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: #92400e;
}

.court-warning-icon {
  font-size: 1rem;
}

/* Court with Rain Warning */
.court-btn.court-rainy {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.05);
}

.court-btn.court-rainy .rain-warning {
  display: block;
  font-size: 0.6875rem;
  color: #92400e;
  margin-top: 0.25rem;
}

/* Lighting Required Warning */
.lighting-required {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
}

.lighting-required .lighting-title {
  color: #92400e;
}

.lighting-required .lighting-suggestion {
  color: #92400e;
  font-weight: 500;
}

/* No Availability Message */
.no-availability {
  text-align: center;
  padding: 1.5rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Weather daily summary improvements */
.weather-card.weather-rainy {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.weather-temp {
  font-weight: 500;
  color: var(--gray-700);
  margin-left: auto;
}

/* Receipt Card */
.receipt-card {
  padding: 0;
  overflow: hidden;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.receipt-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-confirmed {
  background: var(--success);
  color: white;
}

.status-pending {
  background: var(--warning);
  color: white;
}

.receipt-body {
  padding: 1.5rem;
}

.receipt-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.receipt-top-row {
  margin-bottom: 1.5rem;
}

.receipt-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.field-localizador {
  font-size: 1.125rem;
  color: var(--primary);
  font-family: monospace;
}

.field-facility {
  font-size: 1rem;
  color: var(--gray-700);
}

.field-price {
  color: var(--success);
  font-size: 1.125rem;
}

.receipt-separator {
  height: 1px;
  background: var(--gray-200);
  margin: 1.25rem 0;
}

.receipt-section {
  margin-bottom: 1rem;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.person-row {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.person-row:last-child {
  border-bottom: none;
}

.person-dni {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--gray-500);
  min-width: 100px;
}

.person-name {
  font-weight: 500;
  color: var(--gray-800);
}

/* QR Code */
.receipt-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.qr-container {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow);
}

.qr-container img {
  width: 100%;
  height: 100%;
}

.qr-loading {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.qr-hint {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* Receipt Branding */
.receipt-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 1rem;
}

.branding-text {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.branding-logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* Receipt Actions */
.receipt-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.receipt-actions .btn {
  flex: 1;
}

/* Footer Disclaimer */
.footer-disclaimer {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(245, 158, 11, 0.15);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: #92400e;
  display: inline-block;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
  .location-buttons {
    flex-direction: column;
  }

  .location-btn {
    min-width: 100%;
  }

  .companion-form {
    flex-direction: column;
  }

  .companion-form input,
  .companion-form button {
    width: 100%;
  }

  .lighting-buttons {
    flex-direction: column;
  }

  /* Receipt responsive */
  .receipt-header {
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .receipt-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .receipt-top-row {
    flex-direction: column;
  }

  .receipt-actions {
    flex-direction: column;
    padding: 1rem;
  }

  .person-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .person-dni {
    min-width: auto;
  }
}
