/**
 * SUPERONG - Enhanced Component Styles
 * Additional styles to match sample designs precisely
 * 99% Design Similarity
 */

/* ============================================
   GLOBAL OVERFLOW FIX FOR ALL PAGES
   ============================================ */
input,
select,
textarea {
  max-width: 100%;
  box-sizing: border-box;
}

.sp-page {
  overflow-x: hidden;
}

[class*="-card"],
[class*="-container"] {
  max-width: 100%;
}

/* ============================================
   HOME PAGE - BANNER SLIDER
   ============================================ */
.sp-banner-section {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #3d3d7a, #2a2a5a);
  overflow: hidden;
  margin-bottom: 0;
}

.sp-banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  overflow: hidden;
}

.sp-banner-slide.active {
  opacity: 1;
}

.sp-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
  z-index: 2;
}

.sp-banner-label {
  display: inline-block;
  background: #d4a84b;
  color: #2d2d5a;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 8px;
}

.sp-banner-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.sp-banner-btn {
  display: inline-block;
  background: #d4a84b;
  color: #2d2d5a;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sp-banner-btn:hover {
  background: #e5c16e;
  transform: translateY(-2px);
}

.sp-banner-indicators {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.sp-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sp-indicator.active {
  background: #d4a84b;
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   HOME PAGE - POINT BAR
   ============================================ */
.sp-point-section {
  background: #ffffff;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.sp-point-bar {
  background: linear-gradient(
    90deg,
    var(--sp-primary-dark),
    rgba(26, 0, 60, 0.8)
  );
  border-radius: 20px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  height: 50px;
}

.sp-point-label {
  font-size: 12px;
  font-weight: 500;
  color: #e0e0e0;
}

.sp-point-value-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-point-value {
  font-size: 18px;
  font-weight: 700;
  color: #d4a84b;
}

.sp-point-dropdown {
  font-size: 12px;
  color: #d4a84b;
  cursor: pointer;
}

/* ============================================
   HOME PAGE - FEATURE ICONS (8 Icons)
   ============================================ */
.sp-feature-section {
  background: #ffffff;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
}

.sp-feature-scroll {
  display: flex;
  gap: 15px;
  min-width: 100%;
  justify-content: space-between;
  padding: 0;
}

.sp-feature-scroll::-webkit-scrollbar {
  height: 4px;
}

.sp-feature-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.sp-feature-scroll::-webkit-scrollbar-thumb {
  background: #d4a84b;
  border-radius: 2px;
}

.sp-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 60px;
  text-decoration: none;
  color: #2d2d5a;
  transition: all 0.3s ease;
}

.sp-feature-item:hover {
  transform: translateY(-5px);
}

.sp-feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.2);
}

.sp-feature-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.sp-feature-label {
  font-size: 11px;
  font-weight: 500;
  color: #2d2d5a;
  text-align: center;
  word-break: break-word;
}

/* ============================================
   PROMOTION GRID (4 Columns)
   ============================================ */
.sp-promo-section {
  background: #ffffff;
  padding: 20px 16px;
}

.sp-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #2d2d5a;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #d4a84b;
}

.sp-promo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.sp-promo-card {
  aspect-ratio: 1;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(61, 61, 122, 0.2);
}

.sp-promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-promo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
  color: #ffffff;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

/* ============================================
   GAME CATEGORY GRID (3 Columns)
   ============================================ */
.sp-category-section {
  background: #ffffff;
  padding: 20px 16px;
}

.sp-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.sp-category-card {
  aspect-ratio: 0.9;
  background: linear-gradient(135deg, #3d3d7a, #4a4a8a);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.sp-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(61, 61, 122, 0.3);
}

.sp-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(61, 61, 122, 0.7));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 12px;
  text-align: center;
}

.sp-category-name {
  font-size: 12px;
  font-weight: 700;
  color: #d4a84b;
}

.sp-category-count {
  font-size: 10px;
  color: #e0e0e0;
}

/* ============================================
   GAME CARD GRID (2 Columns)
   ============================================ */
.sp-game-section {
  background: #ffffff;
  padding: 20px 16px;
}

.sp-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.sp-game-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.sp-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sp-game-image {
  position: relative;
  width: 100%;
  aspect-ratio: 0.85;
  overflow: hidden;
}

.sp-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #d4a84b;
  color: #2d2d5a;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  z-index: 2;
}

.sp-game-body {
  padding: 12px;
}

.sp-game-name {
  font-size: 13px;
  font-weight: 700;
  color: #2d2d5a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.sp-game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #9999aa;
}

.sp-game-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #f39c12;
}

/* ============================================
   TAB NAVIGATION
   ============================================ */
.sp-tab-bar {
  display: flex;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
  padding: 0 16px;
}

.sp-tab-bar::-webkit-scrollbar {
  height: 3px;
}

.sp-tab-bar::-webkit-scrollbar-thumb {
  background: #d4a84b;
}

.sp-tab-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #9999aa;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sp-tab-item.active {
  color: #d4a84b;
  border-bottom-color: #d4a84b;
}

.sp-tab-item:hover {
  color: #3d3d7a;
}

/* ============================================
   LIST ITEMS
   ============================================ */
.sp-list-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.sp-list-item:hover {
  background: #f9f9f9;
}

.sp-list-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  flex-shrink: 0;
}

.sp-list-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.sp-list-content {
  flex: 1;
}

.sp-list-title {
  font-size: 14px;
  font-weight: 600;
  color: #2d2d5a;
  margin-bottom: 4px;
}

.sp-list-desc {
  font-size: 12px;
  color: #9999aa;
}

.sp-list-arrow {
  color: #d4a84b;
  font-size: 16px;
}

/* ============================================
   PROFILE CARD
   ============================================ */

.sp-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.sp-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #d4a84b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  border: 2px solid #ffffff;
}

.sp-profile-info {
  flex: 1;
}

.sp-profile-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.sp-profile-id {
  font-size: 11px;
  color: #e0e0e0;
}

.sp-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}

.sp-stat-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.sp-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #d4a84b;
}

.sp-stat-label {
  font-size: 10px;
  color: #e0e0e0;
  margin-top: 4px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.sp-form-group {
  margin-bottom: 16px;
}

.sp-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2d2d5a;
  margin-bottom: 8px;
}

.sp-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  font-size: 14px;
  color: #2d2d5a;
  background: #ffffff;
  transition: all 0.3s ease;
}

.sp-form-input:focus {
  outline: none;
  border-color: #d4a84b;
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.1);
}

.sp-form-input::placeholder {
  color: #9999aa;
}

.sp-form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.sp-form-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.sp-form-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #d4a84b;
}

.sp-form-checkbox label {
  cursor: pointer;
  color: #2d2d5a;
  font-size: 13px;
}

/* ============================================
   BUTTONS - EXTENDED STYLES
   ============================================ */
.sp-btn-primary {
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sp-btn-primary:hover {
  background: linear-gradient(180deg, #ffc107 0%, #f39c12 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 133, 28, 0.3);
}

.sp-btn-primary:active {
  background: linear-gradient(180deg, #d4691a 0%, #c45a15 100%);
  transform: translateY(0);
}

.sp-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.sp-btn-secondary {
  background: transparent;
  color: #d4a84b;
  border: 1px solid #d4a84b;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sp-btn-secondary:hover {
  background: #d4a84b;
  color: #ffffff;
}

.sp-btn-small {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 20px;
}

.sp-btn-large {
  padding: 14px 32px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.sp-btn-block {
  width: 100%;
  display: flex;
}

/* Button Container */
.sp-button-container {
  padding: 20px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sp-button-container .sp-btn-large {
  display: flex;
  justify-content: center;
  text-align: center;
}

.btn {
    padding: 0.4375rem 1.25rem;
    text-shadow: none;
    font-size: 14px;
    color: #3b3f5c;
    font-weight: normal;
    white-space: normal;
    word-wrap: break-word;
    transition: .2s ease-out;
    touch-action: manipulation;
    cursor: pointer;
    background-color: #f1f2f3;
    box-shadow: 0px 5px 20px 0 rgba(0, 0, 0, 0.1);
    will-change: opacity, transform;
    transition: all 0.3s ease-out;
    -webkit-transition: all 0.3s ease-out;
    line-height: 1.5;
    border-radius: .25rem;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.btn-danger {
    color: #fff !important;
    background-color: #e7515a;
    border-color: #e7515a;
}

.btn-danger:hover, .btn-danger:focus {
    color: #fff !important;
    background-color: #e7515a;
    box-shadow: none;
    border-color: #e7515a; 
}

.btn-success {
  color: #fff !important;
  background-color: #8dbf42;
  border-color: #8dbf42; 
}

.btn-success:hover, .btn-success:focus {
  color: #fff !important;
  background-color: #8dbf42;
  box-shadow: none;
  border-color: #8dbf42; 
}

/* ============================================
   MODAL/DIALOG
   ============================================ */
.sp-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
}

.sp-modal-overlay.active {
  display: flex;
}

.sp-modal {
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 24px;
  width: 100%;
  max-width: 414px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.sp-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #2d2d5a;
  margin-bottom: 16px;
}

.sp-modal-content {
  margin-bottom: 20px;
  color: #636e72;
  line-height: 1.6;
}

.sp-modal-buttons {
  display: flex;
  gap: 12px;
}

.sp-modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sp-modal-btn-confirm {
  background: #d4a84b;
  color: #2d2d5a;
}

.sp-modal-btn-confirm:hover {
  background: #e5c16e;
}

.sp-modal-btn-cancel {
  background: #f0f0f0;
  color: #2d2d5a;
}

.sp-modal-btn-cancel:hover {
  background: #dfe6e9;
}

/* Language Selector Modal */
#langModal {
  justify-content: flex-end;
  align-items: flex-start;
  padding: 50px 12px 0 0;
}

.sp-lang-modal {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: langFadeIn 0.2s ease;
  overflow: hidden;
}

@keyframes langFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sp-lang-list {
  display: flex;
  flex-direction: column;
  padding: 6px 0 6px 0;
  gap: 2px;
}

.sp-lang-item {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

/* ============================================
   HEADER - Complete Redesigned
   ============================================ */

.sp-header-container {
  background: #00003c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

/* HOME PAGE HEADER */
.sp-header-home {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 40px;
}

.sp-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 12px;
}

.sp-logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-logo {
  height: 40px;
  width: auto;
}

.sp-btn-web {
  position: absolute;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  text-decoration: none;
}

.sp-btn-web:hover {
  transform: scale(1.05);
}

.sp-web-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(101%) contrast(101%);
}

/* LANGUAGE SELECTOR BUTTON */
.sp-btn-lang {
  position: absolute;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 101;
}

.sp-btn-lang::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("../resource/ui-elements/webs.png") no-repeat center center;
  background-size: contain;
}

.sp-btn-lang:hover {
  transform: scale(1.1);
}

.sp-btn-lang:active {
  transform: scale(0.95);
}

/* LANGUAGE DROPDOWN */
.sp-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 102;
  min-width: 160px;
}

.sp-lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.sp-lang-dropdown-content {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}

.sp-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.sp-lang-item:not(:last-child) {
  border-bottom: 1px solid #cccc;
}

.sp-lang-item:hover {
  background: #f5f5f5;
  padding-left: 20px;
}

.sp-lang-item:active {
  background: #efefef;
}

.sp-lang-flag {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.sp-lang-name {
  flex: 1;
}

/* Header Settings Dropdown (22.png design) */
.sp-header-dropdown {
  position: absolute;
  top: 100%;
  right: 16px;
  z-index: 200;
  display: none;
}

.sp-header-dropdown.active {
  display: block;
}

.sp-header-dropdown-menu {
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border-radius: 8px;
  padding: 6px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: langFadeIn 0.2s ease;
  overflow: hidden;
  min-width: 100px;
}

.sp-header-dropdown-item {
  display: block;
  padding: 10px 24px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sp-header-dropdown-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.sp-header-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sp-btn-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
}

/* STANDARD PAGE HEADER */
.sp-header-page {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sp-btn-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  flex-shrink: 0;
  text-decoration: none;
}

.sp-btn-back:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sp-btn-back:active {
  background: rgba(255, 255, 255, 0.25);
}

.sp-header-title {
  font-size: 16px;
  font-weight: 700;
  color: #d4a84b;
  flex: 1;
  text-align: center;
  margin: 0;
}

.sp-header-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 36px;
  position: relative;
}

.sp-btn-action {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  text-decoration: none;
}

.sp-btn-action:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #d4a84b;
}

.sp-header-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* RESPONSIVE */
@media (max-width: 575px) {
  .sp-header-home {
    padding: 10px 12px;
  }

  .sp-logo {
    height: 36px;
  }

  .sp-header-page {
    padding: 10px 12px;
    gap: 8px;
  }

  .sp-btn-back,
  .sp-btn-action {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .sp-header-title {
    font-size: 14px;
  }

  /* Mobile button adjustments */
  .sp-button-container {
    padding: 16px 12px;
  }

  .sp-btn-large {
    padding: 12px 20px;
    font-size: 14px;
  }

  .sp-btn-primary {
    gap: 6px;
  }

  .sp-banner-section {
    height: 160px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .sp-banner-slider {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 575px) {
  /* Headers */
  .sp-home-header {
    padding: 10px 12px;
  }

  .sp-home-header-top {
    margin-bottom: 10px;
  }

  .sp-logo {
    height: 28px;
  }

  .sp-page-header {
    padding: 10px 12px;
    gap: 8px;
  }

  .sp-header-title {
    font-size: 14px;
  }

  .sp-header-back,
  .sp-header-icon-right {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  /* Content */
  .sp-banner-section {
    height: 180px;
  }

  .sp-promo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .sp-game-grid {
    grid-template-columns: 1fr;
  }

  .sp-section-title {
    font-size: 14px;
  }

  .sp-feature-scroll {
    gap: 10px;
  }

  .sp-feature-item {
    min-width: 55px;
  }

  .sp-modal {
    border-radius: 16px 16px 0 0;
    padding: 20px;
  }
}

@media (min-width: 768px) {
  .sp-banner-section {
    height: 280px;
  }

  .sp-promo-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .sp-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sp-category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sp-text-center {
  text-align: center;
}

.sp-text-gold {
  color: #d4a84b;
}

.sp-text-purple {
  color: #3d3d7a;
}

.sp-text-muted {
  color: #9999aa;
}

.sp-bg-light {
  background: #f5f5f5;
}

.sp-rounded {
  border-radius: 12px;
}

.sp-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sp-hidden {
  display: none !important;
}

.sp-visible {
  display: block !important;
}

/* Loading State */
.sp-loading {
  opacity: 0.6;
  pointer-events: none;
}

.sp-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f0f0f0;
  border-top-color: #d4a84b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Separator */
.sp-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 16px 0;
}

/* Badge */
.sp-badge {
  display: inline-block;
  background: #d4a84b;
  color: #2d2d5a;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.sp-badge-success {
  background: #2ecc71;
  color: #ffffff;
}

.sp-badge-error {
  background: #e74c3c;
  color: #ffffff;
}

/* ============================================
   HOME PAGE - 100% Match with home.png Design
   Background: White to Light Purple gradient
   ============================================ */

/* Main Page Background - Fixed Gradient via ::before */
.sp-bg-fixed::before {
  content: "";
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 40%,
    #faf6fc 70%,
    #ece1fa 90%,
    #d7c2f3 100%
  ) !important;
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
}

/* Activity Page Styles */
.sp-activity-page {
  padding-top: 0;
}

.sp-activity-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-activity-card {
  display: block;
  background: #00003c;
  border-radius: 12px;
  height: 100px;
  width: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sp-activity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.sp-activity-card:active {
  transform: scale(0.98);
}

/* Points Bar - Home Style */
.sp-point-section-home {
  padding: 12px 8px;
}

.sp-point-bar-home {
  background: #00003c;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left Side: Point + Value */
.sp-point-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-point-label-home {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.sp-point-value-home {
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
}

/* Right Side: 3 Action Buttons */
.sp-point-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sp-point-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
}

.sp-point-action-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-point-action-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sp-point-action-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  white-space: nowrap;
}

/* Hot Games Section */
.sp-hot-games-section {
  padding: 12px 16px;
  position: relative;
  margin-top: 20px;
  background: linear-gradient(180deg, #f5a623 0%, #fff0 100%);
}

.sp-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
}

.sp-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d2d5a;
}

.sp-hot-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sp-hot-gradient);
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(172, 78, 233, 0.4);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
}

.sp-hot-label-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.sp-hot-label span {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

/* Swiper Hot Games Slider */
.hotGamesSwiper {
  width: 100%;
  padding-bottom: 4px;
  margin-bottom: -25px;
}

.hotGamesSwiper .swiper-slide {
  width: auto;
}

.sp-hot-game-item {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sp-hot-game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Feature Icons - Home Style (8 items in 2 rows of 4) */
.sp-feature-section-home {
  background: var(--sp-primary-dark, #1a003c);
  padding: 16px;
}

.sp-feature-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
}

.sp-feature-item-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
}

.sp-feature-item-home:hover {
  transform: translateY(-3px);
}

.sp-feature-icon-home {
  width: 48px;
  height: 48px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.sp-feature-icon-home img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.sp-feature-label-home {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* Category Tabs - Pill Style (white background, purple active pill) */
.sp-category-tabs-section {
  background: #f5f5f7;
  padding: 10px 12px;
  border-bottom: none;
}

.sp-category-tabs {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 8px 4px;
  gap: 3px;
  background: #ffffff;
  border-radius: 50px;
  border: none;
  box-shadow: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sp-category-tabs::-webkit-scrollbar {
  display: none;
}

.sp-category-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px 10px 6px;
  font-size: 14px;
  font-weight: 600;
  color: #b0b0b8;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
}

.sp-category-tab:hover {
  color: #8b5cf6;
}

.sp-category-tab.active {
  background: var(--sp-hot-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(172, 78, 233, 0.4);
}

.sp-category-tab.active .sp-tab-icon {
  filter: brightness(0) invert(1);
}

.sp-tab-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Games Section - Home - Transparent (seamless with page background) */
.sp-games-section-home {
  background: transparent;
  padding: 8px 16px;
  min-height: 400px;
  padding-bottom: 100px;
}

/* Games Grid - 3 columns */
.sp-games-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* ALL Button as Grid Item */
.sp-all-btn-grid {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(139, 92, 246, 0.15);
  transition: all 0.2s ease;
}

.sp-all-btn-grid:hover {
  background: rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}

.sp-all-btn-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #5b3e8a;
}

.sp-all-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none;
}

.sp-all-btn-inner span {
  font-size: 10px;
  font-weight: 600;
  color: #5b3e8a;
}

.sp-game-item-home {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.sp-game-item-home:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Category Filter Animation - Fade + Scale */
.sp-game-item-home.sp-game-hiding {
  opacity: 0;
  transform: scale(0.8);
}

.sp-game-item-home.sp-game-showing {
  opacity: 1;
  transform: scale(1);
  animation: gameShowIn 0.3s ease forwards;
}

@keyframes gameShowIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.sp-game-thumb-home {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #e8e0f0;
}

.sp-game-thumb-home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bottom Nav - Dark purple gradient */
.sp-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 414px;
  height: 65px;
  background: #1a003c;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding-bottom: 8px;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.sp-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sp-nav-item.active,
.sp-nav-item:hover {
  color: #fff;
}

.sp-nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.sp-nav-item.active .sp-nav-icon,
.sp-nav-item:hover .sp-nav-icon {
  opacity: 1;
}

/* Center Crown Button - Simple img only */
.sp-nav-center-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 70px;
  top: -5px;
  z-index: 101;
}
.sp-nav-center-link:before {
  content: "";
  position: absolute;
  background: url(../resource/ui-elements/footer-triangle.png) no-repeat center
    center;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 100%;
  z-index: -1;
}

.sp-nav-crown-logo {
  width: 85px;
  height: 85px;
  object-fit: contain;
}

/* Banner Section - Transparent (seamless with page background) */
.sp-banner-section {
  position: relative;
  width: 100%;
  height: 160px;
  background: transparent;
  overflow: hidden;
  margin-top: 6px;
  margin-bottom: 0;
  padding: 8px;
}

.sp-banner-slider {
  position: relative;
  width: calc(100% - 16px);
  height: 100%;
}

.sp-banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  overflow: hidden;
}

.sp-banner-slide.active {
  opacity: 1;
}

.sp-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.sp-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #ffffff;
  z-index: 2;
  border-radius: 16px;
}

.sp-banner-label {
  display: inline-block;
  background: #d4a84b;
  color: #1a003c;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 6px;
}

.sp-banner-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.sp-banner-btn {
  display: inline-block;
  background: #d4a84b;
  color: #1a003c;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sp-banner-btn:hover {
  background: #e5c16e;
  transform: translateY(-2px);
}

.sp-banner-indicators {
  position: absolute;
  bottom: 20px;
  right: 24px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.sp-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sp-indicator.active {
  background: #d4a84b;
  width: 18px;
  border-radius: 3px;
}

/* Mobile Nav Spacer */
.mobile-nav-spacer {
  height: 80px;
}

/* ============================================
   QUICK ACTION BUTTONS (4 Items Row)
   Matches home.png exactly
   Background: Transparent (seamless)
   ============================================ */
.sp-quick-buttons-section {
  background: transparent;
  padding: 10px 16px;
}

.sp-quick-buttons-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.sp-quick-btn {
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sp-quick-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.sp-quick-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.sp-quick-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-quick-btn-icon img {
  width: 41px;
  height: 41px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.sp-quick-btn-label {
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
}

/* ============================================
   HOT GAMES HORIZONTAL SLIDER
   Matches image_games_hot.png design exactly
   - Orange background
   - Header with fire icon + "热门" centered
   - Horizontal scroll with left/right peek effect
   ============================================ */
.sp-hot-games-section {
  background: linear-gradient(180deg, #f5a623 0%, #f5f5f7 70%);
  padding: 10px 0 44px 0;
  border-radius: 10px;
}

.sp-hot-games-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 16px 10px 16px;
}

.sp-hot-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.sp-hot-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.sp-hot-games-slider-wrapper {
  position: relative;
  overflow: hidden;
}

.sp-hot-games-slider {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.sp-hot-games-slider::-webkit-scrollbar {
  display: none;
}

.sp-hot-game-item {
  flex: 0 0 auto;
  width: 70px;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.sp-hot-game-item:hover {
  transform: scale(1.05);
}

.sp-hot-game-thumb {
  width: 70px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #2d2d5a;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.sp-hot-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive adjustments for quick buttons */
@media (max-width: 375px) {
  .sp-quick-buttons-section {
    padding: 12px;
  }

  .sp-quick-buttons-row {
    gap: 6px;
  }

  .sp-quick-btn {
    padding: 10px 4px;
    border-radius: 10px;
    min-height: 60px;
  }

  .sp-quick-btn-label {
    font-size: 10px;
  }

  .sp-games-grid-home {
    gap: 8px;
  }
}

/* Responsive */
@media (max-width: 375px) {
  .sp-feature-grid-home {
    gap: 12px 4px;
  }

  .sp-feature-icon-home {
    width: 42px;
    height: 42px;
  }

  .sp-feature-icon-home img {
    width: 24px;
    height: 24px;
  }

  .sp-games-grid-home {
    gap: 8px;
  }

  .sp-banner-section {
    height: 160px;
  }
}

/* ============================================
   PROFILE PAGE - 100% Match with design
   ============================================ */

/* ============================================
   PROFILE PAGE STYLES (53.png)
   ============================================ */
.sp-profile-container {
  padding: 0;
}

/* Profile Card - Dark Navy, full width, rounded bottom */
.sp-profile-card {
    position: relative;
    margin-top: 55px;
    background: #00003c;
    border-radius: 10px;
    padding: 50px 15px 15px;
    text-align: center;
    margin-bottom: 0;
}

/* Avatar with Purple Ring */
.sp-profile-avatar {
    display: flex;
    top: -50%;
    left: 50%;
    transform: translate(-50%, 35%);
    position: absolute;
    justify-content: center;
    margin-bottom: 12px;
}

.sp-profile-avatar-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-profile-avatar-inner i {
  font-size: 36px;
  color: #6b5b95;
}

.sp-profile-avatar-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Username */
.sp-profile-username {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 2px 0;
  letter-spacing: 0.5px;
}

/* Display Name */
.sp-profile-displayname {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
}

/* Info Row (Phone & Date) */
.sp-profile-info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-top: 5px;
  border-top: 1px solid #aaa5;
}

.sp-profile-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
}

.sp-profile-info-item i {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.sp-profile-info-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.sp-profile-info-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.25);
}

/* Points Bar - Dark Navy, full width */
.sp-profile-points-bar {
  display: flex;
  align-items: center;
  background: #00003c;
  border-radius: 8px;
  padding: 14px 0;
  margin: 12px 16px;
}

.sp-profile-points-label {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  flex: 1;
  text-align: center;
}

.sp-profile-points-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.25);
}

.sp-profile-points-value {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  flex: 1;
  text-align: center;
}

/* Menu Card */
.sp-profile-menu-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  margin: 0 16px 16px;
}

.sp-profile-menu-header {
  padding: 14px 16px;
}

.sp-profile-menu-badge {
  display: inline-block;
  background: linear-gradient(180deg, #ac4ee9, #360599);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
}

.sp-profile-menu-list {
  border-top: none;
}

.sp-profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: #281240;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.sp-profile-menu-item:last-child {
  border-bottom: none;
}

.sp-profile-menu-item:hover {
  background: #fafafa;
}

.sp-profile-menu-text {
  font-size: 15px;
  font-weight: 600;
}

.sp-profile-menu-arrow {
  font-size: 12px;
  color: #ccc;
}

/* ============================================
   AUTH PAGES - Login/Register/Forgot Password
   100% Match with design
   ============================================ */

.sp-auth-page {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sp-auth-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2d2d5a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 45, 90, 0.1);
  border-radius: 6px;
  margin-bottom: 30px;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sp-auth-home-link i {
  font-size: 14px;
  color: #2d2d5a;
}

.sp-auth-logo {
  text-align: center;
  margin-bottom: 40px;
}

.sp-auth-logo img {
  max-height: 100px;
  max-width: 260px;
}

.sp-auth-title {
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  color: #2d2d5a;
  margin: 0 0 50px;
  font-style: italic;
  letter-spacing: 0.5px;
}

.sp-auth-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sp-auth-input-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background: #ffffff;
  border-radius: 6px;
  padding: 0;
  border: 1px solid #e8e4f0;
  overflow: hidden;
}

.sp-auth-label {
  width: 80px;
  padding: 16px 0 16px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #2d2d5a;
  flex-shrink: 0;
  border-right: 1px solid #e8e4f0;
  background: #fafafa;
}

.sp-auth-input {
  flex: 1;
  height: 52px;
  padding: 0 18px;
  background: transparent;
  border: none;
  font-size: 14px;
  color: #2d2d5a;
}

.sp-auth-input::placeholder {
  color: #aaa;
}

.sp-auth-input:focus {
  outline: none;
}

.sp-forgot-link {
  display: block;
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 40px;
  text-decoration: none;
}

.sp-auth-btn {
  width: 100%;
  height: 54px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 27px;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.35);
}

.sp-auth-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.45);
}

.sp-auth-switch {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: auto;
  padding-bottom: 30px;
}

.sp-auth-switch a {
  color: #2d2d5a;
  text-decoration: none;
  font-weight: 600;
}

/* Register Page Specific */
.sp-auth-input-hint {
  font-size: 11px;
  color: #999;
  margin: -12px 0 16px 16px;
}

.sp-auth-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #666;
}

.sp-auth-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #8b5cf6;
}

.sp-auth-checkbox a {
  color: #8b5cf6;
  text-decoration: none;
}

/* Auth Form Container (for pages with header) */
.sp-auth-form-container {
  padding: 24px 16px 100px;
}

.sp-register-form .sp-auth-input-group {
  margin-bottom: 8px;
}

.sp-register-form .sp-auth-input-hint {
  margin: 0 0 16px 16px;
}

/* Auth Card (for forms on pages with header) */
.sp-auth-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sp-auth-card .sp-auth-input-group {
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid #e8e4f0;
  border-radius: 0;
}

.sp-auth-card .sp-auth-input-group:last-of-type {
  border-bottom: none;
}

/* Forgot Password Page */
.sp-forgot-tabs {
  margin: 0 16px 20px;
}

.sp-forgot-form-title {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e4f0;
  margin-bottom: 16px;
}

.sp-auth-input-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e8e4f0;
}

.sp-auth-input-row:last-child {
  border-bottom: none;
}

.sp-country-code {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 12px;
  border-right: 1px solid #e8e4f0;
  margin-right: 12px;
}

.sp-country-select {
  appearance: none;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #2d2d5a;
  padding-right: 4px;
}

.sp-country-code .sp-select-arrow-icon {
  width: 10px;
  height: 10px;
}

.sp-phone-input {
  flex: 1;
  height: 40px;
  border: none;
  font-size: 14px;
}

.sp-verify-label,
.sp-email-label {
  font-size: 14px;
  font-weight: 500;
  color: #2d2d5a;
  width: 60px;
  flex-shrink: 0;
  padding-right: 12px;
  border-right: 1px solid #e8e4f0;
  margin-right: 12px;
}

.sp-verify-row .sp-auth-input {
  flex: 1;
  height: 40px;
  border: none;
}

.sp-verify-send-btn {
  flex-shrink: 0;
  padding: 8px 10px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
}

.sp-forgot-btn {
  margin: 20px 16px;
  width: calc(100% - 32px);
}

.sp-forgot-help {
  text-align: center;
  font-size: 13px;
  color: #999;
}

.sp-forgot-help a {
  color: #ec692e;
  text-decoration: none;
}

/* Password Rules */
.sp-password-rules {
  padding: 0 20px;
  margin-bottom: 20px;
}

.sp-password-rules p {
  font-size: 12px;
  color: #999;
  margin: 0 0 4px;
  line-height: 1.6;
}

/* Agreement Modal */
.sp-agreement-modal {
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.sp-agreement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e8e4f0;
}

.sp-agreement-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2d2d5a;
}

.sp-modal-close {
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.sp-agreement-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.sp-agreement-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #2d2d5a;
  margin: 16px 0 8px;
}

.sp-agreement-content h4:first-child {
  margin-top: 0;
}

.sp-agreement-content p {
  margin: 0 0 12px;
}

.sp-agreement-footer {
  padding: 16px 20px;
  border-top: 1px solid #e8e4f0;
}

.sp-agreement-footer .sp-btn {
  width: 100%;
}

/* Toast Success Icon */
.sp-toast-success {
  width: 60px;
  height: 60px;
  background: #fff;
  border: 3px solid #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.sp-toast-success img {
  width: 30px;
  height: 30px;
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

/* ============================================
   FORM PAGES - Deposit/Withdrawal/Transfer
   100% Match with design
   ============================================ */

.sp-form-page-container {
  padding: 16px;
  padding-bottom: 120px;
}

/* Tab Switch (Two buttons) */
.sp-tab-switch {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 4px;
}

.sp-tab-btn {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: 26px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: #666;
}

.sp-tab-btn.active {
  background: linear-gradient(180deg, #ac4ee9, #360599);
  color: #ffffff;
  box-shadow: 0 4px 12px rgb(208 35 245 / 26%);
}

/* Form Card */
.sp-form-card {
  background: #ffffff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sp-form-card-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  margin-bottom: 5px;
}

.sp-form-card-value {
  font-size: 14px;
  color: #333;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f5;
}

.sp-form-card-input {
  width: -webkit-fill-available;
  padding: 12px 10px;
  border: none;
  background: #eee;
  font-size: 14px;
  border-radius: 5px;
  color: #111;
}

.sp-form-card-input::placeholder {
  color: #bbb;
}

.sp-form-card-input:focus {
  outline: none;
  border-bottom-color: #6b5b95;
}

/* Select Dropdown */
.sp-select-dropdown {
  display: flex;
  align-items: center;
  padding: 12px 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f5;
  cursor: pointer;
}

.sp-select-icon {
  width: 28px;
  height: 28px;
  margin-right: 14px;
  border-radius: 50%;
  overflow: hidden;
}

.sp-select-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-select-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

.sp-select-arrow {
  font-size: 14px;
  color: #999;
  transition: transform 0.3s ease;
}

.sp-select-dropdown.open .sp-select-arrow {
  transform: rotate(180deg);
}

/* Form Actions */
.sp-form-actions {
  margin-top: 30px;
  text-align: center;
}

.sp-btn-submit {
  width: 100%;
  height: 54px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 27px;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.35);
}

.sp-btn-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.45);
}

.sp-form-notice-link {
  display: inline-block;
  font-size: 14px;
  color: #f5a623;
  text-decoration: none;
}

/* Info Row (for displaying values) */
.sp-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f5;
}

.sp-info-row:last-child {
  border-bottom: none;
}

.sp-info-label {
  font-size: 13px;
  color: #666;
}

.sp-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a3a;
}

/* Balance Display */
.sp-balance-display {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a3a;
  text-align: center;
  padding: 12px 0;
}

/* ============================================
   ACTIVITY LIST PAGE
   ============================================ */

.sp-activity-list-container {
  padding: 16px;
  padding-bottom: 100px;
}

.sp-activity-banner {
  display: block;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
}

.sp-activity-banner-placeholder {
  background: #00003c;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ============================================
   RANKING PAGE
   ============================================ */

.sp-ranking-container {
  padding: 16px;
  padding-bottom: 120px;
}

/* Podium Section */
.sp-ranking-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding: 25px 10px 20px 10px;
  margin-bottom: 20px;
  background: linear-gradient(
    180deg,
    rgba(45, 45, 90, 0.1) 0%,
    transparent 100%
  );
  border-radius: 16px;
}

.sp-podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100px;
}

.sp-podium-item.rank-1 {
  order: 2;
  transform: translateY(-15px);
}

.sp-podium-item.rank-2 {
  order: 1;
}

.sp-podium-item.rank-3 {
  order: 3;
}

.sp-podium-crown {
  font-size: 24px;
  color: #f5a623;
  margin-bottom: 5px;
}

.sp-podium-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
}

.sp-podium-badge.gold {
  background: linear-gradient(135deg, #ffc107 0%, #f5a623 50%, #e8851c 100%);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.sp-podium-badge.silver {
  background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 50%, #808080 100%);
  box-shadow: 0 4px 12px rgba(128, 128, 128, 0.3);
}

.sp-podium-badge.bronze {
  background: linear-gradient(135deg, #cd853f 0%, #cd7f32 50%, #a0522d 100%);
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3);
}

.sp-podium-badge-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.sp-podium-item.rank-1 .sp-podium-badge-img {
  width: 56px;
  height: 56px;
  top: -15px;
}

.sp-podium-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 3px solid #8b5cf6;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.sp-podium-avatar.gold {
  width: 80px;
  height: 80px;
  border-color: #f5a623;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.sp-podium-avatar i {
  font-size: 26px;
  color: rgba(255, 255, 255, 0.8);
}

.sp-podium-avatar.gold i {
  font-size: 32px;
}

.sp-podium-user {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 500;
}

.sp-podium-amount {
  font-size: 13px;
  font-weight: 700;
  color: #f5a623;
  background: rgba(245, 166, 35, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}

/* Ranking Table */
.sp-ranking-table {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sp-ranking-table-header {
  display: grid;
  grid-template-columns: 50px 1fr 100px 80px;
  padding: 14px 18px;
  background: #fafafa;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  border-bottom: 1px solid #f0f0f5;
}

.sp-ranking-table-row {
  display: grid;
  grid-template-columns: 50px 1fr 100px 80px;
  padding: 14px 18px;
  border-bottom: 1px solid #f5f5f8;
  font-size: 13px;
  color: #2d2d5a;
  align-items: center;
}

.sp-ranking-table-row:last-child {
  border-bottom: none;
}

.sp-rank-num {
  font-weight: 700;
  color: #6b5b95;
}

.sp-rank-game {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

/* ============================================
   SETTINGS PAGE
   ============================================ */

.sp-settings-container {
  margin-top: 30px;
}

.sp-settings-menu {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sp-settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  text-decoration: none;
  color: #2d2d5a;
  border-bottom: 1px solid #f5f5f8;
  transition: background 0.2s ease;
}

.sp-settings-item:last-child {
  border-bottom: none;
}

.sp-settings-item:hover {
  background: #fafafa;
}

.sp-settings-item span {
  font-size: 15px;
  font-weight: 500;
}

.sp-settings-item i {
  font-size: 14px;
  color: #bbb;
}

/* ============================================
   TRANSACTION/RECORD PAGES
   ============================================ */

.sp-record-container {
  padding-bottom: 120px;
}

/* Filter Bar */
.sp-filter-bar {
  display: flex;
  gap: 10px;
  background: linear-gradient(180deg, #2d2d5a 0%, #1a1a3a 100%);
}

.sp-filter-select-wrap {
  flex: 1;
  position: relative;
}

.sp-filter-select {
  width: 100%;
  padding: 5px 30px 5px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
}

.sp-filter-select option {
  background: #2d2d5a;
  color: #ffffff;
}

.sp-filter-select-wrap i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  pointer-events: none;
}

/* Record List */
.sp-record-list {
  padding: 16px;
  padding-top: 20px;
}

.sp-record-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sp-record-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}

.sp-record-icon.success {
  background: #22c55e;
  color: #ffffff;
}

.sp-record-icon.pending {
  background: #f5a623;
  color: #ffffff;
}

.sp-record-icon i {
  font-size: 16px;
}

.sp-record-content {
  flex: 1;
}

.sp-record-bank {
  font-size: 15px;
  font-weight: 600;
  color: #2d2d5a;
  margin-bottom: 5px;
}

.sp-record-date {
  font-size: 12px;
  color: #888;
}

.sp-record-amount {
  font-size: 15px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
}

/* Floating Customer Service Button */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sp-float-cs-btn {
  position: fixed;
  bottom: 100px;
  right: 16px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  text-decoration: none;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
}

.sp-float-cs-btn:hover {
  transform: scale(1.1);
}

.sp-float-cs-btn:active {
  transform: scale(0.95);
}

.sp-float-cs-btn .sp-cs-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================
   NOTIFICATION PAGE
   ============================================ */

.sp-notification-container {
  padding: 16px;
  padding-bottom: 120px;
}

.sp-notification-list {
  margin-top: 16px;
}

.sp-notification-card {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 12px;
}

.sp-notification-header {
  display: flex;
  align-items: center;
}

.sp-notification-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.sp-notification-icon.success {
  background: #22c55e;
  color: #ffffff;
}

.sp-notification-icon.pending {
  background: #f5a623;
  color: #ffffff;
}

.sp-notification-icon i {
  font-size: 14px;
}

.sp-notification-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #2d2d5a;
}

.sp-notification-date {
  font-size: 12px;
  color: #888;
}

.sp-notification-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(90deg, #2d2d5a 0%, #3d3d7a 100%);
  border-radius: 8px;
}

.sp-notification-amount {
  font-size: 15px;
  font-weight: 600;
  padding: 4px;
  border-radius: 6px;
}

/* ============================================
   CHAT LIST PAGE
   ============================================ */

.sp-chat-list-container {
  padding: 16px;
  padding-bottom: 120px;
}

.sp-chat-list {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sp-chat-item {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 16px 18px;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f8;
  transition: background 0.2s ease;
}

.sp-chat-item:last-child {
  border-bottom: none;
}

.sp-chat-item:hover {
  background: #fafafa;
}

.sp-chat-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3d3d7a 0%, #2d2d5a 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}

.sp-chat-avatar i {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.sp-chat-content {
  flex: 1;
}

.sp-chat-name {
  font-size: 16px;
  font-weight: 600;
  color: #2d2d5a;
  margin-bottom: 5px;
}

.sp-chat-preview {
  font-size: 13px;
  color: #888;
}

.sp-chat-time {
  font-size: 12px;
  color: #aaa;
}

/* Customer Service Outline Button */
.sp-cs-btn-outline {
  display: block;
  text-align: center;
  padding: 16px 28px;
  border: 2px solid #f5a623;
  border-radius: 28px;
  color: #f5a623;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sp-cs-btn-outline:hover {
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.35);
}

/* ============================================
   PROMO PAGE
   ============================================ */

.sp-promo-card {
  display: flex;
  align-items: center;
  padding: 18px;
  background: linear-gradient(135deg, #2d2d5a 0%, #3d3d7a 100%);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(45, 45, 90, 0.2);
}

.sp-promo-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.sp-promo-icon i {
  font-size: 24px;
  color: #ffffff;
}

.sp-promo-content {
  flex: 1;
}

.sp-promo-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.sp-promo-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.sp-promo-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
}

/* ============================================
   QR CODE PAGE
   ============================================ */

.sp-qrcode-container {
  padding: 30px 16px 120px;
  text-align: center;
}

.sp-qrcode-username {
  font-size: 22px;
  font-weight: 700;
  color: #2d2d5a;
  margin: 0 0 20px 0;
}

.sp-referral-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.sp-referral-label {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.sp-referral-value {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
}

.sp-referral-value span {
  font-size: 15px;
  font-weight: 600;
  color: #2d2d5a;
}

.sp-copy-btn {
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: #6b5b95;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sp-copy-btn:hover {
  color: #8b5cf6;
}

.sp-qrcode-card {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.sp-qrcode-image {
  margin-bottom: 20px;
}

.sp-qrcode-placeholder {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  background: #fafafa;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
}

.sp-qrcode-placeholder i {
  font-size: 110px;
  color: #2d2d5a;
}

.sp-qrcode-hint {
  font-size: 15px;
  color: #f5a623;
  margin: 0;
  font-weight: 500;
}

/* ============================================
   INVITE PAGE
   ============================================ */

.sp-invite-container {
  padding-bottom: 120px;
}

.sp-invite-header {
  background: linear-gradient(180deg, #2d2d5a 0%, #1a1a3a 100%);
  padding: 18px 16px;
}

.sp-invite-links {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.sp-invite-link-box {
  flex: 1;
}

.sp-invite-link-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  font-weight: 500;
}

.sp-invite-link-value {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.sp-invite-link-value span {
  flex: 1;
  font-size: 13px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-invite-link-value button {
  padding: 6px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s ease;
}

.sp-invite-link-value button:hover {
  color: #f5a623;
}

.sp-invite-stats {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sp-invite-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid #f5f5f8;
}

.sp-invite-stat-row:last-child {
  border-bottom: none;
}

.sp-invite-stat-label {
  font-size: 14px;
  color: #666;
}

.sp-invite-stat-value {
  font-size: 15px;
  font-weight: 600;
  color: #2d2d5a;
}

.sp-invite-commission {
  padding: 18px 16px;
}

.sp-commission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sp-commission-title {
  font-size: 15px;
  font-weight: 600;
  color: #f5a623;
}

.sp-commission-link {
  font-size: 13px;
  color: #6b5b95;
  text-decoration: none;
  font-weight: 500;
}

.sp-commission-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sp-commission-amount {
  font-size: 14px;
  color: #2d2d5a;
  font-weight: 500;
}

.sp-commission-status {
  font-size: 13px;
  color: #22c55e;
  font-weight: 600;
}

/* ============================================
   CUSTOMER SERVICE PAGE
   ============================================ */

.sp-cs-container {
  padding: 30px 16px 120px;
  text-align: center;
}

.sp-cs-logo {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #e8dff5 0%, #d4c4e8 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15);
}

.sp-cs-logo i {
  font-size: 44px;
  color: #6b5b95;
}

.sp-cs-title {
  font-size: 24px;
  font-weight: 700;
  color: #2d2d5a;
  margin: 0 0 14px 0;
}

.sp-cs-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0 0 30px 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.sp-cs-quick-actions {
  margin-bottom: 30px;
}

.sp-cs-action-btn {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #e8e8ec;
  border-radius: 12px;
  margin-bottom: 12px;
  text-decoration: none;
  color: #2d2d5a;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.sp-cs-action-btn:hover {
  border-color: #6b5b95;
  background: #f8f5ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 91, 149, 0.1);
}

.sp-cs-action-btn i {
  width: 28px;
  margin-right: 14px;
  color: #6b5b95;
  font-size: 18px;
}

.sp-cs-input-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid #e8e8ec;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sp-cs-input {
  flex: 1;
  border: none;
  font-size: 14px;
  color: #2d2d5a;
  background: transparent;
}

.sp-cs-input::placeholder {
  color: #aaa;
}

.sp-cs-input:focus {
  outline: none;
}

.sp-cs-mic-btn {
  padding: 8px;
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sp-cs-mic-btn:hover {
  color: #6b5b95;
}

/* ============================================
   BETTING RECORD PAGE
   ============================================ */

.sp-betting-table {
  background: #ffffff;
  border-radius: 10px;
  margin: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sp-betting-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  padding: 14px 18px;
  background: #fafafa;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  border-bottom: 1px solid #f0f0f5;
}

.sp-betting-summary {
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
  margin: 0 16px;
  background: linear-gradient(135deg, #2d2d5a 0%, #3d3d7a 100%);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(45, 45, 90, 0.2);
}

.sp-betting-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-betting-summary-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.sp-betting-summary-value {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

/* ============================================
   FAQ PAGE
   ============================================ */

.sp-faq-container {
  padding: 16px;
  padding-bottom: 120px;
}

.sp-faq-list {
  margin-top: 18px;
}

.sp-faq-item {
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.sp-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sp-faq-question:hover {
  background: #fafafa;
}

.sp-faq-question span {
  font-size: 15px;
  font-weight: 600;
  color: #2d2d5a;
}

.sp-faq-question i {
  font-size: 14px;
  color: #aaa;
  transition: transform 0.3s ease;
}

.sp-faq-item.active .sp-faq-question {
  border-bottom: 1px solid #f0f0f5;
  background: #fafafa;
}

.sp-faq-item.active .sp-faq-question i {
  transform: rotate(180deg);
  color: #6b5b95;
}

.sp-faq-answer {
  display: none;
  padding: 16px;
  min-height: 80px;
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.sp-about-container {
  padding: 30px 16px 120px;
}

.sp-about-logo-section {
  text-align: center;
  margin-bottom: 36px;
}

.sp-about-logo-img {
  max-width: 200px;
  height: auto;
  margin-bottom: 24px;
}

.sp-about-title {
  font-size: 20px;
  font-weight: 700;
  color: #2d2d5a;
  margin: 0 0 10px 0;
}

.sp-about-subtitle {
  font-size: 14px;
  color: #888;
  margin: 0;
  letter-spacing: 2px;
}

.sp-about-menu {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sp-about-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  text-decoration: none;
  color: #2d2d5a;
  border-bottom: 1px solid #f5f5f8;
  transition: background 0.2s ease;
}

.sp-about-menu-item:last-child {
  border-bottom: none;
}

.sp-about-menu-item:hover {
  background: #fafafa;
}

.sp-about-menu-item span {
  font-size: 15px;
  font-weight: 500;
}

.sp-about-menu-item i {
  font-size: 14px;
  color: #bbb;
}

/* ============================================
   ACTIVITY DETAIL PAGE
   100% Match with resource/1/8.png & 9.png
   ============================================ */
.sp-activity-detail-container {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 50px);
  padding-bottom: 80px;
}

/* Activity Banner */
.sp-activity-detail-banner {
  width: calc(100% - 32px);
  margin: 16px auto 0;
  height: 140px;
  background: #00003c;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.sp-activity-detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tab Switch Overlay Style */
.sp-tab-switch-overlay {
  position: relative;
  margin: -20px auto 0;
  z-index: 10;
  width: calc(100% - 64px);
  max-width: 280px;
  background: #fff;
  border-radius: 25px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sp-tab-switch-overlay .sp-tab-btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  background: transparent;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.sp-tab-switch-overlay .sp-tab-btn.active {
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  color: #fff;
  box-shadow: 0 2px 6px rgba(245, 166, 35, 0.4);
}

/* Activity Detail Card */
.sp-activity-detail-card {
  background: #fff;
  margin: 16px;
  border-radius: 12px;
  padding: 20px 16px;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Activity Rules */
.sp-activity-rules {
  padding: 0;
}

.sp-activity-rule-item {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.sp-activity-rule-item:last-child {
  margin-bottom: 0;
}

.sp-rule-number {
  color: #222;
  font-size: 14px;
  flex-shrink: 0;
}

.sp-rule-text {
  color: #222;
  font-size: 13px;
  line-height: 1.7;
}

/* Activity Ranking Table */
.sp-activity-ranking-table {
  width: 100%;
}

.sp-activity-ranking-header {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

.sp-activity-ranking-row {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  color: #333;
}

.sp-activity-ranking-row:last-child {
  border-bottom: none;
}

.sp-ranking-col-rank {
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.sp-ranking-col-user {
  flex: 1;
  text-align: center;
}

.sp-ranking-col-amount {
  width: 100px;
  text-align: right;
  flex-shrink: 0;
}

.sp-activity-ranking-empty {
  padding: 40px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* Activity Date */
.sp-activity-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  color: #999;
  font-size: 13px;
}

.sp-activity-date i {
  font-size: 14px;
}

/* Activity Join Button */
.sp-activity-detail-actions {
  padding: 0 16px 16px;
}

.sp-btn-activity-join {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.sp-btn-activity-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.5);
}

.sp-btn-activity-join:active {
  transform: translateY(0);
}

/* ============================================
   TRANSACTION PAGE
   100% Match with resource/1/10.png
   ============================================ */
.sp-transaction-container {
  padding: 0;
}

/* Filter Bar */
.sp-transaction-filter {
  display: flex;
  gap: 10px;
  padding: 10px 16px 12px;
  background: transparent;
}

.sp-transaction-select {
  flex: 1;
  position: relative;
}

.sp-transaction-select select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  background: #00003c;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.sp-transaction-select select option {
  background: #00003c;
  color: #fff;
}

.sp-transaction-select i,
.sp-transaction-select .sp-select-arrow-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}

.sp-select-arrow-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

/* Transaction List */
.sp-transaction-list {
  padding: 0 16px;
}

.sp-transaction-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 14px 10px 0 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 15px #0002;
  margin-bottom: 15px;
}

.sp-transaction-item:last-child {
  border-bottom: none;
}

/* Status Icon */
.sp-transaction-status {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.sp-status-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Transaction Details */
.sp-transaction-details {
  flex: 1;
}

.sp-transaction-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #00003c;
  padding: 10px 6px;
  border-radius: 5px;
}

.sp-transaction-bank-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.sp-transaction-bank {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.sp-transaction-amount {
  color: #fff;
  font-size: 14px;
  margin-left: auto;
  padding-left: 16px;
}

.sp-transaction-date {
  color: #888;
  font-size: 13px;
  margin-top: 6px;
  text-align: right;
}

/* ============================================
   GAME DETAIL PAGE
   100% Match with resource/1/13.png
   ============================================ */

/* Game Banner */
.sp-game-detail-banner {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1a1a3a;
  overflow: hidden;
}

.sp-game-detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Points Bar */
.sp-game-points-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #00003c;
}

.sp-points-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-points-label,
.sp-points-value {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
}

.sp-game-deposit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sp-game-deposit-btn:hover {
  background: #e09000;
}

.sp-deposit-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Info Card (Return Rate) */
.sp-game-info-card {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  background: #00003c;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  overflow: hidden;
}

.sp-game-info-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
}

.sp-game-info-divider {
  width: 1px;
  height: 16px;
  background: #d0d0d0;
}

.sp-game-info-label,
.sp-game-info-value {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
}

/* Description Card */
.sp-game-description-card {
  margin: 10px 15px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  color: #333;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}

/* Enter Game Button */
.sp-game-action {
  padding: 16px;
}

.sp-game-enter-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sp-game-enter-btn:hover {
  background: #e09000;
}

.sp-game-enter-btn:active {
  transform: scale(0.98);
}

/* ============================================
   FAQ PAGE STYLES (16.png)
   ============================================ */
.sp-faq-container {
  padding: 16px;
}

.sp-faq-card {
  background: #fff;
  border-radius: 12px;
  margin-top: 16px;
}

.sp-faq-item {
  border-bottom: 1px solid #f0f0f0;
}

.sp-faq-item:last-child {
  border-bottom: none;
}

.sp-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

.sp-faq-arrow {
  width: 14px;
  height: 14px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sp-faq-item.active .sp-faq-arrow {
  transform: rotate(180deg);
}

.sp-faq-answer {
  display: none;
  padding: 12px 16px 16px;
  font-size: 13px;
  margin: 3px;
  background: #2221;
  color: #444;
  line-height: 1.6;
}

/* ============================================
   CONTACTS PAGE STYLES (17.png)
   ============================================ */
.sp-contacts-container {
  padding: 16px;
}

.sp-contacts-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  overflow: hidden;
  margin-top: 16px;
}

.sp-contacts-search {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.sp-contacts-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  outline: none;
}

.sp-contacts-search-input::placeholder {
  color: #999;
}

.sp-contacts-search-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  color: #00003c;
}

.sp-contacts-list {
  max-height: 400px;
  overflow-y: auto;
}

.sp-contact-group {
  margin-bottom: 0;
}

.sp-contact-letter {
  background: #00003c;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 16px;
}

.sp-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.sp-contact-item:last-child {
  border-bottom: none;
}

.sp-contact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-contact-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-contact-name {
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

/* Customer Service Full Button */
.sp-cs-btn-full {
  display: block;
  padding: 14px 24px;
  margin-top: 16px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/* ============================================
   CHAT LIST PAGE STYLES (18.png)
   ============================================ */
.sp-chat-list-container {
  padding: 16px;
}

.sp-chat-list-card {
    flex: 1;
    background: #f8f8f8;
    padding: 16px;
    overflow-y: auto;
    border-radius: 0 0 12px 12px;
    border: 1px solid #ddd;
    min-height: 300px;
}

.sp-chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 1px 4px #0001;
  margin-bottom: 10px;
}

.sp-chat-item:last-child {
  border-bottom: none;
}

.sp-chat-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.sp-chat-avatar-box {
  width: 100%;
  height: 100%;
  background: #00003c;
  border-radius: 4px;
}

.sp-chat-content {
  flex: 1;
  min-width: 0;
}

.sp-chat-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.sp-chat-preview {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-chat-time {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
}

/* Swipe to reveal actions (23.png) */
.sp-swipe-container {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 10px;
}

.sp-swipe-content {
  position: relative;
  z-index: 2;
  background: #fff;
  transition: transform 0.3s ease;
  margin-bottom: 0;
}

.sp-swipe-content.swiped {
  transform: translateX(-140px);
}

.sp-swipe-actions {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 140px;
  display: flex;
  z-index: 1;
  pointer-events: auto;
}

.sp-swipe-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 100%;
  border: none;
  background: #f5f5f5;
  color: #00003c;
  font-size: 11px;
  cursor: pointer;
  padding: 8px 4px;
  text-align: center;
  gap: 6px;
  background: #fff;
  border-left: 1px solid #e0e0e0;
}

.sp-swipe-btn i {
  font-size: 18px;
  color: #00003c;
}

.sp-swipe-btn span {
  font-size: 11px;
  color: #00003c;
  line-height: 1.2;
}

/* ============================================
   CUSTOMER SERVICE PAGE STYLES (19.png)
   ============================================ */
.sp-cs-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 140px);
}

.sp-cs-welcome-card {
  background: #eee5;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 15px;
  flex: 1;
}

.sp-cs-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.sp-cs-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-cs-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px;
}

.sp-cs-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 30px;
}

.sp-cs-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-cs-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.sp-cs-action-btn:last-child {
  border-bottom: none;
}

.sp-cs-action-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sp-cs-action-btn span {
  font-size: 14px;
  font-weight: 400;
}

/* Chat Input Bar */
.sp-cs-input-form{
  display: flex;
  align-items: center;
  gap: 5px;
}
.sp-cs-input-bar {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 6px 0;
  margin-top: auto;
}

.sp-cs-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 25px;
  padding: 10px 16px;
  gap: 10px;
}

.sp-cs-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  outline: none;
}

.sp-cs-input::placeholder {
  color: #999;
}

.sp-cs-mic-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.sp-cs-mic-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sp-cs-send-btn {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: unset;
  cursor: pointer;
}

.sp-cs-send-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Header Title Orange */
.sp-header-title-orange {
  color: #f5a623 !important;
}

/* ============================================
   CHAT CONVERSATION PAGE STYLES (20.png)
   ============================================ */
.sp-conversation-container {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 140px);
  padding: 16px;
}

.sp-conversation-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 12px 12px 0 0;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.sp-conversation-user-avatar {
  width: 46px;
  height: 46px;
  background-color: #ffffff;
  box-shadow: 0 1px 4px #0002;
  padding: 5px;
  border-radius: 10px;
}
.sp-conversation-user-avatar img{
  width: 100%;
  height: 100%;
}

.sp-conversation-avatar-box {
  width: 100%;
  height: 100%;
  background: #00003c;
  border-radius: 4px;
}

.sp-conversation-user-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.sp-conversation-messages {
  flex: 1;
  background: #f8f8f8;
  padding: 16px;
  overflow-y: auto;
  border-radius: 0 0 12px 12px;
  border: 1px solid #ddd;
  min-height: 300px;
  margin-bottom: 15px;
}

.sp-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.sp-message-sent {
  flex-direction: row-reverse;
}

.sp-message-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.sp-message-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-message-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.sp-message-received .sp-message-bubble {
  background: #fff;
  color: #222;
  border-top-left-radius: 4px;
  box-shadow: 0 1px 4px #0001;
}

.sp-message-sent .sp-message-bubble {
  background: #fff;
  color: #222;
  border-top-right-radius: 4px;
  box-shadow: 0 1px 4px #0001;
  order: 2;
}

/* Conversation Input Bar */
.sp-conversation-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  margin-top: 16px;
}

.sp-conversation-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 25px;
  border: 1px solid #ddd;
  padding: 10px 16px;
  gap: 10px;
}

.sp-conversation-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  outline: none;
}

.sp-conversation-input::placeholder {
  color: #999;
}

.sp-conversation-mic-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.sp-conversation-mic-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sp-conversation-send-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sp-conversation-send-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ============================================
   BLACKLIST PAGE STYLES (21.png)
   ============================================ */
.sp-blacklist-container {
  padding: 16px;
}

.sp-blacklist-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  overflow: hidden;
}

.sp-blacklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.sp-blacklist-item:last-child {
  border-bottom: none;
}

.sp-blacklist-avatar {
  width: 36px;
  height: 36px;
}

.sp-blacklist-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-blacklist-name {
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

/* ============================================
   CONFIRM MODAL STYLES (25.png)
   ============================================ */
.sp-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.sp-confirm-overlay.active {
  display: flex;
}

.sp-modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  min-width: 280px;
  max-width: 320px;
}

.sp-modal-icon {
  margin-bottom: 16px;
}

.sp-modal-icon i {
  font-size: 48px;
  color: #00003c;
}

.sp-modal-title {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  margin: 0 0 8px;
}

.sp-modal-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 24px;
}

.sp-modal-buttons {
  display: flex;
  gap: 12px;
}

.sp-modal-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  border: none;
}

.sp-modal-btn-cancel {
  background: #9ca3af;
  color: #fff;
}

.sp-modal-btn-confirm {
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  color: #fff;
}

/* ============================================
   TOAST STYLES (29.png)
   ============================================ */
.sp-toast-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 20px;
}

.sp-toast-overlay.active {
  display: flex;
}

.sp-toast-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 40px;
  text-align: center;
  min-width: 200px;
}

.sp-toast-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border: 3px solid #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-toast-icon i {
  font-size: 28px;
  color: #22c55e;
}

.sp-toast-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.sp-toast-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px;
}

.sp-toast-message {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  margin: 0;
}

/* ============================================
   DROPDOWN MENU STYLES (22.png, 28.png)
   ============================================ */
.sp-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border-radius: 8px;
  min-width: 120px;
  padding: 8px 0;
  z-index: 100;
  display: none;
}

.sp-dropdown-menu.active {
  display: block;
}

.sp-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
}

.sp-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   CUSTOMER SERVICE CHAT STYLES (24.png)
   ============================================ */
.sp-cs-chat-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 140px);
}

.sp-cs-chat-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sp-cs-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.sp-cs-chat-logo {
  width: 44px;
  height: 44px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 6px;
}

.sp-cs-chat-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-cs-chat-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.sp-cs-chat-messages {
    flex: 1;
    padding: 16px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    overflow-y: auto;
    min-height: 300px;
    margin-bottom: 15px;
}

.sp-cs-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.sp-cs-message-sent {
  flex-direction: row-reverse;
}

.sp-cs-message-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.sp-cs-message-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.sp-cs-message-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.sp-cs-message-received .sp-cs-message-bubble {
  background: #fff;
  color: #222;
  border-top-left-radius: 4px;
}

.sp-cs-message-sent .sp-cs-message-bubble {
  background: #fff;
  color: #222;
  border-top-right-radius: 4px;
}

/* ============================================
   NOTIFICATION PAGE STYLES (30.png)
   ============================================ */
.sp-notification-container {
  padding: 16px;
}

.sp-notification-list {
  margin-top: 16px;
}

.sp-notification-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  margin-bottom: 10px;
}

.sp-notification-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-notification-icon.success {
  background: transparent;
}

.sp-notification-icon.pending {
  background: transparent;
}

.sp-notification-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.sp-notification-title {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  flex: 1;
}

.sp-notification-date {
  font-size: 12px;
  color: #666;
}

.sp-notification-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #00003c;
  color: #fff;
}

.sp-notification-bank {
  display: flex;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  align-items: center;
  gap: 6px;
}

.sp-notification-bank-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
}

/* ============================================
   NEWS CARD STYLES (31.png)
   ============================================ */
.sp-news-list {
  margin-top: 16px;
}

.sp-news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 5px #0001;
}

.sp-news-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.sp-news-type-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-news-type-icon i {
  font-size: 20px;
  color: #f5a623;
}

.sp-news-type {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  flex: 1;
}

.sp-news-date {
  font-size: 12px;
  color: #999;
}

.sp-news-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.sp-news-logo {
  width: 48px;
  height: 48px;
  background: #6b5ce7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-news-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sp-news-title {
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

/* Floating Customer Service Button */
.sp-floating-cs-btn {
  position: fixed;
  bottom: 100px;
  right: 16px;
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
  text-decoration: none;
}

.sp-floating-cs-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ============================================
   CHAT SWIPE ACTIONS (23.png)
   ============================================ */
.sp-chat-item-wrapper {
  position: relative;
  overflow: hidden;
}

.sp-chat-actions {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.sp-chat-item-wrapper.swiped .sp-chat-actions {
  transform: translateX(0);
}

.sp-chat-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #333;
  text-decoration: none;
  font-size: 11px;
  background: #f5f5f5;
  border-left: 1px solid #e0e0e0;
}

.sp-chat-action-btn img {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
}

/* ============================================
   INVITE PAGE STYLES (34-37.png)
   ============================================ */
.sp-invite-container {
  padding: 16px;
}

.sp-invite-referral-card {
  background: #00003c;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.sp-referral-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.sp-referral-col {
  flex: 1;
  min-width: 0;
}

.sp-referral-col-small {
  flex: 0 0 120px;
}

.sp-referral-label {
  display: block;
  font-size: 12px;
  color: #fff;
  margin-bottom: 8px;
}

.sp-referral-input-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
}

.sp-referral-value {
  font-size: 12px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-referral-copy-icon {
  color: #fff;
  font-size: 14px;
  margin-left: 8px;
}

.sp-invite-stats {
  background: #fff;
  border-radius: 8px;
  padding: 4px 0;
}

.sp-invite-stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.sp-invite-stat-row:last-child {
  border-bottom: none;
}

.sp-stat-label {
  font-size: 13px;
  color: #333;
}

.sp-stat-value {
  font-size: 13px;
  color: #333;
}

.sp-commission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sp-commission-title {
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

.sp-commission-link {
  font-size: 12px;
  color: #666;
  text-decoration: none;
}

.sp-commission-bar {
  display: flex;
  align-items: center;
  background: #00003c;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.sp-commission-label {
  font-size: 13px;
  color: #fff;
}

.sp-commission-amount {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex: 1;
}

.sp-commission-status {
  font-size: 12px;
  color: #22c55e;
}

.sp-invite-tabs {
  display: flex;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 25px;
  padding: 4px;
  margin-bottom: 16px;
}

.sp-invite-tab {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  color: #666;
  text-decoration: none;
  border: none;
  background: unset;
  border-radius: 20px;
  transition: all 0.3s;
}

.sp-invite-tab.active {
  background: linear-gradient(180deg, #ac4ee9, #360599);
  color: #fff;
}

.sp-invite-content-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px 16px;
  border-radius: 12px;
}

.sp-performance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sp-performance-title,
.sp-team-title,
.sp-report-title,
.sp-intro-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.sp-performance-date {
  font-size: 12px;
  color: #666;
}

.sp-performance-table,
.sp-team-table {
  width: 100%;
  border-collapse: collapse;
}

.sp-performance-table th,
.sp-team-table th {
  font-size: 12px;
  font-weight: 400;
  color: #999;
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.sp-performance-table td,
.sp-team-table td {
  font-size: 12px;
  color: #333;
  padding: 10px 4px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.sp-team-search {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
}

.sp-team-search-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
  font-size: 14px;
  outline: none;
}

.sp-team-search-icon {
  position: absolute;
  right: 0;
  color: #333;
}

.sp-report-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sp-report-row:last-child {
  border-bottom: none;
}

.sp-report-label {
  font-size: 13px;
  color: #333;
}

.sp-report-value {
  font-size: 13px;
  color: #333;
}

.sp-invite-share-btn {
  display: block;
  padding: 14px 24px;
  margin-top: 16px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/* Commission Modal (39.png) */
.sp-modal-large {
  min-width: 320px;
  max-width: 90%;
  width: 100%;
  text-align: left;
  padding: 20px;
}

.sp-modal-header-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 0;
}

.sp-modal-header-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.sp-modal-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.sp-modal-body {
  max-height: 400px;
  overflow-y: auto;
}

.sp-commission-table {
  width: 100%;
  border-collapse: collapse;
}

.sp-commission-table th {
  font-size: 13px;
  font-weight: 400;
  color: #999;
  padding: 14px 8px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.sp-commission-table td {
  font-size: 13px;
  color: #333;
  padding: 14px 8px;
  border-bottom: 1px solid #f5f5f5;
}

.sp-status-icon-small {
  width: 20px;
  height: 20px;
}

.sp-status-check {
  color: #22c55e;
  font-size: 18px;
}

/* ============================================
   TRANSFER PAGE STYLES (40.png)
   ============================================ */
.sp-transfer-container {
  padding: 16px;
}

.sp-transfer-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 20px 16px;
  margin-bottom: 12px;
}

.sp-transfer-section {
  margin-bottom: 16px;
  width: 100%;
}

.sp-transfer-section:last-child {
  margin-bottom: 0;
}

.sp-transfer-label {
  display: block;
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-bottom: 12px;
}

.sp-transfer-select-wrapper {
  position: relative;
}

.sp-transfer-select {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
}

.sp-transfer-select.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.sp-transfer-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 10;
}

.sp-transfer-dropdown.active {
  display: block;
}

.sp-transfer-dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.sp-transfer-dropdown-item:last-child {
  border-bottom: none;
}

.sp-transfer-dropdown-item:hover {
  background: #f5f5f5;
}

.sp-transfer-dropdown-item .sp-transfer-user-icon {
  margin-right: 12px;
}

.sp-transfer-dropdown-item-name {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.sp-transfer-user-icon {
  width: 24px;
  height: 24px;
  background: #e8e8e8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 12px;
  margin-right: 12px;
}

.sp-transfer-select-text {
  flex: 1;
  font-size: 14px;
  color: #999;
}

.sp-transfer-arrow {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.sp-transfer-arrow-icon {
  font-size: 14px;
  color: #666;
}

.sp-transfer-input {
  width: 100%;
  max-width: 100%;
  border: none;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 14px;
  text-align: center;
  outline: none;
  color: #999;
  box-sizing: border-box;
}

.sp-transfer-input::placeholder {
  color: #999;
}

.sp-transfer-fee-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 0 20px;
}

.sp-transfer-fee-label {
  font-size: 13px;
  color: #666;
  padding-right: 12px;
  border-right: 1px solid #ccc;
}

.sp-transfer-fee-value {
  font-size: 13px;
  color: #999;
}

.sp-transfer-balance-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 16px;
  text-align: center;
  margin-bottom: 40px;
}

.sp-transfer-balance-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.sp-transfer-balance-value {
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.sp-transfer-submit-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.sp-transfer-notice-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #aa3030;
  text-decoration: none;
  margin-top: 16px;
}

/* ============================================
   TRANSFER MODAL STYLES (42.png, 43.png, 44.png)
   ============================================ */
.sp-transfer-modal-card {
 background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
}

.sp-transfer-modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 16px 20px;
}

.sp-transfer-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.sp-transfer-modal-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.sp-transfer-modal-body {
  padding: 0 20px 20px;
}

.sp-transfer-modal-row {
  display: flex;
  align-items: center;
  background: #00003c;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.sp-transfer-modal-label {
  padding: 14px 16px;
  font-size: 14px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.sp-transfer-modal-value {
  flex: 1;
  padding: 14px 16px;
  font-size: 14px;
  color: #fff;
  text-align: center;
}

.sp-transfer-modal-fee {
  text-align: center;
  font-size: 13px;
  color: #e74c3c;
  margin-top: 8px;
}

.sp-transfer-modal-fee-value {
  color: #e74c3c;
}

.sp-transfer-modal-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 14px 24px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

/* Password Input Boxes (43.png) */
.sp-password-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.sp-password-box {
  width: 45px;
  height: 50px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 20px;
  text-align: center;
  outline: none;
}

.sp-password-box:focus {
  border-color: #f5a623;
  background: #fff;
}

.sp-forgot-password-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  margin-bottom: 8px;
}

/* ============================================
   RECORD PAGES STYLES (41.png, 46.png)
   ============================================ */
.sp-record-container {
  padding: 12px 16px;
}

.sp-record-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  padding: 12px;
}

.sp-record-status {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-record-status.pending {
  background: transparent;
}

.sp-record-status.success {
  background: transparent;
}

.sp-record-status-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-record-info {
  flex: 1;
  min-width: 0;
}

.sp-record-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #00003c;
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.sp-record-user,
.sp-record-bank {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
}

.sp-record-user-icon,
.sp-record-bank-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #4a4a6a;
  padding: 2px;
}

.sp-record-user-icon-fa {
  width: 24px;
  height: 24px;
  background: #5a5a7a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #a0a0c0;
}

.sp-record-amount {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.sp-record-date {
  font-size: 13px;
  color: #999;
  text-align: right;
  padding-right: 4px;
}

/* ============================================
   WITHDRAW PAGE STYLES (45.png)
   ============================================ */
.sp-withdraw-container {
  padding: 16px;
}

.sp-withdraw-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 20px 16px;
  margin-bottom: 12px;
}

.sp-withdraw-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.sp-withdraw-select-wrapper {
  position: relative;
}

.sp-withdraw-select {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
}

.sp-withdraw-select.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.sp-withdraw-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 10;
}

.sp-withdraw-dropdown.active {
  display: block;
}

.sp-withdraw-dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #000;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.sp-withdraw-dropdown-item:last-child {
  border-bottom: none;
}

.sp-withdraw-dropdown-item:hover {
  background: #f5f5f5;
}

.sp-withdraw-select-icon {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-withdraw-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sp-withdraw-bank-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-withdraw-select-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.sp-withdraw-arrow {
  font-size: 14px;
  color: #999;
  transition: transform 0.3s ease;
}

.sp-withdraw-select.active .sp-withdraw-arrow {
  transform: rotate(180deg);
}

.sp-withdraw-account-value {
  font-size: 14px;
  color: #333;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f5;
}

.sp-withdraw-input {
  width: 100%;
  max-width: 100%;
  border: none;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 14px;
  text-align: center;
  outline: none;
  color: #333;
  box-sizing: border-box;
}

.sp-withdraw-input::placeholder {
  color: #999;
}

.sp-withdraw-submit-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  margin-top: 30px;
}

.sp-withdraw-notice-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #aa3030;
  text-decoration: none;
  margin-top: 16px;
}

/* ============================================
   DEPOSIT PAGE STYLES (50.png, 51.png)
   ============================================ */
.sp-deposit-container {
  padding: 16px;
}

.sp-deposit-tab-content {
  margin-top: 16px;
}

.sp-deposit-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 20px 16px;
  margin-bottom: 12px;
}

.sp-deposit-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.sp-deposit-select-wrapper {
  position: relative;
}

.sp-deposit-select {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

.sp-deposit-select.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.sp-deposit-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 10;
}

.sp-deposit-dropdown.active {
  display: block;
}

.sp-deposit-dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #000;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.sp-deposit-dropdown-item:last-child {
  border-bottom: none;
}

.sp-deposit-dropdown-item:hover {
  background: #f5f5f5;
}

.sp-deposit-select-icon {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-deposit-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sp-deposit-bank-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-deposit-select-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.sp-deposit-arrow {
  font-size: 14px;
  color: #999;
  transition: transform 0.3s ease;
}

.sp-deposit-select.active .sp-deposit-arrow {
  transform: rotate(180deg);
}

.sp-deposit-account-value {
  font-size: 14px;
  color: #333;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f5;
}

.sp-deposit-input {
  width: 100%;
  max-width: 100%;
  border: none;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 14px;
  text-align: center;
  outline: none;
  color: #333;
  box-sizing: border-box;
}

.sp-deposit-input::placeholder {
  color: #999;
}

.sp-deposit-submit-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  margin-top: 20px;
}

.sp-deposit-notice-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #aa3030;
  text-decoration: none;
  margin-top: 16px;
}

/* ============================================
   QR CODE PAGE STYLES (47.png)
   ============================================ */
.sp-qrcode-container {
  padding: 16px;
}

.sp-qrcode-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.sp-qrcode-username {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px;
}

.sp-qrcode-code-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #00003c;
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 20px;
}

.sp-qrcode-label {
  font-size: 12px;
  color: #f5a623;
}

.sp-qrcode-value {
  font-size: 14px;
  color: #fff;
}

.sp-qrcode-copy {
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.sp-qrcode-image {
  margin-bottom: 16px;
}

.sp-qrcode-img {
  max-width: 200px;
  height: auto;
}

.sp-qrcode-hint {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.sp-qrcode-scan-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  margin-top: 16px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
}

/* ============================================
   PASSWORD MODAL STYLES (43.png)
   ============================================ */
.sp-password-inputs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.sp-password-box {
  width: 44px;
  height: 54px;
  background: #e8e8f0;
  border: none;
  border-radius: 8px;
  text-align: center;
  font-size: 24px;
  outline: none;
}

.sp-password-box:focus {
  border: 2px solid #6b5ce7;
}

.sp-forgot-password {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #666;
  margin: 16px 0;
  text-decoration: none;
}

/* ============================================
   TRANSFER CONFIRMATION MODAL (42.png)
   ============================================ */
.sp-transfer-modal-info {
  margin-bottom: 16px;
}

.sp-transfer-modal-row {
  display: flex;
  background: #00003c;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.sp-transfer-modal-label {
  padding: 12px 16px;
  font-size: 13px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  min-width: 80px;
}

.sp-transfer-modal-value {
  padding: 12px 16px;
  font-size: 13px;
  color: #fff;
  flex: 1;
  text-align: center;
}

.sp-transfer-modal-fee {
  text-align: center;
  font-size: 13px;
  color: #f5a623;
  margin-bottom: 20px;
}

/* ============================================
   SETTINGS PAGE STYLES (57.png)
   ============================================ */

.sp-settings-menu,
.sp-settings-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.sp-settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.sp-settings-item:last-child {
  border-bottom: none;
}

.sp-settings-item i {
  color: #999;
}

/* ============================================
   FORM PAGE STYLES (58-60.png)
   ============================================ */
.sp-form-container {
  padding: 16px;
}

.sp-form-card {
  border-radius: 12px;
  padding: 20px 16px;
  margin-bottom: 16px;
}

.sp-form-label-center {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}

.sp-form-phone-display {
  font-size: 22px;
  font-weight: 400;
  color: #333;
  text-align: center;
  padding: 16px 0;
}

.sp-form-code-row {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.sp-form-code-label {
  padding: 12px 16px;
  font-size: 13px;
  color: #666;
  background: #f5f5f5;
  border-right: 1px solid #e0e0e0;
}

.sp-form-code-input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
}

.sp-form-send-btn {
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  padding: 10px 16px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  margin: 4px;
  border-radius: 6px;
}

.sp-form-submit-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.sp-form-help-text {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 16px;
}

.sp-form-help-text a {
  color: #f5a623;
  text-decoration: none;
}

.sp-form-row-inline {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 0 16px;
}

.sp-form-row-label {
  font-size: 13px;
  color: #666;
  padding: 14px 0;
  border-right: 1px solid #e0e0e0;
  padding-right: 16px;
  margin-right: 16px;
}

.sp-form-row-input {
  flex: 1;
  border: none;
  padding: 14px 0;
  font-size: 14px;
  outline: none;
  background: transparent;
}

.sp-form-row-border {
  border-top: 1px solid #f0f0f0;
  margin: 16px 0 0;
  padding-top: 0;
}

.sp-form-input {
  width: 100%;
  border: none;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  text-align: center;
  outline: none;
  margin-bottom: 16px;
}

.sp-form-rules {
  padding: 0 8px;
  margin-bottom: 24px;
}

.sp-form-rules p {
  font-size: 12px;
  color: #999;
  margin: 4px 0;
}

.sp-form-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  margin-top: 16px;
}

/* ============================================
   DESIGN 54-83 STYLES
   ============================================ */

/* Filter Bar (54.png, 55.png, 56.png) */
.sp-filter-bar {
  display: flex;
  gap: 12px;
  padding: 14px 12px;
}

.sp-filter-select {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    background: #00003c;
    border-radius: 8px;
    overflow: hidden;
}

.sp-filter-select select {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

.sp-filter-select select option {
  background: #00003c;
  color: #fff;
}

.sp-filter-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  object-fit: contain;
  pointer-events: none;
}

/* Record List (54.png - Transaction Record) */

.sp-record-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #e8e8e8;
}

.sp-record-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-record-icon.success {
  background: #e8f8e8;
}

.sp-record-icon.pending {
  background: #fff5e6;
}

.sp-record-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sp-record-content {
  flex: 1;
}

.sp-record-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.sp-record-type {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.sp-record-amount {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.sp-record-date {
  font-size: 12px;
  color: #999;
}

/* Betting Record Table (55.png) */
.sp-betting-container {
  padding-bottom: 16px;
}

.sp-betting-card {
  margin: 0 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.sp-betting-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  padding: 12px 16px;
  background: #f8f8f8;
  border-bottom: 1px solid #e8e8e8;
}

.sp-betting-table-header span {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.sp-betting-table-body {
  min-height: 200px;
}

.sp-betting-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.sp-betting-table-row span {
  font-size: 13px;
  color: #333;
}

.sp-betting-summary {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: #00003c;
  color: #fff;
  font-size: 13px;
}

/* Win/Loss Report (56.png) */
.sp-winloss-container {
  padding-bottom: 16px;
}

.sp-winloss-card {
  margin: 0 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-empty-state {
  text-align: center;
  padding: 40px;
}

.sp-empty-state span {
  font-size: 14px;
  color: #999;
}

/* Settings Card (57.png) */

.sp-settings-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.sp-settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background 0.2s;
}

.sp-settings-item:last-child {
  border-bottom: none;
}

.sp-settings-item:hover {
  background: #f8f8f8;
}

.sp-settings-item i {
  color: #ccc;
  font-size: 12px;
}

/* Modal Overlay */
.sp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.sp-modal-overlay.active {
  display: flex;
}

.sp-modal-card {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 340px;
  position: relative;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sp-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.sp-modal-title {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  padding: 24px 16px 16px;
  margin: 0;
}

.sp-modal-step {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin: 16px 0;
}

.sp-modal-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 20px;
  padding: 14px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

/* Password Boxes */
.sp-password-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
}

.sp-password-box {
  width: 45px;
  height: 50px;
  border: none;
  background: #e8e8e8;
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  outline: none;
}

.sp-password-box:focus {
  background: #d0d0d0;
}

/* Toast Overlay */
.sp-toast-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.sp-toast-overlay.active {
  display: flex;
}

.sp-toast-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 50px;
  text-align: center;
  animation: toastFadeIn 0.2s ease;
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sp-toast-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.sp-toast-icon i {
  font-size: 30px;
  color: #4caf50;
}

.sp-toast-message {
  font-size: 16px;
  color: #333;
  margin: 0;
}

/* Login/Auth Page Styles (75.png) */
.sp-auth-page {
  min-height: 100vh;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sp-auth-home-link {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
}

.sp-auth-home-link i {
  font-size: 16px;
}

.sp-auth-logo {
  margin-top: 40px;
  margin-bottom: 20px;
}

.sp-auth-logo img {
  width: 200px;
  height: auto;
}

.sp-auth-welcome {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
}

.sp-auth-form {
  width: 100%;
  max-width: 340px;
}

.sp-auth-input-row {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.sp-auth-input-label {
  font-size: 13px;
  color: #666;
  padding-right: 16px;
  white-space: nowrap;
}

.sp-auth-input-divider {
  width: 1px;
  height: 20px;
  background: #e0e0e0;
  margin-right: 16px;
}

.sp-auth-input-field {
  flex: 1;
  border: none;
  padding: 14px 0;
  font-size: 14px;
  outline: none;
  background: transparent;
}

.sp-auth-forgot-link {
  display: block;
  text-align: right;
  font-size: 13px;
  color: #f5a623;
  text-decoration: none;
  margin-bottom: 24px;
}

.sp-auth-submit-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 20px;
}

.sp-auth-switch-text {
  text-align: center;
  font-size: 13px;
  color: #666;
}

.sp-auth-switch-link {
  color: #f5a623;
  text-decoration: none;
}

/* Leaderboard Styles (69.png, 70.png) */
.sp-leaderboard-container {
  padding: 0;
}

.sp-leaderboard-banner {
  height: 120px;
  background: #00003c;
  margin-bottom: -40px;
}

.sp-leaderboard-tabs {
  display: flex;
  background: #fff;
  border-radius: 25px;
  margin: 0 16px 20px;
  padding: 4px;
  border: 1px solid #e8e8e8;
}

.sp-leaderboard-tab {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
  color: #666;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.2s;
}

.sp-leaderboard-tab.active {
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
  color: #fff;
}

.sp-leaderboard-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  padding: 0 16px 20px;
}

.sp-podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
}

.sp-podium-item.sp-podium-gold {
  order: 2;
  margin-bottom: 20px;
}

.sp-podium-item.sp-podium-silver {
  order: 1;
}

.sp-podium-item.sp-podium-bronze {
  order: 3;
}

.sp-podium-badge-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.sp-podium-gold .sp-podium-badge-num {
  background: #f5a623;
}

.sp-podium-silver .sp-podium-badge-num {
  background: #9ca3af;
}

.sp-podium-bronze .sp-podium-badge-num {
  background: #d97706;
}

.sp-podium-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.sp-podium-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.sp-podium-gold .sp-podium-avatar {
  width: 70px;
  height: 70px;
}

.sp-podium-avatar i {
  font-size: 24px;
  color: #fff;
}

.sp-podium-name {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}

.sp-podium-amount {
  font-size: 11px;
  font-weight: 600;
  color: #f5a623;
}

.sp-leaderboard-card {
  margin: 0 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.sp-leaderboard-header {
  display: grid;
  grid-template-columns: 50px 2fr 2fr 1.5fr;
  padding: 12px 16px;
  background: #f8f8f8;
  border-bottom: 1px solid #e8e8e8;
}

.sp-leaderboard-header span {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.sp-leaderboard-row {
  display: grid;
  grid-template-columns: 50px 2fr 2fr 1.5fr;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}

.sp-leaderboard-row:last-child {
  border-bottom: none;
}

.sp-rank-num {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.sp-rank-name {
  font-size: 13px;
  color: #333;
}

.sp-rank-amount {
  font-size: 13px;
  color: #333;
}

.sp-rank-game {
  font-size: 12px;
  color: #666;
}

/* About Page Styles (64.png, 71.png) */
.sp-about-container {
  padding: 16px;
}

.sp-about-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.sp-about-logo-section {
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.sp-about-logo-img {
  width: 180px;
  height: auto;
  margin-bottom: 12px;
}

.sp-about-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0 0 8px;
}

.sp-about-subtitle {
  font-size: 13px;
  color: #999;
  margin: 0;
}

.sp-about-menu {
  padding: 0;
}

.sp-about-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  transition: background 0.2s;
}

.sp-about-menu-item:last-child {
  border-bottom: none;
}

.sp-about-menu-item:hover {
  background: #f8f8f8;
}

.sp-about-menu-item i {
  color: #ccc;
  font-size: 12px;
}

/* FAQ Section (71.png) */
.sp-faq-section {
  padding: 20px;
}

.sp-faq-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px;
  text-align: center;
}

.sp-faq-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px;
}

.sp-faq-text {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 16px;
}

.sp-faq-heading {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin: 16px 0 8px;
}

.sp-faq-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.sp-faq-list li {
  font-size: 13px;
  color: #666;
  margin: 6px 0;
}

/* Form Verify Button */
.sp-form-verify-btn {
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  padding: 10px 16px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 6px;
}

/* Phone Display */
.sp-form-phone-display {
  text-align: center;
  font-size: 16px;
  color: #333;
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

/* Phone Row */
.sp-form-phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sp-country-code-select {
  position: relative;
  width: 80px;
}

.sp-country-code-select .sp-country-select {
  width: 100%;
  padding: 12px 28px 12px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  outline: none;
}

.sp-country-code-select .sp-form-arrow-small {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.sp-form-phone-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

/* Form Notice */
.sp-form-notice {
  padding: 16px;
  margin-top: 20px;
}

.sp-form-notice p {
  font-size: 11px;
  color: #999;
  line-height: 1.5;
  margin: 0 0 8px;
}

/* ============================================
   VERIFICATION PAGE (62.png) - 实名认证
   ============================================ */
.sp-verification-container {
  padding: 16px;
}

.sp-verification-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

/* Real Name Section - Top centered input */
.sp-verification-name-section {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.sp-verification-label {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #333;
  margin-bottom: 12px;
}

.sp-verification-name-input {
  width: 100%;
  padding: 12px 16px;
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  outline: none;
  color: #333;
}

.sp-verification-name-input::placeholder {
  color: #999;
}

/* Form Rows - Label | Divider | Input/Select | Arrow */
.sp-verification-row {
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: #f8f8f8;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.sp-verification-row:last-child {
  border-bottom: none;
}

.sp-verification-row-label {
  font-size: 13px;
  color: #333;
  padding: 14px 0;
  min-width: 60px;
}

.sp-verification-row-divider {
  width: 1px;
  height: 20px;
  background: #d0d0d0;
  margin: 0 16px;
}

.sp-verification-row-select {
  flex: 1;
  padding: 14px 0;
  padding-right: 30px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #999;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}

.sp-verification-row-select option {
  color: #333;
}

.sp-verification-row-select:valid {
  color: #333;
}

.sp-verification-row-input {
  flex: 1;
  padding: 14px 0;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: #333;
}

.sp-verification-row-input::placeholder {
  color: #999;
}

.sp-verification-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #666;
  pointer-events: none;
}

/* Submit Button */
.sp-verification-submit-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  margin-top: 24px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* Notice Text */
.sp-verification-notice {
  padding: 16px 0;
  margin-top: 16px;
}

.sp-verification-notice p {
  font-size: 11px;
  color: #999;
  line-height: 1.6;
  margin: 0 0 8px;
}

/* Birthday Modal Inputs */
.sp-birthday-inputs {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}

.sp-birthday-select {
  flex: 1;
  padding: 12px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  text-align: center;
}

/* ============================================
   AUTH PAGES (Login/Register) - 75.png, 76.png
   ============================================ */

/* Auth Background with background-1.png */
.sp-auth-bg {
  background-image: url('../resource/ui-elements/background-1.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: #f8f5fc;
  min-height: 100vh;
}

/* Auth Page Container */
.sp-auth-page {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Home Link (Login Page) */
.sp-auth-home-link {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  color: #333;
  font-size: 13px;
  text-decoration: none;
}

.sp-auth-home-link i {
  color: #666;
}

/* Auth Logo */
.sp-auth-logo {
  margin-top: 80px;
  margin-bottom: 30px;
}

.sp-auth-logo img {
  max-width: 220px;
  height: auto;
}

/* Auth Title */
.sp-auth-title {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

/* Auth Form */
.sp-auth-form {
  width: 100%;
  max-width: 360px;
}

/* Auth Card (Form Container) */
.sp-auth-card {
  background: #fafafa;  /* Very light gray, almost white - matches design */
  border: 1px solid #e0e0e0;  /* Subtle visible border */
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

/* Auth Row (Label | Divider | Input) */
.sp-auth-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 2px #0001;
}

.sp-auth-row:last-child {
  border-bottom: none;
}

.sp-auth-row-label {
  font-size: 14px;
  color: #333;
  min-width: 60px;
  flex-shrink: 0;
}

.sp-auth-row-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  background: transparent;
}

.sp-auth-row-input::placeholder {
  color: #999;
}

.sp-auth-row-value {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.sp-auth-row-select {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  background: transparent;
  cursor: pointer;
}

.sp-auth-verify-group {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
}

.sp-auth-verify-group .sp-verify-input {
  width: calc(100% - 90px);
  flex: none;
}

.sp-auth-help-text {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 16px;
}

.sp-auth-help-text a {
  color: #7c3aed;
  text-decoration: none;
}

/* Auth Hint Text */
.sp-auth-hint {
  font-size: 12px;
  color: #999;
  padding: 0 4px;
  margin-bottom: 12px;
}

/* Auth Forgot Link */
.sp-auth-forgot-link {
  display: block;
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: 16px 0 24px;
  text-decoration: none;
}

/* Auth Submit Button */
.sp-auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(180deg, #f9c20f, #fda027, #f0742c, #ec692e);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

/* Auth Switch Link */
.sp-auth-switch {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 16px;
}

.sp-auth-switch a {
  color: #333;
  text-decoration: none;
}

/* Register Container */
.sp-register-container {
  padding: 16px;
}

/* Auth Terms Checkbox */
.sp-auth-terms {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
  justify-content: center;
}

.sp-auth-terms input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f0742c;
}

.sp-auth-terms label {
  font-size: 13px;
  color: #666;
}

.sp-auth-terms a {
  color: #f0742c;
  text-decoration: none;
}

/* ============================================
   RANKING PAGE - 69.png
   ============================================ */

.sp-ranking-container {
  padding: 0;
}

/* Dark Navy Banner */
.sp-ranking-banner {
  background: #00003c;
  height: 140px;
  margin: -16px -16px 0;
  border-radius: 0 0 20px 20px;
}

/* Tab Switch */
.sp-ranking-tabs {
  display: flex;
  background: #fff;
  border-radius: 25px;
  padding: 4px;
  margin: -20px 16px 16px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  border: 1px solid #e8e8e8;
}

.sp-ranking-tab {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  color: #999;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.2s;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.sp-ranking-tab.active {
  background: linear-gradient(180deg, #8b5cf6, #7c3aed, #6d28d9);
  color: #fff;
  font-weight: 500;
}

/* Top 3 Podium */
.sp-ranking-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  padding: 0 16px;
  padding-top: 30px;
  margin-bottom: 20px;
}

.sp-ranking-winner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sp-winner-badge {
  width: 80px;
  height: 50px;
  object-fit: contain;
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.sp-winner-card {
  padding: 30px 4px 4px;
  border-radius: 12px;
  text-align: center;
  min-width: 90px;
  background: url('../resource/ui-elements/item-orange-1.png') no-repeat center center;
  background-size: cover;
}

.sp-winner-amount {
  color: #fff;
}

.sp-winner-gold {
  margin-bottom: 10px;
}

.sp-winner-gold .sp-winner-badge {
  width: 80px;
  height: 50px;
  top: -25px;
}

.sp-winner-avatar {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  border: 2px solid rgba(255,255,255,0.3);
}

.sp-winner-avatar-img {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.sp-winner-name {
  display: block;
  font-size: 11px;
  color: #fff6d5;
  margin-bottom: 4px;
}

.sp-winner-amount {
  display: block;
  color: #fff6d5;
  font-size: 12px;
}

/* Rankings Table */
.sp-ranking-table {
  background: #fff;
  border-radius: 12px;
  margin: 0 16px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.sp-ranking-table-header {
  display: grid;
  grid-template-columns: 40px 1fr 100px 70px;
  padding: 12px 16px;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.sp-ranking-table-row {
  display: grid;
  grid-template-columns: 40px 1fr 100px 70px;
  padding: 14px 16px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}

.sp-ranking-table-row:last-child {
  border-bottom: none;
}

.sp-rank-num {
  font-weight: 500;
  color: #666;
}

.sp-rank-user {
  color: #333;
}

.sp-rank-amount {
  color: #333;
  font-weight: 500;
}

.sp-rank-game {
  font-size: 11px;
  color: #666;
  text-align: right;
}


/****NEW DESIGN FOR sp-hot-games-section SECTION****/
.sp-hot-games-section {
    margin-left: 8px;
    margin-right: 8px;
    padding: 10px 0 10px 0;
}

.hotGamesSwiper{
    padding-left: 25px;
    margin-left: 10px;
    padding-bottom: 20px;
    width: 90%;
    margin-right: 50px;
}
.sp-hot-game-item {
    width: 80px;
    height: 110px;
    box-shadow: unset;
    border-radius: 8px;
}
.sp-hot-game-item img {
    display: block;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}
.sp-hot-game-item::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -5px;
    height: 60px;
    background: rgb(0 0 0 / 52%);
    filter: blur(3px);
    z-index: 1;
    border-radius: 10px;
}
.swiper-wrapper{margin-bottom: 10px;}

.sp-hot-label-icon{
    position: absolute;
    left: 48px;
    top: -8px;
    width: 23px;
    height: auto;
}
.sp-hot-label span{margin-right: 25px;}


/****NEW DESIGN FOR sp-category-tabs-section SECTION****/
.sp-category-tabs-section {
    background: none;
    padding: 10px 18px;
}
.sp-category-tabs {
    background: none;
    padding-top: 12px;
    overflow-x: unset;
}
.sp-category-tab {
    display: inline-grid;
    color: #9f8cc5;
    width: 100%;
    font-size: 8px;
    padding: 3px 0px;
}
.sp-category-tab.active .sp-tab-icon {
    filter: unset; 
}
  .sp-tab-icon {
      filter: unset; 
      width: 40px;
      height: 40px;
      margin: auto;
      filter: brightness(120%);
  }
  .sp-category-tab.active {
      background: none;
      color: #39079B;
      box-shadow: unset;
  }
  .sp-category-tab span{
      text-align: center;
      text-transform: uppercase;
  }

  /* SMALL */
  .sp-category-tab.size-small {
    transform: scale(0.85);
    opacity: 0.5;
    font-size: 12px;
  }

  /* MEDIUM */
  .sp-category-tab.size-medium {
    transform: scale(1);
    opacity: 0.5;
    font-size: 12px;
    margin-top: 10px;
  }

  /* BIG (center) */
  .sp-category-tab.size-big {
    transform: scale(1.8);
    opacity: 1;
    font-weight: 700;
    margin: 0px 30px;
  }




