/* =========================================
   Profit First Theme
   Modern, trustworthy, premium visual system
   Compatible with Shopify Admin UI
   Revolut-level polish for trust
========================================= */

/* ---------- Root Variables ---------- */
:root {
  /* Colors */
  --color-primary: #0D9C6C;
  --color-accent: #3B7AF0;
  --color-success: #10B981;
  --color-danger: #EF4444;
  --color-bg: rgba(241, 241, 241, 1);
  --color-bg-subtle: #F2F4F7;
  --color-text: #1E1E1E;
  --color-text-secondary: #4B5563;
  --color-border: #E5E7EB;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0D9C6C 0%, #3B7AF0 100%);
  --gradient-subtle: linear-gradient(135deg, #F8FAFB 0%, #E8EEF7 100%);
  
  /* Border Radius */
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  /* Shadows */
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-button: 0 2px 4px rgba(0, 0, 0, 0.08);
  
  /* Transitions */
  --transition-base: all 0.25s ease-in-out;
  --transition-fast: all 0.15s ease-in-out;
  --transition-slow: all 0.4s ease-in-out;
  
  /* Font */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Spacing (4px base unit) */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-base: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
}

/* ---------- Base Styles ---------- */
html, body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p, span, label {
  color: var(--color-text-secondary);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

/* ---------- Links ---------- */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

/* ---------- Cards ---------- */
.card {
  background: white;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  padding: var(--spacing-lg);
  transition: var(--transition-base);
  animation: fadeInUp 0.4s ease-out both;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(229, 231, 235, 1);
}

.card:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

/* ---------- Buttons ---------- */
button, .btn {
  background: #ffffff !important;
  color: var(--color-text, #202223) !important;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 150ms ease;
  font-family: var(--font-primary);
  box-shadow: none;
  letter-spacing: normal;
  height: auto;
  display: inline-block;
}

button:hover, .btn:hover {
  background: #f5f5f5 !important;
  transform: none;
  box-shadow: none;
}

/* Primary button variant (green/colored buttons) */
button.primary, .btn.primary {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  box-shadow: var(--shadow-button);
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.primary:hover, .btn.primary:hover {
  background: var(--gradient-primary);
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(13, 156, 108, 0.3);
}

/* Dashboard Range Buttons - Complete Styles */
.range-button,
.comparison-button {
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--color-bg-surface, #fff);
  color: var(--color-text, #202223);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.range-button:hover,
.comparison-button:hover {
  background: var(--color-bg-surface-subdued, #f5f5f5);
  border-color: var(--color-border, #e5e7eb);
  transform: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.range-button.active {
  background: rgba(255, 159, 67, 0.15) !important;
  border-color: var(--color-orange, #FF9F43) !important;
  color: var(--color-orange, #FF9F43) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 159, 67, 0.25);
}

.comparison-button.active {
  background: rgba(26, 115, 232, 0.1) !important;
  border-color: var(--color-border-brand, #1a73e8) !important;
  color: var(--color-text-brand, #1a73e8) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(38, 128, 235, 0.25);
}

.comparison-button {
  min-width: 140px;
  text-align: center;
}

/* Apply Range Button - Match range-button style */
s-button[variant="primary"][size="small"],
s-button[variant="primary"] {
  border: 1px solid var(--color-border, #e5e7eb) !important;
  border-radius: 999px !important;
  padding: 11px 16px !important;
  background: var(--color-bg-surface, #fff) !important;
  color: var(--color-text, #202223) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  height: 40px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

s-button[variant="primary"][size="small"]:hover:not(:disabled),
s-button[variant="primary"]:hover:not(:disabled) {
  background: var(--color-bg-surface-subdued, #f5f5f5) !important;
  border-color: var(--color-border, #e5e7eb) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

s-button[variant="primary"][size="small"]:disabled,
s-button[variant="primary"]:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background: var(--color-bg-surface, #fff) !important;
}

.range-button:disabled,
.comparison-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-bg-surface, #fff);
}

.range-button:disabled:hover,
.comparison-button:disabled:hover {
  background: var(--color-bg-surface, #fff);
}

button:active, .btn:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-button);
}

button:disabled, .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

button.size-small, .btn.size-small {
  height: 36px;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

button.size-large, .btn.size-large {
  height: 44px;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
}

/* ---------- Inputs ---------- */
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-primary);
  transition: var(--transition-base);
  background: white;
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: 1.5;
  height: 40px;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 156, 108, 0.1);
  transform: scale(1.01);
}

input::placeholder, textarea::placeholder {
  color: rgba(75, 85, 99, 0.5);
}

input:disabled, select:disabled, textarea:disabled {
  background: var(--color-bg-subtle);
  opacity: 0.6;
  cursor: not-allowed;
}

input.error, select.error, textarea.error {
  border-color: var(--color-danger);
  background: rgba(239, 68, 68, 0.05);
}

input.success, select.success, textarea.success {
  border-color: var(--color-success);
  background: rgba(16, 185, 129, 0.05);
}

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: white;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

th {
  background: var(--color-bg-subtle);
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.875rem;
  letter-spacing: -0.005em;
}

tbody tr {
  transition: var(--transition-fast);
}

tbody tr:hover {
  background: rgba(248, 250, 251, 0.8);
}

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

/* ---------- Status Badges ---------- */
.badge {
  display: inline-block;
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.badge-accent {
  background: rgba(59, 122, 240, 0.1);
  color: var(--color-accent);
}

.badge-primary {
  background: rgba(13, 156, 108, 0.1);
  color: var(--color-primary);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-2px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(2px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Skeleton Loader ---------- */
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #f2f4f7 25%, #e5e7eb 50%, #f2f4f7 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-circle {
  border-radius: 50%;
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}

.skeleton-text:last-child {
  margin-bottom: 0;
  width: 60%;
}

/* ---------- Utility Classes ---------- */
.fade-in-up {
  animation: fadeInUp 0.4s ease-out both;
}

.fade-in-up-delay-1 {
  animation: fadeInUp 0.4s ease-out 0.05s both;
}

.fade-in-up-delay-2 {
  animation: fadeInUp 0.4s ease-out 0.1s both;
}

.fade-in-up-delay-3 {
  animation: fadeInUp 0.4s ease-out 0.15s both;
}

.scale-in {
  animation: scaleIn 0.3s ease-out both;
}

.shake {
  animation: shake 0.2s ease-in-out both;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.flex {
  display: flex;
}

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

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

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-4 {
  margin-top: var(--spacing-base);
}

.mb-4 {
  margin-bottom: var(--spacing-base);
}

.p-4 {
  padding: var(--spacing-base);
}

.rounded {
  border-radius: var(--radius-md);
}

/* ---------- Loading States ---------- */
.loading-spinner {
  border: 2px solid rgba(13, 156, 108, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.8s linear infinite;
}

/* Premium Horizontal Wave Loading Animation */
.loading-wave {
  width: 120px;
  height: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  will-change: transform;
}

.loading-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.loading-wave .wave-path {
  fill: none;
  stroke: none;
}

.loading-wave .wave-group {
  animation: waveFlow 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.loading-wave .wave-group-primary {
  filter: drop-shadow(0 2px 4px rgba(13, 156, 108, 0.2));
}

.loading-wave .wave-path-primary {
  /* Fill is set inline via gradient ID */
}

.loading-wave .wave-group-secondary {
  opacity: 0.6;
  animation-delay: 0.3s;
}

.loading-wave .wave-path-secondary {
  /* Fill is set inline via gradient ID */
}

.loading-wave .wave-gradient {
  stop-color: #0D9C6C;
}

.loading-wave .wave-gradient-stop {
  stop-color: #3B7AF0;
}

@keyframes waveFlow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-120px);
  }
}

/* Small wave variant */
.loading-wave-small {
  width: 60px;
  height: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  will-change: transform;
}

.loading-wave-small svg {
  width: 100%;
  height: 100%;
  display: block;
}

.loading-wave-small .wave-path {
  /* Fill is set inline via gradient ID in the component */
  stroke: none;
}

.loading-wave-small .wave-group {
  animation: waveFlowSmall 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.loading-wave-small .wave-group-primary {
  filter: drop-shadow(0 1px 2px rgba(13, 156, 108, 0.15));
}

.loading-wave-small .wave-path-primary {
  /* Fill is set inline via gradient ID */
}

.loading-wave-small .wave-group-secondary {
  opacity: 0.5;
  animation-delay: 0.2s;
}

.loading-wave-small .wave-path-secondary {
  /* Fill is set inline via gradient ID */
}

@keyframes waveFlowSmall {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-60px);
  }
}

/* Legacy spinner classes for backward compatibility */
.loading-spinner-gradient {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  background: var(--color-bg-subtle);
  animation: spinnerPulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loading-spinner-gradient::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #0D9C6C 0deg,
    #0D9C6C 90deg,
    #3B7AF0 180deg,
    #3B7AF0 270deg,
    #0D9C6C 360deg
  );
  animation: spinnerRotate 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 2px 4px rgba(13, 156, 108, 0.2));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
}

.loading-spinner-gradient::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Small gradient spinner */
.loading-spinner-gradient-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: relative;
  background: var(--color-bg-subtle);
  animation: spinnerPulseSmall 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loading-spinner-gradient-small::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #0D9C6C 0deg,
    #0D9C6C 90deg,
    #3B7AF0 180deg,
    #3B7AF0 270deg,
    #0D9C6C 360deg
  );
  animation: spinnerRotate 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 1px 2px rgba(13, 156, 108, 0.15));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}

.loading-spinner-gradient-small::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

@keyframes spinnerRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinnerPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.95;
  }
}

@keyframes spinnerPulseSmall {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

/* ---------- Success/Error States ---------- */
.success-message {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-md);
  padding: var(--spacing-base);
  color: var(--color-success);
  animation: scaleIn 0.3s ease-out both;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-md);
  padding: var(--spacing-base);
  color: var(--color-danger);
  animation: shake 0.2s ease-in-out both;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .card {
    padding: var(--spacing-base);
  }
  
  button, .btn {
    width: 100%;
  }
  
  table {
    font-size: 0.8125rem;
  }
  
  th, td {
    padding: 0.5rem 0.75rem;
  }
}

/* ---------- Focus States (Accessibility) ---------- */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Exclude radio buttons and checkboxes from focus styles */
input[type="radio"]:focus-visible,
input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: none;
}

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(13, 156, 108, 0.2);
}

input:focus-visible:not([type="radio"]):not([type="checkbox"]),
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(13, 156, 108, 0.15);
}

/* ---------- Link Hover Improvements ---------- */
s-link:hover {
  text-decoration: underline;
  color: var(--color-primary);
  transition: var(--transition-base);
}

/* ---------- Table Row Hover Improvements ---------- */
tbody tr:hover {
  background: rgba(248, 250, 251, 0.8);
  transform: translateX(2px);
  transition: var(--transition-fast);
}

/* ---------- Tab Button Hover Improvements ---------- */
/* Removed hover effect - keeping tabs minimal and clean */

/* ---------- Modal Overlay Improvements ---------- */
.modal-overlay {
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Loading Text Animation ---------- */
.loading-text-fade {
  animation: loadingTextFade 2s ease-in-out infinite;
}

@keyframes loadingTextFade {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- Skeleton Loader Improvements ---------- */
.skeleton-text-line {
  height: 1em;
  margin-bottom: 0.5em;
  border-radius: var(--radius-sm);
}

.skeleton-text-line:last-child {
  margin-bottom: 0;
  width: 60%;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-card {
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-base);
}

/* ---------- Loading Overlay ---------- */
/* Premium full-screen loading overlay with floating dollar symbol on podium */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(241, 241, 241, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  will-change: opacity, transform;
  transform: translateZ(0) scale(0.98);
  backface-visibility: hidden;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateZ(0) scale(1);
}

/* Container for dollar symbol and text */
/* Centered layout */
.loading-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Subtle professional glow effect behind dollar symbol */
.loading-glow {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 156, 108, 0.04), transparent 70%);
  transform: translateZ(0);
  backface-visibility: hidden;
  z-index: 1;
}

/* Dollar symbol with premium gradient text effect */
/* Professional, sophisticated styling */
.loading-dollar {
  font-family: "Inter", sans-serif;
  font-size: 69px;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, #0D9C6C, #3B7AF0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  position: relative;
  z-index: 4;
  margin-bottom: 1.5rem;
  text-align: center;
  transform: translateZ(0);
  backface-visibility: hidden;
  filter: drop-shadow(0 1px 2px rgba(13, 156, 108, 0.08));
}

/* Three-step podium container */
/* Classic 1st, 2nd, 3rd place podium design */
.loading-podium {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  z-index: 3;
  margin-top: 8px;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Base styles for all podium steps */
/* Modern 2025: subtle gradient with softer shadows */
.loading-podium-step {
  background: linear-gradient(180deg, #E2E8F0, #CBD5E1, #94A3B8);
  border-radius: 0;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transform: translateZ(0);
  backface-visibility: hidden;
  position: relative;
}

/* Modern rounder corners on outer edges */
.loading-podium-second {
  border-radius: 14px 0 0 0;
}

.loading-podium-third {
  border-radius: 0 14px 0 0;
}

/* First place step (top) - where dollar symbol sits */
.loading-podium-first {
  width: 60px;
  height: 36px;
  border-radius: 0;
}

/* Second place step (middle) */
.loading-podium-second {
  width: 60px;
  height: 18px;
}

/* Third place step (bottom) */
.loading-podium-third {
  width: 60px;
  height: 17px;
}

/* Subtle reflection underneath the first place step */
.loading-podium-reflection {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.08), transparent);
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.5;
  z-index: 2;
}

/* Loading text below the dollar symbol */
/* Premium, professional typography */
.loading-text {
  margin-top: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  opacity: 1;
  color: var(--color-text-secondary);
}

/* Float animation for dollar symbol */
/* Creates organic up/down movement with subtle rotation for depth */
/* Synchronized with podium shadow animation */
@keyframes floatDollar {
  from {
    transform: translateY(-4px) rotate(-1.5deg);
    opacity: 0.98;
  }
  to {
    transform: translateY(4px) rotate(1.5deg);
    opacity: 1;
  }
}

/* Synchronized podium animations for each step */
/* First place step - shadow contracts when dollar rises, expands when it descends */
@keyframes synchronizedPodiumFirst {
  from {
    transform: translateZ(0) scale(1);
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.1),
      inset 0 1px 2px rgba(255, 255, 255, 0.6);
  }
  to {
    transform: translateZ(0) scale(0.98);
    box-shadow: 
      0 6px 16px rgba(0, 0, 0, 0.12),
      inset 0 1px 2px rgba(255, 255, 255, 0.6);
  }
}

/* Second place step - subtle breathing animation */
@keyframes synchronizedPodiumSecond {
  from {
    transform: translateZ(0) scale(1);
    box-shadow: 
      0 3px 10px rgba(0, 0, 0, 0.08),
      inset 0 1px 2px rgba(255, 255, 255, 0.6);
  }
  to {
    transform: translateZ(0) scale(0.99);
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.1),
      inset 0 1px 2px rgba(255, 255, 255, 0.6);
  }
}

/* Third place step - subtle breathing animation */
@keyframes synchronizedPodiumThird {
  from {
    transform: translateZ(0) scale(1);
    box-shadow: 
      0 2px 8px rgba(0, 0, 0, 0.08),
      inset 0 1px 2px rgba(255, 255, 255, 0.6);
  }
  to {
    transform: translateZ(0) scale(0.99);
    box-shadow: 
      0 3px 10px rgba(0, 0, 0, 0.1),
      inset 0 1px 2px rgba(255, 255, 255, 0.6);
  }
}

/* Synchronized reflection animation */
/* Expands when dollar rises, contracts when it descends */
@keyframes synchronizedReflection {
  from {
    transform: translateX(-50%) scale(1);
    opacity: 0.7;
  }
  to {
    transform: translateX(-50%) scale(1.2);
    opacity: 0.5;
  }
}


/* Fade text animation for loading text */
@keyframes fadeText {
  from {
    opacity: 0.6;
    transform: translateY(1px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .card {
    box-shadow: none;
    border: 1px solid var(--color-border);
  }
  
  button, .btn {
    display: none;
  }
  
  .loading-overlay {
    display: none;
  }
}

