@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: dark;
  color: #f9fafb;
  background-color: #111827;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button {
  cursor: pointer;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
/* Modern App Styles with Dark Purple Theme */
:root {
  --primary-color: #150926;
  --primary-hover: #1e0e38;
  --secondary-color: #7b5dd6;
  --secondary-hover: #6449c0;
  --accent-color: #a984ff;
  --accent-hover: #8e66ff;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --success-color: #22c55e;
  --text-color: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #94a3b8;
  --bg-dark: #0a0410;
  --bg-card: #150926;
  --bg-input: #1e0e38;
  --border-color: #2a1649;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --transition-speed: 0.3s;
  --header-height: 70px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--text-color);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

input, select {
  font-family: inherit;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
  width: 100%;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f9fafb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

/* Loading Animation */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.loader {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(360deg);
  }
}

/* Button Loader */
.button-loader {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
  display: inline-block;
  vertical-align: middle;
}

/* Layout Components */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header and Navigation */
.header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 1.5rem;
}

.nav-section {
  display: flex;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  margin-right: 2.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  height: 36px;
  max-width: 130px;
}

.footer-logo-text {
  height: 30px;
  max-width: 110px;
}

.logo-image {
  width: 32px;
  height: 32px;
  transition: transform 1.5s cubic-bezier(0.45, 0, 0.55, 1);
}

.logo-image.rotate {
  animation: fullRotation 1.5s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

@keyframes fullRotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.top-nav {
  display: none;
}

@media (min-width: 768px) {
  .top-nav {
    display: flex;
  }
}

.top-nav ul {
  display: flex;
  list-style: none;
}

.top-nav li {
  margin-right: 1.5rem;
  position: relative;
}

.top-nav li.active::after {
  content: '';
  position: absolute;
  bottom: -1.4rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

.top-nav li a {
  font-weight: 500;
  font-size: 0.95rem;
}

.top-nav li.active a {
  color: var(--text-color);
}

.user-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--text-color);
  font-weight: bold;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid var(--accent-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.user-avatar:hover {
  transform: scale(1.05);
  border-color: var(--accent-hover);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.user-avatar:hover .avatar-image {
  transform: scale(1.1);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.8rem;
  height: 1.5rem;
  background: transparent;
  border: none;
  padding: 0;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle:hover span {
  background-color: var(--accent-color);
}

/* Mobile Navigation Menu */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-card);
  transform: translateX(-100%);
  transition: transform var(--transition-speed) ease;
  z-index: 90;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-section {
  margin-bottom: 2rem;
}

.mobile-nav-section h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav li {
  margin-bottom: 0.5rem;
}

.mobile-nav li a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all var(--transition-speed);
}

.mobile-nav li.active a {
  color: var(--text-color);
}

.mobile-nav li a:hover {
  color: var(--text-color);
}

/* User Menu */
.user-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: 320px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: var(--card-shadow);
  z-index: 95;
  padding: 1rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.user-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s;
}

.user-menu-header {
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.user-info-compact {
  display: flex;
  flex-direction: column;
}

.user-email {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.user-tier {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.user-menu-links {
  padding: 0.5rem 0;
}

.user-menu-links a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  transition: background-color var(--transition-speed);
}

.user-menu-links a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.user-menu-links a svg {
  margin-right: 0.75rem;
  color: var(--text-muted);
}

.membership-info {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.membership-info h3 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.plan-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.plan-details p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.upgrade-section {
  padding: 1rem;
}

.upgrade-section h3 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.plan-options {
  display: grid;
  gap: 0.75rem;
}

.plan-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all var(--transition-speed);
  cursor: pointer;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.plan-card h4 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-card button {
  width: 100%;
  background-color: var(--accent-color);
  color: white;
  padding: 0.4rem 0;
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 0.375rem;
}

.plan-card button:hover {
  background-color: var(--accent-hover);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 1rem;
  margin-top: var(--header-height);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dashboard-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--text-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
}

.premium-badge {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--secondary-color);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Prediction Card */
.prediction-card, .result-card {
  background-color: var(--bg-card);
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.predictor-form {
  padding: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.prediction-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background-color var(--transition-speed);
  width: 100%;
}

.prediction-button:hover:not(:disabled) {
  background-color: var(--accent-hover);
}

.error-message {
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--danger-color);
  padding: 1rem;
  margin: 1.5rem;
  display: flex;
  align-items: center;
  border-radius: 0.375rem;
}

.error-message svg {
  color: var(--danger-color);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* Result Card Styling */
.result-card {
  overflow: hidden;
}

.result-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.game-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(169, 132, 255, 0.1);
  color: var(--accent-color);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.result-meta {
  padding: 1rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
}

.meta-label {
  color: var(--text-muted);
  margin-right: 0.5rem;
  font-size: 0.875rem;
}

.meta-value {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.prediction-content {
  padding: 1.5rem;
}

.prediction-content pre {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 0.5rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.5;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  overflow-x: auto;
  border: 1px solid var(--border-color);
}

/* Special mine selection styling for the mines game */
.mines-control-wrapper {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.mines-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.risk-indicator {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background-color: rgba(0, 0, 0, 0.2);
}

.risk-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.mines-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Static slider gradient with pulse animation */
@keyframes gradient-pulse {
  0% {
    opacity: 0.9;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  }
  100% {
    opacity: 0.9;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
  }
}

.slider-with-zones {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.slider-gradient-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background: linear-gradient(90deg, 
    var(--success-color) 0%, 
    var(--success-color) 20%, 
    var(--warning-color) 35%, 
    var(--warning-color) 50%, 
    var(--danger-color) 65%, 
    var(--danger-color) 100%);
  border-radius: 8px;
  z-index: 1;
  animation: gradient-pulse 3s ease infinite;
}

/* Progress indicator to show selected position */
.slider-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px 0 0 8px;
  z-index: 2;
  pointer-events: none;
  transition: width 0.2s ease;
}

.mines-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 8px;
  background: transparent;
  outline: none;
  position: relative;
  z-index: 3;
  cursor: pointer;
}

.mines-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 0 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 3;
}

.mines-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 0 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 3;
}

.mines-slider::-webkit-slider-thumb:hover,
.mines-slider:active::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
}

.mines-slider::-moz-range-thumb:hover,
.mines-slider:active::-moz-range-thumb {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
}

.mines-number-input {
  width: 70px;
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--bg-input);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.mines-number-input::-webkit-inner-spin-button,
.mines-number-input::-webkit-outer-spin-button {
  opacity: 1;
  height: 24px;
}

/* Animated mine dots */
.mines-visual-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.mine-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mine-dot.active {
  transform: scale(1.1);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
  animation: gradient-pulse 3s ease infinite;
}

.mine-dot.active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    var(--success-color), 
    var(--warning-color), 
    var(--danger-color));
  opacity: 1;
}

.mine-dot.active.low-risk::before {
  background: var(--success-color);
}

.mine-dot.active.medium-risk::before {
  background: var(--warning-color);
}

.mine-dot.active.high-risk::before {
  background: var(--danger-color);
}

.mine-dot:not(.active) {
  background-color: var(--bg-tertiary);
}

/* Authentication Styles */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--bg-dark);
  padding: 1rem;
}

.auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-card {
  background-color: var(--bg-card);
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.auth-card h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-card h2 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.auth-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color var(--transition-speed);
}

.google-btn {
  background-color: #ffffff;
  color: #333333;
}

.google-btn:hover {
  background-color: #f5f5f5;
}

.discord-btn {
  background-color: #5865F2;
  color: white;
}

.discord-btn:hover {
  background-color: #4752c4;
}

.auth-buttons button svg {
  margin-right: 0.75rem;
}

.legal {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .auth-card {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .result-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.seed-input, .client-seed-input, .total-bets-input {
  position: relative;
}

.seed-input input, .client-seed-input input, .total-bets-input input {
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.seed-input input:focus, .client-seed-input input:focus, .total-bets-input input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

/* For number inputs - hide arrows in Chrome, Safari, Edge, Opera */
.total-bets-input input::-webkit-outer-spin-button,
.total-bets-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* For Firefox */
.total-bets-input input[type=number] {
  -moz-appearance: textfield;
}

/* Predictions page styles */
.predictions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prediction-item {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prediction-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.prediction-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.game-type-badge {
  background-color: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.prediction-date {
  color: var(--text-secondary);
  font-size: 14px;
}

.prediction-item-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  align-items: center;
}

.detail-label {
  width: 100px;
  font-weight: 500;
  color: var(--text-secondary);
}

.detail-value {
  font-family: monospace;
  background-color: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-item-result {
  background-color: var(--bg-tertiary);
  border-radius: 8px;
  padding: 15px;
}

.result-heading {
  font-weight: 500;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-secondary);
}

.result-content {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
  font-family: monospace;
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 14px;
  background-color: transparent;
  padding: 0;
}

.no-predictions {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.no-predictions p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.primary-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.primary-button:hover {
  background-color: var(--primary-dark);
}

/* Home Page Styles */
.home-content {
  padding-top: 0; /* Remove top padding since we have the hero section */
}

/* Hero Section */
.hero-section {
  background-color: var(--bg-dark);
  padding: 120px 20px 80px;
  text-align: center;
  margin-bottom: 60px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-btn, .secondary-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.primary-btn {
  background-color: var(--accent-color);
  color: white;
}

.primary-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.secondary-btn {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Section Styles */
.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  background: linear-gradient(to right, var(--text-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Pricing Section */
.pricing-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto 80px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.pricing-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid var(--border-color);
  max-width: 350px;
  margin: 0 auto;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
  border: none;
  transform: scale(1.05);
  position: relative;
  background-clip: padding-box;
  padding: 2px; /* Create space for the gradient border */
}

/* Animated gradient for featured pricing card */
@keyframes gradient-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.pricing-card.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: -2px;
  border-radius: 18px; /* Slightly larger than the card border-radius */
  background: linear-gradient(
    45deg,
    var(--accent-color),
    var(--secondary-color),
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
  background-size: 400% 400%;
  animation: gradient-border 3s ease infinite;
}

.pricing-card.featured .card-content {
  background-color: var(--bg-card);
  border-radius: 16px;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes gradient-pulse {
  0% {
    opacity: 0.9;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  }
  100% {
    opacity: 0.9;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
  }
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-header {
  padding: 25px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.card-header .price {
  font-size: 2.5rem;
  font-weight: 700;
}

.card-header .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.card-body {
  padding: 25px 20px;
}

.features-list {
  list-style: none;
  margin-bottom: 25px;
}

.features-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.cta-button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Features Section */
.features-section {
  padding: 60px 20px;
  background-color: rgba(21, 9, 38, 0.3); /* Lighter version of bg-card */
  margin-bottom: 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto 80px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
}

.faq-item {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--border-color);
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-color);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer Styles */
.footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 60px 20px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo .logo {
  margin-bottom: 15px;
}

.footer-logo p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-logo-image {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-section {
  min-width: 150px;
}

.footer-section h3 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--text-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.login-button {
  background-color: var(--accent-color);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: var(--accent-hover);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation Keyframes - Simplified for smoothness */
@keyframes fallIn {
  0% {
    transform: translateY(-300px) rotate(0deg);
    opacity: 0;
  }
  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 1;
  }
}

@keyframes fallInText {
  0% {
    transform: translateY(-300px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes vanish {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Animation classes for logo */
.animate-logo .logo-image {
  animation: fallIn 0.6s ease-in-out forwards;
}

.animate-logo .logo-text {
  animation: fallInText 0.6s ease-in-out 0.1s forwards;
  opacity: 0; /* Start hidden */
}

.animate-vanish .logo-image,
.animate-vanish .logo-text {
  animation: vanish 0.3s ease-out forwards;
}

/* Home animation container */
.home-animation-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-dark);
  z-index: 9999;
  flex-direction: column;
}

.home-animation-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.home-animation-logo .logo-image {
  width: 80px;
  height: 80px;
  opacity: 0; /* Start hidden */
}

.home-animation-logo .logo-text {
  height: 70px;
  max-width: 250px;
  opacity: 0; /* Start hidden */
}

/* Dashboard welcome message */
.dashboard-welcome {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 4px;
  font-weight: normal;
}

/* Inline logo styling for text replacement */
.inline-logo {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 5px;
}

.inline-logo-image {
  width: 24px;
  height: 24px;
  margin-right: 4px;
}

.inline-logo-text {
  height: 24px;
  max-width: 70px;
}

/* For larger headings */
h2 .inline-logo .inline-logo-image {
  width: 30px;
  height: 30px;
}

h2 .inline-logo .inline-logo-text {
  height: 30px;
  max-width: 90px;
}

/* For smaller text like footer */
.footer-bottom .inline-logo .inline-logo-image {
  width: 18px;
  height: 18px;
}

.footer-bottom .inline-logo .inline-logo-text {
  height: 18px;
  max-width: 55px;
}

/* Auth logo styling */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.auth-logo-image {
  width: 40px;
  height: 40px;
  margin-right: 8px;
}

.auth-logo-text {
  height: 40px;
  max-width: 130px;
}

.auth-card h1 {
  margin-bottom: 0.5rem;
}

/* Animated username gradient styling */
@keyframes gradient-text {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animated-username {
  background: linear-gradient(
    90deg,
    var(--accent-color),
    var(--secondary-color),
    var(--accent-color),
    #9f7aea,
    #7b5dd6,
    var(--accent-color)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: gradient-text 4s ease infinite;
  font-weight: 700;
}

/* Master Plan Badge special effects */
@keyframes master-badge-glow {
  0% {
    box-shadow: 0 0 5px 0px #9f7aea, inset 0 0 5px 0px #9f7aea;
    text-shadow: 0 0 5px #9f7aea;
  }
  50% {
    box-shadow: 0 0 15px 2px #9f7aea, inset 0 0 10px 1px #9f7aea;
    text-shadow: 0 0 10px #9f7aea;
  }
  100% {
    box-shadow: 0 0 5px 0px #9f7aea, inset 0 0 5px 0px #9f7aea;
    text-shadow: 0 0 5px #9f7aea;
  }
}

@keyframes master-badge-shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.plan-badge.master-badge {
  background: linear-gradient(90deg, 
    #4a1a8a, 
    #8a49df, 
    #9f7aea, 
    #8a49df, 
    #4a1a8a);
  background-size: 200% 100%;
  color: white;
  font-weight: 700;
  animation: 
    master-badge-glow 3s infinite ease-in-out,
    master-badge-shimmer 5s infinite linear;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px 0px #9f7aea;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.plan-badge.master-badge::before {
  content: "✦";
  font-size: 1.1rem;
  margin-right: 5px;
  display: inline-block;
  animation: spin 3s infinite linear;
  vertical-align: middle;
}

.plan-badge.master-badge::after {
  content: "✦";
  font-size: 1.1rem;
  margin-left: 5px;
  display: inline-block;
  animation: spin 3s infinite linear reverse;
  vertical-align: middle;
}

/* Premium badge for Master tier */
.premium-badge.master-premium {
  background: linear-gradient(45deg, 
    rgba(74, 26, 138, 0.2),
    rgba(138, 73, 223, 0.2),
    rgba(159, 122, 234, 0.2));
  color: #9f7aea;
  border: 1px solid rgba(159, 122, 234, 0.3);
  animation: master-badge-glow 3s infinite ease-in-out;
  font-weight: 700;
}

/* Special styling for Master pricing card */
.pricing-card.master-card {
  background: linear-gradient(135deg, rgba(74, 26, 138, 0.1), rgba(138, 73, 223, 0.05));
  border: 1px solid rgba(159, 122, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.pricing-card.master-card::before {
  content: "✦";
  position: absolute;
  font-size: 120px;
  color: rgba(159, 122, 234, 0.1);
  top: -20px;
  right: -20px;
  pointer-events: none;
  animation: spin 20s linear infinite;
}

.pricing-card.master-card .card-header h3 {
  background: linear-gradient(90deg, #9f7aea, #8a49df, #4a1a8a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  animation: master-badge-shimmer 5s infinite linear;
  background-size: 200% 100%;
}

.pricing-card.master-card .cta-button {
  background: linear-gradient(90deg, #8a49df, #9f7aea, #8a49df);
  background-size: 200% 100%;
  animation: master-badge-shimmer 5s infinite linear;
  box-shadow: 0 0 10px rgba(159, 122, 234, 0.5);
}

.pricing-card.master-card .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(159, 122, 234, 0.7);
}

.pricing-card.master-card .features-list li::before {
  color: #9f7aea;
}

/* Settings page styles */
.settings-card {
  background-color: var(--bg-card);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.settings-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.settings-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color-light);
}

.settings-option:last-child {
  border-bottom: none;
}

.settings-option-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.settings-option-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 400px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent-color);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--accent-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* Dashboard animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Special animation for prediction results */
@keyframes resultAppear {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  60% {
    transform: scale(1.03) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.result-card.animate-in {
  animation: resultAppear 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

.animate-delay-5 {
  animation-delay: 0.5s;
}

.animate-delay-6 {
  animation-delay: 0.6s;
}

.dashboard-enter {
  position: relative;
  overflow-x: hidden;
}

.dashboard-enter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-dark);
  z-index: 150;
  animation: dashboardReveal 1.2s ease-in-out forwards;
}

.dashboard-enter::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(123, 93, 214, 0.2), rgba(123, 93, 214, 0.4), rgba(123, 93, 214, 0.2), transparent);
  z-index: 151;
  animation: dashboardSweep 1.2s ease-in-out forwards;
}

@keyframes dashboardReveal {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes dashboardSweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Prediction button pulsing effect */
@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(169, 132, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(169, 132, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(169, 132, 255, 0);
  }
}

.dashboard-enter .prediction-button:not(:disabled) {
  animation: buttonPulse 2s infinite;
  animation-delay: 1.5s;
}

/* Add any additional animations below */

/* MinesPrediction Component Integration */
.dashboard-mines-prediction {
  margin: 0 auto;
  max-width: 95%;
}

.predictions-mines-prediction {
  margin: 0 auto;
  max-width: 95%;
}

.prediction-content {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 10px 0;
}

/* Dark theme enhancements for mines prediction */
.theme-dark .mines-grid {
  background: rgba(4, 18, 26, 0.95);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.theme-dark .mines-cell {
  background: rgba(8, 20, 30, 0.95);
}

/* Light theme adjustments for mines prediction */
.theme-light .mines-grid {
  background: rgba(240, 245, 250, 0.95);
  border-color: rgba(123, 93, 214, 0.5);
}

.theme-light .mines-cell {
  background: rgba(230, 235, 240, 0.95);
  border-color: rgba(123, 93, 214, 0.3);
}

.theme-light .question-mark {
  color: rgba(60, 60, 60, 0.5);
}

/* Streamer mode - hide sensitive content */
.streamer-mode .mines-cell .cell-content {
  filter: blur(5px);
}

/* Usage Information Card Styles */
.usage-info-card {
  background: rgba(40, 44, 52, 0.9);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 119, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.usage-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(99, 119, 255, 0.2);
  border-color: rgba(99, 119, 255, 0.3);
}

.usage-info-card h3 {
  font-size: 20px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  color: #f0f0f0;
  background: linear-gradient(90deg, #f0f0f0, #a0a0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 3s infinite;
}

@keyframes textShimmer {
  0% {
    background-position: -200% 0;
  }
  25% {
    background-position: -100% 0;
  }
  50% {
    background-position: 0% 0;
  }
  75% {
    background-position: 100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.usage-info-card h3 i {
  margin-right: 10px;
  color: #6377ff;
  font-size: 22px;  
  animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.usage-info-card .divider {
  height: 2px;
  background: linear-gradient(90deg, rgba(99, 119, 255, 0.5), transparent);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.usage-info-card .divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: dividerShine 3s ease-in-out infinite;
}

@keyframes dividerShine {
  0% { left: -100%; }
  100% { left: 200%; }
}

.usage-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.unlimited-usage {
  display: flex;
  align-items: center;
  font-size: 20px;
  color: #e5b2ff;
  margin: 10px 0;
  animation: glowText 2s infinite alternate;
}

@keyframes glowText {
  0% { text-shadow: 0 0 5px rgba(229, 178, 255, 0.4); }
  100% { text-shadow: 0 0 15px rgba(229, 178, 255, 0.8); }
}

.unlimited-icon {
  font-size: 36px;
  margin-right: 15px;
  background: linear-gradient(135deg, #c473ff, #6377ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rotateInfinity 4s linear infinite;
}

@keyframes rotateInfinity {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.usage-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.usage-progress-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Pulsating glow effect for the track */
.usage-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(99, 119, 255, 0.4);
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.usage-bar {
  height: 100%;
  border-radius: 8px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(90deg, #4ae054, #22cc85);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  box-shadow: 0 0 10px rgba(74, 224, 84, 0.5);
  position: relative;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Add shimmer effect to progress bar */
.usage-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0));
  animation: shimmerBar 1.5s ease-in-out infinite;
}

@keyframes shimmerBar {
  0% { left: -100%; }
  100% { left: 200%; }
}

.usage-bar.danger {
  background: linear-gradient(90deg, #ff4a4a, #ff7070);
  box-shadow: 0 0 10px rgba(255, 74, 74, 0.5);
  animation: dangerPulse 1.5s infinite, gradientShift 3s ease infinite;
}

@keyframes dangerPulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

.usage-bar.warning {
  background: linear-gradient(90deg, #ffaa4a, #ffc870);
  box-shadow: 0 0 10px rgba(255, 170, 74, 0.5);
  animation: warningPulse 2s infinite, gradientShift 3s ease infinite;
}

@keyframes warningPulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

.usage-bar.pro-tier {
  background: linear-gradient(90deg, #4a56e2, #6377ff, #8595ff, #6377ff);
  background-size: 300% 100%;
  box-shadow: 0 0 15px rgba(99, 119, 255, 0.5);
  animation: proGradient 4s ease infinite;
}

@keyframes proGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.usage-bar.basic-tier {
  background: linear-gradient(90deg, #4aceff, #70b9ff, #a0d7ff, #70b9ff);
  background-size: 300% 100%;
  box-shadow: 0 0 15px rgba(74, 206, 255, 0.5);
  animation: basicGradient 4s ease infinite;
}

@keyframes basicGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.usage-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #f0f0f0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.usage-text .animate-count {
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  animation: countBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes countBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.usage-fraction {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-left: 8px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.usage-info-card:hover .usage-fraction {
  opacity: 1;
}

.usage-reset {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.usage-reset i {
  animation: rotateIcon 2s linear infinite;
}

@keyframes rotateIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tier-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.upgrade-message {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #7e90ff;
  margin-top: 12px;
  padding: 10px 16px;
  background: rgba(99, 119, 255, 0.15);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upgrade-message:hover {
  background: rgba(99, 119, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 119, 255, 0.2);
}

.upgrade-message i {
  animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.count-animate {
  animation: countPulse 2s infinite alternate;
}

@keyframes countPulse {
  0% { opacity: 1; text-shadow: 0 0 0 rgba(255, 255, 255, 0); }
  100% { opacity: 0.9; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
}

/* Additional tier badge styles */
.tier-badge {
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  color: white;
  text-shadow: 0 0px 0px rgb(255, 255, 255);
  position: relative;
  overflow: hidden;
}

.tier-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

.master-tier-badge {
  background: linear-gradient(135deg, #8a2be2, #c473ff, #8a2be2);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 0 15px rgba(196, 115, 255, 0.4);
  animation: masterGradient 3s ease infinite, pulseBadge 2s infinite alternate;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pro-tier-badge {
  background: linear-gradient(135deg, #4a56e2, #6377ff, #4a56e2);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 0 12px rgba(99, 119, 255, 0.4);
  animation: proGradient 3s ease infinite;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.basic-tier-badge {
  background: linear-gradient(135deg, #4aceff, #70b9ff, #4aceff);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 0 12px rgba(74, 206, 255, 0.4);
  animation: basicGradient 3s ease infinite;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes masterGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes proGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes basicGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseBadge {
  0% { 
    box-shadow: 0 0 15px rgba(196, 115, 255, 0.4);
    transform: scale(1);
  }
  100% { 
    box-shadow: 0 0 25px rgba(196, 115, 255, 0.6);
    transform: scale(1.05);
  }
}

/* Reset time highlight */
.reset-time {
  font-weight: 600;
  color: #f0f0f0;
  position: relative;
  padding: 0 2px;
}

/* Low usage alert */
.low-usage-alert {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffaa4a;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(255, 170, 74, 0.1);
  border-radius: 4px;
  animation: alertPulse 2s infinite;
}

@keyframes alertPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.low-usage-alert i {
  animation: shake 2s ease-in-out 2s infinite;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-1px); }
  20%, 40%, 60%, 80% { transform: translateX(1px); }
}

/* Progress tooltip */
.progress-tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
  z-index: 10;
}

.progress-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Master sparkle */
.master-sparkle {
  margin-left: 10px;
  color: gold;
  animation: masterTwinkle 3s infinite;
}

@keyframes masterTwinkle {
  0%, 100% { opacity: 0.7; transform: scale(1) rotate(0deg); }
  20% { opacity: 1; transform: scale(1.2) rotate(5deg); }
  40% { opacity: 0.8; transform: scale(0.9) rotate(-5deg); }
  60% { opacity: 1; transform: scale(1.1) rotate(5deg); }
  80% { opacity: 0.9; transform: scale(1) rotate(-5deg); }
}

/* Tier text colors */
.master-text {
  background: linear-gradient(90deg, #8a2be2, #c473ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pro-text {
  background: linear-gradient(90deg, #4a56e2, #6377ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.basic-text {
  background: linear-gradient(90deg, #4aceff, #70b9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Upgrade suggestion */
.upgrade-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #6377ff;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(99, 119, 255, 0.08);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upgrade-suggestion:hover {
  background: rgba(99, 119, 255, 0.15);
  transform: translateY(-2px);
}

.upgrade-suggestion::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0));
  animation: slideSheen 3s infinite;
}

@keyframes slideSheen {
  0% { left: -100%; }
  40%, 100% { left: 100%; }
}

.upgrade-chevron {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.upgrade-message:hover .upgrade-chevron {
  transform: translateX(3px);
}

/* Improved usage text layout */
.usage-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Make the usage card increase in size on hover for a subtle effect */
.usage-info-card {
  transform-origin: center top;
}

@media (max-width: 768px) {
  .usage-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .low-usage-alert {
    margin-left: 0;
  }
}

/* Mines warning message */
.mines-warning {
  margin-top: 15px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
              0 2px 4px -1px rgba(0, 0, 0, 0.06),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mines-warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(245, 158, 11, 0.3),
    transparent
  );
}

.mines-warning:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -2px rgba(0, 0, 0, 0.12),
              0 4px 6px -2px rgba(0, 0, 0, 0.08);
}

.mines-warning svg {
  width: 24px;
  height: 24px;
  color: rgb(245, 158, 11);
  flex-shrink: 0;
  animation: warningPulse 2s infinite;
}

.mines-warning span {
  color: rgb(245, 158, 11);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.01em;
}

@keyframes warningPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(0.95);
  }
}

/* Styling for the 3D Dice Canvas */
.dice-canvas-container {
  width: 100%;
  height: 400px; /* Adjust as needed */
  margin-bottom: 2rem; /* Space below the canvas */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-dark); /* Or a slightly different shade */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* Ensures the canvas corners are rounded if canvas itself isn't */
}

/* Ensure the canvas itself takes up the container space */
.dice-canvas-container canvas {
  display: block; /* Removes any extra space below the canvas */
  width: 100% !important; /* Override default canvas styling if necessary */
  height: 100% !important; /* Override default canvas styling if necessary */
}

/* --- Server Slowness Warning Styles --- */
.server-warning {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgb(0 249 255 / 8%) 0%, rgb(255 7 254 / 12%) 100%);
  border: 1px solid rgb(0 182 255 / 20%);
  border-left: 4px solid #c5ffff;
  color: #8fa0ff;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0 2rem 0;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 
    0 4px 6px -1px rgb(0 222 255 / 10%),
    0 2px 4px -1px rgb(0 222 255 / 10%),
    inset 0 1px 0 0 rgb(0 222 255 / 10%);
  animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.server-warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(0, 112, 129, 0.1),
    transparent
  );
}

.server-warning:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 6px 8px -2px rgba(0, 112, 129, 0.1),
    0 4px 6px -2px rgba(0, 112, 129, 0.1),
    inset 0 1px 0 0 rgba(0, 112, 129, 0.1);
  border-color: rgba(0, 112, 129, 0.1);
}

.server-warning svg {
  flex-shrink: 0;
  margin-right: 0.875rem;
  width: 20px;
  height: 20px;
  color: #ff9800;
  animation: pulseIcon 2s ease-in-out infinite;
  filter: drop-shadow(0 1px 2px rgba(255, 152, 0, 0.3));
}

.server-warning span {
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.server-warning-highlight {
  color: #e65100;
  font-weight: 700;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 193, 7, 0.2) 100%);
  border-radius: 6px;
  padding: 0.2em 0.5em;
  margin: 0 0.2em;
  border: 1px solid rgba(255, 152, 0, 0.2);
  animation: shimmerHighlight 2.5s ease-in-out infinite;
  text-shadow: 0 1px 2px rgba(230, 81, 0, 0.3);
  display: inline-block;
  line-height: 1.4;
  vertical-align: middle;
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.server-warning-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmerEffect 2.5s ease-in-out infinite;
  border-radius: 6px;
  z-index: -1;
}

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

@keyframes shimmerHighlight {
  0%, 100% {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 193, 7, 0.2) 100%);
  }
  50% {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.15) 100%);
  }
}

@keyframes shimmerEffect {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mines-prediction {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 10px;
  padding: 15px;
  background: rgba(4, 20, 28, 0.95);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(123, 93, 214, 0.5);
  width: 350px; 
  max-width: 100%;
}

.mines-cell {
  aspect-ratio: 1/1;
  background: rgba(13, 27, 42, 0.95);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(123, 93, 214, 0.4);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.mines-cell:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 0 10px rgba(123, 93, 214, 0.7);
}

.mines-cell.revealed {
  animation: revealCell 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cell-content {
  width: 85%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
}

.mines-cell.revealed .cell-content {
  opacity: 1;
  transform: scale(1);
  animation: popContent 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards;
  animation-delay: 0.1s;
}

.cell-icon {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.cell-icon.gem {
  animation: gemGlow 2s infinite alternate ease-in-out;
  filter: drop-shadow(0 0 5px rgb(0, 255, 128));
  width: 70%;
  height: 70%;
}

.cell-icon.bomb {
  animation: bombPulse 1.5s infinite alternate ease-in-out;
  filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.8));
  width: 70%;
  height: 70%;
}

.cell-icon.question {
  animation: questionPulse 2s infinite alternate ease-in-out;
  filter: drop-shadow(0 0 4px rgba(123, 93, 214, 0.6));
  width: 45%;
  height: 45%;
}

.mines-loading {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 20px 0;
  text-align: center;
  animation: fadeInOut 1.5s infinite alternate ease-in-out;
}

@keyframes revealCell {
  0% {
    transform: rotateY(90deg) scale(0.8);
    background: rgba(13, 27, 42, 0.95);
  }
  50% {
    background: rgba(29, 53, 87, 0.95);
  }
  100% {
    transform: rotateY(0deg) scale(1);
    background: rgba(13, 27, 42, 0.95);
  }
}

@keyframes popContent {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gemGlow {
  0% {
    filter: drop-shadow(0 0 3px rgba(0, 255, 128, 0.6));
    transform: scale(0.95);
  }
  100% {
    filter: drop-shadow(0 0 6px rgba(0, 255, 128, 0.9));
    transform: scale(1.05);
  }
}

@keyframes bombPulse {
  0% {
    filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.7));
    transform: scale(0.95) rotate(-5deg);
  }
  100% {
    filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.9));
    transform: scale(1.05) rotate(5deg);
  }
}

@keyframes questionPulse {
  0% {
    opacity: 0.7;
    transform: scale(0.95);
    filter: drop-shadow(0 0 2px rgba(123, 93, 214, 0.5));
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 4px rgba(123, 93, 214, 0.7));
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
  .mines-grid {
    width: 320px;
    grid-gap: 8px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .mines-grid {
    width: 280px;
    grid-gap: 5px;
    padding: 10px;
  }
  
  .mines-cell {
    border-width: 1px;
  }
  
  .cell-icon.question {
    width: 40%;
    height: 40%;
  }
} .dice-prediction {
  position: relative;
  background: rgba(21, 9, 38, 0.7);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(123, 93, 214, 0.4);
  max-width: 500px;
  margin: 0 auto;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.dice-prediction.loaded {
  opacity: 1;
  transform: translateY(0);
}

.dice-animation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  perspective: 1000px;
}

.dice-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  transform-style: preserve-3d;
  animation: spin 1.5s infinite linear;
}

@keyframes spin {
  0% {
    transform: rotateX(0) rotateY(0) rotateZ(0);
  }
  100% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(360deg);
  }
}

.dice-face {
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #8062db, #6449c0);
  border: 2px solid #9575e4;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.dice-face.dice-1 {
  transform: translateZ(40px);
}

.dice-face.dice-2 {
  transform: rotateY(180deg) translateZ(40px);
}

.dice-face.dice-3 {
  transform: rotateY(90deg) translateZ(40px);
}

.dice-face.dice-4 {
  transform: rotateY(-90deg) translateZ(40px);
}

.dice-face.dice-5 {
  transform: rotateX(90deg) translateZ(40px);
}

.dice-face.dice-6 {
  transform: rotateX(-90deg) translateZ(40px);
}

.dice-dot-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
}

.dice-dot {
  width: 14px;
  height: 14px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.dice-result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: resultAppear 0.5s forwards;
}

@keyframes resultAppear {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.dice-percentage {
  font-size: 3rem;
  font-weight: 700;
  color: #a984ff;
  text-shadow: 0 0 10px rgba(169, 132, 255, 0.5);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseText 1.5s infinite alternate;
}

@keyframes pulseText {
  0% {
    text-shadow: 0 0 5px rgba(169, 132, 255, 0.5);
  }
  100% {
    text-shadow: 0 0 15px rgba(169, 132, 255, 0.8);
  }
}

.percentage-symbol {
  font-size: 2rem;
  margin-left: 0.2rem;
  opacity: 0.8;
}

.dice-outcome {
  font-size: 1.8rem;
  font-weight: 600;
  padding: 0.5rem 2rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.dice-outcome.win {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 2px solid rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  animation: winPulse 1.5s infinite alternate;
}

@keyframes winPulse {
  0% {
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
  }
  100% {
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
  }
}

.dice-outcome.lose {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 2px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  animation: losePulse 1.5s infinite alternate;
}

@keyframes losePulse {
  0% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
  }
  100% {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
  }
}

.dice-prediction-details {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(123, 93, 214, 0.3);
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  animation: fadeInDetails 0.5s 0.5s forwards;
}

@keyframes fadeInDetails {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 0.8;
    transform: translateY(0);
  }
}

.dice-prediction-details p {
  margin-bottom: 0.5rem;
} .limbo-prediction {
  position: relative;
  background: rgba(21, 9, 38, 0.7);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(123, 93, 214, 0.4);
  max-width: 500px;
  margin: 0 auto;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.limbo-prediction.loaded {
  opacity: 1;
  transform: translateY(0);
}

.limbo-animation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  perspective: 1000px;
}

.limbo-spinner {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(17, 24, 39, 0) 70%);
}

.limbo-multiplier-animation {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: perspective(1000px);
}

.limbo-animated-value {
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(139, 92, 246, 0.7);
  margin-bottom: -5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: #d8b4fe;
}

.limbo-result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  min-height: 200px;
  animation: resultAppear 0.5s forwards;
}

@keyframes resultAppear {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.limbo-outcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 25px 50px;
  border-radius: 16px;
  animation: fadeIn 0.5s forwards;
}

.limbo-outcome-container.win {
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.limbo-outcome-container.lose {
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.limbo-outcome {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  animation: pulseText 1.5s infinite alternate;
}

.limbo-outcome.win {
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.limbo-outcome.lose {
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes pulseText {
  0% {
    text-shadow: 0 0 10px rgba(169, 132, 255, 0.5);
    transform: scale(1);
  }
  100% {
    text-shadow: 0 0 15px rgba(169, 132, 255, 0.8);
    transform: scale(1.05);
  }
}

.limbo-multiplier {
  font-size: 1.8rem;
  font-weight: 600;
  color: #a984ff;
  margin-top: 1rem;
  animation: fadeIn 0.5s 0.3s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.limbo-details {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(123, 93, 214, 0.3);
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  animation: fadeIn 0.5s 0.5s forwards;
} .flip-prediction {
  position: relative;
  background: rgba(21, 9, 38, 0.7);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(123, 93, 214, 0.4);
  max-width: 500px;
  margin: 0 auto;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.flip-prediction.loaded {
  opacity: 1;
  transform: translateY(0);
}

.flip-animation-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  perspective: 1000px;
}

/* Coin styles */
.coin {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 50px auto;
  transform-style: preserve-3d;
  transition: transform 0.5s ease-in;
}

.coin.heads {
  animation: flipHeads 0.5s ease-out forwards;
}

.coin.tails {
  animation: flipTails 0.5s ease-out forwards;
}

.coin.result {
  transition: transform 0.8s ease-out;
  transform: rotateY(0deg);
}

.coin.result.heads {
  transform: rotateY(0deg);
  animation: shineCoin 2s infinite alternate;
}

.coin.result.tails {
  transform: rotateY(180deg);
  animation: shineCoin 2s infinite alternate;
}

@keyframes flipHeads {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  100% { transform: rotateY(720deg) rotateX(0deg); }
}

@keyframes flipTails {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  100% { transform: rotateY(900deg) rotateX(0deg); }
}

@keyframes shineCoin {
  0% { 
    box-shadow: 0 0 20px rgba(169, 132, 255, 0.3); 
  }
  100% { 
    box-shadow: 0 0 30px rgba(169, 132, 255, 0.7); 
  }
}

.heads-side, .tails-side {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
}

.heads-side {
  background: linear-gradient(145deg, #8062db, #6449c0);
  z-index: 2;
}

.tails-side {
  background: linear-gradient(145deg, #6449c0, #503aa0);
  transform: rotateY(180deg);
}

.coin-face {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 72px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.edge {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotateX(90deg);
  border-radius: 50%;
  background: linear-gradient(to right, #6449c0, #8062db, #6449c0);
}

.flip-result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: resultAppear 0.6s forwards;
}

@keyframes resultAppear {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.result-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: #a984ff;
  margin-top: 1.5rem;
  text-shadow: 0 0 10px rgba(169, 132, 255, 0.5);
  letter-spacing: 2px;
  animation: pulseText 1.5s infinite alternate;
}

@keyframes pulseText {
  0% {
    text-shadow: 0 0 5px rgba(169, 132, 255, 0.5);
    transform: scale(1);
  }
  100% {
    text-shadow: 0 0 15px rgba(169, 132, 255, 0.8);
    transform: scale(1.05);
  }
}

.flip-prediction-details {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(123, 93, 214, 0.3);
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  animation: fadeInDetails 0.5s 0.5s forwards;
}

@keyframes fadeInDetails {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 0.8;
    transform: translateY(0);
  }
}

.flip-prediction-details p {
  margin-bottom: 0.5rem;
} 