:root {
  --bg: #0a0f1c;
  --panel: rgba(255, 255, 255, 0.08);
  --text: #e7ecf4;
  --muted: #9aa7bd;
  --primary1: #22d3ee; 
  --primary2: #8b5cf6; 
  --danger: #ef4444;
  --success: #22c55e;
  --ring: rgba(34, 211, 238, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

body {
  direction: rtl;
  font-family: "Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  padding: 0 20px 40px;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -20% -10% -20%;
  background:
    radial-gradient(60% 40% at 75% 10%, rgba(34, 211, 238, .22) 0%, transparent 60%),
    radial-gradient(50% 35% at 20% 90%, rgba(139, 92, 246, .22) 0%, transparent 65%);
  filter: blur(40px) saturate(120%);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 40 40'%3E%3Cpath d='M0 39.5H40 M39.5 0V40' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  opacity: .7;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.05); }
}

header {
  text-align: center;
  margin: 40px 0 25px;
  z-index: 2;
  position: relative;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary1), var(--primary2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}

main {
  position: relative;
  z-index: 1;
  max-width: 700px;
  width: 100%;
  background: var(--panel);
  backdrop-filter: blur(18px) saturate(160%);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary1);
}

p {
  margin-bottom: 15px;
  color: var(--muted);
}

textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  resize: vertical;
  font-size: 1rem;
  line-height: 1.6;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

textarea:focus {
  border-color: var(--primary1);
  outline: none;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 8px var(--ring);
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

button {
  background: linear-gradient(135deg, var(--primary1), var(--primary2));
  color: #fff;
  padding: 10px 18px;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.25s;
}

button:hover {
  filter: brightness(1.15);
}

button:active {
  transform: scale(0.96);
}

header {
  text-align: center;
  margin: 40px 0 25px;
  z-index: 2;
  position: relative;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary1), var(--primary2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
  margin-bottom: 14px;
}

header::after {
  content: "";
  display: block;
  width: 200px;
  height: 3px;
  margin: 0 auto;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary1), var(--primary2));
}

@media (max-width: 600px) {
  main { padding: 14px; } 

  header h1 { font-size: 1.4rem; } 

  h2 { font-size: 1rem; }

  textarea {
    min-height: 80px;   
    font-size: 0.9rem; 
    padding: 8px;
  }

  button {
    flex: 1 1 100%;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .actions { flex-direction: column; gap: 8px; }
}


