body {
  background: linear-gradient(135deg, #e0e7ef 0%, #f8fafc 100%);
  min-height: 100vh;
  padding-bottom: 70px; /* ruang untuk footer */
}
.card {
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.btn-google {
  background: #ea4335;
  color: #fff;
  font-weight: 500;
  border: none;
}
.btn-google:hover {
  background: #c23321;
  color: #fff;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  background: #fff;
}
.alert-success {
  font-size: 1.2rem;
  text-align: center;
}
.container {
  max-width: 1400px;
}
.row.g-4 {
  align-items: flex-start;
}
#live-list-dashboard .card {
  min-height: 550px; /* 2.5x dari sebelumnya (220px) */
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px dashed #bfc9d1;
  color: #bfc9d1;
  font-size: 1.2rem;
  transition: box-shadow 0.2s;
}
#live-list-dashboard .card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  border-color: #6c63ff;
  color: #6c63ff;
}
#welcome-card {
  margin-top: 0;
  border-radius: 1.2rem;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
  min-width: 260px;
  position: sticky;
  top: 90px;
  z-index: 1030;
  /* Tambahan agar sticky tetap rapi */
  border: 1px solid #e9ecef;
}
#welcome-card .user-avatar {
  margin-bottom: 1rem;
}
#welcome-card .user-avatar .rounded-circle {
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.1);
  border: 3px solid #e9ecef;
}
#welcome-card .user-badge {
  display: inline-block;
  background: #f8fafc;
  color: #3b4252;
  border-radius: 2rem;
  padding: 0.4rem 1.2rem;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  border: 1px solid #e9ecef;
}
#welcome-card h4 {
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}
#welcome-card .wallet {
  font-size: 1.15rem;
  color: #1e7e34;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
#welcome-card .diamond {
  font-size: 1.08rem;
  color: #e6b800;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
#welcome-card button#logout {
  margin-top: 1rem;
}
.col-md-5 > #welcome-card {
  position: sticky;
  top: 90px;
  z-index: 1030;
  background: #fff;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.1);
  border-radius: 1.2rem;
}
@media (max-width: 991px) {
  .container {
    max-width: 100%;
  }
  .row.g-4 {
    flex-direction: column-reverse !important;
    display: flex;
  }
  .col-md-7,
  .col-md-5 {
    width: 100%;
    max-width: 100%;
  }
  #welcome-card {
    position: static;
    margin-bottom: 2rem;
    margin-top: 0;
    min-width: unset;
  }
  #live-list-dashboard .card {
    min-height: 300px;
  }
  .col-md-5 > #welcome-card {
    position: static;
    margin-bottom: 2rem;
  }
}
@media (max-width: 600px) {
  #live-list-dashboard .card {
    min-height: 180px;
    font-size: 1rem;
  }
}

/* LIVE LIST CARD RESPONSIVE */
#live-list-dashboard .col-6.col-md-4.col-lg-3 {
  display: flex;
  justify-content: center;
  align-items: stretch;
}
#live-list-dashboard .card {
  min-width: 170px;
  max-width: 260px;
  width: 100%;
  margin: auto;
  padding: 1rem 0.5rem;
  box-sizing: border-box;
}
#live-list-dashboard .card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
}
@media (max-width: 991px) {
  #live-list-dashboard .card {
    min-width: 140px;
    max-width: 200px;
    padding: 0.7rem 0.3rem;
  }
  #live-list-dashboard .card img {
    width: 80px;
    height: 80px;
  }
}
@media (max-width: 600px) {
  #live-list-dashboard .card {
    min-width: 110px;
    max-width: 150px;
    padding: 0.5rem 0.2rem;
  }
  #live-list-dashboard .card img {
    width: 60px;
    height: 60px;
  }
}
.form-control.is-invalid {
  margin-bottom: 0.25rem;
  border-color: #dc3545;
  background-position: right calc(0.375em + 0.75rem) center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
}
.form-control.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}
.invalid-feedback {
  display: none;
  font-size: 0.97rem;
  margin-top: 0.1rem;
  margin-bottom: 0.2rem;
  white-space: normal;
  word-break: break-word;
  color: #dc3545;
}
.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}
.position-relative .form-control.is-invalid {
  margin-bottom: 0;
}
.position-relative .invalid-feedback {
  margin-bottom: 0.3rem;
}
input[type="password"].form-control {
  padding-right: 2.5rem;
}
