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

body {
  font-family: "Vazirmatn", "Tahoma", sans-serif;
  color: #4a3728;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;

  background-color: #fdf8f3;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(255, 183, 160, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 70% 45% at 90% 15%, rgba(168, 210, 230, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 200, 170, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 15% 75%, rgba(200, 180, 230, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255, 230, 200, 0.2) 0%, transparent 60%);
  background-attachment: fixed;
}

#drawCanvas, #fxCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
#drawCanvas {
  pointer-events: auto;
  z-index: 2;
}

.page {
  position: relative;
  z-index: 5;
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  text-align: center;
  pointer-events: none;
}
.page * {
  pointer-events: auto;
}

/* ساعت */
.clock-box {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.clock-time {
  font-size: 1.4rem;
  font-weight: 700;
  color: #c4784a;
  letter-spacing: 1px;
}
.clock-dates {
  font-size: 0.78rem;
  color: #7a6a5a;
  margin-top: 4px;
}
.clock-dates .sep {
  margin: 0 6px;
  opacity: 0.5;
}
.clock-label {
  font-size: 0.7rem;
  color: #b08a6a;
  margin-top: 2px;
}

/* لوگو */
.logo {
  margin-top: 70px;
  margin-bottom: 32px;
}
.logo h1 {
  font-size: 3.1rem;
  font-weight: 800;
  background: linear-gradient(105deg, #e07a5f 0%, #c38d9e 40%, #5b9bd5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}
.logo h1::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(224, 122, 95, 0.18) 0%, rgba(91, 155, 213, 0.12) 50%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(8px);
}
.logo p {
  font-size: 0.95rem;
  color: #a08060;
  margin-top: 6px;
}

/* هیرو */
.hero {
  margin-bottom: 38px;
}
.hero h2 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.55;
  color: #4a3728;
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #7a6a5a;
  max-width: 520px;
  margin: 0 auto;
}

/* دکمه‌ها */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.btn-channel {
  background: #5b9bd5;
  color: white;
}
.btn-bot {
  background: #5dade2;
  color: white;
  animation: softFloat 2.8s ease-in-out infinite;
}
.btn-manager {
  background: #e8a87c;
  color: white;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.13);
}
.btn-bot:hover {
  animation: none;
  transform: translateY(-3px);
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* دکمه پخش */
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid #e8d5c4;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: #5c3d2e;
  cursor: pointer;
  margin-bottom: 42px;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.play-btn:hover {
  background: #fff8f0;
  border-color: #e8a87c;
  transform: translateY(-2px);
}

/* پالت نقاشی */
.paint-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.palette {
  background: linear-gradient(145deg, #f5e6d3, #e8d5c0);
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  padding: 18px 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
  border: 1px solid #e0c9b0;
}
.palette-body {
  display: flex;
  justify-content: center;
}
.colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 220px;
}
.colors button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.colors button:hover,
.colors button.active {
  transform: scale(1.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.tool-buttons {
  display: flex;
  gap: 10px;
}
.tool-btn {
  padding: 9px 18px;
  border-radius: 22px;
  border: 1px solid #e8d5c4;
  background: rgba(255,255,255,0.9);
  font-size: 0.84rem;
  color: #5c3d2e;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tool-btn:hover {
  background: #fff5eb;
  transform: translateY(-1px);
}
.hint {
  font-size: 0.8rem;
  color: #b08a6a;
  margin-top: 10px;
}

/* امضای مدیر */
.manager-credit {
  position: fixed;
  bottom: 16px;
  left: 18px;
  font-size: 0.72rem;
  color: #b08a6a;
  opacity: 0.85;
  letter-spacing: 0.3px;
  z-index: 30;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(232, 213, 196, 0.6);
}

/* انتخاب زبان */
.lang-switcher {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 40;
}
.lang-btn {
  background: rgba(255,255,255,0.88);
  border: 1px solid #e8d5c4;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #5c3d2e;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}
.lang-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  overflow: hidden;
  min-width: 120px;
  border: 1px solid #f0e6dc;
}
.lang-menu.show {
  display: block;
}
.lang-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  text-align: right;
  font-size: 0.88rem;
  color: #4a3728;
  cursor: pointer;
}
.lang-menu button:hover {
  background: #fff5eb;
}

/* قلم‌مو */
.brush-cursor {
  position: fixed;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 100;
  transform: translate(-30%, -80%);
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* موبایل */
@media (max-width: 600px) {
  .logo h1 { font-size: 2.2rem; }
  .hero h2 { font-size: 1.45rem; }
  .clock-box {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
  }
  .clock-time { font-size: 1.15rem; }
  .buttons { flex-direction: column; align-items: center; }
  .btn { width: 82%; }
  .page { padding-top: 30px; }
  .manager-credit {
    bottom: 10px;
    left: 10px;
    font-size: 0.65rem;
    padding: 5px 10px;
  }
  .palette { padding: 14px 20px; }
  .colors button { width: 28px; height: 28px; }
  .lang-switcher {
    top: 12px;
    left: 12px;
  }
}
