
.card:hover {
    transform: scale(1.02);
}

.card img {
    width: 100%;
    max-width: 220px;   /* uniform thumbnail width */
    height: 150px;      /* fixed thumbnail height */
    object-fit: contain;  /* crop to fit neatly */
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

a{color:#a0c8ff;text-decoration:none} a:hover{text-decoration:underline}
header{position:sticky;top:0;background:#0b0f14cc;border-bottom:1px solid #ffffff14;backdrop-filter:blur(10px);z-index:10}
.container{width:min(1100px,92vw);margin:0 auto;padding:14px}
.nav{display:flex;gap:12px;align-items:center;justify-content:space-between}
.brand{display:flex;gap:10px;align-items:center;font-weight:800}
.logo{width:26px;height:26px;border-radius:8px;background:linear-gradient(135deg,var(--brand),var(--brand2))}
.main{padding:22px 0}
.card{
    background:linear-gradient(180deg,#ffffff0a,#ffffff06);
    border:1px solid #ffffff14;
    border-radius:14px;
    padding:16px;
    margin:10px 0;
    transition: transform 0.2s;
}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.btn{display:inline-block;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;padding:10px 14px;border-radius:999px;border:0;font-weight:700}
.btn.ghost{background:transparent;border:1px solid #ffffff33}
input,textarea,select{width:100%;padding:10px 12px;border-radius:10px;border:1px solid #ffffff22;background:#0f1623;color:var(--text)}
table{width:100%;border-collapse:collapse}
th,td{padding:8px;border-bottom:1px solid #ffffff14;text-align:left}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;border:1px solid #ffffff2a;color:#cfe5ff}
.ok{color:#b3f3cd} .err{color:#ffb4b4}
@media (max-width:900px){.grid{grid-template-columns:1fr}}

.auction-gallery {
    width: 100%;
    overflow-x: auto;           /* enables horizontal scroll */
    padding: 10px 0;
    margin: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.gallery-container {
    display: flex;              /* align images horizontally */
    gap: 10px;
    min-width: max-content;     /* prevent wrapping */
}

.gallery-container img {
    width: 200px;               /* thumbnail width */
    height: 150px;              /* fixed height */
    object-fit:scale-down;          /* crop nicely */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.gallery-container img:hover {
    transform: scale(1.05);
}

#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#tcbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

#lightbox-content {
  position: relative;
  text-align: center;
    width: 90vw !important;
    height: 90vh !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    padding: 0 !important;
    margin: 0 auto !important;  
  /* max-width: 90%;
  max-height: 80%; */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
  overflow-y: scroll;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}  
  to {opacity: 1; transform: scale(1);}
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

#tcbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

.error-message {
  color: #fff;
  background: #e53935;        /* red background */
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 1rem;            /* scales with device */
  text-align: center;
  margin: 10px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.success-message {
  color: #fff;
  background: #091124;        /* red background */
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 1rem;            /* scales with device */
  text-align: center;
  margin: 10px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Adjust for small screens */
@media (max-width: 600px) {
  .error-message, .success-message {
    font-size: 1.1rem;        /* slightly larger for readability */
    padding: 14px 18px;
  }
}

.main-content{
  align-items: center;
  justify-content: center;
  text-align: center;
}

.filter-bar { margin-bottom: 20px; }
.filter-bar a {
    margin-right: 10px;
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}
.filter-bar a.active {
    color: #fff;
    background: #007BFF;
    padding: 5px 10px;
    border-radius: 5px;
}