:root{
      --bg:#f7f6f3;
      --cyan:#111111;
      --mag:#b89b5e;
      --yellow:#6e6e6e;

      --stroke:rgba(17, 17, 17, .10);
      --glass:rgba(255, 255, 255, .78);
      --card-radius:18px;
    }

    *{ box-sizing:border-box; }
    html,body{ height:100%; }
    body{
      margin:0;
      font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      color:#121212;
      background: var(--bg);
      overflow-x:hidden;
    }

    /* Background */
    .bg{
      position:fixed;
      inset:0;
      pointer-events:none;
      z-index:-3;
      background:
        radial-gradient(1100px 780px at 50% 0%, rgba(184,155,94,.08), transparent 60%),
        radial-gradient(900px 700px at 20% 65%, rgba(0,0,0,.035), transparent 60%),
        radial-gradient(900px 700px at 80% 75%, rgba(184,155,94,.06), transparent 62%),
        linear-gradient(180deg, rgba(247,246,243,1), rgba(247,246,243,1));
    }
    .gridlines{
      position:fixed;
      inset:-40px;
      pointer-events:none;
      z-index:-2;
      opacity:.06;
      background:
        repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(0deg,  rgba(0,0,0,.10) 0 1px, transparent 1px 72px);
    }

    .dots{ position:fixed; inset:0; pointer-events:none; z-index:-2; }
    .dot{
      position:absolute;
      width:6px; height:6px; border-radius:50%;
      opacity:.35;
      animation: drift 12s ease-in-out infinite alternate;
      filter: blur(.25px);
    }
    .dot.c{ background:rgba(184,155,94,.55); box-shadow: 0 0 0 rgba(0,0,0,0); }
    .dot.m{ background:rgba(0,0,0,.18); box-shadow: 0 0 0 rgba(0,0,0,0); }
    .dot.y{ background:rgba(184,155,94,.30); box-shadow: 0 0 0 rgba(0,0,0,0); }
    @keyframes drift{
      from{ transform: translateY(0px) translateX(0px); opacity:.18; }
      to{ transform: translateY(-10px) translateX(8px); opacity:.42; }
    }

    /* Page */
    .page{
      width:min(980px, 100%);
      margin:0 auto;
      padding: 56px 22px 44px;
    }

    /* Title */
    .title{
      display:flex;
      justify-content:center;
      align-items:center;
      gap:12px;
      margin-top: 0px;
      margin-bottom: 34px;
      letter-spacing: 6px;
      font-weight:700;
      font-size: 38px;
      line-height:1.05;
      text-transform:uppercase;
    }
    .title .black{
      color: var(--cyan);
      text-shadow: none;
    }
    .title .candy{
      color: var(--mag);
      text-shadow: none;
    }

    /* Nav pill */
    .navWrap{ display:flex; justify-content:center; margin: 10px 0 40px; }
    .nav{
      width: min(520px, 100%);
      background: rgba(255,255,255,.78);
      border: 1px solid rgba(17,17,17,.12);
      border-radius: 999px;
      padding: 10px;
      display:flex;
      gap: 10px;
      box-shadow: 0 12px 30px rgba(0,0,0,.06);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }
    .tab{
      flex:1;
      text-align:center;
      padding: 12px 0px;
      border-radius: 999px;
      font-weight:600;
      font-size: 14px;
      color: rgba(0,0,0,.55);
      user-select:none;
      -webkit-tap-highlight-color: transparent;
      cursor:pointer;
      transition: background .18s ease, color .18s ease, border-color .18s ease;
    }
    .tab.active{
      color: rgba(17,17,17,.92);
      background: rgba(184,155,94,.12);
      border: 1px solid rgba(184,155,94,.32);
      box-shadow: none;
    }

    /* Section title */
    .sectionTitle{
      text-align:center;
      font-weight:700;
      font-size: 26px;
      color: var(--cyan);
      margin: 0px 0 26px;
      text-shadow: none;
      letter-spacing: 1px;
    }

    /* Grid */
    .grid{
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 26px;
      padding: 8px 2px 18px;
    }

    /* Card - Fixed image display */
    .card{
      position:relative;
      border-radius: var(--card-radius);
      overflow:hidden;
      background: rgba(255,255,255, .92);
      border: 1px solid rgba(17,17,17,.12);
      box-shadow:
        0 18px 38px rgba(0,0,0,.08),
        0 1px 0 rgba(255,255,255,.75) inset;
      aspect-ratio: 3 / 4.25;
      cursor:pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
      display: flex;
      flex-direction: column;
    }
    .card:active{ transform: scale(.99); }

    /* Card image - FIXED: Use dynamic image from database */
    .card .img{
      flex: 1;
      min-height: 0; /* Important for flex layout */
      margin: 12px 12px 0 12px;
      border-radius: 14px 14px 0 0;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 22px rgba(0,0,0,.10);
    }
    /* Add overlay to ensure text is readable */
    .card .img::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 46px;
      background: linear-gradient(to top, rgba(0,0,0,0.18), transparent);
    }

    .card .bottom{
      padding: 14px 12px 16px;
      background: rgba(255,255,255,.96);
      display:flex;
      flex-direction:column;
      align-items:center;
      gap: 5px;
      margin-top: auto; /* Push to bottom */
      border-top: 1px solid rgba(17,17,17,.08);
    }
    .name{
      font-weight:700;
      font-size: 16px;
      color: var(--cyan);
      text-shadow: none;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 100%;
      letter-spacing: .5px;
    }
    .hint{
      font-size: 12px;
      color: rgba(0,0,0,.55);
      text-shadow: none;
    }

    /* Footer */
    .footer{
      text-align:center;
      padding: 22px 0 0px;
      color: rgba(0,0,0,.55);
      font-weight:500;
      font-size: 13px;
    }
    .footer b{
      color: var(--mag);
      font-weight:700;
      text-shadow: none;
    }

    /* Panels (Contact/Terms) */
    .panel{
      display:none;
      margin: 10px auto 18px;
      padding: 18px 16px;
      border-radius: 16px;
      background: rgba(255,255,255,.86);
      border: 1px solid rgba(17,17,17,.12);
      box-shadow: 0 18px 42px rgba(0,0,0,.08);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }
    .panel h3{
      margin:  10px 0 0;
      color: var(--cyan);
      text-shadow: none;
      font-size: 18px;
      letter-spacing: .4px;
    }
    .panel p{
      margin: 0;
      color: rgba(0,0,0,.65);
      font-size: 14px;
      line-height: 1.6;
    }

    /* =========================
       Pricing Modal (like image)
       ========================= */
    .overlay{
      position:fixed;
      inset:0;
      display:none;
      align-items:center;
      justify-content:center;
      padding: 18px;
      background: rgba(10,10,10,.55);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      z-index: 50;
    }
    .overlay.show{ display:flex; }

    .modal{
      width: min(420px, calc(100% - 10px));
      border-radius: 18px;
      overflow:hidden; /* Changed from 'auto' to 'hidden' */
      background: rgba(255,255,255,.98);
      border: 1px solid rgba(17,17,17,.14);
      box-shadow:
        0 26px 70px rgba(0,0,0,.22),
        0 1px 0 rgba(255,255,255,.75) inset;
      position:relative;
      max-height: 600px;
      display: flex;
      flex-direction: column;
    }

    .modalTop{
      height: 170px;
      min-height: 170px; /* Fixed height */
      background-size: cover;
      background-position:center;
      background-repeat: no-repeat;
      position: relative;
      filter: saturate(.95) contrast(1.02);
    }

    .modalClose{
      position:absolute;
      right: 12px;
      top: 10px;
      width: 32px;
      height: 32px;
      border-radius: 12px;
      display:grid;
      place-items:center;
      color: rgba(0,0,0,.70);
      font-size: 22px;
      line-height: 1;
      cursor:pointer;
      user-select:none;
      -webkit-tap-highlight-color: transparent;
      text-shadow: none;
      z-index: 10;
      background: rgba(255,255,255,0.78);
      border: 1px solid rgba(0,0,0,.10);
      box-shadow: 0 10px 22px rgba(0,0,0,.12);
    }
    .modalClose:active{ transform: scale(.96); }

    .modalBody{
      padding: 18px 18px 16px;
      position:relative;
      flex: 1;
      overflow-y: auto;
    }

    /* Dark band behind the title (like screenshot) */
    .titleBand{
      margin-top: -44px;
      padding: 14px 12px 12px;
      border-radius: 14px;
      background: rgba(247,246,243,.94);
      box-shadow: none;
      border: 1px solid rgba(17,17,17,.10);
      text-align:center;
      position: relative;
      z-index: 5;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }
    .modalName{
      font-weight:800;
      font-size: 26px;
      color: var(--cyan);
      text-shadow: none;
      margin: 0;
      letter-spacing: .6px;
    }
    .modalSub{
      margin: 6px 0 0;
      font-weight:600;
      font-size: 15px;
      color: rgba(0,0,0,.58);
      text-shadow: none;
    }

    .priceList{
      margin-top: 18px;
      display:flex;
      flex-direction:column;
      gap: 14px;
      padding: 0 2px 4px;
    }
    .row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding: 8px 4px;
      color: rgba(17,17,17,.92);
      font-weight:700;
      font-size: 18px;
      text-shadow: none;
      letter-spacing: .3px;
    }
    .row .money{
      color: var(--mag);
      text-shadow: none;
    }
    .divider{
      height: 1px;
      background: rgba(0,0,0,.10);
      margin: -6px 0 -2px;
    }

    /* Custom styles for contact info */
    .contact-info-container {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    
    .contact-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px;
      background: rgba(247,246,243,.92);
      border-radius: 12px;
      border: 1px solid rgba(17,17,17,.10);
    }
    
    .contact-icon {
      width: 40px;
      height: 40px;
      min-width: 24px;
      fill: var(--mag);
      filter: none;
      opacity: .95;
    }
    
    .contact-platform-wrapper {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }
    
    .contact-platform {
      font-weight: 700;
      color: rgba(17,17,17,.92);
      font-size: 14px;
      letter-spacing: .2px;
    }
    
    .contact-details {
      font-weight: 400;
      color: rgba(0,0,0,.62);
      font-size: 13px;
      line-height: 1.45;
      display: block;
    }

    /* Keep it mobile-oriented */
    @media (max-width: 390px){
      .title{ font-size: 34px; letter-spacing: 5px; }
      .sectionTitle{ font-size: 24px; }
      .grid{ gap: 16px; }
      .name{ font-size: 15px; }
      .modalTop{ height: 160px; min-height: 160px; }
      .modalName{ font-size: 24px; }
      .modalSub{ font-size: 14px; }
      .row{ font-size: 17px; }
      .contact-platform { font-size: 14px; }
      .contact-details { font-size: 12px; }
    }

    .modalDesc{
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.6;
  opacity: .92;
  word-break: break-word;
  color: rgba(0,0,0,.68);
}

/* New styles for description and image gallery */

/* Description in modal */
.modalDesc {
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.6;
  opacity: .92;
  word-break: break-word;
  color: rgba(0,0,0,.68);
}

/* Full screen image viewer */
.fullscreen-image {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
}

.fullscreen-image.show {
  display: flex;
}

.fullscreen-image img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Image preview in modal - smaller and clickable */
.modalImagePreview {
  height: 120px;
  min-height: 120px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 12px;
  margin: 12px 0;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.14);
  transition: border-color 0.3s ease, transform 0.2s ease;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
}

.modalImagePreview:hover {
  border-color: rgba(184, 155, 94, 0.55);
  transform: scale(1.01);
}

.modalImagePreview:active {
  transform: scale(0.99);
}

.imageClickHint {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.70);
  background: rgba(255, 255, 255, 0.86);
  padding: 4px;
  text-shadow: none;
  backdrop-filter: blur(6px);
}

/* Adjust modal for description */
.modalBody {
  padding: 18px 18px 16px;
  position: relative;
  flex: 1;
  overflow-y: auto;
  max-height: none; /* Allow modal to grow with content */
}

/* Make modal taller if needed */
.modal {
  max-height: 85vh; /* Use viewport height instead of fixed value */
}

/* Mobile adjustments */
@media (max-width: 390px) {
  .modalImagePreview {
    height: 100px;
    min-height: 100px;
  }
  
  .modalDesc {
    font-size: 13px;
  }
}
