* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #0e0613;
  background-image: url('../static/crypto-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  min-height: 100vh;
  width: 100%;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 20px;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-radius: 12px;
  position: relative;
  z-index: 10;
  background-color: transparent;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 50px;
  height: 50px;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #F8A5FF;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #F8A5FF;
}

/* Decorative Lines */
.decorative-lines {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  opacity: 0.5;
}

.line {
  height: 2px;
  background: linear-gradient(90deg, #A55CA6, transparent);
  transform: translateX(-30px);
}

.line1 { width: 60px; }
.line2 { width: 90px; }
.line3 { width: 70px; }
.line4 { width: 100px; }
.line5 { width: 80px; }

/* Main Card Styling */
.main-card {
  background: rgba(30, 15, 45, 0.6);
  padding: 40px;
  width: 100%;
  margin-top: 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 30px rgba(93, 28, 89, 0.4);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(165, 92, 166, 0.3);
}

.main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(103, 37, 100, 0.1), rgba(30, 15, 45, 0.05));
  z-index: -1;
}

.card-content {
  position: relative;
  z-index: 1;
}

.main-card h1 {
  font-size: 48px;
  background: linear-gradient(90deg, #F8A5FF, #A55CA6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(248, 165, 255, 0.4);
  font-weight: 600;
}

.main-card .highlight {
  color: #A55CA6;
}

.subtitle {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 50px;
}

/* Button Groups */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.preset-btn {
  background: rgba(45, 20, 60, 0.8);
  color: white;
  border: 1px solid rgba(165, 92, 166, 0.4);
  border-radius: 30px;
  padding: 18px 25px;
  font-size: 14px;
  cursor: pointer;
  width: 280px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(165, 92, 166, 0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.preset-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(103, 37, 100, 0.2), rgba(93, 28, 89, 0.05));
  z-index: -1;
}

.preset-btn:hover {
  background: rgba(103, 37, 100, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(165, 92, 166, 0.3);
  border-color: #A55CA6;
}

/* Answer Box */
.answer-box {
  background: rgba(93, 28, 89, 0.8);
  border: 1px solid #672564;
  border-radius: 12px;
  padding: 20px;
  color: white;
  font-size: 15px;
  margin-top: 20px;
  box-shadow: 0 0 10px rgba(165, 92, 166, 0.3);
  text-align: left;
}

.answer-box ol {
  padding-left: 20px;
}

.answer-box p {
  margin: 10px 0;
}

/* Search Section */
.search-section {
  background: rgba(45, 20, 60, 0.8);
  padding: 20px 30px;
  border-radius: 20px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 0 20px rgba(93, 28, 89, 0.4);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(165, 92, 166, 0.3);
}

.search-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(103, 37, 100, 0.08), rgba(93, 28, 89, 0.02));
  z-index: -1;
}

.coin-label {
  font-size: 16px;
  color: #eee;
  white-space: nowrap;
}

.select-container {
  position: relative;
  min-width: 140px;
}

.select-container::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #F8A5FF;
  font-size: 12px;
  pointer-events: none;
}

.search-section select {
  width: 100%;
  padding: 12px;
  padding-right: 30px;
  border-radius: 12px;
  border: 1px solid rgba(165, 92, 166, 0.4);
  font-size: 16px;
  background: rgba(45, 20, 60, 0.8);
  color: white;
  cursor: pointer;
  outline: none;
  appearance: none;
}

.search-input-container {
  flex: 1;
  position: relative;
}

.search-section input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(165, 92, 166, 0.4);
  font-size: 16px;
  background: rgba(45, 20, 60, 0.8);
  color: #fff;
  outline: none;
}

.search-section input::placeholder {
  color: #aaa;
}

.search-section input:focus {
  border-color: #D9D9D9;
  box-shadow: 0 0 0 2px rgba(248, 165, 255, 0.3);
}

.get-insights {
  background: linear-gradient(135deg, #A55CA6, #F8A5FF);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(248, 165, 255, 0.4);
}

.get-insights:hover {
  background: linear-gradient(135deg, #672564, #A55CA6);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(248, 165, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .nav-links {
    gap: 20px;
  }
  
  .button-group {
    gap: 15px;
  }
  
  .preset-btn {
    width: 240px;
    padding: 15px;
  }
  
  .search-section {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  
  .select-container {
    width: 100%;
  }
  
  .decorative-lines {
    width: 60px;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .main-card {
    padding: 30px 20px;
  }
  
  .main-card h1 {
    font-size: 36px;
  }
  
  .preset-btn {
    width: 100%;
  }
  
  .decorative-lines {
    display: none;
  }
}

/* Add these at the top of your CSS file */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #0a0a0a;
  color: white;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

/* Grid pattern styles */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(188, 36, 196, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 36, 196, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
  overflow-x: hidden; /* Only hide horizontal overflow */
  overflow-y: auto; /* Allow vertical scrolling */
  min-height: 100%;
}

.grid-pattern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23bc24c4" opacity="0.03"><circle cx="15" cy="15" r="3"/><circle cx="35" cy="25" r="2"/><circle cx="75" cy="15" r="4"/><circle cx="85" cy="65" r="3"/><circle cx="25" cy="85" r="2"/><circle cx="65" cy="75" r="3"/><circle cx="45" cy="45" r="2"/><circle cx="85" cy="25" r="3"/><circle cx="15" cy="65" r="4"/><circle cx="55" cy="35" r="2"/></svg>'),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23bc24c4" opacity="0.03"><path d="M10,10 L90,10 L90,90 L10,90 Z" stroke-width="2"/><path d="M30,30 L70,30 L70,70 L30,70 Z" stroke-width="1"/></svg>'),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23bc24c4" opacity="0.03"><polygon points="50,5 90,90 10,90"/><polygon points="50,30 70,70 30,70"/></svg>');
  background-size: 100px 100px, 150px 150px, 120px 120px;
  background-repeat: repeat;
  z-index: -1;
}

/* Crypto grid elements */
.crypto-grid-element {
  position: fixed;
  font-size: 1.5rem;
  color: rgba(188, 36, 196, 0.1);
  z-index: -1;
}

.crypto-grid-element:nth-child(1) { top: 15%; left: 10%; }
.crypto-grid-element:nth-child(2) { top: 25%; right: 15%; }
.crypto-grid-element:nth-child(3) { top: 45%; left: 20%; }
.crypto-grid-element:nth-child(4) { top: 65%; right: 10%; }
.crypto-grid-element:nth-child(5) { top: 85%; left: 15%; }
.crypto-grid-element:nth-child(6) { top: 35%; right: 25%; }

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(90deg, #ec4899 0%, #bc24c4 50%, #9d1d9d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Loading GIF centered styling */
#loading {
  display: flex;
  justify-content: center;
  align-items: center ;
  flex-direction: column ;
  width: 100% ;
  margin: 0 auto;
}

/* Keep your existing CSS below this line */

.answer-box ol {
  padding-left: 20px;
}

.answer-box p {
  margin: 10px 0;
}

/* Search Section */
.search-section {
  background: rgba(45, 20, 60, 0.8);
  padding: 20px 30px;
  border-radius: 20px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 0 20px rgba(93, 28, 89, 0.4);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(165, 92, 166, 0.3);
}

.search-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(103, 37, 100, 0.08), rgba(93, 28, 89, 0.02));
  z-index: -1;
}

.coin-label {
  font-size: 16px;
  color: #eee;
  white-space: nowrap;
}

.select-container {
  position: relative;
  min-width: 140px;
}

.select-container::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #F8A5FF;
  font-size: 12px;
  pointer-events: none;
}

.search-section select {
  width: 100%;
  padding: 12px;
  padding-right: 30px;
  border-radius: 12px;
  border: 1px solid rgba(165, 92, 166, 0.4);
  font-size: 16px;
  background: rgba(45, 20, 60, 0.8);
  color: white;
  cursor: pointer;
  outline: none;
  appearance: none;
}

.search-input-container {
  flex: 1;
  position: relative;
}

.search-section input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(165, 92, 166, 0.4);
  font-size: 16px;
  background: rgba(45, 20, 60, 0.8);
  color: #fff;
  outline: none;
}

.search-section input::placeholder {
  color: #aaa;
}

.search-section input:focus {
  border-color: #D9D9D9;
  box-shadow: 0 0 0 2px rgba(248, 165, 255, 0.3);
}

.get-insights {
  background: linear-gradient(135deg, #A55CA6, #F8A5FF);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(248, 165, 255, 0.4);
}

.get-insights:hover {
  background: linear-gradient(135deg, #672564, #A55CA6);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(248, 165, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .nav-links {
    gap: 20px;
  }
  
  .button-group {
    gap: 15px;
  }
  
  .preset-btn {
    width: 240px;
    padding: 15px;
  }
  
  .search-section {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  
  .select-container {
    width: 100%;
  }
  
  .decorative-lines {
    width: 60px;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .main-card {
    padding: 30px 20px;
  }
  
  .main-card h1 {
    font-size: 36px;
  }
  
  .preset-btn {
    width: 100%;
  }
  
  .decorative-lines {
    display: none;
  }
}