/* GLOBAL */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Inter", sans-serif;
  background: #050816;
  color: #e5e7eb;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  padding-top: 56px;
  -webkit-text-size-adjust: 100%;
}

body[data-require-auth] {
  opacity: 0;
}

body[data-require-auth][data-auth-ready="true"] {
  opacity: 1;
  transition: opacity 0.15s ease-out;
}


/* ==== GLOBAL FADE-IN FADE-OUT ==== */
.spa-fade-enter {
  opacity: 0;
  transform: translateY(4px);
}

.spa-fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.spa-fade-leave {
  opacity: 1;
}

.spa-fade-leave-active {
  opacity: 0;
  transition: opacity 140ms ease;
}



.main, .dashboard {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.main-dashboard {
  padding-top: 24px;
}

.page-header {
  margin-bottom: 26px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-header p {
  color: #9ca3af;
  font-size: 14px;
  margin-top: 6px;
  max-width: 520px;
}

/* reCaptcha */
.grecaptcha-badge { 
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.bottom-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bottom-text,
.recaptcha-label {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1;
  opacity: 0.65;
  margin: 0;
  padding: 0;
}


.bottom-dot {
  font-size: 14px;
  opacity: 0.4;
  margin: 0 4px;
}

.recaptcha-label a {
  color: #9ca3af !important;
  text-decoration: none;
}

.recaptcha-label a:hover {
  opacity: 0.9;
  text-decoration: underline;
}


/* NAV */

.nav {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
}

.nav-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 8px 16px;
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  column-gap: 16px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-title {
  justify-self: center !important;
  text-align: center !important;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  white-space: nowrap;
  margin: 0 auto !important;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

.nav-link-active {
  color: #e5e7eb;
  border-color: rgba(52, 211, 153, 0.9);
}

/* Hamburger Button */
.hamburger-btn {
  width: 22px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.hb-line {
  width: 100%;
  height: 1.4px;
  background: #e5e7eb;
  border-radius: 999px;
  opacity: 0.9;
}

/* Dropdown menu */
.hamburger-menu {
  position: absolute;
  top: 44px;
  left: 16px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 8px 0;
  width: max-content;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 50;
}

.hamburger-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  color: #e5e7eb;
  text-decoration: none;
}

.hamburger-item i {
  font-size: 15px;
  width: 18px;
  text-align: center;
  opacity: 0.85;
}

.hamburger-item:hover {
  background: rgba(30, 41, 59, 0.8);
}

.hamburger-separator {
  width: 100%;
  height: 1px;
  background: rgba(148, 163, 184, 0.25); /* soft slate-gray */
  margin: 6px 0;
}


/* LOGIN */
.gsi-material-button.auth-btn {
  min-width: unset;
  max-width: fit-content !important;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  background-image: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.gsi-material-button.auth-btn .gsi-material-button-content-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gsi-material-button.auth-btn .gsi-material-button-contents {
  font-size: 11px;
  color: #e5e7eb;
}

.gsi-material-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  min-width: 100px !important;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.7);
  background-image: linear-gradient(135deg, #fb923c, #ec4899);
  color: #f9fafb;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  outline: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease,
    border-color 0.15s ease;
}

.gsi-material-button.auth-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
  color: #e5e7eb;
  filter: none;
  transform: none;
  max-width: fit-content !important;
}

.gsi-material-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.gsi-material-button-content-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gsi-material-button-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gsi-material-button svg {
  width: 18px;
  height: 18px;
  display: block;
}

.gsi-material-button-contents {
  white-space: nowrap;
}

.gsi-material-button-state {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: transparent;
}

.gsi-material-button.logged-in {
  background-image: none;
  border-color: rgba(34, 197, 94, 0.75);
  color: #ffffff;
}

.gsi-material-button.logged-in:hover {
  filter: brightness(1.05);
  border-color: rgba(49, 208, 107, 0.75);
}

.gsi-material-button.logged-in .gsi-material-button-icon {
  display: none !important;
}

.gsi-material-button:not(.logged-in) .gsi-material-button-icon {
  display: flex !important;
}

.gsi-material-button.auth-btn:not(.logged-in) .gsi-material-button-icon {
  width: 16px !important;
  height: 16px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.google-auth-logo {
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.auth-btn {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
  text-decoration: none;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.auth-btn:hover {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #020617;
  border-color: transparent;
}


/* SEARCH BOX */

.search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  margin-top: 50px;
  margin-bottom: 50px;
}

.search-box-input {
  width: 100%;
  padding-top: 10px;
  padding-right: 32px;
  padding-bottom: 10px;
  padding-left: 24px !important;
  background-color: #1a1b26;
  border: 1px solid #2a2b36;
  border-radius: 18px !important;
  color: #9ca3af;
  font-family: inherit;
  font-size: 13px !important;
  box-sizing: border-box;
}

.search-box-input:focus {
  outline: none;
  border-color: #3c82f6;
}

.search-box-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  border-radius: 18px;
  display: flex;
  align-items: center;
  height: auto;
  padding: 0 6px;
  cursor: pointer;
  color: #b5b5b5;
}

.search-box-btn i {
  font-size: 18px;
}

.search-box-btn:hover {
  filter: brightness(1.35) !important;
}

.search-sep {
  width: 1px;
  height: 20px;
  background-color: rgba(212, 212, 212, 0.15);
  margin-right: 12px;

  position: relative;
  top: 0;
}

.search-box-input::placeholder {
  color: #6b7280 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  font-family: inherit !important;
  opacity: 1 !important;
}


/* SEARCH RESULTS */

.search-category {
  padding: 6px 4px;
  color: #9ca3af;
  font-size: 12px;
  text-transform: uppercase;
  margin-top: 10px;
}

.search-results {
  margin-top: 12px;
  background-color: #111216;
  border: 1px solid #2a2b36;
  border-radius: 12px;
  padding: 10px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.search-result {
  display: block;
  padding: 10px;
  border-bottom: 1px solid #1f2026;
  color: #e5e5e5;
  text-decoration: none;
}

.search-result.active {
  background-color: #1d1e22;
  border-radius: 8px;
}

.search-result:last-child {
  border-bottom: none;
}

.result-title {
  font-size: 15px;
  font-weight: 600;
}

.result-desc {
  font-size: 13px;
  color: #9ca3af;
}

.search-highlight {
  color: #3b82f6;
  font-weight: 600;
}



/* DASHBOARD */

.dashboard-header {
  margin-bottom: 26px;
}

.dashboard-header h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.dashboard-header p {
  color: #9ca3af;
  font-size: 14px;
  margin-top: 6px;
}


/* GRID */

.ex-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: stretch;
}


/* CARD */

.ex-card {
  background: rgba(20, 27, 45, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ex-card-top {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.ex-banner-img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.ex-card-inner {
  padding: 22px 18px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ex-desc {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.banner-title {
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(135deg, #fde047, #f59e0b, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-banner {
  background-image: linear-gradient(135deg, #1f2937, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;        
}

.bybit-banner {
  background-image: linear-gradient(135deg, #facc15, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 0; 
  overflow: hidden;
}

.bybit-logo {
  height: 70px;
  width: auto;
  display: block;
}

.okx-banner {
  background-image: linear-gradient(135deg, #b026ff, #ff4da6, #7b3cff);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 0;
  overflow: hidden;
}

.okx-logo {
  height: 240px;
  width: auto;
  display: block;
}


/* FORMS */

.ex-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 12px;
  color: #cbd5e1;
}

/* PROFILE FORM LAYOUT */
.profile-email-row .input-wrapper {
  flex: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.profile-name-row {
  flex-direction: row;
  gap: 12px;
}

.profile-name-row .form-group {
  flex: 1;
}

.profile-tv-row .profile-tv-line {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
}

.profile-tv-row .profile-tv-line .input-wrapper {
  flex: 0 0 65%;
  max-width: 65%;
}

.profile-tv-row .profile-tv-line .form-actions {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}


/* UID + TOGGLE ROW */

.uid-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.uid-input {
  width: 75% !important;
}

.uid-row .uid-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.uid-row .uid-line .input-wrapper {
  flex: 1;
}


/* INPUTS */

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: stretch;
}

.input-wrapper.risk-input input {
  padding-right: 42px !important;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"] {
  width: 100%;
  background: rgba(20, 27, 45, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.8);
  border-radius: 10px;
  padding: 8px 10px;
  padding-right: 42px;
  font-size: 16px !important;
  color: #f3f4f6;
}

input, select, textarea {
  font-size: 13px !important;
}

input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

input[maxlength] {
  ime-mode: disabled;
}

.risk-row {
  display: flex;
  gap: 8px;
}

.risk-row .risk-line {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
}

.risk-row .input-wrapper {
  flex: 0 0 40%;
  max-width: 40%;
  position: relative;
  display: flex;
  align-items: stretch;
}

.risk-row .form-actions {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 8px;
}

.risk-input {
  max-width: 35%;
  min-width: 170px;
  padding-right: 32px;
}

.spinner {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spinner button {
  border: none;
  background: transparent;
  color: #e5e7eb;
  width: 14px;
  height: 10px;
  position: relative;
  cursor: pointer;
  padding: 0;
}

.spinner button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.spin-up::before {
  border-bottom: 5px solid #e5e7eb;
}

.spin-down::before {
  border-top: 5px solid #e5e7eb;
}

.spinner button:active {
  filter: brightness(1.2);
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch input:checked+.slider,
.toggle-input:checked+.slider {
  background-image: linear-gradient(135deg, #22c55e, #0ea5e9);
}

.switch input:checked+.slider:before,
.toggle-input:checked+.slider:before {
  transform: translateX(20px);
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background-image: linear-gradient(135deg, #fb923c, #ec4899);
  transition: background 0.25s ease, box-shadow 0.2s ease;
}

.slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background-color: #1e2330;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45);
}

.slider.round {
  border-radius: 999px;
}

.form-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.form-actions .btn-save,
.form-actions .btn-delete {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}


.form-status {
  font-size: 12px;
  color: #9ca3af;
}

.form-status.ok {
  color: #4ade80;
}

.form-status.err {
  color: #f87171;
}

.form-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}


/* BUTTONS */

.btn-save {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  border: none;
  color: #f9fafb;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-save:hover {
  filter: brightness(1.03);
}

.btn-delete {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
}

.btn-delete:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 13px;
}

.btn-danger {
  padding: 7px 12px;
  border-radius: 8px;
  background: #ef4444;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.risk-row .form-actions .btn-save,
.risk-row .form-actions .btn-delete {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  white-space: nowrap;
}


/* Toggle eye */

.toggle-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-eye svg,
.toggle-eye svg path {
  fill: #9ca3af !important;
  color: #9ca3af !important;
  stroke: #9ca3af !important;
}

.toggle-eye i {
  color: #9ca3af !important;
}

.toggle-eye .fa-eye-slash:before {
  font-family: "FontAwesome";
  content: "\f070" !important;
}

.eye-open, .eye-closed {
  color: #9ca3af;
  width: 18px;
  height: 18px;
}


/* MODAL */

.modal {
  display: none;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: rgba(20, 27, 45, 0.98);
  border-radius: 12px;
  padding: 24px 24px 22px;
  width: 90%;
  max-width: 380px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.modal-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #f3f4f6;
}

.modal-content p {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 18px 18px 16px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.8);
}

.modal-text {
  font-size: 14px;
  color: #e5e7eb;
  margin-bottom: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}


/* PANEL CARD */

.panel {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px 18px 20px;
  box-shadow: none;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 26px;
  align-items: stretch;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-header-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.panel-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.exchange-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.panel-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.panel-header p {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 3px;
  max-width: 260px;
}

.account-badge {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.badge-muted {
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
}


/* SWITCH WRAPPER */

.switch-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch-label {
  font-size: 12px;
  color: #9ca3af;
}

.toggle-input {
  display: none;
}


/* FORMS */

.exchange-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 13px;
  color: #9ca3af;
}

.form-row small {
  font-size: 12px;
  color: #6b7280;
}

.form-row input {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 8px 10px;
  font-size: 16px !important;
  color: #e5e7eb;
}

.form-row input::placeholder {
  color: #6b7280;
}

.form-row input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}


/* BUTTONS & ACTIONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.1s, transform 0.05s;
}

.btn.primary {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  border-color: rgba(34, 197, 94, 0.8);
  color: #02120a;
}

.btn.danger {
  border-color: rgba(248, 113, 113, 0.7);
  color: #fecaca;
  background: rgba(24, 21, 32, 0.96);
}

.btn:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.5);
}

.btn:active {
  transform: translateY(0.5px);
  box-shadow: none;
}

.form-status {
  font-size: 12px;
  color: #9ca3af;
}

.switch-slim {
  position: relative;
  width: 44px;
  height: 22px;
  display: inline-block;
  border-radius: 22px;
  overflow: hidden;
}

.switch-slim input {
  display: none;
}

.slider-slim {
  position: absolute;
  inset: 0;
  background: #1e293b;
  border-radius: 22px;
  border: none;
  transition: 0.2s;
}

.slider-slim::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #151e31;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.2s;
}

.toggle-input-slim:not(:checked)+.slider-slim {
  background-image: linear-gradient(135deg, #fb923c, #ec4899);
}

.toggle-input-slim:checked+.slider-slim {
  background-image: linear-gradient(135deg, #22c55e, #0ea5e9);
  border-color: #22c55e;
}

.toggle-input-slim:checked+.slider-slim::before {
  transform: translateX(20px);
}

.password-wrapper {
  position: relative;
}

.password-input {
  width: 100%;
  padding-right: 36px;
}

.form-actions-inline {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}


/* BOTTOM PARTIAL */

.bottom-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 0 28px;
  margin-bottom: 40px;
}

.bottom-separator {
  position: absolute;
  top: 0;
  height: 1px;
  width: 100%;
  background: rgba(148, 163, 184, 0.25);
}

.bottom-inner {
  text-align: center;
  z-index: 2;
}

.bottom-text {
  font-size: 13px;
  color: #9ca3af;
  letter-spacing: 0.3px;
}

#bottom-info {
  line-height: 1.6;
  text-align:center;
}

#bottom-info br {
  line-height: 2.5;
  margin-bottom: 6px;
  display: block;
  content: "";
}


/* FOOTER */

.nav-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 40;

  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 10px 16px;
}

.footer-inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.footer-link {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-link:hover {
  color: #e5e7eb;
}


/* UNDER CONSTRUCTION & 404 NOT FOUND */

.uc-wrapper, .nf-wrapper {
  width: 100%;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.uc-card, .nf-card {
  background: rgba(20, 27, 45, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 40px 30px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}

.uc-card h2, .nf-card h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.uc-card p, .nf-card p {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 26px;
}

.uc-btn, .nf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.uc-btn {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
}

.nf-btn {
  background: linear-gradient(135deg, #fb923c, #ec4899);
}

.uc-btn:hover, .nf-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.uc-icon, .nf-icon{
  font-size: 42px;
  margin-bottom: 18px;
}
.uc-icon {
  color: #38bdf8;
}
.nf-icon {
  color: #fa4949;
}


@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}



/* RESPONSIVE */

@media (max-width: 640px) {
  .nav {
    position: fixed;
  }
  
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-header-right {
    align-items: flex-start;
  }

  .nav-inner {
    padding-left: 12px;
    padding-right: 4px;
    column-gap: 8px;
  }

  .nav-right {
    justify-self: end;
    grid-template-columns: auto 1fr auto !important;
  }
}

/* Premium Dropdown Animation */
.menu-anim {
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(4px);
  transition:
    opacity 220ms ease-out,
    transform 220ms ease-out,
    filter 220ms ease-out;
}

.menu-anim.open {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}



/* Start Hidden */
.hidden {
  display: none !important;
}


@media (max-width: 520px) {
  .main {
    padding: 24px 14px 50px;
  }

  .dashboard {
    padding: 24px 14px 50px;
  }

  .risk-input {
    max-width: 100%;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .ex-card {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 840px) {
  .panel-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* SPA page fade-in */
@keyframes spa-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#spa-root > .spa-fade {
  animation: spa-fade-in 220ms ease-out;
}
