* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  color: #1e293b;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 14px;
  color: #64748b;
  margin-top: 5px;
}

.topLink {
  display: inline-block;
  padding: 10px 18px;
  margin-left: 8px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  transition: 0.3s;
  font-size: 15px;
}

.topLink:hover {
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  color: white;
}

.heroBox {
  max-width: 1100px;
  margin: 45px auto 30px;
  padding: 55px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.heroBox h1 {
  font-size: 52px;
  line-height: 1.2;
  background: linear-gradient(90deg, #7c3aed, #ec4899, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 25px;
}

.heroBox p {
  font-size: 20px;
  color: #64748b;
  line-height: 1.8;
  max-width: 900px;
  margin: auto;
}

/* Home showcase image */
.homeAppShowcase {
  width: 100%;
  max-width: 1450px;
  margin: 30px auto 45px;
  padding: 0 14px;
}

.homeAppShowcase img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.18);
}

/* YouTube lazy section */
.video-section {
  width: 100%;
  max-width: 1250px;
  margin: 45px auto;
  padding: 0 14px;
}

.video-box {
  width: 100%;
  padding: 42px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.video-box h2 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #111827;
}

.video-box p {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 30px;
}

.youtube-lite {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.2);
}

.youtube-lite img,
.youtube-lite iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}

.play-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #ef4444;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 900;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.pricingWrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.priceCard {
  background: white;
  padding: 35px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
  text-align: center;
}

.priceCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
}

.priceCard h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #111827;
}

.priceCard p {
  font-size: 17px;
  color: #64748b;
  line-height: 1.7;
}

.policyBox {
  max-width: 1000px;
  margin: 50px auto;
  padding: 50px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.policyBox h1 {
  font-size: 40px;
  margin-bottom: 25px;
}

.policyBox p {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 15px;
  color: #475569;
}

footer {
  padding: 35px;
  text-align: center;
  font-size: 15px;
  color: #64748b;
}

footer a {
  color: #7c3aed;
  margin: 0 8px;
}

@media (max-width: 768px) {
  .topbar {
    padding: 18px 10px;
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .topLink {
    margin: 4px;
    padding: 9px 13px;
    font-size: 14px;
  }

  .heroBox {
    margin: 20px 10px;
    padding: 35px 22px;
    border-radius: 24px;
  }

  .heroBox h1 {
    font-size: 36px;
  }

  .heroBox p {
    font-size: 19px;
    line-height: 1.7;
  }

  .homeAppShowcase {
    padding: 0;
    margin: 18px auto 28px;
  }

  .homeAppShowcase img {
    width: 100%;
    min-height: 430px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
  }

  .video-section {
    padding: 0 8px;
    margin: 28px auto;
  }

  .video-box {
    padding: 28px 12px;
    border-radius: 24px;
  }

  .video-box h2 {
    font-size: 34px;
  }

  .video-box p {
    font-size: 18px;
    line-height: 1.6;
  }

  .youtube-lite {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
  }

  .play-button {
    width: 82px;
    height: 82px;
    font-size: 34px;
  }

  .policyBox {
    margin: 20px 10px;
    padding: 30px 22px;
  }
}
/* FIX APP PAGE LAYOUT */
.layout {
  display: grid;
  grid-template-columns: 430px minmax(520px, 1fr) 430px;
  gap: 24px;
  padding: 30px;
  min-height: calc(100vh - 110px);
}

.sidebar,
.main,
.preview {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  overflow-y: auto;
  max-height: calc(100vh - 150px);
}

.sidebar h2,
.main h2,
.preview h2,
.sidebar h3 {
  color: #6d28d9;
  font-weight: 900;
  margin-bottom: 18px;
}

.label {
  display: block;
  font-weight: 900;
  margin: 16px 0 8px;
}

input[type="file"] {
  width: 100%;
  padding: 14px;
  background: #fff7ed;
  border: 2px dashed #fb923c;
  border-radius: 16px;
}

.optionGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.option {
  background: #fff;
  border: 1.5px solid #e9d5ff;
  color: #334155;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 850;
  cursor: pointer;
}

.option.active {
  background: linear-gradient(90deg, #14b8a6, #7c3aed);
  color: white;
  border-color: transparent;
}

.mainHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

#selectedStyleName {
  background: linear-gradient(90deg, #fef3c7, #fed7aa);
  color: #9a3412;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 950;
}

.styleGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
}

.styleItem {
  background: linear-gradient(180deg, #fff, #fff7ed);
  border: 1.5px solid #fde68a;
  border-radius: 24px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
}

.styleItem.active {
  border: 3px solid #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.styleItem img {
  width: 160px;
  height: 160px;
  max-width: 100%;
  object-fit: contain;
  background: white;
  border-radius: 18px;
}

.styleItem span {
  display: block;
  margin-top: 12px;
  font-weight: 950;
  font-size: 18px;
}

.preview {
  text-align: center;
}

.preview img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  background: white;
  border: 1.5px solid #e9d5ff;
  border-radius: 22px;
  margin-bottom: 20px;
}

.generateBtn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(90deg, #7c3aed, #ec4899, #f97316);
  color: white;
  font-weight: 950;
  font-size: 18px;
  cursor: pointer;
}

.summaryBox {
  margin-top: 22px;
  padding: 18px;
  background: linear-gradient(135deg, #ecfeff, #f5f3ff);
  border-left: 6px solid #14b8a6;
  border-radius: 20px;
  text-align: left;
}

#download {
  display: none;
  background: linear-gradient(90deg, #14b8a6, #7c3aed, #ec4899);
  color: white;
  padding: 15px 28px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 950;
}

/* POPUP */
#loadingPopup {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.70);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  backdrop-filter: blur(9px);
}

.popupCard {
  width: 430px;
  max-width: calc(100% - 30px);
  padding: 38px;
  border-radius: 32px;
  background: white;
  text-align: center;
}

.spinner {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 7px solid #fde68a;
  border-top: 7px solid #ec4899;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* HOME IMAGE + YOUTUBE BIGGER */
.homeAppShowcase {
  width: 100%;
  max-width: 1400px;
  margin: 30px auto 45px;
  padding: 0 14px;
}

.homeAppShowcase img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.18);
}

.video-section {
  width: 100%;
  max-width: 1250px;
  margin: 45px auto;
  padding: 0 14px;
}

.video-box {
  width: 100%;
  padding: 42px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  text-align: center;
}

.youtube-lite {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  margin: 24px auto 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
}

.youtube-lite img,
.youtube-lite iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}

.play-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #ef4444;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 900;
  pointer-events: none;
}

/* MOBILE FIX */
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sidebar,
  .main,
  .preview {
    max-height: none;
  }
}

@media (max-width: 700px) {
  .layout {
    padding: 12px;
    gap: 16px;
  }

  .sidebar,
  .main,
  .preview {
    padding: 20px;
    border-radius: 24px;
  }

  .styleGrid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 14px;
  }

  .styleItem img {
    width: 130px;
    height: 130px;
  }

  .styleItem span {
    font-size: 16px;
  }

  .homeAppShowcase {
    padding: 0;
  }

  @media (max-width: 700px) {
  .layout {
    padding: 12px;
    gap: 16px;
  }

  .sidebar,
  .main,
  .preview {
    padding: 20px;
    border-radius: 24px;
  }

  .styleGrid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 14px;
  }

  .styleItem img {
    width: 130px;
    height: 130px;
  }

  .styleItem span {
    font-size: 16px;
  }

  .homeAppShowcase {
    padding: 0 10px;
    margin: 18px auto 28px;
  }

  .homeAppShowcase img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
  }

  .video-box {
    padding: 24px 12px;
  }

  .youtube-lite {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
  }
}
/* LOGIN / REGISTER / FORGOT PASSWORD PAGE FIX */
.authPage {
  min-height: calc(100vh - 40px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 18px;
}

.authBox {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  padding: 38px;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.authBox h1 {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 24px;
  text-align: center;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.authBox input {
  width: 100%;
  display: block;
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #111827;
  font-size: 17px;
}

.authBox input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.authBox button {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #7c3aed, #ec4899, #f97316);
  color: white;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  margin-bottom: 18px;
}

.authBox button:hover {
  filter: brightness(1.05);
}

.authBox p {
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
}

.authBox a {
  color: #7c3aed;
  font-weight: 700;
}

.error {
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #fee2e2;
  color: #991b1b;
  text-align: center;
  font-weight: 700;
}

.success {
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #dcfce7;
  color: #166534;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 700px) {
  .authPage {
    padding: 28px 14px;
    align-items: flex-start;
  }

  .authBox {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .authBox h1 {
    font-size: 36px;
  }

  .authBox input,
  .authBox button {
    font-size: 16px;
  }
}
/* ONE FRAME SHOWCASE + ZOOM */
.homeAppShowcase {
  width: 100%;
  max-width: 1450px;
  margin: 35px auto;
  padding: 0 14px;
}

.showcaseFrame {
  background: white;
  border-radius: 32px;
  padding: 34px;
  box-shadow: 0 24px 75px rgba(15, 23, 42, 0.16);
}

.showcaseFrame h2 {
  font-size: 32px;
  color: #0f766e;
  text-align: center;
  margin-bottom: 8px;
}

.showcaseFrame p {
  font-size: 19px;
  color: #7c3aed;
  text-align: center;
  margin-bottom: 28px;
}

.showcaseGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.showcaseItem {
  display: block;
  cursor: zoom-in;
  text-align: center;
}

.showcaseItem img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
}

.showcaseItem span {
  display: block;
  margin-top: 14px;
  font-size: 24px;
  font-weight: 900;
  color: #0f766e;
}

/* VIDEO ZOOMABLE */
.videoZoomLink {
  display: block;
  cursor: zoom-in;
}

.videoZoomLink .youtube-lite {
  pointer-events: none;
}

/* ZOOM POPUP */
.imageZoomOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  padding: 20px;
}

.imageZoomOverlay.active {
  display: flex;
}

.imageZoomBox {
  width: 100%;
  max-width: 1200px;
  max-height: 92vh;
  background: white;
  border-radius: 24px;
  padding: 16px;
  position: relative;
}

.imageZoomBox img,
.imageZoomBox iframe {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 0;
  display: block;
  border-radius: 16px;
}

.imageZoomClose {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 700px) {
  .homeAppShowcase {
    padding: 0 10px;
    margin: 24px auto;
  }

  .showcaseFrame {
    padding: 18px;
    border-radius: 24px;
  }

  .showcaseFrame h2 {
    font-size: 26px;
  }

  .showcaseFrame p {
    font-size: 17px;
  }

  .showcaseGrid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .showcaseItem img {
    height: auto;
    min-height: 0;
    padding: 8px;
    object-fit: contain;
  }

  .showcaseItem span {
    font-size: 21px;
  }

  .imageZoomBox {
    padding: 8px;
  }

  .imageZoomClose {
    top: 8px;
    right: 8px;
  }
}/* BEAUTIFUL LOGIN PAGE */
.authPage {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 18px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.12), transparent 34%),
    linear-gradient(135deg, #f8fafc, #eef2ff);
}

.authBox {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.96);
  padding: 42px;
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
  border: 1px solid #e2e8f0;
}

.authBox h1 {
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 28px;
  text-align: center;
  font-weight: 950;
  background: linear-gradient(90deg, #7c3aed, #ec4899, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.authBox input {
  width: 100%;
  display: block;
  padding: 17px 18px;
  margin-bottom: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  color: #111827;
  font-size: 17px;
}

.authBox input:focus {
  outline: none;
  border-color: #7c3aed;
  background: white;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

.authBox button {
  width: 100%;
  padding: 17px 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #7c3aed, #ec4899, #f97316);
  color: white;
  font-size: 19px;
  font-weight: 950;
  cursor: pointer;
  margin: 6px 0 20px;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.22);
}

.authBox button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.authBox p {
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
}

.authBox a {
  color: #7c3aed;
  font-weight: 800;
}

.error {
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #fee2e2;
  color: #991b1b;
  text-align: center;
  font-weight: 800;
}

.success {
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #dcfce7;
  color: #166534;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 700px) {
  .authPage {
    min-height: calc(100vh - 20px);
    padding: 28px 14px;
    align-items: flex-start;
  }

  .authBox {
    padding: 30px 20px;
    border-radius: 24px;
  }

  .authBox h1 {
    font-size: 38px;
  }

  .authBox input,
  .authBox button {
    font-size: 16px;
  }
}