.compte-page {
  background: #f7f7f5;
}

.compte-main {
  padding: 48px 20px 72px;
}

.compte-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.compte-card {
  background: #fff;
  border: 1px solid #e8e8e4;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.compte-card--narrow {
  max-width: 480px;
  margin: 0 auto 24px;
}

.compte-card--danger {
  border-color: #f1caca;
}

.compte-card h1,
.compte-card h2,
.compte-card h3,
.compte-content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  margin: 0 0 12px;
}

.compte-lead,
.compte-meta,
.compte-empty {
  color: #666;
  font-size: 14px;
}

.compte-form {
  display: grid;
  gap: 12px;
}

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

.compte-span-2 {
  grid-column: span 2;
}

.compte-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 4px;
}

.compte-form input,
.compte-form select {
  width: 100%;
  border: 1px solid #d8d8d3;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

.compte-form input[type="file"] {
  padding: 9px 12px;
}

.compte-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #777;
}

.compte-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.compte-btn:hover {
  background: #333;
}

.compte-btn--secondary {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
}

.compte-btn--danger {
  background: #9b1c1c;
}

.compte-alert {
  position: sticky;
  top: 12px;
  z-index: 20;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.compte-alert--error {
  background: #fff1f1;
  border: 1px solid #f0caca;
  color: #8a1f1f;
}

.compte-alert--success {
  background: #f1fff6;
  border: 1px solid #cae8d4;
  color: #17653a;
}

.compte-links {
  margin-top: 18px;
  font-size: 14px;
}

.compte-links a {
  color: #111;
}

.compte-dashboard {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.compte-sidebar {
  background: #fff;
  border: 1px solid #e8e8e4;
  border-radius: 16px;
  padding: 20px;
  height: fit-content;
}

.compte-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.compte-sidebar a {
  text-decoration: none;
  color: #333;
  padding: 10px 12px;
  border-radius: 10px;
}

.compte-sidebar a.is-active,
.compte-sidebar a:hover {
  background: #111;
  color: #fff;
}

.compte-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.compte-table-wrap {
  overflow-x: auto;
}

.compte-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compte-table th,
.compte-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #ecece8;
  vertical-align: middle;
}

.compte-log {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compte-log li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #efefea;
  font-size: 14px;
}

.compte-log time {
  color: #777;
  white-space: nowrap;
}

.compte-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.compte-stats .compte-card {
  margin-bottom: 0;
}

.compte-stats strong {
  font-size: 28px;
}

.compte-hint {
  color: #666;
  font-size: 13px;
  margin: 0 0 12px;
}

.compte-form-footer {
  margin-top: 12px;
  text-align: center;
}

.compte-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #444;
  text-transform: none;
  letter-spacing: normal;
}

.compte-check input {
  width: auto;
  margin: 0;
}

.compte-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #111;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.compte-orders {
  display: grid;
  gap: 16px;
}

.compte-order {
  border: 1px solid #e8e8e4;
  border-radius: 12px;
  padding: 16px;
  background: #fafaf8;
}

.compte-order__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.compte-order__date {
  display: block;
  color: #666;
  font-size: 13px;
  margin-top: 4px;
}

.compte-order__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compte-order__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.compte-order__grid h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
}

.compte-order__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.compte-order__facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.compte-order__facts span {
  color: #666;
}

.compte-order__status {
  margin-top: 12px;
  align-items: end;
}

.compte-order-progress {
  margin: 0 0 16px;
  padding: 14px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ecece8;
}

.compte-order-progress--cancelled {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compte-order-progress__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  position: relative;
}

.compte-order-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.compte-order-progress__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 9px;
  left: calc(50% + 12px);
  width: calc(100% - 24px);
  height: 2px;
  background: #ddd;
  z-index: 0;
}

.compte-order-progress__step.is-complete:not(:last-child)::after,
.compte-order-progress__step.is-active:not(:last-child)::after {
  background: #1a1a1a;
}

.compte-order-progress__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  position: relative;
  z-index: 1;
}

.compte-order-progress__step.is-complete .compte-order-progress__dot,
.compte-order-progress__step.is-active .compte-order-progress__dot {
  border-color: #1a1a1a;
  background: #1a1a1a;
  box-shadow: inset 0 0 0 3px #fff;
}

.compte-order-progress__step.is-active .compte-order-progress__dot {
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px rgba(26, 26, 26, 0.12);
}

.compte-order-progress__label {
  font-size: 11px;
  line-height: 1.3;
  color: #888;
  font-weight: 500;
}

.compte-order-progress__step.is-complete .compte-order-progress__label,
.compte-order-progress__step.is-active .compte-order-progress__label {
  color: #111;
  font-weight: 600;
}

.compte-order-progress__current {
  margin: 12px 0 0;
  font-size: 13px;
  color: #444;
}

.compte-order-item-note {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #888;
  font-weight: 400;
}

.compte-order__updated {
  margin: 12px 0 0;
}

.compte-product-badge-cell--updated {
  animation: compte-badge-flash 1.2s ease;
}

@keyframes compte-badge-flash {
  0% { background: #fff8dc; }
  100% { background: transparent; }
}

.compte-table td:nth-child(4) {
  min-width: 130px;
}

.compte-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  background: #eee;
}

.compte-badge--confirmed { background: #e7f3ea; }
.compte-badge--processing { background: #fff4df; }
.compte-badge--shipped { background: #e8f0ff; }
.compte-badge--delivered { background: #dcefe3; }
.compte-badge--cancelled { background: #fde8e8; }

.compte-badge--offer { background: #dbeafe; color: #1e3a5f; }
.compte-badge--sale { background: #fef3c7; color: #78350f; }
.compte-badge--vente { background: #d1fae5; color: #065f46; }
.compte-badge--promo { background: #fee2e2; color: #991b1b; }
.compte-badge--fin-serie { background: #e5e7eb; color: #374151; }
.compte-badge--nouveaute { background: #ede9fe; color: #5b21b6; }
.compte-badge--stock-epuise { background: #374151; color: #fff; }

.compte-muted {
  color: #777;
  font-size: 13px;
}

.compte-btn--sm {
  padding: 6px 10px;
  font-size: 12px;
}

.compte-btn--ghost {
  background: transparent;
  color: #555;
  border: 1px solid #ddd;
}

.compte-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compte-product-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 8px;
  flex-shrink: 0;
}

.compte-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 320px;
}

.compte-product-actions .compte-btn.is-active:not(.compte-btn--ghost):not(.compte-btn--danger) {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #111;
  transform: translateY(-1px);
}

.compte-product-actions .compte-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.compte-price-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
}

.compte-price-form input {
  width: 110px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
}

.view360-main-preview {
  min-height: 48px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #ececea;
  border-radius: 10px;
}

.view360-main-preview img {
  max-width: 160px;
  max-height: 120px;
  object-fit: contain;
  display: block;
}

.view360-frames-panel {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #ececea;
}

.view360-frames-panel h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

#view360-clear-btn {
  margin-top: 12px;
}

#view360-form input[readonly] {
  background: #f9f9f7;
  color: #444;
  cursor: default;
}

.view360-frames-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.view360-frames-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
}

.view360-frames-list img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  flex-shrink: 0;
}

.view360-frames-list span {
  flex: 1;
  font-size: 13px;
  color: #555;
  word-break: break-all;
}


@media (max-width: 860px) {
  .compte-order__grid {
    grid-template-columns: 1fr;
  }

  .compte-order-progress__track {
    grid-template-columns: 1fr 1fr;
    gap: 14px 8px;
  }

  .compte-order-progress__step:not(:last-child)::after {
    display: none;
  }

  .compte-dashboard {
    grid-template-columns: 1fr;
  }

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

  .compte-span-2 {
    grid-column: auto;
  }
}
