.fundmelden-page {
  min-height: 100vh;
  padding: 24px 16px 48px;
}

.fundmelden-header {
  max-width: 900px;
  margin: 0 auto 24px;
}

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  text-decoration: none;
  font-weight: 600;
}

.fundmelden-header h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.92;
}

.fundmelden-main {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.card {
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.steps-list {
  margin: 0 0 16px 18px;
  padding: 0;
  line-height: 1.7;
}

.tips-box {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.5;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.photo-counter {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
}

.capture-hint {
  margin: 0 0 16px;
  line-height: 1.6;
}

.capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  user-select: none;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  background: rgba(255, 255, 255, 0.16);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
}

.min-warning {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  background: rgba(255, 180, 0, 0.14);
  border: 1px solid rgba(255, 180, 0, 0.25);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.preview-item {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.12);
}

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
}

.preview-footer span {
  font-size: 0.95rem;
  font-weight: 600;
}

.remove-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 90, 90, 0.18);
}

.analysis-actions {
  margin-top: 18px;
}

.analyze-btn,
.publish-btn,
.reset-btn {
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.analyze-btn:hover,
.publish-btn:hover,
.reset-btn:hover {
  transform: translateY(-1px);
}

.analyze-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.analyze-btn {
  width: 100%;
  background: rgba(80, 180, 120, 0.22);
}

.status-text {
  margin-bottom: 14px;
  line-height: 1.6;
}

.progress-wrap {
  display: grid;
  gap: 8px;
}

.progress-bar {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
  background: linear-gradient(90deg, rgba(80, 180, 120, 0.9), rgba(120, 220, 160, 0.95));
}

.progress-label {
  font-size: 0.95rem;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.result-image-wrap {
  margin-bottom: 18px;
}

.result-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.12);
}

.result-fields {
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group span {
  font-weight: 700;
}

.field-group input,
.field-group textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: inherit;
  opacity: 0.6;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.publish-btn {
  background: rgba(80, 180, 120, 0.22);
}

.reset-btn {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .fundmelden-page {
    padding: 18px 12px 36px;
  }

  .card {
    padding: 16px;
    border-radius: 18px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .capture-actions,
  .result-actions {
    flex-direction: column;
  }

  .action-btn,
  .publish-btn,
  .reset-btn {
    width: 100%;
  }

  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}