/* Stake.games Dark Theme merged with previous structure + Clear Two-Tone Progress Bar */

/* Base body styling */
body {
  font-family: 'Inter', 'Roboto', sans-serif;
  background-color: #0f1923; /*Dark background*/
  /* background-color: #B1BAD3; Dark background */
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Header */
/* header {
  background: linear-gradient(90deg, #0f1923, #1c2c3a);
  border-bottom: 1px solid rgba(255,255,255,0.05);
} */

header img { height: 50px; }
header h5, header .fw-bold { color: #fff; }
header a, header button { color: #aaa; transition: color 0.3s ease; }
header a:hover, header button:hover { color: #00f2ff; }

/* Gradient Card */
.gradient-card {
  background: linear-gradient(135deg, #1f3b4d, #14242f);
  border-radius: 0 0 10px 10px;
  color: #fff;
}

.gradient-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 25%;
    background: #2a303f;
    border-radius: 0px 0px 10px 100px / 0px 36px 10px 98px;
    pointer-events: none;
    filter: blur(1px);
}

/* Icon Boxes */
.icon-box { text-align: center; font-size: 1.5rem; transition: all 0.3s ease; }
.icon-box p { margin: 0; font-size: 0.8rem; }
/* .icon-box:hover { color: #00f2ff; } */

/* Investment Card */
.investment-card {
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
}

/* Images */
.game-image-lg { width: 110px; height: 110px; border-radius: 10px; object-fit: cover; }

/* Bootstrap Progress Bars (two-tone) */
.product-stock { margin-top: 4px; }
.progress {
  background-color: rgba(255,255,255,0.15) !important;
  border-radius: 20px;
  overflow: hidden;
  height: 8px;
  position: relative;
}
.progress-filled {
  /* background: linear-gradient(90deg, #00f2ff, #0066ff); */
  background-color: #1A8CFF;
  height: 100%;
  transition: width 0.5s ease;
}
.progress-available {
  background: rgba(255,255,255,0.25);
  height: 100%;
  position: absolute;
  right: 0;
}

/* Timer Box */
.timer-box {
  display: inline-block;
  background-color: rgba(0,0,0,0.5);
  color: #00f2ff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Product Card */
.product-card {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  margin: 10px 0;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.product-left img { width: 90px; height: 90px; border-radius: 12px; margin-top: 15%;}
.product-right { flex: 1; padding-left: 10px; }
.product-header { display: flex; justify-content: space-between; align-items: center; }
.product-header h4 { margin: 0; font-size: 16px; font-weight: 600; }
.duration { font-size: 12px; color: #ccc; }
.badge {
  display: inline-block;
  /* background: linear-gradient(90deg, #00f2ff, #0066ff); */
  background: #1A8CFF;
  color: #fff;
  font-size: 12px;
  border-radius: 20px;
  padding: 2px 8px;
  margin: 4px 0;
}

/* Product Card Progress Bars (custom two-tone) */
.progress-container { margin: 4px 0; }
.product-card .progress-bar {
  position: relative;
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  overflow: hidden;
}
.product-card .progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  /* background: linear-gradient(to right, #00f2ff, #0066ff); */
  background-color: #1A8CFF;
  /* box-shadow: 0 0 6px rgba(0,242,255,0.6); */
  transition: width 0.6s ease;
}
.product-card .progress-remaining {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  background: rgba(255,255,255,0.25);
}

/* Progress Labels & Values */
.progress-labels { display: flex; justify-content: space-between; font-size: 11px; margin-top: 2px; color: #ccc;text-align: center;}
.product-values { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; text-align: center;}
.invest-btn {
  /* background: linear-gradient(to right, #00f2ff, #0066ff); */
  /* background: (59, 79, 92); */
  color:white; 
  background-color: rgb(59, 79, 92);
  border: none;
  /* color: #fff; */
  padding: 4px 14px;
  border-radius: 10px;
  font-weight: 600;
  /* cursor: pointer; */
}
.product-footer { display: flex; justify-content: space-between; font-size: 12px; color: #00f2ff; margin-top: 4px; }

/* ================================
   WEEKEND TAB — Match "General" Style
================================ */

/* Card look/contrast like .product-card */
#weekend-content .investment-card {
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  flex-wrap: wrap;  /* enables stacking on mobile */
  padding: 16px;
  gap: 16px;
}

/* =========================
   LEFT SIDE (Image + Timer)
========================= */
#weekend-content .weekend-left {
  flex: 0 0 32%; /* 30–35% of width */
  max-width: 32%;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  /* justify-content: flex-start; */
  gap: 10px;
}

#weekend-content .weekend-left img {
  width: 100%;
  /* max-width: 140px; constrain image size */
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(0,242,255,0.25);
  box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}

#weekend-content .weekend-left .timer-box {
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.72);
  color: #00e5ff;
  padding: 6px 12px;
  border-radius: 10px;
}

/* =========================
   RIGHT SIDE (Details)
========================= */
#weekend-content .weekend-right {
  flex: 1;
  max-width: 65%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Headings, labels, texts */
#weekend-content h6,
#weekend-content p,
#weekend-content span,
#weekend-content strong { 
  color: #fff !important; 
}

#weekend-content .small,
#weekend-content .text-secondary { 
  color: #cfd8e3 !important; 
  opacity: 1; 
}

/* Price/Total row */
#weekend-content .d-flex.justify-content-between.align-items-center.mb-1 p { 
  color: #dbe5ef;
}
#weekend-content .d-flex.justify-content-between.align-items-center.mb-1 strong {
  color: #fff;
}

/* Bottom metrics (accent) */
#weekend-content .d-flex.justify-content-between.small.text-primary {
  color: #00f2ff !important;
}

/* =========================
   Progress Bar
========================= */
#weekend-content .product-stock .progress {
  background: rgba(255,255,255,0.15) !important;
  border-radius: 6px;
  height: 8px;
  overflow: hidden;
}
#weekend-content .product-stock .progress .progress-bar {
  background: linear-gradient(90deg, #00f2ff, #0066ff) !important; /* override */
  box-shadow: 0 0 6px rgba(0,242,255,0.6);
}

/* =========================
   Buttons
========================= */
#weekend-content .btn-primary {
  background: linear-gradient(90deg, #00f2ff, #0066ff) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 6px 14px rgba(0,153,255,0.25);
  transition: transform .15s ease, filter .15s ease;
}
#weekend-content .btn-primary.btn-sm { 
  padding: 8px 16px; 
  font-size: .95rem; 
}
#weekend-content .btn-primary:hover { 
  filter: brightness(1.05); 
  transform: translateY(-1px); 
}
#weekend-content .btn-primary:active { 
  transform: translateY(0); 
}

/* =========================
   Responsive — Mobile
========================= */
@media (max-width: 768px) {
  #weekend-content .weekend-left, 
  #weekend-content .weekend-right {
    flex: 100%;
    max-width: 100%;
  }
  #weekend-content .weekend-left {
    align-items: center;
  }
}


/* Animation */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

a {
  text-decoration: none;
}

/* Invitation code model */
/* Stake-style Invite Friends Modal */
#inviteFriendsModal .modal-content {
  background-color: #1a1e2e; /* Dark navy background */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: 'Inter', 'Roboto', sans-serif;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

#inviteFriendsModal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, #1f2436, #161b2a);
  color: #fff;
}

#inviteFriendsModal .modal-title {
  font-weight: 600;
  font-size: 1.2rem;
}

#inviteFriendsModal .btn-close {
  filter: invert(1) grayscale(100%);
}

#inviteFriendsModal .modal-body {
  padding: 24px;
}

#inviteFriendsModal .alert {
  background: linear-gradient(90deg, #2c3247, #23283a);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  font-weight: 500;
}

#inviteFriendsModal p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

#inviteFriendsModal a {
  color: #00e5ff;
  text-decoration: none;
}

#inviteFriendsModal a:hover {
  text-decoration: underline;
}

#inviteFriendsModal #copyLinkBtn {
  background: linear-gradient(90deg, #00e5ff, #0061ff);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
}

#inviteFriendsModal #copyLinkBtn:hover {
  background: linear-gradient(90deg, #00c1ff, #004bdf);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 229, 255, 0.3);
}


/* Center toast styling */
.center-toast {
  position: fixed;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: linear-gradient(90deg, #11abc0, #5dd989);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  z-index: 9999;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
  text-align: center;
}

.center-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}



/* Dark Stake Style */
.invest-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  margin-bottom: 70px;
  width: 100%;
  background: #1a1c23;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  transition: bottom 1.5s ease;
  z-index: 1000;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}
.invest-popup.active { bottom: 0; }
.invest-popup-content { padding: 20px; }
.popup-header { display: flex; align-items: center; justify-content: space-between; }
.popup-img { width: 50px; height: 50px; border-radius: 12px; margin-right: 12px; }
.badge { background: #3b82f6; padding: 3px 8px; border-radius: 8px; font-size: 12px; }
.close-btn { background: none; border: none; font-size: 28px; color: #fff; cursor: pointer; }

.popup-body p { margin: 8px 0; }
.rate-text { font-size: 14px; color: #9ca3af; }

/* Quantity */
.quantity-control { display: flex; justify-content: center; align-items: center; margin: 15px 0; }
.quantity-control button {
  width: 40px; height: 40px; border-radius: 50%;
  border: none; background: #2d2f38; color: #fff; font-size: 20px;
}
.quantity-control span { margin: 0 15px; font-size: 18px; font-weight: bold; }

/* Pay */
.pay-btn {
  display: block; width: 100%; padding: 14px;
  border: none; border-radius: 12px;
  background: linear-gradient(90deg, #3b82f6, #9333ea);
  color: #fff; font-size: 18px; font-weight: bold;
  cursor: pointer;
}
.pay-btn:hover { opacity: 0.9; }

/* Balance Alert */
.balance-alert {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,0.6);
  justify-content: center; align-items: center;
  z-index: 2000;
}
.alert-content {
  background: #1a1c23; color: #fff;
  border-radius: 12px; padding: 20px; text-align: center;
  width: 80%; max-width: 300px;
}
.alert-icon { font-size: 40px; color: orange; margin-bottom: 10px; }
.alert-actions { display: flex; justify-content: space-around; margin-top: 20px; }
.cancel-btn, .recharge-btn {
  padding: 10px 20px; border: none; border-radius: 20px;
  font-weight: bold; cursor: pointer;
}
.cancel-btn { background: #2d2f38; color: #fff; }
.recharge-btn { background: linear-gradient(90deg, #3b82f6, #9333ea); color: #fff; }



/* ================= Popup Styling ================= */
.invest-popup {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.invest-popup.active {
  display: flex;
  animation: fadeIn 0.5s ease-in-out;
}

.invest-popup-content {
  background: #1c2c3a;
  border-radius: 15px;
  max-width: 400px;
  width: 100%;
  padding: 20px;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: popIn 0.9s ease;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.popup-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 10px;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.quantity-control {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
}

.quantity-control button {
  background: #1A8CFF;
  border: none;
  padding: 5px 10px 10px 10px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.quantity-control button:hover {
  opacity: 0.9;
}

.pay-btn {
  background: #1A8CFF;
  border: none;
  width: 100%;
  /* padding: 12px; */
  /* border-radius: 10px; */
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  /* margin-top: 15px; */
  cursor: pointer;
  /* box-shadow: 0 0 12px rgba(0,184,255,0.4); */
  transition: transform 0.2s;
}

.pay-btn:hover {
  transform: scale(1.05);
}


/* Weekend product specific styles */
.weekend-product {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  margin: 10px 0;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.weekend-left {
  flex: 0 0 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.weekend-left img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

.weekend-timer {
  /* background: linear-gradient(90deg, #00f2ff, #0066ff) !important; override */
  color: #fff !important;


  background: #1573ff;
  /* color: #dfd322; */
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 8px;
  width: 100%;
  font-weight: bold;
}

.weekend-right {
  flex: 1;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.weekend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.weekend-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.weekend-badge {
  background: linear-gradient(90deg, #ff5c5c, #ff2e2e);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
}

.weekend-progress-container {
  margin: 4px 0;
}

.weekend-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 2px;
  color: #ccc;
}

.weekend-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.weekend-values > div {
  text-align: center;
}

.weekend-values strong {
  font-size: 14px;
}

.weekend-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #00f2ff; 
  
}

.progress-text{
  font-size: 10px;
  font-weight: bold;
}
