/* ================================================================= */
/* EDU MYTRIV VIRTUAL MONOPOLY GAME STYLES                           */
/* ================================================================= */

.monopoly-hud-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #ffffff;
}

.hud-stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94A3B8;
}

.hud-value {
  font-size: 16px;
  font-weight: 700;
}

.coin-val {
  color: #FBBF24;
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-game {
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-roll {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-roll:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-sub {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-sub:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-leader {
  background: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-leader:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Badges */
.sub-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.sub-badge.free { background: #64748B; color: #fff; }
.sub-badge.basic_edu { background: #3B82F6; color: #fff; }
.sub-badge.pro_edu { background: linear-gradient(90deg, #F59E0B, #EF4444); color: #fff; }

/* Dice Overlay */
.dice-roll-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10005;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.dice-box {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.dice-cube {
  font-size: 64px;
  animation: spinDice 0.6s infinite ease-in-out;
}

@keyframes spinDice {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.dice-text {
  font-size: 20px;
  font-weight: 800;
  color: #38BDF8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Modals */
.monopoly-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.monopoly-modal-content {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 28px;
  width: 90%;
  max-width: 520px;
  color: #F8FAFC;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.monopoly-modal-content.modal-wide {
  max-width: 850px;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  color: #94A3B8;
  cursor: pointer;
}

.modal-close:hover { color: #fff; }

/* Landed Knowledge Card */
.landed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.landed-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.dice-result-badge {
  color: #FBBF24;
  font-weight: 800;
  font-size: 15px;
}

.landed-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.landed-info-col h2 {
  font-size: 22px;
  margin: 0 0 6px 0;
  color: #F8FAFC;
}

.landed-coords {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 10px;
}

.landed-stat-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.stat-mini {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.stat-mini span {
  font-size: 10px;
  color: #94A3B8;
  text-transform: uppercase;
}

.stat-mini strong {
  font-size: 13px;
  color: #F1F5F9;
  margin-top: 4px;
}

.rent-alert-banner {
  margin-top: 15px;
  padding: 10px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  color: #FCA5A5;
  font-size: 13px;
  font-weight: bold;
}

.landed-knowledge-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.landed-knowledge-col h3 {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #38BDF8;
}

.knowledge-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #CBD5E1;
}

.knowledge-actions {
  margin-top: 15px;
}

/* Quiz Styling */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.quiz-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.quiz-reward {
  color: #FBBF24;
  font-weight: 800;
  font-size: 14px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.quiz-opt-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  color: #F1F5F9;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-opt-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3B82F6;
}

.opt-key {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  border-radius: 6px;
  margin-right: 10px;
  font-weight: bold;
}

.quiz-exp-box {
  margin-top: 15px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  font-size: 13px;
  color: #34D399;
}

/* Subscription Grid */
.sub-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tier-card.featured {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.15), rgba(15, 23, 42, 0.6));
  border: 2px solid #6366F1;
}

.popular-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #6366F1;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 10px;
}

.tier-price {
  font-size: 22px;
  font-weight: 800;
  margin: 10px 0;
  color: #F8FAFC;
}

.tier-price span { font-size: 12px; color: #94A3B8; font-weight: normal; }

.tier-features {
  list-style: none;
  padding: 0;
  margin: 15px 0 20px 0;
  font-size: 13px;
  color: #CBD5E1;
}

.tier-features li { margin-bottom: 8px; }

.btn-tier {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-tier.btn-featured {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
}

/* Tycoon Table */
.tycoon-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 13px;
}

.tycoon-table th, .tycoon-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tycoon-table th { color: #94A3B8; text-transform: uppercase; font-size: 11px; }
