:root {
     --primary: #7c4dff;
     --primary-light: #f3e5f5;
     --bg-gradient: linear-gradient(135deg, #f3f0f7 0%, #eae4f2 100%);
     --text-dark: #1e1b24;
     --text-dim: #625b70;
     --card-shadow: 0 10px 25px rgba(124, 77, 255, 0.06);
     --modal-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
 }

 body {
     font-family: 'Poppins', sans-serif;
     background: var(--bg-gradient);
     color: var(--text-dark);
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     -webkit-font-smoothing: antialiased;
 }

 .header {
     text-align: center;
     padding: 25px 15px;
 }

 .header h1 {
     font-size: 1.6rem;
     font-weight: 700;
     margin: 0;
     color: var(--text-dark);
 }

 .grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 20px;
     padding: 0 20px 25px 20px;
     max-width: 500px;
     margin: 0 auto;
 }

 .card {
     background: #ffffff;
     border-radius: 24px;
     padding: 24px;
     text-align: center;
     box-shadow: var(--card-shadow);
     position: relative;
 }

 .img-container {
     width: 160px;
     height: 160px;
     background: #f7f5fa;
     border-radius: 50%;
     margin: 0 auto 15px auto;
     display: flex;
     align-items: center;
     justify-content: center;
     position: relative;
 }

 .img-container img {
     width: 150px;
     height: 150px;
     object-fit: contain;
 }

 .timer-badge {
     position: absolute;
     bottom: -5px;
     left: 50%;
     transform: translateX(-50%);
     background: #ff5252;
     color: white;
     font-size: 0.75rem;
     font-weight: 600;
     padding: 4px 12px;
     border-radius: 20px;
     box-shadow: 0 4px 10px rgba(255, 82, 82, 0.3);
     white-space: nowrap;
 }

 .badge-top {
     position: absolute;
     top: 15px;
     right: 15px;
     background: #ffebee;
     color: #ff5252;
     font-size: 0.7rem;
     font-weight: 700;
     padding: 4px 10px;
     border-radius: 12px;
 }

 .visitors {
     font-size: 0.8rem;
     color: var(--text-dim);
     margin-top: 15px;
     margin-bottom: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 6px;
 }

 .v-dot {
     width: 6px;
     height: 6px;
     background: #10b981;
     border-radius: 50%;
 }

 .prod-title {
     font-size: 1rem;
     font-weight: 700;
     color: var(--text-dark);
     margin-bottom: 20px;
 }

 .btn-claim {
     width: 100%;
     background: var(--primary);
     color: white;
     border: none;
     border-radius: 16px;
     padding: 14px;
     font-size: 0.95rem;
     font-weight: 600;
     cursor: pointer;
     box-shadow: 0 6px 16px rgba(124, 77, 255, 0.25);
     transition: all 0.2s ease;
 }

 .card.locked {
     background: #e0e0e0;
     box-shadow: none;
 }
 .card.locked img {
     filter: grayscale(1);
     opacity: 0.4;

 }
 .card.locked .btn-claim {
     background: #b0bec5;
     box-shadow: none;
     cursor: not-allowed;
 }
 .lock-icon-box {
     font-size: 1.2rem;
     margin: 5px auto;


 }

 .overlay {
     position: fixed;
     top: 0; left: 0; width: 100%; height: 100%;
     background: rgba(30, 27, 36, 0.4);
     backdrop-filter: blur(8px);
     -webkit-backdrop-filter: blur(8px);
     display: none;
     align-items: center;
     justify-content: center;
     z-index: 999;
     padding: 15px;
     box-sizing: border-box;
 }

 .modal {
     background: white;
     border-radius: 30px;
     width: 100%;
     max-width: 380px;
     padding: 30px 24px;
     box-shadow: var(--modal-shadow);
     position: relative;
     text-align: center;
     box-sizing: border-box;
     animation: popUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;


 }

 @keyframes popUp {
     from { transform: scale(0.9); opacity: 0; }
     to { transform: scale(1); opacity: 1; }


 }

 .close-modal {
     position: absolute;
     top: 10px;
     right: 10px;
     background: #f1f0f5;
     border: none;
     width: 30px;
     height: 30px;
     border-radius: 50%;
     cursor: pointer;
     color: var(--text-dim);
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .bias-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 10px;
     margin: 20px 0;


 }

 .bias-chip {
     background: white;
     border: 1px solid #e2e0e8;
     border-radius: 20px;
     padding: 8px 4px;
     font-size: 0.8rem;
     font-weight: 500;
     cursor: pointer;
     color: var(--text-dark);


 }

 .bias-chip.active {
     background: var(--primary-light);
     border-color: var(--primary);
     color: var(--primary);
     font-weight: 600;

 }

 .inp-field {
     width: 100%;
     background: #f7f6f9;
     border: 1px solid #eee;
     border-radius: 16px;
     padding: 14px 16px;
     font-size: 0.9rem;
     margin-bottom: 12px;
     box-sizing: border-box;
     outline: none;
 }

 .err-txt {
     color: #ff5252;
     font-size: 0.75rem;
     text-align: left;
     margin: -8px 0 12px 5px;
     display: none;
 }

 .comment-box {
     max-width: 460px;
     margin: 0 auto 40px auto;
     padding: 0 20px;
 }
 #comment-display {
     background: rgba(255, 255, 255, 0.6);
     border-radius: 20px;
     padding: 15px;
     min-height: 50px;
     margin-bottom: 15px;
 }

 .user-comment-input {
     display: flex;
     flex-direction: column;
     gap: 10px;
 }
 .btn-post {
     background: white;
     border: 1px solid var(--primary);
     color: var(--primary);
     padding: 12px;
     border-radius: 16px;
     font-weight: 600;
     cursor: pointer;
 }

 .spin-wheel {
     width: 40px;
     height: 40px;
     border: 4px solid var(--primary-light);
     border-top: 4px solid var(--primary);
     border-radius: 50%;
     margin: 0 auto 20px auto;
     animation: spin 1s linear infinite;
 }
 @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

 #quiz-overlay {
     position: fixed; top: 0; left: 0; width: 100%; height: 100%;
     background: var(--bg-gradient); z-index: 10000;
     display: flex; align-items: center; justify-content: center; padding: 20px;
 }
 .quiz-card {
     background: white; width: 100%; max-width: 400px; padding: 30px 24px;
     border-radius: 30px; box-shadow: var(--modal-shadow); text-align: center;
 }
 .quiz-progress {
     background: #eee; height: 6px; border-radius: 3px; margin: 15px 0 25px 0; overflow: hidden;
 }
 .progress-fill { background: var(--primary); width: 0%; height: 100%; transition: width 0.3s ease; }
 .quiz-q { font-weight: 700; font-size: 1.1rem; margin-bottom: 20px; }
 .opt-btn {
     width: 100%; background: #f7f6f9; border: 1px solid #eee; padding: 14px;
     border-radius: 16px; margin-bottom: 10px; font-weight: 600; cursor: pointer;
 }
 .success-msg { display: none; }
