/* ============================================
   Public Pages - Modern Minimal
   ============================================ */

/* Hero */
.hero {
  text-align: center;
  margin-bottom: var(--space-6);
  padding: var(--space-4) 0;
  animation: fadeInUp 0.4s ease-out;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-1);
}

.hero .subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 400;
}

/* ============================================
   Recipient Card
   ============================================ */

.recipient-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--border);
  position: relative;
  animation: fadeInUp 0.4s ease-out 0.05s both;
}

.recipient-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.supporting-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.supporting-label svg {
  color: var(--primary);
  width: 14px;
  height: 14px;
}

.recipient-name {
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.recipient-details {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

/* Ticket Counter */
.ticket-counter-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: var(--space-6) 0;
}

.ticket-counter {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-1);
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.04em;
}

.ticket-counter .total {
  font-size: 0.35em;
  color: var(--text-muted);
  font-weight: 500;
}

.ticket-price-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-weight: 400;
}

/* Progress */
.progress-wrapper {
  margin-top: var(--space-6);
}

.progress-bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--primary);
  position: relative;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar__fill::after {
  display: none;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
  font-size: 0.8125rem;
}

.progress-stats__count {
  color: var(--text-muted);
  font-weight: 400;
}

.progress-stats__percent {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8125rem;
}

/* ============================================
   Zelle Info Card
   ============================================ */

.zelle-info-card {
  background: var(--text-primary);
  color: white;
  text-align: center;
  padding: var(--space-6);
  border: none;
  position: relative;
  animation: fadeInUp 0.4s ease-out 0.1s both;
}

.zelle-info-card::before {
  display: none;
}

.zelle-info-card:hover {
  border-color: transparent;
}

.zelle-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0.7;
  margin-bottom: var(--space-3);
}

.zelle-icon {
  width: 20px;
  height: 20px;
}

.zelle-recipient {
  font-size: clamp(1.125rem, 4vw, 1.375rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-4);
  word-break: break-all;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-copy.copied {
  background: var(--success);
  border-color: var(--success);
}

/* ============================================
   Steps Guide
   ============================================ */

.steps-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.4s ease-out 0.15s both;
}

@media (max-width: 420px) {
  .steps-guide {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius);
  text-align: center;
  transition: background var(--transition);
}

.step:hover {
  background: var(--bg-subtle);
}

.step-number {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.step-content strong {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.step-content span {
  font-size: 0.625rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ============================================
   Contribution Form
   ============================================ */

.contribution-form {
  animation: fadeInUp 0.4s ease-out 0.2s both;
}

.form-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.form-header h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.form-header svg {
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

/* ============================================
   Floating Label Form Groups
   ============================================ */

.form-group-floating {
  position: relative;
  margin-bottom: var(--space-3);
}

.form-group-floating input,
.form-group-floating select {
  width: 100%;
  height: 52px;
  padding: 22px var(--space-4) 8px;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group-floating select {
  padding-right: var(--space-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
}

.form-group-floating input:hover,
.form-group-floating select:hover {
  border-color: var(--text-light);
}

.form-group-floating input:focus,
.form-group-floating select:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
  outline: none;
}

.form-group-floating label {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.15s ease;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* Float up on focus/value */
.form-group-floating input:focus + label,
.form-group-floating input:not(:placeholder-shown) + label {
  top: 14px;
  transform: translateY(0);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group-floating input:focus + label {
  color: var(--text-primary);
}

/* Select always at top */
.form-group-floating select + label {
  top: 14px;
  transform: translateY(0);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group-floating select:focus + label {
  color: var(--text-primary);
}

/* ============================================
   Amount Display
   ============================================ */

.amount-display {
  text-align: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin: var(--space-4) 0;
}

.amount-display::before {
  content: 'Total a pagar';
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.amount-display .amount {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

/* ============================================
   Payment Reminder
   ============================================ */

.payment-reminder {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin: var(--space-4) 0;
}

.reminder-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--text-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reminder-icon svg {
  width: 16px;
  height: 16px;
  color: white;
}

.reminder-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.reminder-text strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   File Upload
   ============================================ */

.file-upload-zone {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  text-align: center;
  background: var(--bg-subtle);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.file-upload-zone:hover {
  border-color: var(--text-light);
  background: var(--bg-card);
}

.file-upload-zone.has-file {
  border-color: var(--primary);
  border-style: solid;
  background: rgba(22, 163, 74, 0.04);
}

.file-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--space-3);
  color: var(--text-muted);
  transition: color var(--transition);
}

.file-upload-zone:hover .file-upload-icon {
  color: var(--text-secondary);
}

.file-upload-text {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.file-upload-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.file-upload-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: var(--space-1);
}

/* Screenshot Preview */
.screenshot-preview-container {
  margin-top: var(--space-4);
}

.screenshot-preview-container img {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: none;
}

.screenshot-preview-container img.visible {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

/* ============================================
   Submit
   ============================================ */

.submit-wrapper {
  margin-top: var(--space-6);
}

.submit-wrapper .btn-primary {
  padding: var(--space-4) var(--space-6);
  font-size: 0.9375rem;
  border-radius: var(--radius);
}

.trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: 0.75rem;
  color: var(--text-light);
}

.trust-note svg {
  color: var(--text-light);
  width: 12px;
  height: 12px;
}

/* ============================================
   Confirmation Page
   ============================================ */

.confirmation-card {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  animation: fadeInUp 0.4s ease-out;
}

.confirmation-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  background: var(--success-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.confirmation-icon svg {
  width: 32px;
  height: 32px;
  color: var(--success);
}

.confirmation-card h1 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.confirmation-card .message {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-6);
}

.confirmation-summary {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin: var(--space-6) 0;
  text-align: left;
}

.confirmation-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
}

.confirmation-summary-row + .confirmation-summary-row {
  border-top: 1px solid var(--border-light);
}

.confirmation-summary-row:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

.confirmation-summary-row span:first-child {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.confirmation-actions {
  margin-top: var(--space-6);
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  animation: fadeInUp 0.4s ease-out;
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon svg {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

.empty-state h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================
   Animations
   ============================================ */

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

/* ============================================
   Responsive
   ============================================ */

@media (min-width: 480px) {
  .recipient-card {
    padding: var(--space-10) var(--space-8);
  }

  .contribution-form {
    padding: var(--space-8);
  }
}
