/* ============================================================
   GLOBAL LAYOUT
   ============================================================ */

body {
  font-family: Arial, sans-serif;
  margin: 30px;
  background: #f7f7f7;
  color: #333;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 600;
  text-align: center;
}
h3.Cent1 {
  text-align: center;
}

.pack-section {
  margin-bottom: 50px;
}

.pack-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.pack {
  width: 48%;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.pack h3 {
  margin-bottom: 12px;
}

/* ============================================================
   THUMBNAIL GRIDS
   ============================================================ */

.thumb-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.thumb-grid-10 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.thumb-grid-50 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

/* ============================================================
   THUMBNAIL CONTAINER
   ============================================================ */

.thumb {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: #ddd;
  border: 1px solid #ccc;
  position: relative;
  overflow: hidden;
  font-size: 10px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease;
}

.thumb:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   THUMBNAIL IMAGE (FULL COVER)
   ============================================================ */

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

/* ============================================================
   BUTTONS + PADLOCK ICON
   ============================================================ */

.download-btn {
  margin-top: 12px;
  padding: 8px 14px;
  background: #333;
  color: #fff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

.download-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

.lock-icon {
  font-size: 18px;
  margin-left: 8px;
  opacity: 0.85;
}
.unlock-message {
  display: none;
  background: #4caf50;
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.top-password-box {
  width: 50%;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.top-password-box input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box !important; /* Forces correct sizing */
  display: block;
}
.pack-full {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}
/* ============================================================
   SINGLE DOWNLOADS — GRID LAYOUT
   ============================================================ */

.single-section {
  margin: 60px auto;
  max-width: 1400px;
  padding: 0 20px;
}

.single-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 700;
}

/* 5‑column responsive grid */
.single-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

/* ============================================================
   SINGLE ITEM CARD
   ============================================================ */

.single-item {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.single-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   THUMBNAIL IMAGE
   ============================================================ */

.single-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: opacity 0.3s ease;
}

/* ============================================================
   BUTTON STYLING
   ============================================================ */

.download-btn {
  width: 100%;
  padding: 12px;
  background: #0078ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.download-btn:hover:not(:disabled) {
  background: #005fcc;
}

.download-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

/* ============================================================
   LOCKED STATE
   ============================================================ */

.single-item.locked .single-thumb {
  opacity: 0.75;
  filter: grayscale(40%);
}

.single-item.locked .download-btn {
  background: #666;
}

.single-item.locked .download-btn:hover {
  background: #555;
}

/* ============================================================
   UNLOCKED STATE
   ============================================================ */

.single-item:not(.locked) .single-thumb {
  opacity: 1;
  filter: none;
}

.single-item:not(.locked) .download-btn {
  background: #28a745;
}

.single-item:not(.locked) .download-btn:hover {
  background: #1e8a38;
}

/* ============================================================
   LOCK ICON
   ============================================================ */

.lock-icon {
  margin-left: 6px;
  font-size: 1.1rem;
}
/* ============================================================
   SINGLE SPOTLIGHT SECTION
   ============================================================ */

.single-spotlight {
  max-width: 250px; /* ~75% of previous 600px */
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.single-spotlight h2 {
  font-size: 1.5 rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ============================================================
   SINGLE SPOTLIGHT BOX
   ============================================================ */

.single-spotlight-box {
  width: 100%;
  max-width: 250px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  text-align: center;
}

/* ============================================================
   PERFECT 1:1 SQUARE FRAME (same as packs)
   ============================================================ */

.single-spotlight-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  border-radius: 10px;
  padding: 6px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 15px;
}

/* ============================================================
   IMAGE FITS INSIDE THE SQUARE (no stretching)
   ============================================================ */

.single-spotlight-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ============================================================
   BUTTON (same as packs)
   ============================================================ */

.download-btn {
  width: 100%;
  padding: 12px;
  background: #0078ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.15s ease;
}

.download-btn:hover:not(:disabled) {
  background: #005fcc;
  transform: translateY(-2px);
}

.download-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

/* ============================================================
   LOCK ICON
   ============================================================ */

.lock-icon {
  margin-left: 8px;
  font-size: 1.2rem;
}

/* ============================================================
   LOCKED / UNLOCKED VISUAL STATES
   ============================================================ */

.single-spotlight-box.locked .single-spotlight-img {
  opacity: 0.85;
  filter: grayscale(25%);
}

.single-spotlight-box.unlocked .single-spotlight-img {
  opacity: 1;
  filter: none;
}
/* ============================================================
   MASTER PASSWORD BOX
   ============================================================ */

.master-password {
  width: 100%;
  max-width: 700px;
  margin: 40px auto 50px auto;
  padding: 25px 20px;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.mp-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.mp-label {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Input + button on same line */
.mp-input-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.mp-input-row input {
  flex: 1;
  max-width: 350px;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 8px;
}

.mp-btn {
  padding: 12px 20px;
  background: #0078ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.mp-btn:hover {
  background: #005fcc;
}

.mp-instructions {
  font-size: 0.95rem;
  color: #444;
  margin-top: 10px;
}

/* Unlock message */
.unlock-message {
  margin-top: 15px;
  font-weight: 600;
  color: #0078ff;
  display: none;
}

/* ============================================================
   ADMIN PAGE WRAPPER
   ============================================================ */

.admin-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #222;
}

.admin-wrapper h1 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.admin-wrapper h2 {
  font-size: 1.6rem;
  margin: 30px 0 15px 0;
  font-weight: 600;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 6px;
}

/* ============================================================
   GRID LAYOUT FOR PASSWORD ROWS
   ============================================================ */

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 25px;
}

.admin-row {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.admin-row:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-row label {
  font-weight: 600;
  font-size: 0.95rem;
}

.admin-row input {
  width: 140px;
  padding: 8px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.admin-row input:focus {
  border-color: #0078ff;
  outline: none;
}

/* ============================================================
   SAVE BUTTON
   ============================================================ */

.admin-save-btn {
  display: block;
  width: 100%;
  margin: 35px auto 0 auto;
  padding: 14px;
  background: #0078ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition:
    background 0.25s ease,
    transform 0.15s ease;
}

.admin-save-btn:hover {
  background: #005fcc;
  transform: translateY(-2px);
}

.admin-save-btn:active {
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE BEHAVIOUR
   ============================================================ */

@media (max-width: 700px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-row input {
    width: 160px;
  }
}
/* ============================
   LIGHTBOX OVERLAY
============================= */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* ============================
   LIGHTBOX CONTENT BOX
============================= */
.lightbox-content {
  position: relative;
  background: white;
  padding: 10px;
  border-radius: 8px;
  width: 600px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================
   LIGHTBOX IMAGE
============================= */
.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ============================
   CLOSE BUTTON
============================= */
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  transition: 0.2s ease;
}

.lightbox-close:hover {
  color: #000;
}
/* ============================
FORCE lightbox images to scale up 
============================*/
.lightbox-content img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
}
