body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: white;
}
/* NAVBAR */
.navbar {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.nav-inner {
    width: 90%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    width: 28px;
    margin-right: 8px;
}

.brand {
    font-size: 22px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 50px;
	padding-right: -150px;
}

.nav-links a {
    color: #cfcfcf;
    text-decoration: none;
    font-size: 17px;
}

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

.credits-btn {
    padding: 10px 20px;
    background: #55cc55;
    color: black;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.signup-btn {
    padding: 10px 20px;
    background: #8a09e4;
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* MAIN */
.main-container {
    text-align: center;
    margin-top: 40px;
}

.title {
    font-size: 85px;
	padding-bottom: 10px;
    font-weight: 800;
}


.category-box:hover {
    background: #151926;
}

.subtitle {
    font-size: 20px;
    margin-top: -60px;
    color: #cfcfcf;
}

.idea-title {
    margin-top: 40px;
}

.input-bar {
    margin: 15px auto;
    width: 600px;
    height: 50px;
    background: #1b1b1b;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.input-bar input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: red;
}

/* CATEGORY GRID */
.category-title {
    margin-top: 60px;
}

.category-grid {
    width: 85%;
    max-width: 900px;
    margin: 30px auto;
    display: grid;

    /* âœ… Desktop default */
    grid-template-columns: repeat(5, 1fr);

    gap: 20px;
    padding: 0 12px;  /* âœ… prevents edge sticking on mobile */
}

.category-box {
    height: 140px;
    border: 2px dashed #2f2353;
    border-radius: 10px;
    background: radial-gradient(circle at top, #171c2d, #050506);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;   /* âœ… IMPORTANT */
}


/* Tablet */
@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
		 padding: 0 20px;   /*  THIS FIXES EDGE STICKING */
    }
}

/* Mobile */
@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2px;   /* REAL MOBILE SAFE SPACE */
    }
}


    .category-box {
        height: 130px;
    }

.category-box .plus {
    font-size: 40px;
    color: #888;
}

/* âœ… FORCE LONG WORDS TO BREAK INTO 2 LINES (RESPONSIVE ONLY) */
@media (max-width: 900px) {

    .category-box .label {
        white-space: normal;      /* âœ… Allow wrapping */
        word-break: break-word;  /* âœ… Break long words */
        text-align: center;
        line-height: 1.2;
        max-width: 90%;
    }

}
/* GENERATE BUTTON */
.generate-btn {
    margin-top: 40px;
    padding: 16px 36px;
    border-radius: 999px;
    border: 1px solid #8a09e4;
    background: transparent;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.generate-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: #a855f7;
}



.generate-btn.disabled {
	background: rgba(255,255,255,0.06);
    opacity: 0.7;
    cursor: not-allowed;
}


/* ---------------------------------------------------------------- */
/* -----------------------   FIXED MODAL   ------------------------ */
/* ---------------------------------------------------------------- */

/* POPUP BACKGROUND + CENTERING */
.modal-overlay {
    position: fixed;
    background: rgba(0,0,0,0.9);
    width: 100%;
    height: 100%;
    top: 0; left: 0;

    display: flex;
    justify-content: center;
    align-items: center; /* was 'start'  now perfectly centered */

    padding: 40px; /* prevents popup from touching edges */
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

/* POPUP BOX */
.modal-box {
    width: 70%;        /* your requested smaller width */
    max-width: 1000px;  /* premium size */
    background: radial-gradient(circle at top, #451c89, #050506);
    padding: 25px;
    border-radius: 16px;

    transform: scale(0.95);
    transition: transform 0.25s ease;

    /* prevent modal from overflowing screen */
    max-height: 80vh;
    overflow: hidden;

    display: flex;
    flex-direction: column;
}


/* âœ… Tablet */
@media (max-width: 1200px) {
    .modal-box {
        width: 85%;
        max-width: 85%;
    }
}

/* âœ… Mobile */
@media (max-width: 600px) {
    .modal-box {
        width: 85%;
        max-width: 85%;
        padding: 18px;   /* âœ… optional: better mobile spacing */
    }
}


/* HEADER */
.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-header h2 {
    flex: 1;
}

.close-btn {
    font-size: 30px;
    cursor: pointer;
}

/* IMAGE GRID â€” now scrolls INSIDE modal */
.modal-images {
    margin-top: 16px;
    display: grid;

    /* âœ… Desktop default (auto fit many columns) */
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 16px;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
    padding-bottom: 10px;
}

/* âœ… MOBILE & TABLET: FORCE 2 IMAGES PER ROW */
@media (max-width: 100px) {
    .modal-images {
        grid-template-columns: repeat(2, 1fr); /* âœ… EXACTLY 2 PER ROW */
    }
}
/* THUMBNAILS */
.modal-img-box img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

/* LOADER */
.loader {
    position: fixed;
    width: 80px;
    height: 80px;
    border: 8px solid #444;
    border-top-color: #8a09e4;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%,-50%) rotate(360deg); }
}

/* Fade-in animation */
.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Remove button */
.remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    z-index: 10;
}

.category-box {
    position: relative;
}

/* Thumbnail size */
.modal-img-box,
.modal-img-wrapper {
    width: 100%;
    height: 150px;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
  .origa-start-btn {
    bottom: 24px;
  }
}

@media (max-width: 1024px) {
  .origa-start-btn {
    padding: 12px 26px;
    font-size: 15px;
  }
}


.typing-line {
    color: #white;             /* dark grey */
    font-size: 28px;
    font-weight: 600;
    height: 35px;            /* keeps box height stable */
    letter-spacing: 1px;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 28px;
    background: #888;
    margin-left: 4px;
    animation: blink 0.6s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}



/* for the place that can write his idea */
.idea-container {
    width: 82%;
    max-width: 860px;
    margin: 40px auto;
    background: #1e1f25;

    border-radius: 8px;

    padding: 10px 16px;
    min-height: 46px;

    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #2a2c32;
}

/* âœ… TABLET = 85% */
@media (max-width: 900px) {
    .idea-container {
        width: 80%;
    }
}

/* âœ… MOBILE = 85% */
@media (max-width: 600px) {
    .idea-container {
        width: 80%;
        padding: 8px 14px;
        min-height: 42px;
    }
}



.idea-container input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #8b8d97;
    font-size: 20px;
}

.idea-container input::placeholder {
    color: #a78bfa;
}


.idea-container textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #c4b5fd;
    font-size: 18px;
    resize: none;
    min-height: 42px;
    max-height: none;
    overflow: hidden;   /*  THIS REMOVES SCROLL */
    line-height: 1.4;
    font-family: inherit;
}





#heroTypeText {
    font-size: 36px;
    height: 45px;
    letter-spacing: 1px;
    text-align: center;

    background: linear-gradient(90deg, #7e22ce, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}




/* WHITE BLOCK CURSOR */
.cursor {
    display: inline-block;
    width: 14px;
    height: 26px;
    background: #ffffff;
    margin-left: 6px;
    animation: blinkCursor 0.7s steps(1) infinite;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}


/* ========================================================= */
/* === ADDED: FINAL PROMPT SECTION (always visible)        === */
/* ========================================================= */

#finalPromptSection {
    width: 85%;
    max-width: 900px;   /* âœ… Desktop stays the same */
    margin: 30px auto;
    padding: 20px;
    background: #1b1b1b;
    border-radius: 14px;
    color: #68696e;
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
    box-sizing: border-box;
}

/* âœ… Mobile refinement */
@media (max-width: 768px) {
    #finalPromptSection {
        width: 92%;
        font-size: 16px;
        padding: 16px;
    }
}
.final-prompt h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #522fad;
}




/* ========================================================= */
/* === ADDED: Make generate button disabled style better  === */
/* ========================================================= */

.generate-btn.disabled {
    background: #444 !important;
    color: #777 !important;
    cursor: not-allowed !important;
}


/* ============================ */
/* ===== RESPONSIVE MENU ===== */
/* ============================ */

.menu-toggle {
    display: none;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #111;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        display: none;
    }

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

    .nav-right {
        gap: 10px;
		padding-left: 70px;
    }
}



/* âœ… SCROLLING TEXT FOR LONG IMAGE TITLES */
.modal-img-box,
.modal-img-wrapper {
    position: relative;
    overflow: hidden;
}

.modal-img-box .label,
.modal-img-wrapper .label {
    white-space: nowrap;
    display: inline-block;
    animation: none;
}


.modal-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    background: linear-gradient(90deg, #7e22ce, #4f46e5);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: 0.25s ease;
}




/* âœ… ACTIVATE SCROLLING ONLY ON MOBILE */
@media (max-width: 900px) {

    .modal-img-box .label,
    .modal-img-wrapper .label {
        animation: scrollText 6s linear infinite;
        padding-left: 100%;
    }

    @keyframes scrollText {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }

}


/* âœ… copy button */

.copy-btn {
    margin-top: 15px;
    padding: 10px 18px;
    background: #dbdbdb;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.copy-btn:hover {
    background: #8a09e4;
	color: white;
}





.final-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.final-title-row h3 {
    margin: 0;
}


/* âœ… Tablet */
@media (max-width: 900px) {
    .final-title-row {
        width: 85%;
        margin: 0 auto;
    }
}

/* âœ… Mobile */
@media (max-width: 900px) {
    .final-title-row {
        width: 100%;
        margin: 0 auto;
    }
}




/* âœ… BLACK OVERLAY 70% ABOVE BACKGROUND */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, #171c2d, #050506);
    z-index: -1;
}




@media (max-width: 600px) {
    .modal-images {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* âœ… DESKTOP DEFAULT */
.modal-images {
    grid-template-columns: repeat(4, 1fr);
}

/* âœ… TABLET = 3 IMAGES PER ROW */
@media (max-width: 900px) {
    .modal-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* âœ… MOBILE = 2 IMAGES PER ROW */
@media (max-width: 600px) {
    .modal-images {
        grid-template-columns: repeat(2, 1fr);
    }
}






/* âœ… Safe hidden helper pop up of opening the website*/
.hidden-new {
  display: none !important;
}

/* âœ… Disable scroll when popup is open */
body.no-scroll-new {
  overflow: hidden;
}

/* âœ… Main popup wrapper */
.new-popup-section-2 {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

/* âœ… Dark blurred background */
.new-popup-backdrop-2 {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

/* âœ… Popup card */
.new-popup-card-2 {
  position: relative;
  width: 92%;
  max-width: 1100px;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0%, #65b356, #126f00);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  animation: popupFadeInNew 0.4s ease-out forwards;
}

/* âœ… Close button */
.new-popup-close-2 {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: #020617;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* âœ… Layout */
.new-popup-content-2 {
  display: flex;
  min-height: 340px;
}

/* âœ… Text area */
.new-popup-text-2 {
  flex: 1.1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.new-popup-text-2 h2 {
  font-size: 2.6rem;
  margin-bottom: -10px;
}

.new-popup-text-2 p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

/* âœ… BIG COUNTDOWN */
.new-popup-timer-2 {
  font-size: 2.0rem;
  font-weight: 800;
  margin-bottom: 26px;
  color: #bef264;
}

/* âœ… Button */
.new-popup-btn-2 {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: 14px 34px;
  font-weight: 700;
  background: #bef264;
  cursor: pointer;
}

/* âœ… Image panel */
.new-popup-image-2 {
  flex: 1;
  background-size: cover;
  background-position: center;
}

/* âœ… Animation */
@keyframes popupFadeInNew {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* âœ… Responsive */
@media (max-width: 768px) {
  .new-popup-content-2 {
    flex-direction: column;
  }

  .new-popup-text-2 {
    padding: 28px;
  }

  .new-popup-text-2 h2 {
    font-size: 2rem;
  }
}


#finalPromptText {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.6;
}





/* =============================== */
/* IDEA INPUT UPGRADE */
/* =============================== */

.idea-container {
    align-items: flex-start;
}

.idea-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#charCount {
    font-size: 13px;
    color: #c4b5fd;
    white-space: nowrap;
}

.idea-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: white;
    color: black;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.idea-arrow:hover {
    background: #8a09e4;
}






/* ===================== */
/* === PRO IMAGE LOCK === */
/* ===================== */

.pro-lock img {
  filter: blur(1px) brightness(0.55);
}

.pro-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #facc15, #d97706);
  color: black;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
  font-weight: 700;
  z-index: 5;
}

.pro-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  opacity: 0;
  transition: 0.2s ease;
}

.pro-lock:hover .pro-text {
  opacity: 1;
}

.pro-lock {
  cursor: not-allowed;
}




/* =============================== */
/* O4Prompts SIMPLE GALLERY masonary */
/* =============================== */

.origa-gallery-grid {
  column-count: 4;
  column-gap: 18px;
}

.origa-gallery-grid img {
  width: 100%;
  margin-bottom: 18px;
  border-radius: 12px;
  break-inside: avoid;
  transition: transform 0.3s ease;
}

.origa-gallery-grid img:hover {
  transform: scale(1.05);
}

/* Tablet */
@media (max-width: 900px) {
  .origa-gallery-grid {
    column-count: 3;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .origa-gallery-grid {
    column-count: 2;
  }
}




/* ===================== */
/* FOOTER */
/* ===================== */

.site-footer {
  background: transparent; /* same site bg */
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3,
.footer-col h4 {
  color: white;
  margin-bottom: 14px;
}

.footer-col p {
  color: #9ca3af;
  font-size: 14px;
  max-width: 260px;
}

.footer-col a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: #8a09e4;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  font-size: 13px;
  color: #6b7280;
}

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

/* MOBILE */
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col p {
    margin: 0 auto;
  }
}




/* =============================== */
/* GALLERY START NOW BUTTON */
/* =============================== */

.origa-gallery-item {
  position: relative;
  overflow: hidden;   /* âœ… THIS IS THE KEY */
  border-radius: 12px; /* same as image */
}

.origa-start-btn {
  position: absolute;
  bottom: 50px;              /* âœ… higher than edge */
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 22px;
  pointer-events: auto;

  border-radius: 999px;
  border: none;

  background: white;
  color: black;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, color 0.2s ease;
}

/* show on hover (opacity only) */
.origa-gallery-item:hover .origa-start-btn {
  opacity: 1;
}

/* hover on button */
.origa-start-btn:hover {
  background: #8a09e4;
  color: white;
}

@media (max-width: 600px) {
  .origa-start-btn {
    padding: 8px 18px;
    font-size: 13px;
    white-space: nowrap;     /* âœ… one line */
  }
}

.origa-gallery-item:hover img {
  transform: scale(1.07);
}



.origa-reset-hidden {
  display: none;
}

#copyPromptBtn {
  display: block;
  margin: 0 auto;
}

#origaResetCountdown {
  display: block;
  text-align: center;
  margin-top: 8px;   /* space under button */
  font-size: 13px;
  color: #8a09e4;
}


.copy-area {
  display: flex;
  flex-direction: column;
  align-items: center;   /* âœ… center button + text */
  gap: 6px;
}

#origaResetMsg {
	  text-align: center;
  font-size: 13px;
  color: #8a09e4;
  opacity: 0.85;
}

.gallery-title {
  text-align: center;
  margin-bottom: 30px;
	margin-top: 20px;
		        background: linear-gradient(90deg, #7e22ce, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}



.disabled-btn {
  opacity: 0.4;
  cursor: not-allowed;
}

#origaResetBtn:enabled {
  opacity: 1;
  cursor: pointer;
}

#origaResetBtn:hover:enabled {
  background: #6fe86f;
}



 /* âœ… this is for top right */
.user-bar {
  display: none;
  align-items: center;
  gap: 12px;
}

.user-bar.show {
  display: flex;
}



/* ======================================= */
/* ANIMATED GRADIENT STROKE â€“ DARK GLASS    */
/* ======================================= */

.idea-container {
  border: 1px solid transparent;
  border-radius: 8px;

  /* ðŸ”¥ MUCH DARKER GLASS */
background:
  linear-gradient(
    rgba(0,0,5,0.75),
    rgba(5,5,5,0.75)
  ) padding-box,
  linear-gradient(
    90deg,
    #7e22ce,
    #4f46e5,
    #7e22ce
  ) border-box;


  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  background-size: 100% 100%, 300% 300%;
}

/* animate ONLY when focused */
.idea-container:focus-within {
  animation: ideaStrokeMove 6s linear infinite;
}

/* static when not focused */
.idea-container:not(:focus-within) {
  background-size: 100% 100%, 100% 100%;
}

@keyframes ideaStrokeMove {
  from { background-position: 0% 0%, 0% 50%; }
  to   { background-position: 0% 0%, 300% 50%; }
}





.nav-right {
  min-width: 260px;   /* lock width */
  display: flex;
  justify-content: flex-end;
}





/* TOP BAR */
.new-top-bar {
  height: 40px;
background: linear-gradient(90deg, #7e22ce, #4f46e5);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

/* NAVBAR */
.new-navbar {
  background: transparent;
  border-bottom: 1px solid #1f1f1f;
}

.new-nav-inner {
  height: 72px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.new-nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.new-logo {
  font-size: 22px;
  font-weight: 800;
  color: white;
  font-size: 22px;
  font-weight: 800;
  color: white;
	  text-decoration: none;
  color: inherit;
}

.new-nav-links a {
  color: #cfcfcf;
  text-decoration: none;
  margin-right: 24px;
  font-size: 15px;
}

.new-nav-links a:hover {
  color: white;
}

.new-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* USER */
.new-user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.hidden {
  display: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .new-nav-inner {
    padding: 0 20px;
  }

  .new-nav-links {
    display: none;
  }

  .new-top-bar {
    font-size: 13px;
    gap: 8px;
  }
}




/* ================= AUTH BUTTONS ================= */
.auth-buttons {
  display: flex;
  gap: 12px;
}

/* SIGN IN */
.btn-outline {
  background: transparent;
  border: 1px solid #3f3f46;
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
}

/* SIGN UP */
.btn-primary {
  background: white;
  color: black;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s;
}

.btn-primary:hover {
  background: #e5e5e5;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .auth-buttons {
    gap: 8px;
  }

  .btn-outline,
  .btn-primary {
    padding: 8px 14px;
    font-size: 13px;
  }
}








/* ================= FOOTER ================= */
.o4p-footer {
  margin-top: 140px;
  padding: 60px 80px 30px;
  background: radial-gradient(circle at top, #0b0f16, #050506);
  color: #9ca3af;
}

/* TOP FOOTER */
.o4p-footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 2fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid #1f2937;
}

/* BOTTOM FOOTER */
.o4p-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 14px;
}

/* LINKS */
.o4p-footer-links a {
  color: #9ca3af;
  text-decoration: none;
  margin: 0 14px;
}

.o4p-footer-links a:hover {
  color: white;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 1024px) {
  .nav-links { display: none; }

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

  .card-row {
    grid-auto-columns: 68%;
  }

  .o4p-footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .o4p-footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}


/* NAV LEFT CORE */
.new-nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* LOGO */
.new-logo {
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  color: white;
}

/* LINKS */
.new-nav-links a {
  color: #cfcfcf;
  text-decoration: none;
  margin-right: 24px;
  font-size: 15px;
}

.new-nav-links a:hover {
  color: white;
}

/* SOON BADGE */
.soon-link {
  position: relative;
}

.soon-badge {
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #7e22ce, #4f46e5);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .new-nav-links {
    display: none;
  }
}




/* FAQ */
.faq-section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
}

.faq-item {
  border-bottom: 1px solid #1f2937;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-item.active .faq-question {
  color: #c084fc;
}

.faq-icon {
  font-size: 32px;
  transition: transform 0.3s ease;
}

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

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

.faq-answer p {
  color: #9ca3af;
  font-size: 17px;
  padding-bottom: 22px;
  line-height: 1.7;
}



/* masonary */

.masonry-section {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 20px;
}

.masonry-title {
  font-size: 32px;
  margin-bottom: 30px;
}

.masonry-title .highlight {
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* MASONRY */
.masonry-grid {
  column-count: 4;
  column-gap: 16px;
}

.masonry-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 14px;
  overflow: hidden;
}

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

/* OVERLAY */
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85),
    rgba(0,0,0,0.2),
    transparent
  );
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  transition: 0.3s ease;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.prompt-text {
  font-size: 13px;
  line-height: 1.4;
  color: #e5e7eb;
  margin-bottom: 10px;
}

/* BUTTON */
.masonry-btn {
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  color: white;
  cursor: pointer;
  font-size: 13px;
}

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

/* RESPONSIVE */
@media (max-width: 1200px) {
  .masonry-grid { column-count: 3; }
}

@media (max-width: 900px) {
  .masonry-grid { column-count: 3; }
}

@media (max-width: 600px) {
  .masonry-grid { column-count: 3; }
}



/* DARK HOVER LAYER */
.masonry-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.masonry-item:hover::before {
  opacity: 1;
}

/* BRAND TOP LEFT */
.masonry-brand {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.masonry-item:hover .masonry-brand {
  opacity: 1;
}

.masonry-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fde047;
  color: black;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.masonry-name {
  color: white;
  font-size: 14px;
  font-weight: 500;
}

/* Dark hover layer must NOT block clicks */
.masonry-item::before {
  pointer-events: none;
}

/* Button must be above everything */
.masonry-btn {
  position: relative;
  z-index: 5;
}



.generate-hint {
  margin-top: 10px;
  font-size: 13px;
  color: #9ca3af;
  opacity: 0.85;
  text-align: center;
	display: none;
}



/* this is for not showing the sign up and sing in */
#o4p-auth-buttons,
#userBar {
  display: none;
}


.auth-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  /* FORCE SAME SIZE */
  font-size: 14px;
  line-height: 1;
  padding: 10px 18px;

  box-sizing: border-box;
}




/* ================= O4P AVATAR AUTH (FREEPIK-LIKE FINAL) ================= */

#o4p-avatar-auth-root {
  position: relative;
  display: none;
}

/* ===== AVATAR BUTTON ===== */
#o4p-avatar-btn {
  cursor: pointer;
  margin-right: 6px;
}

#o4p-avatar-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    #4f6ef7 0deg,
    #4f6ef7 230deg,
    #2b2b2b 230deg
  );
}

#o4p-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

/* ===== DROPDOWN ===== */
#o4p-avatar-menu {
  position: absolute;
  top: 46px;      /* closer vertically */
  right: 0px;     /* closer horizontally */
  width: clamp(300px, 32vw, 300px); /* responsive */
  max-height: 520px;               /* fixed height */
  overflow-y: auto;                /* scroll inside */
  background: #1f1f1f;
  border-radius: 18px;
  padding: 22px;
  display: none;
  z-index: 9999;
}

#o4p-avatar-menu * {
  white-space: nowrap;
}


#o4p-avatar-menu.show {
  display: block;
}

.o4p-menu-item span {
  white-space: normal;
}


/* keep same left edge everywhere */
#o4p-avatar-menu > * {
  padding-left: 6px;
  padding-right: 6px;
}

/* ===== USER INFO ===== */
#o4p-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

#o4p-user-info img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

#o4p-menu-username {
  font-size: 16px;
  font-weight: 600;
}

#o4p-menu-email {
  font-size: 13px;
  opacity: 0.6;
}

/* ===== UPGRADE BUTTON (EXACT SIZE) ===== */
#o4p-upgrade-btn {
  width: 100%;
  height: 33px;              /* smaller */
  background: #4f6ef7;
  border: none;
  color: #fff;
  border-radius: 7px;      /* pill shape like image */
  font-size: 14px;           /* same font size as menu */
  font-weight: 600;
  cursor: pointer;
  margin: 10px 0 16px;
}



/* ===== CREDIT USAGE ===== */
#o4p-credits-box {
  padding-top: 18px;
  margin-top: 8px;
  border-top: 1px solid #2b2b2b;
}

#o4p-credit-header {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

#o4p-credit-stats {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 14px;
  margin-bottom: 10px;
}

#o4p-credit-bar {
  height: 8px;
  background: #3a3a3a;
  border-radius: 999px;
  overflow: hidden;
}

#o4p-credit-fill {
  height: 100%;
  width: 45%;
  background: #4f6ef7;
  border-radius: 999px;
}

/* ===== MENU ITEMS (ICON + TEXT + OPTIONAL RIGHT) ===== */
.o4p-menu-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
}

.o4p-menu-item:hover {
  background: #2a2a2a;
}

/* icons */
.o4p-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  stroke: currentColor;
  fill: none;
}

/* badge (Premium+) */
.o4p-badge {
  background: #2b2b2b;
  color: #c7d2fe;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

/* ===== DIVIDER ===== */
.o4p-divider {
  height: 1px;
  background: #2b2b2b;
  margin: 16px 0 10px;
}

/* ===== LOGOUT ===== */
#o4p-logout-btn {
  padding: 14px;
  font-size: 15px;
  cursor: pointer;
  color: #f87171;
  border-radius: 12px;
}

#o4p-logout-btn:hover {
  background: rgba(248, 113, 113, 0.14);
}

/* ===== GLOBAL MENU SCALE DOWN ===== */
#o4p-avatar-menu {
  transform: scale(0.88);        /* try 0.9 – 0.95 */
  transform-origin: top right;   /* keeps position correct */
}


.o4p-logout {
  color: #f87171;
}

.o4p-logout:hover {
  background: rgba(248,113,113,.14);
}


/* divider before & after credit usage */
#o4p-credits-box {
  border-top: 1px solid #2b2b2b;
  border-bottom: 1px solid #2b2b2b;
  padding: 18px 0;
  margin: 14px 0;
}


#o4p-upgrade-btn:hover {
  background: #3b5bdb;   /* slightly darker blue */
}


/* end of the avatar */





/* FORCE LOGIN MODAL */
.force-login{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
}
.force-login.hidden{display:none;}

.force-login-box{
  background:#1f1f1f;
  width:420px;
  max-width:92%;
  padding:28px;
  border-radius:18px;
  text-align:center;
  color:#fff;
  position:relative;
}

.force-login-box h2{
  font-size:22px;
  margin-bottom:8px;
}

.force-login-box p{
  opacity:.7;
  margin-bottom:20px;
}

.force-actions{
  display:flex;
  gap:12px;
}

.force-btn{
  flex:1;
  padding:14px;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
  text-align:center;
}

.force-btn.primary{
  background:#4f6ef7;
  color:#fff;
}

.force-btn.primary:hover{
  background:#5d7cff;
}

.force-btn.outline{
  border:1px solid #444;
  color:#fff;
}

.force-btn.outline:hover{
  background:#2a2a2a;
}

.force-close{
  position:absolute;
  top:12px;
  right:14px;
  background:none;
  border:none;
  font-size:22px;
  color:#aaa;
  cursor:pointer;
}

.new-popup-card-2 {
  position: relative;
  z-index: 2;
}

.new-popup-close-2 {
  z-index: 5;
  pointer-events: auto;
}

#forceLoginModal {
  z-index: 99999;
}

#forceLoginModal * {
  pointer-events: auto;
}

.force-login-backdrop {
  pointer-events: auto;
}

#forceClose {
  pointer-events: auto;
  cursor: pointer;
  z-index: 100000;
}


