/* System Design: Cotizador Premium (Premedic & Servired) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Common System Colors */
  --bg-dark: #090d16;
  --bg-dark-accent: #0f172a;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Glassmorphism Defaults */
  --glass-bg: rgba(15, 23, 42, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Brand Tokens - Servired (Official Red #DF0000) */
  --servired-primary: #DF0000;
  --servired-primary-hover: #b30000;
  --servired-accent: #ff4d4d;
  --servired-glow: rgba(223, 0, 0, 0.15);
  --servired-gradient: linear-gradient(135deg, #DF0000 0%, #ff3b30 100%);
  
  /* Brand Tokens - Premedic (Purple / Royal Blue) */
  --premedic-primary: #8b5cf6;
  --premedic-primary-hover: #7c3aed;
  --premedic-accent: #3b82f6;
  --premedic-glow: rgba(139, 92, 246, 0.15);
  --premedic-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);

  /* Animation Timings */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Background Auroras */
.aurora-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  mix-blend-mode: screen;
  animation: aurora-float 20s infinite alternate ease-in-out;
}

.aurora-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--servired-primary) 0%, transparent 70%);
}

.aurora-2 {
  bottom: -15%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--premedic-primary) 0%, transparent 70%);
  animation-delay: -5s;
}

.aurora-3 {
  top: 40%;
  left: 50%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--servired-accent) 0%, transparent 70%);
  animation-delay: -10s;
  opacity: 0.08;
}

@keyframes aurora-float {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(8%, 10%) scale(1.1) rotate(360deg); }
}

/* Glass Utility Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Main Layout Structure */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Header Styling */
header {
  text-align: center;
  margin-bottom: 3.5rem;
  animation: fade-in-down 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Brand Selection Portal */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  justify-content: center;
  justify-items: stretch;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-card {
  cursor: pointer;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Interactive Glow Effects for Cards */
.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255,255,255,0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.brand-card:hover::before {
  opacity: 1;
}

.brand-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.brand-card.servired-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.brand-card.premedic-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.brand-logo-container {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2.25rem;
  position: relative;
  z-index: 2;
}

.servired-card .brand-logo-container {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--servired-primary);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.premedic-card .brand-logo-container {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--premedic-primary);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  z-index: 2;
}

.brand-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  z-index: 2;
  line-height: 1.6;
}

.brand-btn {
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  max-width: 180px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.servired-card .brand-btn {
  background: var(--servired-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.servired-card:hover .brand-btn {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
  transform: scale(1.05);
}

.premedic-card .brand-btn {
  background: var(--premedic-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.premedic-card:hover .brand-btn {
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45);
  transform: scale(1.05);
}

/* Sliding Window Containers */
.sliding-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
  opacity: 0;
}

.sliding-view.active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.sliding-content {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  padding: 3rem 1.5rem;
  transform: translateY(60px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sliding-view.active .sliding-content {
  transform: translateY(0);
}

.view-card {
  width: 100%;
  max-width: 1200px;
  padding: 3.5rem 3rem;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Calculator Grid Setup */
.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  width: 100%;
  align-items: start;
}

.calc-form-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.calc-badge {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  align-items: center;
  gap: 0.35rem;
}

.servired-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--servired-primary);
}

.premedic-badge {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--premedic-primary);
}

.calc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Floating Label Glass Input */
.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 0.95rem;
}

.input-glass {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

/* Style select options to ensure they are readable in dark mode */
select.input-glass {
  color: #ffffff;
}

.input-glass option {
  background-color: #0f172a; /* matches --bg-dark-accent */
  color: #ffffff;
  padding: 0.75rem;
}

.input-glass:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
}

.servired-theme .input-glass:focus {
  border-color: var(--servired-primary);
  box-shadow: 0 0 16px var(--servired-glow);
}

.premedic-theme .input-glass:focus {
  border-color: var(--premedic-primary);
  box-shadow: 0 0 16px var(--premedic-glow);
}

.label-glass {
  position: absolute;
  left: 1.25rem;
  top: 1.1rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  pointer-events: none;
  transform-origin: 0 0;
}

.input-glass:focus ~ .label-glass,
.input-glass:not(:placeholder-shown) ~ .label-glass {
  transform: translateY(-1.75rem) scale(0.85);
  color: #ffffff;
  font-weight: 500;
}

.servired-theme .input-glass:focus ~ .label-glass {
  color: var(--servired-primary);
}

.premedic-theme .input-glass:focus ~ .label-glass {
  color: var(--premedic-primary);
}

/* Range Slider Styles */
.slider-container {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.slider-glass {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.servired-theme .slider-glass::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--servired-primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transition: var(--transition-fast);
}

.servired-theme .slider-glass::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.premedic-theme .slider-glass::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--premedic-primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  transition: var(--transition-fast);
}

.premedic-theme .slider-glass::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Results Section */
.results-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.result-card {
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.servired-theme .result-card {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.premedic-theme .result-card {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0.02) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.result-lbl {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.result-val {
  font-family: 'Outfit', sans-serif;
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.servired-theme .result-val {
  background: var(--servired-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.15));
}

.premedic-theme .result-val {
  background: var(--premedic-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.15));
}

.result-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Formula Breakdown Panel */
.breakdown-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.breakdown-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breakdown-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-card {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.step-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.step-calc-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.active-step {
  background: rgba(255, 255, 255, 0.05);
}

.servired-theme .active-step {
  border-color: rgba(16, 185, 129, 0.3);
}

.servired-theme .active-step .step-num {
  background: var(--servired-primary);
  color: #000000;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.servired-theme .active-step .step-calc-val {
  color: var(--servired-primary);
}

.premedic-theme .active-step {
  border-color: rgba(139, 92, 246, 0.3);
}

.premedic-theme .active-step .step-num {
  background: var(--premedic-primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.premedic-theme .active-step .step-calc-val {
  color: var(--premedic-primary);
}

/* Action Buttons */
.action-btn {
  width: 100%;
  padding: 1.1rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.servired-btn {
  background: var(--servired-gradient);
  color: #ffffff;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.25);
}

.servired-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.premedic-btn {
  background: var(--premedic-gradient);
  color: #ffffff;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.25);
}

.premedic-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Footer Info */
footer {
  margin-top: 3.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  animation: fade-in 1.2s ease-in;
}

/* CSS Keyframe Animations */
@keyframes fade-in-down {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .portal-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    gap: 1.5rem;
  }
  
  .file-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .view-card {
    padding: 3rem 2rem;
  }
  
  h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 500px) {
  .app-container {
    padding: 1.5rem 1rem;
  }
  
  header {
    margin-bottom: 2rem;
  }
  
  h1 {
    font-size: 1.85rem;
  }
  
  .view-card {
    padding: 2.5rem 1.25rem;
  }
  
  .close-btn {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
  
  .result-val {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   DOCUMENTATION & FILE CENTER STYLES
   ========================================================================== */

.file-center-section {
  width: 100%;
  max-width: 1200px;
  margin-top: 0;
  margin-bottom: 2rem;
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.file-center-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

.file-box {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.file-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255,255,255,0.03), transparent 45%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.file-box:hover::after {
  opacity: 1;
}

.file-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.plans-box:hover {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.05);
}

.share-box:hover {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.05);
}

.file-box-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  z-index: 2;
}

.file-box-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.file-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.plans-icon {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--servired-primary);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.share-icon {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--servired-primary);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.file-box-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.75rem;
  z-index: 2;
}

/* Drag and Drop Zone */
.drop-area {
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
  z-index: 2;
  text-align: center;
}

.drop-area:hover {
  background: rgba(255, 255, 255, 0.03);
}

.plans-box .drop-area:hover,
.plans-box .drop-area.dragover {
  border-color: var(--servired-primary);
  background: rgba(16, 185, 129, 0.04);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.08);
}

.share-box .drop-area:hover,
.share-box .drop-area.dragover {
  border-color: var(--servired-primary);
  background: rgba(16, 185, 129, 0.04);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.08);
}

.upload-arrow {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.plans-box .drop-area:hover .upload-arrow,
.plans-box .drop-area.dragover .upload-arrow {
  color: var(--servired-primary);
  transform: translateY(-4px);
}

.share-box .drop-area:hover .upload-arrow,
.share-box .drop-area.dragover .upload-arrow {
  color: var(--servired-primary);
  transform: translateY(-4px);
}

.drop-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.drop-text .highlight {
  font-weight: 600;
  text-decoration: underline;
  transition: var(--transition-fast);
}

.plans-box .drop-area:hover .highlight,
.plans-box .drop-area.dragover .highlight {
  color: var(--servired-primary);
}

.share-box .drop-area:hover .highlight,
.share-box .drop-area.dragover .highlight {
  color: var(--servired-primary);
}

/* Uploaded Files Container */
.uploaded-files-container {
  margin-top: 1.5rem;
  z-index: 2;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.uploaded-files-container::-webkit-scrollbar {
  width: 4px;
}

.uploaded-files-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 2px;
}

.uploaded-files-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.uploaded-files-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.file-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
}

.file-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: slide-in-file 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-in-file {
  0% { opacity: 0; transform: translateY(12px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.file-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.file-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0; /* Ensures proper text truncation */
}

.file-type-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.file-name-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.file-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Actions in File List */
.file-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-delete-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.file-delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  transform: scale(1.05);
}

/* Interactive Progress Bar */
.progress-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.plans-box .progress-fill {
  background: var(--servired-gradient);
}

.share-box .progress-fill {
  background: var(--servired-gradient);
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  font-weight: 500;
}

.file-status-complete {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.plans-box .file-status-complete {
  color: var(--servired-primary);
}

.share-box .file-status-complete {
  color: var(--servired-primary);
}

/* ==========================================================================
   SERVIRED MULTIMODE TABS & COMPARISON GRID
   ========================================================================== */

/* Glassmorphic Tab Bar */
.tab-bar-glass {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 0.35rem;
  gap: 0.25rem;
  width: 100%;
  margin-bottom: 0.75rem;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.tab-btn-glass {
  flex: 1;
  padding: 0.8rem 0.5rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
}

.tab-btn-glass:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn-glass.active {
  color: #ffffff;
  background: var(--servired-gradient);
  box-shadow: 0 4px 15px rgba(223, 0, 0, 0.3);
}

/* Conditional Groups */
.conditional-group {
  display: none;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.conditional-group.active-group {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Comparison Grid */
.plans-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.plans-comparison-grid.four-columns {
  grid-template-columns: repeat(4, 1fr);
}

.plan-compare-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.plan-compare-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(400px circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.04), transparent 45%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.plan-compare-card:hover::after {
  opacity: 1;
}

.plan-compare-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(223, 0, 0, 0.25);
  box-shadow: 0 12px 30px rgba(223, 0, 0, 0.08);
}

.plan-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
  z-index: 2;
}

.plan-card-header h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.plan-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--servired-accent);
}

.plan-pricing-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  z-index: 2;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.price-base, .price-ded {
  font-weight: 500;
}

.price-row.final-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.65rem;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: bold;
}

.price-final {
  color: var(--servired-accent);
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

/* Plan Actions */
.plan-card-actions {
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.plan-action-btn {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.plan-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.plan-action-btn.download-btn:hover {
  border-color: var(--servired-primary);
  color: var(--servired-accent);
}

.plan-action-btn.send-btn {
  background: var(--servired-gradient);
  border: none;
  box-shadow: 0 4px 12px rgba(223, 0, 0, 0.2);
}

.plan-action-btn.send-btn:hover {
  box-shadow: 0 6px 16px rgba(223, 0, 0, 0.35);
  transform: scale(1.02);
}

/* Covered Badge Pill */
.covered-badge {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  text-transform: uppercase;
  animation: pulse-green 2s infinite alternate;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
  100% { box-shadow: 0 0 8px 2px rgba(16, 185, 129, 0.4); }
}

@media (max-width: 900px) {
  .plans-comparison-grid,
  .plans-comparison-grid.four-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Print CSS Stylesheet for PDF/Print Export */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: Arial, sans-serif !important;
  }
  
  .app-container, .aurora-container, .close-btn, .action-btn, .input-group, .slider-container, .breakdown-steps, .breakdown-title, .file-center-section {
    display: none !important;
  }
  
  .sliding-view {
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffffff !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .sliding-content {
    padding: 0 !important;
    transform: none !important;
  }
  
  .view-card {
    border: none !important;
    background: #ffffff !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  
  .calc-grid {
    display: block !important;
  }
  
  .print-header {
    display: block !important;
    text-align: center;
    border-bottom: 2px solid #000000;
    padding-bottom: 1.5cm;
    margin-bottom: 2cm;
  }
  
  .print-logo {
    font-size: 24pt;
    font-weight: bold;
    color: #DF0000;
  }
  
  .print-title {
    font-size: 18pt;
    margin-top: 0.5cm;
  }
  
  .print-info-table {
    display: table !important;
    width: 100%;
    margin-bottom: 2cm;
    border-collapse: collapse;
  }
  
  .print-info-table th, .print-info-table td {
    border: 1px solid #dddddd;
    padding: 10px;
    text-align: left;
  }
  
  .print-info-table th {
    background-color: #f3f4f6;
    font-weight: bold;
  }
  
  .print-result-box {
    display: block !important;
    text-align: center;
    border: 3px solid #DF0000;
    background-color: #fef2f2;
    padding: 1.5cm;
    border-radius: 10px;
    margin-bottom: 2cm;
  }
  
  .print-result-val {
    font-size: 32pt;
    font-weight: bold;
    color: #DF0000;
  }
  
  .print-footer {
    display: block !important;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 9pt;
    color: #666666;
    border-top: 1px solid #dddddd;
    padding-top: 0.5cm;
  }
}

/* Hidden Print elements in normal screen mode */
.print-header, .print-info-table, .print-result-box, .print-footer {
  display: none;
}

/* Premium Plan Selection Checkboxes & Buttons */
.plan-select-wrapper {
  flex: 1;
  display: flex;
}

.plan-select-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.plan-select-btn {
  width: 100%;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
  user-select: none;
}

.plan-select-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.plan-select-checkbox:checked + .plan-select-btn {
  background: var(--servired-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(223, 0, 0, 0.2);
}

.plan-select-btn .check-icon {
  display: none;
}

.plan-select-checkbox:checked + .plan-select-btn .check-icon {
  display: inline-block;
}

/* Premium Share Info Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-card {
  width: 90%;
  max-width: 550px;
  padding: 2.5rem;
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@keyframes modal-in {
  0% { opacity: 0; transform: scale(0.95) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-body {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.modal-body::-webkit-scrollbar {
  width: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.modal-file-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-fast);
}

.modal-file-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.modal-file-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.modal-file-name-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.modal-file-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-file-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Login and Interactive Robot Styles */
#login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  width: 100%;
  animation: fade-in-down 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-card-wrapper {
  perspective: 1000px;
}

.robot-container {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -1rem;
}

.robot-body-group {
  animation: robot-float 5s ease-in-out infinite;
  transform-origin: 50px 75px;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* When email field is focused, the robot leans forward and gets closer (scales up) */
.robot-container.focusing .robot-body-group {
  animation: robot-focus-float 4s ease-in-out infinite;
  transform: scale(1.04) translateY(3px) rotate(-2deg);
}

.robot-eye {
  animation: robot-blink 6.5s ease-in-out infinite;
}

/* Pulsing Arc Reactor Core */
.robot-heart {
  animation: pulse-reactor 2.5s infinite ease-in-out alternate;
  transform-origin: 50px 74px;
}

/* Rotating Energy Ring */
.robot-core-ring {
  animation: spin-reactor 12s linear infinite;
  transform-origin: 50px 74px;
}

/* Glowing Indicator Lights */
.robot-glow-cyan {
  animation: blink-neon-cyan 1.5s infinite alternate;
}

.robot-glow-violet {
  animation: blink-neon-violet 1.8s infinite alternate;
}

/* Mechanical Arm Animations */
.robot-arm {
  transform-origin: 28px 70px;
  /* Elastic cubic-bezier transition for hydraulic rebound bounce */
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Arm rotation points mechanical pointer down-right when email input is focused */
.robot-container.focusing .robot-arm {
  transform: rotate(-35deg) translate(2px, -3px);
}

.robot-finger-tip {
  transition: fill 0.4s ease;
}

.robot-container.focusing .robot-finger-tip {
  fill: #00f2fe;
}

/* Pulsing holographic scanner sonar ring */
.robot-finger-pulse {
  animation: sonar-pulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* Custom Cyber Animations Keyframes */
/* More organic float: vertical range of 14px and tilting of 3.8deg */
@keyframes robot-float {
  0% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(3.8deg); }
  75% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Asymmetric float when focused to keep the attention active */
@keyframes robot-focus-float {
  0% { transform: scale(1.04) translateY(3px) rotate(-2deg); }
  50% { transform: scale(1.04) translateY(-9px) rotate(1.5deg); }
  100% { transform: scale(1.04) translateY(3px) rotate(-2deg); }
}

@keyframes robot-blink {
  0%, 90%, 100% { transform: scaleY(1); transform-origin: 50px 33px; }
  94% { transform: scaleY(0); transform-origin: 50px 33px; }
}

@keyframes pulse-reactor {
  0% { opacity: 0.7; filter: drop-shadow(0 0 3px #00f2fe); }
  100% { opacity: 1; filter: drop-shadow(0 0 10px #8b5cf6); }
}

@keyframes spin-reactor {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blink-neon-cyan {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; fill: #00f2fe; }
}

@keyframes blink-neon-violet {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; fill: #c084fc; }
}

@keyframes sonar-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
    stroke: #10b981;
    stroke-width: 0.75px;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
    stroke: #8b5cf6;
    stroke-width: 0.25px;
  }
}

/* Logout Button Styling */
.logout-btn {
  max-width: 200px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  margin-bottom: 0.5rem;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
  transform: translateY(-2px);
}

/* Mobile Visual Optimization for Glassmorphic Tab Buttons */
@media (max-width: 600px) {
  .tab-btn-glass {
    font-size: 0.72rem !important;
    padding: 0.65rem 0.2rem !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
  }
  .tab-bar-glass {
    gap: 0.15rem !important;
    padding: 0.25rem !important;
  }
}
