@font-face {
  font-family: 'Vazirmatn';
  src: url(./asstes/Vazirmatn-Regular.woff2);
  font-weight: 400;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url(./asstes/Vazirmatn-Bold.woff2);
  font-weight: 700;
}

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

:root {
  --primary-black: #000000;
  --deep-black: #0a0a0a;
  --dark-gray: #1a1a1a;
  --accent-green: #00ff9d;
  --accent-green-glow: rgba(0, 255, 157, 0.7);
  --accent-cyan: #00f7ff;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --glass-dark: rgba(0, 0, 0, 0.7);
  --glass-border: rgba(0, 255, 157, 0.2);
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background-color: var(--primary-black);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-size: 14px;
}

.main-content {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-items: center;
}

/* افکت پس‌زمینه پویا */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(0, 255, 157, 0.051) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 255, 157, 0.048) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 2s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0px, 0px);
  }
  100% {
    transform: translate(-40px, -40px);
  }
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.1;
  animation: float 5s infinite ease-in-out;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: var(--accent-green);
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-cyan);
  bottom: 15%;
  left: 15%;
  animation-delay: 5s;
}

.shape-3 {
  width: 180px;
  height: 180px;
  background: var(--accent-green);
  top: 60%;
  right: 70%;
  animation-delay: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-15px, 15px) scale(0.95);
  }
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 15px;
  position: relative;
  z-index: 1;
}

/* هدر */
header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 30px;
  position: relative;
}

.header-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(0, 255, 157, 0.1) 0%,
    transparent 70%
  );
  filter: blur(30px);
  z-index: -1;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
  letter-spacing: 1px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-green),
    transparent
  );
  border-radius: 2px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 300;
  margin-top: 15px;
  letter-spacing: 0.5px;
  line-height: 1.6;
  max-width: 600px;
  margin: 15px auto 0;
}

/* پنل اصلی */
.main-panel {
  background: var(--glass-dark);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 25px;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 255, 157, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.main-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.04), transparent 30%);
  pointer-events: none;
}

/* بخش نمایش رمز عبور */
.password-display-section {
  margin-bottom: 35px;
}

.password-display-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 157, 0.25);
  background: rgba(0, 0, 0, 0.6);
  box-shadow:
    inset 0 0 15px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(0, 255, 157, 0.15);
}

.password-display-header {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8),
    rgba(0, 255, 157, 0.08)
  );
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0, 255, 157, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.password-label {
  font-size: 1rem;
  color: var(--accent-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.password-length-display {
  background: rgba(0, 255, 157, 0.08);
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 157, 0.25);
}

#password-holder {
  padding: 20px;
  font-size: 1.5rem;
  color: var(--accent-green);
  direction: ltr;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 80px;
  cursor: pointer;
}

#password-display {
  word-break: break-all;
  text-shadow: 21px 20px 80px rgb(255, 255, 255);
}

.generate-button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 255, 157, 0.28);
  border-radius: 9px;
  background: rgba(0, 255, 157, 0.08);
  color: var(--accent-green);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.generate-button:hover {
  transform: translateY(-2px);
  background: rgba(0, 255, 157, 0.16);
  border-color: rgba(0, 255, 157, 0.55);
  box-shadow: 0 8px 20px rgba(0, 255, 157, 0.18);
}

.generate-button:active {
  transform: translateY(0);
}

.generate-button svg {
  flex: 0 0 auto;
}

a {
  text-decoration: none;
  font-weight: bold;
  color: #00cc80;
  position: relative;
}

a:hover {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
  font-weight: bold;
}

/* بخش تنظیمات */
.settings-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-green), transparent);
  border-radius: 2px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.setting-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.setting-card:hover {
  border-color: rgba(0, 255, 157, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.setting-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.04), transparent);
  pointer-events: none;
}

.setting-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.setting-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 157, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  border: 1px solid rgba(0, 255, 157, 0.15);
}

.setting-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.slider-container {
  margin-top: 15px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.slider-value {
  background: rgba(0, 255, 157, 0.08);
  padding: 6px 15px;
  border-radius: 15px;
  font-weight: 600;
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 157, 0.25);
  min-width: 60px;
  text-align: center;
  font-size: 0.95rem;
}

.slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  outline: none;
  overflow: hidden;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-green);
  cursor: pointer;
  box-shadow:
    0 0 12px rgba(0, 255, 157, 0.7),
    0 0 25px rgba(0, 255, 157, 0.3);
  border: 2px solid var(--primary-black);
  transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 15px rgba(0, 255, 157, 0.8),
    0 0 30px rgba(0, 255, 157, 0.5);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.checkbox-item:hover {
  background: rgba(0, 255, 157, 0.04);
  border-color: rgba(0, 255, 157, 0.15);
  transform: translateY(-2px);
}

.checkbox-item input {
  display: none;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  margin-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.checkbox-item input:checked + .checkbox-custom {
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.4);
}

.checkbox-item input:checked + .checkbox-custom::after {
  content: '✓';
  color: var(--primary-black);
  font-weight: bold;
  font-size: 13px;
}

.checkbox-text {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.checkbox-item input:checked ~ .checkbox-text {
  color: var(--accent-green);
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.25);
}

/* بخش محتوای سئو */
.seo-section {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(0, 255, 157, 0.14);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.seo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.045), transparent 34%);
  pointer-events: none;
}

.seo-intro,
.seo-grid,
.seo-keywords {
  position: relative;
  z-index: 1;
}

.seo-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--accent-green);
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.18);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
}

.seo-intro h2 {
  color: var(--text-primary);
  font-size: 1.55rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.seo-intro p,
.seo-card p {
  color: var(--text-secondary);
  line-height: 2;
}

.seo-intro p {
  max-width: 880px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.seo-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  padding: 18px;
}

.seo-card h3 {
  color: var(--accent-green);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.seo-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.seo-keywords span {
  color: var(--text-primary);
  background: rgba(0, 255, 157, 0.07);
  border: 1px solid rgba(0, 255, 157, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* افکت‌های گوشه‌ها */
.corner-effects {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.corner {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}

.corner-tl {
  top: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  background: var(--accent-green);
  animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(1.05);
  }
}

/* تأیید کپی */
.copy-confirmation {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-green), #00cc80);
  color: var(--primary-black);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0, 255, 157, 0.35);
  display: none;
  animation: slideDown 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
}

@keyframes slideDown {
  from {
    top: -40px;
    opacity: 0;
  }
  to {
    top: 25px;
    opacity: 1;
  }
}

/* فوتر */
footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-green),
    transparent
  );
}

/* اسکول بار سفارشی */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 157, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 157, 0.6);
}

/* ریسپانسیو */
@media (max-width: 992px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .seo-grid {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 15px 12px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .main-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .seo-section {
    padding: 22px;
    border-radius: 16px;
  }

  .seo-intro h2 {
    font-size: 1.3rem;
  }

  #password-display {
    font-size: 1.3rem;
    padding: 18px;
    min-height: 70px;
    letter-spacing: 1px;
  }

  .corner-tl,
  .corner-tr {
    width: 300px;
    height: 300px;
    top: -150px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  .subtitle {
    font-size: 0.9rem;
    margin-top: 12px;
  }

  .main-panel {
    padding: 18px;
    border-radius: 16px;
  }

  .setting-card {
    padding: 18px;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .seo-section {
    padding: 18px;
  }

  .seo-intro h2 {
    font-size: 1.15rem;
  }

  .seo-intro p,
  .seo-card p {
    line-height: 1.9;
  }

  .password-display-header {
    padding: 10px 15px;
  }

  #password-display {
    font-size: 1.2rem;
    padding: 15px;
    min-height: 60px;
  }

  .generate-button {
    width: 34px;
    height: 34px;
  }
}
