:root {
  --bg-dark: #09081a;
  --bg-mid: #121129;
  --text-main: #f3f4ff;
  --text-soft: #b9bddf;
  --primary-grad: linear-gradient(135deg, #7b61ff, #4f8dff 45%, #ff5fd2);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-soft: 0 12px 40px rgba(17, 12, 46, 0.35);
  --radius-lg: 22px;
  --radius-md: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 10% 20%, #24204e 0%, transparent 35%),
    radial-gradient(circle at 90% 0%, #3a1f61 0%, transparent 40%),
    linear-gradient(140deg, var(--bg-dark), var(--bg-mid) 55%, #1a1538);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-blur {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(55px);
  z-index: -1;
  opacity: 0.6;
}

.bg-blur-one {
  background: #764bff;
  top: -120px;
  left: -60px;
}

.bg-blur-two {
  background: #ff59cf;
  right: -80px;
  bottom: -100px;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(8, 8, 20, 0.55);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary-grad);
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #d6deff;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: var(--primary-grad);
  box-shadow: 0 8px 24px rgba(96, 90, 255, 0.35);
}

.btn-secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-lg {
  padding: 0.95rem 1.3rem;
  font-size: 1rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.45rem;
}

.hero {
  padding: 3.5rem 0 2.8rem;
}

.hero-content {
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  animation: fadeUp 0.7s ease;
}

.tag {
  margin: 0 0 0.85rem;
  color: #d6d9ff;
  font-size: 0.9rem;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.8vw, 3.3rem);
  line-height: 1.1;
}

.subtitle {
  margin: 1rem 0 0;
  max-width: 780px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero-generator {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.8rem;
}

textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(13, 12, 35, 0.75);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.9rem 1rem;
  resize: vertical;
  min-height: 92px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

textarea:focus {
  border-color: #9f8dff;
  box-shadow: 0 0 0 4px rgba(125, 103, 255, 0.2);
}

section {
  padding: 1.2rem 0 3.2rem;
}

section h2 {
  margin: 0 0 1.3rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.hidden {
  display: none;
}

.results-grid,
.steps-grid,
.features-grid,
.pricing-grid {
  display: grid;
  gap: 1rem;
}

.results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-card,
.step-card,
.feature-card,
.pricing-card {
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
}

.result-card {
  min-height: 280px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.result-head h3 {
  margin: 0;
  font-size: 1.02rem;
}

.result-list {
  margin: 0.9rem 0 0;
  padding: 0 0 0 1rem;
  color: #e4e8ff;
  display: grid;
  gap: 0.55rem;
}

.result-list.hashtags {
  padding-left: 0;
  list-style: none;
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card,
.feature-card,
.pricing-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover,
.feature-card:hover,
.pricing-card:hover,
.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
}

.step-icon {
  font-size: 1.5rem;
  margin-bottom: 0.45rem;
}

.features-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card h3,
.pricing-card h3 {
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-card ul {
  margin: 1rem 0 1.2rem;
  padding-left: 1rem;
  color: #dde2ff;
  display: grid;
  gap: 0.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.3rem 0 0.5rem;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-soft);
}

.pricing-card.featured {
  border-color: rgba(255, 255, 255, 0.42);
  position: relative;
}

.badge {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}

.site-footer {
  padding: 1rem 0 2rem;
}

.footer-content {
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes fadeUp {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .results-grid,
  .steps-grid,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 1rem;
    width: min(260px, calc(100% - 2rem));
    padding: 1rem;
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
    background: rgba(10, 9, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

#language {
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: white;
  backdrop-filter: blur(6px);
  outline: none;
  cursor: pointer;
}

#language option {
  color: black;
}

/* DARK MODE + PROFESSIONAL UPGRADES */
:root {
  --bg: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --card: rgba(255, 255, 255, 0.7);
  --border: rgba(15, 23, 42, 0.1);
  --primary: #7C3AED;
  --primary-hover: #6D28D9;
  --shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
}

[data-theme="dark"] {
  --bg: #0B0F19;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --card: rgba(30, 41, 59, 0.6);
  --border: rgba(241, 245, 249, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

.glass {
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 16px;
}

/* NAV RIGHT */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

/* BUTTONS */
.btn {
  transition: all 0.2s;
  position: relative;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  border: none;
}

.loader {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* TOOLS SECTION */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tool-card {
  padding: 2rem;
}

.tool-card textarea, .tool-card input {
  width: 100%;
  margin: 1rem 0;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

.img-preview {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.img-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(200%);
  transition: transform 0.3s;
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
}

/* MOBILE MENU FIX */
@media (max-width: 768px) {
  .nav-links {
    background: var(--card);
    backdrop-filter: blur(16px);
  }
}

/* 🔥 ULTRA PREMIUM GLASS EFFECT */
.glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

/* ✨ GLASS SHINE EFFECT */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  opacity: 0;
  transition: 0.6s;
}

.glass:hover::before {
  opacity: 1;
}

/* 🔥 CARD HOVER PREMIUM */
.result-card,
.feature-card,
.step-card,
.pricing-card {
  transition: all 0.35s ease;
  position: relative;
}

.result-card:hover,
.feature-card:hover,
.step-card:hover,
.pricing-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 20px 60px rgba(124, 58, 237, 0.25),
    0 0 30px rgba(59, 130, 246, 0.2);
}

/* ✨ BORDER GLOW */
.result-card::after,
.feature-card::after,
.step-card::after,
.pricing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #7C3AED, #3B82F6, #ff5fd2);
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.3s;
}

.result-card:hover::after,
.feature-card:hover::after,
.step-card:hover::after,
.pricing-card:hover::after {
  opacity: 1;
}

/* 🔥 BUTTON PREMIUM GLOW */
.btn-primary {
  background: linear-gradient(135deg, #7C3AED, #3B82F6, #ff5fd2);
  box-shadow: 
    0 10px 30px rgba(124, 58, 237, 0.4),
    0 0 20px rgba(255, 95, 210, 0.3);
}

.btn-primary:hover {
  box-shadow: 
    0 15px 40px rgba(124, 58, 237, 0.6),
    0 0 30px rgba(255, 95, 210, 0.5);
}

/* ✨ INPUT PREMIUM */
textarea, input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}

textarea:focus, input:focus {
  border-color: #7C3AED;
  box-shadow: 
    0 0 0 2px rgba(124, 58, 237, 0.3),
    0 0 20px rgba(124, 58, 237, 0.2);
}

/* 🔥 SCROLLBAR PREMIUM */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  border-radius: 10px;
}