:root{
    --bg:#eef5fd;
    --primary:#052b7d;
    --accent:#c4def8;
    --white:#ffffff;
    --text:#1d2740;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:'Montserrat',sans-serif;
}

.container{
    width:90%;
    max-width:1400px;
    margin:auto;
}

/* NAVIGATION HEADER */
nav{
    background:white;
    position:sticky;
    top:0;
    z-index:100;
    border-bottom:1px solid rgba(5,43,125,.08);
}

.nav-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
    position: relative;
}

.logo{ display:flex; flex-direction:column; }
.logo img{ width:80px; height:auto; display:block; }
.logo span{ letter-spacing:4px; font-size:11px; color:#052b7d; }
.logo h2{ color:var(--primary); font-family:'Cormorant Garamond',serif; font-size:42px; }

.menu{ display:flex; gap:40px; }
.menu a{ text-decoration:none; color:var(--primary); font-weight:600; text-transform:uppercase; font-size:13px; }

.btn{
    background:var(--primary);
    color:white;
    text-decoration:none;
    padding:14px 28px;
    border-radius:10px;
    font-weight:600;
    transition:.3s;
    border: none;
    cursor: pointer;
}
.btn:hover{ transform:translateY(-2px); }

.menu-toggle { display: none; }
.hamburger { display: none; font-size: 24px; cursor: pointer; color: var(--primary); order: 2; align-items: center; gap: 8px; font-weight: 600; }
.hamburger span { font-size: 13px; font-family: 'Montserrat', sans-serif; letter-spacing: 1px; }

@media(max-width:992px){
    .hamburger { display: flex; }
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 30px 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.08);
        gap: 25px;
        text-align: center;
        border-top: 1px solid rgba(5,43,125,.05);
    }
    .menu-toggle:checked ~ .menu { display: flex; }
    .nav-btn { padding: 10px 18px; font-size: 13px; }
}

/* CONTACT PAGE TARGET LAYOUT RULES */
.contact-section {
    padding: 2px 0;
}


.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(5,43,125,0.02);
    border: 1px solid rgba(5, 43, 125, 0.03);
}


input, select, textarea {
    padding: 16px;
    border: 1px solid #d6e5fb;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: #fbfdff;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

/* STATS DETAILS PANEL RULES */
.stats-list {
    list-style: none;
    margin-top: 20px;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(5, 43, 125, 0.06);
    font-size: 15px;
}

.stats-list li span:first-child {
    font-weight: 600;
    color: #52627f;
}

.stats-list li span:last-child {
    font-weight: 700;
    color: var(--primary);
}

.contact-meta-info {
    margin-top: 30px;
    font-size: 14px;
    color: #52627f;
    line-height: 1.6;
}

/* GLOBAL BRAND FOOTER */
footer{ background:white; margin-top:80px; border-top:1px solid rgba(5,43,125,.08); }
.footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; padding:60px 0; }
.footer-title{ color:var(--primary); margin-bottom:15px; font-weight:600; }
footer ul{ list-style:none; }
footer li{ margin-bottom:10px; }
footer a{ text-decoration:none; color:#4c5d7a; }
.copyright{ text-align:center; padding:20px; border-top:1px solid rgba(5,43,125,.08); }

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

@media (max-width: 992px) {

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

}


/* =========================
   FAMILY PICTURE CARD
========================= */

.feature-card-wrapper{
    padding:10px 0;
}

.feature-card{
    background:#fff;
    border:1px solid #ececf3;
    border-radius:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 10px;
    width:auto;
    margin-bottom:24px;
}

.feature-left{
    display:flex;
    align-items:center;
    gap:15px;
    flex:1;
    min-width:0;
}

.feature-icon{
    width:48px;
    height:48px;
    border-radius:50%;
    background:#f4f1ff;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.feature-icon svg{
    width:24px;
    height:24px;
    fill:#6a5cff;
}

.feature-info h3{
    color:var(--primary);
    font-size:24px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:10px;
}

.feature-info p{
    color:#7d879d;
    font-size:12px;
    margin-top:6px;
}

.ai-tag{
    background:#f1edff;
    color:#7b61ff;
    font-size:11px;
    font-weight:600;
    padding:4px 8px;
    border-radius:8px;
}


/* =========================
   POINTS BOX
========================= */

.points-box{
    max-width:200px;
    border:1px solid #ececf3;
    border-radius:20px;
    padding:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
}

.points-info{
    display:flex;
    align-items:center;
    gap:10px;
}

.points-number{
    font-size:12px;
    font-weight:700;
    color:var(--primary);
}

.points-label{
    font-size:10px;
    color:#7d879d;
}

.topup-btn{
    background:#6a5cff;
    color:#fff;
    border:none;
    border-radius:10px;
    padding:8px 18px;
    font-size:13px;
    font-weight:600;
    white-space:nowrap;
    flex-shrink:0;
}




/* ============================================================
   TOOLS SUB-NAVIGATION BAR ARCHITECTURE
   ============================================================ */
.tools-subnav-bar {
    background: #fcfcfd;
    border-bottom: 1px solid #f1f1f5;
    padding: 8px 0;
    font-family: 'Montserrat', sans-serif;
}

.tools-subnav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Breadcrumb Navigation Text Layout */
.tools-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.crumb-root {
    color: #8e8e9f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.crumb-root:hover {
    color: #5031F4; /* Matches signature purple theme */
}

.crumb-divider {
    color: #d5d5e1;
    font-weight: 300;
}

.crumb-active {
    color: #1a1a24;
    font-weight: 600;
}

/* Scalable Suite Link Right Side Hub */
.directory-link-back {
    font-size: 12px;
    font-weight: 600;
    color: #5031F4;
    text-decoration: none;
    background: rgba(80, 49, 244, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.directory-link-back:hover {
    background: rgba(80, 49, 244, 0.1);
    box-shadow: 0 2px 6px rgba(80, 49, 244, 0.05);
}

.library-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 20px;
}

.library-main-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.library-subtitle {
  font-size: 14px;
  color: #52627f;
}

#prompt-search {
  width: 320px;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #d6e5fb;
  background: var(--white);
}

/* Category Filter Layout rules */
.filter-pills-row {
  display: flex;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #d6e5fb;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover, .filter-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Dynamic Grid matching the two-column display */
.viral-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(580px, 1fr));
  gap: 30px;
  width: 100%;
}

/* Landscape-Oriented Premium Card Setup */
.viral-prompt-card {
  background: var(--white);
  border: 1px solid rgba(5, 43, 125, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(5,43,125,0.02);
  display: flex;
  height: 480px; /* Forces nice uniform dimensions across grid items */
}

/* Left Half Image View */
.viral-image-pane {
  width: 42%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg);
  flex-shrink: 0;
}

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

/* Right Half Content View */
.viral-content-pane {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto; /* Lets contents scroll internally if prompt is extra long */
}

.card-meta-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.viral-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.category-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  padding: 4px 12px;
  border-radius: 20px;
  background: #f1edff;
  color: #6a5cff;
  white-space: nowrap;
}

.viral-card-description {
  font-size: 13px;
  color: #7d879d;
  line-height: 1.5;
  margin-bottom: 4px;
}

/* Prompt Console Blocks */
.platform-prompt-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.platform-label-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #52627f;
}

.utility-copy-btn {
  background: none;
  border: none;
  color: #1a73e8;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.utility-copy-btn:hover {
  text-decoration: underline;
}

.console-box {
  background: #f4f7fc;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  border-radius: 8px;
  max-height: 65px;
  overflow-y: auto;
}

.console-box code {
  font-family: monospace;
  font-size: 12px;
  color: #4a5568;
  white-space: pre-wrap;
  word-break: break-word;
}

/* The solid corporate blue download bars from screenshot layout */
/* Custom Wide Copy Action Buttons */
.primary-copy-btn {
  width: 100%;
  padding: 10px 14px;
  background: var(--primary); /* Uses your website's deep corporate blue brand color */
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.primary-copy-btn:hover {
  background-color: #042263; /* Slightly darker shift for visual response */
}

.primary-copy-btn:active {
  transform: scale(0.98);
}

/* Success flash background change when clipboard copy completes successfully */
.primary-copy-btn.copied-success {
  background-color: #10a37f !important; /* Changes to modern green to visually confirm copy action completion */
}

@media (max-width: 1200px) {
  .viral-library-grid {
    grid-template-columns: 1fr; /* Stacks cards into a single clean column */
  }
}


  /* Release the fixed height and landscape display on mobile */
  .viral-prompt-card {
    flex-direction: column !important;
    height: auto !important;
    max-width: 100%;
  }

  /* Force the image pane to look like a standard top banner photo card */
  .viral-image-pane {
    width: 100% !important;
    height: 250px !important;
  }

  /* Fix spacing issues for layout flow */
  .library-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  #prompt-search {
    width: 100% !important;
  }
  
  /* Prevent horizontal view scrolling leaks */
  body, html {
    overflow-x: hidden;
  }


  /* Release the fixed height and landscape display on mobile */
  .viral-prompt-card {
    flex-direction: column !important;
    height: auto !important;
    max-width: 100%;
  }

  /* Force the image pane to look like a standard top banner photo card */
  .viral-image-pane {
    width: auto !important;
    height: auto !important;
  }

  /* Fix spacing issues for layout flow */
  .library-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  #prompt-search {
    width: 100% !important;
  }
  
  /* Prevent horizontal view scrolling leaks */
  body, html {
    overflow-x: hidden;
  }


/* =========================
   CUSTOM POPUP MODAL
========================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 39, 64, 0.4); /* Uses your --text color with transparency */
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(5, 43, 125, 0.15);
    border: 1px solid rgba(5, 43, 125, 0.05);
    animation: modalFadeIn 0.3s ease forwards;
}

.modal-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
}

.modal-card p {
    color: #52627f;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 28px;
}

.modal-btn {
    width: 100%;
    padding: 14px;
}

/* =========================
   CUSTOM POPUP MODAL (PROMPT EXTENSIONS)
========================= */
/* Top-Right "X" Button Positioning */
.modal-close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 26px;
    font-weight: 300;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-x:hover {
    color: #1d2740;
}

/* Stacked Button Layout Container */
.modal-actions-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Primary Action Accent Button */
.main-action-btn {
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    font-weight: 600;
}

/* Secondary Donate Action Button */
.donate-action-btn {
    background: #ffffff !important;
    color: var(--primary) !important;
    border: 2px solid #052b7d !important;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.donate-action-btn:hover {
    background: #052b7d !important;
    color: #ffffff !important;
}

/* Transparent No Thanks Anchor link styling */
.no-thanks-btn {
    background: none;
    border: none;
    color: #718096;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
    margin-top: 5px;
    transition: color 0.2s ease;
}

.no-thanks-btn:hover {
    color: #1d2740;
}


/* =========================
   MOBILE
========================= */

@media (max-width:768px){

     .tools-subnav-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .feature-card{
        display:flex;
        flex-direction:row;
        align-items:flex-start;
        gap:12px;
    }

    .feature-left{
        flex:1;
        min-width:0;
    } 

   .feature-info h3{
        font-size:12px;
        white-space:normal; /* allow natural wrapping if needed */
    }

    .feature-info p{
        font-size:13px;
    }

    .points-box{
        width:150px;              /* narrower panel */
        display:flex;
        flex-direction:row;    /* stack contents */
        align-items:right;
        gap:10px;
        padding:5px;
    }
  .points-info{
        width:80%;
    }

    .points-number{
        font-size:12px;
    }

    .points-label{
        font-size:10px;
    }

   .topup-btn{
        width:50%;
        padding:8px 0;
        font-size:13px;
    }

    .upload-box{
        max-width:100%;
    }

    .upload-section{
        flex-direction:column;
        gap:16px;
    }

    .upload-box{
        width:100%;
        min-width:0;
        height:140px;
    }

    .file-list{
        width:100%;
    }

      .preset-grid {
        grid-template-columns: repeat(2, 1fr); /* Fixed: 5 columns break layout on small mobile screens */
        gap: 8px;
    }


      .preset-card {
        aspect-ratio: auto; /* Removes the conflicting card-level aspect ratio */
    }

      .preset-card img {
        aspect-ratio: 2 / 3; 
    }

       .preset-card h4 {
        font-size: 11px;
        padding: 8px 4px;
    }

    .thumbnail{
        aspect-ratio:2/3; /* mobile crop frame */
    }

     .more-card {
        /* Automatically adapts to span both columns on mobile */
        grid-column: 1 / -1; 
        padding: 12px;
    }
    
    .more-icon {
        font-size: 32px; /* Slightly scaled down icon for mobile viewports */
    }

     .thumbnail-selector-matrix-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .nested-tabs-navigation {
        flex-direction: column;
        gap: 6px;
    }

     .quality-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .security-trust-bar {
        flex-direction: column;
        gap: 6px;
    }
    .trust-divider {
        display: none;
    }

  .prompts-grid {
    grid-template-columns: 2fr; /* Stacks everything into a neat single column on phones */
    gap: 20px;
  	}
	}






    
.contact-section{min-height:700px;padding:40px 0;}
