/* Refined Dark Studio Theme — Entrenados.fit OS */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #07090E;
  color: #F1F5F9;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #07090E;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C2410C;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   ACETERNITY UI: 3D CARD PERSPECTIVE TILT (REFINED SUBTLE PHYSICS)
   ========================================================================== */
.aceternity-card-container {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.aceternity-3d-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

/* ==========================================================================
   MATTE GLASS BENTO CARDS (LINEAR / VERCEL DESIGN TREND)
   ========================================================================== */
.bento-card {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.6), 0 0 15px rgba(234, 88, 12, 0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   BORDER BEAM (SUBTLE AMBIENT)
   ========================================================================== */
@keyframes border-beam {
  100% {
    offset-distance: 100%;
  }
}

.border-beam-container {
  position: relative;
  overflow: hidden;
}

.border-beam {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  mask-clip: padding-box, border-box;
  -webkit-mask-clip: padding-box, border-box;
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
}

.border-beam::after {
  content: "";
  position: absolute;
  aspect-ratio: 1 / 1;
  width: 140px;
  animation: border-beam 16s linear infinite;
  background: linear-gradient(to left, #EA580C, #F59E0B, transparent);
  offset-anchor: 90% 50%;
  offset-path: rect(0 auto auto 0 round 140px);
  opacity: 0.6;
}

/* ==========================================================================
   TABS & CONTROLS
   ========================================================================== */
.tab-btn.active {
  background: rgba(234, 88, 12, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(234, 88, 12, 0.35);
}

.custom-checkbox {
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 1.5px solid #334155;
  border-radius: 0.375rem;
  background-color: rgba(255, 255, 255, 0.02);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-checkbox:hover {
  border-color: #EA580C;
}

.custom-checkbox:checked {
  background-color: #059669;
  border-color: #059669;
}

.custom-checkbox:checked::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(1);
  background-color: white;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #EA580C;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   CLERK AUTHENTICATION OVERRIDES — CRITICAL DARK CONTRAST & TYPOGRAPHY
   ========================================================================== */
.cl-userButtonPopoverCard,
[class*="userButtonPopoverCard"] {
  background-color: #0D1322 !important;
  background: #0D1322 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F8FAFC !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  border-radius: 1.25rem !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  padding: 0.75rem !important;
}

.cl-userPreview,
[class*="userPreview"] {
  padding: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.cl-userPreviewMainIdentifier,
[class*="userPreviewMainIdentifier"] {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-family: "Sora", sans-serif !important;
  font-size: 0.95rem !important;
}

.cl-userPreviewSecondaryIdentifier,
[class*="userPreviewSecondaryIdentifier"] {
  color: #94A3B8 !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.78rem !important;
}

.cl-userButtonPopoverActionButton,
[class*="userButtonPopoverActionButton"] {
  color: #F1F5F9 !important;
  border-radius: 0.75rem !important;
  padding: 0.65rem 0.85rem !important;
  transition: all 0.2s ease !important;
}

.cl-userButtonPopoverActionButton:hover,
[class*="userButtonPopoverActionButton"]:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
}

.cl-userButtonPopoverActionButtonText,
[class*="userButtonPopoverActionButtonText"] {
  color: #F1F5F9 !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  letter-spacing: -0.01em !important;
}

.cl-userButtonPopoverActionButton:hover .cl-userButtonPopoverActionButtonText,
[class*="userButtonPopoverActionButton"]:hover [class*="userButtonPopoverActionButtonText"] {
  color: #FFFFFF !important;
}

.cl-userButtonPopoverActionButtonIcon,
[class*="userButtonPopoverActionButtonIcon"] {
  color: #EA580C !important; /* Entrenados Brand Orange */
  opacity: 1 !important;
}

.cl-userButtonPopoverActionButtonIcon svg,
[class*="userButtonPopoverActionButtonIcon"] svg {
  stroke: #EA580C !important;
  color: #EA580C !important;
}

.cl-userButtonPopoverFooter,
[class*="userButtonPopoverFooter"] {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-top: 0.5rem !important;
  padding-top: 0.65rem !important;
  background-color: transparent !important;
}

.cl-userButtonPopoverFooter span,
.cl-userButtonPopoverFooter p,
[class*="userButtonPopoverFooter"] span,
[class*="userButtonPopoverFooter"] p {
  color: #64748B !important;
  font-size: 0.72rem !important;
  font-family: "JetBrains Mono", monospace !important;
}

/* Modal "Manage Account" Dark Overrides */
.cl-modalBackdrop {
  background-color: rgba(4, 6, 10, 0.85) !important;
  backdrop-filter: blur(12px) !important;
}

.cl-modalContent,
.cl-card,
[class*="cl-card"] {
  background-color: #0D1322 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
  border-radius: 1.5rem !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
}

.cl-headerTitle {
  color: #FFFFFF !important;
  font-family: "Sora", sans-serif !important;
  font-weight: 700 !important;
}

.cl-headerSubtitle {
  color: #94A3B8 !important;
}

.cl-navbarButton {
  color: #94A3B8 !important;
}

.cl-navbarButton:hover,
.cl-navbarButton[data-active="true"] {
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
}

.cl-profileSectionTitleText {
  color: #FFFFFF !important;
  font-weight: 600 !important;
}

.cl-profileSectionItem {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.cl-profileSectionPrimaryButton {
  color: #EA580C !important;
}

.cl-avatarBox {
  border: 1.5px solid rgba(234, 88, 12, 0.4) !important;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.2) !important;
}

