@font-face {
  font-family: 'Inter';
  src: url('../fonts/custom/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/custom/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/custom/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/custom/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/custom/SpaceGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

:root {
  /* Neo-Cyber Palette */
  --bg-deep: #0a0e1a;
  --bg-card: rgba(20, 25, 40, 0.8);
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-success: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(20, 25, 40, 0.6);
  --glass-blur: blur(12px);
  --neon-glow: 0 0 15px rgba(59, 130, 246, 0.5);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;

  /* Bootstrap Overrides - STRICT DARK MODE */
  --bs-body-bg: #0a0e1a;
  --bs-body-color: #f8fafc;
  --bs-white: #ffffff;
  --bs-light: #0a0e1a;
  --bs-dark: #0a0e1a;
  color-scheme: dark;

  /* IGNORE Admin Color Settings - Override Base HSL */
  --base: 217, 91%, 60%;
  /* #3b82f6 Electric Blue */
  --base-two: 266, 90%, 66%;
  /* #8b5cf6 Neon Purple */
}

/* CRITICAL: Force dark theme globally */
html,
body {
  background-color: #0a0e1a !important;
  background-image: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.03), transparent),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.03), transparent) !important;
  min-height: 100vh;
}

body {
  font-family: var(--font-main) !important;
  color: var(--text-main) !important;
}

/* Fix Push Notification Alert */
.notification-alert .card {
  background: rgba(20, 25, 40, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
}

.notification-alert .card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.notification-alert h5,
.notification-alert p,
.notification-alert i {
  color: #fff !important;
}

/* NUCLEAR OPTION: Force dark backgrounds on EVERYTHING */
.account-section,
.dashboard-wrapper,
main,
section,
.section,
[class*="section"],
[class*="-section"],
.hero-section,
.about-section,
.service-section,
.plan-section,
.faq-section,
.blog-section,
.testimonial-section,
.feature-section,
.work-section,
.contact-section,
.pt-80,
.pb-80,
.pt-120,
.pb-120,
div[class*="bg-"],
.bg-light,
.bg-white {
  background-color: transparent !important;
  background-image: none !important;
}

/* Override any container backgrounds */
.container,
.row,
.col,
[class*="col-"] {
  background-color: transparent !important;
}

/* GLOBAL TABLE FIXES */
table,
tr,
th,
td,
tbody,
thead {
  color: #ffffff !important;
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.data-not-found {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 1.1rem !important;
  padding: 30px !important;
}

/* Ensure links in tables are visible */
table a {
  color: var(--accent-primary) !important;
}

table a:hover {
  color: #fff !important;
}

/* Fix for any bootstrap 'text-muted' inside tables */
table .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

/* Fix Alert Contrast - Force glassmorphic style on all alerts */
.alert,
.alert-warning,
.alert-info,
.alert-success,
.alert-danger {
  background: rgba(20, 25, 40, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Custom Checkbox */
.form-check-input {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.15em;
  vertical-align: top;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
}

.form-check-input:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
}

.alert h1,
.alert h2,
.alert h3,
.alert h4,
.alert h5,
.alert h6,
.alert p,
.alert span,
.alert div {
  color: #fff !important;
}

.alert a {
  color: var(--accent-primary) !important;
}

/* Copy Animation */
.base-color {
  color: hsl(var(--main)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: all .3s;
}

.copied::after {
  position: absolute;
  top: 8px;
  right: 12%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 1em;
  padding: 5px 5px;
  color: #fff;
  background-color: #FF7000;
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  50% {
    opacity: 0.7;
    transform: translateX(40%);
  }

  70% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
  }
}

/* select 2 css */
.select2-dropdown {
  border: 0 !important;
  margin-top: 6px !important;
  border-radius: 6px !important;
  box-shadow: 0px 5px 30px rgb(0 0 0 / 10%);
}

.select2-search--dropdown {
  padding: 10px 10px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border-color: #ced4da !important;
  padding: 7px 16px;
  border-radius: 6px;
}

.select2-results__option.select2-results__option--selected,
.select2-results__option--selectable,
.select2-container--default .select2-results__option--disabled {
  padding: 12px 14px !important;
  border-bottom: 1px solid #eee;
}

/* Neo-Cyber Select2 Modernization */
.select2-container .select2-selection--single {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff !important;
  padding-left: 15px !important;
  line-height: 50px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 50px !important;
  right: 12px !important;
}

.select2-dropdown {
  background-color: #0d1117 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.select2-results__option {
  color: #fff !important;
  padding: 10px 15px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.select2-results__option--highlighted {
  background-color: var(--accent-primary) !important;
  color: #fff !important;
}

.select2-container--default .select2-results__option--selected {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Glassmorphic Modals */
.modal-content {
  background: rgba(20, 25, 40, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.modal-header,
.modal-footer {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.modal-title,
.modal-body,
label {
  color: #fff !important;
}

/* Global Form Styling */
.form-group label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control,
.form-select {
  background: rgba(20, 25, 40, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 10px;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
  background: rgba(20, 25, 40, 0.8) !important;
}

/* Auth Visibility Fixes */
.form-control::placeholder,
input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Fix Autofill Background */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #0a0e1a inset !important;
  -webkit-text-fill-color: white !important;
}

/* Button & Badge Alignment Fixes (Neo-Cyber) */
.badge {
  padding: 6px 12px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  vertical-align: middle !important;
  text-transform: capitalize;
}

.btn,
.btn--base {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 24px !important;
  /* Balanced vertical padding */
  line-height: 1 !important;
  vertical-align: middle !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.btn i,
.btn--base i {
  margin: 0 8px 0 0 !important;
  /* Consistent spacing for icons */
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  font-size: 1.1em !important;
}

.btn-sm,
.btn-sm.btn--base {
  padding: 6px 16px !important;
  font-size: 0.85rem !important;
}

.rounded-pill {
  border-radius: 50rem !important;
}

/* Fix for table cell alignment */
table td {
  vertical-align: middle !important;
}

/* Modernize File Input Button */
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  background: var(--accent-primary) !important;
  border: none !important;
  color: #fff !important;
  padding: 8px 16px !important;
  margin-right: 15px !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  font-size: 0.875rem !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
  transition: all 0.3s ease !important;
}

/* Attachment Removal Button */
.remove-attachment-btn {
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: all 0.3s ease !important;
}

.remove-attachment-btn:hover {
  background: #ef4444 !important;
  color: #fff !important;
}

/* Restored Utilities */
.sidebar-menu li i {
  font-size: 1.5rem !important;
}

.x-small {
  font-size: 0.75rem !important;
}

.transition-bg {
  transition: background-color 0.3s ease !important;
}

.transition-bg:hover {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

.letter-spacing-1 {
  letter-spacing: 1px !important;
}

/* Neo-Cyber Timer Design */
.neo-timer-box {
  background: rgba(20, 25, 40, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 10px 15px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(5px) !important;
  min-width: 70px !important;
}

.neo-timer-box .digit {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 1.8rem !important;
  color: #fff !important;
  line-height: 1 !important;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5) !important;
}

.neo-timer-box .label {
  font-size: 0.6rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: 5px !important;
}

.neo-timer-sep {
  font-size: 2rem !important;
  color: rgba(255, 255, 255, 0.2) !important;
  margin-top: 5px !important;
}

.blink-status {
  animation: blink 2s infinite !important;
}

@keyframes blink {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

/* Invest Now Plan Card Design */
.plan-card {
  background: rgba(16, 20, 30, 0.6) !important;
  backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  padding: 30px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1) !important;
}

.plan-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.plan-profit-box {
  background: rgba(59, 130, 246, 0.08) !important;
  border: 1px solid rgba(59, 130, 246, 0.15) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  text-align: center;
}

.plan-profit-box h2 {
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.4) !important;
  margin-bottom: 5px !important;
}

.plan-feature-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.plan-feature-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.plan-feature-item:last-child {
  border-bottom: none !important;
}

.plan-feature-item .label {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.plan-feature-item .value {
  color: #fff !important;
  font-weight: 600 !important;
}

/* Calculator Dashboard in Modal */
.calc-dashboard {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px !important;
  overflow: hidden;
}

.calc-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 15px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.calc-item:last-child {
  border-bottom: none !important;
}

.calc-item .label {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

.calc-item .value {
  color: #fff !important;
  font-weight: 700 !important;
  font-family: var(--font-heading) !important;
}

.calc-item .value.profit {
  color: var(--accent-success) !important;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3) !important;
}

.calc-item .value.total {
  color: var(--accent-primary) !important;
  font-size: 1.1rem !important;
}

.calc-item .value.recommit {
  color: #f59e0b !important;
  /* Warning Amber */
}

/* Modal UI Refinements - Hardened */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
}

input[type=number] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.modal-header .btn-close {
  background: transparent !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.8 !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}

.modal-header .btn-close:hover {
  opacity: 1 !important;
  transform: rotate(90deg) !important;
}

.modal-header .btn-close:focus {
  box-shadow: none !important;
}

/* Investment Validation Styles */
#investAmount.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.15) !important;
  background: rgba(239, 68, 68, 0.05) !important;
}

#investAmount.is-valid {
  border-color: var(--accent-success) !important;
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.15) !important;
}

.min-amount-error {
  color: #ef4444 !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center;
  gap: 5px;
}

.btn-confirm-invest:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  filter: grayscale(1) !important;
  pointer-events: none !important;
}

/* Verification Code Styles */
.verification-code-wrapper {
  z-index: 100;
}

.verification-code {
  display: flex;
  position: relative;
  z-index: 1;
  height: 60px;
  width: 100%;
}

.verification-code input {
  position: absolute;
  height: 60px;
  width: 100%;
  left: 0;
  background: transparent !important;
  border: none !important;
  font-size: 32px !important;
  font-weight: 700;
  letter-spacing: 42px;
  text-indent: 14px;
  z-index: 2;
  padding-left: 20px;
  font-family: var(--font-heading);
  color: transparent !important;
  /* Fixed: Make text transparent to prevent double shadow */
  caret-color: var(--base-color);
  /* Add a visible caret for better UX */
}

.verification-code input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.boxes {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.verification-code span {
  height: 60px;
  width: calc((100% / 6) - 8px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  line-height: 58px;
  color: var(--base-color);
  font-size: 24px;
  font-weight: 700;
  transition: all 0.3s ease;
}

#verification-code:focus+.boxes span {
  border-color: var(--base-color);
  box-shadow: 0 0 10px rgba(var(--base-color-rgb), 0.2);
}

@media (max-width: 575px) {
  .verification-code {
    height: 50px;
  }

  .verification-code input {
    height: 50px;
    font-size: 24px !important;
    letter-spacing: 32px;
    text-indent: 10px;
    padding-left: 15px;
  }

  .verification-code span {
    height: 50px;
    line-height: 48px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .verification-code input {
    letter-spacing: 24px;
    text-indent: 8px;
  }
}

/* Neo-Cyber Glow Logo Style */
.neo-glow-text {
  color: #3B82F6;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.6),
    0 0 20px rgba(59, 130, 246, 0.4),
    0 0 30px rgba(59, 130, 246, 0.2);
  animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.6),
      0 0 20px rgba(59, 130, 246, 0.4),
      0 0 30px rgba(59, 130, 246, 0.2);
  }

  to {
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.8),
      0 0 25px rgba(59, 130, 246, 0.5),
      0 0 35px rgba(59, 130, 246, 0.3);
  }
}

/* Premium Neo-Cyber Toggle Switch */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-check-input {
  position: relative;
  width: 44px;
  height: 24px;
  border: none !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50px !important;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none !important;
  -webkit-appearance: none !important;
  flex-shrink: 0;
}

.form-check-input::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.form-check-input:hover {
  background: rgba(59, 130, 246, 0.2) !important;
}

.form-check-input:checked {
  background: linear-gradient(135deg, #3B82F6, #60A5FA) !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.form-check-input:checked::before {
  left: 23px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
  outline: none !important;
}

.form-check-label {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  user-select: none;
  line-height: 24px;
  margin-bottom: 0;
}