/* ===== APP NAV ===== */
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
}

.app-nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--glow-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.app-nav-links {
  display: flex;
  gap: 8px;
}

.app-nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.app-nav-link:hover,
.app-nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ===== APP MAIN ===== */
.app-main {
  min-height: calc(100vh - 65px - 97px);
  padding: 60px 24px 80px;
}

/* ===== FORM PAGE ===== */
.form-page,
.track-page,
.confirmation-page,
.admin-page {
  max-width: 760px;
  margin: 0 auto;
}

.form-header {
  margin-bottom: 48px;
}

.form-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 16px 0 16px;
  letter-spacing: -0.02em;
}

.form-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* ===== INTAKE FORM ===== */
.intake-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-section {
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 32px;
}

.form-section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-pink);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.field-hint {
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-body);
}

.field-input {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.field-input:focus {
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.1);
}

.field-input::placeholder {
  color: var(--text-muted);
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.field-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236a6a7e' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field-select option {
  background: #1a1a28;
  color: var(--text-primary);
}

/* ===== FILE DROP ===== */
.file-drop {
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.file-drop:hover,
.file-drop.drag-over {
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(192, 132, 252, 0.04);
}

.file-drop-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.file-drop-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.file-drop-link {
  color: var(--accent-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.file-drop-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.file-item {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===== CHECKBOXES ===== */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bg-secondary);
  transition: border-color 0.2s, background 0.2s;
}

.checkbox-item:hover {
  border-color: rgba(192, 132, 252, 0.3);
}

.checkbox-item input[type="checkbox"] {
  accent-color: var(--accent-purple);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked ~ .checkbox-label {
  color: var(--text-primary);
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

/* ===== TIMELINE ===== */
.timeline-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.timeline-option {
  cursor: pointer;
}

.timeline-option input[type="radio"] {
  display: none;
}

.timeline-card {
  padding: 20px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  background: var(--bg-secondary);
  text-align: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
}

.timeline-option input:checked + .timeline-card {
  border-color: rgba(192, 132, 252, 0.5);
  background: rgba(192, 132, 252, 0.06);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.1);
}

.timeline-days {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--glow-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-purple);
  margin-top: 6px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b9d, #c084fc);
  color: white;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.btn-full {
  width: 100%;
  text-align: center;
}

.btn-primary.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

/* ===== STATUS BADGES ===== */
.status-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-submitted { background: rgba(96, 165, 250, 0.15); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.25); }
.status-in_review { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.25); }
.status-in_progress { background: rgba(192, 132, 252, 0.15); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.25); }
.status-ready { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.25); }
.status-delivered { background: rgba(52, 211, 153, 0.2); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.35); }

/* ===== CONFIRMATION ===== */
.confirmation-page {
  text-align: center;
  padding-top: 20px;
}

.confirmation-icon {
  font-size: 3rem;
  background: var(--glow-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.confirmation-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 16px 0 20px;
  letter-spacing: -0.02em;
}

.confirmation-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.confirmation-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.conf-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.conf-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
}

.conf-value {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.confirmation-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== TRACK PAGE ===== */
.track-form {
  margin-bottom: 48px;
}

.track-input-row {
  display: flex;
  gap: 12px;
}

.track-input-row .field-input {
  flex: 1;
}

/* ===== ORDERS LIST ===== */
.orders-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.order-card-id {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

/* ===== PROGRESS TRACKER ===== */
.order-progress {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}

.progress-step.active .progress-dot {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
}

.progress-step.current .progress-dot {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  box-shadow: 0 0 12px rgba(255, 107, 157, 0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 107, 157, 0.6); }
  50% { box-shadow: 0 0 16px rgba(255, 107, 157, 0.8); }
}

.progress-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.progress-step.active .progress-label {
  color: var(--text-secondary);
}

.progress-step.current .progress-label {
  color: var(--accent-pink);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  min-width: 20px;
  transition: background 0.3s;
}

.progress-line.active {
  background: var(--accent-purple);
}

/* ===== ORDER META ===== */
.order-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.order-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.meta-value {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== ORDER NOTES ===== */
.order-notes {
  background: rgba(192, 132, 252, 0.06);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 10px;
  padding: 16px 20px;
}

.notes-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-purple);
  margin-bottom: 8px;
}

.notes-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.order-files {
  padding-top: 4px;
}

.files-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== NO ORDERS ===== */
.no-orders {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-secondary);
}

.no-orders-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ===== ADMIN ===== */
.admin-orders {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-order-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.admin-order-id {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.admin-order-client {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.admin-order-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-content {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 16px;
}

.admin-content-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.admin-content-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-wrap;
  max-height: 150px;
  overflow-y: auto;
}

.admin-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.admin-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-files-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.admin-files-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-file-link {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 6px;
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.8rem;
  transition: opacity 0.2s;
}

.admin-file-link:hover {
  opacity: 0.8;
}

.admin-status-form {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-status-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-status-row .field-input {
  flex: 1;
}

.admin-status-row .field-select {
  max-width: 200px;
  flex-shrink: 0;
}

/* ===== LANDING PAGE CTA ===== */
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-cta .btn-primary {
  font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .app-nav {
    padding: 16px 20px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

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

  .timeline-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-meta {
    grid-template-columns: 1fr;
  }

  .admin-details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-status-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-status-row .field-select {
    max-width: 100%;
  }

  .track-input-row {
    flex-direction: column;
  }

  .confirmation-actions {
    flex-direction: column;
    align-items: center;
  }

  .order-progress {
    padding-bottom: 8px;
  }

  .progress-label {
    font-size: 0.6rem;
  }
}
