:root {
  /* Core Colors */
  --bg-dark: #1e1e1e;
  --text-color: #ffffff;
  --text-subtle: #dbdbdb;
  --border-color: rgba(255, 255, 255, 0.1);

  /* NEW: Brand Color */
  --brand-color: #4787fd;
  --brand-color-light: rgb(111, 123, 255); /* A lighter shade for hover effects */
  --brand-color-dark-bg: hsl(236, 51%, 40%); /* Darker shade for gradient */
  --brand-color-darker-bg: hsl(236, 70%, 25%);/* Darkest shade for gradient */
  --brand-box-shadow: rgba(101, 113, 255, 0.3);
  --brand-box-shadow-hover: rgba(101, 113, 255, 0.4);


  /* Topbar Gradient */
  --gradient-color-1: #ff0766;
  --gradient-color-2: #007bff;

  /* Status Indicators */
  --status-updated-color: #22c55e; /* Green */
  --status-outdated-color: #ef4444; /* Red */

  /* Badges & Buttons */
  --badge-bg: rgba(255, 255, 255, 0.08);
  --badge-hover-bg: rgba(255, 255, 255, 0.15);
  --free-badge-bg: linear-gradient(135deg, #22c55e, #16a34a);
  --paid-badge-bg: linear-gradient(135deg, #3b82f6, #1d4ed8);
  --sunc-badge-color: #ad97db;
  --sunc-white: #fff;

  /* NEW: Purple Warning Color (Updated) */
  --warning-purple: #a78bfa; /* Purple text color */
  --warning-purple-bg: rgba(167, 139, 250, 0.1); /* Light purple background */
  --warning-purple-border: #a78bfa; /* Purple border */
  --warning-purple-dark-bg: #2b223d; /* Dark purple background (RGB: 43, 34, 61) */
  --warning-purple-light-text: #d8cdfc; /* Light purple text */

  /* Info Item Icons */
  --info-check-icon: #3bea57;
  --info-x-icon: #ec3b47;

  /* Beta Message Color */
  --beta-message-color: #a749ff; /* A shade of purple */

  /* NEW: Footer Colors (Dynamic) */
  --footer-dynamic-line-color: #dbdbdb; /* Default subtle color for line */
  --footer-text-color-dynamic: #dbdbdb; /* Default subtle color for text */
}

body {
  background-color: var(--bg-dark);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes content to top/middle, footer to bottom */
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding-top: 60px;
  box-sizing: border-box;
}

/* Ensure main content areas can grow if needed or simply occupy their space */
#status-container,
.info-section-container,
#beta-message-container {
  flex-shrink: 0; /* Prevent these from shrinking */
}


/* Topbar Gradient */
.topbar_gradientBackground__dpnr_ {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--gradient-color-1) 0, var(--gradient-color-2) 25%, var(--gradient-color-1) 50%, var(--gradient-color-2) 75%, var(--gradient-color-1) 100%);
  background-size: 200% 100%;
  z-index: 99;
  animation: flowGradient 5s linear infinite;
}

@keyframes flowGradient {
  0% { background-position: 200% 50%; }
  to { background-position: 0% 50%; }
}

/* Top Bar Shop Button Styling - UPDATED */
.shop-button {
  background: var(--brand-color); /* Use brand color */
  color: var(--text-color);
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all .2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.shop-button:hover {
  transform: translateY(-1px);
  background: var(--brand-color-light); /* Lighter brand color on hover */
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}


/* Main Status Text */
#status-container {
  width: 100%;
  max-width: 900px;
  padding: 20px 16px;
  margin-bottom: 30px;
  text-align: center;
}

#status-text {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  transition: color 0.3s ease;
}

.green {
  color: #4caf50;
}

.red {
  color: #f44336;
}

/* START: Keyshop Promotion Section Styles - UPDATED */
#keyshop-promo-container {
  width: 100%;
  max-width: 600px; /* Match the info container */
  margin: -10px auto 30px; /* Pull it up slightly, provide bottom margin */
  padding: 20px 25px;
  background: linear-gradient(135deg, var(--brand-color-dark-bg), var(--brand-color-darker-bg)); /* Use brand color gradient */
  border: 1px solid var(--brand-color);
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 5px 20px var(--brand-box-shadow);
  text-align: center;
}

.promo-title {
  margin: 0 0 10px 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
}

.promo-text {
  margin: 0 0 15px 0;
  color: var(--text-subtle);
  font-size: 16px;
  line-height: 1.5;
}

.promo-button {
  display: inline-block;
  background: var(--brand-color);
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all .2s ease-in-out;
  box-shadow: 0 4px 15px var(--brand-box-shadow);
}

.promo-button:hover {
  transform: scale(1.05);
  background: var(--brand-color-light);
  box-shadow: 0 6px 20px var(--brand-box-shadow-hover);
}

/* Info Section Container */
.info-section-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 16px;
  box-sizing: border-box;
  background-color: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.info-section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.bunni-status-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
}

.status-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.exploit-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  flex-shrink: 0;
}

.version-tag {
  font-size: 13px;
  color: var(--text-subtle);
  background: var(--badge-bg);
  padding: 4px 10px;
  border-radius: 15px;
  flex-shrink: 0;
}

.sunc-badge {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 15px;
  background: var(--badge-bg);
  color: var(--sunc-badge-color);
  flex-shrink: 0;
}

.sunc-white {
  color: var(--sunc-white);
  font-weight: 600;
}

.free-badge {
  background: var(--free-badge-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 15px;
  flex-shrink: 0;
}

.paid-badge {
  background: var(--paid-badge-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 15px;
  flex-shrink: 0;
}

.update-status-label {
  font-size: 16px;
  font-weight: 500;
  margin-left: auto;
  color: #fff;
  padding: 6px 12px;
  border-radius: 15px;
  flex-shrink: 0;
}

.update-status-label.updated {
  background: var(--status-updated-color);
}
.update-status-label.not-updated {
  background: var(--status-outdated-color);
}

.last-updated-text {
  font-size: 14px;
  color: var(--text-subtle);
  margin: 0;
  text-align: right;
  padding-right: 5px;
}

/* UPDATED: Warning Box styles - Now Purple Theme */
.detection-warning {
  background: var(--warning-purple-dark-bg); /* Dark purple background */
  border-left: 3px solid var(--warning-purple-border); /* Purple border */
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--warning-purple-light-text); /* Light purple text */
  margin-top: 10px;
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  padding: 5px 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.05);
}

.info-label {
  color: var(--text-subtle);
  flex-shrink: 0;
  margin-right: 10px;
}

.info-value {
  color: var(--text-color);
  font-weight: 500;
  text-align: right;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex:1;
  gap: 8px;
  background: var(--badge-bg);
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s ease;
  border: 1px solid var(--border-color);
}

.action-button:hover {
  background: var(--badge-hover-bg);
  transform: translateY(-1px);
}

.action-button:active {
  transform: translateY(0);
}

/* Footer Styling */
.app-footer {
  width: 100%;
  max-width: 900px; 
  margin-top: auto; 
  padding: 20px 16px;
  box-sizing: border-box; 
  text-align: center;
  color: var(--footer-text-color-dynamic); 
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.footer-line {
  width: 100px; 
  height: 2px;
  background-color: var(--footer-dynamic-line-color); 
  margin: 0 auto 15px; 
  border-radius: 1px;
  transition: background-color 0.3s ease;
}

.app-footer p {
  margin: 5px 0;
}

.app-footer a {
  color: inherit; 
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

/* Legal Dialog Styling */
.legal-container {
  position: relative;
  display: inline-block;
}

.legal-trigger {
  cursor: pointer; 
  text-decoration: underline dotted;
}

.legal-dialog-box {
  display: none; 
  position: absolute;
  bottom: 125%; 
  left: 50%;
  transform: translateX(-50%);
  width: 280px; 
  padding: 15px;
  background-color: #333333; 
  color: var(--text-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-size: 0.85rem;
  text-align: left;
  line-height: 1.4;
  z-index: 10;
}

.legal-container:hover .legal-dialog-box {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #status-text {
    font-size: 2rem;
  }
  .info-section-container, #keyshop-promo-container {
    max-width: 95%;
  }
  .info-section-title {
      font-size: 20px;
  }
  .exploit-title {
      font-size: 20px;
  }
  .update-status-label {
      font-size: 14px;
      padding: 4px 10px;
  }
  .last-updated-text {
      font-size: 13px;
  }
  .info-grid {
      grid-template-columns: 1fr;
  }
  .info-item {
      font-size: 14px;
  }
  .detection-warning {
    font-size: 13px;
    padding: 10px 12px;
  }
  .action-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .action-button {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  #status-text {
    font-size: 1.8rem;
  }
  .info-section-container {
    padding: 10px;
  }
  .promo-title {
    font-size: 20px;
  }
  .promo-text {
    font-size: 15px;
  }
  .promo-button {
    font-size: 16px;
    padding: 10px 25px;
  }
  .detection-warning {
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* Temporary Notice Box */
#temporary-notice-container {
  width: 90%;
  max-width: 600px;
  margin: 30px auto; 
  padding: 18px 20px;
  background: linear-gradient(135deg, hsla(277, 100%, 65%, 0.5), hsla(277, 100%, 55%, 0.5));
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#temporary-notice-container p {
  margin: 0;
  color: var(--text-color); 
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); 
}

#temporary-notice-container code {
  background-color: rgba(0, 0, 0, 0.25); 
  padding: 3px 6px; 
  border-radius: 4px; 
  font-size: 0.9em; 
}