/**
 * ============================================
 * FLASH STAR - VIEWS CSS
 * ============================================
 * Combined CSS extracted from view files.
 * DO NOT write inline <style> in view files.
 * Add new styles here instead.
 * ============================================
 */

/* ============================================
 * HOME (view/home.vw.php)
 * ============================================ */

/* certificate frame with overlay text */
.certificate-area {
  position: relative;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}
.certificate-area img {
  width: 100%;
  height: auto;
  display: block;
}
.certificate-area .cert-info {
  position: absolute;
  top: 57%;
  left: 50%;
  height: 80%;
  transform: translate(-50%, -50%);
  color: #3b3b3b;
  /* text-shadow: 0 0 6px rgba(0, 0, 0, 0.7); */
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.certificate-area .cert-info h4 {
  position: absolute;
  top: 41%;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.certificate-area .cert-info p {
  position: absolute;
  top: 58%;
  margin: 0;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .certificate-area .cert-info {
    top: 40%;
    width: 95%;
    height: 80%;
  }
  .certificate-area .cert-info h4 {
    font-size: 0.875rem;
    top: 62%;
  }
  .certificate-area .cert-info p {
    font-size: 0.74rem;
    top: 79%;
  }
}

@media (max-width: 767px) {
  .certificate-area .cert-info {
    top: 40%;
    width: 95%;
    height: 80%;
  }
  .certificate-area .cert-info h4 {
    font-size: 0.875rem;
    top: 62%;
  }
  .certificate-area .cert-info p {
    font-size: 0.74rem;
    top: 79%;
  }
}


.fs-greet-card {
  position: relative;
  background: linear-gradient(135deg, #0d0b2e, #1a1044);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 24px 20px 18px;
  margin-bottom: 20px;
  overflow: hidden;
  color: #fff;
}
.fs-greet-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #8b5cf6, #ff2d75);
}
.fs-greet-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
  pointer-events: none;
}
.fs-greet-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.fs-greet-emoji {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}
.fs-greet-title {
  font-family: "Orbitron", "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #f0f0ff;
  margin: 0 0 4px;
  line-height: 1.3;
}
.fs-greet-sub {
  color: #94a3c4;
  font-size: 14px;
  margin: 0;
}
.fs-greet-sub strong {
  color: #00d4ff;
}
.fs-greet-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fs-greet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  color: #00d4ff;
  font-size: 12px;
  font-weight: 600;
}
.fs-greet-badge-pack {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
  color: #8b5cf6;
}
.fs-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.fs-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none !important;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.fs-quick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.fs-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}
.fs-quick-card span {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 576px) {
  .fs-greet-title {
    font-size: 16px;
  }
  .fs-greet-emoji {
    font-size: 30px;
  }
  .fs-quick-actions {
    gap: 8px;
  }
  .fs-quick-card {
    padding: 12px 6px;
  }
  .fs-quick-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .fs-quick-card span {
    font-size: 10px;
  }
}

/* ============================================
 * UPGRADE (view/upgrade/index.vw.php)
 * ============================================ */

.info-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.option-card {
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.option-card:hover:not(.disabled) {
  border-color: #ffc107;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  transform: translateY(-3px);
}

.option-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f8f9fa;
}

.option-card.selected {
  border-color: #ffc107;
  background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
}

.option-radio {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* ============================================
 * AGREE / PRE-REGISTER (view/agree-preregister.vw.php)
 * ============================================ */

.text-content {
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.scroll-area {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .text-content {
    font-size: 14px;
    line-height: 1.6;
  }
}

.scroll-area::-webkit-scrollbar {
  width: 12px;
}

@media (min-width: 768px) {
  .scroll-area::-webkit-scrollbar {
    width: 8px;
  }
}

.scroll-area::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.scroll-area::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.scroll-area::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* ============================================
 * DIAGRAM / NETWORK TREE (view/diagram/index.vw.php)
 * ============================================ */

.fs-diagram-wrapper {
  padding: 12px;
  max-width: 700px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fs-diagram-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.fs-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  color: #7c3aed;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.fs-back-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  transform: translateX(-2px);
}

.fs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #9ca3af;
  flex-wrap: wrap;
}

.fs-breadcrumb-item {
  color: #6b7280;
  cursor: pointer;
}

.fs-breadcrumb-item:hover {
  color: #7c3aed;
}

.fs-breadcrumb-sep {
  color: #d1d5db;
}

.fs-tree-layout {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 340px;
  min-width: 580px;
}

/* Root */
.fs-root-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.fs-root-card {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.06),
    rgba(139, 92, 246, 0.06)
  );
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  width: 140px;
  animation: fadeIn 0.3s ease;
}

.fs-root-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  margin: 0 auto 10px;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
}

.fs-root-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
  word-break: break-word;
}

.fs-root-id {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.fs-root-pack {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.fs-root-stats {
  font-size: 11px;
  color: #6b7280;
}

.fs-root-stats strong {
  color: #7c3aed;
}

/* Connector */
.fs-connector-col {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.fs-connector-svg {
  width: 60px;
  height: 100%;
}

.fs-connector-svg line {
  stroke: rgba(139, 92, 246, 0.3);
  stroke-width: 2;
}

.fs-connector-svg circle {
  fill: #8b5cf6;
}

/* Downline */
.fs-downline-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fs-dl-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s;
  animation: slideLeft 0.3s ease both;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.fs-dl-card:nth-child(1) {
  animation-delay: 0.05s;
}
.fs-dl-card:nth-child(2) {
  animation-delay: 0.1s;
}
.fs-dl-card:nth-child(3) {
  animation-delay: 0.15s;
}
.fs-dl-card:nth-child(4) {
  animation-delay: 0.2s;
}
.fs-dl-card:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fs-dl-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.fs-dl-card:active {
  transform: translateX(2px) scale(0.99);
}

.fs-dl-num {
  width: 28px;
  height: 28px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
  flex-shrink: 0;
}

.fs-dl-card:hover .fs-dl-num {
  background: rgba(139, 92, 246, 0.15);
  color: #6d28d9;
}

.fs-dl-info {
  flex: 1;
  min-width: 0;
}

.fs-dl-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-dl-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.fs-dl-id {
  font-size: 10px;
  color: #7c3aed;
  font-weight: 500;
}

.fs-dl-pack {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
}

.fs-dl-pack-bisnis {
  background: rgba(0, 200, 83, 0.1);
  color: #059669;
}

.fs-dl-pack-basic {
  background: rgba(0, 0, 0, 0.04);
  color: #9ca3af;
}

.fs-dl-count {
  font-size: 10px;
  color: #9ca3af;
}

.fs-dl-count strong {
  color: #7c3aed;
}

.fs-dl-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.06);
  color: #d1d5db;
  font-size: 11px;
  transition: all 0.2s;
}

.fs-dl-card:hover .fs-dl-arrow {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

.fs-dl-card-add {
  border-style: dashed;
  border-color: #d1d5db;
  background: #fafafa;
  justify-content: center;
  gap: 8px;
}

.fs-dl-card-add:hover {
  border-color: #059669;
  background: rgba(0, 200, 83, 0.04);
}

.fs-dl-add-icon {
  width: 28px;
  height: 28px;
  background: rgba(0, 200, 83, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  font-size: 12px;
}

.fs-dl-add-text {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.fs-dl-card-add:hover .fs-dl-add-text {
  color: #059669;
}

.fs-loading {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
}

.fs-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(139, 92, 246, 0.15);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Fallback vertikal HANYA untuk layar sangat kecil (<=320px) */
@media (max-width: 320px) {
  .fs-tree-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 0;
  }

  .fs-root-col {
    justify-content: center;
  }

  .fs-root-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 14px;
  }

  .fs-root-avatar {
    margin: 0;
    flex-shrink: 0;
  }

  .fs-root-name {
    font-size: 15px;
  }

  .fs-connector-col {
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: center;
  }

  .fs-connector-svg {
    width: 100%;
    height: 20px;
  }

  .fs-dl-card {
    padding: 10px 12px;
  }

  .fs-diagram-wrapper {
    overflow-x: visible;
  }
}

/* ============================================
 * REGISTER STEP 2 (view/register/post2.vw.php)
 * ============================================ */

.member-type-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.member-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.member-type-card.selected {
  border-color: #0d6efd;
  background: linear-gradient(135deg, #e7f3ff 0%, #ffffff 100%);
  box-shadow: 0 8px 16px rgba(13, 110, 253, 0.2);
}

.member-type-icon {
  font-size: 48px;
  margin-bottom: 10px;
  display: block;
}

.member-type-card.selected .member-type-icon {
  color: #0d6efd;
}

/* ============================================
 * SYNC NETWORK (view/sync-net.vw.php)
 * ============================================ */

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

.check-icon {
  width: 60px;
  height: 60px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 15px;
}

.check-icon::before {
  content: "✓";
}

/* ============================================
 * SECURITY TOKEN (view/security/token.vw.php)
 * ============================================ */

/* Modern Form Styling */
.geex-content__authentication__form {
  background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(159, 168, 218, 0.15);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.geex-content__authentication__form::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 50%
  );
  transform: rotate(45deg);
}

.geex-content__authentication__form > * {
  position: relative;
  z-index: 2;
}

/* Form Group Styles */
.geex-content__authentication__form-group {
  margin-bottom: 1.75rem;
  position: relative;
  animation: slideInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.geex-content__authentication__form-group:nth-child(1) {
  animation-delay: 0.1s;
}
.geex-content__authentication__form-group:nth-child(2) {
  animation-delay: 0.2s;
}
.geex-content__authentication__form-group:nth-child(3) {
  animation-delay: 0.3s;
}
.geex-content__authentication__form-group:nth-child(4) {
  animation-delay: 0.4s;
}
.geex-content__authentication__form-group:nth-child(5) {
  animation-delay: 0.5s;
}

.geex-content__authentication__label-wrapper {
  margin-bottom: 0.75rem;
}

.geex-content__authentication__label-wrapper label {
  color: #5d4037;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: none;
  margin: 0;
}

/* Input Wrapper */
.input-wrapper {
  position: relative;
  width: 100%;
}

/* Input Styles */
.geex-content__authentication__form input[type="password"],
.geex-content__authentication__form input[type="text"] {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-right: 3rem;
  border: 2px solid rgba(159, 168, 218, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: #424242;
  font-size: 1rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.geex-content__authentication__form input[type="password"]:focus,
.geex-content__authentication__form input[type="text"]:focus {
  outline: none;
  border-color: #7986cb;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 25px rgba(121, 134, 203, 0.15),
    0 0 20px rgba(121, 134, 203, 0.1);
  transform: translateY(-2px);
}

.geex-content__authentication__form input[type="password"]::placeholder,
.geex-content__authentication__form input[type="text"]::placeholder {
  color: rgba(66, 66, 66, 0.6);
  font-weight: 400;
}

/* Toggle Password Icon */
.toggle-password-type {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(66, 66, 66, 0.6);
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.3s ease;
  z-index: 3;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.toggle-password-type:hover {
  color: #7986cb;
  transform: translateY(-50%) scale(1.15);
}

.toggle-password-type:active {
  transform: translateY(-50%) scale(0.95);
}

/* Submit Button */
.geex-content__authentication__form-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #9fa8da 0%, #b39ddb 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(159, 168, 218, 0.25);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  animation-delay: 0.6s;
}

.geex-content__authentication__form-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.geex-content__authentication__form-submit:hover::before {
  left: 100%;
}

.geex-content__authentication__form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(159, 168, 218, 0.35);
  background: linear-gradient(135deg, #8c9eff 0%, #c5cae9 100%);
}

.geex-content__authentication__form-submit:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(159, 168, 218, 0.25);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .geex-content__authentication__form {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 16px;
  }

  .geex-content__authentication__form input[type="password"],
  .geex-content__authentication__form input[type="text"] {
    padding: 0.75rem;
    padding-right: 2.75rem;
    font-size: 0.95rem;
  }

  .toggle-password-type {
    right: 0.875rem;
    font-size: 1.1rem;
    width: 22px;
    height: 22px;
  }

  .geex-content__authentication__form-submit {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .geex-content__authentication__form {
    padding: 1.25rem;
  }

  .geex-content__authentication__form input[type="password"],
  .geex-content__authentication__form input[type="text"] {
    padding: 0.7rem;
    padding-right: 2.5rem;
    font-size: 0.9rem;
  }

  .toggle-password-type {
    right: 0.75rem;
    font-size: 1rem;
    width: 20px;
    height: 20px;
  }
}

/* ============================================
 * SECURITY TOKEN - Alert overrides
 * (view/security/token.vw.php)
 * ============================================ */

.geex-content__authentication__form .alert {
  border: none;
  border-radius: 15px;
  font-weight: 500;
  backdrop-filter: blur(15px);
  margin-bottom: 1.5rem;
  position: relative;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.geex-content__authentication__form .alert-warning {
  background: linear-gradient(
    135deg,
    rgba(255, 213, 79, 0.2) 0%,
    rgba(255, 183, 77, 0.15) 100%
  );
  color: #6d4c41;
  border-left: 5px solid #ffb74d;
  box-shadow:
    0 8px 20px rgba(255, 183, 77, 0.15),
    0 3px 10px rgba(0, 0, 0, 0.08);
}

.geex-content__authentication__form .alert-warning::before {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  font-size: 1.4rem;
  color: #ff9800;
  text-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.geex-content__authentication__form .alert-warning h6 {
  margin-left: 3rem;
  color: #5d4037;
  font-weight: 600;
  line-height: 1.5;
  font-size: 1rem;
  text-shadow: none;
}

.geex-content__authentication__form .alert-danger {
  background: linear-gradient(
    135deg,
    rgba(239, 154, 154, 0.2) 0%,
    rgba(244, 143, 177, 0.15) 100%
  );
  color: #6d4c41;
  border-left: 5px solid #f48fb1;
  box-shadow:
    0 8px 20px rgba(244, 143, 177, 0.15),
    0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.geex-content__authentication__form .alert-danger::before {
  content: "\f06a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  font-size: 1.4rem;
  color: #e57373;
  text-shadow: 0 2px 8px rgba(229, 115, 115, 0.3);
}

.geex-content__authentication__form .alert-danger ul {
  margin: 0;
  padding-left: 2.5rem;
  list-style: none;
}

.geex-content__authentication__form .alert-danger li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  line-height: 1.4;
}

.geex-content__authentication__form .alert-danger li:last-child {
  margin-bottom: 0;
}

.geex-content__authentication__form .alert-danger li::before {
  content: "\f057";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: #e57373;
  font-size: 0.9rem;
  text-shadow: 0 2px 4px rgba(229, 115, 115, 0.2);
}

.geex-content__authentication__form .alert-danger .text-danger {
  color: #5d4037 !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: none;
}

.geex-content__authentication__form .alert-danger li small.text-danger {
  display: block;
  margin-top: 0.25rem;
}

.geex-content__authentication__form .text-primary {
  color: #7986cb !important;
  text-shadow: none;
}

@media (max-width: 768px) {
  .geex-content__authentication__form .alert-warning h6 {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* ============================================
 * SHARED / COMMON OVERRIDES
 * (used in upgrade & register)
 * ============================================ */

.swal2-container {
  backdrop-filter: blur(5px);
}

.password-input-wrapper {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6c757d;
  font-size: 18px;
  padding: 5px;
  z-index: 10;
}

.swal2-styled.swal2-confirm {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.swal2-styled.swal2-confirm:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

h2#swal2-title.swal2-title {
  padding-left: 0px;
  padding-right: 0px;
  font-size: 1em !important;
}

#swal2-html-container.swal2-html-container {
  padding-left: 0px;
  padding-right: 0px;
}

/* Smooth transitions for buttons (agree-preregister) */
.btn {
  transition: all 0.3s ease;
}

/* ===== SEARCH BAR ===== */
.fs-search-box {
  position: relative;
  margin-bottom: 18px;
}

.fs-search-inner {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 6px 8px 6px 14px;
  gap: 8px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.fs-search-inner:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.fs-search-icon {
  color: #9ca3af;
  font-size: 15px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.fs-search-inner:focus-within .fs-search-icon {
  color: #7c3aed;
}

.fs-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #1f2937;
  padding: 6px 0;
  min-width: 0;
}

.fs-search-input::placeholder {
  color: #b0b7c3;
}

.fs-search-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border: none;
  border-radius: 8px;
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition:
    opacity 0.2s,
    transform 0.1s;
}

.fs-search-btn:hover {
  opacity: 0.88;
}

.fs-search-btn:active {
  transform: scale(0.94);
}

/* Result dropdown */
.fs-search-result {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 99;
  overflow: hidden;
  animation: srFadeIn 0.15s ease;
}

@keyframes srFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fs-search-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: #6b7280;
  font-size: 13px;
}

.fs-search-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fs-search-found {
  padding: 13px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.15s;
  border-left: 3px solid #7c3aed;
}

.fs-search-found:hover {
  background: #f5f3ff;
}

.fs-search-found .sr-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1f2937;
}

.fs-search-found .sr-top i {
  color: #7c3aed;
  font-size: 15px;
}

.fs-search-found .sr-top strong {
  font-weight: 700;
  color: #7c3aed;
}

.fs-search-found .sr-sub {
  font-size: 12px;
  color: #6b7280;
  padding-left: 23px;
}

/* ══════════════════════════════════════════
   TOKENS
══════════════════════════════════════════ */
:root {
  --c-bg: #07070f;
  --c-surface: #0d0d1a;
  --c-glass: #1a1a2e;
  --c-glass-b: rgba(255, 255, 255, 0.08);
  --c-pink: #ff2d6b;
  --c-cyan: #00e8d8;
  --c-gold: #ffd166;
  --c-text: #eeeef5;
  --c-muted: #6b6b8a;
  --c-border: rgba(255, 255, 255, 0.07);
  --r: 13px;
  --font-head: "Syne", sans-serif;
  --font-mono: "DM Mono", monospace;
}

/* ══════════════════════════════════════════
   WRAPPER
══════════════════════════════════════════ */
.tt-wrap {
  width: 100%;
  font-family: var(--font-head);
  background: var(--c-surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  position: relative;
}

/* subtle noise texture overlay */
.tt-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.tt-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: linear-gradient(110deg, #0d0d1f 0%, #110a18 60%, #07101a 100%);
  border-bottom: 1px solid var(--c-border);
}

/* animated gradient line under header */
.tt-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--c-pink) 30%,
    var(--c-cyan) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: hline 4s linear infinite;
}

@keyframes hline {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.tt-header-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-pink), #ff6b9d);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow:
    0 0 22px rgba(255, 45, 107, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

/* rotating ring on icon */
.tt-header-icon::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  background: conic-gradient(
    from 0deg,
    var(--c-pink),
    var(--c-cyan),
    var(--c-pink)
  );
  z-index: -1;
  animation: spin 3s linear infinite;
  opacity: 0.7;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tt-header-text h5 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--c-text);
  margin: 0;
  letter-spacing: 0.3px;
}

.tt-header-text small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #8888aa;
  letter-spacing: 0.5px;
}

/* counter badge */
.tt-counter {
  margin-left: auto;
  text-align: center;
  border-radius: 12px;
  padding: 8px 16px;
  background: rgba(255, 45, 107, 0.08);
  border: 1px solid rgba(255, 45, 107, 0.2);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.tt-counter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 45, 107, 0.15),
    transparent 70%
  );
}

.tt-counter-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-pink), var(--c-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tt-counter-total {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-muted);
}

.tt-counter-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--c-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* ══════════════════════════════════════════
   GRID BODY
══════════════════════════════════════════ */
.tt-body {
  position: relative;
  z-index: 1;
  padding: 16px;
}

.tt-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

@media (max-width: 1024px) {
  .tt-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 860px) {
  .tt-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 560px) {
  .tt-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* ══════════════════════════════════════════
   CARD
══════════════════════════════════════════ */
.tt-card {
  position: relative;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 14px 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  /* entrance animation */
  animation: cardIn 0.35s ease both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* animated border gradient */
.tt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 45, 107, 0),
    rgba(0, 232, 216, 0)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.25s;
  pointer-events: none;
}

/* glow on hover */
.tt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 45, 107, 0.08),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.tt-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 30px rgba(255, 45, 107, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

.tt-card:hover::before {
  background: linear-gradient(
    135deg,
    rgba(255, 45, 107, 0.55),
    rgba(0, 232, 216, 0.4)
  );
}

.tt-card:hover::after {
  opacity: 1;
}

.tt-card:active {
  transform: translateY(-1px) scale(0.975);
}

/* ── Avatar ── */
.tt-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-pink), var(--c-cyan));
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(255, 45, 107, 0.35);
  position: relative;
  z-index: 1;
  transition: box-shadow 0.2s;
}

.tt-card:hover .tt-avatar {
  box-shadow:
    0 0 22px rgba(255, 45, 107, 0.6),
    0 0 8px rgba(0, 232, 216, 0.3);
}

/* ── Username ── */
.tt-username {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 500;
  color: #ffffff;
  word-break: break-all;
  line-height: 1.35;
  position: relative;
  z-index: 1;
  letter-spacing: 0.2px;
}

/* ── Member ID ── */
.tt-memberid {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: #b8b8d8;
  position: relative;
  z-index: 1;
  letter-spacing: 0.4px;
}

/* ── Badge ── */
.tt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 232, 216, 0.15);
  color: #00e8d8;
  border: 1.5px solid rgba(0, 232, 216, 0.5);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.tt-card:hover .tt-badge {
  background: rgba(0, 232, 216, 0.15);
  border-color: rgba(0, 232, 216, 0.5);
}

/* ══════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════ */
.tt-empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.tt-empty i {
  display: block;
  font-size: 2.8rem;
  margin-bottom: 14px;
  opacity: 0.3;
}

.tt-empty-done i {
  color: var(--c-cyan);
  opacity: 1 !important;
}

.tt-empty-done p.main {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-cyan);
  margin: 0 0 4px;
}

.tt-empty-done p.sub {
  color: var(--c-muted);
  font-size: 0.75rem;
  margin: 0;
}

/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
.tt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 16px 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--c-border);
  position: relative;
  z-index: 1;
}

.tt-page-info {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--c-muted);
  padding: 0 10px;
  white-space: nowrap;
  letter-spacing: 0.4px;
}

.tt-page-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  background: var(--c-glass);
  color: var(--c-muted);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  transition: all 0.15s;
  backdrop-filter: blur(6px);
}

.tt-page-btn:hover:not(:disabled) {
  background: rgba(255, 45, 107, 0.1);
  border-color: rgba(255, 45, 107, 0.35);
  color: var(--c-pink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 45, 107, 0.15);
}

.tt-page-btn.active {
  background: linear-gradient(135deg, var(--c-pink), #ff6b9d);
  border-color: var(--c-pink);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 45, 107, 0.4);
  transform: translateY(-1px);
}

.tt-page-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.tt-page-ellipsis {
  color: var(--c-muted);
  font-size: 0.85rem;
  padding: 0 2px;
  line-height: 34px;
  font-family: var(--font-mono);
}

/* stagger card animations */
.tt-card:nth-child(1) {
  animation-delay: 0.02s;
}

.tt-card:nth-child(2) {
  animation-delay: 0.04s;
}

.tt-card:nth-child(3) {
  animation-delay: 0.06s;
}

.tt-card:nth-child(4) {
  animation-delay: 0.08s;
}

.tt-card:nth-child(5) {
  animation-delay: 0.1s;
}

.tt-card:nth-child(6) {
  animation-delay: 0.12s;
}

.tt-card:nth-child(7) {
  animation-delay: 0.14s;
}

.tt-card:nth-child(8) {
  animation-delay: 0.16s;
}

.tt-card:nth-child(n + 9) {
  animation-delay: 0.18s;
}
