*{
  font-family: 'Prompt', sans-serif;
}
body, html {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Prompt', sans-ser if;
  background: #0a0a0f;
  overflow-x: hidden;
}
.login-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  background: url('img/bg.png') center center/cover no-repeat, linear-gradient(120deg, #1a1a1a 60%, #ff003c 100%);
  opacity: 0.85;
  animation: bgZoom 16s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes bgZoom {
  0% { transform: scale(1) }
  100% { transform: scale(1.08) }
}
.login-main {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  position: relative;
}
.fire-spark-container {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 2;
}
.fire-spark {
  position: absolute;
  bottom: -40px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, #fffbe6 0%, #ffb300 40%, #ff003c 100%);
  box-shadow: 0 0 18px 6px #ff8000cc, 0 0 32px 8px #ff003c99;
  filter: blur(0.5px) brightness(1.2);
  opacity: 0.7;
  animation: fireSparkUp linear infinite;
}
@keyframes fireSparkUp {
  0% {
    bottom: -40px;
    transform: translateX(0) scale(1) rotate(0deg);
    opacity: 0.7;
  }
  60% {
    opacity: 1;
  }
  100% {
    bottom: 100vh;
    transform: translateX(-30px) scale(1.3) rotate(180deg);
    opacity: 0;
  }
}
.login-card-new {
  background: rgba(30, 20, 30, 0.92);
  border: 2.5px solid #ff003c;
  border-radius: 2.2rem;
  box-shadow: 0 0 40px 8px #ff003c55, 0 0 20px 4px #111 inset, 0 0 0 4px #ff800033;
  padding: 2.7rem 2.5rem 2.2rem 2.5rem;
  min-width: 340px;
  max-width: 370px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: box-shadow 0.3s, border 0.3s;
}
.logo-circle-container {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 90px;
  height: 90px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-18deg);
  box-shadow: 0 0 32px 8px #ff003c55;
  animation: logoCircleGlow 2.5s infinite alternate;
}
.logo-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #ff003c;
  box-shadow: 0 0 32px #ff003c, 0 0 64px #ff8000;
  background: #fff;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 16px #ff003c);
  animation: logoCircleSpin 8s linear infinite;
}
@keyframes logoCircleGlow {
  0% { box-shadow: 0 0 16px 2px #ff003c55; }
  100% { box-shadow: 0 0 48px 12px #ff8000aa; }
}
@keyframes logoCircleSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.login-title-new {
  color: #fff;
  text-shadow: 0 0 16px #ff003c, 0 0 2px #fff;
  font-weight: 800;
  letter-spacing: 2.5px;
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  z-index: 2;
  margin-top: 2.5rem;
  font-family: 'Prompt', sans-serif;
}
.login-input-group-new {
  width: 100%;
  margin-bottom: 1.5rem;
  position: relative;
}
.login-input-new {
  width: 100%;
  padding: 1.1rem 1.2rem;
  background: rgba(40,30,40,0.95);
  color: #fff;
  border: 1.9px solid #ff003c;
  border-radius: 1.2rem;
  font-size: 1.15rem;
  font-weight: 500;
  box-shadow: 0 0 14px #ff003c33 inset;
  outline: none;
  transition: box-shadow 0.3s, border 0.3s, background 0.3s;
  font-family: 'Prompt', sans-serif;
}
.login-input-new:focus {
  border: 2.2px solid #ff8000;
  box-shadow: 0 0 28px #ff8000bb;
  background: #191919;
}
.login-btn-new {
  width: 100%;
  background: linear-gradient(90deg, #ff003c 0%, #ff8000 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 1.2rem;
  box-shadow: 0 0 28px #ff003c99, 0 0 10px #fff2 inset;
  text-shadow: 0 0 10px #ff003c99;
  padding: 1.1rem 0;
  margin-top: 0.7rem;
  margin-bottom: 0.2rem;
  letter-spacing: 1.7px;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: 'Prompt', sans-serif;
}
.login-btn-new:before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, #fff2 0%, #ff003c44 100%);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.login-btn-new:hover, .login-btn-new:focus {
  background: linear-gradient(90deg, #ff8000 0%, #ff003c 100%);
  box-shadow: 0 0 56px #ff003cdd, 0 0 20px #fff4 inset;
  transform: scale(1.06) rotate(-1deg);
}
/* ลบ shape ใต้โลโก้ (ถ้ามี) */
.logo-circle-container::before, .logo-circle-container::after {
  display: none !important;
  content: none !important;
}
/* ลบ sakura-petal ออกจาก CSS */
.sakura-petal-container, .sakura-petal, .sakura-petal::before, .sakura-petal::after {
  display: none !important;
}
/* GLASSMORPHISM LOGIN CARD */
.login-card-glass {
  background: rgba(30, 20, 30, 0.45);
  border: 2.5px solid #ff003c55;
  border-radius: 2.2rem;
  box-shadow: 0 0 40px 8px #ff003c33, 0 0 20px 4px #1118 inset, 0 0 0 4px #ff800022;
  padding: 2.7rem 2.5rem 2.2rem 2.5rem;
  min-width: 340px;
  max-width: 370px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: box-shadow 0.3s, border 0.3s;
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  z-index: 10;
}
.logo-animate-container {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoBounce 2.2s infinite alternate;
}
.logo-animate {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #ff003c;
  box-shadow: 0 0 32px #ff003c, 0 0 64px #ff8000, 0 0 0 8px #fff2 inset;
  background: #fff;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 16px #ff003c);
  animation: logoSpin 8s linear infinite, logoGlow 2.5s infinite alternate;
}
@keyframes logoSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes logoGlow {
  0% { box-shadow: 0 0 16px 2px #ff003c55, 0 0 0 8px #fff2 inset; }
  100% { box-shadow: 0 0 48px 12px #ff8000aa, 0 0 0 16px #ff003c22 inset; }
}
@keyframes logoBounce {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-12px); }
}
.logo-particle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, #fffbe6 0%, #ffb300 40%, #ff003c 100%);
  box-shadow: 0 0 18px 6px #ff8000cc, 0 0 32px 8px #ff003c99;
  opacity: 0.7;
  pointer-events: none;
  animation: logoParticleUp 1.2s linear forwards;
}
@keyframes logoParticleUp {
  0% { opacity: 0.7; transform: scale(1) translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.3) translateY(-40px); }
}
/* Floating Label Input */
.login-input-group-glass {
  width: 100%;
  margin-bottom: 1.7rem;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(40,30,40,0.55);
  border-radius: 1.2rem;
  box-shadow: 0 0 14px #ff003c22 inset;
  border: 1.5px solid #ff003c55;
  transition: box-shadow 0.3s, border 0.3s, background 0.3s;
}
.login-input-group-glass.focused {
  border: 2.2px solid #ff8000;
  box-shadow: 0 0 28px #ff8000bb;
  background: #191919cc;
}
.input-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ff8000;
  font-size: 1.2rem;
  z-index: 2;
  pointer-events: none;
}
.login-input-glass {
  width: 100%;
  padding: 1.1rem 1.2rem 1.1rem 2.8rem;
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 1.2rem;
  font-size: 1.15rem;
  font-weight: 500;
  outline: none;
  font-family: 'Prompt', sans-serif;
  z-index: 1;
}
.floating-label {
  position: absolute;
  left: 2.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ffb300;
  font-size: 1.1rem;
  pointer-events: none;
  transition: 0.2s cubic-bezier(.4,0,.2,1);
  opacity: 0.85;
}
.login-input-group-glass.focused .floating-label,
.login-input-glass:focus + .floating-label,
.login-input-glass:not(:placeholder-shown) + .floating-label {
  top: 0.2rem;
  left: 2.5rem;
  font-size: 0.92rem;
  color: #ff003c;
  opacity: 1;
  background: rgba(30,20,30,0.85);
  padding: 0 0.3em;
  border-radius: 0.5em;
}
/* ปุ่ม login overlap */
.login-btn-glass {
  display: block;
  margin: 0 auto;
  width: 60%;
  min-width: 120px;
  max-width: 220px;
  background: linear-gradient(90deg, #ff003c, #ff8000, #ff003c);
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 1.2rem;
  border: 1.5px solid #ff003c;
  box-shadow: 0 0 12px 2px #ff800055 inset, 0 0 0 #0000;
  text-shadow: 0 1px 8px #ff8000cc;
  padding: 0.7rem 0;
  margin-top: -0.5rem;
  margin-bottom: 0.2rem;
  letter-spacing: 1.2px;
  transition: background-position 0.4s, color 0.2s, border 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: 'Prompt', sans-serif;
  z-index: 5;
}
.login-btn-glass:before {
  content: '';
  position: absolute;
  top: 0; left: -60%; right: -60%; bottom: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.18) 100%);
  filter: blur(2px);
  z-index: 1;
  pointer-events: none;
  width: 220%;
  height: 100%;
  animation: btnFireMove 2.2s linear infinite;
}
@keyframes btnFireMove {
  0% { left: -60%; }
  100% { left: 100%; }
}
.login-btn-glass span {
  position: relative;
  z-index: 2;
}
.login-btn-glass:hover, .login-btn-glass:focus {
  background-position: 100% 0%;
  color: #fff;
  border-color: #ff8000;
  text-decoration: none;
  box-shadow: 0 0 24px 4px #ff800088 inset, 0 0 0 #0000;
}
@media (max-width: 600px) {
  .login-card-new {
    min-width: 90vw;
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .login-title-new {
    font-size: 1.2rem;
  }
  .logo-circle-container, .logo-circle {
    width: 60px;
    height: 60px;
    top: -30px;
    left: -30px;
  }
  .login-card-glass {
    min-width: 90vw;
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .logo-animate-container, .logo-animate {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
  }
}
/* SweetAlert2 custom effect modern UI - สดใส gradient ส้มแดง */
.swal2-custom-popup {
  background: #fff !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 0 48px #ff512f, 0 0 64px #f09819;
  font-family: 'Prompt', sans-serif;
  padding: 2.2em 2.2em 1.7em 2.2em !important;
  background: linear-gradient(135deg, #ff512f 0%, #f09819 100%) !important;
}
.swal2-custom-title, .swal2-custom-content {
  color: #fff !important;
  text-shadow: 0 2px 12px #ff512f99, 0 1px 8px #0008;
  font-weight: bold;
}
.swal2-custom-icon {
  filter: drop-shadow(0 0 24px #fffbe6) drop-shadow(0 0 32px #ff512f);
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1);}
  50% { transform: scale(1.12);}
  100% { transform: scale(1);}
}
.swal2-animate-error-shake {
  animation: shake 0.7s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0);}
  20%, 60% { transform: translateX(-10px);}
  40%, 80% { transform: translateX(10px);}
}
.swal2-popup.swal2-fire-success, .swal2-popup.swal2-fire-error {
  box-shadow: 0 0 32px #ff8000, 0 0 64px #ff003c;
  border-radius: 1.5rem;
  font-family: 'Prompt', sans-serif;
}
.swal2-popup.swal2-fire-error {
  background: linear-gradient(120deg, #2d0a13 0%, #ff003c 100%) !important;
}
.swal2-popup.swal2-fire-success {
  background: linear-gradient(120deg, #1a2a1a 0%, #ff8000 100%) !important;
}
.swal2-title, .swal2-html-container, .swal2-content {
  color: #fff !important;
  text-shadow: 0 1px 8px #0008;
}
.swal2-confirm {
  background: #ff003c !important;
  color: #fff !important;
  border-radius: 0.8em !important;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 0 8px #ff003c88;
  border: 2px solid #fff2 !important;
  padding: 0.7em 2.2em !important;
  margin-top: 1.2em !important;
}

/* --- THEME: DARK-RED for member.php --- */
body, .bg-dark {
  background: #18181b !important;
  color: #fff !important;
}

.card, .card-header, .card-footer {
  background: #232326 !important;
  border-radius: 18px !important;
  border: 1.5px solid #2d2d31 !important;
  box-shadow: 0 4px 24px 0 rgba(255,0,0,0.08);
}

.card-header, .navbar, .bg-dark {
  background: linear-gradient(90deg, #1a1a1d 60%, #b30000 100%) !important;
  color: #fff !important;
}

.navbar-dark .navbar-nav .nav-link, .navbar-dark .navbar-brand {
  color: #fff !important;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link.active, .navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .navbar-nav .nav-link:hover {
  color: #ff2e2e !important;
  text-shadow: 0 0 8px #b30000;
}

.btn-primary, .btn-topup, .btn-outline-danger {
  background: linear-gradient(90deg, #b30000 60%, #ff2e2e 100%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(255,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover, .btn-topup:hover, .btn-outline-danger:hover {
  background: #ff2e2e !important;
  color: #fff !important;
  transform: scale(1.04);
  box-shadow: 0 4px 16px 0 rgba(255,0,0,0.18);
}

.badge-light {
  background: #b30000 !important;
  color: #fff !important;
  font-size: 1rem;
  padding: 0.4em 0.8em;
  border-radius: 12px;
}

.table {
  background: #232326 !important;
  color: #fff !important;
}
.table th, .table td {
  border-color: #2d2d31 !important;
}

/* Animations */
.animated-card {
  animation: fadeInUp 0.8s cubic-bezier(.39,.575,.565,1.000) both;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animated-btn {
  animation: bounceIn 0.7s;
}
@keyframes bounceIn {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

/* Emoji style */
.emoji-title {
  font-size: 2rem;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .card, .card-header, .card-footer {
    border-radius: 10px !important;
  }
  .navbar {
    font-size: 1rem;
  }
  .emoji-title {
    font-size: 1.5rem;
  }
}

/* Custom scrollbar for dark theme */
body::-webkit-scrollbar {
  width: 10px;
  background: #232326;
}
body::-webkit-scrollbar-thumb {
  background: #b30000;
  border-radius: 8px;
}

/* Overlay loading spinner */
.overlay-loading {
  background: rgba(24,24,27,0.85) !important;
}
.text-loader {
  color: #ff2e2e !important;
}

/* Gift box highlight */
#gift-box, #gift-box2 {
  background: linear-gradient(90deg, #b30000 60%, #ff2e2e 100%) !important;
  color: #fff !important;
  border-radius: 16px;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px 0 rgba(255,0,0,0.10);
}

/* Table highlight for history */
#history tr.online td {
  background: #1a1a1d !important;
  color: #00ff99 !important;
}
#history tr.offline td {
  background: #2d2d31 !important;
  color: #ff2e2e !important;
}

/* Misc */
.cursor-pointer { cursor: pointer; }
.custom-cursor-default-hover:hover { cursor: pointer; color: #ff2e2e; }

/* --- Modern Profile Card Section --- */
.profile-section {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  margin-bottom: 2.5rem;
  margin-top: 1.5rem;
}
.profile-card {
  flex: 1 1 0;
  background: #232326;
  border-radius: 22px;
  border: 2px solid #b30000;
  box-shadow: 0 4px 24px 0 rgba(255,0,0,0.10);
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 320px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.profile-card:hover {
  box-shadow: 0 8px 32px 0 rgba(255,0,0,0.18);
  transform: translateY(-4px) scale(1.02);
}
.profile-card .profile-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.profile-card .profile-info {
  width: 100%;
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.profile-card .profile-label {
  font-weight: 600;
  color: #fff;
  min-width: 80px;
}
.profile-card .profile-value {
  font-weight: bold;
  color: #fff;
  background: #b30000;
  border-radius: 12px;
  padding: 0.2em 0.9em;
  font-size: 1.08rem;
  letter-spacing: 0.5px;
  margin-left: 0.2em;
}
.profile-card .profile-icon {
  font-size: 1.2em;
  margin-right: 0.3em;
}
.profile-card .profile-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 5px solid #b30000;
  background: #18181b;
  box-shadow: 0 0 0 8px rgba(255,0,0,0.08);
  object-fit: cover;
  margin-bottom: 1.2rem;
  animation: pulseLogo 2.5s infinite;
}
@keyframes pulseLogo {
  0% { box-shadow: 0 0 0 8px rgba(255,0,0,0.08); }
  50% { box-shadow: 0 0 0 18px rgba(255,0,0,0.18); }
  100% { box-shadow: 0 0 0 8px rgba(255,0,0,0.08); }
}
.profile-card .profile-server {
  font-size: 1.1rem;
  color: #ff2e2e;
  font-weight: 700;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}
@media (max-width: 991px) {
  .profile-section {
    flex-direction: column;
    gap: 1.5rem;
  }
  .profile-card {
    min-height: 0;
    padding: 1.5rem 1rem 1rem 1rem;
  }
}

/* --- Unique Floating Profile Layout --- */
.profile-float-container {
  position: relative;
  min-height: 340px;
  margin-bottom: 3rem;
  margin-top: 2.5rem;
}
.profile-float-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  z-index: 2;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 6px solid #b30000;
  background: #18181b;
  box-shadow: 0 0 0 12px rgba(255,0,0,0.10);
  object-fit: cover;
  animation: pulseLogo 2.5s infinite;
}
.profile-float-server {
  position: absolute;
  left: 50%;
  top: calc(50% + 110px);
  transform: translateX(-50%);
  color: #ff2e2e;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 2;
  text-shadow: 0 2px 8px #18181b;
}
.profile-float-user {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 320px;
  background: #232326;
  border-radius: 22px 22px 22px 40px;
  border: 2px solid #b30000;
  box-shadow: 0 4px 24px 0 rgba(255,0,0,0.10);
  padding: 2.2rem 1.5rem 1.5rem 2.2rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 260px;
  animation: fadeInLeft 1s;
}
.profile-float-point {
  position: absolute;
  right: 0;
  top: 0;
  width: 320px;
  background: #232326;
  border-radius: 40px 22px 22px 22px;
  border: 2px solid #b30000;
  box-shadow: 0 4px 24px 0 rgba(255,0,0,0.10);
  padding: 2.2rem 2.2rem 1.5rem 1.5rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  min-height: 260px;
  animation: fadeInRight 1s;
}
.profile-float-user .profile-title, .profile-float-point .profile-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.profile-float-user .profile-info, .profile-float-point .profile-info {
  width: 100%;
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.profile-float-user .profile-label, .profile-float-point .profile-label {
  font-weight: 600;
  color: #fff;
  min-width: 80px;
}
.profile-float-user .profile-value, .profile-float-point .profile-value {
  font-weight: bold;
  color: #fff;
  background: #b30000;
  border-radius: 12px;
  padding: 0.2em 0.9em;
  font-size: 1.08rem;
  letter-spacing: 0.5px;
  margin-left: 0.2em;
}
.profile-float-user .profile-icon, .profile-float-point .profile-icon {
  font-size: 1.2em;
  margin-right: 0.3em;
}
@media (max-width: 991px) {
  .profile-float-container {
    min-height: 520px;
  }
  .profile-float-logo {
    width: 120px;
    height: 120px;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
  }
  .profile-float-server {
    top: calc(38% + 70px);
    font-size: 1rem;
  }
  .profile-float-user, .profile-float-point {
    width: 90vw;
    min-width: 0;
    max-width: 98vw;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: 22px;
    padding: 1.2rem 1rem 1rem 1.2rem;
    position: static;
    margin-bottom: 1.2rem;
    animation: none;
  }
  .profile-float-point {
    align-items: flex-start;
  }
  .profile-float-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    margin-bottom: 2rem;
  }
}

/* --- Sidebar Profile Layout --- */
.profile-main-layout {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  min-height: 500px;
}
.profile-sidebar {
  flex: 0 0 340px;
  max-width: 340px;
  min-width: 260px;
  background: #232326;
  border-radius: 28px;
  border: 2.5px solid #b30000;
  box-shadow: 0 6px 32px 0 rgba(255,0,0,0.13);
  padding: 2.5rem 1.5rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: fadeInLeft 0.8s;
  margin-left: 32px;
}
@media (max-width: 991px) {
  .profile-sidebar {
    margin-left: 0;
  }
}
.profile-sidebar .profile-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid #b30000;
  background: #18181b;
  box-shadow: 0 0 0 8px rgba(255,0,0,0.08);
  object-fit: cover;
  margin-bottom: 1.2rem;
  animation: pulseLogo 2.5s infinite;
}
.profile-sidebar .profile-server {
  font-size: 1.1rem;
  color: #ff2e2e;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}
.profile-sidebar .profile-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.profile-sidebar .profile-info {
  width: 100%;
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.profile-sidebar .profile-label {
  font-weight: 600;
  color: #fff;
  min-width: 80px;
}
.profile-sidebar .profile-value {
  font-weight: bold;
  color: #fff;
  background: #b30000;
  border-radius: 12px;
  padding: 0.2em 0.9em;
  font-size: 1.08rem;
  letter-spacing: 0.5px;
  margin-left: 0.2em;
}
.profile-sidebar .profile-icon {
  font-size: 1.2em;
  margin-right: 0.3em;
}
.profile-sidebar .profile-divider {
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #b30000 0%, #232326 100%);
  border-radius: 2px;
  margin: 1.5rem 0 1.2rem 0;
  opacity: 0.7;
}
.main-content-area {
  flex: 1 1 0;
  background: #232326;
  border-radius: 24px;
  box-shadow: 0 4px 24px 0 rgba(255,0,0,0.08);
  padding: 2.5rem 2.2rem 2.2rem 2.2rem;
  min-width: 0;
  min-height: 500px;
  animation: fadeInRight 0.8s;
  position: relative;
  z-index: 1;
}
@media (max-width: 991px) {
  .profile-main-layout {
    flex-direction: column;
    gap: 1.5rem;
  }
  .profile-sidebar {
    max-width: 98vw;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 1.5rem 0.7rem 1.5rem 0.7rem;
  }
  .main-content-area {
    padding: 1.5rem 0.7rem 1.5rem 0.7rem;
    min-height: 0;
  }
}

/* Hide scrollbar for all browsers */
body, .main-content-area, .profile-sidebar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
body::-webkit-scrollbar, .main-content-area::-webkit-scrollbar, .profile-sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* --- Animated White-to-Red Running Border for Profile Sidebar --- */
.profile-sidebar::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 32px;
  z-index: -1;
  background: none;
  pointer-events: none;
  box-shadow: none;
  border: 4px solid transparent;
  background: linear-gradient(120deg, #fff, #ff2e2e, #b30000, #ff2e2e, #fff) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background-size: 300% 300%;
  animation: borderRun 2.5s linear infinite;
}
@keyframes borderRun {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Pay Section Button Style (Override) --- */
#pay-section .card-body.bg-light {
  background: #111 !important;
  border-radius: 0 0 18px 18px;
}
#pay-section .row.justify-content-center {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
  margin-left: -5px;
}
#pay-section .btn-amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 18px;
  border: 2.5px solid #b30000;
  color: #fff;
  background: #18181b;
  box-shadow: 0 2px 12px 0 rgba(179,0,0,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s, border 0.18s;
  padding: 1.1em 0.5em 0.7em 0.5em;
  min-width: 150px;
  min-height: 80px;
  margin: 0;
  outline: none;
  position: relative;
}
#pay-section .btn-amount:hover, #pay-section .btn-amount:focus, #pay-section .btn-amount:active {
  background: linear-gradient(90deg, #b30000 80%, #ff2e2e 100%);
  color: #fff;
  border-color: #ff2e2e;
  box-shadow: 0 4px 24px 0 #b30000, 0 0 0 3px #ff2e2e44;
  transform: scale(1.07) translateY(-2px);
}
#pay-section .btn-amount .amount-emoji {
  font-size: 2.1em;
  margin-bottom: 0.2em;
  filter: drop-shadow(0 0 6px #b30000);
}
#pay-section .btn-amount:active {
  background: #b30000;
  color: #fff;
  border-color: #fff;
}
@media (max-width: 600px) {
  #pay-section .row.justify-content-center {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  #pay-section .btn-amount {
    min-width: 120px;
    font-size: 1.05rem;
    padding: 0.7em 0.2em 0.5em 0.2em;
  }
}

/* Animation for section show/hide */
.animated-section {
  animation: fadeInUp 0.7s cubic-bezier(.39,.575,.565,1.000) both;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}