@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #ff5722;
  --primary-hover: #f4511e;
  --secondary: #10b981;
  --dark: #0f172a;
  --card-bg: #1e293b;
  --border: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #0b0f19;
  color: #f1f5f9;
  direction: rtl;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Phone Frame */
.phone-mockup {
  width: 390px;
  max-width: 100%;
  height: 820px;
  border-radius: 44px;
  border: 12px solid #2d3748;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 2px #4a5568 inset;
  background: #0f172a;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 25px;
  background: #2d3748;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.notch-camera {
  width: 10px;
  height: 10px;
  background: #1a202c;
  border-radius: 50%;
}

.notch-speaker {
  width: 40px;
  height: 4px;
  background: #1a202c;
  border-radius: 2px;
}

/* Animations */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(255, 87, 34, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 87, 34, 0); }
}

.pulse-primary {
  animation: pulse-ring 2s infinite;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.animate-float {
  animation: float-badge 3s ease-in-out infinite;
}

/* Wheel of Fortune Styling */
.wheel-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 25px solid #ff5722;
  z-index: 20;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

#wheelCanvas {
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

/* Status steps connector */
.step-line-active {
  background: linear-gradient(90deg, #10b981 0%, #ff5722 100%);
}

/* 3D badge */
.badge-3d {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: white;
}

/* Receipt Print styling */
@media print {
  body * {
    visibility: hidden;
  }
  #printableReceipt, #printableReceipt * {
    visibility: visible;
  }
  #printableReceipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    color: black;
    background: white;
  }
}
