@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

:root {
  --brand-orange: #e6532e;
  --brand-blue: #009ca8;
  --glass-bg: rgba(255,255,255,0.15);
  --glass-border: rgba(255,255,255,0.25);
}

body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  overflow-x: hidden;
  color: #fff;
  background: #000;
}

/* 🎥 پس‌زمینه */
.video-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
}

/* ⚪ پنل اصلی */
.glass-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

/* برند */
.brand img {
  width: 130px;
  filter: drop-shadow(0 0 8px rgba(230,83,46,0.8));
}

.brand h1 {
  font-weight: 700;
  margin: 15px 0 5px;
}

.brand p {
  margin-bottom: 40px;
  color: rgba(255,255,255,0.8);
}

/* 💠 کاشی‌ها */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
  width: 90%;
  max-width: 900px;
  justify-items: center;
}

/* 🧱 هر کاشی */
.tile {
  position: relative;
  border-radius: 15px;
  perspective: 1000px;
  width: 160px;
  height: 160px;
}

.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card:hover {
  transform: rotateY(180deg);
}

/* دو روی کاشی */
.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 10px;
  text-align: center;
}

.front {
  background: var(--brand-blue);
}

.back {
  background: var(--brand-orange);
  transform: rotateY(180deg);
  font-size: 14px;
}

/* نشان */
.badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(255,255,255,0.85);
  color: #000;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 10px;
}

/* ✨ انیمیشن ظاهر شدن */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

/* 📱 واکنش‌گرایی */
@media (max-width: 768px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 🔘 دکمه شناور ورود مدیر */
.fab-login {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(0, 156, 168, 0.75);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 50;
}

.fab-login:hover {
  background: rgba(230, 83, 46, 0.9);
  transform: scale(1.1);
}

.toolbar {
  text-align: left;
  padding: 20px 40px;
}

.btn-add {
  background: rgba(0, 120, 215, 0.8);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  font-weight: bold;
}

.btn-add:hover {
  background: rgba(0, 120, 215, 1);
  transform: translateY(-2px);
}
