:root {
  --primary: #6B8AFF;
  --secondary: #B088F9;
  --accent: #5CE1E6;
  --bg-dark: #2A2F4F;
  --bg-light: #F8F9FE;
  --success: #68D391;
  --danger: #FC8181;
  --text-main: #2D3748;
  --text-light: #FFFFFF;
}

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

body {
  background: linear-gradient(135deg, #eaf0ff 0%, #f3ebfc 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1.5px;
}

.navbar button {
  width: auto;
  padding: 0.8rem 1.5rem;
}

.container {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero {
  text-align: center;
  padding: 1rem 0 2rem 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--bg-dark);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.15rem;
  color: #718096;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(107, 138, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(30deg);
  pointer-events: none;
  opacity: 0.5;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 60px rgba(107, 138, 255, 0.2);
}

.card h2 {
  margin-bottom: 1.2rem;
  color: var(--bg-dark);
  font-size: 2rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.card p {
  margin-bottom: 2rem;
  color: #4A5568;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.input-group {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

input:not([type=range]), select {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
}

input:not([type=range]):focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(107, 138, 255, 0.15);
  background-color: #ffffff;
}

select {
  cursor: pointer;
  max-width: 140px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232D3748%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem top 50%;
  background-size: 0.65rem auto;
}

.slider-group {
  margin-bottom: 1.5rem;
  background-color: rgba(241, 245, 249, 0.5);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  position: relative;
  z-index: 1;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--bg-dark);
}

.slider-value {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 800;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

input[type=range]:focus {
  outline: none;
  box-shadow: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: #CBD5E0;
  border-radius: 4px;
}

input[type=range]::-webkit-slider-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

.token-estimation {
  font-size: 0.95rem;
  color: var(--success);
  font-weight: 700;
  text-align: center;
  background: rgba(104, 211, 145, 0.1);
  padding: 0.8rem;
  border-radius: 8px;
}

.staking-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.info-box {
  flex: 1;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 1.2rem 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.info-box span {
  font-size: 0.85rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-box strong {
  font-size: 1.2rem;
  color: var(--bg-dark);
}

.button-split {
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.button-split button {
  margin-bottom: 0;
}

button {
  padding: 1.2rem 2rem;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-light);
  width: 100%;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.4s ease;
}

button:hover::after {
  left: 100%;
}

button:active {
  transform: scale(0.97);
}

button:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn-secondary {
  background: var(--bg-dark);
  margin-bottom: 1.5rem;
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-dark);
}

.chart-container {
  position: relative;
  height: 350px;
  width: 100%;
  margin-bottom: 3rem;
  z-index: 1;
}

.contract-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

.contract-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contract-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contract-desc {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.contract-item input {
  background-color: rgba(241, 245, 249, 0.7);
  border: 1px solid #CBD5E0;
  color: #2D3748;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  padding: 1rem;
  border-radius: 12px;
}

.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 4rem 1rem;
  margin-top: 4rem;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.footer-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.footer-info p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #E2E8F0;
}

.ca-box {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
}

.ca-box input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0;
}

.ca-box button {
  width: auto;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .input-group, .button-split, .ca-box {
    flex-direction: column;
  }
  
  select, .ca-box button {
    max-width: 100%;
    width: 100%;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .card {
    padding: 2rem 1.5rem;
  }

  .staking-info {
    flex-direction: column;
  }
}
