* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #000000;
}

/* HEADER */
header {
  padding: 24px;
  border-bottom: 1px solid #e5e5e5;
}

header h1 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 1px;
}

header p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #666;
}

/* GRID */
.flash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}
.price-note {
  margin-top: 2px;
  font-size: 12px;
  color: #777;
  line-height: 1.4;
}
/* CARD */
.flash-card {
  border: 1px solid #e5e5e5;
  padding: 10px;
  background: #fff;
}

/* IMAGE */
.flash-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* INFO */
.flash-info {
  margin-top: 8px;
  text-align: center;
}

.flash-info h3 {
  margin: 6px 0 2px;
  font-size: 14px;
  font-weight: 400;
}

.flash-info p {
  margin: 2px 0;
  font-size: 13px;
}

.status {
  font-style: italic;
  color: #777;
}

/* BOOK BUTTON */
.book-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  font-size: 13px;
  text-decoration: none;
  color: #000;
  border: 1px solid #000;
  transition: background 0.2s ease, color 0.2s ease;
}

.book-btn:hover {
  background: #000;
  color: #fff;
}

/* MODAL OVERLAY */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* MODAL IMAGE */
.modal-img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* CLOSE BUTTON */
.close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 32px;
  cursor: pointer;
}
.header-buttons {
  margin-top: 12px;
}

.custom-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 6px 14px;
  font-size: 13px;
  text-decoration: none;
  color: #666;
  border: 1px solid #ccc;
}

.custom-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}
/* HEADER TOP */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LANGUAGE BUTTON */
.lang-btn {
  border: 1px solid #000;
  background: transparent;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.lang-btn:hover {
  background: #000;
  color: #fff;
}
/* Prevent layout jump + lighter thumbnail rendering */
.flash-img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}
.flash-card img {
  max-width: 100%;
}
/* =========================
   CLAIMED FLASH STYLING
========================= */

.status.claimed {
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Fade image when claimed */
.flash-card:has(.status.claimed) img {
  opacity: 0.45;
}
/* EMPHASIZED CUSTOM PROJECT BUTTON */
.custom-btn--primary {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid #000;
  color: #000;
}

.custom-btn--primary:hover {
  background: #000;
  color: #fff;
}
