/* Combined and optimized CSS for homepage and pricing page */

:root {
  --bg: #0b0b0b;
  --card: #151515;
  --border: #262626;
  --text: #f5f5f5;
  --muted: #a1a1a1;
  --accent: #478eaf;
  --success: #22c55e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial;
}

body {
  background: linear-gradient(180deg, var(--bg), #050505);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
/* 1. Header & Nav Container */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  /* Use a fixed height so the logo doesn't stretch the bar */
}

/* 2. Logo and its Link Wrapper */
.nav a:has(.nav-logo) {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo {
  height: 150px;
  /* Actual size you want */
  width: auto;
  /* Maintains proportions */
  display: block;
  flex-shrink: 0;
  /* CRITICAL: Prevents menu items from squashing the logo */
  object-fit: contain;
}

.nav-links a {
  margin-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}


@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100px;
    right: 1.5rem;
    left: auto;
    width: 220px;
    /* dropdown width */
    background: #151515;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    color: #fff;
  }


  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}


/* Hero */
.hero {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ffffff, #b7b7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* Generator */
.generator {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--card);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.generator textarea {
  width: 100%;
  min-height: 90px;
  background: #0e0e0e;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  color: var(--text);
  resize: vertical;
  font-size: 1rem;
}

.generator button {
  margin-top: 1rem;
  width: 100%;
  padding: 0.9rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(135deg, #478eaf, #3a7896);
  color: white;
  transition: opacity 0.2s;
}

/* .generator button:hover { opacity: 0.9; } */

/* Free Credits */
.free-credits {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.8rem;
  background: rgba(124, 124, 255, 0.1);
  border: 1px solid rgba(124, 124, 255, 0.4);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.free-credits strong {
  color: var(--text);
}

.free-credits button,
.free-credits a {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.free-credits button:hover,
.free-credits a:hover {
  background: #478eaf;
  transform: translateY(-1px);
}


.free-credits-anchor a {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 1rem 4rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.free-credits-anchor a:hover {
  background: #478eaf;
  transform: translateY(-1px);
}

/* Preview */
.preview {
  margin-top: 1.5rem;
  text-align: left;
}

.preview p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.preview-box {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  /* use cover if you want crop */
}

#preview-placeholder {
  color: #888;
  font-size: 14px;
}

.preview-box::after {
  content: "";
  position: absolute;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: 2px;
}

/* Feature boxes */
.features {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pricing / Credits */
.credits {
  max-width: 1200px;
  margin: auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pack {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pack.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(124, 124, 255, 0.4);
}

.badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: #009fe0;
  color: white;
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.pack h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.credits-count {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.price {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.value {
  color: var(--success);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pack ul {
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.pack ul li {
  margin-bottom: 0.5rem;
}

.pack button,
.pack a {
  margin-top: auto;
  padding: 0.9rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(135deg, #00B4E6, #0059CC);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note {
  max-width: 900px;
  margin: auto;
  padding: 0 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* FAQ */
.faq {
  max-width: 900px;
  margin: auto;
  padding: 4rem 1.5rem;
}

.faq h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h4 {
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 0.5rem;
}

.icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .icon {
  transform: rotate(45deg);
}


/* Blog */
.blog {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1.5rem;
}

.blog h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.post h4 {
  margin-bottom: 0.5rem;
}

.post p {
  color: var(--muted);
  font-size: 0.95rem;
}

.post a {
  display: block;
  height: 100%;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a {
  margin-right: 1rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* Checkout Page */
.checkout-container {
  max-width: 500px;
  margin: 3rem auto;
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.checkout-container h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.form-group input,
.form-group select {
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0e0e0e;
  color: var(--text);
  font-size: 1rem;
}

.checkout-container button {
  width: 100%;
  padding: 0.9rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(135deg, #00B4E6, #0059CC);
  color: #fff;
  font-size: 1rem;
  margin-top: 1rem;
  transition: opacity 0.2s;
}

.checkout-container button:hover {
  opacity: 0.9;
}

.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.credits-banner {
  width: 100%;
  padding: 16px 24px;
  border-radius: 14px;
  background: linear-gradient(90deg, #1C1F2A 0%, #22263A 100%);
  border: 1px solid rgba(120, 130, 255, 0.25);
  box-shadow:
    0 0 0 1px rgba(120, 130, 255, 0.15),
    0 8px 30px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.text-block {
  display: flex;
  flex-direction: column;
}

.status {
  font-size: 13px;
  font-weight: 500;
  color: #AAB0FF;
  letter-spacing: 0.02em;
}

.headline {
  margin-top: 4px;
  font-size: 16.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.subtext {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 400;
  color: #9AA0B5;
}

.buy-credits-btn {
  min-width: 240px;
  height: 46px;
  max-width: 100px;
  padding: 0 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;

  background: linear-gradient(135deg, #6E7BFF 0%, #4F5DFF 100%);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;

  box-shadow: 0 6px 18px rgba(79, 93, 255, 0.45);
  transition: all 0.2s ease;
}

.buy-credits-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 93, 255, 0.6);
}

.buy-credits-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(79, 93, 255, 0.35);
}

.error-message {
  /* background-color: #ffe6e6; */
  color: #f10833;
  /* border: 1px solid #b00020; */
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  text-align: center;
}

/* ===== Preview Download Actions ===== */
.download-toolbar {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #0f1320;
  border: 1px solid rgba(120, 130, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Quality buttons */
.quality-mini {
  display: flex;
  gap: 6px;
}

.q {
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid rgba(120, 130, 255, 0.3);
  background: transparent;
  color: #cfd3ff;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.q-label {
  font-size: 11px;
  font-weight: 600;
}

.q-res {
  font-size: 9px;
  color: #9aa0b5;
}

.q.active {
  background: #4386a661;
  border-color: #5b6cff;
  color: #fff;
  outline: 2px solid rgb(247, 244, 244);
}

.q.active .q-res {
  color: #e8ebff;
}

/* Download button */
.download-btn {
  margin-left: auto;
  height: 49px;
  padding: 0 14px;
  border-radius: 10px;
  /* background: linear-gradient(135deg, #6b5cff, #8e7bff); */
  background: linear-gradient(135deg, #00B4E6, #0059CC);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Credit info */
.credit-info {
  font-size: 12px;
  color: #9aa0b5;
  white-space: nowrap;
}

#preview-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

.ai-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e5e5e5;
  border-top: 4px solid #111;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.spinner-text {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

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

/* ===== Navbar Dropdown ===== */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-user {
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
}

.nav-user:hover {
  color: var(--text);
}

.dropdown-menu {
  position: absolute;
  top: 130%;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 180px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* Show dropdown on hover */
.nav-dropdown:hover .dropdown-menu {
  display: block;
}

/************************************************* NEW HOME PAGE ******************************************************************/

/* PAGE BACKGROUND ASSUMED DARK */

/* ===== HERO ===== */
.hero-ui {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  color: #fff;
}

.hero-text {
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.hero-text h1 {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-text p {
  color: #aaa;
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  }
}


/* ===== GLASS CARD ===== */
.glass-card {
  background: linear-gradient(180deg,
      rgba(40, 35, 70, 0.9),
      rgba(15, 15, 30, 0.9));
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

/* Credits bar */
.credits-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.credits-btn {
  /* background: linear-gradient(90deg, #6b5cff, #8e7bff); */
  background: linear-gradient(135deg, #FFB703, #FF8F00);
  padding: 10px 18px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}


/* Controls */
.controls-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  /* 🔥 must */
}


.dropdown {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  color: #fff;
}

/* dropdown options */
.dropdown option {
  color: #000;
  background: #fff;
}


.generate-btn {
  flex: 1;
  flex-shrink: 0;
  /* 🔥 critical */
  min-height: 48px;
  background: linear-gradient(135deg, #00B4E6, #0059CC);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}


/* Info */
.free-info {
  font-size: 13px;
  color: #bbb;
  margin-bottom: 22px;
}

/* ===== RESULT AREA ===== */
.result-area {
  display: grid;
  grid-template-columns: minmax(0, 512px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

/* Image */
.image-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0b0b18;
  border-radius: 16px;
  padding: 16px;
}


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


.image-preview img {
  width: 100%;
  border-radius: 12px;
}

/* Download panel */


.quality-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.quality {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #333;
  background: transparent;
  color: #ccc;
  cursor: pointer;
}

.quality.active {
  /* background: #6b5cff; */
  background: #0059CC;
  color: #fff;
  border-color: transparent;
}

.download-info {
  font-size: 13px;
  color: #888;
}

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


.use-cases {
  padding: 50px 20px;
  text-align: center;
  background-color: #000;
  color: #fff;
}

.use-cases-title {
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
}

/* Grid Styling */
.use-cases-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

/* Card Styling */
.use-case-card {
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  height: 500px;

  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}


.use-case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

/* Hover Zoom + Shadow Effect */
.use-case-card:hover img {
  transform: scale(1.1);
}

.use-case-card:hover {
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 480px) {
  .use-case-card {
    width: 100%;
  }
}


.input-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  padding: 1.5px;
  /* The thickness of the glowing line */
  background: rgba(255, 255, 255, 0.1);
  /* The 'track' the light travels on */
  overflow: hidden;
  display: flex;
  margin-bottom: 20px;
}

.input-wrapper::before {
  content: "";
  position: absolute;
  inset: -200%;
  /* Large enough to cover the rotation */
  /* The "Shining Line" - a narrow beam of light */
  background: conic-gradient(from 0deg,
      transparent 0deg,
      transparent 280deg,
      #ffffff 310deg,
      /* Highlight color */
      #3b82f6 340deg,
      /* Trail color */
      transparent 360deg);
  animation: rotate 4s linear infinite;
}

/* This is the secret: It cuts a hole in the middle so only the border shines */
.input-wrapper::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  /* Matches the padding of the wrapper */
  background: #0d0d0d;
  /* Matches your background color */
  border-radius: 11px;
  z-index: 0;
}

.prompt-input {
  position: relative;
  z-index: 1;
  /* Sits above the masks */
  width: 100%;
  height: 60px;
  padding: 14px;
  border-radius: 11px;
  border: none;
  background: transparent;
  /* Let the wrapper's background show through */
  color: #fff;
  outline: none;
  font-family: inherit;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.input-wrapper:focus-within::before {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .credits-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .credits-bar .credits-btn {
    width: 100%;
    text-align: center;
  }
}

/* Compact download panel */
/* Medium-sized download panel */
.download-panel {
  width: 100%;
  max-width: 460px;
  /* keeps desktop size */
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

/* Title */
.download-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

/* Quality buttons */
.download-panel .quality-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.download-panel .quality {
  flex: 1;
  padding: 8px 0;
  font-size: 13px;
  border-radius: 10px;
}

/* Download button */
.download-panel .download-btn {
  width: 100%;
  height: 46px;
  font-size: 15px;
  margin-top: 6px;
}

/* Info */
.download-panel .download-info {
  margin-top: 10px;
  font-size: 12.5px;
  color: #9aa0b5;
  text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
  .download-panel {
    width: 100%;
  }
}

.page-center {
  min-height: calc(100vh - 160px);
  /* header + footer space */
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Segoe UI", Arial, sans-serif;

  font-size: 20px;
}

@media (max-width: 768px) {
  header .nav {
    height: 70px !important;
    min-height: 70px !important;
  }

  header .nav a img.nav-logo {
    height: 45px !important;
    /* Smaller for mobile screens */
  }
}


/* ================= ACCOUNT PAGE ================= */

.account-page {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* Header */
.account-header {
  margin-bottom: 2rem;
}

.account-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.account-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Stats */
.account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(180deg, #141414, #0f0f0f);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.stat-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.8rem;
}

.stat-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg,
      rgba(71, 142, 175, 0.25),
      rgba(15, 15, 15, 0.9));
}

/* Cards */
.account-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 1.8rem;
}

.account-card h3 {
  margin-bottom: 1.4rem;
}

/* Grid fields */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.field label {
  font-size: 0.75rem;
  color: var(--muted);
}

.field .value {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 600;
}

/* Orders table */
.orders-table {
  overflow-x: auto;
}

.orders-table table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  text-align: left;
}

.orders-table th {
  color: var(--muted);
  font-weight: 500;
}

.orders-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.paid {
  color: var(--success);
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .account-header h1 {
    font-size: 1.7rem;
  }

  .account-card {
    padding: 1.4rem;
  }
}

/* ================= DOWNLOAD HISTORY ================= */

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}

.download-item {
  background: linear-gradient(180deg, #141414, #0f0f0f);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.download-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.download-meta {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
}

.quality-tag {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.quality-tag.sd {
  background: rgba(255, 255, 255, 0.08);
}

.quality-tag.hd {
  background: rgba(0, 180, 230, 0.25);
  color: #cfefff;
}

.quality-tag.k4 {
  background: rgba(111, 76, 255, 0.25);
  color: #e2dcff;
}

.downloads-grid .download-item .download-btn {
  height: 56px !important;
  font-size: 16px !important;
  font-weight: 700;
  border-radius: 16px;
}

.footer-email {
  font-size: 13px;
  margin-top: 4px;
  opacity: 0.8;
}

.footer-email a {
  color: inherit;
  text-decoration: none;
}

.footer-email a:hover {
  text-decoration: underline;
}


/* Blog image + date */
.post img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.blog-date {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}


/* Blog detail — minimal extension */
.blog .post {
  max-width: 820px;
  margin: auto;
}

.blog .post img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 20px;
}

.blog-content p {
  margin-top: 10px;
  line-height: 1.7;
}

.blog-date {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.blog-cta {
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
}


/* Full page blocker */
#pageBlocker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Loader box */
.pageBlocker-content {
  background: #ffffff;
  padding: 24px 32px;
  border-radius: 10px;
  text-align: center;
  min-width: 260px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.pageBlocker-content button {
  margin-top: 18px;
  padding: 12px 20px;

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

  border: none;
  border-radius: 8px;
  cursor: pointer;

  background: linear-gradient(135deg, #478eaf, #3a7896);
  color: #ffffff;

  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* Spinner */
.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Text */
.loader-text {
  font-size: 15px;
  color: #333;
}

/* Spinner animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.niche-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.niche-tabs a {
  padding: 8px 16px;
  border-radius: 20px;
  background: #f2f2f2;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.niche-tabs a:hover {
  background: #e0e0e0;
}

.niche-tabs a.active {
  background: #000;
  color: #fff;
}

.niche-tabs a.active {
  background: linear-gradient(135deg, #6b73ff, #000dff);
  color: #fff;
}

.prompt-suggestions {
  margin-top: 7px;
}

.prompt-btn {
   margin: 5px;
  padding: 6px 12px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  background: #f3f4f6;
  color: #333;
  transition: all 0.2s ease;
}

.prompt-btn:nth-child(1) { background: #c7d2fe; } /* Indigo */
.prompt-btn:nth-child(2) { background: #bbf7d0; } /* Green */
.prompt-btn:nth-child(3) { background: #fed7aa; } /* Orange */
.prompt-btn:nth-child(4) { background: #fbcfe8; } /* Pink */
.prompt-btn:nth-child(5) { background: #a5f3fc; } /* Cyan */
.prompt-btn:nth-child(6) { background: #ddd6fe; } /* Purple */

.prompt-btn:hover {
  background: #6366f1;
  color: #fff;
}

/* .enhance-wrapper {
  position: relative;
}

.enhance-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
  z-index: 3; 
}

.enhanced-box {
  display: none;
  margin-top: 8px;
}

.enhanced-title {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.enhanced-text {
  font-size: 14px;
  margin-bottom: 6px;
}

.enhanced-actions {
  display: flex;
  gap: 6px;
}

.use-btn,
.keep-btn {
  background: none;
  border: 1px solid #444;
  padding: 4px 8px;
  border-radius: 4px;
  color: #ccc;
  cursor: pointer;
  font-size: 12px;
} */