/* General Page Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: url('../images/Screenshot-2025-07-15-at-5-48-17-PM.png') no-repeat center center fixed;
    background-size: cover; position: relative; padding-bottom: 120px;
}
.font-fredoka { font-family: 'Fredoka One', cursive; }
.item-title-stroke { text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, -2px 2px 3px rgba(0,0,0,0.3); }
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.15); z-index: -1; }
#countdown-timer { color: #ef4444; text-shadow: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000; }

/* Item Card Styles */
.card-bg {
  /* Existing styles */
  border: 3px solid #3E721D;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;

  /* New glassy/transparent styles */
  background: rgba(108, 194, 74, 0.3); /* Semi-transparent green */
  backdrop-filter: blur(10px); /* Blurs the content behind the card */
  -webkit-backdrop-filter: blur(10px); /* For Safari support */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
}

/* Existing hover effect */
.card-bg:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.3);
}

/* Selection Indicator Style */
.selection-indicator {
    position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
    background-color: #6de044; border: 3px solid black; border-radius: 50%;
    z-index: 2; opacity: 0; transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.card-bg.selected .selection-indicator { opacity: 1; transform: scale(1); }

/* Continue Button & Messages */
#continue-btn {
    display: none; position: fixed; bottom: 20px; left: 50%;
    transform: translateX(-50%); z-index: 1001; padding: 15px 40px;
    font-size: 1.4em; font-weight: 900; font-family: 'Cairo', Arial, sans-serif;
    color: #5a3a00; background: linear-gradient(135deg, #fbb000, #ff8c00);
    border: none; border-radius: 12px; cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease; text-transform: uppercase;
}
#selection-limit-message {
    display: none; color: #ff4d4d; font-weight: bold; font-size: 1.2em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    text-align: center; margin-bottom: 20px;
}

/* --- MODIFIED: POPUP STYLES --- */
.purchase-popup {
    /* display: none; is now handled by inline style in HTML */
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); 
    z-index: 1000;
    
    /* ADDED: These lines ensure centering */
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: rgba(255, 255, 255, 0.98);
    padding: 25px; border-radius: 15px; width: 90%; max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); text-align: center; color: #333;
}
.popup-header { position: relative; padding-bottom: 15px; margin-bottom: 10px; }
.popup-header h3 { font-size: 26px; margin: 0; color: #1a202c; font-weight: 900; }
.popup-header:after { content: ''; position: absolute; bottom: 0; left: 25%; right: 25%; height: 3px; background: linear-gradient(90deg, transparent, #58CC02, transparent); }
.selected-images-container { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 15px auto; flex-wrap: wrap; }
.item-popup-image-small { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid #ddd; background: #fff; }
.input-group { margin: 20px 0; }
.input-group input { width: calc(100% - 24px); padding: 15px 12px; background-color: #edf2f7; color: #2d3748; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 16px; font-weight: 700; }
.popup-buttons { display: flex; gap: 12px; }
.cancel-btn, .confirm-btn, .action-btn { border: none; padding: 14px; border-radius: 8px; font-weight: bold; cursor: pointer; flex: 1; font-size: 16px; transition: all 0.3s ease; text-transform: uppercase; }
.cancel-btn { background-color: #a0aec0; color: white; }
.confirm-btn { background: linear-gradient(135deg, #68d391, #38a169); color: white; }
.action-btn { background: linear-gradient(135deg, #f6ad55, #ed8936); color: white; width: 100%; margin-top: 15px; }
.user-error { color: #c53030; font-size: 14px; text-align: center; display: none; margin-top:-10px; margin-bottom: 15px;}
.searching-text, .result-username { font-size: 18px; color: #2d3748; font-weight: 700; }
/* Loading Animation */
.folding { margin: 30px auto; width: 60px; height: 60px; position: relative; transform: rotateZ(45deg); }
.folding .sk-cube { float: left; width: 50%; height: 50%; position: relative; transform: scale(1.1); }
.folding .sk-cube:before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #4a5568; animation: sk-foldCubeAngle 2.4s infinite linear both; transform-origin: 100% 100%; }
.folding .sk-cube2:before { animation-delay: 0.3s; }
.folding .sk-cube3:before { animation-delay: 0.6s; }
.folding .sk-cube4:before { animation-delay: 0.9s; }
@keyframes sk-foldCubeAngle { 0%, 10% { transform: perspective(140px) rotateX(-180deg); opacity: 0; } 25%, 75% { transform: perspective(140px) rotateX(0deg); opacity: 1; } 90%, 100% { transform: perspective(140px) rotateY(180deg); opacity: 0; } }
/* Checklist styles */
#verification-checklist { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
#verification-checklist li { display: flex; align-items: center; font-size: 18px; color: #4a5568; margin-bottom: 15px; }
#verification-checklist .status-icon { width: 24px; height: 24px; margin-right: 15px; }
.spinner { border: 3px solid #f3f3f3; border-top: 3px solid #48bb78; border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.checkmark { color: #48bb78; font-size: 28px; line-height: 24px; }