/* ============================================
   NOMINATIONS PAGE - GLOBAL STYLES
   ============================================ */

/* ---------- Container ---------- */
.bb-container {
  margin: 0 auto;
  padding: 20px 30px;
  /*min-height: 100vh;*/
}

/* ---------- Ad Boxes ---------- */
.adsense-top {
  margin-bottom: 20px;
}

.ad-box {
  background: #1e293b;
  border: 2px dashed #334155;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 80px;
}

.ad-box .ad-size {
  font-size: 11px;
  color: #64748b;
  background: rgba(255,255,255,0.05);
  padding: 2px 12px;
  border-radius: 12px;
}

.adsense-in-content {
  margin: 30px 0 20px;
}

.adsense-in-content .ad-box {
  min-height: 50px;
  padding: 15px 20px;
  border-style: dashed;
}

/* ---------- Page Header ---------- */
.page-header {
  text-align: center;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* ---------- Nominations Container ---------- */
.nominations-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Nomination Card ---------- */
.nomination-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #334155;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nomination-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ---------- Card Grid - 3 Parts ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 160px 1fr 140px;
  gap: 20px;
  align-items: center;
}

/* ---------- Part 1: Image ---------- */
.card-image {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: #475569;
  background: #0f172a;
}

.card-number {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #a78bfa, #7b2fff);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1e293b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ---------- Part 2: Details ---------- */
.card-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0;
}

.contestant-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.contestant-occupation {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  margin: 0 0 4px 0;
}

.contestant-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.contestant-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.contestant-info span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.contestant-info i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.contestant-info strong {
  color: #e2e8f0;
}

.contestant-stats {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.current-standing {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.percentage {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.votes {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.progress-container {
  margin-top: 6px;
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #334155;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), #a78bfa);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ---------- Part 3: Actions ---------- */
.card-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-vote {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa 0%, #7b2fff 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  width: 100%;
  justify-content: center;
}

.btn-vote:hover:not(:disabled) {
  background: linear-gradient(135deg, #7b2fff 0%, #6b1fe8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 47, 255, 0.3);
}

.btn-vote:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-vote.voted-today-indicator {
  background: #334155 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.btn-vote.voted-today-indicator:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ---------- Voting Rules ---------- */
.voting-rules-nomin {
  background: #1e293b;
  border-radius: 12px;
  padding: 28px 30px;
  margin-top: 30px;
  border: 1px solid #334155;
}

.voting-rules-nomin h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 18px;
  text-align: center;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rule-item {
  text-align: center;
}

.rule-item i {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 6px;
  display: block;
}

.rule-item p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ============================================
   GLOBAL MODAL OVERRIDES
   ============================================ */

.modal-ad-section {
  background: #0f172a;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0 16px;
  border: 1px solid #334155;
}

.modal-ad-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(167, 139, 250, 0.2));
  border-radius: 50px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-ad-banner i {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.modal-ad-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 10px;
}

.modal-ad-timer-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #7b2fff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(123, 47, 255, 0.3);
}

#modalAdCountdown {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.modal-ad-timer-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 500;
}

.modal-ad-progress {
  width: 100%;
  margin-bottom: 8px;
}

.modal-ad-progress-track {
  width: 100%;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  overflow: hidden;
}

.modal-ad-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a78bfa, #7b2fff);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

.modal-ad-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem;
  background: #0f172a;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  border: 1px solid #1a2a4a;
}

.modal-ad-note i {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: 140px 1fr 120px;
    gap: 16px;
  }
  .card-image {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 768px) {
  .bb-container {
    padding: 15px;
  }
  
  .card-grid {
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
  }
  
  .card-image {
    width: 100px;
    height: 100px;
    grid-row: 1 / 3;
    align-self: start;
  }
  
  .card-details {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  
  .card-actions {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-items: stretch;
  }
  
  .btn-vote {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .page-header h1 {
    font-size: 22px;
  }
  
  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contestant-name {
    font-size: 18px;
  }
  
  .percentage {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .bb-container {
    padding: 10px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
  }
  
  .card-image {
    width: 120px;
    height: 120px;
    justify-self: center;
    grid-row: 1 / 2;
  }
  
  .card-details {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    text-align: center;
  }
  
  .card-actions {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    align-items: stretch;
  }
  
  .contestant-info {
    justify-content: center;
  }
  
  .contestant-stats {
    justify-content: center;
  }
  
  .btn-vote {
    padding: 10px;
    font-size: 14px;
  }
  
  .rules-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   CARD ACTIONS - RESULTS PAGE
   ============================================ */

.card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.winner-badge {
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(167, 139, 250, 0.2));
  color: #ffffff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  word-break: break-word;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.vote-count-badge {
  padding: 8px 16px;
  background: #334155;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  word-break: break-word;
}

.btn-vote {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa 0%, #7b2fff 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.btn-vote:hover {
  background: linear-gradient(135deg, #7b2fff 0%, #6b1fe8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 47, 255, 0.3);
  text-decoration: none;
  color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .card-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .winner-badge,
  .vote-count-badge {
    width: auto;
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .btn-vote {
    padding: 8px 16px;
    font-size: 12px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .card-actions {
    flex-direction: column;
  }
  
  .winner-badge,
  .vote-count-badge,
  .btn-vote {
    width: 100%;
    justify-content: center;
  }
  
  .winner-badge,
  .vote-count-badge {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .btn-vote {
    padding: 10px;
    font-size: 14px;
  }
}

/* ============================================
   POLL SHOW PAGE - GLOBAL STYLES
   ============================================ */

/* ---------- Navigation ---------- */

.bb-poll-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.bb-poll-back-link:hover {
  color: #c4b5fd;
  transform: translateX(-4px);
  text-decoration: none;
}

/* ---------- Page Header ---------- */
.page-header {
  text-align: center;
  /*margin-top:-40px;*/
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  word-break: break-word;
  margin-top:0px;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin: 6px 0 0;
  word-break: break-word;
  margin-bottom: 20px;
}

/* ---------- Poll Card ---------- */
.bb-poll-card {
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #2a2a2a;
}

/* ---------- Poll Header Content ---------- */
.bb-poll-header-content {
  text-align: center;
  margin-bottom: 2rem;
}

.bb-poll-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: linear-gradient(135deg, #a78bfa, #7b2fff);
  color: white;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.bb-poll-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.bb-poll-date,
.bb-poll-votes {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 1rem;
  background: #2a2a2a;
  border-radius: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.bb-poll-date i {
  color: rgba(255, 255, 255, 0.4);
}

.bb-poll-votes {
  background: linear-gradient(135deg, #a78bfa, #7b2fff);
  color: white;
}

.bb-poll-votes i {
  color: white;
}

.bb-poll-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Poll Options ---------- */
.bb-poll-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.bb-poll-option {
  cursor: pointer;
  display: block;
}

.bb-poll-option-box {
  background: #1e293b;
  border: 2px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px 24px;
  transition: all 0.3s ease;
  position: relative;
}

.bb-poll-option-box:hover {
  background: #2a2a2a;
  transform: translateY(-3px);
  border-color: #3a3a3a;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.bb-poll-option-box.bb-option-checked {
  border-color: #a78bfa;
  background: #1a1a2e;
  box-shadow: 0 4px 25px rgba(167, 139, 250, 0.15);
}

/* ---------- Option Grid ---------- */
.bb-option-grid {
  display: grid;
  grid-template-columns: 120px 1fr 100px;
  gap: 20px;
  align-items: center;
}

/* ---------- Avatar ---------- */
.bb-option-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.bb-poll-option-box.bb-option-checked .bb-option-avatar {
  border-color: #a78bfa;
}

.bb-option-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-option-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: #475569;
  background: #0f172a;
}

.bb-option-number {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #a78bfa, #7b2fff);
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1e293b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bb-poll-option-box.bb-option-checked .bb-option-number {
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
}

/* ---------- Details ---------- */
.bb-option-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0;
}

.bb-option-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.bb-option-nickname {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin: 0 0 4px 0;
}

.bb-option-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bb-option-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.bb-option-info span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bb-option-info i {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.bb-poll-option-box.bb-option-checked .bb-option-info i {
  color: rgba(167, 139, 250, 0.6);
}

.bb-option-info strong {
  color: #e2e8f0;
}

/* ---------- Vote Statistics ---------- */
.bb-option-vote-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 6px 0 4px;
  padding: 6px 12px;
  background: #0f172a;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

.bb-option-votes-count {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.bb-option-votes-count i {
  color: rgba(167, 139, 250, 0.6);
  font-size: 14px;
}

.bb-vote-number {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.bb-vote-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 2px;
}

.bb-option-percentage {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-left: auto;
}

.bb-percentage-value {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.bb-percentage-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Progress Bar ---------- */
.bb-option-progress {
  margin: 4px 0 8px;
}

.bb-option-progress-bar {
  width: 100%;
  height: 4px;
  background: #1e293b;
  border-radius: 2px;
  overflow: hidden;
}

.bb-option-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a78bfa, #7b2fff);
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ---------- Radio Button ---------- */
.bb-option-radio-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.bb-option-radio {
  width: 20px;
  height: 20px;
  accent-color: #a78bfa;
  cursor: pointer;
  background: #2a2a2a;
}

.bb-option-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  cursor: pointer;
}

.bb-poll-option-box.bb-option-checked .bb-option-label {
  color: #a78bfa;
}

/* ---------- Option Actions ---------- */
.bb-option-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bb-option-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.bb-option-check-mark {
  display: none;
  font-size: 24px;
  color: #a78bfa;
}

.bb-poll-option-box.bb-option-checked .bb-option-check-mark {
  display: block;
}

/* ---------- Poll Actions ---------- */
.bb-poll-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.bb-poll-vote-btn {
  padding: 0.8rem 2.5rem;
  background: linear-gradient(135deg, #a78bfa, #7b2fff);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.bb-poll-vote-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(123, 47, 255, 0.4);
}

.bb-poll-cancel-btn {
  padding: 0.8rem 2.5rem;
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid #3a3a3a;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.bb-poll-cancel-btn:hover {
  background: #333;
  text-decoration: none;
  color: #ffffff;
  border-color: #4a4a4a;
}

/* ---------- Daily Vote Limit Card ---------- */
.bb-poll-limit-card {
  background: #1a1a2e;
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  border: 1px solid #2a1a3e;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.bb-poll-limit-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.05), transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.bb-poll-limit-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.bb-poll-limit-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(167, 139, 250, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #ffffff;
  box-shadow: 0 4px 25px rgba(167, 139, 250, 0.2);
  animation: pulseIcon 2s ease-in-out infinite;
  border: 1px solid rgba(167, 139, 250, 0.15);
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.bb-poll-limit-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.bb-poll-limit-info p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  max-width: 400px;
}

.bb-poll-limit-timer {
  position: relative;
  z-index: 1;
  background: #0f0f1f;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #2a1a3e;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.bb-poll-limit-timer-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #7b2fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 25px rgba(123, 47, 255, 0.3);
}

.bb-poll-limit-timer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.bb-poll-limit-timer-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

.bb-poll-limit-timer-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.bb-poll-limit-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.bb-poll-limit-btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #a78bfa, #7b2fff);
  color: white;
  border: none;
  cursor: pointer;
}

.bb-poll-limit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(123, 47, 255, 0.4);
  text-decoration: none;
  color: white;
}

.bb-poll-limit-btn-secondary {
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid #3a3a3a;
}

.bb-poll-limit-btn-secondary:hover {
  background: #333;
  color: #ffffff;
  border-color: #4a4a4a;
  transform: scale(1.05);
  box-shadow: none;
}

/* ---------- Poll Messages ---------- */
.bb-poll-message {
  text-align: center;
  padding: 3rem 2rem;
}

.bb-poll-message-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.bb-poll-message-icon .fa-clock { color: rgba(255, 255, 255, 0.4); }
.bb-poll-message-icon .fa-lock { color: rgba(255, 255, 255, 0.4); }
.bb-poll-message-icon .fa-check-circle { color: #10b981; }

.bb-poll-message h3 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.bb-poll-message p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.bb-poll-message-actions {
  margin-top: 1.5rem;
}

.bb-poll-results-btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: linear-gradient(135deg, #a78bfa, #7b2fff);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bb-poll-results-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(123, 47, 255, 0.3);
  text-decoration: none;
  color: white;
}

/* ---------- Related Polls ---------- */
.bb-poll-related {
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 24px;
  border: 1px solid #2a2a2a;
  margin-top: 20px;
}

.bb-poll-related h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bb-poll-related h3 i {
  color: rgba(167, 139, 250, 0.6);
}

.bb-poll-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.bb-poll-related-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #1e293b;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #2a2a2a;
}

.bb-poll-related-item:hover {
  background: #2a2a2a;
  transform: translateX(4px);
  text-decoration: none;
  border-color: #3a3a3a;
}

.bb-poll-related-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #7b2fff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.bb-poll-related-info {
  flex: 1;
  min-width: 0;
}

.bb-poll-related-info h4 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bb-poll-related-info p {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bb-poll-related-votes {
  font-size: 0.8rem;
  color: rgba(167, 139, 250, 0.6);
  font-weight: 600;
}

/* ============================================ */
/* POPUP STYLES */
/* ============================================ */

.bb-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: bbPopupFadeIn 0.3s ease;
}

@keyframes bbPopupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bb-popup-container {
  width: 100%;
  max-width: 600px;
  margin: 20px;
  animation: bbPopupSlideUp 0.4s ease;
}

@keyframes bbPopupSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bb-popup-content {
  background: #1a1a1a;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  border: 1px solid #2a2a2a;
}

.bb-popup-header {
  background: linear-gradient(135deg, #a78bfa, #7b2fff);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bb-popup-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.bb-popup-title {
  flex: 1;
  margin: 0;
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
}

.bb-popup-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.bb-popup-body {
  padding: 2rem;
}

.bb-popup-message {
  text-align: center;
  margin-bottom: 1.5rem;
}

.bb-popup-message p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.bb-popup-message h3 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bb-popup-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #1a1a2e;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  border: 1px solid #2a1a3e;
}

.bb-popup-warning i {
  color: rgba(255, 255, 255, 0.4);
}

.bb-popup-ad {
  background: #0f0f0f;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #2a2a2a;
}

.bb-popup-ad-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(167, 139, 250, 0.15));
  border-radius: 50px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bb-popup-ad-banner i {
  color: rgba(255, 255, 255, 0.4);
}

.bb-popup-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bb-popup-timer-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #7b2fff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 25px rgba(123, 47, 255, 0.3);
}

#bbPopupCountdown {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.bb-popup-progress {
  width: 100%;
  margin-bottom: 0.75rem;
}

.bb-popup-progress-track {
  width: 100%;
  height: 6px;
  background: #2a2a2a;
  border-radius: 3px;
  overflow: hidden;
}

.bb-popup-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a78bfa, #7b2fff);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.bb-popup-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #0f0f2a;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  border: 1px solid #1a1a3e;
}

.bb-popup-note i {
  color: rgba(255, 255, 255, 0.3);
}

.bb-popup-footer {
  padding: 1.5rem 2rem;
  background: #0f0f0f;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-top: 1px solid #2a2a2a;
}

.bb-popup-btn-cancel,
.bb-popup-btn-confirm {
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.bb-popup-btn-cancel {
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid #3a3a3a;
}

.bb-popup-btn-cancel:hover {
  background: #333;
  color: #ffffff;
}

.bb-popup-btn-confirm {
  background: linear-gradient(135deg, #a78bfa, #7b2fff);
  color: white;
}

.bb-popup-btn-confirm:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 25px rgba(123, 47, 255, 0.4);
}

.bb-popup-btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Toast ---------- */
.bb-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  z-index: 999999;
  max-width: 420px;
  animation: bbPopupSlideUp 0.3s ease;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bb-toast i {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

@media (max-width: 1024px) {
  .bb-option-grid {
    grid-template-columns: 100px 1fr 80px;
    gap: 16px;
  }
  .bb-option-avatar {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .bb-container {
    padding: 15px;
  }

  .bb-poll-card {
    padding: 16px;
  }

  .page-header h1 {
    font-size: 22px;
  }

  .bb-poll-meta {
    gap: 0.75rem;
  }

  .bb-poll-date,
  .bb-poll-votes {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
  }

  .bb-option-grid {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
  }

  .bb-option-avatar {
    width: 80px;
    height: 80px;
    grid-row: 1 / 3;
    align-self: start;
  }

  .bb-option-details {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .bb-option-actions {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-items: stretch;
    flex-direction: row;
  }

  .bb-option-check-mark {
    font-size: 20px;
  }

  .bb-poll-actions {
    flex-direction: column;
  }

  .bb-poll-vote-btn,
  .bb-poll-cancel-btn {
    width: 100%;
    justify-content: center;
  }

  .bb-popup-container {
    margin: 10px;
    max-width: 100%;
  }

  .bb-popup-header {
    padding: 1rem 1.5rem;
  }

  .bb-popup-title {
    font-size: 1.1rem;
  }

  .bb-popup-body {
    padding: 1.5rem;
  }

  .bb-popup-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
  }

  .bb-popup-btn-cancel,
  .bb-popup-btn-confirm {
    width: 100%;
    justify-content: center;
  }

  .bb-poll-related-grid {
    grid-template-columns: 1fr;
  }

  .bb-option-vote-stats {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 8px 12px;
  }
  
  .bb-option-percentage {
    margin-left: 0;
  }
  
  .bb-vote-number {
    font-size: 16px;
  }
  
  .bb-percentage-value {
    font-size: 16px;
  }

  .bb-poll-limit-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .bb-poll-limit-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .bb-poll-limit-info h3 {
    font-size: 1.4rem;
  }
  
  .bb-poll-limit-timer {
    padding: 1rem 1.5rem;
    flex-direction: row;
    gap: 1rem;
  }
  
  .bb-poll-limit-timer-ring {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .bb-poll-limit-timer-value {
    font-size: 1.4rem;
  }
  
  .bb-poll-limit-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .bb-poll-limit-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .bb-container {
    padding: 10px;
  }

  .bb-poll-card {
    padding: 12px;
  }

  .page-header h1 {
    font-size: 18px;
  }

  .page-subtitle {
    font-size: 13px;
  }

  .bb-poll-message {
    padding: 2rem 1rem;
  }

  .bb-poll-message h3 {
    font-size: 1.4rem;
  }

  .bb-option-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
  }

  .bb-option-avatar {
    width: 100px;
    height: 100px;
    justify-self: center;
    grid-row: 1 / 2;
  }

  .bb-option-details {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    text-align: center;
  }

  .bb-option-actions {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    align-items: stretch;
    flex-direction: column;
  }

  .bb-option-radio-wrap {
    justify-content: center;
  }

  .bb-option-info {
    justify-content: center;
  }

  .bb-option-vote-stats {
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
  }
  
  .bb-option-votes-count {
    justify-content: center;
  }
  
  .bb-option-percentage {
    justify-content: center;
  }

  .bb-popup-timer-ring {
    width: 50px;
    height: 50px;
  }

  #bbPopupCountdown {
    font-size: 1.5rem;
  }

  .bb-poll-limit-card {
    padding: 1rem;
  }
  
  .bb-poll-limit-timer {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }
  
  .bb-poll-limit-timer-info {
    align-items: center;
  }
  
  .bb-poll-limit-timer-value {
    font-size: 1.2rem;
  }

  .bb-toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}