/* ==========================================================================
   Modals - Minimalist Flat UI
   ========================================================================== */

.modal-content {
  border-radius: 8px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden;
  background: #ffffff;
}

/* Modal Header */
.modal-header,
.modal-header-base {
  background: linear-gradient(45deg, #ff3c3c, #ff6b3c) !important;
  color: #ffffff !important;
  padding: 14px 20px !important;
  border-bottom: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

/* Modal Close Button */
.modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
  padding: 0.5rem;
  margin: 0;
  transition: opacity 0.15s ease;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

/* Modal Body */
.modal-body {
  padding: 20px !important;
  font-size: 14px;
  color: #374151;
}

/* Form elements in Modals */
.modal-body label {
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
  display: block;
}

.modal-body .form-control,
.modal-body input.uid-input {
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: #111827 !important;
  transition: border-color 0.15s ease !important;
  box-shadow: none !important;
}

.modal-body .form-control:focus,
.modal-body input.uid-input:focus {
  border-color: #e41e26 !important;
}

.modal-body .guide-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #e41e26;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.modal-body .guide-link:hover {
  text-decoration: underline;
}

.modal-body .error-message {
  font-size: 12.5px;
  color: #dc2626;
  margin-top: 6px;
  display: none;
}

/* Action Buttons in Modals */
.modal-body .btn-red,
.modal-body .btn-nap-ngay,
.modal-body .btn-login {
  width: 100%;
  background: linear-gradient(45deg, #ff3c3c, #ff6b3c) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  /* transition: background 0.15s ease !important; */
  box-shadow: none !important;
  cursor: pointer;
}

/* .modal-body .btn-red:hover,
.modal-body .btn-nap-ngay:hover,
.modal-body .btn-login:hover {
  background: linear-gradient(45deg, #ff3c3c, #ff6b3c) !important;
} */

/* Guide Steps Styling */
.guide-steps .step {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.guide-steps .step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.guide-steps .step-number {
  font-size: 13.5px;
  font-weight: 600;
  color: #e41e26;
  margin-bottom: 6px;
}

.guide-steps .step-content {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.5;
}

.guide-steps .step-content img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  margin-top: 10px;
}

.guide-steps .note {
  font-size: 12.5px;
  color: #6b7280;
  margin-top: 6px;
  font-style: italic;
}

/* Success Modal */
.success-modal {
  text-align: center;
}

.success-modal .modal-body {
  padding: 30px 24px !important;
}

.success-message .success-icon {
  width: 60px;
  height: 60px;
  background: #d1fae5;
  color: #ffffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.success-message .success-icon i,
.success-message .success-icon svg {
  font-size: 28px;
  width: 28px;
  height: 28px;
  stroke: #059669;
}

.success-message .success-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.success-message .success-text {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 16px;
}

.success-message .player-id-badge {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 25px;
}

.success-message .player-id-badge strong {
  color: #e41e26;
  font-weight: 600;
}

/* BXH Modal Specifics & Leaderboard Table */
#showBXH .modal-header {
  background: #e41e26 !important;
  padding: 14px 20px !important;
}

#showBXH .modal-title {
  font-size: 15px !important;
  font-weight: 600 !important;
}

.leaderboard-wrapper {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.leaderboard-wrapper::-webkit-scrollbar {
  width: 5px;
}

.leaderboard-wrapper::-webkit-scrollbar-track {
  background: #f1f1f5;
  border-radius: 4px;
}

.leaderboard-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.leaderboard-table thead th {
  text-align: left;
  padding: 10px 12px;
  background: #f9fafb;
  color: #374151;
  font-weight: 600;
  font-size: 12.5px;
  border-bottom: 1px solid #e5e7eb;
}

.leaderboard-table thead th:last-child {
  text-align: right;
}

.leaderboard-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s ease;
}

.leaderboard-table tbody tr:hover {
  background: #f9fafb;
}

.leaderboard-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

.leaderboard-table .rank {
  font-weight: 700;
  font-size: 13.5px;
  width: 65px;
  color: #4b5563;
}

.leaderboard-table .player {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #111827;
}

.leaderboard-table .player .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.leaderboard-table .amount {
  text-align: right;
  font-weight: 600;
  color: #e41e26;
}

/* Rank Highlights (Flat) */
.leaderboard-table tr.rank-vip {
  background: #fffbe6;
}

.leaderboard-table tr.rank-vip .rank {
  color: #d97706;
}

.leaderboard-table tr.rank-vip .rank i {
  color: #f59e0b;
}

.leaderboard-table tr.rank-gold {
  background: #f8fafc;
}

.leaderboard-table tr.rank-gold .rank {
  color: #475569;
}

.leaderboard-table tr.rank-gold .rank i {
  color: #94a3b8;
}

.leaderboard-table tr.rank-silver {
  background: #fff7ed;
}

.leaderboard-table tr.rank-silver .rank {
  color: #c2410c;
}

.leaderboard-table tr.rank-silver .rank i {
  color: #d97706;
}
