:root{
      --bg:#070707;
      --cyan:#00f7ff;
      --mag:#ff2bd6;
      --yellow:#ffe100;

      --stroke:rgba(0, 247, 255, .22);
      --glass:rgba(10, 12, 14, .6);
      --card-radius:22px;
    }

    *{ 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:#eafcff;
      background: var(--bg);
      overflow-x:hidden;
    }

    /* Background */
    .bg{
      position:fixed;
      inset:0;
      pointer-events:none;
      z-index:-3;
      background:
        radial-gradient(1200px 800px at 50% 10%, rgba(0,247,255,.10), transparent 55%),
        radial-gradient(900px 700px at 30% 65%, rgba(255,43,214,.10), transparent 55%),
        radial-gradient(900px 700px at 75% 70%, rgba(0,247,255,.08), transparent 55%),
        radial-gradient(600px 600px at 50% 100%, rgba(0,0,0,.65), rgba(0,0,0,.95));
    }
    .gridlines{
      position:fixed;
      inset:-40px;
      pointer-events:none;
      z-index:-2;
      opacity:.18;
      background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 62px),
        repeating-linear-gradient(0deg,  rgba(255,255,255,.35) 0 1px, transparent 1px 62px);
    }

    .dots{ position:fixed; inset:0; pointer-events:none; z-index:-2; }
    .dot{
      position:absolute;
      width:8px; height:8px; border-radius:50%;
      opacity:.85;
      animation: drift 9s ease-in-out infinite alternate;
      filter: blur(.15px);
    }
    .dot.c{ background:rgba(0,247,255,.8); box-shadow: 0 0 18px rgba(0,247,255,.9); }
    .dot.m{ background:rgba(255,43,214,.8); box-shadow: 0 0 18px rgba(255,43,214,.85); }
    .dot.y{ background:rgba(255,225,0,.65); box-shadow: 0 0 14px rgba(255,225,0,.6); }
    @keyframes drift{
      from{ transform: translateY(0px) translateX(0px); opacity:.65; }
      to{ transform: translateY(-18px) translateX(12px); opacity:1; }
    }

    /* Page */
    .page{
      width:min(430px, 100%);
      margin:0 auto;
      padding: 28px 16px 18px;
    }

    /* Title */
    .title{
      display:flex;
      justify-content:center;
      align-items:center;
      gap:14px;
      margin-top: 6px;
      margin-bottom: 18px;
      letter-spacing: 2px;
      font-weight:800;
      font-size: 44px;
      line-height:1;
      text-transform:uppercase;
    }
    .title .black{
      color: var(--mag);
      text-shadow: 0 0 10px rgba(255,43,214,.75), 0 0 24px rgba(255,43,214,.45);
    }
    .title .candy{
      color: var(--cyan);
      text-shadow: 0 0 10px rgba(0,247,255,.85), 0 0 26px rgba(0,247,255,.45);
    }

    /* Nav pill */
    .navWrap{ display:flex; justify-content:center; margin: 10px 0 26px; }
    .nav{
      width: min(380px, 100%);
      background: rgba(10, 12, 14, .6);
      border: 1.5px solid rgba(0,247,255,.22);
      border-radius: 999px;
      padding: 10px;
      display:flex;
      gap: 10px;
      box-shadow: 0 0 30px rgba(0,247,255,.10), inset 0 0 18px rgba(0,247,255,.08);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    .tab{
      flex:1;
      text-align:center;
      padding: 10px 0px;
      border-radius: 999px;
      font-weight:600;
      font-size: 15px;
      color: rgba(220,255,255,.75);
      user-select:none;
      -webkit-tap-highlight-color: transparent;
      cursor:pointer;
    }
    .tab.active{
      color: rgba(230,255,255,.95);
      background: rgba(0,247,255,.08);
      border: 1px solid rgba(0,247,255,.35);
      box-shadow: 0 0 18px rgba(0,247,255,.55), 0 0 45px rgba(0,247,255,.25), inset 0 0 18px rgba(0,247,255,.14);
    }

    /* Section title */
    .sectionTitle{
      text-align:center;
      font-weight:700;
      font-size: 34px;
      color: var(--cyan);
      margin: 6px 0 18px;
      text-shadow: 0 0 10px rgba(0,247,255,.75), 0 0 24px rgba(0,247,255,.35);
    }

    /* Grid */
    .grid{
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      padding: 6px 2px 22px;
    }

    /* Card - Fixed image display */
    .card{
      position:relative;
      border-radius: var(--card-radius);
      overflow:hidden;
      background:
        radial-gradient(180px 160px at 50% 18%, rgba(0,247,255,.08), transparent 60%),
        rgba(4, 6, 8, .85);
      border: 2px solid rgba(0,247,255,.22);
      box-shadow:
        0 0 20px rgba(0,247,255,.12),
        0 0 55px rgba(0,247,255,.08),
        inset 0 0 25px rgba(0,247,255,.05);
      aspect-ratio: 3 / 4.25;
      cursor:pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
      display: flex;
      flex-direction: column;
    }
    .card:active{ transform: scale(.985); }

    /* Card image - FIXED: Use dynamic image from database */
    .card .img{
      flex: 1;
      min-height: 0; /* Important for flex layout */
      margin: 10px 10px 0 10px;
      border-radius: 18px 18px 0 0;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      position: relative;
      overflow: hidden;
    }
    /* Add overlay to ensure text is readable */
    .card .img::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 40px;
      background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    }

    .card .bottom{
      padding: 12px 10px 12px;
      background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.4) 60%, transparent);
      display:flex;
      flex-direction:column;
      align-items:center;
      gap: 6px;
      margin-top: auto; /* Push to bottom */
    }
    .name{
      font-weight:700;
      font-size: 20px;
      color: var(--mag);
      text-shadow: 0 0 10px rgba(255,43,214,.8), 0 0 22px rgba(255,43,214,.35);
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 100%;
    }
    .hint{
      font-size: 13px;
      color: rgba(0,247,255,.9);
      text-shadow: 0 0 10px rgba(0,247,255,.45);
    }

    /* Footer */
    .footer{
      text-align:center;
      padding: 12px 0 8px;
      color: rgba(200,255,255,.7);
      font-weight:500;
      font-size: 14px;
    }
    .footer b{
      color: var(--yellow);
      font-weight:700;
      text-shadow: 0 0 10px rgba(255,225,0,.35);
    }

    /* Panels (Contact/Terms) */
    .panel{
      display:none;
      margin: 6px auto 18px;
      padding: 18px 16px;
      border-radius: 18px;
      background: rgba(10, 12, 14, .55);
      border: 1.5px solid rgba(0,247,255,.22);
      box-shadow: 0 0 30px rgba(0,247,255,.10), inset 0 0 18px rgba(0,247,255,.06);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    .panel h3{
      margin:  10px 0 0;
      color: var(--cyan);
      text-shadow: 0 0 10px rgba(0,247,255,.55);
      font-size: 18px;
    }
    .panel p{
      margin: 0;
      color: rgba(230,255,255,.78);
      font-size: 14px;
      line-height: 1.5;
    }

    /* =========================
       Pricing Modal (like image)
       ========================= */
    .overlay{
      position:fixed;
      inset:0;
      display:none;
      align-items:center;
      justify-content:center;
      padding: 18px;
      background: rgba(0,0,0,.55);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 50;
    }
    .overlay.show{ display:flex; }

    .modal{
      width: min(380px, calc(100% - 10px));
      border-radius: 22px;
      overflow:hidden; /* Changed from 'auto' to 'hidden' */
      background: rgba(5,7,9,.9);
      border: 3px solid rgba(255,43,214,.95);
      box-shadow:
        0 0 22px rgba(255,43,214,.65),
        0 0 70px rgba(255,43,214,.35),
        inset 0 0 18px rgba(255,43,214,.08);
      position:relative;
      max-height: 600px;
      display: flex;
      flex-direction: column;
    }

    .modalTop{
      height: 150px;
      min-height: 150px; /* Fixed height */
      background-size: cover;
      background-position:center;
      background-repeat: no-repeat;
      position: relative;
    }

    .modalClose{
      position:absolute;
      right: 12px;
      top: 10px;
      width: 30px;
      height: 30px;
      border-radius: 10px;
      display:grid;
      place-items:center;
      color: rgba(220,255,255,.85);
      font-size: 22px;
      line-height: 1;
      cursor:pointer;
      user-select:none;
      -webkit-tap-highlight-color: transparent;
      text-shadow: 0 0 12px rgba(0,247,255,.35);
      z-index: 10;
      background: rgba(0,0,0,0.3);
    }
    .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: -40px;
      padding: 14px 12px 10px;
      border-radius: 16px;
      background: rgba(0,0,0,.55);
      box-shadow: inset 0 0 20px rgba(0,0,0,.25);
      text-align:center;
      position: relative;
      z-index: 5;
    }
    .modalName{
      font-weight:800;
      font-size: 28px;
      color: var(--mag);
      text-shadow: 0 0 14px rgba(255,43,214,.75), 0 0 28px rgba(255,43,214,.35);
      margin: 0;
    }
    .modalSub{
      margin: 4px 0 0;
      font-weight:600;
      font-size: 18px;
      color: rgba(0,247,255,.85);
      text-shadow: 0 0 14px rgba(0,247,255,.28);
    }

    .priceList{
      margin-top: 22px;
      display:flex;
      flex-direction:column;
      gap: 18px;
      padding: 0 2px 4px;
    }
    .row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding: 8px 4px;
      color: rgba(0,247,255,.95);
      font-weight:700;
      font-size: 22px;
      text-shadow: 0 0 14px rgba(0,247,255,.25);
    }
    .row .money{
      color: rgba(0,247,255,.95);
      text-shadow: 0 0 16px rgba(0,247,255,.45);
    }
    .divider{
      height: 1.5px;
      background: rgba(0,247,255,.22);
      margin: -8px 0 -2px;
    }

    /* Custom styles for contact info */
    .contact-info-container {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    
    .contact-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px;
      background: rgba(0, 0, 0, 0.3);
      border-radius: 12px;
      border: 1px solid rgba(0, 247, 255, 0.15);
    }
    
    .contact-icon {
      width: 40px;
      height: 40px;
      min-width: 24px;
      fill: #00f7ff;
      filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.6));
    }
    
    .contact-platform-wrapper {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }
    
    .contact-platform {
      font-weight: 600;
      color: #7fa0e8;
      font-size: 16px;
    }
    
    .contact-details {
      font-weight: 400;
      color: #9aebff;
      font-size: 14px;
      line-height: 1.4;
      display: block;
    }

    /* Keep it mobile-oriented */
    @media (max-width: 390px){
      .title{ font-size: 40px; }
      .sectionTitle{ font-size: 30px; }
      .grid{ gap: 14px; }
      .name{ font-size: 18px; }
      .modalTop{ height: 140px; min-height: 140px; }
      .modalName{ font-size: 26px; }
      .modalSub{ font-size: 17px; }
      .row{ font-size: 21px; }
      .contact-platform { font-size: 15px; }
      .contact-details { font-size: 13px; }
    }

    .modalDesc{
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.5;
  opacity: .85;
  word-break: break-word;
}

/* New styles for description and image gallery */

/* Description in modal */
.modalDesc {
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.5;
  opacity: .85;
  word-break: break-word;
}

/* Full screen image viewer */
.fullscreen-image {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  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: 12px;
  box-shadow: 0 0 40px rgba(0, 247, 255, 0.3);
  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: 2px solid rgba(0, 247, 255, 0.3);
  transition: border-color 0.3s ease, transform 0.2s ease;
  overflow: hidden;
}

.modalImagePreview:hover {
  border-color: rgba(0, 247, 255, 0.7);
  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, 247, 255, 0.9);
  background: rgba(0, 0, 0, 0.7);
  padding: 4px;
  text-shadow: 0 0 8px rgba(0, 247, 255, 0.5);
  backdrop-filter: blur(4px);
}

/* 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;
  }
}