* {
  box-sizing: border-box;
}

body.login-page {
  margin: 0;
  padding: 0;
  background: #0b0415;
  font-family: 'Prompt', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  color: #f6edff;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 140% at 10% 10%, #2a1150 0%, transparent 55%),
    radial-gradient(90% 110% at 90% 20%, #3b1363 0%, transparent 50%),
    radial-gradient(120% 100% at 50% 90%, #120a2c 0%, #07040f 55%, #05030a 100%);
  overflow: hidden;
  animation: bgShift 18s ease-in-out infinite alternate;
}

.login-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.7) 0%, transparent 60%),
    radial-gradient(2px 2px at 80% 40%, rgba(255,255,255,0.5) 0%, transparent 60%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.45) 0%, transparent 60%),
    radial-gradient(1px 1px at 35% 80%, rgba(255,255,255,0.35) 0%, transparent 60%),
    radial-gradient(2px 2px at 70% 15%, rgba(255,255,255,0.6) 0%, transparent 60%);
  opacity: 0.55;
  animation: twinkle 6s ease-in-out infinite;
}

.login-bg::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 120deg, rgba(126, 87, 255, 0.15), rgba(255, 107, 210, 0.12), rgba(78, 226, 255, 0.12), rgba(126, 87, 255, 0.15));
  filter: blur(40px);
  opacity: 0.45;
  animation: auroraDrift 20s ease-in-out infinite;
}

@keyframes bgShift {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

@keyframes auroraDrift {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(12deg); }
  100% { transform: rotate(0deg); }
}

.login-bg-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 102, 255, 0.4), transparent 60%);
  filter: blur(10px);
  animation: orbFloat 14s ease-in-out infinite;
}

.login-bg-orb.orb-1 {
  top: -80px;
  left: -60px;
}

.login-bg-orb.orb-2 {
  width: 520px;
  height: 520px;
  right: -140px;
  top: 20%;
  animation-delay: 3s;
  background: radial-gradient(circle, rgba(255, 122, 230, 0.35), transparent 60%);
}

.login-bg-orb.orb-3 {
  width: 360px;
  height: 360px;
  left: 35%;
  bottom: -120px;
  animation-delay: 6s;
  background: radial-gradient(circle, rgba(94, 220, 255, 0.35), transparent 60%);
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  margin: 0;
  padding: 56px clamp(24px, 5vw, 80px);
  gap: 40px;
}

.login-panel {
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.login-panel-left {
  align-items: flex-start;
  padding: clamp(24px, 6vw, 64px);
  gap: 20px;
  background: linear-gradient(140deg, rgba(44, 20, 86, 0.7), rgba(16, 8, 30, 0.65));
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(9, 4, 20, 0.7), inset 0 0 40px rgba(114, 70, 201, 0.08);
  backdrop-filter: blur(16px);
}

.magic-crest {
  position: relative;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.magic-crest::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(182, 142, 255, 0.6);
  box-shadow: 0 0 30px rgba(175, 120, 255, 0.45), inset 0 0 24px rgba(120, 80, 200, 0.5);
  animation: ringSpin 10s linear infinite;
}

.magic-crest::after {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  animation: ringSpin 18s linear infinite reverse;
}

@keyframes ringSpin {
  100% { transform: rotate(360deg); }
}

.magic-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 24px rgba(179, 136, 255, 0.8);
  background: #fff;
  object-fit: cover;
}

.magic-title {
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 1px;
  margin: 12px 0 6px 0;
  text-shadow: 0 0 24px rgba(178, 136, 255, 0.6);
}

.magic-subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(234, 224, 255, 0.78);
  line-height: 1.6;
}

.magic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.magic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34, 18, 58, 0.8);
  border: 1px solid rgba(173, 129, 255, 0.35);
  color: rgba(244, 236, 255, 0.9);
  font-size: 0.9rem;
  box-shadow: inset 0 0 12px rgba(124, 88, 200, 0.3);
}

.login-panel-right {
  align-items: center;
}

.login-card {
  width: 100%;
  max-width: 460px;
  padding: 40px 38px 32px;
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(20, 10, 34, 0.92), rgba(9, 6, 20, 0.95));
  border: 1px solid rgba(193, 156, 255, 0.25);
  box-shadow: 0 28px 70px rgba(6, 3, 16, 0.8), inset 0 0 24px rgba(124, 88, 200, 0.18);
  position: relative;
  animation: cardFloat 8s ease-in-out infinite;
}

.login-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(140deg, rgba(191, 142, 255, 0.35), rgba(94, 214, 255, 0.1));
  z-index: -1;
  filter: blur(18px);
  opacity: 0.6;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.login-card-header {
  margin-bottom: 26px;
}

.login-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(124, 88, 200, 0.22);
  border: 1px solid rgba(182, 142, 255, 0.45);
  color: #e8dcff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.login-card-title {
  margin: 16px 0 6px;
  font-size: 2rem;
  font-weight: 700;
}

.login-card-subtitle {
  margin: 0;
  color: rgba(224, 211, 255, 0.7);
  line-height: 1.5;
}

.login-form {
  width: 100%;
}

.magic-input-group {
  position: relative;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid rgba(178, 136, 255, 0.25);
  background: rgba(20, 12, 36, 0.7);
  transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.magic-input-group.focused {
  border-color: rgba(178, 136, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(130, 90, 200, 0.25), 0 0 20px rgba(178, 136, 255, 0.35);
  transform: translateY(-2px);
}

.magic-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(214, 191, 255, 0.8);
  font-size: 1rem;
  pointer-events: none;
}

.magic-input {
  width: 100%;
  padding: 16px 48px 16px 48px;
  background: transparent;
  border: none;
  outline: none;
  color: #f6edff;
  font-size: 1rem;
  font-family: 'Prompt', sans-serif;
}

.magic-input::placeholder {
  color: rgba(214, 191, 255, 0.55);
}

.magic-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(214, 191, 255, 0.7);
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transition: color 0.3s ease;
}

.magic-toggle:hover {
  color: #fff;
}

.magic-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 22px;
  font-size: 0.9rem;
}

.magic-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(232, 219, 255, 0.8);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.magic-remember:hover {
  color: #fff;
}

.magic-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #b58bff;
  cursor: pointer;
  transition: transform 0.2s;
}

.magic-remember input[type="checkbox"]:hover {
  transform: scale(1.1);
}

.magic-forgot {
  color: rgba(214, 191, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.magic-forgot::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(214, 191, 255, 0.9);
  transition: width 0.3s;
}

.magic-forgot:hover {
  color: #fff;
}

.magic-forgot:hover::after {
  width: 100%;
}

.magic-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1.05rem;
  background: linear-gradient(135deg, #a86bff, #6d37ff);
  border: 1px solid rgba(214, 191, 255, 0.7);
  border-radius: 16px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Prompt', sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 30px rgba(122, 78, 210, 0.45);
}

.magic-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.magic-submit::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  box-shadow: 0 0 28px rgba(168, 107, 255, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.magic-submit:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 40px rgba(122, 78, 210, 0.65);
}

.magic-submit:hover::before {
  transform: translateX(0);
}

.magic-submit:hover::after {
  opacity: 1;
}

.magic-submit:active {
  transform: translateY(0) scale(0.98);
}

.magic-submit span,
.magic-submit i {
  position: relative;
  z-index: 2;
}

.magic-footnote {
  margin: 18px 0 0;
  text-align: center;
  color: rgba(208, 192, 255, 0.65);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  .login-panel-left {
    align-items: center;
    text-align: center;
  }
  .magic-chips {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .login-panel-left {
    padding: 28px 20px;
  }
  .login-card {
    padding: 32px 26px 26px;
  }
  .magic-crest {
    width: 130px;
    height: 130px;
  }
  .magic-logo {
    width: 96px;
    height: 96px;
  }
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  color: #ffffff;
  font-family: 'Prompt', sans-serif;
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  min-width: 250px;
  max-width: 320px;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  border-left-color: #4ade80;
  background: rgba(10, 10, 10, 0.95);
}

.toast-success .toast-icon {
  color: #4ade80;
}

.toast-error {
  border-left-color: #f87171;
  background: rgba(10, 10, 10, 0.95);
}

.toast-error .toast-icon {
  color: #f87171;
}

.toast-warning {
  border-left-color: #fbbf24;
  background: rgba(10, 10, 10, 0.95);
}

.toast-warning .toast-icon {
  color: #fbbf24;
}

.toast-info {
  border-left-color: #d4af37;
  background: rgba(10, 10, 10, 0.95);
}

.toast-info .toast-icon {
  color: #d4af37;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: #ffffff;
  line-height: 1.3;
}

.toast-message {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s;
  margin-left: 6px;
}

.toast-close:hover {
  color: rgba(255, 255, 255, 0.9);
}

.toast-close i {
  font-size: 0.8rem;
}

/* Responsive Toast */
@media (max-width: 600px) {
  .toast-container {
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .login-container {
    flex-direction: column;
  }
  
  .login-image-section {
    width: 100%;
    height: 40vh;
  }
  
  .login-form-section {
    width: 100%;
    height: 60vh;
  }
  
  .login-form-wrapper {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .login-form-wrapper {
    padding: 1.5rem;
  }
  
  .login-form-title {
    font-size: 1.8rem;
  }
  
  .login-form-subtitle {
    font-size: 0.85rem;
  }
  
  .form-input {
    padding: 1rem 1rem 1rem 3rem;
    font-size: 0.95rem;
  }
  
  .login-submit-btn {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Font Awesome Icons */
[class*="fa-"], [class^="fa-"], i[class*="fa-"], i[class^="fa-"],
.fas, .far, .fal, .fab, .fa {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}
.far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}
.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* Use Prompt for all text */
body, html, p, span, div:not([class*="fa-"]):not([class^="fa-"]), 
h1, h2, h3, h4, h5, h6, input, select, textarea, button, label, a, li, td, th {
  font-family: 'Prompt', sans-serif !important;
}

.login-bg-animated {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(184, 134, 11, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  animation: bgPulse 10s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.95;
    transform: scale(1.03);
  }
}

/* Animated light particles */
.login-bg-animated::before,
.login-bg-animated::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  animation: lightFloat 15s ease-in-out infinite;
  filter: blur(40px);
}

.login-bg-animated::before {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.login-bg-animated::after {
  bottom: 10%;
  right: 10%;
  animation-delay: 7.5s;
}

@keyframes lightFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(60px, -60px) scale(1.3);
    opacity: 0.6;
  }
}

/* Main container */
.login-main {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  position: relative;
  padding: 20px;
  margin: 0;
  box-sizing: border-box;
}

/* Two-column layout */
.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1200px;
  height: 600px;
  gap: 0;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  animation: wrapperFadeIn 0.8s ease-out;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

@keyframes wrapperFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Left side: Logo */
.login-left {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: transparent;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.logo-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  margin: 0;
  padding: 0;
}

.login-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right side: Login Form */
.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  padding: 3rem;
  margin: 0;
  position: relative;
  height: 100%;
}

.login-right::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.03) 100%);
  pointer-events: none;
}

/* Login card */
.login-card {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
  animation: cardFadeIn 0.8s ease-out 0.2s both;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Header */
.login-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.login-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  font-family: 'Prompt', sans-serif;
  position: relative;
  display: inline-block;
}

.login-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, rgba(212, 175, 55, 0.3));
  border-radius: 2px;
  animation: underlineExpand 0.8s ease-out 0.5s both;
}

@keyframes underlineExpand {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 400;
  font-family: 'Prompt', sans-serif;
}

/* Input groups */
.input-group {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  z-index: 2;
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-group.focused .input-icon {
  color: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

.login-input {
  width: 100%;
  padding: 1.1rem 1.1rem 1.1rem 3.5rem;
  background: rgba(20, 20, 20, 0.6);
  border: 1.5px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Prompt', sans-serif;
  position: relative;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s;
}

.login-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.login-input:focus {
  border-color: #d4af37;
  background: rgba(25, 25, 25, 0.8);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), 0 0 25px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.input-group.focused .login-input {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), 0 0 25px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

/* Password toggle */
.toggle-password {
  position: absolute;
  right: 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  z-index: 2;
}

.toggle-password:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Auxiliary row */
.login-aux {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}

.checkbox:hover {
  color: rgba(255, 255, 255, 0.9);
}

.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #d4af37;
  cursor: pointer;
  transition: transform 0.2s;
}

.checkbox input[type="checkbox"]:hover {
  transform: scale(1.1);
}

.forgot-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.forgot-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  transition: width 0.3s;
}

.forgot-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.forgot-link:hover::after {
  width: 100%;
}

/* Login button */
.login-btn {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  border: none;
  border-radius: 12px;
  color: #000;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: 'Prompt', sans-serif;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  background: linear-gradient(135deg, #e5c158, #d4af37);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5), 0 0 0 3px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px) scale(1.02);
}

.login-btn:active {
  transform: translateY(0) scale(0.98);
}

.login-btn span {
  position: relative;
  z-index: 1;
}

.login-btn i {
  font-size: 1rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.login-btn:hover i {
  transform: translateX(3px);
}

/* SweetAlert2 Gold Theme */
.swal2-gold-popup {
  background: rgba(10, 10, 10, 0.95) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(212, 175, 55, 0.1) inset !important;
}

.swal2-gold-title {
  color: #d4af37 !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5) !important;
  font-family: 'Prompt', sans-serif !important;
}

.swal2-gold-content {
  color: rgba(255, 255, 255, 0.8) !important;
  font-family: 'Prompt', sans-serif !important;
}

.swal2-gold-confirm {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(184, 134, 11, 0.2)) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.4) !important;
  color: #d4af37 !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-family: 'Prompt', sans-serif !important;
  transition: all 0.3s !important;
}

.swal2-gold-confirm:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(184, 134, 11, 0.3)) !important;
  border-color: #d4af37 !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4) !important;
  transform: scale(1.05) !important;
}

/* Responsive */
@media (max-width: 992px) {
  .login-wrapper {
    grid-template-columns: 1fr;
    max-width: 500px;
    min-height: auto;
  }
  
  .login-left {
    display: none;
    min-height: auto;
  }
  
  .login-right {
    padding: 2.5rem 2rem;
    min-height: auto;
  }
  
  .login-card {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .login-main {
    padding: 10px;
  }
  
  .login-wrapper {
    border-radius: 0;
  }
  
  .login-right {
    padding: 2rem 1.5rem;
    min-height: auto;
  }
  
  .login-left {
    min-height: auto;
  }
  
  .login-title {
    font-size: 1.6rem;
  }
  
  .login-subtitle {
    font-size: 0.85rem;
  }
  
  .login-input {
    padding: 1rem 1rem 1rem 3rem;
    font-size: 0.95rem;
  }
  
  .login-btn {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Font Awesome Icons - ต้องไม่ override font-family ของไอคอน */
[class*="fa-"], [class^="fa-"], i[class*="fa-"], i[class^="fa-"],
.fas, .far, .fal, .fab, .fa {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}
.far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}
.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* ใช้ Prompt สำหรับข้อความทั่วไป */
body, html, p, span, div:not([class*="fa-"]):not([class^="fa-"]), 
h1, h2, h3, h4, h5, h6, input, select, textarea, button, label, a, li, td, th {
  font-family: 'Prompt', sans-serif !important;
}

body, html {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #0a0a0f;
  overflow-x: hidden;
}
/* Font Awesome Icons - ต้องไม่ override font-family ของไอคอน */
[class*="fa-"], [class^="fa-"], i[class*="fa-"], i[class^="fa-"],
.fas, .far, .fal, .fab, .fa {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}
.far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}
.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* ใช้ Prompt สำหรับข้อความทั่วไป */
body, html, p, span, div:not([class*="fa-"]):not([class^="fa-"]), 
h1, h2, h3, h4, h5, h6, input, select, textarea, button, label, a, li, td, th {
  font-family: 'Prompt', sans-serif !important;
}

body, html {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #0a0a0f;
  overflow-x: hidden;
}
.login-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  background:
    radial-gradient(80vw 60vh at 20% 30%, rgba(29,78,216,0.35), transparent 60%),
    radial-gradient(60vw 40vh at 80% 70%, rgba(56,189,248,0.25), transparent 60%),
    linear-gradient(120deg, #0b1220 0%, #0e1726 60%, #0b1220 100%);
  opacity: 1;
  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 18px #1d4ed8, 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-subtitle { color: #dbeafe; opacity: 0.9; margin-top: -0.4rem; margin-bottom: 1.4rem; font-weight: 500; }
.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 {
  border-radius: 1.6rem;
  padding: 2.4rem 2.2rem 2rem 2.2rem;
  min-width: 360px;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: box-shadow 0.3s, border 0.3s;
  z-index: 10;
}
.login-card-glass::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  filter: blur(14px) saturate(1.2);
  opacity: 0.35;
  animation: ringSpin 6s linear infinite;
}
@keyframes ringSpin { 100% { transform: rotate(360deg); } }
.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 #38bdf8;
  box-shadow: 0 0 32px #38bdf8, 0 0 64px #1e40af, 0 0 0 8px #ffffff11 inset;
  background: #fff;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.05) drop-shadow(0 0 16px #1e3a8a);
  animation: logoSpin 8s linear infinite, logoGlowBlue 2.5s infinite alternate;
}
@keyframes logoSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes logoGlowBlue {
  0% { box-shadow: 0 0 16px 2px #38bdf855, 0 0 0 8px #ffffff11 inset; }
  100% { box-shadow: 0 0 48px 12px #1d4ed8aa, 0 0 0 16px #38bdf822 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(20,30,50,0.55);
  border-radius: 1rem;
  box-shadow: 0 0 14px #1d4ed822 inset;
  border: 1.5px solid #1e3a8a55;
  transition: box-shadow 0.3s, border 0.3s, background 0.3s;
}
.toggle-password { position:absolute; right:8px; top:50%; transform:translateY(-50%); color:#93c5fd; background:transparent; border:0; width:36px; height:36px; display:grid; place-items:center; cursor:pointer; }
.toggle-password:hover { color:#fff; }
.login-header-text { width:100%; display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.login-small-logo { width:36px; height:36px; border-radius:8px; }
.login-subtitle { margin:0; color:#9fb3ff; opacity:.85; font-weight:500; }
/* hide floating label to match reference style that uses placeholders */
.floating-label { display:none; }
.login-input-group-glass.focused {
  border: 2px solid #38bdf8;
  box-shadow: 0 0 28px #38bdf8aa;
  background: rgba(10,20,35,0.8);
}
.input-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #93c5fd;
  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: #93c5fd;
  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: #38bdf8;
  opacity: 1;
  background: rgba(10,18,32,0.85);
  padding: 0 0.3em;
  border-radius: 0.5em;
}
/* ปุ่ม login overlap */
.login-btn-glass {
  display: block;
  margin: 0.4rem auto 0;
  width: 100%;
  min-width: 120px;
  max-width: none;
  background: linear-gradient(90deg, #38bdf8, #60a5fa, #38bdf8);
  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 #1e3a8a;
  box-shadow: 0 0 12px 2px #60a5fa33 inset, 0 0 0 #0000;
  text-shadow: 0 1px 8px #60a5facf;
  padding: 0.7rem 0;
  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: #38bdf8;
  text-decoration: none;
  box-shadow: 0 0 24px 4px #38bdf866 inset, 0 0 0 #0000;
}

/* password toggle */
.toggle-pw {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #93c5fd;
  cursor: pointer;
  width: 36px; height: 36px; display: grid; place-items: center;
}
.toggle-pw:hover { color: #fff; }
.toggle-password { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: #93c5fd; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; }
.toggle-password:hover { color: #fff; }

/* aux row */
.login-aux { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 0.2rem; margin-bottom: 0.8rem; }
.login-aux a { color: #93c5fd; text-decoration: none; }
.login-aux a:hover { color: #fff; text-decoration: underline; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: #e5e7eb; }
.checkbox input { width: 18px; height: 18px; accent-color: #60a5fa; }
@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: 86vw;
    max-width: 96vw;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .logo-animate-container, .logo-animate {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
  }
}

/* --- Two-column wrapper to match reference layout --- */
.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  padding: 40px 20px;
  margin: 0;
}
.login-frame { background:#0d1220; border-radius:24px; border:1px solid #101828; box-shadow:0 30px 80px rgba(0,0,0,0.45); gap:24px; }
.login-panel { display: flex; justify-content: center; }
.login-hero {justify-content: center; align-items: center; display:flex; }
.login-hero-image { max-width: 420px; width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,0.5)); }

/* header inside card */
.login-header-text { display: flex; gap: 12px; align-items: center; }
.login-small-logo { width: 40px; height: 40px; border-radius: 8px; box-shadow: 0 0 12px rgba(56,189,248,0.5); }
@media (max-width: 992px) {
  .login-wrapper { grid-template-columns: 1fr; gap: 24px; }
  .login-hero-image { max-width: 68vw; }
}
/* SweetAlert2 - Blue Glass theme for Login */
.swal2-login-popup {
  border-radius: 22px !important;
  padding: 2.2em 2.2em 1.8em 2.2em !important;
  background: radial-gradient(120% 120% at 0% 0%, #0b1830 0%, #0c1e3b 40%, #0a1530 100%) !important;
  box-shadow: 0 40px 120px rgba(6, 20, 40, 0.9), 0 0 0 1px rgba(56,189,248,0.16) inset;
  border: 1px solid rgba(56,189,248,0.22) !important;
}
.swal2-login-title {
  color: #e6f4ff !important;
  text-shadow: 0 2px 14px rgba(56,189,248,0.55), 0 1px 8px #0008;
  font-weight: 800 !important;
  letter-spacing: .5px;
}
.swal2-login-content { color: #cfe7ff !important; }
.swal2-icon.swal2-success {
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 28px #38bdf855;
}
.swal2-login-confirm {
  background: linear-gradient(90deg, #38bdf8, #60a5fa) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: .7em 2.2em !important;
  border: 1px solid #1e3a8a !important;
  box-shadow: 0 0 12px #60a5fa55 inset, 0 8px 24px rgba(0,0,0,.35) !important;
}

/* --- THEME: DARK-BLUE/PURPLE for member.php --- */
body, .bg-dark {
  background: #0b1220 !important;
  background-image: radial-gradient(80vw 60vh at 20% 30%, rgba(29,78,216,0.35), transparent 60%),
    radial-gradient(60vw 40vh at 80% 70%, rgba(56,189,248,0.25), transparent 60%),
    linear-gradient(120deg, #0b1220 0%, #0e1726 60%, #0b1220 100%) !important;
  color: #fff !important;
  min-height: 100vh;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.card, .card-header, .card-footer {
  background: rgba(11, 24, 45, 0.75) !important;
  backdrop-filter: blur(12px);
  border-radius: 18px !important;
  border: 1.5px solid rgba(56,189,248,0.2) !important;
  box-shadow: 0 4px 24px 0 rgba(29,78,216,0.15);
}

.card-header, .navbar, .bg-dark {
  background: linear-gradient(90deg, #0b1220 60%, #1e40af 100%) !important;
  color: #fff !important;
}

/* Navbar specific styles */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  height: auto !important;
  min-height: 56px !important;
  max-height: 80px !important;
  overflow: visible !important;
  background: linear-gradient(90deg, #0b1220 60%, #1e40af 100%) !important;
}

.navbar-collapse {
  max-height: none !important;
  overflow: visible !important;
}

.navbar-nav {
  flex-direction: row !important;
}

@media (max-width: 991px) {
  .navbar {
    max-height: none !important;
  }
  
  .navbar-collapse {
    background: linear-gradient(90deg, #0b1220 60%, #1e40af 100%) !important;
    padding: 1rem !important;
    margin-top: 0.5rem !important;
    border-radius: 0 0 12px 12px !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;
  display: block;
  padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link.active, .navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .navbar-nav .nav-link:hover {
  color: #38bdf8 !important;
  text-shadow: 0 0 8px rgba(56,189,248,0.6);
  background: rgba(56,189,248,0.1);
  border-radius: 8px;
}

.navbar-dark .navbar-nav .nav-link {
  transition: all 0.3s;
}

.navbar-dark .navbar-nav .dropdown-menu {
  background: rgba(11, 24, 45, 0.95) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56,189,248,0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(29,78,216,0.3) !important;
}

.navbar-dark .navbar-nav .dropdown-item {
  color: #cfe7ff !important;
  padding: 0.7rem 1.2rem !important;
  transition: all 0.3s;
}

.navbar-dark .navbar-nav .dropdown-item:hover {
  background: rgba(56,189,248,0.2) !important;
  color: #fff !important;
}

.btn-primary, .btn-topup, .btn-outline-danger {
  background: linear-gradient(90deg, #38bdf8 60%, #60a5fa 100%) !important;
  border: 1px solid #1e3a8a !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(56,189,248,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover, .btn-topup:hover, .btn-outline-danger:hover {
  background: linear-gradient(90deg, #60a5fa 60%, #38bdf8 100%) !important;
  color: #fff !important;
  transform: scale(1.04);
  box-shadow: 0 4px 16px 0 rgba(56,189,248,0.35);
}

.badge-light {
  background: linear-gradient(90deg, #38bdf8, #60a5fa) !important;
  color: #fff !important;
  font-size: 1rem;
  padding: 0.4em 0.8em;
  border-radius: 12px;
}

.table {
  background: rgba(11, 24, 45, 0.6) !important;
  color: #fff !important;
}
.table th, .table td {
  border-color: rgba(56,189,248,0.15) !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: rgba(11, 24, 45, 0.5);
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #38bdf8, #60a5fa);
  border-radius: 8px;
}
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #60a5fa, #38bdf8);
}

/* Overlay loading spinner */
.overlay-loading {
  background: rgba(11, 24, 45, 0.85) !important;
  backdrop-filter: blur(8px);
}
.text-loader {
  color: #38bdf8 !important;
}

/* Gift box highlight */
#gift-box, #gift-box2 {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.5), rgba(15, 15, 15, 0.6)) !important;
  color: #fff !important;
  border-radius: 16px;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px 0 rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.1) !important;
  border: 2px solid rgba(212, 175, 55, 0.3) !important;
}

/* Table highlight for history */
#history tr.online td {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
}
#history tr.offline td {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
}

/* Misc */
.cursor-pointer { cursor: pointer; }

/* Utility Class */

.custom-cursor-default-hover:hover { cursor: pointer; color: #38bdf8; }

/* --- 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;
  align-items: flex-start;
}
.profile-sidebar {
  flex: 0 0 340px;
  max-width: 340px;
  min-width: 260px;
  background: rgba(11, 24, 45, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  border: 2.5px solid rgba(56,189,248,0.3);
  box-shadow: 0 6px 32px 0 rgba(29,78,216,0.25), 0 0 0 1px rgba(56,189,248,0.1) inset;
  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 #38bdf8;
  background: #0b1220;
  box-shadow: 0 0 0 8px rgba(56,189,248,0.15), 0 0 32px rgba(56,189,248,0.3);
  object-fit: cover;
  margin-bottom: 1.2rem;
  animation: pulseLogoBlue 2.5s infinite;
}
@keyframes pulseLogoBlue {
  0% { box-shadow: 0 0 0 8px rgba(56,189,248,0.15), 0 0 32px rgba(56,189,248,0.3); }
  50% { box-shadow: 0 0 0 18px rgba(56,189,248,0.25), 0 0 48px rgba(56,189,248,0.5); }
  100% { box-shadow: 0 0 0 8px rgba(56,189,248,0.15), 0 0 32px rgba(56,189,248,0.3); }
}
.profile-sidebar .profile-server {
  font-size: 1.1rem;
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(56,189,248,0.5);
}
.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: linear-gradient(90deg, #38bdf8, #60a5fa);
  border-radius: 12px;
  padding: 0.2em 0.9em;
  font-size: 1.08rem;
  letter-spacing: 0.5px;
  margin-left: 0.2em;
  box-shadow: 0 2px 8px rgba(56,189,248,0.3);
}
.profile-sidebar .profile-icon {
  font-size: 1.2em;
  margin-right: 0.3em;
}
.profile-sidebar .profile-divider {
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8 0%, rgba(56,189,248,0.1) 100%);
  border-radius: 2px;
  margin: 1.5rem 0 1.2rem 0;
  opacity: 0.7;
}
.main-content-area {
  flex: 1 1 0;
  background: rgba(11, 24, 45, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(56,189,248,0.2);
  box-shadow: 0 4px 24px 0 rgba(29,78,216,0.15);
  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 Blue 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, #38bdf8, #60a5fa, #38bdf8, #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: borderRunBlue 2.5s linear infinite;
}
@keyframes borderRunBlue {
  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 #38bdf8;
  color: #fff;
  background: rgba(11, 24, 45, 0.8);
  box-shadow: 0 2px 12px 0 rgba(56,189,248,0.15);
  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, #38bdf8 80%, #60a5fa 100%);
  color: #fff;
  border-color: #60a5fa;
  box-shadow: 0 4px 24px 0 rgba(56,189,248,0.4), 0 0 0 3px rgba(56,189,248,0.2);
  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 #38bdf8);
}
#pay-section .btn-amount:active {
  background: #38bdf8;
  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); }
}

/* --- Member Page New UI Components (Blue Theme) --- */

/* Navigation Sidebar */
.member-nav-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.member-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.member-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-nav-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 0 12px rgba(56,189,248,0.5);
}

.member-nav-toggle {
  background: transparent;
  border: 1px solid rgba(56,189,248,0.3);
  color: #38bdf8;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.member-nav-toggle:hover {
  background: rgba(56,189,248,0.1);
  border-color: #38bdf8;
}

.member-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.member-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 1.2rem;
  color: #cfe7ff;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.member-nav-item i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.member-nav-item:hover {
  background: rgba(56,189,248,0.1);
  color: #fff;
}

.member-nav-item.active {
  background: rgba(56,189,248,0.2);
  border-left-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 12px rgba(56,189,248,0.2) inset;
}

.member-profile-section {
  width: 100%;
  margin-top: 1rem;
}

/* Top Navigation */
.member-top-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(56,189,248,0.2);
  padding-bottom: 0.5rem;
}

.member-top-nav-item {
  color: #93c5fd;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s;
  font-weight: 500;
}

.member-top-nav-item:hover {
  color: #fff;
  background: rgba(56,189,248,0.1);
}

.member-top-nav-item.active {
  color: #38bdf8;
  background: rgba(56,189,248,0.15);
  border-bottom: 2px solid #38bdf8;
}

/* Sub Navigation */
.member-sub-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.member-sub-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  transition: all 0.3s;
  font-weight: 500;
  position: relative;
}

.member-sub-nav-item:hover {
  color: #fff;
  background: rgba(56,189,248,0.1);
}

.member-sub-nav-item.active {
  color: #fff;
  background: rgba(56,189,248,0.2);
}

.member-sub-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  border-radius: 2px;
}

/* Game Header */
.member-game-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.member-game-logo-img {
  height: auto;
  max-height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(56,189,248,0.4));
  flex-shrink: 0;
}

.member-game-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.member-game-logo {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px rgba(56,189,248,0.6), 0 0 40px rgba(29,78,216,0.4);
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
  line-height: 1.2;
}

.member-game-subtitle {
  color: #cfe7ff;
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  .member-game-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .member-game-logo-img {
    max-height: 60px;
  }
  
  .member-game-logo {
    font-size: 2.2rem;
  }
}

/* Recharge Form */
.member-recharge-form {
  max-width: 600px;
  margin: 0 auto;
}

.member-form-group {
  margin-bottom: 1.5rem;
}

.member-form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.member-form-label i {
  color: #38bdf8;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.member-form-input,
.member-form-select {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(20, 30, 50, 0.55);
  border: 1.5px solid rgba(56,189,248,0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 0 14px rgba(29,78,216,0.1) inset;
}

.member-form-input:focus,
.member-form-select:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 28px rgba(56,189,248,0.3), 0 0 14px rgba(29,78,216,0.1) inset;
  background: rgba(10, 20, 35, 0.8);
}

.member-form-input:read-only {
  opacity: 0.7;
  cursor: not-allowed;
}

.member-pay-button {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  border: 1px solid #1e3a8a;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 12px rgba(56,189,248,0.3), 0 4px 16px rgba(0,0,0,0.2);
  margin-top: 1.5rem;
}

.member-pay-button:hover {
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
  box-shadow: 0 0 24px rgba(56,189,248,0.5), 0 6px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.member-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  color: #cfe7ff;
  font-size: 0.9rem;
}

.member-warning i {
  color: #60a5fa;
  font-size: 1.1rem;
}

/* Right Sidebar */
.member-right-sidebar {
  flex: 0 0 360px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.member-info-card,
.member-rates-card {
  background: radial-gradient(120% 120% at 0% 0%, rgba(11, 24, 45, 0.92), rgba(10, 20, 38, 0.9));
  backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(56,189,248,0.22);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(3, 7, 18, 0.55), 0 0 0 1px rgba(56,189,248,0.08) inset;
}

.member-info-title,
.member-rates-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #eaf2ff;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(56,189,248,0.25);
  text-shadow: 0 0 8px rgba(56,189,248,0.25);
}

.member-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 0;
  color: #cfe7ff;
  font-size: 0.95rem;
}

.member-info-item i {
  color: #38bdf8;
  width: 20px;
  text-align: center;
}

.member-info-actions {
  margin-top: 0.75rem;
}

.member-logout-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  color: #fff;
  border: 1px solid #1e3a8a;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.member-logout-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 24px rgba(56,189,248,0.25);
  transform: translateY(-1px);
}

.member-logout-btn i {
  color: #fff;
}

.member-status-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  padding: 0.2em 0.7em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.member-rates-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.member-rate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(17, 28, 48, 0.6), rgba(12, 22, 38, 0.7));
  border-radius: 12px;
  color: #cfe7ff;
  font-size: 0.95rem;
  border-left: 3px solid rgba(56,189,248,0.35);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.member-rate-item:hover {
  transform: translateX(2px);
  border-left-color: rgba(96,165,250,0.6);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.18);
}

.member-rate-multiplier {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 0.2em 0.6em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

@media (max-width: 1200px) {
  .profile-main-layout {
    flex-wrap: wrap;
  }
  .member-right-sidebar {
    flex: 1 1 100%;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .member-info-card,
  .member-rates-card {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .member-right-sidebar {
    flex-direction: column;
  }
  .member-info-card,
  .member-rates-card {
    flex: 1 1 100%;
  }
}

/* --- Form Card Styling --- */
.member-form-card {
  background: rgba(11, 24, 45, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(56,189,248,0.2);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(29,78,216,0.15);
  animation: fadeInUp 0.7s cubic-bezier(.39,.575,.565,1.000) both;
}

.member-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(56,189,248,0.3);
}

.member-form-header i {
  font-size: 1.8rem;
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56,189,248,0.5);
}

.member-form-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 0 8px rgba(56,189,248,0.3);
}

.member-gift-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.member-gift-box {
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(96,165,250,0.15));
  border: 2px solid rgba(56,189,248,0.3);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(56,189,248,0.2);
}

.member-gift-box:hover {
  background: linear-gradient(135deg, rgba(56,189,248,0.3), rgba(96,165,250,0.25));
  border-color: rgba(56,189,248,0.5);
  box-shadow: 0 4px 20px rgba(56,189,248,0.3);
}

.member-gift-box i {
  font-size: 1.5rem;
  color: #38bdf8;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(56,189,248,0.5);
}

.member-gift-box span {
  color: #cfe7ff;
  font-size: 1.05rem;
  line-height: 1.6;
  flex: 1;
}

.member-note-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 1.2rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  color: #cfe7ff;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.member-note-box i {
  color: #60a5fa;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.member-note-box span {
  line-height: 1.6;
}

/* QR Code Section */
.member-qr-container {
  text-align: center;
}

.member-qr-wrapper {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.member-qr-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(56,189,248,0.3);
  border: 2px solid rgba(56,189,248,0.2);
  padding: 1rem;
  background: #fff;
}

/* Tables */
.member-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(56,189,248,0.2);
}

.member-rates-table,
.member-history-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(11, 24, 45, 0.6);
}

.member-rates-table thead,
.member-history-table thead {
  background: rgba(56,189,248,0.15);
}

.member-rates-table th,
.member-history-table th {
  padding: 1rem;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 2px solid rgba(56,189,248,0.3);
}

.member-rates-table th i,
.member-history-table th i {
  color: #38bdf8;
  margin-right: 8px;
  font-size: 1.1rem;
}

.member-rates-table td,
.member-history-table td {
  padding: 1rem;
  text-align: center;
  color: #cfe7ff;
  border-bottom: 1px solid rgba(56,189,248,0.1);
  transition: background 0.3s;
}

.member-rates-table tbody tr:hover,
.member-history-table tbody tr:hover {
  background: rgba(56,189,248,0.1);
}

.member-rates-table td i,
.member-history-table td i {
  color: #60a5fa;
  margin-right: 8px;
}

.member-table-empty {
  padding: 3rem !important;
  text-align: center !important;
  color: #93c5fd !important;
}

.member-table-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  color: #60a5fa;
  opacity: 0.5;
}

.member-table-empty span {
  font-size: 1.1rem;
}

/* Status Icons */
.online i,
.offline i {
  margin-right: 6px;
}

.online {
  color: #4ade80 !important;
}

.online i {
  color: #4ade80;
}

.offline {
  color: #f87171 !important;
}

.offline i {
  color: #f87171;
}

/* --- Footer Styling (Minimal) --- */
.member-footer {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  padding: 1.5rem 1rem;
  background: rgba(11, 18, 30, 0.6);
  border-top: 1px solid rgba(56,189,248,0.15);
  overflow: hidden;
}

.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/BG.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  z-index: 0;
}

.footer-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 18, 30, 0.7);
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo-section {
  position: relative;
  text-align: center;
  padding: 0.5rem 0;
}

.footer-logo {
  max-width: 120px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(56,189,248,0.3));
  opacity: 0.9;
  transition: all 0.3s;
}

.footer-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 15px rgba(56,189,248,0.5));
}

.footer-bottom {
  text-align: center;
  padding-top: 0.5rem;
}

.footer-bottom p {
  color: #93c5fd;
  font-size: 0.8rem;
  margin: 0;
  opacity: 0.7;
  font-weight: 300;
}

@media (max-width: 768px) {
  .member-footer {
    margin-top: 1.5rem;
    padding: 1rem 0.75rem;
  }
  
  .footer-logo {
    max-width: 100px;
  }
  
  .footer-bottom p {
    font-size: 0.75rem;
  }
}

/* Navigation links: remove underline on hover/focus/active */
.navbar-nav .nav-link,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .dropdown-item,
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus,
.member-sub-nav .member-sub-nav-item,
.member-sub-nav .member-sub-nav-item:hover,
.member-sub-nav .member-sub-nav-item:focus,
.member-top-nav .member-top-nav-item,
.member-top-nav .member-top-nav-item:hover,
.member-top-nav .member-top-nav-item:focus,
.member-nav-menu a,
.member-nav-menu a:hover,
.member-nav-menu a:focus {
  text-decoration: none !important;
}

body.login-page .login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 140% at 10% 10%, #2a1150 0%, transparent 55%),
    radial-gradient(90% 110% at 90% 20%, #3b1363 0%, transparent 50%),
    radial-gradient(120% 100% at 50% 90%, #120a2c 0%, #07040f 55%, #05030a 100%);
  overflow: hidden;
  animation: bgShift 18s ease-in-out infinite alternate;
}

body.login-page {
  font-family: 'Prompt', 'Kanit', sans-serif;
}

body.login-page .login-shell.simple-login {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  padding: 50px 20px;
  gap: 0;
}

body.login-page .simple-login .login-card {
  width: min(1040px, 96vw);
  text-align: center;
  padding: 40px 64px 34px;
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(26, 14, 45, 0.95), rgba(10, 6, 22, 0.95));
  box-shadow: 0 30px 80px rgba(6, 3, 16, 0.7), inset 0 0 24px rgba(124, 88, 200, 0.2);
}

body.login-page .login-form {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

body.login-page .magic-input {
  font-family: 'Prompt', 'Kanit', sans-serif;
}

body.login-page .login-card-title,
body.login-page .magic-title,
body.login-page .login-card-tag {
  letter-spacing: 1px;
}
body.login-page .magic-title,
body.login-page .login-card-title {
  font-family: 'Cinzel Decorative', 'Prompt', sans-serif;
}

body.login-page .simple-login .magic-crest {
  margin: 0 auto 16px;
}
body.login-page .simple-login .magic-crest {
  width: 130px;
  height: 130px;
}
body.login-page .simple-login .magic-logo {
  width: 96px;
  height: 96px;
}

body.login-page .simple-login .magic-title {
  margin: 4px 0 4px;
}

body.login-page .simple-login .login-card-header {
  margin: 18px 0 16px;
}

body.login-page .simple-login .magic-actions {
  margin: 10px 0 14px;
}
body.login-page .simple-login .magic-input {
  padding-top: 14px;
  padding-bottom: 14px;
}

body.login-page .simple-login .magic-sparks {
  z-index: 1;
}

body.login-page .simple-login .login-card {
  position: relative;
  z-index: 2;
}

@media (max-width: 600px) {
  body.login-page .simple-login .login-card {
    padding: 38px 26px 32px;
  }
}

body.login-page .login-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.7) 0%, transparent 60%),
    radial-gradient(2px 2px at 80% 40%, rgba(255,255,255,0.5) 0%, transparent 60%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.45) 0%, transparent 60%),
    radial-gradient(1px 1px at 35% 80%, rgba(255,255,255,0.35) 0%, transparent 60%),
    radial-gradient(2px 2px at 70% 15%, rgba(255,255,255,0.6) 0%, transparent 60%);
  opacity: 0.55;
  animation: twinkle 6s ease-in-out infinite;
}

body.login-page .login-bg::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 120deg, rgba(126, 87, 255, 0.15), rgba(255, 107, 210, 0.12), rgba(78, 226, 255, 0.12), rgba(126, 87, 255, 0.15));
  filter: blur(40px);
  opacity: 0.45;
  animation: auroraDrift 20s ease-in-out infinite;
}

body.login-page .login-bg-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 102, 255, 0.4), transparent 60%);
  filter: blur(10px);
  animation: orbFloat 14s ease-in-out infinite;
}

body.login-page .login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  margin: 0;
  padding: 56px clamp(24px, 5vw, 80px);
  gap: 40px;
}

body.login-page .login-panel-left {
  align-items: flex-start;
  padding: clamp(24px, 6vw, 64px);
  gap: 20px;
  background: linear-gradient(140deg, rgba(44, 20, 86, 0.7), rgba(16, 8, 30, 0.65));
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(9, 4, 20, 0.7), inset 0 0 40px rgba(114, 70, 201, 0.08);
  backdrop-filter: blur(16px);
}

body.login-page .login-panel-right {
  align-items: center;
}

body.login-page .magic-portal {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 84, 255, 0.25), transparent 60%);
  border: 1px solid rgba(170, 120, 255, 0.35);
  box-shadow: 0 0 60px rgba(132, 92, 215, 0.35);
  animation: ringSpin 18s linear infinite;
  top: 10%;
  right: 6%;
  filter: blur(0.5px);
}

body.login-page .magic-portal::after {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px dashed rgba(214, 191, 255, 0.4);
  animation: ringSpin 12s linear infinite reverse;
}

body.login-page .magic-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.login-page .magic-sparks span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0e6ff;
  box-shadow: 0 0 16px rgba(190, 150, 255, 0.8);
  animation: sparkFloat 6s ease-in-out infinite;
}

body.login-page .magic-sparks span:nth-child(1) { top: 12%; left: 8%; }
body.login-page .magic-sparks span:nth-child(2) { top: 20%; right: 14%; animation-delay: 1s; }
body.login-page .magic-sparks span:nth-child(3) { bottom: 18%; left: 22%; animation-delay: 2s; }
body.login-page .magic-sparks span:nth-child(4) { bottom: 26%; right: 20%; animation-delay: 3s; }
body.login-page .magic-sparks span:nth-child(5) { top: 40%; left: 45%; animation-delay: 4s; }

@keyframes sparkFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-18px) scale(1.2); opacity: 1; }
}

body.login-page .login-card {
  backdrop-filter: blur(18px);
}

body.login-page .swal2-magic-popup {
  border-radius: 24px !important;
  background: radial-gradient(120% 120% at 0% 0%, #1b0b2e 0%, #12071f 45%, #0a0413 100%) !important;
  border: 1px solid rgba(182, 142, 255, 0.35) !important;
  box-shadow: 0 40px 120px rgba(7, 4, 16, 0.9), inset 0 0 32px rgba(124, 88, 200, 0.2) !important;
}

body.login-page .swal2-magic-title {
  color: #f4e9ff !important;
  text-shadow: 0 0 18px rgba(170, 120, 255, 0.7) !important;
  font-weight: 800 !important;
}

body.login-page .swal2-magic-content {
  color: rgba(230, 215, 255, 0.85) !important;
}

body.login-page .swal2-magic-confirm {
  background: linear-gradient(135deg, #a86bff, #6d37ff) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: .7em 2.2em !important;
  border: 1px solid rgba(214, 191, 255, 0.7) !important;
  box-shadow: 0 0 12px rgba(168, 107, 255, 0.45) inset, 0 8px 24px rgba(0,0,0,.35) !important;
}

body.login-page .swal2-magic-icon {
  border-color: #c8a9ff !important;
  color: #c8a9ff !important;
  box-shadow: 0 0 28px rgba(180, 130, 255, 0.55);
}

@media (max-width: 980px) {
  body.login-page .login-shell {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  body.login-page .login-panel-left {
    align-items: center;
    text-align: center;
  }
  body.login-page .magic-chips {
    justify-content: center;
  }
  body.login-page .magic-portal {
    position: absolute;
    top: auto;
    bottom: 12%;
    right: 10%;
  }
}

@media (max-width: 600px) {
  body.login-page .login-panel-left {
    padding: 28px 20px;
  }
  body.login-page .login-card {
    padding: 32px 26px 26px;
  }
}

body.login-page {
  background: radial-gradient(120% 120% at 10% 10%, #2a1452 0%, #140a2b 45%, #07040f 100%);
  color: #e5e7eb;
}

body.login-page .login-modern {
  background: transparent;
}

body.login-page .login-card-modern {
  background: rgba(12, 10, 20, 0.92);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(6, 3, 16, 0.65);
  max-width: 980px;
  margin: 0 auto;
}

body.login-page .login-brand {
  background: linear-gradient(160deg, rgba(90, 54, 170, 0.9), rgba(22, 16, 40, 0.9));
  color: #f3e8ff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

body.login-page .login-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  object-fit: cover;
  background: #fff;
}

body.login-page .login-brand-title {
  font-family: 'Cinzel Decorative', 'Prompt', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

body.login-page .login-brand-subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
}

body.login-page .login-brand-copy {
  font-size: 0.95rem;
  opacity: 0.9;
}

body.login-page .login-form-title {
  font-family: 'Cinzel Decorative', 'Prompt', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #f5f3ff;
}

body.login-page .login-form-subtitle {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.75);
}

body.login-page .login-form-modern .form-label {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.85);
  margin-bottom: 0.35rem;
}

body.login-page .login-form-modern .input-group-text,
body.login-page .login-form-modern .form-control,
body.login-page .login-form-modern .password-toggle {
  background: rgba(15, 15, 26, 0.9);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

body.login-page .login-form-modern .input-group-text {
  border-right: 0;
}

body.login-page .login-form-modern .form-control {
  border-left: 0;
}

body.login-page .login-form-modern .password-toggle {
  border-left: 0;
}

body.login-page .login-form-modern .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(167, 139, 250, 0.25);
  border-color: rgba(167, 139, 250, 0.7);
}

body.login-page .login-form-modern .input-group-lg > .form-control,
body.login-page .login-form-modern .input-group-lg > .input-group-text,
body.login-page .login-form-modern .input-group-lg > .btn {
  padding: 0.6rem 1rem;
  font-size: 1rem;
}

body.login-page .login-submit {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border: none;
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.35);
}

body.login-page .login-submit:hover {
  filter: brightness(1.05);
}

body.login-page .forgot-link {
  color: rgba(226, 232, 240, 0.75);
  text-decoration: none;
}

body.login-page .forgot-link:hover {
  color: #fff;
  text-decoration: underline;
}

body.login-page .login-footnote {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.6);
}

@media (max-width: 991px) {
  body.login-page .login-card-modern {
    max-width: 720px;
  }
  body.login-page .login-brand {
    text-align: center;
  }
  body.login-page .login-brand .d-flex {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  body.login-page .login-card-modern {
    border-radius: 16px;
  }
  body.login-page .login-brand {
    padding: 1.5rem;
  }
}

body.login-page {
  font-family: 'Inter', 'Poppins', 'Prompt', 'Kanit', sans-serif;
}

body.login-page .login-modern {
  position: relative;
  z-index: 1;
}

body.login-page .magic-sparks {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.38;
}

body.login-page .login-card-modern {
  position: relative;
  background: rgba(14, 10, 26, 0.52);
  border: 1px solid rgba(231, 212, 255, 0.14);
  box-shadow: 0 36px 120px rgba(4, 2, 10, 0.7), 0 0 0 1px rgba(180, 130, 255, 0.08) inset;
  backdrop-filter: blur(18px);
}

body.login-page .login-card-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 18% 12%, rgba(168, 107, 255, 0.22) 0%, transparent 55%),
    radial-gradient(120% 140% at 88% 12%, rgba(72, 149, 255, 0.14) 0%, transparent 60%),
    radial-gradient(120% 140% at 45% 96%, rgba(214, 191, 255, 0.12) 0%, transparent 62%);
  opacity: 0.85;
  pointer-events: none;
}

body.login-page .login-card-modern > * {
  position: relative;
  z-index: 1;
}

body.login-page .login-brand {
  background: linear-gradient(160deg, rgba(124, 77, 255, 0.28), rgba(12, 10, 20, 0.08)),
    linear-gradient(160deg, rgba(90, 54, 170, 0.88), rgba(22, 16, 40, 0.86));
  border-right: 1px solid rgba(231, 212, 255, 0.12);
  backdrop-filter: blur(14px);
}

body.login-page .login-brand-title,
body.login-page .login-form-title {
  letter-spacing: 0.5px;
}

body.login-page .login-form-subtitle {
  max-width: 44ch;
}

body.login-page .login-form-modern .input-group-text,
body.login-page .login-form-modern .form-control,
body.login-page .login-form-modern .password-toggle {
  background: rgba(10, 8, 18, 0.38);
  border-color: rgba(214, 191, 255, 0.18);
}

body.login-page .login-form-modern .form-control::placeholder {
  color: rgba(226, 232, 240, 0.5);
}

body.login-page .login-form-modern .form-control:focus {
  border-color: rgba(167, 139, 250, 0.85);
  box-shadow: 0 0 0 0.2rem rgba(167, 139, 250, 0.18), 0 0 0 1px rgba(167, 139, 250, 0.22) inset;
}

body.login-page .login-form-modern .password-toggle {
  color: rgba(226, 232, 240, 0.72);
}

body.login-page .login-form-modern .password-toggle:hover {
  color: #fff;
}

body.login-page .login-options .form-check-label {
  color: rgba(226, 232, 240, 0.75);
}

body.login-page .login-options .form-check-input {
  background-color: rgba(10, 8, 18, 0.35);
  border-color: rgba(214, 191, 255, 0.24);
}

body.login-page .login-options .form-check-input:checked {
  background-color: #8b5cf6;
  border-color: rgba(214, 191, 255, 0.5);
}

body.login-page .login-submit {
  background: linear-gradient(135deg, #9f7bff, #6d37ff, #4f46e5);
  background-size: 160% 160%;
  box-shadow: 0 14px 34px rgba(109, 40, 217, 0.34), 0 0 0 1px rgba(214, 191, 255, 0.14) inset;
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.22s ease, background-position 0.35s ease;
}

body.login-page .login-submit:hover {
  background-position: 100% 0%;
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(109, 40, 217, 0.42), 0 0 28px rgba(168, 107, 255, 0.18);
  filter: brightness(1.04);
}

body.login-page .login-submit:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body.login-page .login-bg,
  body.login-page .login-bg::before,
  body.login-page .login-bg::after,
  body.login-page .magic-sparks span {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

body.login-page.login-v2 {
  margin: 0;
  padding: 0;
  background: #05030a;
  color: #eef2ff;
  font-family: 'Inter', 'Poppins', 'Prompt', 'Kanit', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

body.login-page.login-v2 .login-v2-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 140% at 10% 12%, rgba(124, 58, 237, 0.46) 0%, rgba(5, 3, 10, 0) 54%),
    radial-gradient(110% 130% at 92% 22%, rgba(59, 130, 246, 0.28) 0%, rgba(5, 3, 10, 0) 56%),
    radial-gradient(140% 120% at 50% 92%, rgba(91, 33, 182, 0.26) 0%, rgba(5, 3, 10, 0) 62%),
    radial-gradient(120% 120% at 50% 50%, rgba(10, 6, 22, 1) 0%, rgba(5, 3, 10, 1) 55%, rgba(2, 1, 6, 1) 100%);
}

body.login-page.login-v2 .login-v2-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 18% 22%, rgba(255,255,255,0.45) 0%, transparent 70%),
    radial-gradient(1px 1px at 76% 34%, rgba(255,255,255,0.35) 0%, transparent 70%),
    radial-gradient(2px 2px at 58% 74%, rgba(255,255,255,0.25) 0%, transparent 70%),
    radial-gradient(1px 1px at 24% 78%, rgba(255,255,255,0.22) 0%, transparent 70%),
    radial-gradient(1px 1px at 86% 82%, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0.45;
  animation: loginV2Twinkle 7s ease-in-out infinite;
}

body.login-page.login-v2 .login-v2-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 90% at 50% 60%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 62%, rgba(0,0,0,0.7) 100%);
  opacity: 0.9;
}

body.login-page.login-v2 .login-v2-aurora {
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 120deg,
    rgba(167, 139, 250, 0.12),
    rgba(96, 165, 250, 0.10),
    rgba(244, 114, 182, 0.08),
    rgba(167, 139, 250, 0.12)
  );
  filter: blur(48px);
  opacity: 0.6;
  animation: loginV2Aurora 22s ease-in-out infinite;
}

body.login-page.login-v2 .login-v2-portal {
  position: absolute;
  width: 560px;
  height: 560px;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 22px rgba(167, 139, 250, 0.18));
  opacity: 0.9;
}

body.login-page.login-v2 .login-v2-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(214, 191, 255, 0.22);
  box-shadow: 0 0 48px rgba(124, 58, 237, 0.14);
  animation: loginV2Spin 18s linear infinite;
}

body.login-page.login-v2 .login-v2-ring:nth-child(1) {
  inset: 0;
  border-color: rgba(214, 191, 255, 0.20);
  animation-duration: 22s;
}

body.login-page.login-v2 .login-v2-ring:nth-child(2) {
  inset: 52px;
  border-style: dashed;
  border-color: rgba(167, 139, 250, 0.22);
  opacity: 0.85;
  animation-duration: 16s;
  animation-direction: reverse;
}

body.login-page.login-v2 .login-v2-ring:nth-child(3) {
  inset: 118px;
  border-color: rgba(96, 165, 250, 0.18);
  opacity: 0.7;
  animation-duration: 26s;
}

body.login-page.login-v2 .login-v2-core {
  position: absolute;
  inset: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, rgba(199, 170, 255, 0.34) 0%, rgba(124, 58, 237, 0.18) 28%, rgba(59, 130, 246, 0.10) 48%, rgba(0, 0, 0, 0) 72%);
  box-shadow: 0 0 80px rgba(124, 58, 237, 0.18);
  animation: loginV2Pulse 6.5s ease-in-out infinite;
}

body.login-page.login-v2 .login-v2-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.login-page.login-v2 .login-v2-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(243, 232, 255, 0.95);
  box-shadow: 0 0 18px rgba(190, 150, 255, 0.55);
  opacity: 0.55;
  animation: loginV2Float 7.5s ease-in-out infinite;
}

body.login-page.login-v2 .login-v2-particles span:nth-child(1) { top: 14%; left: 10%; animation-delay: 0s; }
body.login-page.login-v2 .login-v2-particles span:nth-child(2) { top: 22%; left: 86%; width: 4px; height: 4px; animation-delay: 1s; opacity: 0.45; }
body.login-page.login-v2 .login-v2-particles span:nth-child(3) { top: 38%; left: 72%; width: 5px; height: 5px; animation-delay: 2s; }
body.login-page.login-v2 .login-v2-particles span:nth-child(4) { top: 46%; left: 16%; width: 4px; height: 4px; animation-delay: 3s; opacity: 0.4; }
body.login-page.login-v2 .login-v2-particles span:nth-child(5) { top: 62%; left: 90%; width: 6px; height: 6px; animation-delay: 4s; }
body.login-page.login-v2 .login-v2-particles span:nth-child(6) { top: 74%; left: 12%; width: 5px; height: 5px; animation-delay: 5s; }
body.login-page.login-v2 .login-v2-particles span:nth-child(7) { top: 84%; left: 62%; width: 4px; height: 4px; animation-delay: 1.5s; opacity: 0.35; }
body.login-page.login-v2 .login-v2-particles span:nth-child(8) { top: 10%; left: 58%; width: 5px; height: 5px; animation-delay: 2.6s; }
body.login-page.login-v2 .login-v2-particles span:nth-child(9) { top: 32%; left: 34%; width: 4px; height: 4px; animation-delay: 4.2s; opacity: 0.35; }
body.login-page.login-v2 .login-v2-particles span:nth-child(10) { top: 56%; left: 46%; width: 6px; height: 6px; animation-delay: 0.8s; }
body.login-page.login-v2 .login-v2-particles span:nth-child(11) { top: 70%; left: 74%; width: 4px; height: 4px; animation-delay: 3.4s; opacity: 0.4; }
body.login-page.login-v2 .login-v2-particles span:nth-child(12) { top: 88%; left: 28%; width: 5px; height: 5px; animation-delay: 5.8s; }

body.login-page.login-v2 .login-v2-main {
  position: relative;
  z-index: 1;
}

body.login-page.login-v2 .login-v2-card {
  position: relative;
  border-radius: 26px;
  background: rgba(10, 8, 18, 0.56);
  border: 1px solid rgba(214, 191, 255, 0.16);
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(167, 139, 250, 0.10) inset;
  backdrop-filter: blur(22px);
  padding: 28px;
}

body.login-page.login-v2 .login-v2-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 140% at 18% 12%, rgba(167, 139, 250, 0.24) 0%, transparent 58%),
    radial-gradient(120% 140% at 92% 18%, rgba(96, 165, 250, 0.16) 0%, transparent 58%),
    radial-gradient(120% 120% at 50% 100%, rgba(244, 114, 182, 0.10) 0%, transparent 62%);
  opacity: 0.8;
  pointer-events: none;
}

body.login-page.login-v2 .login-v2-card > * {
  position: relative;
  z-index: 1;
}

body.login-page.login-v2 .login-v2-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.login-page.login-v2 .login-v2-crest {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(214, 191, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(214, 191, 255, 0.10) inset, 0 18px 60px rgba(124, 58, 237, 0.18);
  display: grid;
  place-items: center;
}

body.login-page.login-v2 .login-v2-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.9);
}

body.login-page.login-v2 .login-v2-title {
  font-family: 'Cinzel Decorative', 'Poppins', 'Inter', 'Prompt', sans-serif;
  font-weight: 700;
  letter-spacing: 0.6px;
  font-size: 1.35rem;
  line-height: 1.1;
  color: rgba(245, 243, 255, 0.96);
}

body.login-page.login-v2 .login-v2-subtitle {
  margin-top: 2px;
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.68);
}

body.login-page.login-v2 .login-v2-divider {
  height: 1px;
  margin: 18px 0 16px;
  background: linear-gradient(90deg, rgba(214, 191, 255, 0), rgba(214, 191, 255, 0.26), rgba(96, 165, 250, 0.18), rgba(214, 191, 255, 0));
}

body.login-page.login-v2 .login-v2-copy {
  margin-bottom: 18px;
}

body.login-page.login-v2 .login-v2-form-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(245, 243, 255, 0.96);
}

body.login-page.login-v2 .login-v2-form-subtitle {
  margin-top: 2px;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.68);
}

body.login-page.login-v2 .login-v2-form {
  margin: 0;
}

body.login-page.login-v2 .login-v2-field {
  margin-bottom: 14px;
}

body.login-page.login-v2 .login-v2-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.78);
  margin-bottom: 8px;
}

body.login-page.login-v2 .login-v2-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(8, 6, 14, 0.42);
  border: 1px solid rgba(214, 191, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.06) inset;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease, background 0.2s ease;
}

body.login-page.login-v2 .login-v2-input:focus-within {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12), 0 0 28px rgba(124, 58, 237, 0.14);
  background: rgba(10, 8, 18, 0.55);
  transform: translateY(-1px);
}

body.login-page.login-v2 .login-v2-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: rgba(226, 232, 240, 0.72);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(214, 191, 255, 0.10);
}

body.login-page.login-v2 .login-v2-control {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(245, 243, 255, 0.96);
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 0;
}

body.login-page.login-v2 .login-v2-control::placeholder {
  color: rgba(226, 232, 240, 0.48);
}

body.login-page.login-v2 .login-v2-toggle {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(214, 191, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.72);
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.18s ease;
}

body.login-page.login-v2 .login-v2-toggle:hover {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-1px);
}

body.login-page.login-v2 .login-v2-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0 14px;
}

body.login-page.login-v2 .login-v2-check .form-check-input {
  background-color: rgba(8, 6, 14, 0.42);
  border-color: rgba(214, 191, 255, 0.18);
}

body.login-page.login-v2 .login-v2-check .form-check-input:checked {
  background-color: #8b5cf6;
  border-color: rgba(214, 191, 255, 0.45);
}

body.login-page.login-v2 .login-v2-check .form-check-label {
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.92rem;
}

body.login-page.login-v2 .login-v2-link {
  color: rgba(199, 170, 255, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

body.login-page.login-v2 .login-v2-link:hover {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.55);
}

body.login-page.login-v2 .login-v2-submit {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(109, 40, 217, 1), rgba(59, 130, 246, 0.92));
  background-size: 160% 160%;
  box-shadow: 0 16px 44px rgba(109, 40, 217, 0.36), 0 0 0 1px rgba(214, 191, 255, 0.12) inset;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.22s ease, background-position 0.35s ease;
}

body.login-page.login-v2 .login-v2-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.22) 30%, rgba(255,255,255,0) 60%);
  transform: translateX(-80%);
  transition: transform 0.6s ease;
  opacity: 0.9;
}

body.login-page.login-v2 .login-v2-submit:hover {
  background-position: 100% 0%;
  transform: translateY(-1px);
  box-shadow: 0 22px 64px rgba(109, 40, 217, 0.46), 0 0 34px rgba(167, 139, 250, 0.16);
  filter: brightness(1.04);
}

body.login-page.login-v2 .login-v2-submit:hover::before {
  transform: translateX(120%);
}

body.login-page.login-v2 .login-v2-submit:active {
  transform: translateY(0);
}

body.login-page.login-v2 .login-v2-footnote {
  margin-top: 14px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.62);
}

@media (max-width: 575px) {
  body.login-page.login-v2 .login-v2-card {
    padding: 22px;
    border-radius: 22px;
  }
  body.login-page.login-v2 .login-v2-portal {
    width: 440px;
    height: 440px;
    top: 34%;
    opacity: 0.75;
  }
}

@keyframes loginV2Spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes loginV2Pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes loginV2Float {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-18px); opacity: 0.75; }
}

@keyframes loginV2Aurora {
  0% { transform: translate3d(-30px, 20px, 0) rotate(0deg) scale(1.05); opacity: 0.55; }
  50% { transform: translate3d(40px, -20px, 0) rotate(25deg) scale(1.15); opacity: 0.7; }
  100% { transform: translate3d(20px, 10px, 0) rotate(45deg) scale(1.1); opacity: 0.6; }
}

@keyframes loginV2Twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  body.login-page.login-v2 .login-v2-aurora,
  body.login-page.login-v2 .login-v2-bg::before,
  body.login-page.login-v2 .login-v2-ring,
  body.login-page.login-v2 .login-v2-core,
  body.login-page.login-v2 .login-v2-particles span {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

body.member-page {
  --rhx-nav-bg: rgba(10, 7, 18, 0.72);
  --rhx-nav-border: rgba(186, 132, 255, 0.18);
  --rhx-nav-text: rgba(245, 243, 255, 0.92);
  --rhx-nav-muted: rgba(226, 232, 240, 0.74);
  --rhx-nav-accent: var(--member-accent, #b482ff);
  --rhx-nav-accent-2: var(--member-accent-2, #7c3aed);
  --rhx-nav-blue: rgba(96, 165, 250, 0.85);
  --rhx-nav-radius: 18px;
  --rhx-nav-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  padding-top: 86px;
}

body.member-page .rhx-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(5, 3, 10, 0.78), rgba(5, 3, 10, 0));
  animation: rhxNavFadeIn 420ms ease both;
}

body.member-page .rhx-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--rhx-nav-radius);
  background: var(--rhx-nav-bg);
  border: 1px solid var(--rhx-nav-border);
  box-shadow: var(--rhx-nav-shadow), 0 0 0 1px rgba(180, 130, 255, 0.06) inset;
  backdrop-filter: blur(16px);
}

body.member-page .rhx-nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

body.member-page .member-nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(180, 130, 255, 0.32);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.9);
}

body.member-page .member-nav-brand {
  font-family: 'Cinzel Decorative', 'Prompt', sans-serif;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--rhx-nav-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 26ch;
  text-shadow: 0 0 18px rgba(180, 130, 255, 0.26);
}

body.member-page .rhx-nav-toggle {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(186, 132, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 243, 255, 0.9);
  display: none;
  place-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.member-page .rhx-nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(186, 132, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(180, 130, 255, 0.10), 0 0 24px rgba(124, 58, 237, 0.14);
}

body.member-page .rhx-nav-toggle-icon {
  width: 18px;
  height: 2px;
  background: rgba(245, 243, 255, 0.86);
  border-radius: 999px;
  position: relative;
  display: block;
}

body.member-page .rhx-nav-toggle-icon::before,
body.member-page .rhx-nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(245, 243, 255, 0.86);
  border-radius: 999px;
}

body.member-page .rhx-nav-toggle-icon::before { top: -6px; }
body.member-page .rhx-nav-toggle-icon::after { top: 6px; }

body.member-page .rhx-nav-drawer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

body.member-page .rhx-nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  flex-wrap: nowrap;
}

body.member-page .rhx-nav-menu .member-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--rhx-nav-muted);
  min-width: 0;
  flex: 0 1 210px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.member-page .rhx-nav-menu .member-nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(180, 130, 255, 0.16), rgba(255,255,255,0));
  transform: translateX(-130%);
  transition: transform 0.55s ease;
  opacity: 0.85;
}

body.member-page .rhx-nav-menu .member-nav-link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0), rgba(167, 139, 250, 0.95), rgba(96, 165, 250, 0.75), rgba(167, 139, 250, 0));
  transform: scaleX(0.12);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.member-page .rhx-nav-menu .member-nav-link:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px rgba(186, 132, 255, 0.12) inset, 0 0 26px rgba(124, 58, 237, 0.12);
  transform: translateY(-1px);
}

body.member-page .rhx-nav-menu .member-nav-link:hover::before {
  transform: translateX(130%);
}

body.member-page .rhx-nav-menu .member-nav-link.active {
  color: rgba(255, 255, 255, 0.98);
  background: rgba(180, 130, 255, 0.10);
  box-shadow: 0 0 0 1px rgba(186, 132, 255, 0.18) inset, 0 0 34px rgba(124, 58, 237, 0.16);
}

body.member-page .rhx-nav-menu .member-nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

body.member-page .rhx-nav-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(186, 132, 255, 0.12);
  color: rgba(226, 232, 240, 0.78);
  flex: 0 0 auto;
}

body.member-page .rhx-nav-item-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.1px;
}

body.member-page .rhx-nav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

body.member-page .member-nav-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(186, 132, 255, 0.12);
  color: rgba(226, 232, 240, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 260px;
}

body.member-page .member-nav-meta i {
  color: rgba(199, 170, 255, 0.92);
  filter: drop-shadow(0 0 10px rgba(180, 130, 255, 0.24));
  flex: 0 0 auto;
}

body.member-page .rhx-nav-meta-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.member-page .rhx-nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(186, 132, 255, 0.14);
  flex: 0 0 auto;
}

body.member-page .rhx-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.92);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12), 0 0 18px rgba(52, 211, 153, 0.18);
  animation: rhxOnlinePulse 2.2s ease-in-out infinite;
}

body.member-page .rhx-nav-status-text {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
}

body.member-page .rhx-profile {
  position: relative;
  margin-left: auto;
}

body.member-page .rhx-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(186, 132, 255, 0.16);
  background: radial-gradient(circle at 0 0, rgba(186, 132, 255, 0.22), transparent 60%), rgba(10, 8, 18, 0.86);
  color: rgba(245, 243, 255, 0.96);
  cursor: pointer;
  min-width: 0;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body.member-page .rhx-profile-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(186, 132, 255, 0.32);
  box-shadow: 0 18px 48px rgba(109, 40, 217, 0.26);
}

body.member-page .rhx-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 10%, rgba(248, 250, 252, 0.98), rgba(186, 132, 255, 0.92));
  color: #0f172a;
  flex: 0 0 auto;
}

body.member-page .rhx-profile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

body.member-page .rhx-profile-name {
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.member-page .rhx-profile-id {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.76);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.member-page .rhx-profile-caret {
  margin-left: 4px;
  color: rgba(226, 232, 240, 0.72);
  flex: 0 0 auto;
}

body.member-page .rhx-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 260px;
  max-width: 320px;
  transform-origin: top right;
  transform: scale(0.96) translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 80;
}

body.member-page .rhx-profile-open .rhx-profile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

body.member-page .rhx-profile-card {
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: rgba(10, 8, 18, 0.96);
  border: 1px solid rgba(186, 132, 255, 0.26);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(180, 130, 255, 0.12) inset;
}

body.member-page .rhx-profile-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
}

body.member-page .rhx-profile-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(226, 232, 240, 0.78);
}

body.member-page .rhx-profile-card-label i {
  color: rgba(199, 170, 255, 0.92);
}

body.member-page .rhx-profile-card-value {
  color: rgba(245, 243, 255, 0.96);
  font-weight: 600;
}

body.member-page .rhx-profile-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.92);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14), 0 0 18px rgba(52, 211, 153, 0.26);
  display: inline-block;
  margin-right: 6px;
}

body.member-page .rhx-profile-card-actions {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(186, 132, 255, 0.24);
}

body.member-page .member-logout-btn.rhx-profile-logout {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f97373, #ef4444);
  color: #fef2f2;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.member-page .member-logout-btn.rhx-profile-logout:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(127, 29, 29, 0.55);
  filter: brightness(1.04);
}

body.member-page .member-logout-btn.rhx-profile-logout i {
  color: #fee2e2;
}

body.member-page .rhx-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(6px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.member-page .rhx-nav-drawer-top {
  display: none;
}

body.member-page .rhx-nav-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(186, 132, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 243, 255, 0.9);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body.member-page .rhx-nav-close:hover {
  transform: translateY(-1px);
  border-color: rgba(186, 132, 255, 0.34);
}

@media (max-width: 991.98px) {
  body.member-page .rhx-nav {
    padding: 12px 12px;
  }
  body.member-page .rhx-nav-toggle {
    display: grid;
  }
  body.member-page .rhx-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(88vw, 380px);
    padding: 16px;
    background: rgba(8, 6, 14, 0.86);
    border-left: 1px solid rgba(186, 132, 255, 0.16);
    box-shadow: -30px 0 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(180, 130, 255, 0.08) inset;
    backdrop-filter: blur(18px);
    transform: translateX(110%);
    transition: transform 0.24s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    z-index: 70;
  }
  body.member-page .rhx-nav-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  body.member-page .rhx-nav-drawer-title {
    font-weight: 800;
    letter-spacing: 0.4px;
    color: rgba(245, 243, 255, 0.92);
  }
  body.member-page .rhx-nav-menu {
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
  }
  body.member-page .rhx-nav-menu .member-nav-link {
    width: 100%;
    flex: 0 0 auto;
  }
  body.member-page .rhx-nav-meta {
    flex-direction: column;
    align-items: stretch;
  }
  body.member-page .member-nav-meta {
    max-width: none;
  }
  body.member-page .member-logout-btn.rhx-nav-logout {
    max-width: none;
    justify-content: center;
  }
  body.member-page.rhx-nav-open .rhx-nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  body.member-page.rhx-nav-open .rhx-nav-drawer {
    transform: translateX(0);
  }
}

@keyframes rhxNavFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rhxOnlinePulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.22); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.member-page .rhx-nav,
  body.member-page .rhx-nav-menu .member-nav-link::before,
  body.member-page .rhx-nav-dot {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
