/* فونت پیکسلی بازی */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0a0a0a;
  background-image: 
    linear-gradient(rgba(0,255,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,0,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  font-family: 'Press Start 2P', cursive;
  color: #e0e0e0;
  min-height: 100vh;
}

/* کانتینر اصلی با حاشیه پیکسلی */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* هدر */
header {
  text-align: center;
  padding: 30px 0;
  border-bottom: 4px solid #00ff00;
  margin-bottom: 40px;
  position: relative;
}

header h1 {
  font-size: 28px;
  color: #00ff00;
  text-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00;
  letter-spacing: 4px;
}

/* دکمه‌های پیکسلی */
.pixel-btn {
  background: #2a2a2a;
  border: 3px solid #00ff00;
  color: #00ff00;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,255,0,0.5);
  transition: all 0.2s;
  text-transform: uppercase;
  margin: 5px;
}

.pixel-btn:hover {
  background: #00ff00;
  color: #0a0a0a;
  box-shadow: 0 0 25px #00ff00;
}

.pixel-btn.danger {
  border-color: #ff4444;
  color: #ff4444;
  box-shadow: 0 0 10px rgba(255,68,68,0.5);
}
.pixel-btn.danger:hover {
  background: #ff4444;
  color: #0a0a0a;
}

/* فرم‌های پیکسلی */
.pixel-form {
  background: #1a1a1a;
  border: 3px solid #00ff00;
  padding: 25px;
  max-width: 500px;
  margin: 20px auto;
  box-shadow: 0 0 20px rgba(0,255,0,0.3);
}

.pixel-form h2 {
  color: #00ff00;
  margin-bottom: 20px;
  text-align: center;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  color: #00ff00;
  font-size: 10px;
}

.pixel-input {
  width: 100%;
  padding: 10px;
  background: #0a0a0a;
  border: 2px solid #00ff00;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

.pixel-input:focus {
  box-shadow: 0 0 15px #00ff00;
}

/* کارت محصول */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.product-card {
  background: #1a1a1a;
  border: 3px solid #00ff00;
  padding: 15px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,255,0,0.2);
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px #00ff00;
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 2px solid #00ff00;
  margin-bottom: 10px;
}

.product-name {
  color: #00ff00;
  font-size: 14px;
  margin: 10px 0;
}

.product-desc {
  font-size: 8px;
  color: #aaa;
  margin-bottom: 15px;
  line-height: 1.5;
}

.product-price {
  font-size: 12px;
  color: #ffaa00;
  margin-bottom: 15px;
}

/* پنل ادمین */
.admin-panel {
  display: none;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-content {
  display: none;
  background: #1a1a1a;
  border: 3px solid #00ff00;
  padding: 20px;
}

.tab-content.active {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 2px solid #00ff00;
  padding: 10px;
  text-align: center;
  font-size: 10px;
}

th {
  background: #00ff00;
  color: #0a0a0a;
}

/* پرداخت کارت به کارت */
.card-number {
  background: #0a0a0a;
  border: 2px solid #ffaa00;
  padding: 15px;
  text-align: center;
  font-size: 18px;
  color: #ffaa00;
  margin: 20px 0;
}

/* مودال */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #1a1a1a;
  border: 3px solid #00ff00;
  padding: 30px;
  max-width: 400px;
  text-align: center;
}