:root {
  --bg-dark: #1A1A1A;
  --bg-darker: #0F0F0F;
  --bg-light: #2A2A2A;
  --accent-primary: #6e56cf;
  --accent-secondary: #a277ff;
  --text-primary: #E6E6E6;
  --text-secondary: #B0B0B0;
  --glass-bg: rgba(30, 30, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.05);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-main: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.app-container {
  width: 90%;
  max-width: 900px;
  margin: 2rem auto;
  position: relative;
  animation: fadeIn 0.8s ease-out;
}

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

.app-header {
  text-align: center;
  margin-bottom: 3.5rem;
  animation: slideDown 0.7s ease-out;
  position: relative;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.logo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
  height: 70px;
}

.logo {
  width: 240px;
  height: 70px;
  position: relative;
  z-index: 2;
}

.logo-text {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 48px;
  fill: url(#gradient);
  letter-spacing: -0.2px;
  text-shadow: 0 2px 10px rgba(110, 86, 207, 0.25);
  dominant-baseline: middle;
  text-anchor: middle;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 50px;
  background: var(--accent-primary);
  filter: blur(25px);
  opacity: 0.4;
  z-index: 1;
  animation: pulsateGlow 4s infinite alternate;
}

@keyframes pulsateGlow {
  0% { opacity: 0.2; filter: blur(25px); width: 190px; }
  50% { opacity: 0.35; filter: blur(30px); width: 200px; }
  100% { opacity: 0.3; filter: blur(28px); width: 195px; }
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 1.2rem;
  line-height: 1;
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, var(--text-secondary), var(--accent-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
  text-transform: uppercase;
  font-family: var(--font-code);
  padding: 0.2rem 0.5rem;
}

.glass-card {
  background: rgba(25, 25, 30, 0.5);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(28, 28, 35, 0.55);
}

.glass-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.05), 
    transparent
  );
  transition: left 0.8s ease-out;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover::before {
  left: 100%;
}

.input-section {
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-out 0.2s backwards;
  position: relative;
}

label {
  display: block;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

textarea {
  width: 100%;
  min-height: 80px;
  background: rgba(15, 15, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  resize: vertical;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2), 
              0 0 0 2px rgba(110, 86, 207, 0.15),
              0 5px 15px rgba(0, 0, 0, 0.1);
  background: rgba(20, 20, 20, 0.6);
}

.glow-btn {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  border-radius: 10px;
  padding: 1rem 1.8rem;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: block;
  margin: 1.8rem 0 0.5rem auto;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 20px rgba(110, 86, 207, 0.4);
  backdrop-filter: blur(5px);
}

.glow-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(110, 86, 207, 0.5);
}

.glow-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(110, 86, 207, 0.3);
}

.btn-glow {
  display: none;
}

.output-section {
  animation: fadeIn 0.8s ease-out;
}

.terminal {
  background: rgba(12, 12, 15, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.terminal:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-content {
  padding: 1.4rem;
  font-family: var(--font-code);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 350px;
  overflow-y: auto;
  color: #e0e0e0;
  background: linear-gradient(to bottom, 
              rgba(20, 20, 25, 0.3) 0%,
              rgba(10, 10, 15, 0.5) 100%);
}

.terminal-content::-webkit-scrollbar {
  width: 6px;
}

.terminal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.terminal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--accent-secondary), var(--accent-primary));
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.loading-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 2rem 0;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  animation: dotPulse 1.5s infinite ease-in-out;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(0.7); opacity: 0.5; }
  50% { transform: scale(1); opacity: 1; }
}

.history-section {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.interactive-pill {
  cursor: pointer;
}

.interactive-pill:hover {
  background: rgba(50, 50, 50, 0.6);
  transform: translateY(-2px);
}

.pill-icon {
  font-size: 1.1rem;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.5rem;
  box-shadow: var(--shadow);
  z-index: 100;
  transition: var(--transition-smooth);
}

.toast.show {
  animation: toastIn 0.3s forwards, toastOut 0.3s forwards 2.7s;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, -20px); }
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .app-container {
    width: 95%;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
  
  .logo-container {
    height: 60px;
  }
  
  .logo {
    width: 200px;
    height: 60px;
  }
  
  .logo-text {
    font-size: 38px;
  }
  
  .tagline {
    font-size: 1.1rem;
    margin-top: 1rem;
  }
  
  .logo-glow {
    animation: none;
    opacity: 0.3;
    width: 180px;
    filter: blur(25px);
  }
  
  .glow-btn {
    width: 100%;
    margin: 1.5rem 0 0.5rem 0;
  }

  /* Optimize floating elements for mobile */
  .floating-element {
    display: none;
  }

  /* Reduce other animations */
  .glass-card::before {
    display: none;
  }

  /* Static version of interactive elements */
  .interactive-pill, .template-item, .history-item {
    transition: none;
  }

  .interactive-pill:hover, .template-item:hover, .history-item:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .app-header {
    margin-bottom: 2.5rem;
    padding: 1rem 0;
  }
  
  .logo-container {
    height: 50px;
    margin-bottom: 0.8rem;
  }
  
  .logo {
    width: 170px;
    height: 50px;
  }
  
  .logo-text {
    font-size: 32px;
  }
  
  .tagline {
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    margin-top: 0.8rem;
  }
  
  .logo-glow {
    width: 150px;
    height: 40px;
  }
  
  .glass-card {
    padding: 1.2rem;
  }
  
  .terminal-content {
    font-size: 0.85rem;
    max-height: 250px;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 550px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(20, 20, 25, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 2rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: all 0.2s ease;
  line-height: 1;
}

.close-modal:hover {
  color: var(--text-primary);
}

.history-item {
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  cursor: default;
  transition: all 0.3s ease;
  background: rgba(35, 35, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.history-item:hover {
  background: rgba(40, 40, 50, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.history-item-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  font-weight: 400;
}

.history-item-badge {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.history-item-input {
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.history-item-preview {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.5;
  max-height: 80px;
  overflow: hidden;
  position: relative;
  padding: 0.8rem;
  background: rgba(15, 15, 20, 0.4);
  border-radius: 8px;
  border-left: 2px solid var(--accent-primary);
}

.history-item-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(15, 15, 20, 0.9));
}

.history-item-actions {
  display: flex;
  justify-content: flex-end;
}

.history-item-btn.load {
  background: linear-gradient(125deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(110, 86, 207, 0.25);
}

.history-item-btn.load:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(110, 86, 207, 0.4);
}

/* Templates pill styling */
.templates-pill {
  background: linear-gradient(125deg, rgba(110, 86, 207, 0.15), rgba(162, 119, 255, 0.25));
  border: 1px solid rgba(162, 119, 255, 0.2);
}

.templates-pill:hover {
  background: linear-gradient(125deg, rgba(110, 86, 207, 0.25), rgba(162, 119, 255, 0.35));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(110, 86, 207, 0.25);
}

/* Templates modal styling */
.templates-categories {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
}

.templates-categories::-webkit-scrollbar {
  display: none;
}

.template-category {
  padding: 0.4rem 0.8rem;
  background: rgba(40, 40, 45, 0.6);
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.template-category:hover {
  background: rgba(60, 60, 65, 0.7);
}

.template-category.active {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: white;
}

.template-item {
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  background: rgba(35, 35, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.template-item:hover {
  background: rgba(40, 40, 50, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.template-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.template-item:hover::before {
  opacity: 1;
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.template-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.template-category-badge {
  background: rgba(110, 86, 207, 0.15);
  color: var(--accent-secondary);
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-weight: 500;
}

.template-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.template-use-btn {
  background: rgba(35, 35, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.template-use-btn:hover {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(110, 86, 207, 0.25);
}

/* Placeholder highlighting effect */
@keyframes highlightPlaceholders {
  0% { background-color: rgba(110, 86, 207, 0.1); }
  50% { background-color: rgba(110, 86, 207, 0.3); }
  100% { background-color: rgba(110, 86, 207, 0.1); }
}

.highlight-placeholders {
  animation: highlightPlaceholders 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .history-section {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .template-item {
    padding: 1.2rem;
  }
  
  .template-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .template-category-badge {
    margin-top: 0.5rem;
  }
}

/* Custom cursor */
.custom-cursor {
  display: none;
}

.cursor-trail {
  display: none;
}

/* Floating elements */
.floating-element {
  position: absolute;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
  animation: float 20s infinite alternate ease-in-out;
  transition: transform 0.3s ease-out;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
  }
}

/* Enhanced glass-card with tilt effect */
.glass-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background: var(--glass-bg);
}

/* Enhanced button interactions */
.glow-btn {
  overflow: hidden;
  position: relative;
}

.glow-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: rotate(30deg);
  transition: transform 0.7s;
  opacity: 0;
  z-index: 1;
}

.glow-btn:hover::after {
  opacity: 1;
  transform: rotate(40deg) translate(-10%, -10%);
}

.glow-btn span {
  position: relative;
  z-index: 2;
}

/* Confetti animation */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.confetti {
  position: absolute;
  top: -20px;
  border-radius: 0%;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Enhanced interactive pill */
.interactive-pill {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.interactive-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.7s;
}

.interactive-pill:hover::before {
  left: 100%;
}

/* Enhanced loading animation */
.dot {
  position: relative;
  box-shadow: 0 0 10px var(--accent-primary);
}

.dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-primary);
  filter: blur(8px);
  opacity: 0.5;
  animation: dotGlow 1.5s infinite ease-in-out;
  animation-delay: inherit;
}

@keyframes dotGlow {
  0%, 100% { transform: scale(0.8); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

/* Hide cursor when custom cursor is active */
body:has(.custom-cursor.active) {
  cursor: none;
}

/* Enhanced toast notification */
.toast {
  transform: translateX(-50%) translateY(0);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.toast.show {
  animation: toastPop 0.4s forwards, toastFloat 2s 0.4s ease-in-out infinite, toastOut 0.4s forwards 3s;
}

@keyframes toastPop {
  0% { transform: translate(-50%, 20px) scale(0.8); opacity: 0; }
  50% { transform: translate(-50%, -5px) scale(1.05); opacity: 1; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

@keyframes toastFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -5px); }
}

@keyframes toastOut {
  0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -20px) scale(0.8); opacity: 0; }
}

/* Premium textarea focus effect */
.textarea-focused textarea {
  transform: translateY(-2px);
}

.input-section::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  transition: transform 0.4s ease;
}

.textarea-focused .input-section::after {
  transform: translateX(-50%) scaleX(1);
}

/* Enhanced scrollbar for terminal content */
.terminal-content::-webkit-scrollbar {
  width: 6px;
}

.terminal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.terminal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--accent-secondary), var(--accent-primary));
}

/* Add these new responsive design optimizations */

/* Base responsive viewport settings */
@media screen and (max-width: 1200px) {
  .app-container {
    width: 95%;
    max-width: 800px;
    margin: 1.5rem auto;
  }
}

@media screen and (max-width: 992px) {
  .glass-card {
    padding: 1.8rem;
  }

  .terminal-content {
    max-height: 300px;
  }
}

@media screen and (max-width: 768px) {
  .app-container {
    width: 92%;
    margin: 1rem auto;
  }

  .app-header {
    margin-bottom: 2.5rem;
  }

  .logo-container {
    height: 55px;
  }

  .logo {
    width: 180px;
    height: 55px;
  }

  .logo-text {
    font-size: 36px;
  }

  .tagline {
    font-size: 1rem;
    margin-top: 0.8rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .terminal-header {
    padding: 0.8rem 1.2rem;
  }

  .terminal-content {
    padding: 1.2rem;
    font-size: 0.9rem;
    max-height: 250px;
  }

  .templates-categories {
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
    gap: 0.6rem;
  }

  .template-category {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  .app-container {
    width: 94%;
    margin: 0.8rem auto;
  }

  .logo-container {
    height: 45px;
  }

  .logo {
    width: 150px;
    height: 45px;
  }

  .logo-text {
    font-size: 28px;
  }

  .tagline {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }

  .glass-card {
    padding: 1.2rem;
    border-radius: 14px;
  }

  textarea {
    padding: 1rem;
    font-size: 0.95rem;
    min-height: 70px;
  }

  .glow-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .history-item, .template-item {
    padding: 1.2rem;
  }

  .history-item-input, .template-header h4 {
    font-size: 0.95rem;
  }

  .history-item-preview {
    font-size: 0.8rem;
    padding: 0.6rem;
    max-height: 70px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .logo-glow {
    animation: none;
    opacity: 0.3;
    width: 180px;
    filter: blur(25px);
  }

  .glass-card {
    transform: none !important;
    transition: none !important;
  }

  .glass-card::before {
    display: none;
  }

  .floating-element {
    display: none;
  }
}

/* High-DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-text {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .glass-card {
    backdrop-filter: blur(15px);
  }
}

/* Foldable device support */
@media (max-width: 320px) {
  .app-container {
    width: 96%;
    margin: 0.6rem auto;
  }

  .glass-card {
    padding: 1rem;
  }

  .terminal-content {
    max-height: 200px;
  }
}

/* Tablet optimization */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .app-container {
    max-width: 900px;
  }

  .glass-card {
    padding: 2rem;
  }
}

/* Add these performance optimizations */
.app-container, .glass-card, .terminal {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .floating-element {
    display: none;
  }

  .confetti-container {
    display: none;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .app-container {
    width: 100%;
    margin: 0;
  }

  .glass-card {
    box-shadow: none;
    border: 1px solid #ccc;
    background: white;
  }

  .terminal {
    border: 1px solid #ccc;
    background: white;
  }

  .terminal-content {
    color: black;
  }

  .history-section,
  .loading-animation,
  .particles-js,
  .floating-element {
    display: none;
  }
}

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 500px;
}

.splash-logo-container {
  position: relative;
  width: 300px;
  height: 100px;
  margin-bottom: 1rem;
}

.splash-logo {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.8);
  animation: logoReveal 0.8s ease-out forwards 0.3s;
}

.splash-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 50px;
  background: var(--accent-primary);
  filter: blur(25px);
  opacity: 0;
  z-index: 1;
  animation: glowExpand 1s ease-out forwards 0.1s;
}

.splash-tagline {
  font-size: 1.4rem;
  font-family: var(--font-code);
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--text-secondary), var(--accent-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(10px);
  animation: taglineReveal 0.6s ease-out forwards 1s;
}

.splash-neurons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.splash-neurons::before,
.splash-neurons::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: radial-gradient(circle, var(--accent-primary) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0;
  animation: neuronsOpacity 2s ease-out forwards 0.5s;
  transform: rotate(25deg);
}

.splash-neurons::after {
  background-size: 35px 35px;
  transform: rotate(-15deg);
  animation-delay: 0.7s;
}

.splash-loading {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards 1.5s;
}

.splash-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
  animation: loadingPulse 1.5s infinite ease-in-out;
}

.splash-loading span:nth-child(2) {
  animation-delay: 0.2s;
}

.splash-loading span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Animations */
@keyframes logoReveal {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes glowExpand {
  0% { width: 0; opacity: 0; }
  50% { opacity: 0.6; }
  100% { width: 250px; opacity: 0.5; }
}

@keyframes taglineReveal {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes neuronsOpacity {
  0% { opacity: 0; }
  100% { opacity: 0.07; }
}

@keyframes loadingPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .splash-logo-container {
    width: 240px;
    height: 80px;
  }
  
  .splash-tagline {
    font-size: 1.1rem;
  }
  
  .splash-glow {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .splash-logo-container {
    width: 200px;
    height: 70px;
  }
  
  .splash-tagline {
    font-size: 1rem;
  }
  
  .splash-glow {
    height: 30px;
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .splash-logo,
  .splash-glow,
  .splash-tagline,
  .splash-neurons::before,
  .splash-neurons::after,
  .splash-loading span {
    animation-duration: 0.1s !important;
  }
  
  #splash-screen {
    transition-duration: 0.1s !important;
  }
}

/* Add this to styles.css to create a container for main content and sidebars */
.page-layout {
  width: 100%;
  max-width: 900px; /* Match your original content width */
  margin: 0 auto;
}

.ad-container {
  background: rgba(25, 25, 30, 0.3);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: pulse 5s infinite alternate;
  opacity: 0.95;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 rgba(110, 86, 207, 0); }
  100% { box-shadow: 0 0 15px rgba(110, 86, 207, 0.1); }
}

.ad-container::after {
  content: "Ad";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 10px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 5px;
  border-radius: 3px;
}

.ad-skyscraper {
  position: sticky;
  top: 20px;
  height: 300px;
  width: 160px;
}

.ad-rectangle {
  display: none;
}

.ad-leaderboard {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 1300px) {
  .page-layout {
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr) minmax(0, 160px);
  }
}

@media (max-width: 1100px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .sidebar-left, .sidebar-right {
    display: none;
  }
  
  .ad-leaderboard {
    display: block;
  }
}

@media (max-width: 768px) {
  .ad-leaderboard {
    width: 300px;
    height: 250px;
  }
}

/* Add ability to dismiss ads */
.ad-close {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 10px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 5px;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.ad-container:hover .ad-close {
  opacity: 1;
}

/* Ensure content remains centered on small screens */
@media (max-width: 1100px) {
  .app-container {
    margin: 20px auto;
    padding: 0 15px;
  }
}

/* Prompt Scoring Feature Styles */
.score-button {
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-button svg {
  stroke: white;
}

.score-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.score-modal.show {
  opacity: 1;
}

.score-modal.fade-out {
  opacity: 0;
}

.score-modal .modal-content {
  width: 90%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  background: rgba(25, 25, 35, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-modal.show .modal-content {
  transform: translateY(0);
}

.score-modal .modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.score-modal .modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #a669ff, #79e0ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.score-circle-bg {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}

.score-circle-progress {
  stroke: url(#scoreGradient);
  stroke-width: 6;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dasharray 1s ease;
}

/* Add this SVG definition to the document */
#score-gradient-def {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.score-overview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
}

.score-chart {
  width: 120px;
  height: 120px;
}

.score-circle {
  width: 100%;
  height: 100%;
}

.score-text {
  font-size: 24px;
  font-weight: bold;
  fill: white;
}

.score-rating {
  font-size: 1.5rem;
  font-weight: 600;
}

.rating {
  padding: 5px 12px;
  border-radius: 20px;
}

.rating.perfect {
  background: linear-gradient(135deg, #43cea2, #185a9d);
  color: white;
}

.rating.good {
  background: linear-gradient(135deg, #4776E6, #8E54E9);
  color: white;
}

.rating.fair {
  background: linear-gradient(135deg, #f7b733, #fc4a1a);
  color: white;
}

.rating.poor {
  background: linear-gradient(135deg, #cb2d3e, #ef473a);
  color: white;
}

.score-breakdown {
  margin-bottom: 25px;
}

.score-breakdown h3, .improvement-tips h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.breakdown-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.breakdown-label {
  width: 100px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.breakdown-bar {
  flex-grow: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 10px;
}

.breakdown-progress {
  height: 100%;
  background: linear-gradient(to right, #a669ff, #79e0ee);
  border-radius: 4px;
  transition: width 1s ease;
  width: 0;
}

.breakdown-value {
  width: 30px;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: right;
}

.improvement-tips ul {
  margin: 0;
  padding-left: 20px;
}

.improvement-tips li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* SVG gradient definition - add to body */
body:not(:has(#scoreGradient)) {
  position: relative;
}

body:not(:has(#scoreGradient))::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

body:not(:has(#scoreGradient))::after {
  content: '<svg width="0" height="0"><defs><linearGradient id="scoreGradient" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#a669ff" /><stop offset="100%" stop-color="#79e0ee" /></linearGradient></defs></svg>';
}

@media (max-width: 768px) {
  .score-overview {
    flex-direction: column;
    gap: 15px;
  }
  
  .score-chart {
    width: 100px;
    height: 100px;
  }
  
  .breakdown-label {
    width: 80px;
  }
}

/* Simplified Comparison Modal Styles */
.simplified-comparison {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-columns {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.comparison-column {
  flex: 1;
  padding: 20px;
  border-radius: 12px;
  background: rgba(30, 30, 40, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.comparison-column.winner {
  background: rgba(40, 40, 60, 0.7);
  border: 1px solid rgba(110, 86, 207, 0.4);
  box-shadow: 0 0 15px rgba(110, 86, 207, 0.2);
  transform: scale(1.03);
}

.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  position: relative;
}

.vs-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6e56cf, #a277ff);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.column-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.score-badge {
  background: rgba(110, 86, 207, 0.2);
  color: #a277ff;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.strength-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.strength-list li {
  margin-bottom: 8px;
  font-size: 15px;
  position: relative;
  padding-left: 12px;
  border-left: 2px solid rgba(110, 86, 207, 0.6);
}

.strength-list .neutral {
  opacity: 0.7;
  border-left-color: rgba(255, 255, 255, 0.2);
}

.recommendation-bar {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: rgba(30, 30, 40, 0.5);
  border-radius: 10px;
  border-left: 4px solid #a277ff;
}

.recommendation-bar.ai {
  border-left-color: #7f5bff;
}

.recommendation-bar.original {
  border-left-color: #43cea2;
}

.recommendation-icon {
  font-size: 20px;
  margin-right: 15px;
}

.recommendation-text {
  font-size: 15px;
}

.view-details-wrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.view-details-btn, .view-prompts-btn, .back-summary-btn {
  background: rgba(110, 86, 207, 0.1);
  border: 1px solid rgba(110, 86, 207, 0.3);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.view-details-btn:hover, .view-prompts-btn:hover, .back-summary-btn:hover {
  background: rgba(110, 86, 207, 0.2);
  border-color: rgba(110, 86, 207, 0.5);
}

.back-to-summary {
  margin-top: 20px;
  text-align: center;
}

.hidden {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .comparison-columns {
    flex-direction: column;
    gap: 15px;
  }
  
  .comparison-column.winner {
    transform: scale(1);
  }
  
  .comparison-divider {
    height: 40px;
    width: 100%;
    margin: 5px 0;
  }
}

/* Premium Comparison Modal Styles */
.premium-modal .modal-content {
  max-width: 850px;
  background: rgba(20, 20, 28, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(110, 86, 207, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(110, 86, 207, 0.2);
}

.premium-header {
  padding: 25px 30px;
  border-bottom: 1px solid rgba(110, 86, 207, 0.15);
  background: rgba(30, 30, 40, 0.3);
}

.premium-title {
  display: flex;
  flex-direction: column;
}

.premium-title h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  background: linear-gradient(135deg, #a277ff, #6e56cf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.premium-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 5px;
}

.premium-body {
  padding: 30px;
}

.premium-overview {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 30px;
}

/* Score overview section */
.premium-score-overview {
  display: flex;
  align-items: stretch;
  gap: 15px;
  margin: 20px 0;
}

.premium-score-card {
  flex: 1;
  background: rgba(25, 25, 35, 0.5);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.premium-score-card.winner {
  background: rgba(35, 35, 45, 0.8);
  border: 1px solid rgba(110, 86, 207, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 15px rgba(110, 86, 207, 0.15);
  transform: translateY(-5px);
}

.gauge-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.gauge {
  position: relative;
  width: 100%;
  height: 50%;
  overflow: hidden;
  border-top-left-radius: 120px;
  border-top-right-radius: 120px;
  background: rgba(40, 40, 50, 0.3);
}

.gauge-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 50%, #6e56cf 50%);
  transform-origin: center bottom;
}

.gauge-value {
  font-size: 28px;
  font-weight: 700;
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  text-align: center;
}

.premium-strength-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.premium-strength-list li {
  padding: 8px 10px;
  margin-bottom: 5px;
  border-left: 3px solid rgba(110, 86, 207, 0.5);
}

.metrics-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
}

.score-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-bar {
  flex: 1;
  height: 8px;
  background: rgba(40, 40, 50, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #6e56cf, #a277ff);
  border-radius: 4px;
}

.premium-btn {
  background: rgba(110, 86, 207, 0.15);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(110, 86, 207, 0.3);
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .premium-score-overview {
    flex-direction: column;
  }
}

/* Replace gauge styles with progress bar styles */
.premium-progress-container {
  width: 100%;
  margin: 15px auto;
  text-align: center;
}

.premium-progress {
  height: 40px;
  background: rgba(40, 40, 50, 0.3);
  border-radius: 20px;
  position: relative;
  margin-bottom: 10px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-progress-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  position: absolute;
  left: 0;
  top: 0;
}

.premium-progress.excellent .premium-progress-fill {
  background: linear-gradient(90deg, #43cea2, #4caf50);
}

.premium-progress.good .premium-progress-fill {
  background: linear-gradient(90deg, #6e56cf, #a277ff);
}

.premium-progress.fair .premium-progress-fill {
  background: linear-gradient(90deg, #f7b733, #fc4a1a);
}

.premium-progress.poor .premium-progress-fill {
  background: linear-gradient(90deg, #cb2d3e, #ef473a);
}

.premium-progress-value {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.premium-progress-label {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.premium-progress-label.excellent {
  color: #4caf50;
}

.premium-progress-label.good {
  color: #a277ff;
}

.premium-progress-label.fair {
  color: #fc4a1a;
}

.premium-progress-label.poor {
  color: #ef473a;
}

/* Hide old gauge elements */
.gauge-container,
.gauge,
.gauge-fill,
.gauge-center,
.gauge-value,
.gauge-label {
  display: none;
}

/* Adjust the Premium card styling for better spacing */
.premium-score-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.premium-score-title {
  text-align: center;
  margin-bottom: 15px;
}

/* Confidence indicator */
.premium-comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 120px;
}

.confidence-indicator {
  width: 100%;
  background: rgba(20, 20, 30, 0.7);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.confidence-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.confidence-level {
  font-size: 20px;
  font-weight: 600;
}

.confidence-indicator.high {
  border-top: 3px solid #4caf50;
}

.confidence-indicator.medium {
  border-top: 3px solid #ff9800;
}

.confidence-indicator.low {
  border-top: 3px solid #f44336;
}

.margin-difference {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Strengths section */
.premium-strengths {
  margin-top: 20px;
}

.strengths-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  text-align: center;
}

.premium-strength-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.premium-strength-list li {
  position: relative;
  padding: 8px 10px;
  margin-bottom: 5px;
  font-size: 14px;
  background: rgba(110, 86, 207, 0.1);
  border-radius: 6px;
  border-left: 3px solid rgba(110, 86, 207, 0.5);
}

.no-strengths {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  padding: 10px;
}

/* Recommendation section */
.premium-recommendation {
  background: rgba(25, 25, 35, 0.5);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.recommendation-header {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.recommendation-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.recommendation-icon {
  font-size: 32px;
  background: rgba(40, 40, 50, 0.7);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.recommendation-content.ai .recommendation-icon {
  background: linear-gradient(135deg, #5e43c2, #7f5bff);
}

.recommendation-content.original .recommendation-icon {
  background: linear-gradient(135deg, #2c8558, #43cea2);
}

.recommendation-details {
  flex: 1;
}

.recommendation-choice {
  font-size: 18px;
  margin-bottom: 8px;
}

.recommendation-explanation {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Metrics comparison table */
.premium-metrics-comparison {
  background: rgba(25, 25, 35, 0.5);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 25px;
}

.metrics-header {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.metrics-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.metrics-table th {
  text-align: left;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(30, 30, 40, 0.5);
}

.metrics-table th:first-child {
  border-top-left-radius: 8px;
}

.metrics-table th:last-child {
  border-top-right-radius: 8px;
  text-align: center;
}

.metrics-table td {
  padding: 12px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.score-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-bar {
  flex: 1;
  height: 8px;
  background: rgba(40, 40, 50, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #6e56cf, #a277ff);
  border-radius: 4px;
}

.score-value {
  font-weight: 600;
  min-width: 30px;
  text-align: right;
}

.diff-cell {
  text-align: center;
  font-weight: 600;
}

.diff-cell.ai-win {
  color: #a277ff;
}

.diff-cell.original-win {
  color: #43cea2;
}

/* Action buttons */
.premium-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.premium-btn {
  background: rgba(110, 86, 207, 0.15);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(110, 86, 207, 0.3);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.premium-btn:hover {
  background: rgba(110, 86, 207, 0.25);
  border-color: rgba(110, 86, 207, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .premium-score-overview {
    flex-direction: column;
  }
  
  .premium-comparison-divider {
    width: 100%;
    height: 80px;
    margin: 10px 0;
  }
  
  .confidence-indicator {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
  }
  
  .recommendation-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .premium-actions {
    flex-direction: column;
  }
} 
