/* ============================================
   THE OPTIMIZATION FORGE - BRAND STYLESHEET
   Optimal Sports | optimal-sports.com
   ============================================ */

/* ============================================
   CSS VARIABLES - COLOR PALETTE
   ============================================ */
:root {
  /* Primary Brand Colors */
  --forge-graphite: #0E0E10;      /* Deep black background */
  --forge-charcoal: #1C1C22;      /* Elevated surfaces */
  --forge-orange: #FF6B00;        /* Molten orange - primary CTA */
  --forge-platinum: #A8B2C1;      /* Platinum silver - accents */
  --forge-light: #EAEAEA;         /* Light gray text */
  
  /* Semantic Colors */
  --forge-bg-primary: var(--forge-graphite);
  --forge-bg-secondary: var(--forge-charcoal);
  --forge-text-primary: var(--forge-light);
  --forge-text-secondary: #A0A0A5;
  --forge-accent-primary: var(--forge-orange);
  --forge-accent-secondary: var(--forge-platinum);
  
  /* State Colors */
  --forge-success: #10B981;
  --forge-warning: #F59E0B;
  --forge-danger: #EF4444;
  --forge-info: var(--forge-platinum);
  
  /* Gradients */
  --forge-gradient-orange: linear-gradient(135deg, #FF6B00 0%, #FF8C3A 100%);
  --forge-gradient-platinum: linear-gradient(135deg, #A8B2C1 0%, #C5CDD8 100%);
  --forge-gradient-dark: linear-gradient(180deg, #0E0E10 0%, #1C1C22 100%);
  
  /* Glows */
  --forge-glow-orange: 0 0 20px rgba(255, 107, 0, 0.3);
  --forge-glow-platinum: 0 0 20px rgba(168, 178, 193, 0.4);
  --forge-glow-orange-intense: 0 0 40px rgba(255, 107, 0, 0.6);
  
  /* Shadows */
  --forge-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --forge-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --forge-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  
  /* Spacing */
  --forge-spacing-xs: 0.25rem;
  --forge-spacing-sm: 0.5rem;
  --forge-spacing-md: 1rem;
  --forge-spacing-lg: 1.5rem;
  --forge-spacing-xl: 2rem;
  --forge-spacing-xxl: 3rem;
  
  /* Border Radius */
  --forge-radius-sm: 4px;
  --forge-radius-md: 8px;
  --forge-radius-lg: 12px;
  --forge-radius-xl: 16px;
  
  /* Transitions */
  --forge-transition-fast: 0.15s ease;
  --forge-transition-base: 0.3s ease;
  --forge-transition-slow: 0.5s ease;
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */
body {
  background: radial-gradient(ellipse 150% 80% at top center, rgba(255, 107, 0, 0.05) 0%, var(--forge-bg-primary) 60%, var(--forge-bg-primary) 100%), var(--forge-bg-primary);
  background-attachment: fixed;
  color: var(--forge-text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated forge embers/particles */
.ember {
  position: fixed;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(255, 140, 58, 1), rgba(255, 107, 0, 0.6));
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px);
  box-shadow: 0 0 6px rgba(255, 107, 0, 0.8);
  transition: transform 0.15s ease-out, filter 0.15s ease-out, box-shadow 0.15s ease-out;
  will-change: transform, filter, box-shadow;
}

.ember:nth-child(1) {
  left: 10%;
  animation: float-up 25s infinite ease-in-out;
  animation-delay: 0s;
}

.ember:nth-child(2) {
  left: 25%;
  width: 3px;
  height: 3px;
  animation: float-up 28s infinite ease-in-out;
  animation-delay: 3s;
}

.ember:nth-child(3) {
  left: 40%;
  animation: float-up 30s infinite ease-in-out;
  animation-delay: 6s;
}

.ember:nth-child(4) {
  left: 55%;
  width: 3px;
  height: 3px;
  animation: float-up 26s infinite ease-in-out;
  animation-delay: 2s;
}

.ember:nth-child(5) {
  left: 70%;
  animation: float-up 29s infinite ease-in-out;
  animation-delay: 8s;
}

.ember:nth-child(6) {
  left: 85%;
  width: 3px;
  height: 3px;
  animation: float-up 27s infinite ease-in-out;
  animation-delay: 5s;
}

.ember:nth-child(7) {
  left: 15%;
  animation: float-up 32s infinite ease-in-out;
  animation-delay: 10s;
}

.ember:nth-child(8) {
  left: 50%;
  width: 3px;
  height: 3px;
  animation: float-up 24s infinite ease-in-out;
  animation-delay: 7s;
}

.ember:nth-child(9) {
  left: 75%;
  animation: float-up 31s infinite ease-in-out;
  animation-delay: 4s;
}

.ember:nth-child(10) {
  left: 90%;
  width: 3px;
  height: 3px;
  animation: float-up 26s infinite ease-in-out;
  animation-delay: 9s;
}

@keyframes float-up {
  0% {
    bottom: -10px;
    opacity: 0;
    transform: translateX(0);
  }
  10% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
    transform: translateX(20px);
  }
  90% {
    opacity: 0.4;
  }
  100% {
    bottom: 100vh;
    opacity: 0;
    transform: translateX(-20px);
  }
}

/* Ensure content is above the background effects */
main, header, footer {
  position: relative;
  z-index: 1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--forge-light);
  margin-bottom: var(--forge-spacing-md);
}

h1 {
  font-size: 3rem;
  line-height: 1.1;
  background: var(--forge-gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.25rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--forge-spacing-md);
  color: var(--forge-text-secondary);
}

a {
  color: var(--forge-accent-primary);
  text-decoration: none;
  transition: color var(--forge-transition-fast);
}

a:hover {
  color: var(--forge-accent-secondary);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.forge-header {
  background: var(--forge-bg-secondary);
  border-bottom: 1px solid rgba(255, 107, 0, 0.1);
  padding: var(--forge-spacing-md) 0;
  box-shadow: var(--forge-shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.forge-header__logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(var(--forge-glow-orange));
  transition: filter var(--forge-transition-base);
}

.forge-header__logo:hover {
  filter: drop-shadow(var(--forge-glow-orange-intense));
}

.forge-header__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  background: var(--forge-gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.forge-header__subtitle {
  font-size: 0.875rem;
  color: var(--forge-text-secondary);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Header Navigation */
.forge-nav {
  display: flex;
  gap: var(--forge-spacing-lg);
  align-items: center;
}

/* Dropdown wrapper */
.forge-nav__dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.forge-nav__dropdown-toggle {
  background: none;
  border: none;
  color: var(--forge-text-secondary);
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  transition: color var(--forge-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.forge-nav__dropdown-toggle:hover {
  color: var(--forge-accent-primary);
}

.forge-nav__dropdown-toggle svg {
  transition: transform var(--forge-transition-fast);
}

.forge-nav__dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.forge-nav__link {
  color: var(--forge-text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  transition: all var(--forge-transition-fast);
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.forge-nav__link:hover {
  color: var(--forge-accent-primary);
}

.forge-nav__link.active {
  color: var(--forge-accent-primary);
  font-weight: 600;
}

.forge-nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--forge-gradient-orange);
  box-shadow: var(--forge-glow-orange);
}

/* Mobile Navigation */
.forge-nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--forge-spacing-md) 0;
  border-top: 1px solid rgba(255, 107, 0, 0.1);
}

.forge-nav-mobile__link {
  color: var(--forge-text-secondary);
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: all var(--forge-transition-fast);
  text-decoration: none;
  border-radius: var(--forge-radius-md);
}

.forge-nav-mobile__link:hover {
  background: rgba(255, 107, 0, 0.1);
  color: var(--forge-accent-primary);
}

.forge-nav-mobile__link.active {
  background: rgba(255, 107, 0, 0.15);
  color: var(--forge-accent-primary);
  font-weight: 600;
}

/* Mobile toggle button styling */
.navbar-toggler {
  background: transparent;
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: var(--forge-radius-md);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF6B00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background: var(--forge-bg-secondary) !important;
  border-bottom: 1px solid rgba(168, 178, 193, 0.15);
}

.navbar-brand {
  color: var(--forge-light) !important;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.nav-link {
  color: var(--forge-text-secondary) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem !important;
  transition: all var(--forge-transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--forge-accent-primary) !important;
}

.nav-link.active {
  color: var(--forge-accent-primary) !important;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--forge-gradient-orange);
  box-shadow: var(--forge-glow-orange);
}

.dropdown-menu {
  background: var(--forge-charcoal);
  border: 1px solid rgba(255, 107, 0, 0.2);
  box-shadow: var(--forge-shadow-lg);
  border-radius: var(--forge-radius-md);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: var(--forge-text-secondary);
  padding: 0.5rem 1.5rem;
  transition: all var(--forge-transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 107, 0, 0.1);
  color: var(--forge-accent-primary);
}

.dropdown-item.active {
  background: var(--forge-gradient-orange);
  color: white;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--forge-radius-md);
  transition: all var(--forge-transition-base);
  border: none;
  text-transform: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--forge-gradient-orange);
  color: white;
  box-shadow: var(--forge-glow-orange);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #FF8C3A 0%, #FFA566 100%);
  box-shadow: var(--forge-glow-orange-intense);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background: var(--forge-charcoal);
  color: var(--forge-light);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(255, 107, 0, 0.1);
  border-color: var(--forge-orange);
  color: var(--forge-orange);
}

.btn-success {
  background: var(--forge-gradient-platinum);
  color: var(--forge-graphite);
  box-shadow: var(--forge-glow-platinum);
  font-weight: 700;
}

.btn-success:hover,
.btn-success:focus {
  background: linear-gradient(135deg, #C5CDD8 0%, #E0E5EB 100%);
  box-shadow: 0 0 30px rgba(168, 178, 193, 0.6);
  transform: translateY(-2px);
  color: var(--forge-graphite);
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--forge-orange);
  color: var(--forge-orange);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--forge-gradient-orange);
  color: white;
  box-shadow: var(--forge-glow-orange);
}

.btn-outline-secondary {
  background: transparent;
  border: 2px solid var(--forge-platinum);
  color: var(--forge-platinum);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: var(--forge-gradient-platinum);
  color: var(--forge-graphite);
  box-shadow: var(--forge-glow-platinum);
}

/* Button Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
  color: var(--forge-platinum);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   ANVIL LOADER
   ============================================ */
.anvil-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.anvil-loader-overlay.hidden {
  display: none;
}

.anvil-loader {
  width: 180px;
  height: 180px;
  position: relative;
}

.anvil-loader-text {
  color: var(--forge-orange);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  font-family: 'Space Grotesk', sans-serif;
  text-align: center;
}

.anvil-loader-subtext {
  color: var(--forge-text-secondary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* SVG Anvil Animation */
.anvil-base {
  transform-origin: center;
}

.anvil-hammer {
  transform-origin: 58px 15px;
  animation: hammer-strike 2s ease-in-out infinite;
}

@keyframes hammer-strike {
  0% {
    transform: translateY(-15px) translateX(20px) rotate(25deg) scaleX(-1);
  }
  20% {
    transform: translateY(-15px) translateX(20px) rotate(25deg) scaleX(-1);
  }
  35% {
    transform: translateY(28px) translateX(0px) rotate(-90deg) scaleX(-1);
  }
  40% {
    transform: translateY(30px) translateX(0px) rotate(-90deg) scaleX(-1);
  }
  45% {
    transform: translateY(28px) translateX(0px) rotate(-90deg) scaleX(-1);
  }
  60% {
    transform: translateY(-15px) translateX(20px) rotate(25deg) scaleX(-1);
  }
  100% {
    transform: translateY(-15px) translateX(20px) rotate(25deg) scaleX(-1);
  }
}

/* Impact spark effect */
.anvil-spark {
  opacity: 0;
  transform-origin: center;
  animation: spark-burst 2s ease-out infinite;
}

@keyframes spark-burst {
  0%, 34% {
    opacity: 0;
    transform: scale(0.3);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  40% {
    opacity: 1;
    transform: scale(1.5);
  }
  50% {
    opacity: 0;
    transform: scale(2.5);
  }
  100% {
    opacity: 0;
    transform: scale(2.5);
  }
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--forge-bg-secondary);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: var(--forge-radius-lg);
  box-shadow: var(--forge-shadow-md);
  transition: all var(--forge-transition-base);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
}

.card-header {
  background: rgba(255, 107, 0, 0.05);
  border-bottom: 1px solid rgba(255, 107, 0, 0.2);
  color: var(--forge-light);
  font-weight: 700;
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.5rem;
  color: var(--forge-text-secondary);
}

.card-title {
  color: var(--forge-light);
  font-weight: 700;
  margin-bottom: var(--forge-spacing-md);
}

.card-text {
  color: var(--forge-text-secondary);
}

/* Featured card with glow */
.card-featured {
  border-color: var(--forge-orange);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.15);
}

.card-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--forge-shadow-lg), 0 0 50px rgba(255, 107, 0, 0.8) !important;
  border-color: rgba(255, 107, 0, 0.8);
}

/* Platinum card with glow */
.card-platinum {
  border-color: var(--forge-platinum);
  box-shadow: 0 0 10px rgba(168, 178, 193, 0.2);
}

.card-platinum:hover {
  transform: translateY(-4px);
  box-shadow: var(--forge-shadow-lg), 0 0 50px rgba(168, 178, 193, 0.8) !important;
  border-color: rgba(168, 178, 193, 0.9);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.form-control,
.form-select {
  background: var(--forge-graphite);
  border: 1px solid rgba(255, 107, 0, 0.2);
  color: var(--forge-light);
  border-radius: var(--forge-radius-md);
  padding: 0.75rem 1rem;
  transition: all var(--forge-transition-fast);
}

.form-control:focus,
.form-select:focus {
  background: var(--forge-charcoal);
  border-color: var(--forge-orange);
  box-shadow: var(--forge-glow-orange);
  color: var(--forge-light);
  outline: none;
}

.form-control::placeholder {
  color: var(--forge-text-secondary);
  opacity: 0.6;
}

.form-label {
  color: var(--forge-light);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--forge-spacing-sm);
  letter-spacing: 0.01em;
}

/* Range Slider */
.form-range {
  accent-color: var(--forge-orange);
}

.form-range::-webkit-slider-thumb {
  background: var(--forge-gradient-orange);
  box-shadow: var(--forge-glow-orange);
}

.form-range::-moz-range-thumb {
  background: var(--forge-gradient-orange);
  box-shadow: var(--forge-glow-orange);
}

/* Validation States */
.form-control.invalid,
td[contenteditable="true"].invalid {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: var(--forge-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.validation-error {
  color: var(--forge-danger);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: block;
}

/* ============================================
   TABLES
   ============================================ */
.table {
  --bs-table-bg: var(--forge-graphite);
  --bs-table-color: var(--forge-light);
  color: var(--forge-light) !important;
  border-color: rgba(255, 107, 0, 0.1);
  background-color: var(--forge-graphite) !important;
}

.table thead {
  --bs-table-bg: var(--forge-charcoal);
  background: var(--forge-charcoal);
  border-bottom: 2px solid var(--forge-orange);
}

.table thead th {
  color: var(--forge-light) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  border-color: rgba(255, 107, 0, 0.2);
}

.table tbody tr {
  border-bottom: 1px solid rgba(255, 107, 0, 0.05);
  transition: background var(--forge-transition-fast);
}

.table tbody tr:hover {
  background: rgba(255, 107, 0, 0.05) !important;
}

.table tbody td,
.table tbody th {
  color: var(--forge-light) !important;
  padding: 0.75rem;
  font-weight: 500;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(0, 0, 0, 0.3);
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--forge-light) !important;
}

.table-striped > tbody > tr:nth-of-type(even) > * {
  --bs-table-accent-bg: rgba(255, 255, 255, 0.03);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--forge-light) !important;
}

.table-striped tbody tr:hover > * {
  background-color: rgba(255, 107, 0, 0.08) !important;
}

td[contenteditable="true"] {
  background: rgba(168, 178, 193, 0.05);
  color: var(--forge-light);
  cursor: text;
  transition: all var(--forge-transition-fast);
}

td[contenteditable="true"]:hover {
  background: rgba(168, 178, 193, 0.1);
}

td[contenteditable="true"]:focus {
  background: rgba(168, 178, 193, 0.15);
  outline: 2px solid var(--forge-platinum);
  outline-offset: -2px;
  color: var(--forge-light);
}

/* ============================================
   ALERTS & TOASTS
   ============================================ */
.alert {
  border-radius: var(--forge-radius-md);
  border: 1px solid;
  padding: 1rem 1.25rem;
  margin-bottom: var(--forge-spacing-md);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--forge-success);
  color: var(--forge-success);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--forge-warning);
  color: var(--forge-warning);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--forge-danger);
  color: var(--forge-danger);
}

.alert-info {
  background: rgba(168, 178, 193, 0.1);
  border-color: var(--forge-platinum);
  color: var(--forge-platinum);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.toast-container .alert {
  margin-bottom: 10px;
  animation: slideIn 0.3s ease-out;
  box-shadow: var(--forge-shadow-lg);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion-item {
  background: var(--forge-charcoal);
  border: 1px solid rgba(255, 107, 0, 0.2);
  margin-bottom: var(--forge-spacing-sm);
  border-radius: var(--forge-radius-md) !important;
  overflow: hidden;
}

.accordion-button {
  background: var(--forge-charcoal);
  color: var(--forge-light);
  font-weight: 600;
  border: none;
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  background: rgba(255, 107, 0, 0.1);
  color: var(--forge-orange);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
  border-color: transparent;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(52%) sepia(96%) saturate(2530%) hue-rotate(1deg) brightness(103%) contrast(105%);
}

.accordion-body {
  background: var(--forge-graphite);
  color: var(--forge-text-secondary);
  padding: 1.5rem;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
  background: transparent;
  padding: var(--forge-spacing-sm) 0;
  margin-bottom: var(--forge-spacing-md);
}

.breadcrumb-item {
  color: var(--forge-text-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--forge-orange);
  font-weight: bold;
}

.breadcrumb-item.active {
  color: var(--forge-orange);
  font-weight: 600;
}

.breadcrumb-item a {
  color: var(--forge-text-secondary);
}

.breadcrumb-item a:hover {
  color: var(--forge-orange);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  font-weight: 600;
  padding: 0.35em 0.65em;
  border-radius: var(--forge-radius-sm);
  letter-spacing: 0.02em;
}

.badge.bg-primary {
  background: var(--forge-gradient-orange) !important;
  color: white;
}

.badge.bg-secondary {
  background: var(--forge-charcoal) !important;
  color: var(--forge-light);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.badge.bg-success {
  background: var(--forge-gradient-platinum) !important;
  color: var(--forge-graphite);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--forge-charcoal);
  border-top: 1px solid rgba(255, 107, 0, 0.1);
  padding: var(--forge-spacing-xl) 0;
  margin-top: var(--forge-spacing-xxl);
}

footer .text-muted {
  color: var(--forge-text-secondary) !important;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-muted {
  color: var(--forge-text-secondary) !important;
}

.bg-light {
  background: var(--forge-charcoal) !important;
}

.bg-white {
  background: var(--forge-bg-secondary) !important;
}

.border-bottom {
  border-bottom-color: rgba(255, 107, 0, 0.1) !important;
}

.border-top {
  border-top-color: rgba(255, 107, 0, 0.1) !important;
}

.shadow-sm {
  box-shadow: var(--forge-shadow-sm) !important;
}

.shadow {
  box-shadow: var(--forge-shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--forge-shadow-lg) !important;
}

/* Glow utilities */
.glow-orange {
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.15);
  transition: box-shadow var(--forge-transition-base);
}

.glow-orange:hover {
  box-shadow: 0 0 50px rgba(255, 107, 0, 0.8) !important;
}

.glow-platinum {
  box-shadow: 0 0 10px rgba(168, 178, 193, 0.2);
  transition: box-shadow var(--forge-transition-base);
}

.glow-platinum:hover {
  box-shadow: 0 0 50px rgba(168, 178, 193, 0.8) !important;
}

/* Text gradient utilities */
.text-gradient-orange {
  background: var(--forge-gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-platinum {
  background: var(--forge-gradient-platinum);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .forge-header__title {
    font-size: 1.125rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  td[contenteditable="true"] {
    min-height: 44px;
    padding: 12px 8px !important;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 2px solid var(--forge-orange);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: var(--forge-glow-orange);
  }
  50% {
    box-shadow: var(--forge-glow-orange-intense);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Scroll-triggered animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

/* ============================================
   SCROLLBAR STYLING (Webkit)
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--forge-graphite);
}

::-webkit-scrollbar-thumb {
  background: var(--forge-charcoal);
  border-radius: 5px;
  border: 2px solid var(--forge-graphite);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 0, 0.5);
}
