body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f1115;
  color: #ffffff;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 30px;

  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.nav-left:hover {
  opacity: 0.85;
  cursor: pointer;
}

.logo {
  width: 28px;
  height: 28px;
}

.brand {
  font-size: 16px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.3px;
}

.nav-right {
  display: flex;
  gap: 20px;
}

.nav-right a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-right a:hover {
  color: white;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: 64px;
  margin: 0;
  letter-spacing: 2px;
}

.hero-subtitle {
  max-width: 600px;
  margin-top: 15px;
  color: #aaa;
  font-size: 18px;
  line-height: 1.6;
}

.hero-btn {
  margin-top: 25px;
  padding: 14px 28px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  background: #4f7cff;
  color: white;
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-btn:hover {
  background: #3a63ff;
  transform: translateY(-2px);
}

.about {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.about h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.about-text {
  max-width: 700px;
  color: #aaa;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  width: 100%;
}

.about-card {
  background: #171a21;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  transition: 0.2s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card h3 {
  margin-bottom: 10px;
}

.about-card p {
  color: #aaa;
  font-size: 14px;
  line-height: 1.5;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px;
}

.container p {
  text-align: center;
  line-height: 1.6;
  margin: 14px 0;
  color: rgba(255,255,255,0.7);
}

.container h1 {
  margin-bottom: 20px;
}

.container2 {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px;
}

.container2 p {
  text-align: left;
  line-height: 1.6;
  margin: 14px 0;
  color: rgba(255,255,255,0.7);
}

.container2 h1 {
  margin-bottom: 50px;
}

h1 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 5px;
}

.subtitle {
  text-align: center;
  color: #aaa;
  margin-bottom: 30px;
}

.card {
  background: #171a21;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.plan-banner {

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  padding: 18px;

  margin-bottom: 20px;

  border-radius: 14px;

  background: rgba(37,99,235,0.10);

  border: 1px solid rgba(37,99,235,0.25);

}

.plan-title {

  color: white;
  font-weight: 700;
  margin-bottom: 5px;

}

.plan-text {

  color: rgba(255,255,255,0.7);
  font-size: 14px;

}

.upgrade-btn {

  padding: 12px 18px;

  border: none;
  border-radius: 10px;

  background: #2563eb;
  color: white;

  cursor: pointer;

  font-weight: 600;

}

.upgrade-btn:hover {
  opacity: 0.9;
}

.pro-active {

  background: rgba(34,197,94,0.10);

  border: 1px solid rgba(34,197,94,0.25);
}

.auth-box{
    margin-top:20px;
    padding:18px;
    border:1px solid rgba(120,255,170,.18);
    border-radius:16px;
    background:rgba(120,255,170,.05);
}

.auth-title{
    color:#9dffc6;
    font-weight:700;
    font-size:18px;
    margin-bottom:8px;
}

.auth-text{
    color:#bdbdbd;
    font-size:14px;
    line-height:1.5;
    margin-bottom:15px;
}

#email {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;

  border: 1px solid rgba(120, 255, 170, 0.25);
  background: rgba(120, 255, 170, 0.06);

  color: #baffd4;
  font-size: 14px;

  outline: none;

  transition: 0.25s ease;
}

/* placeholder stil */
#email::placeholder {
  color: rgba(186, 255, 212, 0.5);
}

/* focus efekat */
#email:focus {
  border: 1px solid rgba(120, 255, 170, 0.6);
  background: rgba(120, 255, 170, 0.1);

  box-shadow: 0 0 0 3px rgba(120, 255, 170, 0.08);
}

.auth-buttons{
    display:flex;
    gap:10px;
    margin-top:12px;
}

.auth-btn{
    flex:1;
    padding:12px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;

    background:rgba(120,255,170,.15);
    color:#baffd4;

    transition:.25s;
}

.auth-btn:hover{
    background:rgba(120,255,170,.25);
}

.auth-btn.logged{
    background:#7CFFAA;
    color:#111;
}

.logout-btn{
    background:rgba(120,255,170,.15);
}

/* Login spinner */

#loginBtn {
  position: relative;
}

#loginBtn.loading {
  color: transparent;
}

#loginBtn.loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  box-sizing: border-box;
  animation: login-spin 0.7s linear infinite;
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

.clear-generator-btn {
  display: inline-block;
  margin-bottom: 10px;

  padding: 8px 14px;
  font-size: 13px;

  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;

  border-radius: 10px;

  cursor: pointer;

  transition: 0.2s ease;
}

.clear-generator-btn:hover {
  background: rgba(34, 197, 94, 0.15);
  transform: translateY(-1px);
}

label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 14px;
  color: #bbb;
}

textarea, select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #0f1115;
  color: white;
  outline: none;
}

textarea {
  height: 100px;
  resize: none;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

* {
  box-sizing: border-box;
}

/* =========================
   MODE UI
========================= */

.mode-wrapper {
  margin-bottom: 24px;
}

.mode-label {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 14px;
  font-weight: 600;

  margin-bottom: 10px;
  color: white;
}

.pro-badge {
  background: #2563eb;

  color: white;

  font-size: 11px;
  font-weight: 700;

  padding: 4px 8px;

  border-radius: 999px;

  letter-spacing: 1px;
}

#mode {
  width: 100%;

  padding: 14px;

  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.1);

  background: rgba(255,255,255,0.04);

  color: white;

  font-size: 15px;

  outline: none;

  transition: 0.3s;
}

#mode:focus {
  border-color: #2563eb;
}

#mode option {
  background: #111827;
  color: white;
}

.mode-note {
  margin-top: 10px;

  font-size: 13px;

  color: rgba(255,255,255,0.55);
}

/* =========================
   TEMPLATE UI (same style as MODE)
========================= */

.template-wrapper.locked select {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.template-label {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 14px;
  font-weight: 600;

  margin-bottom: 10px;
  color: white;
}

#template {
  width: 100%;

  padding: 14px;

  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.1);

  background: rgba(255,255,255,0.04);

  color: white;

  font-size: 15px;

  outline: none;

  transition: 0.3s;
}

#template:focus {
  border-color: #2563eb;
}

#template option[value=""] {
  font-weight: 700;
  color: #ffffff;
  background: #0f1115;
}

/* hover */
#template option[value=""]:hover {
  background: #0f1115;
}

/* selected state */
#template option[value=""] {
  background-color: #0f1115;
}

#template option {
  background: #0f1115;
  color: white;
}

.template-note {
  margin-top: 10px;

  font-size: 13px;

  color: rgba(255,255,255,0.55);
}

button {
  margin-top: 15px;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #4f7cff;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background: #3a63ff;
}

.output pre {
  background: #0f1115;
  padding: 15px;
  border-radius: 8px;
  white-space: pre-wrap;
  min-height: 120px;

  /* FIX OVERFLOW */
  overflow-wrap: break-word;
  word-break: break-word;
}

.output {
  scroll-margin-top: 200px;
}

.disclaimer {
  max-width: 700px;
  margin: 15px auto 0;

  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
  text-align: center;

  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.comparison {
  padding: 100px 20px;
  color: white;
  text-align: center;
}

.comparison h2 {
  font-size: 42px;
  margin-bottom: 10px;
}

.comparison-subtitle {
  color: rgba(255,255,255,0.6);
  margin-bottom: 50px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.comparison-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 25px;
  text-align: left;
}

.comparison-card h3 {
  margin-bottom: 15px;
  font-size: 18px;
  letter-spacing: 1px;
}

.prompt-box {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.prompt-box hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 15px 0;
}

.pro {
  border: 1px solid #2563eb;
  box-shadow: 0 0 40px rgba(37,99,235,0.15);
}

.pro-box {
  background: rgba(37,99,235,0.08);
  border-radius: 12px;
  padding: 10px;
}

/* responsive */
@media (max-width: 900px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

.pricing {
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.pricing h2 {
  font-size: 42px;
  margin-bottom: 10px;
}

.pricing-subtitle {
  color: #aaa;
  margin-bottom: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  width: 100%;
}

.price-card {
  background: #171a21;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.price-card h1 {
  font-size: 42px;
  margin: 10px 0;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.price-card ul li {
  color: #aaa;
  margin: 8px 0;
}

.small-text {
  color: #777;
  font-size: 12px;
}

.free-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #4f7cff;
  color: white;
  cursor: pointer;
}

.pro {
  border: 1px solid #4f7cff;
}

.pro-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #4f7cff;
  color: white;
  cursor: pointer;

  position: relative;
  animation: proPulse 2.5s infinite;
}

/* soft pulse + glow */
@keyframes proPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(37, 99, 235, 0.0);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.35);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(37, 99, 235, 0.0);
  }
}

.pro-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.5);
  transition: 0.2s ease;
}

.faq {
  height: 100vh;
  max-width: 800px;
  margin: 80px auto;
  padding: 200px 20px;
  text-align: center;
}

.faq h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.faq-subtitle {
  color: rgba(255,255,255,0.6);
  margin-bottom: 30px;
}

.faq-item {
  background: #171a21;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.05);
}

.faq-item h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: white;
}

.faq-item p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.footer {
  margin-top: 80px;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-brand span {
  color: #4f7cff;
  font-weight: 600;
}

.footer-copy {
  font-size: 12px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-social a {
display: inline-flex;
align-items: center;
gap: 7px;
}

.instagram-icon {
width: 18px;
height: 18px;
fill: none;
stroke: currentColor;
stroke-width: 2;
}

.instagram-icon circle:last-child {
fill: currentColor;
stroke: none;
}

.footer-support {
margin-top: 8px;
}

.back-home-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 18px;

  background: #4f7cff;
  color: white;

  border-radius: 10px;
  text-decoration: none;

  font-size: 14px;
  font-weight: 500;

  transition: 0.2s ease;
}

.back-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79,124,255,0.3);
}

/* =========================
   MOBILE RESPONSIVE (PromptLab)
========================= */

@media (max-width: 768px) {

  html {
    scroll-padding-top: 80px;
  }

  /* NAVBAR */

  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 14px 16px;
  }

  .nav-right {
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .nav-right::-webkit-scrollbar {
    display: none;
  }

  .nav-right a {
    font-size: 14px;
    padding: 8px 2px;
  }


  /* HERO */

  .hero {
    height: auto;
    padding: 80px 16px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-btn {
    width: 100%;
  }


  /* ABOUT */

  .about {
    height: auto;
    padding: 80px 16px;
  }

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


  /* PRICING */

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


  /* FAQ */

  .faq {
    height: auto;
  }


  /* FOOTER */

  footer {
    padding: 30px 16px;
    text-align: center;
  }

  footer a {
    font-size: 14px;
    margin: 6px 8px;
    display: inline-block;
  }
}