/* ===== ORDER PAGE — UNIQUE DESIGN ===== */
.order-page {
  min-height: calc(100vh - var(--header-height));
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 64px;
}

.order-page .container {
  max-width: 860px;
}

/* ===== STATUS HUB — ring + title ===== */
.status-hub {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.status-ring {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.status-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.status-ring-track {
  fill: none;
  stroke: var(--bg-elevated);
  stroke-width: 4;
}

.status-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 339.29;
  stroke-dashoffset: 339.29;
  transition: stroke-dashoffset 1s ease;
}

.status-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-ring-num {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.status-ring-of {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-tertiary);
  line-height: 1;
}

.status-hub-text {
  flex: 1;
}

.status-hub-title {
  font-family: var(--font);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.status-hub-current {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== STEP DOTS — horizontal ===== */
.order-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  padding: 16px 0;
}

.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.order-step span {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-main);
  transition: all var(--transition-base);
  position: relative;
}

/* Active step */
.order-step.active .step-dot {
  border-color: var(--accent);
  background: var(--bg-main);
  box-shadow: 0 0 12px rgba(212, 162, 76, 0.3);
  animation: dot-pulse 2s ease-in-out infinite;
}

.order-step.active span {
  color: var(--text-primary);
  font-weight: 700;
}

/* Done step */
.order-step.done .step-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.order-step.done .step-dot::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  width: 4px;
  height: 7px;
  border: solid var(--bg-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.order-step.done span {
  color: var(--accent);
}

/* Connector line between dots */
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 20px;
  max-width: 80px;
  margin: 0 6px;
  margin-bottom: 20px;
  transition: background var(--transition-base);
}

.step-line.filled {
  background: var(--accent);
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(212, 162, 76, 0.2); }
  50% { box-shadow: 0 0 18px rgba(212, 162, 76, 0.5); }
}

/* ===== ORDER BODY ===== */
.order-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== TWO-COLUMN GRID ===== */
.order-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

/* Decorative diagonal stripe */
.order-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--caramel), var(--accent));
}

/* QR Panel */
.order-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-frame {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.qr-inner {
  display: flex;
}

.qr-inner canvas,
.qr-inner svg {
  width: 160px !important;
  height: 160px !important;
}

.qr-caption {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

/* Details Panel */
.order-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.detail-copy-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.detail-copy-btn:hover {
  border-color: var(--border-hover);
  background: rgba(212, 162, 76, 0.04);
}

.detail-value {
  flex: 1;
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--text-primary);
  word-break: break-all;
  text-align: left;
}

/* Info rows */
.detail-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.detail-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.detail-info-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===== ORDER NOTE ===== */
.order-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  padding: 14px 18px;
  background: rgba(212, 162, 76, 0.03);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.order-note svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.order-note p {
  margin: 0;
}

/* ===== CONTACTS BLOCK ===== */
.order-contacts-block {
  margin-top: 4px;
}

.order-contacts-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.order-contacts-trigger:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.toggle-arrow {
  font-size: 0.65rem;
  transition: transform var(--transition-fast);
  margin-left: auto;
}

.toggle-arrow.open {
  transform: rotate(180deg);
}

.order-contacts-body {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 16px;
  background: rgba(212, 162, 76, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.contact-link-inline:hover {
  border-color: var(--accent);
  background: rgba(212, 162, 76, 0.1);
}

/* ===== COMPLETED STATE ===== */
.order-done {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 32px;
  gap: 16px;
}

.order-done-icon {
  color: var(--success);
  margin-bottom: 8px;
}

.order-done-ring {
  animation: ring-draw-done 1.5s ease forwards;
}

@keyframes ring-draw-done {
  from { stroke-dashoffset: 188; }
  to { stroke-dashoffset: 0; }
}

.order-done-heading {
  font-family: var(--font);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.order-done-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.order-done-back {
  margin-top: 8px;
  width: auto;
  padding: 12px 32px;
}

/* ===== LOADING ===== */
.order-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--text-tertiary);
}

.order-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
