:root {
  /* Harmonics of Pink */
  --pink-50:  #fff0f5;
  --pink-100: #ffd6e0;
  --pink-200: #ffb3c6;
  --pink-300: #ff8fa3;
  --pink-400: #ff758f;
  --pink-500: #ff4d6d;
  --pink-600: #c9184a;
  --pink-700: #a4133c;
  --pink-800: #800f2f;
  --pink-900: #590d22;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.4);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--pink-50), var(--pink-100));
  color: var(--pink-900);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Abstract Orbs Behind the Glass Mophism */
.background-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.8;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--pink-300);
  top: -150px;
  left: -150px;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: var(--pink-200);
  bottom: -200px;
  right: -100px;
  animation: floatOrb 12s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--pink-400);
  top: 50%;
  left: 60%;
  animation: floatOrb 8s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.05); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1100px; /* Default expanded */
  padding: 2rem;
  z-index: 10;
  box-sizing: border-box;
}

.container-sm {
  max-width: 900px;
}

.container-xs {
  max-width: 760px;
}

.hidden {
  display: none !important;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Glass Card Component */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  box-shadow: 0 12px 40px rgba(128, 15, 47, 0.1);
  margin: 0 auto;
}

/* Standard Inputs */
input {
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--pink-200);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--pink-900);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(255, 117, 143, 0.05);
  box-sizing: border-box;
}

input:focus {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.2);
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.btn-primary {
  background: linear-gradient(135deg, #ff2f92, #ff174f);
  color: white;
  box-shadow: 0 10px 24px rgba(255, 23, 79, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 23, 79, 0.28);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--pink-600);
  border-color: #f3a5cf;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
}

.btn-delete {
  background: transparent;
  color: var(--pink-700);
  border-color: var(--pink-500);
  border-width: 1px;
}

.btn-delete:hover {
  background: var(--pink-500);
  color: white;
}

/* Button Sizes */
.btn-lg {
  padding: 1.1rem 2.2rem;
  border-radius: 999px;
  font-size: 1.4rem;
  min-width: 200px;
}

.btn-md {
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* Typography & Hero */
.hero-sparkle {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-900));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, #ff2f92, #ff174f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.hero-subtitle {
  margin: 2rem auto 3rem;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--pink-800);
  max-width: 800px;
  text-align: center;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(80, 20, 50, 0.18);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  z-index: 9999;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(255, 105, 180, 0.18);
  border-radius: 28px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 18px 45px rgba(140, 40, 90, 0.15);
}

.modal-card h2 {
  margin: 0 0 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  color: #c2185b;
}

.modal-card p {
  margin: 0 0 1rem;
  color: #7a2048;
  font-size: 1rem;
}

.modal-input {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.modal-error {
  margin-top: 1rem;
  color: #d81b60;
  font-weight: 600;
}

/* Data Table */
.data-table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 2rem;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2rem;
}

th, td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: middle;
}

th {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--pink-800);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--pink-300);
}

td {
  font-weight: 400;
  color: var(--pink-900);
  border-bottom: 1px solid var(--pink-200);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.3);
}

/* Input Group / Forms */
.form-section {
  background: rgba(255, 255, 255, 0.4);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border: 1px dashed var(--pink-400);
  margin-top: 2rem;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-header {
  margin-top: 0;
  color: var(--pink-800);
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.form-group-inline {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group-inline input {
  flex: 1;
  min-width: 180px;
}

.form-group-inline .btn {
  min-width: 140px;
}

/* Editing Tools */
.editable {
  position: relative;
  transition: all 0.2s ease;
  border-radius: 4px;
}
.editable:hover {
  background: rgba(255, 255, 255, 0.4);
  cursor: text;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
}
.editable:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px var(--pink-400);
}

/* Responsive */
@media (max-width: 768px) {
  .glass-card { padding: 1.5rem; }
  .form-group-inline { flex-direction: column; }
  
  .btn-lg {
    width: 340px;
    max-width: 100%;
  }
}

/* --- Axle Energy Dark Theme --- */
.theme-dark-axle {
  --axle-bg: #0b1120;
  --axle-card: #141c2f;
  --axle-card-border: rgba(255, 255, 255, 0.06);
  --axle-text: #f8fafc;
  --axle-muted: #94a3b8;
  --axle-accent-green: #10b981;
  --axle-accent-neon: #a3e635; /* Like a vibrant green spark */
  --axle-accent-blue: #3b82f6;
  
  background: var(--axle-bg);
  color: var(--axle-text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: block; /* override default flex from body */
  overflow-y: auto;
  margin: 0;
}

.theme-dark-axle .background-orb {
  display: none !important; /* hide pink orbs */
}

/* Nav */
.axle-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--axle-card-border);
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.axle-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--axle-text);
  letter-spacing: -0.02em;
}
.axle-btn-nav {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--axle-muted);
  transition: all 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--axle-card-border);
}
.axle-btn-nav:hover {
  color: var(--axle-text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Layout */
.axle-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.axle-header {
  margin-bottom: 3.5rem;
  text-align: center;
}
.axle-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}
.axle-subtitle {
  color: var(--axle-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid & Cards */
.axle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.axle-card {
  background: var(--axle-card);
  border: 1px solid var(--axle-card-border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kpi-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--axle-muted);
  margin: 0 0 0.75rem 0;
}
.kpi-value {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.kpi-card p {
  font-size: 0.85rem;
  color: var(--axle-muted);
  margin: 0;
}

.highlight-green { color: var(--axle-accent-neon); }
.highlight-blue { color: var(--axle-accent-blue); }

.flex-chart {
  grid-column: 1 / -1; 
  min-height: 400px;
}
.strategy-card {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, var(--axle-card), rgba(16, 185, 129, 0.04));
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--axle-card-border);
}
.card-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
  color: var(--axle-text);
  letter-spacing: -0.01em;
}

.badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--axle-accent-neon);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge.live {
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Strategy simulation skeleton */
.algo-explanation {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--axle-muted);
  border-left: 3px solid var(--axle-accent-green);
}
.algo-explanation p { margin: 0; line-height: 1.5; }
.algo-explanation strong { color: var(--axle-text); }

.strategy-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.strategy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.strategy-row strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: var(--axle-accent-neon);
}
.strategy-time {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.skeleton-line {
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  animation: pulse-bg 1.5s infinite;
}
.skeleton-line:nth-child(2) { width: 60%; }

@keyframes pulse-bg {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 350px;
  width: 100%;
}

@media (max-width: 900px) {
  .axle-grid { grid-template-columns: 1fr; }
}

.hidden-stat {
    font-size: 0.0001px;   /* basically zero */
    color: transparent;    /* invisible text */
    line-height: 0;
    height: 0;
    display: inline-block;
}