.card {
  border-top-left-radius: 35px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 35px;
  border-bottom-left-radius: 0px;
  transition: background .3s ease;
  background: var(--bs-dark) !important;
}

.card:hover {
  background: rgba(255,255,255,.05);
}

.gradient-red {
  background: linear-gradient(90deg, #ff7b00, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.modal {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: alias;
}

.modal-content {
  cursor: default;
  border-top-left-radius: 35px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 35px;
  border-bottom-left-radius: 0px;
}

.modal.fade .modal-dialog {
  transform: scale(0.8);
  transition: transform 0.3s ease-out;
}

.modal.fade.show .modal-dialog {
  transform: scale(1);
}

.modal-header, .modal-footer {
  border: none;
}

.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-light, .btn-dark {
  background-image: var(--bs-gradient)!important;
  border: none;
  border-top-left-radius: 15px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 2px;
}

.alert{
  border-top-left-radius: 15px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 2px;
}

.btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-outline-danger, .btn-outline-warning, .btn-outline-info, .btn-outline-light, .btn-outline-dark {
  border-top-left-radius: 15px !important;
  border-top-right-radius: 2px !important;
  border-bottom-right-radius: 15px !important;
  border-bottom-left-radius: 2px !important;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.badge {
  border-top-left-radius: 15px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 0px;
}

/* =========================
   SCROLL PERSONALIZADO
========================= */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bs-primary, #00ff87);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.2);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--bs-primary, #00ff87) transparent;
}

/* =========================
   FIX MODAL BOOTSTRAP
   (evita movimiento de layout)
========================= */

html {
  overflow-y: scroll;
}

body {
  padding-right: 0 !important;
}

body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

body.offcanvas-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

/* terminal */

#terminal-body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#terminal-body::-webkit-scrollbar {
  display: none;
}

.custom-pills {
  gap: .75rem;
}

.custom-pills .nav-link {
  color: rgba(255,255,255,.8);
  border-top-left-radius: 15px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 2px;
  background-image: var(--bs-gradient)!important;
  border-color: var(--bs-primary);
}

.custom-pills .nav-link:hover {
  color: #fff;
}

.custom-pills .nav-link.active {
  background: var(--bs-primary);
  color: var(--bs-light);
  border: none;
}

/* =========================
   FLAME TOASTS
========================= */

.flame-toast {
  display:block !important;
  border-top-left-radius:15px;border-top-right-radius:2px;border-bottom-right-radius:15px;border-bottom-left-radius:2px;
  animation: flameToastIn 0.3s ease forwards;
  min-width:280px;
}

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

.flame-toast.hiding {
  animation: flameToastOut 0.3s ease forwards;
}

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

/* =========================
   TIMELINE APPLY FORM
========================= */

.tl-wrap {
  position: relative;
  padding-left: 36px;
}

.tl-line {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #343a40;
}

.tl-step {
  position: relative;
  margin-bottom: 12px;
}

.tl-dot {
  position: absolute;
  left: -36px;
  top: 16px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.tl-dot i {
  font-size: 0.7rem;
  color: #6c757d;
  transition: all 0.3s ease;
}

.tl-active .tl-dot i {
  color: var(--bs-primary);
  font-size: 0.95rem;
  filter: drop-shadow(0 0 8px rgba(var(--bs-primary-rgb), 0.6));
}

.tl-done .tl-dot i {
  color: var(--bs-success);
  font-size: 0.85rem;
}

.tl-warn .tl-dot i {
  color: var(--bs-warning);
  font-size: 0.85rem;
}

.tl-body {
  padding-bottom: 8px;
}

.tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: #0A0A0A;
  border: 1px solid #343a40;
  border-radius: 15px 2px 15px 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  scroll-margin-top: 100px;
}

.tl-head:hover {
  background: #2b3035;
  border-color: #495057;
}

.tl-active .tl-head {
  background: #0A0A0A;
  border-color: #343a40;
}

.tl-done .tl-head {
  opacity: 0.7;
}

.tl-arrow {
  transition: transform 0.3s ease;
}

.tl-collapse {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  max-height: 0;
  opacity: 0;
}

.tl-collapse.show {
  max-height: 2000px;
  opacity: 1;
}

.tl-inner {
  padding: 0 4px;
}

.tl-inner .form-control,
.tl-inner .form-select {
  background-color: #0A0A0A;
  border-color: #343a40;
  color: white;
}

.tl-inner .form-control:focus,
.tl-inner .form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.2);
}

.tl-inner .form-label {
  color: rgba(255,255,255,0.85);
}

@media (max-width: 575.98px) {
  .tl-wrap { padding-left: 28px; }
  .tl-line { left: 10px; }
  .tl-dot { left: -28px; width: 22px; height: 22px; }
  .tl-dot i { font-size: 0.6rem; }
  .tl-active .tl-dot i { font-size: 0.8rem; }
  .tl-head { padding: 12px 14px; }
  .tl-head h5 { font-size: 0.95rem; }
}

