/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:    #00d4ff;
  --primary-glow: rgba(0, 212, 255, 0.4);
  --accent:     #7c3aed;
  --accent-2:   #a855f7;
  --bg-dark:    #040d1a;
  --bg-card:    rgba(10, 25, 50, 0.75);
  --text:       #e8f4ff;
  --text-muted: #7ea3c4;
  --success:    #22d3a5;
  --gold:       #fbbf24;
}

html, body {
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,212,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(124,58,237,0.15) 0%, transparent 60%),
    linear-gradient(160deg, #040d1a 0%, #081428 50%, #07101f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ===== PARTICLES ===== */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== LIGHTNING DECORATIONS ===== */
.lightning {
  position: fixed;
  top: 0;
  width: 2px;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  animation: flicker 4s ease-in-out infinite;
}
.lightning::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
  filter: blur(4px);
}
.lightning-left  { left: 8%; animation-delay: 0s; }
.lightning-right { right: 8%; animation-delay: 2s; }

@keyframes flicker {
  0%, 100% { opacity: 0.12; }
  50%       { opacity: 0.25; }
}

/* ===== MAIN CONTAINER ===== */
.container {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* ===== SUCCESS RING ===== */
.success-ring {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-ring::before,
.success-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: pulseRing 2.5s ease-out infinite;
}
.success-ring::before {
  inset: -16px;
  border: 2px solid rgba(0, 212, 255, 0.25);
}
.success-ring::after {
  inset: -30px;
  border: 1px solid rgba(0, 212, 255, 0.12);
  animation-delay: 0.4s;
}

@keyframes pulseRing {
  0%   { transform: scale(0.9); opacity: 0.8; }
  50%  { transform: scale(1.05); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.success-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.15));
  border: 2px solid var(--primary);
  box-shadow: 0 0 30px var(--primary-glow), inset 0 0 20px rgba(0,212,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG Checkmark Animation */
.checkmark {
  width: 52px;
  height: 52px;
}
.checkmark-circle {
  stroke: var(--success);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-linecap: round;
  animation: drawCircle 0.8s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}
.checkmark-check {
  stroke: var(--success);
  stroke-width: 3;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: drawCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 1s forwards;
}
@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.bolt-icon {
  position: absolute;
  bottom: -6px;
  right: -6px;
  font-size: 1.6rem;
  animation: boltPulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px #fbbf24);
}
@keyframes boltPulse {
  0%, 100% { transform: scale(1) rotate(-5deg); }
  50%       { transform: scale(1.2) rotate(5deg); }
}

/* ===== TITLE ===== */
.title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 70%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 400;
}

.highlight {
  color: var(--success);
  font-weight: 600;
  -webkit-text-fill-color: var(--success);
}

/* ===== ORDER CARD ===== */
.order-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.order-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.order-icon {
  font-size: 2rem;
  animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.order-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.order-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.status-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 211, 165, 0.12);
  border: 1px solid rgba(34, 211, 165, 0.3);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,212,255,0.2), transparent);
  margin: 1.25rem 0;
}

.order-details {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.detail-icon {
  font-size: 1.1rem;
  width: 28px;
  text-align: center;
}

.detail-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  min-width: 150px;
}

.detail-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-left: auto;
  text-align: right;
}

/* ===== STEPS ===== */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  justify-content: center;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--primary-glow);
}

.step-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
  max-width: 90px;
  line-height: 1.3;
}

.step-connector {
  height: 2px;
  flex: 0.5;
  background: linear-gradient(to right, var(--primary), var(--accent));
  opacity: 0.4;
  margin-bottom: 20px;
}

/* ===== SUPPORT ===== */
.support-text {
  font-size: 0.83rem;
  color: var(--text-muted);
  text-align: center;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.support-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.support-link:hover { color: #fff; text-decoration: underline; }

/* ===== BUTTON ===== */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.5);
  filter: brightness(1.1);
}
.btn-back:active { transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .order-header { flex-wrap: wrap; }
  .status-badge { margin-left: 0; }
  .detail-label { min-width: 110px; }
  .step-text { font-size: 0.65rem; max-width: 70px; }
}
